@innovastudio/contentbox-runtime-base 1.0.1 → 1.0.2
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.
|
@@ -1,394 +1,394 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
1
|
+
var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function Ae(o) {
|
|
3
3
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
4
4
|
}
|
|
5
|
-
var fe = { exports: {} },
|
|
6
|
-
function
|
|
5
|
+
var fe = { exports: {} }, Be = fe.exports, je;
|
|
6
|
+
function Re() {
|
|
7
7
|
return je || (je = 1, (function(o, e) {
|
|
8
8
|
(function(i, s) {
|
|
9
9
|
o.exports = s();
|
|
10
|
-
})(
|
|
11
|
-
var i = typeof window < "u" ? window : typeof
|
|
12
|
-
return
|
|
10
|
+
})(Be, function() {
|
|
11
|
+
var i = typeof window < "u" ? window : typeof Te < "u" ? Te : typeof self < "u" ? self : {}, s = "Expected a function", t = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, u = /^0b[01]+$/i, d = /^0o[0-7]+$/i, m = parseInt, b = typeof i == "object" && i && i.Object === Object && i, x = typeof self == "object" && self && self.Object === Object && self, L = b || x || Function("return this")(), M = Object.prototype.toString, Y = Math.max, et = Math.min, st = function() {
|
|
12
|
+
return L.Date.now();
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
var
|
|
14
|
+
function Dt(p, v, A) {
|
|
15
|
+
var _, V, Z, U, k, G, P = 0, ft = !1, Q = !1, it = !0;
|
|
16
16
|
if (typeof p != "function") throw new TypeError(s);
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
return
|
|
17
|
+
function gt(I) {
|
|
18
|
+
var K = _, pt = V;
|
|
19
|
+
return _ = V = void 0, P = I, U = p.apply(pt, K);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
return
|
|
21
|
+
function Pt(I) {
|
|
22
|
+
var K = I - G;
|
|
23
|
+
return G === void 0 || K >= v || K < 0 || Q && I - P >= Z;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
return
|
|
31
|
-
})(
|
|
25
|
+
function Et() {
|
|
26
|
+
var I = st();
|
|
27
|
+
if (Pt(I)) return Ht(I);
|
|
28
|
+
k = setTimeout(Et, (function(K) {
|
|
29
|
+
var pt = v - (K - G);
|
|
30
|
+
return Q ? et(pt, Z - (K - P)) : pt;
|
|
31
|
+
})(I));
|
|
32
32
|
}
|
|
33
|
-
function Ht(
|
|
34
|
-
return
|
|
33
|
+
function Ht(I) {
|
|
34
|
+
return k = void 0, it && _ ? gt(I) : (_ = V = void 0, U);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
var
|
|
38
|
-
if (
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
41
|
-
})(
|
|
42
|
-
if (
|
|
36
|
+
function ot() {
|
|
37
|
+
var I = st(), K = Pt(I);
|
|
38
|
+
if (_ = arguments, V = this, G = I, K) {
|
|
39
|
+
if (k === void 0) return (function(pt) {
|
|
40
|
+
return P = pt, k = setTimeout(Et, v), ft ? gt(pt) : U;
|
|
41
|
+
})(G);
|
|
42
|
+
if (Q) return k = setTimeout(Et, v), gt(G);
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return k === void 0 && (k = setTimeout(Et, v)), U;
|
|
45
45
|
}
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
return
|
|
50
|
-
},
|
|
46
|
+
return v = _t(v) || 0, St(A) && (ft = !!A.leading, Z = (Q = "maxWait" in A) ? Y(_t(A.maxWait) || 0, v) : Z, it = "trailing" in A ? !!A.trailing : it), ot.cancel = function() {
|
|
47
|
+
k !== void 0 && clearTimeout(k), P = 0, _ = G = V = k = void 0;
|
|
48
|
+
}, ot.flush = function() {
|
|
49
|
+
return k === void 0 ? U : Ht(st());
|
|
50
|
+
}, ot;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
var
|
|
54
|
-
return !!p && (
|
|
52
|
+
function St(p) {
|
|
53
|
+
var v = typeof p;
|
|
54
|
+
return !!p && (v == "object" || v == "function");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function _t(p) {
|
|
57
57
|
if (typeof p == "number") return p;
|
|
58
|
-
if ((function(
|
|
59
|
-
return typeof
|
|
58
|
+
if ((function(_) {
|
|
59
|
+
return typeof _ == "symbol" || /* @__PURE__ */ (function(V) {
|
|
60
60
|
return !!V && typeof V == "object";
|
|
61
|
-
})(
|
|
61
|
+
})(_) && M.call(_) == n;
|
|
62
62
|
})(p)) return t;
|
|
63
|
-
if (
|
|
64
|
-
var
|
|
65
|
-
p =
|
|
63
|
+
if (St(p)) {
|
|
64
|
+
var v = typeof p.valueOf == "function" ? p.valueOf() : p;
|
|
65
|
+
p = St(v) ? v + "" : v;
|
|
66
66
|
}
|
|
67
67
|
if (typeof p != "string") return p === 0 ? p : +p;
|
|
68
68
|
p = p.replace(r, "");
|
|
69
|
-
var
|
|
70
|
-
return
|
|
69
|
+
var A = u.test(p);
|
|
70
|
+
return A || d.test(p) ? m(p.slice(2), A ? 2 : 8) : a.test(p) ? t : +p;
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
var
|
|
72
|
+
var Tt = function(p, v, A) {
|
|
73
|
+
var _ = !0, V = !0;
|
|
74
74
|
if (typeof p != "function") throw new TypeError(s);
|
|
75
|
-
return
|
|
76
|
-
}, l = "Expected a function",
|
|
77
|
-
return
|
|
75
|
+
return St(A) && (_ = "leading" in A ? !!A.leading : _, V = "trailing" in A ? !!A.trailing : V), Dt(p, v, { leading: _, maxWait: v, trailing: V });
|
|
76
|
+
}, l = "Expected a function", f = NaN, S = "[object Symbol]", E = /^\s+|\s+$/g, j = /^[-+]0x[0-9a-f]+$/i, q = /^0b[01]+$/i, J = /^0o[0-7]+$/i, O = parseInt, y = typeof i == "object" && i && i.Object === Object && i, h = typeof self == "object" && self && self.Object === Object && self, c = y || h || Function("return this")(), w = Object.prototype.toString, C = Math.max, T = Math.min, D = function() {
|
|
77
|
+
return c.Date.now();
|
|
78
78
|
};
|
|
79
|
-
function
|
|
80
|
-
var
|
|
81
|
-
return !!p && (
|
|
79
|
+
function W(p) {
|
|
80
|
+
var v = typeof p;
|
|
81
|
+
return !!p && (v == "object" || v == "function");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function B(p) {
|
|
84
84
|
if (typeof p == "number") return p;
|
|
85
|
-
if ((function(
|
|
86
|
-
return typeof
|
|
85
|
+
if ((function(_) {
|
|
86
|
+
return typeof _ == "symbol" || /* @__PURE__ */ (function(V) {
|
|
87
87
|
return !!V && typeof V == "object";
|
|
88
|
-
})(
|
|
89
|
-
})(p)) return
|
|
90
|
-
if (
|
|
91
|
-
var
|
|
92
|
-
p =
|
|
88
|
+
})(_) && w.call(_) == S;
|
|
89
|
+
})(p)) return f;
|
|
90
|
+
if (W(p)) {
|
|
91
|
+
var v = typeof p.valueOf == "function" ? p.valueOf() : p;
|
|
92
|
+
p = W(v) ? v + "" : v;
|
|
93
93
|
}
|
|
94
94
|
if (typeof p != "string") return p === 0 ? p : +p;
|
|
95
|
-
p = p.replace(
|
|
96
|
-
var
|
|
97
|
-
return
|
|
95
|
+
p = p.replace(E, "");
|
|
96
|
+
var A = q.test(p);
|
|
97
|
+
return A || J.test(p) ? O(p.slice(2), A ? 2 : 8) : j.test(p) ? f : +p;
|
|
98
98
|
}
|
|
99
|
-
var
|
|
100
|
-
var
|
|
99
|
+
var jt = function(p, v, A) {
|
|
100
|
+
var _, V, Z, U, k, G, P = 0, ft = !1, Q = !1, it = !0;
|
|
101
101
|
if (typeof p != "function") throw new TypeError(l);
|
|
102
|
-
function
|
|
103
|
-
var
|
|
104
|
-
return
|
|
102
|
+
function gt(I) {
|
|
103
|
+
var K = _, pt = V;
|
|
104
|
+
return _ = V = void 0, P = I, U = p.apply(pt, K);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
var
|
|
108
|
-
return
|
|
106
|
+
function Pt(I) {
|
|
107
|
+
var K = I - G;
|
|
108
|
+
return G === void 0 || K >= v || K < 0 || Q && I - P >= Z;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
var
|
|
112
|
-
if (
|
|
113
|
-
|
|
114
|
-
var
|
|
115
|
-
return
|
|
116
|
-
})(
|
|
110
|
+
function Et() {
|
|
111
|
+
var I = D();
|
|
112
|
+
if (Pt(I)) return Ht(I);
|
|
113
|
+
k = setTimeout(Et, (function(K) {
|
|
114
|
+
var pt = v - (K - G);
|
|
115
|
+
return Q ? T(pt, Z - (K - P)) : pt;
|
|
116
|
+
})(I));
|
|
117
117
|
}
|
|
118
|
-
function Ht(
|
|
119
|
-
return
|
|
118
|
+
function Ht(I) {
|
|
119
|
+
return k = void 0, it && _ ? gt(I) : (_ = V = void 0, U);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
var
|
|
123
|
-
if (
|
|
124
|
-
if (
|
|
125
|
-
return
|
|
126
|
-
})(
|
|
127
|
-
if (
|
|
121
|
+
function ot() {
|
|
122
|
+
var I = D(), K = Pt(I);
|
|
123
|
+
if (_ = arguments, V = this, G = I, K) {
|
|
124
|
+
if (k === void 0) return (function(pt) {
|
|
125
|
+
return P = pt, k = setTimeout(Et, v), ft ? gt(pt) : U;
|
|
126
|
+
})(G);
|
|
127
|
+
if (Q) return k = setTimeout(Et, v), gt(G);
|
|
128
128
|
}
|
|
129
|
-
return
|
|
129
|
+
return k === void 0 && (k = setTimeout(Et, v)), U;
|
|
130
130
|
}
|
|
131
|
-
return
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
return
|
|
135
|
-
},
|
|
136
|
-
},
|
|
131
|
+
return v = B(v) || 0, W(A) && (ft = !!A.leading, Z = (Q = "maxWait" in A) ? C(B(A.maxWait) || 0, v) : Z, it = "trailing" in A ? !!A.trailing : it), ot.cancel = function() {
|
|
132
|
+
k !== void 0 && clearTimeout(k), P = 0, _ = G = V = k = void 0;
|
|
133
|
+
}, ot.flush = function() {
|
|
134
|
+
return k === void 0 ? U : Ht(D());
|
|
135
|
+
}, ot;
|
|
136
|
+
}, tt = function() {
|
|
137
137
|
};
|
|
138
|
-
function
|
|
139
|
-
p && p.forEach(function(
|
|
140
|
-
var
|
|
141
|
-
if ((function V(
|
|
142
|
-
var
|
|
143
|
-
for (
|
|
144
|
-
if ((
|
|
138
|
+
function X(p) {
|
|
139
|
+
p && p.forEach(function(v) {
|
|
140
|
+
var A = Array.prototype.slice.call(v.addedNodes), _ = Array.prototype.slice.call(v.removedNodes);
|
|
141
|
+
if ((function V(Z) {
|
|
142
|
+
var U = void 0, k = void 0;
|
|
143
|
+
for (U = 0; U < Z.length; U += 1)
|
|
144
|
+
if ((k = Z[U]).dataset && k.dataset.aos || k.children && V(k.children)) return !0;
|
|
145
145
|
return !1;
|
|
146
|
-
})(
|
|
146
|
+
})(A.concat(_))) return tt();
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function R() {
|
|
150
150
|
return window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
|
151
151
|
}
|
|
152
|
-
var
|
|
153
|
-
return !!
|
|
154
|
-
}, ready: function(p,
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
} },
|
|
158
|
-
if (!(p instanceof
|
|
159
|
-
},
|
|
160
|
-
function p(
|
|
161
|
-
for (var
|
|
162
|
-
var V =
|
|
163
|
-
V.enumerable = V.enumerable || !1, V.configurable = !0, "value" in V && (V.writable = !0), Object.defineProperty(
|
|
152
|
+
var dt = { isSupported: function() {
|
|
153
|
+
return !!R();
|
|
154
|
+
}, ready: function(p, v) {
|
|
155
|
+
var A = window.document, _ = new (R())(X);
|
|
156
|
+
tt = v, _.observe(A.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
|
|
157
|
+
} }, Ct = function(p, v) {
|
|
158
|
+
if (!(p instanceof v)) throw new TypeError("Cannot call a class as a function");
|
|
159
|
+
}, ht = /* @__PURE__ */ (function() {
|
|
160
|
+
function p(v, A) {
|
|
161
|
+
for (var _ = 0; _ < A.length; _++) {
|
|
162
|
+
var V = A[_];
|
|
163
|
+
V.enumerable = V.enumerable || !1, V.configurable = !0, "value" in V && (V.writable = !0), Object.defineProperty(v, V.key, V);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
return function(
|
|
167
|
-
return
|
|
166
|
+
return function(v, A, _) {
|
|
167
|
+
return A && p(v.prototype, A), _ && p(v, _), v;
|
|
168
168
|
};
|
|
169
|
-
})(),
|
|
170
|
-
for (var
|
|
171
|
-
var
|
|
172
|
-
for (var
|
|
169
|
+
})(), At = Object.assign || function(p) {
|
|
170
|
+
for (var v = 1; v < arguments.length; v++) {
|
|
171
|
+
var A = arguments[v];
|
|
172
|
+
for (var _ in A) Object.prototype.hasOwnProperty.call(A, _) && (p[_] = A[_]);
|
|
173
173
|
}
|
|
174
174
|
return p;
|
|
175
|
-
},
|
|
176
|
-
function
|
|
175
|
+
}, mt = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, $ = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, ct = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i, nt = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
|
|
176
|
+
function at() {
|
|
177
177
|
return navigator.userAgent || navigator.vendor || window.opera || "";
|
|
178
178
|
}
|
|
179
|
-
var
|
|
179
|
+
var bt = new ((function() {
|
|
180
180
|
function p() {
|
|
181
|
-
|
|
181
|
+
Ct(this, p);
|
|
182
182
|
}
|
|
183
|
-
return
|
|
184
|
-
var
|
|
185
|
-
return !(!
|
|
183
|
+
return ht(p, [{ key: "phone", value: function() {
|
|
184
|
+
var v = at();
|
|
185
|
+
return !(!mt.test(v) && !$.test(v.substr(0, 4)));
|
|
186
186
|
} }, { key: "mobile", value: function() {
|
|
187
|
-
var
|
|
188
|
-
return !(!
|
|
187
|
+
var v = at();
|
|
188
|
+
return !(!ct.test(v) && !nt.test(v.substr(0, 4)));
|
|
189
189
|
} }, { key: "tablet", value: function() {
|
|
190
190
|
return this.mobile() && !this.phone();
|
|
191
191
|
} }, { key: "ie11", value: function() {
|
|
192
192
|
return "-ms-scroll-limit" in document.documentElement.style && "-ms-ime-align" in document.documentElement.style;
|
|
193
193
|
} }]), p;
|
|
194
|
-
})())(),
|
|
195
|
-
var
|
|
196
|
-
return
|
|
197
|
-
},
|
|
198
|
-
return p.forEach(function(
|
|
199
|
-
return (function(
|
|
200
|
-
var
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
return
|
|
194
|
+
})())(), yt = function(p, v) {
|
|
195
|
+
var A = void 0;
|
|
196
|
+
return bt.ie11() ? (A = document.createEvent("CustomEvent")).initCustomEvent(p, !0, !0, { detail: v }) : A = new CustomEvent(p, { detail: v }), document.dispatchEvent(A);
|
|
197
|
+
}, rt = function(p) {
|
|
198
|
+
return p.forEach(function(v, A) {
|
|
199
|
+
return (function(_, V) {
|
|
200
|
+
var Z = _.options, U = _.position, k = _.node, G = (_.data, function() {
|
|
201
|
+
_.animated && ((function(P, ft) {
|
|
202
|
+
ft && ft.forEach(function(Q) {
|
|
203
|
+
return P.classList.remove(Q);
|
|
204
204
|
});
|
|
205
|
-
})(
|
|
205
|
+
})(k, Z.animatedClassNames), yt("aos:out", k), _.options.id && yt("aos:in:" + _.options.id, k), _.animated = !1);
|
|
206
206
|
});
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
return
|
|
207
|
+
Z.mirror && V >= U.out && !Z.once ? G() : V >= U.in ? _.animated || ((function(P, ft) {
|
|
208
|
+
ft && ft.forEach(function(Q) {
|
|
209
|
+
return P.classList.add(Q);
|
|
210
210
|
});
|
|
211
|
-
})(
|
|
212
|
-
})(
|
|
211
|
+
})(k, Z.animatedClassNames), yt("aos:in", k), _.options.id && yt("aos:in:" + _.options.id, k), _.animated = !0) : _.animated && !Z.once && G();
|
|
212
|
+
})(v, window.pageYOffset);
|
|
213
213
|
});
|
|
214
|
-
},
|
|
215
|
-
for (var
|
|
216
|
-
return { top:
|
|
217
|
-
},
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
if (
|
|
221
|
-
if (
|
|
214
|
+
}, vt = function(p) {
|
|
215
|
+
for (var v = 0, A = 0; p && !isNaN(p.offsetLeft) && !isNaN(p.offsetTop); ) v += p.offsetLeft - (p.tagName != "BODY" ? p.scrollLeft : 0), A += p.offsetTop - (p.tagName != "BODY" ? p.scrollTop : 0), p = p.offsetParent;
|
|
216
|
+
return { top: A, left: v };
|
|
217
|
+
}, H = function(p, v, A) {
|
|
218
|
+
var _ = p.getAttribute("data-aos-" + v);
|
|
219
|
+
if (_ !== void 0) {
|
|
220
|
+
if (_ === "true") return !0;
|
|
221
|
+
if (_ === "false") return !1;
|
|
222
222
|
}
|
|
223
|
-
return
|
|
224
|
-
},
|
|
225
|
-
return p.forEach(function(
|
|
226
|
-
var V =
|
|
227
|
-
return typeof
|
|
223
|
+
return _ || A;
|
|
224
|
+
}, kt = function(p, v) {
|
|
225
|
+
return p.forEach(function(A, _) {
|
|
226
|
+
var V = H(A.node, "mirror", v.mirror), Z = H(A.node, "once", v.once), U = H(A.node, "id"), k = v.useClassNames && A.node.getAttribute("data-aos"), G = [v.animatedClassName].concat(k ? k.split(" ") : []).filter(function(P) {
|
|
227
|
+
return typeof P == "string";
|
|
228
228
|
});
|
|
229
|
-
|
|
230
|
-
var
|
|
231
|
-
|
|
232
|
-
var
|
|
229
|
+
v.initClassName && A.node.classList.add(v.initClassName), A.position = { in: (function(P, ft, Q) {
|
|
230
|
+
var it = window.innerHeight, gt = H(P, "anchor"), Pt = H(P, "anchor-placement"), Et = Number(H(P, "offset", Pt ? 0 : ft)), Ht = Pt || Q, ot = P;
|
|
231
|
+
gt && document.querySelectorAll(gt) && (ot = document.querySelectorAll(gt)[0]);
|
|
232
|
+
var I = vt(ot).top - it;
|
|
233
233
|
switch (Ht) {
|
|
234
234
|
case "top-bottom":
|
|
235
235
|
break;
|
|
236
236
|
case "center-bottom":
|
|
237
|
-
|
|
237
|
+
I += ot.offsetHeight / 2;
|
|
238
238
|
break;
|
|
239
239
|
case "bottom-bottom":
|
|
240
|
-
|
|
240
|
+
I += ot.offsetHeight;
|
|
241
241
|
break;
|
|
242
242
|
case "top-center":
|
|
243
|
-
|
|
243
|
+
I += it / 2;
|
|
244
244
|
break;
|
|
245
245
|
case "center-center":
|
|
246
|
-
|
|
246
|
+
I += it / 2 + ot.offsetHeight / 2;
|
|
247
247
|
break;
|
|
248
248
|
case "bottom-center":
|
|
249
|
-
|
|
249
|
+
I += it / 2 + ot.offsetHeight;
|
|
250
250
|
break;
|
|
251
251
|
case "top-top":
|
|
252
|
-
|
|
252
|
+
I += it;
|
|
253
253
|
break;
|
|
254
254
|
case "bottom-top":
|
|
255
|
-
|
|
255
|
+
I += it + ot.offsetHeight;
|
|
256
256
|
break;
|
|
257
257
|
case "center-top":
|
|
258
|
-
|
|
258
|
+
I += it + ot.offsetHeight / 2;
|
|
259
259
|
}
|
|
260
|
-
return
|
|
261
|
-
})(
|
|
262
|
-
var
|
|
263
|
-
return
|
|
264
|
-
})(
|
|
260
|
+
return I + Et;
|
|
261
|
+
})(A.node, v.offset, v.anchorPlacement), out: V && (function(P, ft) {
|
|
262
|
+
var Q = H(P, "anchor"), it = H(P, "offset", ft), gt = P;
|
|
263
|
+
return Q && document.querySelectorAll(Q) && (gt = document.querySelectorAll(Q)[0]), vt(gt).top + gt.offsetHeight - it;
|
|
264
|
+
})(A.node, v.offset) }, A.options = { once: Z, mirror: V, animatedClassNames: G, id: U };
|
|
265
265
|
}), p;
|
|
266
|
-
},
|
|
266
|
+
}, Vt = function() {
|
|
267
267
|
var p = document.querySelectorAll("[data-aos]");
|
|
268
|
-
return Array.prototype.map.call(p, function(
|
|
269
|
-
return { node:
|
|
268
|
+
return Array.prototype.map.call(p, function(v) {
|
|
269
|
+
return { node: v };
|
|
270
270
|
});
|
|
271
|
-
},
|
|
271
|
+
}, ut = [], Yt = !1, N = { offset: 120, delay: 0, easing: "ease", duration: 400, disable: !1, once: !1, mirror: !1, anchorPlacement: "top-bottom", startEvent: "DOMContentLoaded", animatedClassName: "aos-animate", initClassName: "aos-init", useClassNames: !1, disableMutationObserver: !1, throttleDelay: 99, debounceDelay: 50 }, qt = function() {
|
|
272
272
|
return document.all && !window.atob;
|
|
273
|
-
},
|
|
274
|
-
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (
|
|
275
|
-
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
if (
|
|
279
|
-
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
p.node.removeAttribute("data-aos"), p.node.removeAttribute("data-aos-easing"), p.node.removeAttribute("data-aos-duration"), p.node.removeAttribute("data-aos-delay"),
|
|
273
|
+
}, wt = function() {
|
|
274
|
+
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Yt = !0), Yt && (ut = kt(ut, N), rt(ut), window.addEventListener("scroll", Tt(function() {
|
|
275
|
+
rt(ut, N.once);
|
|
276
|
+
}, N.throttleDelay)));
|
|
277
|
+
}, Mt = function() {
|
|
278
|
+
if (ut = Vt(), zt(N.disable) || qt()) return Nt();
|
|
279
|
+
wt();
|
|
280
|
+
}, Nt = function() {
|
|
281
|
+
ut.forEach(function(p, v) {
|
|
282
|
+
p.node.removeAttribute("data-aos"), p.node.removeAttribute("data-aos-easing"), p.node.removeAttribute("data-aos-duration"), p.node.removeAttribute("data-aos-delay"), N.initClassName && p.node.classList.remove(N.initClassName), N.animatedClassName && p.node.classList.remove(N.animatedClassName);
|
|
283
283
|
});
|
|
284
|
-
},
|
|
285
|
-
return p === !0 || p === "mobile" &&
|
|
284
|
+
}, zt = function(p) {
|
|
285
|
+
return p === !0 || p === "mobile" && bt.mobile() || p === "phone" && bt.phone() || p === "tablet" && bt.tablet() || typeof p == "function" && p() === !0;
|
|
286
286
|
};
|
|
287
287
|
return { init: function(p) {
|
|
288
|
-
return
|
|
288
|
+
return N = At(N, p), ut = Vt(), N.disableMutationObserver || dt.isSupported() || (console.info(`
|
|
289
289
|
aos: MutationObserver is not supported on this browser,
|
|
290
290
|
code mutations observing has been disabled.
|
|
291
291
|
You may have to call "refreshHard()" by yourself.
|
|
292
|
-
`),
|
|
293
|
-
|
|
292
|
+
`), N.disableMutationObserver = !0), N.disableMutationObserver || dt.ready("[data-aos]", Mt), zt(N.disable) || qt() ? Nt() : (document.querySelector("body").setAttribute("data-aos-easing", N.easing), document.querySelector("body").setAttribute("data-aos-duration", N.duration), document.querySelector("body").setAttribute("data-aos-delay", N.delay), ["DOMContentLoaded", "load"].indexOf(N.startEvent) === -1 ? document.addEventListener(N.startEvent, function() {
|
|
293
|
+
wt(!0);
|
|
294
294
|
}) : window.addEventListener("load", function() {
|
|
295
|
-
|
|
296
|
-
}),
|
|
297
|
-
}, refresh:
|
|
295
|
+
wt(!0);
|
|
296
|
+
}), N.startEvent === "DOMContentLoaded" && ["complete", "interactive"].indexOf(document.readyState) > -1 && wt(!0), window.addEventListener("resize", jt(wt, N.debounceDelay, !0)), window.addEventListener("orientationchange", jt(wt, N.debounceDelay, !0)), ut);
|
|
297
|
+
}, refresh: wt, refreshHard: Mt };
|
|
298
298
|
});
|
|
299
299
|
})(fe)), fe.exports;
|
|
300
300
|
}
|
|
301
|
-
var
|
|
302
|
-
const
|
|
303
|
-
var
|
|
304
|
-
function
|
|
305
|
-
return
|
|
306
|
-
function e(d,
|
|
307
|
-
if (!(d instanceof
|
|
301
|
+
var $e = Re();
|
|
302
|
+
const Fe = /* @__PURE__ */ Ae($e);
|
|
303
|
+
var be = { exports: {} }, Ee;
|
|
304
|
+
function Ue() {
|
|
305
|
+
return Ee || (Ee = 1, (function(o) {
|
|
306
|
+
function e(d, m) {
|
|
307
|
+
if (!(d instanceof m)) throw new TypeError("Cannot call a class as a function");
|
|
308
308
|
}
|
|
309
|
-
function i(d,
|
|
310
|
-
return
|
|
309
|
+
function i(d, m, b) {
|
|
310
|
+
return m in d ? Object.defineProperty(d, m, { value: b, enumerable: !0, configurable: !0, writable: !0 }) : d[m] = b, d;
|
|
311
311
|
}
|
|
312
|
-
function s(d,
|
|
313
|
-
return
|
|
312
|
+
function s(d, m) {
|
|
313
|
+
return u(d) || a(d, m) || n(d, m) || t();
|
|
314
314
|
}
|
|
315
315
|
function t() {
|
|
316
316
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
317
317
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
318
318
|
}
|
|
319
|
-
function n(d,
|
|
319
|
+
function n(d, m) {
|
|
320
320
|
if (d) {
|
|
321
|
-
if (typeof d == "string") return r(d,
|
|
321
|
+
if (typeof d == "string") return r(d, m);
|
|
322
322
|
var b = Object.prototype.toString.call(d).slice(8, -1);
|
|
323
|
-
return b === "Object" && d.constructor && (b = d.constructor.name), b === "Map" || b === "Set" ? Array.from(d) : b === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b) ? r(d,
|
|
323
|
+
return b === "Object" && d.constructor && (b = d.constructor.name), b === "Map" || b === "Set" ? Array.from(d) : b === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b) ? r(d, m) : void 0;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
function r(d,
|
|
327
|
-
(
|
|
328
|
-
for (var b = 0,
|
|
329
|
-
return
|
|
326
|
+
function r(d, m) {
|
|
327
|
+
(m == null || m > d.length) && (m = d.length);
|
|
328
|
+
for (var b = 0, x = new Array(m); b < m; b++) x[b] = d[b];
|
|
329
|
+
return x;
|
|
330
330
|
}
|
|
331
|
-
function a(d,
|
|
331
|
+
function a(d, m) {
|
|
332
332
|
if (typeof Symbol < "u" && Symbol.iterator in Object(d)) {
|
|
333
|
-
var b = [],
|
|
333
|
+
var b = [], x = !0, L = !1, M = void 0;
|
|
334
334
|
try {
|
|
335
|
-
for (var
|
|
336
|
-
} catch (
|
|
337
|
-
|
|
335
|
+
for (var Y, et = d[Symbol.iterator](); !(x = (Y = et.next()).done) && (b.push(Y.value), !m || b.length !== m); x = !0) ;
|
|
336
|
+
} catch (st) {
|
|
337
|
+
L = !0, M = st;
|
|
338
338
|
} finally {
|
|
339
339
|
try {
|
|
340
|
-
|
|
340
|
+
x || et.return == null || et.return();
|
|
341
341
|
} finally {
|
|
342
|
-
if (
|
|
342
|
+
if (L) throw M;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
return b;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function u(d) {
|
|
349
349
|
if (Array.isArray(d)) return d;
|
|
350
350
|
}
|
|
351
351
|
(function() {
|
|
352
352
|
function d(l) {
|
|
353
353
|
return ["elInY+elHeight", "elCenterY-".concat(l = 0 < arguments.length && l !== void 0 ? l : 30), "elCenterY", "elCenterY+".concat(l), "elOutY-elHeight"];
|
|
354
354
|
}
|
|
355
|
-
var
|
|
356
|
-
return
|
|
357
|
-
}, fadeIn: function(l,
|
|
358
|
-
return { opacity: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length &&
|
|
359
|
-
}, fadeOut: function(l,
|
|
360
|
-
return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length &&
|
|
361
|
-
}, blurInOut: function(l,
|
|
362
|
-
return
|
|
363
|
-
}, blurIn: function(l,
|
|
364
|
-
return { blur: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length &&
|
|
365
|
-
}, blurOut: function(l,
|
|
366
|
-
return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [0, 1 < arguments.length &&
|
|
367
|
-
}, scaleInOut: function(l,
|
|
368
|
-
return
|
|
369
|
-
}, scaleIn: function(l,
|
|
370
|
-
return { scale: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length &&
|
|
371
|
-
}, scaleOut: function(l,
|
|
372
|
-
return { scale: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length &&
|
|
373
|
-
}, slideX: function(l,
|
|
374
|
-
return { translateX: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length &&
|
|
375
|
-
}, slideY: function(l,
|
|
376
|
-
return { translateY: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length &&
|
|
377
|
-
}, spin: function(l,
|
|
378
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotate: [[0, l], [0, 1 < arguments.length &&
|
|
379
|
-
}, flipX: function(l,
|
|
380
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateX: [[0, l], [0, 1 < arguments.length &&
|
|
381
|
-
}, flipY: function(l,
|
|
382
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateY: [[0, l], [0, 1 < arguments.length &&
|
|
383
|
-
}, jiggle: function(l,
|
|
384
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 50,
|
|
385
|
-
}, seesaw: function(l,
|
|
386
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 50,
|
|
387
|
-
}, zigzag: function(l,
|
|
388
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 100,
|
|
389
|
-
}, hueRotate: function(l,
|
|
390
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 600, { "hue-rotate": [[0, l], [0, 1 < arguments.length &&
|
|
391
|
-
} },
|
|
355
|
+
var m, b, x, L, M, Y, et = { fadeInOut: function(l, f) {
|
|
356
|
+
return f = 1 < arguments.length && f !== void 0 ? f : 0, { opacity: [d(0 < arguments.length && l !== void 0 ? l : 30), [f, 1, 1, 1, f]] };
|
|
357
|
+
}, fadeIn: function(l, f) {
|
|
358
|
+
return { opacity: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && f !== void 0 ? f : 0, 1]] };
|
|
359
|
+
}, fadeOut: function(l, f) {
|
|
360
|
+
return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length && f !== void 0 ? f : 0]] };
|
|
361
|
+
}, blurInOut: function(l, f) {
|
|
362
|
+
return f = 1 < arguments.length && f !== void 0 ? f : 20, { blur: [d(0 < arguments.length && l !== void 0 ? l : 100), [f, 0, 0, 0, f]] };
|
|
363
|
+
}, blurIn: function(l, f) {
|
|
364
|
+
return { blur: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && f !== void 0 ? f : 20, 0]] };
|
|
365
|
+
}, blurOut: function(l, f) {
|
|
366
|
+
return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [0, 1 < arguments.length && f !== void 0 ? f : 20]] };
|
|
367
|
+
}, scaleInOut: function(l, f) {
|
|
368
|
+
return f = 1 < arguments.length && f !== void 0 ? f : 0.6, { scale: [d(0 < arguments.length && l !== void 0 ? l : 100), [f, 1, 1, 1, f]] };
|
|
369
|
+
}, scaleIn: function(l, f) {
|
|
370
|
+
return { scale: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && f !== void 0 ? f : 0.6, 1]] };
|
|
371
|
+
}, scaleOut: function(l, f) {
|
|
372
|
+
return { scale: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length && f !== void 0 ? f : 0.6]] };
|
|
373
|
+
}, slideX: function(l, f) {
|
|
374
|
+
return { translateX: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length && f !== void 0 ? f : 500]] };
|
|
375
|
+
}, slideY: function(l, f) {
|
|
376
|
+
return { translateY: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length && f !== void 0 ? f : 500]] };
|
|
377
|
+
}, spin: function(l, f) {
|
|
378
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotate: [[0, l], [0, 1 < arguments.length && f !== void 0 ? f : 360], { modValue: l }] };
|
|
379
|
+
}, flipX: function(l, f) {
|
|
380
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateX: [[0, l], [0, 1 < arguments.length && f !== void 0 ? f : 360], { modValue: l }] };
|
|
381
|
+
}, flipY: function(l, f) {
|
|
382
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateY: [[0, l], [0, 1 < arguments.length && f !== void 0 ? f : 360], { modValue: l }] };
|
|
383
|
+
}, jiggle: function(l, f) {
|
|
384
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 50, f = 1 < arguments.length && f !== void 0 ? f : 40, { skewX: [[0, +l, 2 * l, 3 * l, 4 * l], [0, f, 0, -f, 0], { modValue: 4 * l }] };
|
|
385
|
+
}, seesaw: function(l, f) {
|
|
386
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 50, f = 1 < arguments.length && f !== void 0 ? f : 40, { skewY: [[0, +l, 2 * l, 3 * l, 4 * l], [0, f, 0, -f, 0], { modValue: 4 * l }] };
|
|
387
|
+
}, zigzag: function(l, f) {
|
|
388
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 100, f = 1 < arguments.length && f !== void 0 ? f : 100, { translateX: [[0, +l, 2 * l, 3 * l, 4 * l], [0, f, 0, -f, 0], { modValue: 4 * l }] };
|
|
389
|
+
}, hueRotate: function(l, f) {
|
|
390
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 600, { "hue-rotate": [[0, l], [0, 1 < arguments.length && f !== void 0 ? f : 360], { modValue: l }] };
|
|
391
|
+
} }, st = (m = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"], b = ["blur", "hue-rotate", "brightness"], x = ["translateX", "translateY", "translateZ"], L = ["perspective", "border-radius", "blur", "translateX", "translateY", "translateZ"], M = ["hue-rotate", "rotate", "rotateX", "rotateY", "skew", "skewX", "skewY"], Y = { easeInQuad: function(l) {
|
|
392
392
|
return l * l;
|
|
393
393
|
}, easeOutQuad: function(l) {
|
|
394
394
|
return l * (2 - l);
|
|
@@ -413,158 +413,158 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
413
413
|
}, easeInOutQuint: function(l) {
|
|
414
414
|
return l < 0.5 ? 16 * l * l * l * l * l : 1 + 16 * --l * l * l * l * l;
|
|
415
415
|
}, easeOutBounce: function(l) {
|
|
416
|
-
var
|
|
417
|
-
return l < 1 /
|
|
416
|
+
var f = 7.5625, S = 2.75;
|
|
417
|
+
return l < 1 / S ? f * l * l : l < 2 / S ? f * (l -= 1.5 / S) * l + 0.75 : l < 2.5 / S ? f * (l -= 2.25 / S) * l + 0.9375 : f * (l -= 2.625 / S) * l + 0.984375;
|
|
418
418
|
}, easeInBounce: function(l) {
|
|
419
|
-
return 1 -
|
|
419
|
+
return 1 - Y.easeOutBounce(1 - l);
|
|
420
420
|
}, easeOutBack: function(l) {
|
|
421
421
|
return 1 + 2.70158 * Math.pow(l - 1, 3) + 1.70158 * Math.pow(l - 1, 2);
|
|
422
422
|
}, easeInBack: function(l) {
|
|
423
423
|
return 2.70158 * l * l * l - 1.70158 * l * l;
|
|
424
424
|
} }, new function l() {
|
|
425
|
-
var
|
|
426
|
-
e(this, l), i(this, "drivers", []), i(this, "elements", []), i(this, "frame", 0), i(this, "debug", !1), i(this, "windowWidth", 0), i(this, "windowHeight", 0), i(this, "presets",
|
|
427
|
-
|
|
425
|
+
var f = this;
|
|
426
|
+
e(this, l), i(this, "drivers", []), i(this, "elements", []), i(this, "frame", 0), i(this, "debug", !1), i(this, "windowWidth", 0), i(this, "windowHeight", 0), i(this, "presets", et), i(this, "debugData", { frameLengths: [] }), i(this, "init", function() {
|
|
427
|
+
f.findAndAddElements(), window.requestAnimationFrame(f.onAnimationFrame), f.windowWidth = document.body.clientWidth, f.windowHeight = document.body.clientHeight, window.onresize = f.onWindowResize;
|
|
428
428
|
}), i(this, "onWindowResize", function() {
|
|
429
|
-
document.body.clientWidth ===
|
|
430
|
-
return
|
|
429
|
+
document.body.clientWidth === f.windowWidth && document.body.clientHeight === f.windowHeight || (f.windowWidth = document.body.clientWidth, f.windowHeight = document.body.clientHeight, f.elements.forEach(function(S) {
|
|
430
|
+
return S.calculateTransforms();
|
|
431
431
|
}));
|
|
432
|
-
}), i(this, "onAnimationFrame", function(
|
|
433
|
-
|
|
434
|
-
var
|
|
435
|
-
|
|
436
|
-
j[
|
|
437
|
-
}),
|
|
438
|
-
|
|
439
|
-
}),
|
|
440
|
-
return
|
|
441
|
-
}, 0) / 60), console.log("Average frame calculation time: ".concat(
|
|
442
|
-
}), i(this, "addDriver", function(
|
|
432
|
+
}), i(this, "onAnimationFrame", function(S) {
|
|
433
|
+
f.debug && (f.debugData.frameStart = Date.now());
|
|
434
|
+
var E, j = {};
|
|
435
|
+
f.drivers.forEach(function(q) {
|
|
436
|
+
j[q.name] = q.getValue(f.frame);
|
|
437
|
+
}), f.elements.forEach(function(q) {
|
|
438
|
+
q.update(j, f.frame);
|
|
439
|
+
}), f.debug && f.debugData.frameLengths.push(Date.now() - f.debugData.frameStart), f.frame % 60 == 0 && f.debug && (E = Math.ceil(f.debugData.frameLengths.reduce(function(q, J) {
|
|
440
|
+
return q + J;
|
|
441
|
+
}, 0) / 60), console.log("Average frame calculation time: ".concat(E, "ms")), f.debugData.frameLengths = []), f.frame++, window.requestAnimationFrame(f.onAnimationFrame);
|
|
442
|
+
}), i(this, "addDriver", function(S, E) {
|
|
443
443
|
var j = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
444
|
-
|
|
445
|
-
}), i(this, "removeDriver", function(
|
|
446
|
-
|
|
447
|
-
return
|
|
444
|
+
f.drivers.push(new _t(S, E, j));
|
|
445
|
+
}), i(this, "removeDriver", function(S) {
|
|
446
|
+
f.drivers = f.drivers.filter(function(E) {
|
|
447
|
+
return E.name !== S;
|
|
448
448
|
});
|
|
449
449
|
}), i(this, "findAndAddElements", function() {
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
|
|
453
|
-
|
|
450
|
+
f.elements = [], document.querySelectorAll(".lax").forEach(function(S) {
|
|
451
|
+
var E = [];
|
|
452
|
+
S.classList.forEach(function(q) {
|
|
453
|
+
q.includes("lax_preset") && (q = q.replace("lax_preset_", ""), E.push(q));
|
|
454
454
|
});
|
|
455
|
-
var j = i({}, "scrollY", { presets:
|
|
456
|
-
|
|
455
|
+
var j = i({}, "scrollY", { presets: E });
|
|
456
|
+
f.elements.push(new Tt(".lax", f, S, j, 0, {}));
|
|
457
457
|
});
|
|
458
|
-
}), i(this, "addElements", function(
|
|
459
|
-
document.querySelectorAll(
|
|
460
|
-
|
|
458
|
+
}), i(this, "addElements", function(S, E, j) {
|
|
459
|
+
document.querySelectorAll(S).forEach(function(q, J) {
|
|
460
|
+
f.elements.push(new Tt(S, f, q, E, J, j));
|
|
461
461
|
});
|
|
462
|
-
}), i(this, "removeElements", function(
|
|
463
|
-
|
|
464
|
-
return
|
|
462
|
+
}), i(this, "removeElements", function(S) {
|
|
463
|
+
f.elements = f.elements.filter(function(E) {
|
|
464
|
+
return E.selector !== S;
|
|
465
465
|
});
|
|
466
|
-
}), i(this, "addElement", function(
|
|
467
|
-
|
|
468
|
-
}), i(this, "removeElement", function(
|
|
469
|
-
|
|
470
|
-
return
|
|
466
|
+
}), i(this, "addElement", function(S, E, j) {
|
|
467
|
+
f.elements.push(new Tt("", f, S, E, 0, j));
|
|
468
|
+
}), i(this, "removeElement", function(S) {
|
|
469
|
+
f.elements = f.elements.filter(function(E) {
|
|
470
|
+
return E.domElement !== S;
|
|
471
471
|
});
|
|
472
472
|
});
|
|
473
473
|
}());
|
|
474
|
-
function
|
|
474
|
+
function Dt(l, f) {
|
|
475
475
|
if (Array.isArray(l)) return l;
|
|
476
|
-
for (var
|
|
477
|
-
return parseInt(
|
|
478
|
-
}).sort(function(
|
|
479
|
-
return
|
|
480
|
-
}),
|
|
481
|
-
var
|
|
482
|
-
if (
|
|
483
|
-
|
|
476
|
+
for (var S = Object.keys(l).map(function(J) {
|
|
477
|
+
return parseInt(J);
|
|
478
|
+
}).sort(function(J, O) {
|
|
479
|
+
return O < J ? 1 : -1;
|
|
480
|
+
}), E = S[S.length - 1], j = 0; j < S.length; j++) {
|
|
481
|
+
var q = S[j];
|
|
482
|
+
if (f < q) {
|
|
483
|
+
E = q;
|
|
484
484
|
break;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
return l[
|
|
487
|
+
return l[E];
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
var
|
|
489
|
+
function St(l, T, S) {
|
|
490
|
+
var E = T.width, j = T.height, c = T.x, C = T.y;
|
|
491
491
|
if (typeof l == "number") return l;
|
|
492
|
-
var
|
|
493
|
-
return Function("return ".concat(l.replace(/screenWidth/g,
|
|
494
|
-
}
|
|
495
|
-
function
|
|
496
|
-
var
|
|
497
|
-
e(this,
|
|
498
|
-
var
|
|
499
|
-
return j %
|
|
500
|
-
}), this.name = l, this.getValueFn =
|
|
501
|
-
|
|
492
|
+
var q, J = document.body.scrollHeight, O = document.body.scrollWidth, y = window.innerWidth, h = window.innerHeight, w = s((q = window.pageXOffset !== void 0, w = (document.compatMode || "") === "CSS1Compat", T = q ? window.pageXOffset : (w ? document.documentElement : document.body).scrollLeft, [q ? window.pageYOffset : (w ? document.documentElement : document.body).scrollTop, T]), 2), T = w[0], c = c + w[1], w = c + E, C = C + T, T = C + j;
|
|
493
|
+
return Function("return ".concat(l.replace(/screenWidth/g, y).replace(/screenHeight/g, h).replace(/pageHeight/g, J).replace(/pageWidth/g, O).replace(/elWidth/g, E).replace(/elHeight/g, j).replace(/elInY/g, C - h).replace(/elOutY/g, T).replace(/elCenterY/g, C + j / 2 - h / 2).replace(/elInX/g, c - y).replace(/elOutX/g, w).replace(/elCenterX/g, c + E / 2 - y / 2).replace(/index/g, S)))();
|
|
494
|
+
}
|
|
495
|
+
function _t(l, f) {
|
|
496
|
+
var S = this, E = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
497
|
+
e(this, _t), i(this, "getValueFn", void 0), i(this, "name", ""), i(this, "lastValue", 0), i(this, "frameStep", 1), i(this, "m1", 0), i(this, "m2", 0), i(this, "inertia", 0), i(this, "inertiaEnabled", !1), i(this, "getValue", function(j) {
|
|
498
|
+
var q = S.lastValue;
|
|
499
|
+
return j % S.frameStep == 0 && (q = S.getValueFn(j)), S.inertiaEnabled && (j = q - S.lastValue, S.m1 = 0.8 * S.m1 + j * (1 - 0.8), S.m2 = 0.8 * S.m2 + S.m1 * (1 - 0.8), S.inertia = Math.round(5e3 * S.m2) / 15e3), S.lastValue = q, [S.lastValue, S.inertia];
|
|
500
|
+
}), this.name = l, this.getValueFn = f, Object.keys(E).forEach(function(j) {
|
|
501
|
+
S[j] = E[j];
|
|
502
502
|
}), this.lastValue = this.getValueFn(0);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
var j = this,
|
|
506
|
-
e(this,
|
|
507
|
-
var
|
|
508
|
-
for (
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
for (
|
|
513
|
-
var
|
|
514
|
-
|
|
515
|
-
var
|
|
516
|
-
if (
|
|
517
|
-
|
|
518
|
-
}),
|
|
519
|
-
if (
|
|
520
|
-
var
|
|
521
|
-
return
|
|
522
|
-
})(
|
|
504
|
+
function Tt(l, f, S, E) {
|
|
505
|
+
var j = this, q = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0, O = 5 < arguments.length && arguments[5] !== void 0 ? arguments[5] : {};
|
|
506
|
+
e(this, Tt), i(this, "domElement", void 0), i(this, "transformsData", void 0), i(this, "styles", {}), i(this, "selector", ""), i(this, "groupIndex", 0), i(this, "laxInstance", void 0), i(this, "onUpdate", void 0), i(this, "update", function(y, h) {
|
|
507
|
+
var c, w = j.transforms, C = {};
|
|
508
|
+
for (c in w) {
|
|
509
|
+
var T = w[c];
|
|
510
|
+
y[c] || console.error("No lax driver with name: ", c);
|
|
511
|
+
var D, W = s(y[c], 2), B = W[0], jt = W[1];
|
|
512
|
+
for (D in T) {
|
|
513
|
+
var tt, ht = s(T[D], 3), X = ht[0], R = ht[1], At = ht[2], $ = At === void 0 ? {} : At, dt = $.modValue, mt = $.frameStep, Ct = mt === void 0 ? 1 : mt, ct = $.easing, ht = $.inertia, At = $.inertiaMode, mt = $.cssFn, $ = $.cssUnit, $ = $ === void 0 ? "" : $, ct = Y[ct];
|
|
514
|
+
h % Ct == 0 && (ct = (function(nt, at, bt, yt) {
|
|
515
|
+
var rt = 0;
|
|
516
|
+
if (nt.forEach(function(kt) {
|
|
517
|
+
kt < bt && rt++;
|
|
518
|
+
}), rt <= 0) return at[0];
|
|
519
|
+
if (rt >= nt.length) return at[nt.length - 1];
|
|
520
|
+
var vt, H = (H = nt[vt = rt - 1], nt = nt[rt], (bt - H) / (nt - H));
|
|
521
|
+
return yt && (H = yt(H)), vt = at[vt], at = at[rt], vt * (1 - (H = H)) + at * H;
|
|
522
|
+
})(X, R, dt ? B % dt : B, ct), ht && (tt = jt * ht, At === "absolute" && (tt = Math.abs(tt)), ct += tt), tt = ($ || L.includes(D) ? "px" : M.includes(D) ? "deg" : "") == "px" ? 0 : 3, tt = ct.toFixed(tt), C[D] = mt ? mt(tt, j.domElement) : tt + $);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
j.applyStyles(
|
|
525
|
+
j.applyStyles(C), j.onUpdate && j.onUpdate(y, j.domElement);
|
|
526
526
|
}), i(this, "calculateTransforms", function() {
|
|
527
527
|
j.transforms = {};
|
|
528
|
-
var
|
|
529
|
-
for (
|
|
530
|
-
var
|
|
531
|
-
(
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
})) : console.error("Lax preset cannot be found with name: ",
|
|
536
|
-
}), delete
|
|
537
|
-
for (var
|
|
538
|
-
var
|
|
539
|
-
return
|
|
540
|
-
}),
|
|
541
|
-
return
|
|
528
|
+
var y, h = j.laxInstance.windowWidth;
|
|
529
|
+
for (y in j.transformsData) (function(c) {
|
|
530
|
+
var w = j.transformsData[c], C = {}, T = w.presets;
|
|
531
|
+
(T === void 0 ? [] : T).forEach(function(X) {
|
|
532
|
+
var B, R = s(X.split(":"), 3), jt = R[0], tt = R[1], X = R[2], R = window.lax.presets[jt];
|
|
533
|
+
R ? (B = R(tt, X), Object.keys(B).forEach(function(dt) {
|
|
534
|
+
w[dt] = B[dt];
|
|
535
|
+
})) : console.error("Lax preset cannot be found with name: ", jt);
|
|
536
|
+
}), delete w.presets;
|
|
537
|
+
for (var D in w) (function(W) {
|
|
538
|
+
var B = s(w[W], 3), X = B[0], tt = X === void 0 ? [-1e9, 1e9] : X, X = B[1], X = X === void 0 ? [-1e9, 1e9] : X, B = B[2], B = B === void 0 ? {} : B, jt = j.domElement.getBoundingClientRect(), tt = Dt(tt, h).map(function(R) {
|
|
539
|
+
return St(R, jt, j.groupIndex);
|
|
540
|
+
}), X = Dt(X, h).map(function(R) {
|
|
541
|
+
return St(R, jt, j.groupIndex);
|
|
542
542
|
});
|
|
543
|
-
|
|
544
|
-
})(
|
|
545
|
-
j.transforms[
|
|
546
|
-
})(
|
|
547
|
-
}), i(this, "applyStyles", function(
|
|
548
|
-
var
|
|
549
|
-
var
|
|
550
|
-
|
|
551
|
-
}),
|
|
552
|
-
Object.keys(
|
|
553
|
-
j.domElement.style.setProperty(
|
|
543
|
+
C[W] = [tt, X, B];
|
|
544
|
+
})(D);
|
|
545
|
+
j.transforms[c] = C;
|
|
546
|
+
})(y);
|
|
547
|
+
}), i(this, "applyStyles", function(y) {
|
|
548
|
+
var h, c, w, C = (h = y, c = { transform: "", filter: "" }, w = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(h).forEach(function(T) {
|
|
549
|
+
var D = h[T], W = L.includes(T) ? "px" : M.includes(T) ? "deg" : "";
|
|
550
|
+
x.includes(T) ? w[T] = D : m.includes(T) ? c.transform += "".concat(T, "(").concat(D).concat(W, ") ") : b.includes(T) ? c.filter += "".concat(T, "(").concat(D).concat(W, ") ") : c[T] = "".concat(D).concat(W, " ");
|
|
551
|
+
}), c.transform = "translate3d(".concat(w.translateX, "px, ").concat(w.translateY, "px, ").concat(w.translateZ, "px) ").concat(c.transform), c);
|
|
552
|
+
Object.keys(C).forEach(function(T) {
|
|
553
|
+
j.domElement.style.setProperty(T, C[T]);
|
|
554
554
|
});
|
|
555
|
-
}), this.selector = l, this.laxInstance =
|
|
556
|
-
var
|
|
557
|
-
Object.keys(
|
|
558
|
-
|
|
559
|
-
}),
|
|
555
|
+
}), this.selector = l, this.laxInstance = f, this.domElement = S, this.transformsData = E, this.groupIndex = q;
|
|
556
|
+
var J = (q = O.style) === void 0 ? {} : q, O = O.onUpdate;
|
|
557
|
+
Object.keys(J).forEach(function(y) {
|
|
558
|
+
S.style.setProperty(y, J[y]);
|
|
559
|
+
}), O && (this.onUpdate = O), this.calculateTransforms();
|
|
560
560
|
}
|
|
561
|
-
o.exports !== void 0 ? o.exports =
|
|
561
|
+
o.exports !== void 0 ? o.exports = st : window.lax = st;
|
|
562
562
|
})();
|
|
563
|
-
})(
|
|
563
|
+
})(be)), be.exports;
|
|
564
564
|
}
|
|
565
|
-
var
|
|
566
|
-
const Zt = /* @__PURE__ */
|
|
567
|
-
class
|
|
565
|
+
var Ze = Ue();
|
|
566
|
+
const Zt = /* @__PURE__ */ Ae(Ze);
|
|
567
|
+
class Ge {
|
|
568
568
|
constructor(e = {}) {
|
|
569
569
|
const i = {
|
|
570
570
|
// transition: 'all 0.3s ease-out',
|
|
@@ -589,19 +589,19 @@ class Ke {
|
|
|
589
589
|
return;
|
|
590
590
|
}
|
|
591
591
|
t.style.transform = "";
|
|
592
|
-
let r = this.getObjVal(t, "data-top-bottom"), a = this.getObjVal(t, "data-top"),
|
|
593
|
-
t.hasAttribute("data-xs") && (
|
|
592
|
+
let r = this.getObjVal(t, "data-top-bottom"), a = this.getObjVal(t, "data-top"), u = this.getObjVal(t, "data-50-top"), d = this.getObjVal(t, "data-100-top"), m = this.getObjVal(t, "data-center-bottom"), b = this.getObjVal(t, "data-center"), x = this.getObjVal(t, "data-center-top"), L = this.getObjVal(t, "data--400-bottom"), M = this.getObjVal(t, "data--300-bottom"), Y = this.getObjVal(t, "data--200-bottom"), et = this.getObjVal(t, "data--150-bottom"), st = this.getObjVal(t, "data--100-bottom"), Dt = this.getObjVal(t, "data--50-bottom"), St = this.getObjVal(t, "data-bottom"), _t = this.getObjVal(t, "data-50-bottom"), Tt = this.getObjVal(t, "data-100-bottom"), l = this.getObjVal(t, "data-150-bottom"), f = this.getObjVal(t, "data-200-bottom"), S = this.getObjVal(t, "data-300-bottom"), E = this.getObjVal(t, "data-400-bottom"), j = this.getObjVal(t, "data-bottom-top"), q = this.getObjVal(t, "data-in"), J = this.getObjVal(t, "data-in-150"), O = this.getObjVal(t, "data-in-300"), y = this.getObjVal(t, "data-cen--150"), h = this.getObjVal(t, "data-cen"), c = this.getObjVal(t, "data-cen-150"), w = this.getObjVal(t, "data-out--300"), C = this.getObjVal(t, "data-out--150"), T = this.getObjVal(t, "data-out"), D = !1;
|
|
593
|
+
t.hasAttribute("data-xs") && (D = !0);
|
|
594
|
+
let W = !1;
|
|
595
|
+
t.hasAttribute("data-sm") && (W = !0);
|
|
594
596
|
let B = !1;
|
|
595
|
-
t.hasAttribute("data-
|
|
596
|
-
let
|
|
597
|
-
t.hasAttribute("data-md") && (
|
|
598
|
-
let
|
|
599
|
-
|
|
600
|
-
let
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
Object.keys(j).length !== 0 && (m = this.parseObj(j, "elInY", m)), Object.keys(L).length !== 0 && (m = this.parseObj(L, "elInY+50", m)), Object.keys(E).length !== 0 && (m = this.parseObj(E, "elInY+100", m)), Object.keys(g).length !== 0 && (m = this.parseObj(g, "elInY+150", m)), Object.keys(l).length !== 0 && (m = this.parseObj(l, "elInY+200", m)), Object.keys(Ct).length !== 0 && (m = this.parseObj(Ct, "elInY+250", m)), Object.keys(jt).length !== 0 && (m = this.parseObj(jt, "elInY+300", m)), Object.keys(_t).length !== 0 && (m = this.parseObj(_t, "elInY+350", m)), Object.keys(It).length !== 0 && (m = this.parseObj(It, "elInY+400", m)), Object.keys(et).length !== 0 && (m = this.parseObj(et, "elInY+450", m)), Object.keys(dt).length !== 0 && (m = this.parseObj(dt, "elInY+500", m)), Object.keys(M).length !== 0 && (m = this.parseObj(M, "elInY+550", m)), Object.keys(P).length !== 0 && (m = this.parseObj(P, "elInY+600", m)), Object.keys(q).length !== 0 && (m = this.parseObj(q, "elInY+650", m)), Object.keys(_).length !== 0 && (m = this.parseObj(_, "elCenterY-300", m)), Object.keys(b).length !== 0 && (m = this.parseObj(b, "elCenterY", m)), Object.keys(y).length !== 0 && (m = this.parseObj(y, "elCenterY+100", m)), Object.keys(d).length !== 0 && (m = this.parseObj(d, "elCenterY+200", m)), Object.keys(f).length !== 0 && (m = this.parseObj(f, "elCenterY+300", m)), Object.keys(a).length !== 0 && (m = this.parseObj(a, "elOutY-300", m)), Object.keys(r).length !== 0 && (m = this.parseObj(r, "elOutY", m)), Object.keys(D).length !== 0 && (m = this.parseObj(D, "elInY", m)), Object.keys(st).length !== 0 && (m = this.parseObj(st, "elInY+150", m)), Object.keys(T).length !== 0 && (m = this.parseObj(T, "elInY+300 ", m)), Object.keys(v).length !== 0 && (m = this.parseObj(v, "elCenterY-150", m)), Object.keys(c).length !== 0 && (m = this.parseObj(c, "elCenterY", m)), Object.keys(u).length !== 0 && (m = this.parseObj(u, "elCenterY+150", m)), Object.keys(O).length !== 0 && (m = this.parseObj(O, "elOutY-300 ", m)), Object.keys(I).length !== 0 && (m = this.parseObj(I, "elOutY-150 ", m)), Object.keys(C).length !== 0 && (m = this.parseObj(C, "elOutY", m)), Object.keys(ot).length !== 0 && (m = this.parseObj(ot, "elInY-200", m)), Object.keys(lt).length !== 0 && (m = this.parseObj(lt, "elInY-100", m)), Object.keys(G).length !== 0 && (m = this.parseObj(G, "elInY", m)), Object.keys(U).length !== 0 && (m = this.parseObj(U, "elInY+100", m)), Object.keys(ct).length !== 0 && (m = this.parseObj(ct, "elInY+200", m)), Object.keys(Vt).length !== 0 && (m = this.parseObj(Vt, "elInY+300 ", m)), Object.keys(ft).length !== 0 && (m = this.parseObj(ft, "elInY+400 ", m)), Object.keys(Tt).length !== 0 && (m = this.parseObj(Tt, "elInY+500 ", m)), Object.keys(yt).length !== 0 && (m = this.parseObj(yt, "elInY+600 ", m)), Object.keys(J).length !== 0 && (m = this.parseObj(J, "elInY+700 ", m)), Object.keys(vt).length !== 0 && (m = this.parseObj(vt, "elInY+800 ", m)), Object.keys(tt).length !== 0 && (m = this.parseObj(tt, "elInY+900 ", m)), Object.keys(ht).length !== 0 && (m = this.parseObj(ht, "elInY+1000 ", m)), Object.keys(gt).length !== 0 && (m = this.parseObj(gt, "elInY+1100 ", m)), Object.keys(wt).length !== 0 && (m = this.parseObj(wt, "elInY+1200 ", m)), Object.keys(pt).length !== 0 && (m = this.parseObj(pt, "elInY+1300 ", m)), Object.keys(Ot).length !== 0 && (m = this.parseObj(Ot, "elInY+1400 ", m)), Object.keys(Q).length !== 0 && (m = this.parseObj(Q, "elInY+1500 ", m)), Object.keys(Yt).length !== 0 && (m = this.parseObj(Yt, "elInY+1600 ", m)), Object.keys(Mt).length !== 0 && (m = this.parseObj(Mt, "elInY+1700 ", m)), Object.keys(xt).length !== 0 && (m = this.parseObj(xt, "elInY+1800 ", m)), Object.keys(qt).length !== 0 && (m = this.parseObj(qt, "elInY+1900 ", m)), Object.keys(X).length !== 0 && (m = this.parseObj(X, "elInY+2000 ", m)), Object.keys(h).length !== 0 && (m = this.parseObj(h, "elInY+2100 ", m)), Object.keys(x).length !== 0 && (m = this.parseObj(x, "elInY+2200 ", m)), Object.keys(k).length !== 0 && (m = this.parseObj(k, "elInY+2300 ", m)), Object.keys(H).length !== 0 && (m = this.parseObj(H, "elInY+2400 ", m)), Object.keys(W).length !== 0 && (m = this.parseObj(W, "elInY+2500 ", m)), Object.keys(p).length !== 0 && (m = this.parseObj(p, "elInY+2600 ", m)), Object.keys(w).length !== 0 && (m = this.parseObj(w, "elInY+2700 ", m)), Object.keys(S).length !== 0 && (m = this.parseObj(S, "elInY+2800 ", m)), Object.keys(A).length !== 0 && (m = this.parseObj(A, "elInY+2900 ", m)), Object.keys(V).length !== 0 && (m = this.parseObj(V, "elInY+3000 ", m)), t.style.transition = "", t.setAttribute("data-dummy-selector", "1"), Zt.addElements("[data-dummy-selector]", {
|
|
604
|
-
scrollY: m
|
|
597
|
+
t.hasAttribute("data-md") && (B = !0), t.hasAttribute("data-lg"), t.hasAttribute("data-xl");
|
|
598
|
+
let jt = {}, tt = {}, X = {}, R = {}, dt = {}, Ct = {}, ht = {}, At = {}, mt = {}, $ = {}, ct = {}, nt = {}, at = {}, bt = {}, yt = {}, rt = {}, vt = {}, H = {}, kt = {}, Vt = {}, ut = {}, Yt = {}, N = {}, qt = {}, wt = {}, Mt = {}, Nt = {}, zt = {}, p = {}, v = {}, A = {}, _ = {}, V = {};
|
|
599
|
+
(i > 1280 || i > 970 && i <= 1280 && !B || i > 760 && i <= 970 && !W || i <= 760 && !D) && (X = this.getObjVal(t, "data-t"), R = this.getObjVal(t, "data-t-100"), dt = this.getObjVal(t, "data-t-200"), Ct = this.getObjVal(t, "data-t-300"), ht = this.getObjVal(t, "data-t-400"), At = this.getObjVal(t, "data-t-500"), mt = this.getObjVal(t, "data-t-600"), $ = this.getObjVal(t, "data-t-700"), ct = this.getObjVal(t, "data-t-800"), nt = this.getObjVal(t, "data-t-900"), at = this.getObjVal(t, "data-t-1000"), bt = this.getObjVal(t, "data-t-1100"), yt = this.getObjVal(t, "data-t-1200"), rt = this.getObjVal(t, "data-t-1300"), vt = this.getObjVal(t, "data-t-1400"), H = this.getObjVal(t, "data-t-1500"), kt = this.getObjVal(t, "data-t-1600"), Vt = this.getObjVal(t, "data-t-1700"), ut = this.getObjVal(t, "data-t-1800"), Yt = this.getObjVal(t, "data-t-1900"), N = this.getObjVal(t, "data-t-2000"), qt = this.getObjVal(t, "data-t-2100"), wt = this.getObjVal(t, "data-t-2200"), Mt = this.getObjVal(t, "data-t-2300"), Nt = this.getObjVal(t, "data-t-2400"), zt = this.getObjVal(t, "data-t-2500"), p = this.getObjVal(t, "data-t-2600"), v = this.getObjVal(t, "data-t-2700"), A = this.getObjVal(t, "data-t-2800")), i > 970 && i <= 1280 && B && (t.hasAttribute("data-md-t") && (X = this.getObjVal(t, "data-md-t")), t.hasAttribute("data-md-t-100") && (R = this.getObjVal(t, "data-md-t-100")), t.hasAttribute("data-md-t-200") && (dt = this.getObjVal(t, "data-md-t-200")), t.hasAttribute("data-md-t-300") && (Ct = this.getObjVal(t, "data-md-t-300")), t.hasAttribute("data-md-t-400") && (ht = this.getObjVal(t, "data-md-t-400")), t.hasAttribute("data-md-t-500") && (At = this.getObjVal(t, "data-md-t-500")), t.hasAttribute("data-md-t-600") && (mt = this.getObjVal(t, "data-md-t-600")), t.hasAttribute("data-md-t-700") && ($ = this.getObjVal(t, "data-md-t-700")), t.hasAttribute("data-md-t-800") && (ct = this.getObjVal(t, "data-md-t-800")), t.hasAttribute("data-md-t-900") && (nt = this.getObjVal(t, "data-md-t-900")), t.hasAttribute("data-md-t-1000") && (at = this.getObjVal(t, "data-md-t-1000")), t.hasAttribute("data-md-t-1100") && (bt = this.getObjVal(t, "data-md-t-1100")), t.hasAttribute("data-md-t-1200") && (yt = this.getObjVal(t, "data-md-t-1200")), t.hasAttribute("data-md-t-1300") && (rt = this.getObjVal(t, "data-md-t-1300")), t.hasAttribute("data-md-t-1400") && (vt = this.getObjVal(t, "data-md-t-1400")), t.hasAttribute("data-md-t-1500") && (H = this.getObjVal(t, "data-md-t-1500")), t.hasAttribute("data-md-t-1600") && (kt = this.getObjVal(t, "data-md-t-1600")), t.hasAttribute("data-md-t-1700") && (Vt = this.getObjVal(t, "data-md-t-1700")), t.hasAttribute("data-md-t-1800") && (ut = this.getObjVal(t, "data-md-t-1800")), t.hasAttribute("data-md-t-1900") && (Yt = this.getObjVal(t, "data-md-t-1900")), t.hasAttribute("data-md-t-2000") && (N = this.getObjVal(t, "data-md-t-2000")), t.hasAttribute("data-md-t-2100") && (qt = this.getObjVal(t, "data-md-t-2100")), t.hasAttribute("data-md-t-2200") && (wt = this.getObjVal(t, "data-md-t-2200")), t.hasAttribute("data-md-t-2300") && (Mt = this.getObjVal(t, "data-md-t-2300")), t.hasAttribute("data-md-t-2400") && (Nt = this.getObjVal(t, "data-md-t-2400")), t.hasAttribute("data-md-t-2500") && (zt = this.getObjVal(t, "data-md-t-2500")), t.hasAttribute("data-md-t-2600") && (p = this.getObjVal(t, "data-md-t-2600")), t.hasAttribute("data-md-t-2700") && (v = this.getObjVal(t, "data-md-t-2700")), t.hasAttribute("data-md-t-2800") && (A = this.getObjVal(t, "data-md-t-2800"))), i <= 970 && t.hasAttribute("m-data-out") && (T = this.getObjVal(t, "m-data-out")), (i > 760 && i <= 970 && W || i <= 760 && !D && W) && (t.hasAttribute("data-sm-t") && (X = this.getObjVal(t, "data-sm-t")), t.hasAttribute("data-sm-t-100") && (R = this.getObjVal(t, "data-sm-t-100")), t.hasAttribute("data-sm-t-200") && (dt = this.getObjVal(t, "data-sm-t-200")), t.hasAttribute("data-sm-t-300") && (Ct = this.getObjVal(t, "data-sm-t-300")), t.hasAttribute("data-sm-t-400") && (ht = this.getObjVal(t, "data-sm-t-400")), t.hasAttribute("data-sm-t-500") && (At = this.getObjVal(t, "data-sm-t-500")), t.hasAttribute("data-sm-t-600") && (mt = this.getObjVal(t, "data-sm-t-600")), t.hasAttribute("data-sm-t-700") && ($ = this.getObjVal(t, "data-sm-t-700")), t.hasAttribute("data-sm-t-800") && (ct = this.getObjVal(t, "data-sm-t-800")), t.hasAttribute("data-sm-t-900") && (nt = this.getObjVal(t, "data-sm-t-900")), t.hasAttribute("data-sm-t-1000") && (at = this.getObjVal(t, "data-sm-t-1000")), t.hasAttribute("data-sm-t-1100") && (bt = this.getObjVal(t, "data-sm-t-1100")), t.hasAttribute("data-sm-t-1200") && (yt = this.getObjVal(t, "data-sm-t-1200")), t.hasAttribute("data-sm-t-1300") && (rt = this.getObjVal(t, "data-sm-t-1300")), t.hasAttribute("data-sm-t-1400") && (vt = this.getObjVal(t, "data-sm-t-1400")), t.hasAttribute("data-sm-t-1500") && (H = this.getObjVal(t, "data-sm-t-1500")), t.hasAttribute("data-sm-t-1600") && (kt = this.getObjVal(t, "data-sm-t-1600")), t.hasAttribute("data-sm-t-1700") && (Vt = this.getObjVal(t, "data-sm-t-1700")), t.hasAttribute("data-sm-t-1800") && (ut = this.getObjVal(t, "data-sm-t-1800")), t.hasAttribute("data-sm-t-1900") && (Yt = this.getObjVal(t, "data-sm-t-1900")), t.hasAttribute("data-sm-t-2000") && (N = this.getObjVal(t, "data-sm-t-2000")), t.hasAttribute("data-sm-t-2100") && (qt = this.getObjVal(t, "data-sm-t-2100")), t.hasAttribute("data-sm-t-2200") && (wt = this.getObjVal(t, "data-sm-t-2200")), t.hasAttribute("data-sm-t-2300") && (Mt = this.getObjVal(t, "data-sm-t-2300")), t.hasAttribute("data-sm-t-2400") && (Nt = this.getObjVal(t, "data-sm-t-2400")), t.hasAttribute("data-sm-t-2500") && (zt = this.getObjVal(t, "data-sm-t-2500")), t.hasAttribute("data-sm-t-2600") && (p = this.getObjVal(t, "data-sm-t-2600")), t.hasAttribute("data-sm-t-2700") && (v = this.getObjVal(t, "data-sm-t-2700")), t.hasAttribute("data-sm-t-2800") && (A = this.getObjVal(t, "data-sm-t-2800"))), i <= 414 && D && (t.hasAttribute("data-xs-t") && (X = this.getObjVal(t, "data-xs-t")), t.hasAttribute("data-xs-t-100") && (R = this.getObjVal(t, "data-xs-t-100")), t.hasAttribute("data-xs-t-200") && (dt = this.getObjVal(t, "data-xs-t-200")), t.hasAttribute("data-xs-t-300") && (Ct = this.getObjVal(t, "data-xs-t-300")), t.hasAttribute("data-xs-t-400") && (ht = this.getObjVal(t, "data-xs-t-400")), t.hasAttribute("data-xs-t-500") && (At = this.getObjVal(t, "data-xs-t-500")), t.hasAttribute("data-xs-t-600") && (mt = this.getObjVal(t, "data-xs-t-600")), t.hasAttribute("data-xs-t-700") && ($ = this.getObjVal(t, "data-xs-t-700")), t.hasAttribute("data-xs-t-800") && (ct = this.getObjVal(t, "data-xs-t-800")), t.hasAttribute("data-xs-t-900") && (nt = this.getObjVal(t, "data-xs-t-900")), t.hasAttribute("data-xs-t-1000") && (at = this.getObjVal(t, "data-xs-t-1000")), t.hasAttribute("data-xs-t-1100") && (bt = this.getObjVal(t, "data-xs-t-1100")), t.hasAttribute("data-xs-t-1200") && (yt = this.getObjVal(t, "data-xs-t-1200")), t.hasAttribute("data-xs-t-1300") && (rt = this.getObjVal(t, "data-xs-t-1300")), t.hasAttribute("data-xs-t-1400") && (vt = this.getObjVal(t, "data-xs-t-1400")), t.hasAttribute("data-xs-t-1500") && (H = this.getObjVal(t, "data-xs-t-1500")), t.hasAttribute("data-xs-t-1600") && (kt = this.getObjVal(t, "data-xs-t-1600")), t.hasAttribute("data-xs-t-1700") && (Vt = this.getObjVal(t, "data-xs-t-1700")), t.hasAttribute("data-xs-t-1800") && (ut = this.getObjVal(t, "data-xs-t-1800")), t.hasAttribute("data-xs-t-1900") && (Yt = this.getObjVal(t, "data-xs-t-1900")), t.hasAttribute("data-xs-t-2000") && (N = this.getObjVal(t, "data-xs-t-2000")), t.hasAttribute("data-xs-t-2100") && (qt = this.getObjVal(t, "data-xs-t-2100")), t.hasAttribute("data-xs-t-2200") && (wt = this.getObjVal(t, "data-xs-t-2200")), t.hasAttribute("data-xs-t-2300") && (Mt = this.getObjVal(t, "data-xs-t-2300")), t.hasAttribute("data-xs-t-2400") && (Nt = this.getObjVal(t, "data-xs-t-2400")), t.hasAttribute("data-xs-t-2500") && (zt = this.getObjVal(t, "data-xs-t-2500")), t.hasAttribute("data-xs-t-2600") && (p = this.getObjVal(t, "data-xs-t-2600")), t.hasAttribute("data-xs-t-2700") && (v = this.getObjVal(t, "data-xs-t-2700")), t.hasAttribute("data-xs-t-2800") && (A = this.getObjVal(t, "data-xs-t-2800")));
|
|
600
|
+
let Z = X, U = R, k = dt, G = Ct, P = ht, ft = At, Q = mt, it = $, gt = ct, Pt = nt, Et = at, Ht = bt, ot = yt, I = rt, K = vt, pt = H, Jt = kt, te = Vt, ee = ut, ie = Yt, se = N, ne = qt, ae = wt, re = Mt, oe = Nt, le = zt, de = p, he = v, ce = A, Ft = window.innerHeight;
|
|
601
|
+
Ft < 730 ? (jt = Z, tt = U, X = k, R = G, dt = P, Ct = ft, ht = Q, At = it, mt = gt, $ = Pt, ct = Et, nt = Ht, at = ot, bt = I, yt = K, rt = pt, vt = Jt, H = te, kt = ee, Vt = ie, ut = se, Yt = ne, N = ae, qt = re, wt = oe, Mt = le, Nt = de, zt = he, p = ce, v = {}, A = {}) : Ft >= 730 && Ft < 790 ? (tt = Z, X = U, R = k, dt = G, Ct = P, ht = ft, At = Q, mt = it, $ = gt, ct = Pt, nt = Et, at = Ht, bt = ot, yt = I, rt = K, vt = pt, H = Jt, kt = te, Vt = ee, ut = ie, Yt = se, N = ne, qt = ae, wt = re, Mt = oe, Nt = le, zt = de, p = he, v = ce, A = {}) : Ft >= 790 && Ft < 840 || (Ft >= 840 && Ft < 1125 ? (X = {}, R = Z, dt = U, Ct = k, ht = G, At = P, mt = ft, $ = Q, ct = it, nt = gt, at = Pt, bt = Et, yt = Ht, rt = ot, vt = I, H = K, kt = pt, Vt = Jt, ut = te, Yt = ee, N = ie, qt = se, wt = ne, Mt = ae, Nt = re, zt = oe, p = le, v = de, A = he, _ = ce) : (X = {}, R = {}, dt = Z, Ct = U, ht = k, At = G, mt = P, $ = ft, ct = Q, nt = it, at = gt, bt = Pt, yt = Et, rt = Ht, vt = ot, H = I, kt = K, Vt = pt, ut = Jt, Yt = te, N = ee, qt = ie, wt = se, Mt = ne, Nt = ae, zt = re, p = oe, v = le, A = de, _ = he, V = ce));
|
|
602
|
+
let g = {};
|
|
603
|
+
Object.keys(j).length !== 0 && (g = this.parseObj(j, "elInY", g)), Object.keys(E).length !== 0 && (g = this.parseObj(E, "elInY+50", g)), Object.keys(S).length !== 0 && (g = this.parseObj(S, "elInY+100", g)), Object.keys(f).length !== 0 && (g = this.parseObj(f, "elInY+150", g)), Object.keys(l).length !== 0 && (g = this.parseObj(l, "elInY+200", g)), Object.keys(Tt).length !== 0 && (g = this.parseObj(Tt, "elInY+250", g)), Object.keys(_t).length !== 0 && (g = this.parseObj(_t, "elInY+300", g)), Object.keys(St).length !== 0 && (g = this.parseObj(St, "elInY+350", g)), Object.keys(Dt).length !== 0 && (g = this.parseObj(Dt, "elInY+400", g)), Object.keys(st).length !== 0 && (g = this.parseObj(st, "elInY+450", g)), Object.keys(et).length !== 0 && (g = this.parseObj(et, "elInY+500", g)), Object.keys(Y).length !== 0 && (g = this.parseObj(Y, "elInY+550", g)), Object.keys(M).length !== 0 && (g = this.parseObj(M, "elInY+600", g)), Object.keys(L).length !== 0 && (g = this.parseObj(L, "elInY+650", g)), Object.keys(x).length !== 0 && (g = this.parseObj(x, "elCenterY-300", g)), Object.keys(b).length !== 0 && (g = this.parseObj(b, "elCenterY", g)), Object.keys(m).length !== 0 && (g = this.parseObj(m, "elCenterY+100", g)), Object.keys(d).length !== 0 && (g = this.parseObj(d, "elCenterY+200", g)), Object.keys(u).length !== 0 && (g = this.parseObj(u, "elCenterY+300", g)), Object.keys(a).length !== 0 && (g = this.parseObj(a, "elOutY-300", g)), Object.keys(r).length !== 0 && (g = this.parseObj(r, "elOutY", g)), Object.keys(q).length !== 0 && (g = this.parseObj(q, "elInY", g)), Object.keys(J).length !== 0 && (g = this.parseObj(J, "elInY+150", g)), Object.keys(O).length !== 0 && (g = this.parseObj(O, "elInY+300 ", g)), Object.keys(y).length !== 0 && (g = this.parseObj(y, "elCenterY-150", g)), Object.keys(h).length !== 0 && (g = this.parseObj(h, "elCenterY", g)), Object.keys(c).length !== 0 && (g = this.parseObj(c, "elCenterY+150", g)), Object.keys(w).length !== 0 && (g = this.parseObj(w, "elOutY-300 ", g)), Object.keys(C).length !== 0 && (g = this.parseObj(C, "elOutY-150 ", g)), Object.keys(T).length !== 0 && (g = this.parseObj(T, "elOutY", g)), Object.keys(jt).length !== 0 && (g = this.parseObj(jt, "elInY-200", g)), Object.keys(tt).length !== 0 && (g = this.parseObj(tt, "elInY-100", g)), Object.keys(X).length !== 0 && (g = this.parseObj(X, "elInY", g)), Object.keys(R).length !== 0 && (g = this.parseObj(R, "elInY+100", g)), Object.keys(dt).length !== 0 && (g = this.parseObj(dt, "elInY+200", g)), Object.keys(Ct).length !== 0 && (g = this.parseObj(Ct, "elInY+300 ", g)), Object.keys(ht).length !== 0 && (g = this.parseObj(ht, "elInY+400 ", g)), Object.keys(At).length !== 0 && (g = this.parseObj(At, "elInY+500 ", g)), Object.keys(mt).length !== 0 && (g = this.parseObj(mt, "elInY+600 ", g)), Object.keys($).length !== 0 && (g = this.parseObj($, "elInY+700 ", g)), Object.keys(ct).length !== 0 && (g = this.parseObj(ct, "elInY+800 ", g)), Object.keys(nt).length !== 0 && (g = this.parseObj(nt, "elInY+900 ", g)), Object.keys(at).length !== 0 && (g = this.parseObj(at, "elInY+1000 ", g)), Object.keys(bt).length !== 0 && (g = this.parseObj(bt, "elInY+1100 ", g)), Object.keys(yt).length !== 0 && (g = this.parseObj(yt, "elInY+1200 ", g)), Object.keys(rt).length !== 0 && (g = this.parseObj(rt, "elInY+1300 ", g)), Object.keys(vt).length !== 0 && (g = this.parseObj(vt, "elInY+1400 ", g)), Object.keys(H).length !== 0 && (g = this.parseObj(H, "elInY+1500 ", g)), Object.keys(kt).length !== 0 && (g = this.parseObj(kt, "elInY+1600 ", g)), Object.keys(Vt).length !== 0 && (g = this.parseObj(Vt, "elInY+1700 ", g)), Object.keys(ut).length !== 0 && (g = this.parseObj(ut, "elInY+1800 ", g)), Object.keys(Yt).length !== 0 && (g = this.parseObj(Yt, "elInY+1900 ", g)), Object.keys(N).length !== 0 && (g = this.parseObj(N, "elInY+2000 ", g)), Object.keys(qt).length !== 0 && (g = this.parseObj(qt, "elInY+2100 ", g)), Object.keys(wt).length !== 0 && (g = this.parseObj(wt, "elInY+2200 ", g)), Object.keys(Mt).length !== 0 && (g = this.parseObj(Mt, "elInY+2300 ", g)), Object.keys(Nt).length !== 0 && (g = this.parseObj(Nt, "elInY+2400 ", g)), Object.keys(zt).length !== 0 && (g = this.parseObj(zt, "elInY+2500 ", g)), Object.keys(p).length !== 0 && (g = this.parseObj(p, "elInY+2600 ", g)), Object.keys(v).length !== 0 && (g = this.parseObj(v, "elInY+2700 ", g)), Object.keys(A).length !== 0 && (g = this.parseObj(A, "elInY+2800 ", g)), Object.keys(_).length !== 0 && (g = this.parseObj(_, "elInY+2900 ", g)), Object.keys(V).length !== 0 && (g = this.parseObj(V, "elInY+3000 ", g)), t.style.transition = "", t.setAttribute("data-dummy-selector", "1"), Zt.addElements("[data-dummy-selector]", {
|
|
604
|
+
scrollY: g
|
|
605
605
|
}), this.elements.push(document.querySelector("[data-dummy-selector]")), t.removeAttribute("data-dummy-selector"), setTimeout(() => {
|
|
606
606
|
t.style.opacity = 1, t.getAttribute("data-smooth-scrolling") === "off" || this.settings.transition && (t.style.transition = this.settings.transition);
|
|
607
607
|
}, 100);
|
|
@@ -646,9 +646,9 @@ class Ke {
|
|
|
646
646
|
return s;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return
|
|
649
|
+
var ye = { exports: {} }, Ce;
|
|
650
|
+
function Qe() {
|
|
651
|
+
return Ce || (Ce = 1, (function(o, e) {
|
|
652
652
|
(function(s, t) {
|
|
653
653
|
o.exports = t();
|
|
654
654
|
})(window, function() {
|
|
@@ -677,9 +677,9 @@ function Je() {
|
|
|
677
677
|
}, t.t = function(n, r) {
|
|
678
678
|
if (r & 1 && (n = t(n)), r & 8 || r & 4 && typeof n == "object" && n && n.__esModule) return n;
|
|
679
679
|
var a = /* @__PURE__ */ Object.create(null);
|
|
680
|
-
if (t.r(a), Object.defineProperty(a, "default", { enumerable: !0, value: n }), r & 2 && typeof n != "string") for (var
|
|
680
|
+
if (t.r(a), Object.defineProperty(a, "default", { enumerable: !0, value: n }), r & 2 && typeof n != "string") for (var u in n) t.d(a, u, (function(d) {
|
|
681
681
|
return n[d];
|
|
682
|
-
}).bind(null,
|
|
682
|
+
}).bind(null, u));
|
|
683
683
|
return a;
|
|
684
684
|
}, t.n = function(n) {
|
|
685
685
|
var r = n && n.__esModule ? (
|
|
@@ -770,47 +770,47 @@ function Je() {
|
|
|
770
770
|
};
|
|
771
771
|
}), r = t(0), a = /* @__PURE__ */ t.n(r);
|
|
772
772
|
t(1);
|
|
773
|
-
function
|
|
774
|
-
if (!(
|
|
773
|
+
function u(O, y) {
|
|
774
|
+
if (!(O instanceof y))
|
|
775
775
|
throw new TypeError("Cannot call a class as a function");
|
|
776
776
|
}
|
|
777
|
-
function d(
|
|
778
|
-
for (var
|
|
779
|
-
var
|
|
780
|
-
|
|
777
|
+
function d(O, y) {
|
|
778
|
+
for (var h = 0; h < y.length; h++) {
|
|
779
|
+
var c = y[h];
|
|
780
|
+
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(O, c.key, c);
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
|
-
function
|
|
784
|
-
return
|
|
783
|
+
function m(O, y, h) {
|
|
784
|
+
return y && d(O.prototype, y), O;
|
|
785
785
|
}
|
|
786
|
-
function b(
|
|
787
|
-
return Number(
|
|
786
|
+
function b(O) {
|
|
787
|
+
return Number(O) === O && O % 1 === 0;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
return Number(
|
|
789
|
+
function x(O) {
|
|
790
|
+
return Number(O) === O && O % 1 !== 0;
|
|
791
791
|
}
|
|
792
|
-
var
|
|
793
|
-
function
|
|
794
|
-
|
|
792
|
+
var L = /* @__PURE__ */ (function() {
|
|
793
|
+
function O(y, h) {
|
|
794
|
+
u(this, O), this.element = y, h = a()(new n().trigger, h), this.offset = h.offset, this.toggle = h.toggle, this.once = h.once, this.visible = null, this.active = !0;
|
|
795
795
|
}
|
|
796
|
-
return
|
|
796
|
+
return m(O, [{
|
|
797
797
|
key: "checkVisibility",
|
|
798
|
-
value: function(
|
|
798
|
+
value: function(h, c) {
|
|
799
799
|
if (!this.active)
|
|
800
800
|
return this.visible;
|
|
801
|
-
var
|
|
802
|
-
w
|
|
803
|
-
h:
|
|
804
|
-
},
|
|
805
|
-
if (
|
|
806
|
-
this.visible =
|
|
807
|
-
var
|
|
808
|
-
|
|
809
|
-
console.error("Trigger promise failed"), console.error(
|
|
801
|
+
var w = h.offsetWidth || h.innerWidth || 0, C = h.offsetHeight || h.innerHeight || 0, T = {
|
|
802
|
+
w,
|
|
803
|
+
h: C
|
|
804
|
+
}, D = this.getBounds(), W = this._checkVisibility(D, T, c);
|
|
805
|
+
if (W !== this.visible) {
|
|
806
|
+
this.visible = W;
|
|
807
|
+
var B = this._toggleCallback();
|
|
808
|
+
B instanceof Promise ? B.then(this._toggleClass.bind(this)).catch(function(jt) {
|
|
809
|
+
console.error("Trigger promise failed"), console.error(jt);
|
|
810
810
|
}) : this._toggleClass(), this.visible && this.once && (this.active = !1);
|
|
811
|
-
} else if (
|
|
811
|
+
} else if (W && typeof this.toggle.callback.visible == "function")
|
|
812
812
|
return this.toggle.callback.visible.call(this.element, this);
|
|
813
|
-
return
|
|
813
|
+
return W;
|
|
814
814
|
}
|
|
815
815
|
/**
|
|
816
816
|
* Get the bounds of this element
|
|
@@ -830,12 +830,12 @@ function Je() {
|
|
|
830
830
|
*/
|
|
831
831
|
}, {
|
|
832
832
|
key: "_getElementOffset",
|
|
833
|
-
value: function(
|
|
834
|
-
var
|
|
833
|
+
value: function(h, c) {
|
|
834
|
+
var w = {
|
|
835
835
|
x: 0,
|
|
836
836
|
y: 0
|
|
837
837
|
};
|
|
838
|
-
return typeof this.offset.element.x == "function" ?
|
|
838
|
+
return typeof this.offset.element.x == "function" ? w.x = h.width * this.offset.element.x(this, h, c) : x(this.offset.element.x) ? w.x = h.width * this.offset.element.x : b(this.offset.element.x) && (w.x = this.offset.element.x), typeof this.offset.element.y == "function" ? w.y = h.height * this.offset.element.y(this, h, c) : x(this.offset.element.y) ? w.y = h.height * this.offset.element.y : b(this.offset.element.y) && (w.y = this.offset.element.y), w;
|
|
839
839
|
}
|
|
840
840
|
/**
|
|
841
841
|
* Get the calculated offset to place on the viewport
|
|
@@ -846,12 +846,12 @@ function Je() {
|
|
|
846
846
|
*/
|
|
847
847
|
}, {
|
|
848
848
|
key: "_getViewportOffset",
|
|
849
|
-
value: function(
|
|
850
|
-
var
|
|
849
|
+
value: function(h, c) {
|
|
850
|
+
var w = {
|
|
851
851
|
x: 0,
|
|
852
852
|
y: 0
|
|
853
853
|
};
|
|
854
|
-
return typeof this.offset.viewport.x == "function" ?
|
|
854
|
+
return typeof this.offset.viewport.x == "function" ? w.x = h.w * this.offset.viewport.x(this, h, c) : x(this.offset.viewport.x) ? w.x = h.w * this.offset.viewport.x : b(this.offset.viewport.x) && (w.x = this.offset.viewport.x), typeof this.offset.viewport.y == "function" ? w.y = h.h * this.offset.viewport.y(this, h, c) : x(this.offset.viewport.y) ? w.y = h.h * this.offset.viewport.y : b(this.offset.viewport.y) && (w.y = this.offset.viewport.y), w;
|
|
855
855
|
}
|
|
856
856
|
/**
|
|
857
857
|
* Check the visibility of the trigger in the viewport, with offsets applied
|
|
@@ -863,9 +863,9 @@ function Je() {
|
|
|
863
863
|
*/
|
|
864
864
|
}, {
|
|
865
865
|
key: "_checkVisibility",
|
|
866
|
-
value: function(
|
|
867
|
-
var
|
|
868
|
-
return
|
|
866
|
+
value: function(h, c, w) {
|
|
867
|
+
var C = this._getElementOffset(h, w), T = this._getViewportOffset(c, w), D = !0;
|
|
868
|
+
return h.left - T.x < -(h.width - C.x) && (D = !1), h.left + T.x > c.w - C.x && (D = !1), h.top - T.y < -(h.height - C.y) && (D = !1), h.top + T.y > c.h - C.y && (D = !1), D;
|
|
869
869
|
}
|
|
870
870
|
/**
|
|
871
871
|
* Toggles the classes
|
|
@@ -874,19 +874,19 @@ function Je() {
|
|
|
874
874
|
}, {
|
|
875
875
|
key: "_toggleClass",
|
|
876
876
|
value: function() {
|
|
877
|
-
var
|
|
877
|
+
var h = this;
|
|
878
878
|
if (this.visible) {
|
|
879
|
-
Array.isArray(this.toggle.class.in) ? this.toggle.class.in.each(function(
|
|
880
|
-
|
|
881
|
-
}) : this.element.classList.add(this.toggle.class.in), Array.isArray(this.toggle.class.out) ? this.toggle.class.out.each(function(
|
|
882
|
-
|
|
879
|
+
Array.isArray(this.toggle.class.in) ? this.toggle.class.in.each(function(c) {
|
|
880
|
+
h.element.classList.add(c);
|
|
881
|
+
}) : this.element.classList.add(this.toggle.class.in), Array.isArray(this.toggle.class.out) ? this.toggle.class.out.each(function(c) {
|
|
882
|
+
h.element.classList.remove(c);
|
|
883
883
|
}) : this.element.classList.remove(this.toggle.class.out);
|
|
884
884
|
return;
|
|
885
885
|
}
|
|
886
|
-
Array.isArray(this.toggle.class.in) ? this.toggle.class.in.each(function(
|
|
887
|
-
|
|
888
|
-
}) : this.element.classList.remove(this.toggle.class.in), Array.isArray(this.toggle.class.out) ? this.toggle.class.out.each(function(
|
|
889
|
-
|
|
886
|
+
Array.isArray(this.toggle.class.in) ? this.toggle.class.in.each(function(c) {
|
|
887
|
+
h.element.classList.remove(c);
|
|
888
|
+
}) : this.element.classList.remove(this.toggle.class.in), Array.isArray(this.toggle.class.out) ? this.toggle.class.out.each(function(c) {
|
|
889
|
+
h.element.classList.add(c);
|
|
890
890
|
}) : this.element.classList.add(this.toggle.class.out);
|
|
891
891
|
}
|
|
892
892
|
/**
|
|
@@ -903,33 +903,33 @@ function Je() {
|
|
|
903
903
|
} else if (typeof this.toggle.callback.out == "function")
|
|
904
904
|
return this.toggle.callback.out.call(this.element, this);
|
|
905
905
|
}
|
|
906
|
-
}]),
|
|
906
|
+
}]), O;
|
|
907
907
|
})();
|
|
908
|
-
function
|
|
909
|
-
if (!(
|
|
908
|
+
function M(O, y) {
|
|
909
|
+
if (!(O instanceof y))
|
|
910
910
|
throw new TypeError("Cannot call a class as a function");
|
|
911
911
|
}
|
|
912
|
-
function
|
|
913
|
-
for (var
|
|
914
|
-
var
|
|
915
|
-
|
|
912
|
+
function Y(O, y) {
|
|
913
|
+
for (var h = 0; h < y.length; h++) {
|
|
914
|
+
var c = y[h];
|
|
915
|
+
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(O, c.key, c);
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
function
|
|
919
|
-
return
|
|
918
|
+
function et(O, y, h) {
|
|
919
|
+
return y && Y(O.prototype, y), O;
|
|
920
920
|
}
|
|
921
|
-
var
|
|
922
|
-
function
|
|
923
|
-
|
|
921
|
+
var st = /* @__PURE__ */ (function() {
|
|
922
|
+
function O(y) {
|
|
923
|
+
M(this, O), this.triggers = y instanceof Array ? y : [];
|
|
924
924
|
}
|
|
925
|
-
return
|
|
925
|
+
return et(O, [{
|
|
926
926
|
key: "add",
|
|
927
|
-
value: function(
|
|
928
|
-
var
|
|
929
|
-
if (
|
|
930
|
-
return this.triggers.push(
|
|
931
|
-
|
|
932
|
-
|
|
927
|
+
value: function(h) {
|
|
928
|
+
var c = this;
|
|
929
|
+
if (h instanceof L)
|
|
930
|
+
return this.triggers.push(h);
|
|
931
|
+
h.each(function(w) {
|
|
932
|
+
w instanceof L ? c.triggers.push(w) : console.error("Object added to TriggerCollection is not a Trigger. Object: ", w);
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
935
|
/**
|
|
@@ -938,12 +938,12 @@ function Je() {
|
|
|
938
938
|
*/
|
|
939
939
|
}, {
|
|
940
940
|
key: "remove",
|
|
941
|
-
value: function(
|
|
942
|
-
|
|
943
|
-
var
|
|
944
|
-
return
|
|
945
|
-
|
|
946
|
-
}), !
|
|
941
|
+
value: function(h) {
|
|
942
|
+
h instanceof L && (h = [h]), this.triggers = this.triggers.filter(function(c) {
|
|
943
|
+
var w = !1;
|
|
944
|
+
return h.each(function(C) {
|
|
945
|
+
C == c && (w = !0);
|
|
946
|
+
}), !w;
|
|
947
947
|
});
|
|
948
948
|
}
|
|
949
949
|
/**
|
|
@@ -953,10 +953,10 @@ function Je() {
|
|
|
953
953
|
*/
|
|
954
954
|
}, {
|
|
955
955
|
key: "query",
|
|
956
|
-
value: function(
|
|
957
|
-
return this.triggers.filter(function(
|
|
958
|
-
var
|
|
959
|
-
return
|
|
956
|
+
value: function(h) {
|
|
957
|
+
return this.triggers.filter(function(c) {
|
|
958
|
+
var w = c.element, C = w.parentNode, T = [].slice.call(C.querySelectorAll(h));
|
|
959
|
+
return T.indexOf(w) > -1;
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
962
|
/**
|
|
@@ -966,17 +966,17 @@ function Je() {
|
|
|
966
966
|
*/
|
|
967
967
|
}, {
|
|
968
968
|
key: "search",
|
|
969
|
-
value: function(
|
|
970
|
-
var
|
|
971
|
-
if (
|
|
972
|
-
var
|
|
973
|
-
return
|
|
974
|
-
|
|
975
|
-
}),
|
|
969
|
+
value: function(h) {
|
|
970
|
+
var c = this.triggers.filter(function(w) {
|
|
971
|
+
if (h instanceof NodeList || Array.isArray(h)) {
|
|
972
|
+
var C = !1;
|
|
973
|
+
return h.each(function(T) {
|
|
974
|
+
w.element == T && (C = !0);
|
|
975
|
+
}), C;
|
|
976
976
|
}
|
|
977
|
-
return
|
|
977
|
+
return w.element == h;
|
|
978
978
|
});
|
|
979
|
-
return
|
|
979
|
+
return c.length == 0 ? null : c.length > 1 ? c : c[0];
|
|
980
980
|
}
|
|
981
981
|
/**
|
|
982
982
|
* Calls a function on all triggers
|
|
@@ -984,34 +984,34 @@ function Je() {
|
|
|
984
984
|
*/
|
|
985
985
|
}, {
|
|
986
986
|
key: "call",
|
|
987
|
-
value: function(
|
|
988
|
-
this.triggers.each(
|
|
987
|
+
value: function(h) {
|
|
988
|
+
this.triggers.each(h);
|
|
989
989
|
}
|
|
990
|
-
}]),
|
|
990
|
+
}]), O;
|
|
991
991
|
})();
|
|
992
|
-
function
|
|
993
|
-
if (!(
|
|
992
|
+
function Dt(O, y) {
|
|
993
|
+
if (!(O instanceof y))
|
|
994
994
|
throw new TypeError("Cannot call a class as a function");
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
for (var
|
|
998
|
-
var
|
|
999
|
-
|
|
996
|
+
function St(O, y) {
|
|
997
|
+
for (var h = 0; h < y.length; h++) {
|
|
998
|
+
var c = y[h];
|
|
999
|
+
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(O, c.key, c);
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1002
|
+
function _t(O, y, h) {
|
|
1003
|
+
return y && St(O.prototype, y), O;
|
|
1004
1004
|
}
|
|
1005
|
-
var
|
|
1006
|
-
function
|
|
1007
|
-
|
|
1005
|
+
var Tt = /* @__PURE__ */ (function() {
|
|
1006
|
+
function O(y, h) {
|
|
1007
|
+
Dt(this, O), this._parseOptions(y), typeof h == "function" && (this.callback = h), this.direction = "none", this.position = this.getPosition(), this.lastAction = this._getTimestamp(), this._startRun(), this._boundListener = this._didScroll.bind(this), this.element.addEventListener("scroll", this._boundListener);
|
|
1008
1008
|
}
|
|
1009
|
-
return
|
|
1009
|
+
return _t(O, [{
|
|
1010
1010
|
key: "_parseOptions",
|
|
1011
|
-
value: function(
|
|
1012
|
-
var
|
|
1013
|
-
typeof
|
|
1014
|
-
},
|
|
1011
|
+
value: function(h) {
|
|
1012
|
+
var c = new n().scroll;
|
|
1013
|
+
typeof h != "function" ? (c.callback = function() {
|
|
1014
|
+
}, c = a()(c, h)) : c.callback = h, this.element = c.element, this.sustain = c.sustain, this.callback = c.callback, this.startCallback = c.start, this.stopCallback = c.stop, this.directionChange = c.directionChange;
|
|
1015
1015
|
}
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Callback when the user scrolled the element
|
|
@@ -1020,10 +1020,10 @@ function Je() {
|
|
|
1020
1020
|
}, {
|
|
1021
1021
|
key: "_didScroll",
|
|
1022
1022
|
value: function() {
|
|
1023
|
-
var
|
|
1024
|
-
if (this.position !==
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1023
|
+
var h = this.getPosition();
|
|
1024
|
+
if (this.position !== h) {
|
|
1025
|
+
var c = this.direction;
|
|
1026
|
+
h.x !== this.position.x ? c = h.x > this.position.x ? "right" : "left" : h.y !== this.position.y ? c = h.y > this.position.y ? "bottom" : "top" : c = "none", c !== this.direction && (this.direction = c, typeof this.directionChange == "function" && this.directionChange(this.direction)), this.position = h, this.lastAction = this._getTimestamp();
|
|
1027
1027
|
} else
|
|
1028
1028
|
this.direction = "none";
|
|
1029
1029
|
this.running || this._startRun();
|
|
@@ -1053,10 +1053,10 @@ function Je() {
|
|
|
1053
1053
|
}, {
|
|
1054
1054
|
key: "getPosition",
|
|
1055
1055
|
value: function() {
|
|
1056
|
-
var
|
|
1056
|
+
var h = this.element.pageXOffset || this.element.scrollLeft || document.documentElement.scrollLeft || 0, c = this.element.pageYOffset || this.element.scrollTop || document.documentElement.scrollTop || 0;
|
|
1057
1057
|
return {
|
|
1058
|
-
x:
|
|
1059
|
-
y:
|
|
1058
|
+
x: h,
|
|
1059
|
+
y: c
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
1062
1062
|
/**
|
|
@@ -1077,8 +1077,8 @@ function Je() {
|
|
|
1077
1077
|
key: "_tick",
|
|
1078
1078
|
value: function() {
|
|
1079
1079
|
this.callback(this.position, this.direction);
|
|
1080
|
-
var
|
|
1081
|
-
|
|
1080
|
+
var h = this._getTimestamp();
|
|
1081
|
+
h - this.lastAction > this.sustain && this._stopRun(), this.running && this._loop();
|
|
1082
1082
|
}
|
|
1083
1083
|
/**
|
|
1084
1084
|
* Requests an animation frame
|
|
@@ -1087,10 +1087,10 @@ function Je() {
|
|
|
1087
1087
|
}, {
|
|
1088
1088
|
key: "_loop",
|
|
1089
1089
|
value: function() {
|
|
1090
|
-
var
|
|
1091
|
-
setTimeout(
|
|
1090
|
+
var h = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function(c) {
|
|
1091
|
+
setTimeout(c, 16.666666666666668);
|
|
1092
1092
|
};
|
|
1093
|
-
|
|
1093
|
+
h(this._tick.bind(this));
|
|
1094
1094
|
}
|
|
1095
1095
|
/**
|
|
1096
1096
|
* Kills the loop forever
|
|
@@ -1100,29 +1100,29 @@ function Je() {
|
|
|
1100
1100
|
value: function() {
|
|
1101
1101
|
this.running = !1, this.element.removeEventListener("scroll", this._boundListener);
|
|
1102
1102
|
}
|
|
1103
|
-
}]),
|
|
1103
|
+
}]), O;
|
|
1104
1104
|
})();
|
|
1105
1105
|
t.d(s, "Trigger", function() {
|
|
1106
|
-
return
|
|
1106
|
+
return E;
|
|
1107
1107
|
}), t.d(s, "TriggerCollection", function() {
|
|
1108
1108
|
return j;
|
|
1109
1109
|
}), t.d(s, "ScrollAnimationLoop", function() {
|
|
1110
|
-
return
|
|
1110
|
+
return q;
|
|
1111
1111
|
}), t.d(s, "default", function() {
|
|
1112
|
-
return
|
|
1112
|
+
return J;
|
|
1113
1113
|
});
|
|
1114
|
-
function l(
|
|
1115
|
-
if (!(
|
|
1114
|
+
function l(O, y) {
|
|
1115
|
+
if (!(O instanceof y))
|
|
1116
1116
|
throw new TypeError("Cannot call a class as a function");
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1119
|
-
for (var
|
|
1120
|
-
var
|
|
1121
|
-
|
|
1118
|
+
function f(O, y) {
|
|
1119
|
+
for (var h = 0; h < y.length; h++) {
|
|
1120
|
+
var c = y[h];
|
|
1121
|
+
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(O, c.key, c);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1125
|
-
return
|
|
1124
|
+
function S(O, y, h) {
|
|
1125
|
+
return y && f(O.prototype, y), O;
|
|
1126
1126
|
}
|
|
1127
1127
|
/*!
|
|
1128
1128
|
* ScrollTrigger
|
|
@@ -1135,14 +1135,14 @@ function Je() {
|
|
|
1135
1135
|
*
|
|
1136
1136
|
* Date: 2017-07-09
|
|
1137
1137
|
*/
|
|
1138
|
-
var
|
|
1139
|
-
function
|
|
1140
|
-
l(this,
|
|
1138
|
+
var E = L, j = st, q = Tt, J = /* @__PURE__ */ (function() {
|
|
1139
|
+
function O(y) {
|
|
1140
|
+
l(this, O), this._parseOptions(y), this._initCollection(), this._initLoop();
|
|
1141
1141
|
}
|
|
1142
|
-
return
|
|
1142
|
+
return S(O, [{
|
|
1143
1143
|
key: "_parseOptions",
|
|
1144
|
-
value: function(
|
|
1145
|
-
|
|
1144
|
+
value: function(h) {
|
|
1145
|
+
h = a()(new n(), h), this.defaultTrigger = h.trigger, this.scrollOptions = h.scroll;
|
|
1146
1146
|
}
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Initializes the collection, picks all [data-scroll] elements as initial elements
|
|
@@ -1151,8 +1151,8 @@ function Je() {
|
|
|
1151
1151
|
}, {
|
|
1152
1152
|
key: "_initCollection",
|
|
1153
1153
|
value: function() {
|
|
1154
|
-
var
|
|
1155
|
-
|
|
1154
|
+
var h = document.querySelectorAll("[data-scroll]"), c = [];
|
|
1155
|
+
h.length > 0 && (c = this.createTriggers(h)), this.collection = new j(c);
|
|
1156
1156
|
}
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Initializes the scroll loop
|
|
@@ -1161,21 +1161,21 @@ function Je() {
|
|
|
1161
1161
|
}, {
|
|
1162
1162
|
key: "_initLoop",
|
|
1163
1163
|
value: function() {
|
|
1164
|
-
var
|
|
1165
|
-
this.loop = new
|
|
1164
|
+
var h = this;
|
|
1165
|
+
this.loop = new q({
|
|
1166
1166
|
sustain: this.scrollOptions.sustain,
|
|
1167
1167
|
element: this.scrollOptions.element,
|
|
1168
|
-
callback: function(
|
|
1169
|
-
|
|
1168
|
+
callback: function(w, C) {
|
|
1169
|
+
h._scrollCallback(w, C);
|
|
1170
1170
|
},
|
|
1171
1171
|
start: function() {
|
|
1172
|
-
|
|
1172
|
+
h._scrollStart();
|
|
1173
1173
|
},
|
|
1174
1174
|
stop: function() {
|
|
1175
|
-
|
|
1175
|
+
h._scrollStop();
|
|
1176
1176
|
},
|
|
1177
|
-
directionChange: function(
|
|
1178
|
-
|
|
1177
|
+
directionChange: function(w) {
|
|
1178
|
+
h._scrollDirectionChange(w);
|
|
1179
1179
|
}
|
|
1180
1180
|
});
|
|
1181
1181
|
}
|
|
@@ -1187,11 +1187,11 @@ function Je() {
|
|
|
1187
1187
|
*/
|
|
1188
1188
|
}, {
|
|
1189
1189
|
key: "_scrollCallback",
|
|
1190
|
-
value: function(
|
|
1191
|
-
var
|
|
1192
|
-
this.collection.call(function(
|
|
1193
|
-
|
|
1194
|
-
}), this.scrollOptions.callback(
|
|
1190
|
+
value: function(h, c) {
|
|
1191
|
+
var w = this;
|
|
1192
|
+
this.collection.call(function(C) {
|
|
1193
|
+
C.checkVisibility(w.scrollOptions.element, c);
|
|
1194
|
+
}), this.scrollOptions.callback(h, c);
|
|
1195
1195
|
}
|
|
1196
1196
|
/**
|
|
1197
1197
|
* When the scrolling started
|
|
@@ -1218,8 +1218,8 @@ function Je() {
|
|
|
1218
1218
|
*/
|
|
1219
1219
|
}, {
|
|
1220
1220
|
key: "_scrollDirectionChange",
|
|
1221
|
-
value: function(
|
|
1222
|
-
this.scrollOptions.directionChange(
|
|
1221
|
+
value: function(h) {
|
|
1222
|
+
this.scrollOptions.directionChange(h);
|
|
1223
1223
|
}
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Creates a Trigger object from a given element and optional option set
|
|
@@ -1229,8 +1229,8 @@ function Je() {
|
|
|
1229
1229
|
*/
|
|
1230
1230
|
}, {
|
|
1231
1231
|
key: "createTrigger",
|
|
1232
|
-
value: function(
|
|
1233
|
-
return new
|
|
1232
|
+
value: function(h, c) {
|
|
1233
|
+
return new E(h, a()(this.defaultTrigger, c));
|
|
1234
1234
|
}
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Creates an array of triggers
|
|
@@ -1240,11 +1240,11 @@ function Je() {
|
|
|
1240
1240
|
*/
|
|
1241
1241
|
}, {
|
|
1242
1242
|
key: "createTriggers",
|
|
1243
|
-
value: function(
|
|
1244
|
-
var
|
|
1245
|
-
return
|
|
1246
|
-
|
|
1247
|
-
}),
|
|
1243
|
+
value: function(h, c) {
|
|
1244
|
+
var w = this, C = [];
|
|
1245
|
+
return h.each(function(T) {
|
|
1246
|
+
C.push(w.createTrigger(T, c));
|
|
1247
|
+
}), C;
|
|
1248
1248
|
}
|
|
1249
1249
|
/**
|
|
1250
1250
|
* Adds triggers
|
|
@@ -1254,8 +1254,8 @@ function Je() {
|
|
|
1254
1254
|
*/
|
|
1255
1255
|
}, {
|
|
1256
1256
|
key: "add",
|
|
1257
|
-
value: function(
|
|
1258
|
-
return
|
|
1257
|
+
value: function(h, c) {
|
|
1258
|
+
return h instanceof HTMLElement ? (this.collection.add(this.createTrigger(h, c)), this) : h instanceof E ? (this.collection.add(h), this) : h instanceof NodeList ? (this.collection.add(this.createTriggers(h, c)), this) : Array.isArray(h) && h.length && h[0] instanceof E ? (this.collection.add(h), this) : Array.isArray(h) && h.length && h[0] instanceof HTMLElement ? (this.collection.add(this.createTriggers(h, c)), this) : (this.collection.add(this.createTriggers(document.querySelectorAll(h), c)), this);
|
|
1259
1259
|
}
|
|
1260
1260
|
/**
|
|
1261
1261
|
* Removes triggers
|
|
@@ -1264,8 +1264,8 @@ function Je() {
|
|
|
1264
1264
|
*/
|
|
1265
1265
|
}, {
|
|
1266
1266
|
key: "remove",
|
|
1267
|
-
value: function(
|
|
1268
|
-
return
|
|
1267
|
+
value: function(h) {
|
|
1268
|
+
return h instanceof E ? (this.collection.remove(h), this) : Array.isArray(h) && h.length && h[0] instanceof E ? (this.collection.remove(h), this) : h instanceof HTMLElement ? (this.collection.remove(this.search(h)), this) : Array.isArray(h) && h.length && h[0] instanceof HTMLElement ? (this.collection.remove(this.search(h)), this) : h instanceof NodeList ? (this.collection.remove(this.search(h)), this) : Array.isArray(h) && h.length && h[0] instanceof E ? (this.collection.remove(h), this) : (this.collection.remove(this.query(h.toString())), this);
|
|
1269
1269
|
}
|
|
1270
1270
|
/**
|
|
1271
1271
|
* Lookup one or multiple triggers by a query string
|
|
@@ -1274,8 +1274,8 @@ function Je() {
|
|
|
1274
1274
|
*/
|
|
1275
1275
|
}, {
|
|
1276
1276
|
key: "query",
|
|
1277
|
-
value: function(
|
|
1278
|
-
return this.collection.query(
|
|
1277
|
+
value: function(h) {
|
|
1278
|
+
return this.collection.query(h);
|
|
1279
1279
|
}
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Lookup one or multiple triggers by a certain HTMLElement or NodeList
|
|
@@ -1284,8 +1284,8 @@ function Je() {
|
|
|
1284
1284
|
*/
|
|
1285
1285
|
}, {
|
|
1286
1286
|
key: "search",
|
|
1287
|
-
value: function(
|
|
1288
|
-
return this.collection.search(
|
|
1287
|
+
value: function(h) {
|
|
1288
|
+
return this.collection.search(h);
|
|
1289
1289
|
}
|
|
1290
1290
|
/**
|
|
1291
1291
|
* Reattaches the scroll listener
|
|
@@ -1303,17 +1303,17 @@ function Je() {
|
|
|
1303
1303
|
value: function() {
|
|
1304
1304
|
this.loop.kill(), this.loop = null;
|
|
1305
1305
|
}
|
|
1306
|
-
}]),
|
|
1306
|
+
}]), O;
|
|
1307
1307
|
})();
|
|
1308
1308
|
})
|
|
1309
1309
|
/******/
|
|
1310
1310
|
])
|
|
1311
1311
|
);
|
|
1312
1312
|
});
|
|
1313
|
-
})(
|
|
1313
|
+
})(ye)), ye.exports;
|
|
1314
1314
|
}
|
|
1315
|
-
var
|
|
1316
|
-
const
|
|
1315
|
+
var Ke = Qe();
|
|
1316
|
+
const Je = /* @__PURE__ */ Ae(Ke), ke = Date.now();
|
|
1317
1317
|
function Rt() {
|
|
1318
1318
|
let o = {}, e = !0, i = 0, s = arguments.length;
|
|
1319
1319
|
Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (e = arguments[0], i++);
|
|
@@ -1327,52 +1327,52 @@ function Rt() {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
return o;
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1331
|
-
if (($t(o) || o === window || o === document) && (o = [o]), !
|
|
1332
|
-
if (
|
|
1330
|
+
function lt(o, e) {
|
|
1331
|
+
if (($t(o) || o === window || o === document) && (o = [o]), !Ye(o) && !Qt(o) && (o = [o]), We(o) != 0) {
|
|
1332
|
+
if (Ye(o) && !Qt(o)) {
|
|
1333
1333
|
let i = o.length, s = 0;
|
|
1334
1334
|
for (; s < i && e.call(o[s], o[s], s, o) !== !1; s++)
|
|
1335
1335
|
;
|
|
1336
1336
|
} else if (Qt(o)) {
|
|
1337
1337
|
for (let i in o)
|
|
1338
|
-
if (
|
|
1338
|
+
if (Ot(o, i) && e.call(o[i], o[i], i, o) === !1)
|
|
1339
1339
|
break;
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
1343
|
function Ie(o, e = null, i = null) {
|
|
1344
|
-
const s = o[
|
|
1345
|
-
return e && i &&
|
|
1344
|
+
const s = o[ke] = o[ke] || [], t = { all: s, evt: null, found: null };
|
|
1345
|
+
return e && i && We(s) > 0 && lt(s, (n, r) => {
|
|
1346
1346
|
if (n.eventName == e && n.fn.toString() == i.toString())
|
|
1347
1347
|
return t.found = !0, t.evt = r, !1;
|
|
1348
1348
|
}), t;
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Wt(o, { onElement: e, withCallback: i, avoidDuplicate: s = !0, once: t = !1, useCapture: n = !1 } = {}, r) {
|
|
1351
1351
|
let a = e || [];
|
|
1352
1352
|
Kt(a) && (a = document.querySelectorAll(a));
|
|
1353
|
-
function
|
|
1354
|
-
|
|
1353
|
+
function u(d) {
|
|
1354
|
+
F(i) && i.call(r, d, this), t && u.destroy();
|
|
1355
1355
|
}
|
|
1356
|
-
return
|
|
1357
|
-
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1356
|
+
return u.destroy = function() {
|
|
1357
|
+
lt(a, (d) => {
|
|
1358
|
+
const m = Ie(d, o, u);
|
|
1359
|
+
m.found && m.all.splice(m.evt, 1), d.removeEventListener && d.removeEventListener(o, u, n);
|
|
1360
1360
|
});
|
|
1361
|
-
},
|
|
1362
|
-
const
|
|
1363
|
-
(d.addEventListener && s && !
|
|
1364
|
-
}),
|
|
1361
|
+
}, lt(a, (d) => {
|
|
1362
|
+
const m = Ie(d, o, u);
|
|
1363
|
+
(d.addEventListener && s && !m.found || !s) && (d.addEventListener(o, u, n), m.all.push({ eventName: o, fn: u }));
|
|
1364
|
+
}), u;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1367
|
-
|
|
1366
|
+
function z(o, e) {
|
|
1367
|
+
lt(e.split(" "), (i) => o.classList.add(i));
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1370
|
-
|
|
1369
|
+
function xt(o, e) {
|
|
1370
|
+
lt(e.split(" "), (i) => o.classList.remove(i));
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function Lt(o, e) {
|
|
1373
1373
|
return o.classList.contains(e);
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function Bt(o, e) {
|
|
1376
1376
|
for (; o !== document.body; ) {
|
|
1377
1377
|
if (o = o.parentElement, !o)
|
|
1378
1378
|
return !1;
|
|
@@ -1384,18 +1384,18 @@ function Gt(o, e = "", i = !1) {
|
|
|
1384
1384
|
if (!o || e === "")
|
|
1385
1385
|
return !1;
|
|
1386
1386
|
if (e === "none")
|
|
1387
|
-
return
|
|
1388
|
-
const s =
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
}),
|
|
1387
|
+
return F(i) && i(), !1;
|
|
1388
|
+
const s = ti(), t = e.split(" ");
|
|
1389
|
+
lt(t, (n) => {
|
|
1390
|
+
z(o, "g" + n);
|
|
1391
|
+
}), Wt(s, {
|
|
1392
1392
|
onElement: o,
|
|
1393
1393
|
avoidDuplicate: !1,
|
|
1394
1394
|
once: !0,
|
|
1395
1395
|
withCallback: (n, r) => {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
}),
|
|
1396
|
+
lt(t, (a) => {
|
|
1397
|
+
xt(r, "g" + a);
|
|
1398
|
+
}), F(i) && i();
|
|
1399
1399
|
}
|
|
1400
1400
|
});
|
|
1401
1401
|
}
|
|
@@ -1404,10 +1404,10 @@ function ge(o, e = "") {
|
|
|
1404
1404
|
return o.style.webkitTransform = "", o.style.MozTransform = "", o.style.msTransform = "", o.style.OTransform = "", o.style.transform = "", !1;
|
|
1405
1405
|
o.style.webkitTransform = e, o.style.MozTransform = e, o.style.msTransform = e, o.style.OTransform = e, o.style.transform = e;
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function Le(o) {
|
|
1408
1408
|
o.style.display = "block";
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function ve(o) {
|
|
1411
1411
|
o.style.display = "none";
|
|
1412
1412
|
}
|
|
1413
1413
|
function Ut(o) {
|
|
@@ -1416,13 +1416,13 @@ function Ut(o) {
|
|
|
1416
1416
|
e.appendChild(i.firstChild);
|
|
1417
1417
|
return e;
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function Xe() {
|
|
1420
1420
|
return {
|
|
1421
1421
|
width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
|
|
1422
1422
|
height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function ti() {
|
|
1426
1426
|
let o, e = document.createElement("fakeelement"), i = {
|
|
1427
1427
|
animation: "animationend",
|
|
1428
1428
|
OAnimation: "oAnimationEnd",
|
|
@@ -1433,7 +1433,7 @@ function ii() {
|
|
|
1433
1433
|
if (e.style[o] !== void 0)
|
|
1434
1434
|
return i[o];
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function ei() {
|
|
1437
1437
|
let o, e = document.createElement("fakeelement");
|
|
1438
1438
|
const i = {
|
|
1439
1439
|
transition: "transitionend",
|
|
@@ -1445,13 +1445,13 @@ function si() {
|
|
|
1445
1445
|
if (e.style[o] !== void 0)
|
|
1446
1446
|
return i[o];
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function ii(o) {
|
|
1449
1449
|
let { url: e, allow: i, callback: s, appendTo: t } = o, n = document.createElement("iframe");
|
|
1450
1450
|
return n.className = "vimeo-video gvideo", n.src = e, n.style.width = "100%", n.style.height = "100%", i && n.setAttribute("allow", i), n.onload = function() {
|
|
1451
|
-
n.onload = null,
|
|
1451
|
+
n.onload = null, z(n, "node-ready"), F(s) && s();
|
|
1452
1452
|
}, t && t.appendChild(n), n;
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function xe(o, e, i, s) {
|
|
1455
1455
|
if (o()) {
|
|
1456
1456
|
e();
|
|
1457
1457
|
return;
|
|
@@ -1461,29 +1461,29 @@ function Se(o, e, i, s) {
|
|
|
1461
1461
|
o() && (clearInterval(t), e());
|
|
1462
1462
|
}, i);
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function Ve(o, e, i) {
|
|
1465
1465
|
if (Xt(o)) {
|
|
1466
1466
|
console.error("Inject assets error");
|
|
1467
1467
|
return;
|
|
1468
1468
|
}
|
|
1469
|
-
if (
|
|
1470
|
-
|
|
1469
|
+
if (F(e) && (i = e, e = !1), Kt(e) && e in window) {
|
|
1470
|
+
F(i) && i();
|
|
1471
1471
|
return;
|
|
1472
1472
|
}
|
|
1473
1473
|
let s;
|
|
1474
1474
|
if (o.indexOf(".css") !== -1) {
|
|
1475
1475
|
if (s = document.querySelectorAll('link[href="' + o + '"]'), s && s.length > 0) {
|
|
1476
|
-
|
|
1476
|
+
F(i) && i();
|
|
1477
1477
|
return;
|
|
1478
1478
|
}
|
|
1479
1479
|
const n = document.getElementsByTagName("head")[0], r = n.querySelectorAll('link[rel="stylesheet"]'), a = document.createElement("link");
|
|
1480
|
-
a.rel = "stylesheet", a.type = "text/css", a.href = o, a.media = "all", r ? n.insertBefore(a, r[0]) : n.appendChild(a),
|
|
1480
|
+
a.rel = "stylesheet", a.type = "text/css", a.href = o, a.media = "all", r ? n.insertBefore(a, r[0]) : n.appendChild(a), F(i) && i();
|
|
1481
1481
|
return;
|
|
1482
1482
|
}
|
|
1483
1483
|
if (s = document.querySelectorAll('script[src="' + o + '"]'), s && s.length > 0) {
|
|
1484
|
-
if (
|
|
1484
|
+
if (F(i)) {
|
|
1485
1485
|
if (Kt(e))
|
|
1486
|
-
return
|
|
1486
|
+
return xe(
|
|
1487
1487
|
() => typeof window[e] < "u",
|
|
1488
1488
|
() => {
|
|
1489
1489
|
i();
|
|
@@ -1495,9 +1495,9 @@ function Ye(o, e, i) {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
let t = document.createElement("script");
|
|
1497
1497
|
t.type = "text/javascript", t.src = o, t.onload = () => {
|
|
1498
|
-
if (
|
|
1498
|
+
if (F(i)) {
|
|
1499
1499
|
if (Kt(e))
|
|
1500
|
-
return
|
|
1500
|
+
return xe(
|
|
1501
1501
|
() => typeof window[e] < "u",
|
|
1502
1502
|
() => {
|
|
1503
1503
|
i();
|
|
@@ -1507,13 +1507,13 @@ function Ye(o, e, i) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
}, document.body.appendChild(t);
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function Se() {
|
|
1511
1511
|
return typeof window > "u" ? !1 : "navigator" in window && window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return typeof document > "u" ? !1 :
|
|
1513
|
+
function si() {
|
|
1514
|
+
return typeof document > "u" ? !1 : Se() !== null || document.createTouch !== void 0 || "ontouchstart" in window || "onmsgesturechange" in window || navigator.msMaxTouchPoints;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function F(o) {
|
|
1517
1517
|
return typeof o == "function";
|
|
1518
1518
|
}
|
|
1519
1519
|
function Kt(o) {
|
|
@@ -1522,28 +1522,28 @@ function Kt(o) {
|
|
|
1522
1522
|
function $t(o) {
|
|
1523
1523
|
return !!(o && o.nodeType && o.nodeType == 1);
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function He(o) {
|
|
1526
1526
|
return Array.isArray(o);
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Ye(o) {
|
|
1529
1529
|
return o && o.length && isFinite(o.length);
|
|
1530
1530
|
}
|
|
1531
1531
|
function Qt(o) {
|
|
1532
|
-
return typeof o === "object" && o != null && !
|
|
1532
|
+
return typeof o === "object" && o != null && !F(o) && !He(o);
|
|
1533
1533
|
}
|
|
1534
1534
|
function Xt(o) {
|
|
1535
1535
|
return o == null;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function Ot(o, e) {
|
|
1538
1538
|
return o !== null && hasOwnProperty.call(o, e);
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function We(o) {
|
|
1541
1541
|
if (Qt(o)) {
|
|
1542
1542
|
if (o.keys)
|
|
1543
1543
|
return o.keys().length;
|
|
1544
1544
|
let e = 0;
|
|
1545
1545
|
for (let i in o)
|
|
1546
|
-
|
|
1546
|
+
Ot(o, i) && e++;
|
|
1547
1547
|
return e;
|
|
1548
1548
|
} else
|
|
1549
1549
|
return o.length;
|
|
@@ -1559,7 +1559,7 @@ function qe(o = -1) {
|
|
|
1559
1559
|
return e[0];
|
|
1560
1560
|
typeof o == "string" && (o = parseInt(o));
|
|
1561
1561
|
const i = [];
|
|
1562
|
-
|
|
1562
|
+
lt(e, (a) => {
|
|
1563
1563
|
i.push(a.getAttribute("data-taborder"));
|
|
1564
1564
|
});
|
|
1565
1565
|
const s = Math.max.apply(Math, i.map((a) => parseInt(a)));
|
|
@@ -1568,10 +1568,10 @@ function qe(o = -1) {
|
|
|
1568
1568
|
const r = i.filter((a) => a >= parseInt(t)).sort()[0];
|
|
1569
1569
|
return document.querySelector(`.gbtn[data-taborder="${r}"]`);
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function ni(o) {
|
|
1572
1572
|
if (o.events.hasOwnProperty("keyboard"))
|
|
1573
1573
|
return !1;
|
|
1574
|
-
o.events.keyboard =
|
|
1574
|
+
o.events.keyboard = Wt("keydown", {
|
|
1575
1575
|
onElement: window,
|
|
1576
1576
|
withCallback: (e, i) => {
|
|
1577
1577
|
e = e || window.event;
|
|
@@ -1579,8 +1579,8 @@ function ri(o) {
|
|
|
1579
1579
|
if (s == 9) {
|
|
1580
1580
|
const t = document.querySelector(".gbtn.focused");
|
|
1581
1581
|
if (!t) {
|
|
1582
|
-
const
|
|
1583
|
-
if (
|
|
1582
|
+
const u = document.activeElement && document.activeElement.nodeName ? document.activeElement.nodeName.toLocaleLowerCase() : !1;
|
|
1583
|
+
if (u == "input" || u == "textarea" || u == "button")
|
|
1584
1584
|
return;
|
|
1585
1585
|
}
|
|
1586
1586
|
e.preventDefault();
|
|
@@ -1588,12 +1588,12 @@ function ri(o) {
|
|
|
1588
1588
|
if (!n || n.length <= 0)
|
|
1589
1589
|
return;
|
|
1590
1590
|
if (!t) {
|
|
1591
|
-
const
|
|
1592
|
-
|
|
1591
|
+
const u = qe();
|
|
1592
|
+
u && (u.focus(), z(u, "focused"));
|
|
1593
1593
|
return;
|
|
1594
1594
|
}
|
|
1595
1595
|
let r = t.getAttribute("data-taborder"), a = qe(r);
|
|
1596
|
-
|
|
1596
|
+
xt(t, "focused"), a && (a.focus(), z(a, "focused"));
|
|
1597
1597
|
}
|
|
1598
1598
|
s == 39 && o.nextSlide(), s == 37 && o.prevSlide(), s == 27 && o.close();
|
|
1599
1599
|
}
|
|
@@ -1602,24 +1602,24 @@ function ri(o) {
|
|
|
1602
1602
|
function me(o) {
|
|
1603
1603
|
return Math.sqrt(o.x * o.x + o.y * o.y);
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function ai(o, e) {
|
|
1606
1606
|
return o.x * e.x + o.y * e.y;
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1608
|
+
function ri(o, e) {
|
|
1609
1609
|
var i = me(o) * me(e);
|
|
1610
1610
|
if (i === 0)
|
|
1611
1611
|
return 0;
|
|
1612
|
-
var s =
|
|
1612
|
+
var s = ai(o, e) / i;
|
|
1613
1613
|
return s > 1 && (s = 1), Math.acos(s);
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function oi(o, e) {
|
|
1616
1616
|
return o.x * e.y - e.x * o.y;
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1619
|
-
var i =
|
|
1620
|
-
return
|
|
1618
|
+
function li(o, e) {
|
|
1619
|
+
var i = ri(o, e);
|
|
1620
|
+
return oi(o, e) > 0 && (i *= -1), i * 180 / Math.PI;
|
|
1621
1621
|
}
|
|
1622
|
-
class
|
|
1622
|
+
class di {
|
|
1623
1623
|
constructor(e) {
|
|
1624
1624
|
this.handlers = [], this.el = e;
|
|
1625
1625
|
}
|
|
@@ -1638,16 +1638,16 @@ class hi {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1642
|
-
var i = new
|
|
1641
|
+
function It(o, e) {
|
|
1642
|
+
var i = new di(o);
|
|
1643
1643
|
return i.add(e), i;
|
|
1644
1644
|
}
|
|
1645
|
-
class
|
|
1645
|
+
class hi {
|
|
1646
1646
|
constructor(e, i) {
|
|
1647
1647
|
this.element = typeof e == "string" ? document.querySelector(e) : e, this.start = this.start.bind(this), this.move = this.move.bind(this), this.end = this.end.bind(this), this.cancel = this.cancel.bind(this), this.element.addEventListener("touchstart", this.start, !1), this.element.addEventListener("touchmove", this.move, !1), this.element.addEventListener("touchend", this.end, !1), this.element.addEventListener("touchcancel", this.cancel, !1), this.preV = { x: null, y: null }, this.pinchStartLen = null, this.zoom = 1, this.isDoubleTap = !1;
|
|
1648
1648
|
var s = function() {
|
|
1649
1649
|
};
|
|
1650
|
-
this.rotate =
|
|
1650
|
+
this.rotate = It(this.element, i.rotate || s), this.touchStart = It(this.element, i.touchStart || s), this.multipointStart = It(this.element, i.multipointStart || s), this.multipointEnd = It(this.element, i.multipointEnd || s), this.pinch = It(this.element, i.pinch || s), this.swipe = It(this.element, i.swipe || s), this.tap = It(this.element, i.tap || s), this.doubleTap = It(this.element, i.doubleTap || s), this.longTap = It(this.element, i.longTap || s), this.singleTap = It(this.element, i.singleTap || s), this.pressMove = It(this.element, i.pressMove || s), this.twoFingerPressMove = It(this.element, i.twoFingerPressMove || s), this.touchMove = It(this.element, i.touchMove || s), this.touchEnd = It(this.element, i.touchEnd || s), this.touchCancel = It(this.element, i.touchCancel || s), this.translateContainer = this.element, this._cancelAllHandler = this.cancelAll.bind(this), window.addEventListener("scroll", this._cancelAllHandler), this.delta = null, this.last = null, this.now = null, this.tapTimeout = null, this.singleTapTimeout = null, this.longTapTimeout = null, this.swipeTimeout = null, this.x1 = this.x2 = this.y1 = this.y2 = null, this.preTapPosition = { x: null, y: null };
|
|
1651
1651
|
}
|
|
1652
1652
|
start(e) {
|
|
1653
1653
|
if (!e.touches)
|
|
@@ -1675,13 +1675,13 @@ class ui {
|
|
|
1675
1675
|
if (e.touches) {
|
|
1676
1676
|
var i = this.preV, s = e.touches.length, t = e.touches[0].pageX, n = e.touches[0].pageY;
|
|
1677
1677
|
if (this.isDoubleTap = !1, s > 1) {
|
|
1678
|
-
var r = e.touches[1].pageX, a = e.touches[1].pageY,
|
|
1679
|
-
i.x !== null && (this.pinchStartLen > 0 && (e.zoom = me(
|
|
1678
|
+
var r = e.touches[1].pageX, a = e.touches[1].pageY, u = { x: e.touches[1].pageX - t, y: e.touches[1].pageY - n };
|
|
1679
|
+
i.x !== null && (this.pinchStartLen > 0 && (e.zoom = me(u) / this.pinchStartLen, this.pinch.dispatch(e, this.element)), e.angle = li(u, i), this.rotate.dispatch(e, this.element)), i.x = u.x, i.y = u.y, this.x2 !== null && this.sx2 !== null ? (e.deltaX = (t - this.x2 + r - this.sx2) / 2, e.deltaY = (n - this.y2 + a - this.sy2) / 2) : (e.deltaX = 0, e.deltaY = 0), this.twoFingerPressMove.dispatch(e, this.element), this.sx2 = r, this.sy2 = a;
|
|
1680
1680
|
} else {
|
|
1681
1681
|
if (this.x2 !== null) {
|
|
1682
1682
|
e.deltaX = t - this.x2, e.deltaY = n - this.y2;
|
|
1683
|
-
var d = Math.abs(this.x1 - this.x2),
|
|
1684
|
-
(d > 10 ||
|
|
1683
|
+
var d = Math.abs(this.x1 - this.x2), m = Math.abs(this.y1 - this.y2);
|
|
1684
|
+
(d > 10 || m > 10) && (this._preventTap = !0);
|
|
1685
1685
|
} else
|
|
1686
1686
|
e.deltaX = 0, e.deltaY = 0;
|
|
1687
1687
|
this.pressMove.dispatch(e, this.element);
|
|
@@ -1727,109 +1727,109 @@ class ui {
|
|
|
1727
1727
|
return this.singleTapTimeout && clearTimeout(this.singleTapTimeout), this.tapTimeout && clearTimeout(this.tapTimeout), this.longTapTimeout && clearTimeout(this.longTapTimeout), this.swipeTimeout && clearTimeout(this.swipeTimeout), this.element.removeEventListener("touchstart", this.start), this.element.removeEventListener("touchmove", this.move), this.element.removeEventListener("touchend", this.end), this.element.removeEventListener("touchcancel", this.cancel), this.rotate.del(), this.touchStart.del(), this.multipointStart.del(), this.multipointEnd.del(), this.pinch.del(), this.swipe.del(), this.tap.del(), this.doubleTap.del(), this.longTap.del(), this.singleTap.del(), this.pressMove.del(), this.twoFingerPressMove.del(), this.touchMove.del(), this.touchEnd.del(), this.touchCancel.del(), this.preV = this.pinchStartLen = this.zoom = this.isDoubleTap = this.delta = this.last = this.now = this.tapTimeout = this.singleTapTimeout = this.longTapTimeout = this.swipeTimeout = this.x1 = this.x2 = this.y1 = this.y2 = this.preTapPosition = this.rotate = this.touchStart = this.multipointStart = this.multipointEnd = this.pinch = this.swipe = this.tap = this.doubleTap = this.longTap = this.singleTap = this.pressMove = this.touchMove = this.touchEnd = this.touchCancel = this.twoFingerPressMove = null, window.removeEventListener("scroll", this._cancelAllHandler), null;
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1731
|
-
const e =
|
|
1732
|
-
let s =
|
|
1733
|
-
i > 769 && (s = t),
|
|
1730
|
+
function we(o) {
|
|
1731
|
+
const e = ei(), i = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
1732
|
+
let s = Lt(o, "gslide-media") ? o : o.querySelector(".gslide-media"), t = Bt(s, ".ginner-container"), n = o.querySelector(".gslide-description");
|
|
1733
|
+
i > 769 && (s = t), z(s, "greset"), ge(s, "translate3d(0, 0, 0)"), Wt(e, {
|
|
1734
1734
|
onElement: s,
|
|
1735
1735
|
once: !0,
|
|
1736
1736
|
withCallback: (r, a) => {
|
|
1737
|
-
|
|
1737
|
+
xt(s, "greset");
|
|
1738
1738
|
}
|
|
1739
1739
|
}), s.style.opacity = "", n && (n.style.opacity = "");
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function ci(o) {
|
|
1742
1742
|
if (o.events.hasOwnProperty("touch"))
|
|
1743
1743
|
return !1;
|
|
1744
|
-
let e =
|
|
1745
|
-
const
|
|
1746
|
-
touchStart: (
|
|
1747
|
-
if (t = !0, (
|
|
1748
|
-
if (
|
|
1744
|
+
let e = Xe(), i = e.width, s = e.height, t = !1, n = null, r = null, a = null, u = !1, d = 1, m = 4.5, b = 1, x = !1, L = !1, M = null, Y = null, et = null, st = null, Dt, St, _t = 0, Tt = 0, l = !1, f = !1, S = {}, E = {}, j = 0, q = 0, J;
|
|
1745
|
+
const O = document.getElementById("glightbox-slider"), y = document.querySelector(".goverlay"), h = new hi(O, {
|
|
1746
|
+
touchStart: (c) => {
|
|
1747
|
+
if (t = !0, (Lt(c.targetTouches[0].target, "ginner-container") || Bt(c.targetTouches[0].target, ".gslide-desc") || c.targetTouches[0].target.nodeName.toLowerCase() == "a") && (t = !1), Bt(c.targetTouches[0].target, ".gslide-inline") && !Lt(c.targetTouches[0].target.parentNode, "gslide-inline") && (t = !1), t) {
|
|
1748
|
+
if (E = c.targetTouches[0], S.pageX = c.targetTouches[0].pageX, S.pageY = c.targetTouches[0].pageY, j = c.targetTouches[0].clientX, q = c.targetTouches[0].clientY, n = o.activeSlide, r = n.querySelector(".gslide-media"), J = n.querySelector(".gslide-inline"), a = null, Lt(r, "gslide-image") && (a = r.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (r = n.querySelector(".ginner-container")), xt(y, "greset"), c.pageX > 20 && c.pageX < window.innerWidth - 20)
|
|
1749
1749
|
return;
|
|
1750
|
-
|
|
1750
|
+
c.preventDefault();
|
|
1751
1751
|
}
|
|
1752
1752
|
},
|
|
1753
|
-
touchMove: (
|
|
1754
|
-
if (!t || (
|
|
1753
|
+
touchMove: (c) => {
|
|
1754
|
+
if (!t || (E = c.targetTouches[0], x || L))
|
|
1755
1755
|
return;
|
|
1756
|
-
if (
|
|
1757
|
-
const
|
|
1758
|
-
if (Math.abs(
|
|
1756
|
+
if (J && J.offsetHeight > s) {
|
|
1757
|
+
const B = S.pageX - E.pageX;
|
|
1758
|
+
if (Math.abs(B) <= 13)
|
|
1759
1759
|
return !1;
|
|
1760
1760
|
}
|
|
1761
|
-
|
|
1762
|
-
let
|
|
1763
|
-
Math.abs(
|
|
1764
|
-
let
|
|
1765
|
-
if (l && a && (
|
|
1766
|
-
return ge(r, `translate3d(${
|
|
1767
|
-
ge(r, `translate3d(${
|
|
1761
|
+
u = !0;
|
|
1762
|
+
let w = c.targetTouches[0].clientX, C = c.targetTouches[0].clientY, T = j - w, D = q - C;
|
|
1763
|
+
Math.abs(T) > Math.abs(D) ? (l = !1, f = !0) : (f = !1, l = !0), Dt = E.pageX - S.pageX, _t = Dt * 100 / i, St = E.pageY - S.pageY, Tt = St * 100 / s;
|
|
1764
|
+
let W;
|
|
1765
|
+
if (l && a && (W = 1 - Math.abs(St) / s, y.style.opacity = W, o.settings.touchFollowAxis && (_t = 0)), f && (W = 1 - Math.abs(Dt) / i, r.style.opacity = W, o.settings.touchFollowAxis && (Tt = 0)), !a)
|
|
1766
|
+
return ge(r, `translate3d(${_t}%, 0, 0)`);
|
|
1767
|
+
ge(r, `translate3d(${_t}%, ${Tt}%, 0)`);
|
|
1768
1768
|
},
|
|
1769
1769
|
touchEnd: () => {
|
|
1770
1770
|
if (!t)
|
|
1771
1771
|
return;
|
|
1772
|
-
if (
|
|
1773
|
-
|
|
1772
|
+
if (u = !1, L || x) {
|
|
1773
|
+
et = M, st = Y;
|
|
1774
1774
|
return;
|
|
1775
1775
|
}
|
|
1776
|
-
const
|
|
1777
|
-
if (
|
|
1776
|
+
const c = Math.abs(parseInt(Tt)), w = Math.abs(parseInt(_t));
|
|
1777
|
+
if (c > 29 && a) {
|
|
1778
1778
|
o.close();
|
|
1779
1779
|
return;
|
|
1780
1780
|
}
|
|
1781
|
-
if (
|
|
1782
|
-
return
|
|
1781
|
+
if (c < 29 && w < 25)
|
|
1782
|
+
return z(y, "greset"), y.style.opacity = 1, we(r);
|
|
1783
1783
|
},
|
|
1784
1784
|
multipointEnd: () => {
|
|
1785
1785
|
setTimeout(() => {
|
|
1786
|
-
|
|
1786
|
+
x = !1;
|
|
1787
1787
|
}, 50);
|
|
1788
1788
|
},
|
|
1789
1789
|
multipointStart: () => {
|
|
1790
|
-
|
|
1790
|
+
x = !0, d = b || 1;
|
|
1791
1791
|
},
|
|
1792
|
-
pinch: (
|
|
1793
|
-
if (!a ||
|
|
1792
|
+
pinch: (c) => {
|
|
1793
|
+
if (!a || u)
|
|
1794
1794
|
return !1;
|
|
1795
|
-
|
|
1796
|
-
let
|
|
1797
|
-
if (
|
|
1798
|
-
|
|
1795
|
+
x = !0, a.scaleX = a.scaleY = d * c.zoom;
|
|
1796
|
+
let w = d * c.zoom;
|
|
1797
|
+
if (L = !0, w <= 1) {
|
|
1798
|
+
L = !1, w = 1, st = null, et = null, M = null, Y = null, a.setAttribute("style", "");
|
|
1799
1799
|
return;
|
|
1800
1800
|
}
|
|
1801
|
-
|
|
1801
|
+
w > m && (w = m), a.style.transform = `scale3d(${w}, ${w}, 1)`, b = w;
|
|
1802
1802
|
},
|
|
1803
|
-
pressMove: (
|
|
1804
|
-
if (
|
|
1805
|
-
var
|
|
1806
|
-
|
|
1807
|
-
let
|
|
1808
|
-
b && (
|
|
1803
|
+
pressMove: (c) => {
|
|
1804
|
+
if (L && !x) {
|
|
1805
|
+
var w = E.pageX - S.pageX, C = E.pageY - S.pageY;
|
|
1806
|
+
et && (w = w + et), st && (C = C + st), M = w, Y = C;
|
|
1807
|
+
let T = `translate3d(${w}px, ${C}px, 0)`;
|
|
1808
|
+
b && (T += ` scale3d(${b}, ${b}, 1)`), ge(a, T);
|
|
1809
1809
|
}
|
|
1810
1810
|
},
|
|
1811
|
-
swipe: (
|
|
1812
|
-
if (!
|
|
1813
|
-
if (
|
|
1814
|
-
|
|
1811
|
+
swipe: (c) => {
|
|
1812
|
+
if (!L) {
|
|
1813
|
+
if (x) {
|
|
1814
|
+
x = !1;
|
|
1815
1815
|
return;
|
|
1816
1816
|
}
|
|
1817
|
-
if (
|
|
1817
|
+
if (c.direction == "Left") {
|
|
1818
1818
|
if (o.index == o.elements.length - 1)
|
|
1819
|
-
return
|
|
1819
|
+
return we(r);
|
|
1820
1820
|
o.nextSlide();
|
|
1821
1821
|
}
|
|
1822
|
-
if (
|
|
1822
|
+
if (c.direction == "Right") {
|
|
1823
1823
|
if (o.index == 0)
|
|
1824
|
-
return
|
|
1824
|
+
return we(r);
|
|
1825
1825
|
o.prevSlide();
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
1829
1829
|
});
|
|
1830
|
-
o.events.touch =
|
|
1830
|
+
o.events.touch = h;
|
|
1831
1831
|
}
|
|
1832
|
-
class
|
|
1832
|
+
class ui {
|
|
1833
1833
|
constructor(e, i, s = null) {
|
|
1834
1834
|
if (this.img = e, this.slide = i, this.onclose = s, this.img.setZoomEvents)
|
|
1835
1835
|
return !1;
|
|
@@ -1887,7 +1887,7 @@ class gi {
|
|
|
1887
1887
|
return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
1890
|
-
class
|
|
1890
|
+
class Me {
|
|
1891
1891
|
constructor(e = {}) {
|
|
1892
1892
|
let { dragEl: i, toleranceX: s = 40, toleranceY: t = 65, slide: n = null, instance: r = null } = e;
|
|
1893
1893
|
this.el = i, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = s, this.toleranceY = t, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = n, this.instance = r, this.el.addEventListener("mousedown", (a) => this.dragStart(a), !1), this.el.addEventListener("mouseup", (a) => this.dragEnd(a), !1), this.el.addEventListener("mousemove", (a) => this.drag(a), !1);
|
|
@@ -1899,11 +1899,11 @@ class De {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
e.type === "touchstart" ? (this.initialX = e.touches[0].clientX - this.xOffset, this.initialY = e.touches[0].clientY - this.yOffset) : (this.initialX = e.clientX - this.xOffset, this.initialY = e.clientY - this.yOffset);
|
|
1901
1901
|
let i = e.target.nodeName.toLowerCase(), s = ["input", "select", "textarea", "button", "a"];
|
|
1902
|
-
if (e.target.classList.contains("nodrag") ||
|
|
1902
|
+
if (e.target.classList.contains("nodrag") || Bt(e.target, ".nodrag") || s.indexOf(i) !== -1) {
|
|
1903
1903
|
this.active = !1;
|
|
1904
1904
|
return;
|
|
1905
1905
|
}
|
|
1906
|
-
e.preventDefault(), (e.target === this.el || i !== "img" &&
|
|
1906
|
+
e.preventDefault(), (e.target === this.el || i !== "img" && Bt(e.target, ".gslide-inline")) && (this.active = !0, this.el.classList.add("dragging"), this.dragContainer = Bt(e.target, ".ginner-container"));
|
|
1907
1907
|
}
|
|
1908
1908
|
dragEnd(e) {
|
|
1909
1909
|
e && e.preventDefault(), this.initialX = 0, this.initialY = 0, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.active = !1, this.doSlideChange && (this.instance.preventOutsideClick = !0, this.doSlideChange == "right" && this.instance.prevSlide(), this.doSlideChange == "left" && this.instance.nextSlide()), this.doSlideClose && this.instance.close(), this.toleranceReached || this.setTranslate(this.dragContainer, 0, 0, !0), setTimeout(() => {
|
|
@@ -1946,74 +1946,74 @@ class De {
|
|
|
1946
1946
|
t ? e.style.transition = "all .2s ease" : e.style.transition = "", e.style.transform = `translate3d(${i}px, ${s}px, 0)`;
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1949
|
+
function fi(o, e, i, s) {
|
|
1950
1950
|
const t = o.querySelector(".gslide-media");
|
|
1951
1951
|
let n = new Image(), r = "gSlideTitle_" + i, a = "gSlideDesc_" + i;
|
|
1952
1952
|
n.addEventListener("load", () => {
|
|
1953
|
-
|
|
1953
|
+
F(s) && s();
|
|
1954
1954
|
}, !1), n.src = e.href, e.sizes != "" && e.srcset != "" && (n.sizes = e.sizes, n.srcset = e.srcset), n.alt = "", !Xt(e.alt) && e.alt !== "" && (n.alt = e.alt), e.title !== "" && n.setAttribute("aria-labelledby", r), e.description !== "" && n.setAttribute("aria-describedby", a), e.hasOwnProperty("_hasCustomWidth") && e._hasCustomWidth && (n.style.width = e.width), e.hasOwnProperty("_hasCustomHeight") && e._hasCustomHeight && (n.style.height = e.height), t.insertBefore(n, t.firstChild);
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function gi(o, e, i, s) {
|
|
1957
1957
|
const t = o.querySelector(".ginner-container"), n = "gvideo" + i, r = o.querySelector(".gslide-media"), a = this.getAllPlayers();
|
|
1958
|
-
|
|
1959
|
-
const
|
|
1960
|
-
|
|
1961
|
-
let d = e.href,
|
|
1962
|
-
r.style.maxWidth = e.width,
|
|
1963
|
-
if (!
|
|
1964
|
-
|
|
1965
|
-
let
|
|
1966
|
-
|
|
1958
|
+
z(t, "gvideo-container"), r.insertBefore(Ut('<div class="gvideo-wrapper"></div>'), r.firstChild);
|
|
1959
|
+
const u = o.querySelector(".gvideo-wrapper");
|
|
1960
|
+
Ve(this.settings.plyr.css, "Plyr");
|
|
1961
|
+
let d = e.href, m = e?.videoProvider, b = !1;
|
|
1962
|
+
r.style.maxWidth = e.width, Ve(this.settings.plyr.js, "Plyr", () => {
|
|
1963
|
+
if (!m && d.match(/vimeo\.com\/([0-9]*)/) && (m = "vimeo"), !m && (d.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || d.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || d.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)) && (m = "youtube"), m === "local" || !m) {
|
|
1964
|
+
m = "local";
|
|
1965
|
+
let Y = '<video id="' + n + '" ';
|
|
1966
|
+
Y += `style="background:#000; max-width: ${e.width};" `, Y += 'preload="metadata" ', Y += 'x-webkit-airplay="allow" ', Y += "playsinline ", Y += "controls ", Y += 'class="gvideo-local">', Y += `<source src="${d}">`, Y += "</video>", b = Ut(Y);
|
|
1967
1967
|
}
|
|
1968
|
-
const
|
|
1969
|
-
|
|
1970
|
-
const
|
|
1971
|
-
|
|
1972
|
-
a[n] =
|
|
1973
|
-
}),
|
|
1968
|
+
const x = b || Ut(`<div id="${n}" data-plyr-provider="${m}" data-plyr-embed-id="${d}"></div>`);
|
|
1969
|
+
z(u, `${m}-video gvideo`), u.appendChild(x), u.setAttribute("data-id", n), u.setAttribute("data-index", i);
|
|
1970
|
+
const L = Ot(this.settings.plyr, "config") ? this.settings.plyr.config : {}, M = new Plyr("#" + n, L);
|
|
1971
|
+
M.on("ready", (Y) => {
|
|
1972
|
+
a[n] = Y.detail.plyr, F(s) && s();
|
|
1973
|
+
}), xe(
|
|
1974
1974
|
() => o.querySelector("iframe") && o.querySelector("iframe").dataset.ready == "true",
|
|
1975
1975
|
() => {
|
|
1976
1976
|
this.resize(o);
|
|
1977
1977
|
}
|
|
1978
|
-
),
|
|
1978
|
+
), M.on("enterfullscreen", Ne), M.on("exitfullscreen", Ne);
|
|
1979
1979
|
});
|
|
1980
1980
|
}
|
|
1981
1981
|
function Ne(o) {
|
|
1982
|
-
const e =
|
|
1983
|
-
o.type === "enterfullscreen" &&
|
|
1982
|
+
const e = Bt(o.target, ".gslide-media");
|
|
1983
|
+
o.type === "enterfullscreen" && z(e, "fullscreen"), o.type === "exitfullscreen" && xt(e, "fullscreen");
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1986
|
-
const t = o.querySelector(".gslide-media"), n =
|
|
1985
|
+
function pi(o, e, i, s) {
|
|
1986
|
+
const t = o.querySelector(".gslide-media"), n = Ot(e, "href") && e.href ? e.href.split("#").pop().trim() : !1, r = Ot(e, "content") && e.content ? e.content : !1;
|
|
1987
1987
|
let a;
|
|
1988
1988
|
if (r && (Kt(r) && (a = Ut(`<div class="ginlined-content">${r}</div>`)), $t(r))) {
|
|
1989
1989
|
r.style.display == "none" && (r.style.display = "block");
|
|
1990
|
-
const
|
|
1991
|
-
|
|
1990
|
+
const u = document.createElement("div");
|
|
1991
|
+
u.className = "ginlined-content", u.appendChild(r), a = u;
|
|
1992
1992
|
}
|
|
1993
1993
|
if (n) {
|
|
1994
|
-
let
|
|
1995
|
-
if (!
|
|
1994
|
+
let u = document.getElementById(n);
|
|
1995
|
+
if (!u)
|
|
1996
1996
|
return !1;
|
|
1997
|
-
const d =
|
|
1998
|
-
d.style.height = e.height, d.style.maxWidth = e.width,
|
|
1997
|
+
const d = u.cloneNode(!0);
|
|
1998
|
+
d.style.height = e.height, d.style.maxWidth = e.width, z(d, "ginlined-content"), a = d;
|
|
1999
1999
|
}
|
|
2000
2000
|
if (!a)
|
|
2001
2001
|
return console.error("Unable to append inline slide content", e), !1;
|
|
2002
|
-
t.style.height = e.height, t.style.width = e.width, t.appendChild(a), this.events["inlineclose" + n] =
|
|
2002
|
+
t.style.height = e.height, t.style.width = e.width, t.appendChild(a), this.events["inlineclose" + n] = Wt("click", {
|
|
2003
2003
|
onElement: t.querySelectorAll(".gtrigger-close"),
|
|
2004
|
-
withCallback: (
|
|
2005
|
-
|
|
2004
|
+
withCallback: (u) => {
|
|
2005
|
+
u.preventDefault(), this.close();
|
|
2006
2006
|
}
|
|
2007
|
-
}),
|
|
2007
|
+
}), F(s) && s();
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2010
|
-
const t = o.querySelector(".gslide-media"), n =
|
|
2009
|
+
function mi(o, e, i, s) {
|
|
2010
|
+
const t = o.querySelector(".gslide-media"), n = ii({
|
|
2011
2011
|
url: e.href,
|
|
2012
2012
|
callback: s
|
|
2013
2013
|
});
|
|
2014
2014
|
t.parentNode.style.maxWidth = e.width, t.parentNode.style.height = e.height, t.appendChild(n);
|
|
2015
2015
|
}
|
|
2016
|
-
class
|
|
2016
|
+
class bi {
|
|
2017
2017
|
constructor(e = {}) {
|
|
2018
2018
|
this.defaults = {
|
|
2019
2019
|
href: "",
|
|
@@ -2046,15 +2046,15 @@ class vi {
|
|
|
2046
2046
|
parseConfig(e, i) {
|
|
2047
2047
|
let s = Rt({ descPosition: i.descPosition }, this.defaults);
|
|
2048
2048
|
if (Qt(e) && !$t(e)) {
|
|
2049
|
-
|
|
2049
|
+
Ot(e, "type") || (Ot(e, "content") && e.content ? e.type = "inline" : Ot(e, "href") && (e.type = this.sourceType(e.href)));
|
|
2050
2050
|
let a = Rt(s, e);
|
|
2051
2051
|
return this.setSize(a, i), a;
|
|
2052
2052
|
}
|
|
2053
2053
|
let t = "", n = e.getAttribute("data-glightbox"), r = e.nodeName.toLowerCase();
|
|
2054
|
-
if (r === "a" && (t = e.href), r === "img" && (t = e.src, s.alt = e.alt), s.href = t,
|
|
2055
|
-
|
|
2056
|
-
const d = e.dataset[
|
|
2057
|
-
Xt(d) || (s[
|
|
2054
|
+
if (r === "a" && (t = e.href), r === "img" && (t = e.src, s.alt = e.alt), s.href = t, lt(s, (a, u) => {
|
|
2055
|
+
Ot(i, u) && u !== "width" && (s[u] = i[u]);
|
|
2056
|
+
const d = e.dataset[u];
|
|
2057
|
+
Xt(d) || (s[u] = this.sanitizeValue(d));
|
|
2058
2058
|
}), s.content && (s.type = "inline"), !s.type && t && (s.type = this.sourceType(t)), Xt(n)) {
|
|
2059
2059
|
if (!s.title && r == "a") {
|
|
2060
2060
|
let a = e.title;
|
|
@@ -2066,13 +2066,13 @@ class vi {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
} else {
|
|
2068
2068
|
let a = [];
|
|
2069
|
-
|
|
2069
|
+
lt(s, (u, d) => {
|
|
2070
2070
|
a.push(";\\s?" + d);
|
|
2071
|
-
}), a = a.join("\\s?:|"), n.trim() !== "" &&
|
|
2072
|
-
const
|
|
2073
|
-
if (
|
|
2074
|
-
const
|
|
2075
|
-
s[d] = this.sanitizeValue(
|
|
2071
|
+
}), a = a.join("\\s?:|"), n.trim() !== "" && lt(s, (u, d) => {
|
|
2072
|
+
const m = n, b = "s?" + d + "s?:s?(.*?)(" + a + "s?:|$)", x = new RegExp(b), L = m.match(x);
|
|
2073
|
+
if (L && L.length && L[1]) {
|
|
2074
|
+
const M = L[1].trim().replace(/;\s*$/, "");
|
|
2075
|
+
s[d] = this.sanitizeValue(M);
|
|
2076
2076
|
}
|
|
2077
2077
|
});
|
|
2078
2078
|
}
|
|
@@ -2080,9 +2080,9 @@ class vi {
|
|
|
2080
2080
|
let a;
|
|
2081
2081
|
try {
|
|
2082
2082
|
a = document.querySelector(s.description).innerHTML;
|
|
2083
|
-
} catch (
|
|
2084
|
-
if (!(
|
|
2085
|
-
throw
|
|
2083
|
+
} catch (u) {
|
|
2084
|
+
if (!(u instanceof DOMException))
|
|
2085
|
+
throw u;
|
|
2086
2086
|
}
|
|
2087
2087
|
a && (s.description = a);
|
|
2088
2088
|
}
|
|
@@ -2103,7 +2103,7 @@ class vi {
|
|
|
2103
2103
|
*/
|
|
2104
2104
|
setSize(e, i, s = null) {
|
|
2105
2105
|
const t = e.type == "video" ? this.checkSize(i.videosWidth) : this.checkSize(i.width), n = this.checkSize(i.height);
|
|
2106
|
-
return e.width =
|
|
2106
|
+
return e.width = Ot(e, "width") && e.width !== "" ? this.checkSize(e.width) : t, e.height = Ot(e, "height") && e.height !== "" ? this.checkSize(e.height) : n, s && e.type == "image" && (e._hasCustomWidth = !!s.dataset.width, e._hasCustomHeight = !!s.dataset.height), e;
|
|
2107
2107
|
}
|
|
2108
2108
|
/**
|
|
2109
2109
|
* [checkSize size
|
|
@@ -2137,31 +2137,31 @@ class ue {
|
|
|
2137
2137
|
* @param {function} callback
|
|
2138
2138
|
*/
|
|
2139
2139
|
setContent(e = null, i = !1) {
|
|
2140
|
-
if (
|
|
2140
|
+
if (Lt(e, "loaded"))
|
|
2141
2141
|
return !1;
|
|
2142
|
-
const s = this.instance.settings, t = this.slideConfig, n =
|
|
2143
|
-
|
|
2142
|
+
const s = this.instance.settings, t = this.slideConfig, n = Se();
|
|
2143
|
+
F(s.beforeSlideLoad) && s.beforeSlideLoad({
|
|
2144
2144
|
index: this.index,
|
|
2145
2145
|
slide: e,
|
|
2146
2146
|
player: !1
|
|
2147
2147
|
});
|
|
2148
|
-
let r = t.type, a = t.descPosition,
|
|
2149
|
-
if (
|
|
2150
|
-
|
|
2148
|
+
let r = t.type, a = t.descPosition, u = e.querySelector(".gslide-media"), d = e.querySelector(".gslide-title"), m = e.querySelector(".gslide-desc"), b = e.querySelector(".gdesc-inner"), x = i, L = "gSlideTitle_" + this.index, M = "gSlideDesc_" + this.index;
|
|
2149
|
+
if (F(s.afterSlideLoad) && (x = () => {
|
|
2150
|
+
F(i) && i(), s.afterSlideLoad({
|
|
2151
2151
|
index: this.index,
|
|
2152
2152
|
slide: e,
|
|
2153
2153
|
player: this.instance.getSlidePlayerInstance(this.index)
|
|
2154
2154
|
});
|
|
2155
|
-
}), t.title == "" && t.description == "" ? b && b.parentNode.parentNode.removeChild(b.parentNode) : (d && t.title !== "" ? (d.id =
|
|
2156
|
-
|
|
2155
|
+
}), t.title == "" && t.description == "" ? b && b.parentNode.parentNode.removeChild(b.parentNode) : (d && t.title !== "" ? (d.id = L, d.innerHTML = t.title) : d.parentNode.removeChild(d), m && t.description !== "" ? (m.id = M, n && s.moreLength > 0 ? (t.smallDescription = this.slideShortDesc(t.description, s.moreLength, s.moreText), m.innerHTML = t.smallDescription, this.descriptionEvents(m, t)) : m.innerHTML = t.description) : m.parentNode.removeChild(m), z(u.parentNode, `desc-${a}`), z(b.parentNode, `description-${a}`)), z(u, `gslide-${r}`), z(e, "loaded"), r === "video") {
|
|
2156
|
+
gi.apply(this.instance, [e, t, this.index, x]);
|
|
2157
2157
|
return;
|
|
2158
2158
|
}
|
|
2159
2159
|
if (r === "external") {
|
|
2160
|
-
|
|
2160
|
+
mi.apply(this, [e, t, this.index, x]);
|
|
2161
2161
|
return;
|
|
2162
2162
|
}
|
|
2163
2163
|
if (r === "inline") {
|
|
2164
|
-
|
|
2164
|
+
pi.apply(this.instance, [e, t, this.index, x]), t.draggable && new Me({
|
|
2165
2165
|
dragEl: e.querySelector(".gslide-inline"),
|
|
2166
2166
|
toleranceX: s.dragToleranceX,
|
|
2167
2167
|
toleranceY: s.dragToleranceY,
|
|
@@ -2171,21 +2171,21 @@ class ue {
|
|
|
2171
2171
|
return;
|
|
2172
2172
|
}
|
|
2173
2173
|
if (r === "image") {
|
|
2174
|
-
|
|
2175
|
-
const
|
|
2176
|
-
t.draggable && new
|
|
2177
|
-
dragEl:
|
|
2174
|
+
fi(e, t, this.index, () => {
|
|
2175
|
+
const Y = e.querySelector("img");
|
|
2176
|
+
t.draggable && new Me({
|
|
2177
|
+
dragEl: Y,
|
|
2178
2178
|
toleranceX: s.dragToleranceX,
|
|
2179
2179
|
toleranceY: s.dragToleranceY,
|
|
2180
2180
|
slide: e,
|
|
2181
2181
|
instance: this.instance
|
|
2182
|
-
}), t.zoomable &&
|
|
2182
|
+
}), t.zoomable && Y.naturalWidth > Y.offsetWidth && (z(Y, "zoomable"), new ui(Y, e, () => {
|
|
2183
2183
|
this.instance.resize();
|
|
2184
|
-
})),
|
|
2184
|
+
})), F(x) && x();
|
|
2185
2185
|
});
|
|
2186
2186
|
return;
|
|
2187
2187
|
}
|
|
2188
|
-
|
|
2188
|
+
F(x) && x();
|
|
2189
2189
|
}
|
|
2190
2190
|
slideShortDesc(e, i = 50, s = !1) {
|
|
2191
2191
|
let t = document.createElement("div");
|
|
@@ -2200,21 +2200,21 @@ class ue {
|
|
|
2200
2200
|
let s = e.querySelector(".desc-more");
|
|
2201
2201
|
if (!s)
|
|
2202
2202
|
return !1;
|
|
2203
|
-
|
|
2203
|
+
Wt("click", {
|
|
2204
2204
|
onElement: s,
|
|
2205
2205
|
withCallback: (t, n) => {
|
|
2206
2206
|
t.preventDefault();
|
|
2207
2207
|
const r = document.body;
|
|
2208
|
-
let a =
|
|
2208
|
+
let a = Bt(n, ".gslide-desc");
|
|
2209
2209
|
if (!a)
|
|
2210
2210
|
return !1;
|
|
2211
|
-
a.innerHTML = i.description,
|
|
2212
|
-
let
|
|
2213
|
-
onElement: [r,
|
|
2214
|
-
withCallback: (d,
|
|
2215
|
-
d.target.nodeName.toLowerCase() !== "a" && (
|
|
2216
|
-
|
|
2217
|
-
}, 400),
|
|
2211
|
+
a.innerHTML = i.description, z(r, "gdesc-open");
|
|
2212
|
+
let u = Wt("click", {
|
|
2213
|
+
onElement: [r, Bt(a, ".gslide-description")],
|
|
2214
|
+
withCallback: (d, m) => {
|
|
2215
|
+
d.target.nodeName.toLowerCase() !== "a" && (xt(r, "gdesc-open"), z(r, "gdesc-closed"), a.innerHTML = i.smallDescription, this.descriptionEvents(a, i), setTimeout(() => {
|
|
2216
|
+
xt(r, "gdesc-closed");
|
|
2217
|
+
}, 400), u.destroy());
|
|
2218
2218
|
}
|
|
2219
2219
|
});
|
|
2220
2220
|
}
|
|
@@ -2239,14 +2239,14 @@ class ue {
|
|
|
2239
2239
|
*/
|
|
2240
2240
|
getConfig() {
|
|
2241
2241
|
!$t(this.element) && !this.element.hasOwnProperty("draggable") && (this.element.draggable = this.instance.settings.draggable);
|
|
2242
|
-
const e = new
|
|
2242
|
+
const e = new bi(this.instance.settings.slideExtraAttributes);
|
|
2243
2243
|
return this.slideConfig = e.parseConfig(this.element, this.instance.settings), this.slideConfig;
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
|
-
const
|
|
2247
|
-
let
|
|
2248
|
-
typeof document > "u" || (
|
|
2249
|
-
const
|
|
2246
|
+
const yi = "3.2.0", ze = Se(), De = si();
|
|
2247
|
+
let Oe;
|
|
2248
|
+
typeof document > "u" || (Oe = document.getElementsByTagName("html")[0]);
|
|
2249
|
+
const _e = {
|
|
2250
2250
|
selector: ".glightbox",
|
|
2251
2251
|
elements: null,
|
|
2252
2252
|
skin: "clean",
|
|
@@ -2324,7 +2324,7 @@ const Te = {
|
|
|
2324
2324
|
prev: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>'
|
|
2325
2325
|
}
|
|
2326
2326
|
};
|
|
2327
|
-
|
|
2327
|
+
_e.slideHTML = `<div class="gslide">
|
|
2328
2328
|
<div class="gslide-inner-content">
|
|
2329
2329
|
<div class="ginner-container">
|
|
2330
2330
|
<div class="gslide-media">
|
|
@@ -2338,7 +2338,7 @@ Te.slideHTML = `<div class="gslide">
|
|
|
2338
2338
|
</div>
|
|
2339
2339
|
</div>
|
|
2340
2340
|
</div>`;
|
|
2341
|
-
|
|
2341
|
+
_e.lightboxHTML = `<div id="glightbox-body" class="glightbox-container" tabindex="-1" role="dialog" aria-hidden="false">
|
|
2342
2342
|
<div class="gloader visible"></div>
|
|
2343
2343
|
<div class="goverlay"></div>
|
|
2344
2344
|
<div class="gcontainer">
|
|
@@ -2348,13 +2348,13 @@ Te.lightboxHTML = `<div id="glightbox-body" class="glightbox-container" tabindex
|
|
|
2348
2348
|
<button class="gnext gbtn" aria-label="Next" data-taborder="1">{nextSVG}</button>
|
|
2349
2349
|
</div>
|
|
2350
2350
|
</div>`;
|
|
2351
|
-
class
|
|
2351
|
+
class Pe {
|
|
2352
2352
|
constructor(e = {}) {
|
|
2353
|
-
this.customOptions = e, this.settings = Rt(
|
|
2353
|
+
this.customOptions = e, this.settings = Rt(_e, e), this.effectsClasses = this.getAnimationClasses(), this.videoPlayers = {}, this.apiEvents = [], this.fullElementsList = !1;
|
|
2354
2354
|
}
|
|
2355
2355
|
init() {
|
|
2356
2356
|
const e = this.getSelector();
|
|
2357
|
-
e && (this.baseEvents =
|
|
2357
|
+
e && (this.baseEvents = Wt("click", {
|
|
2358
2358
|
onElement: e,
|
|
2359
2359
|
withCallback: (i, s) => {
|
|
2360
2360
|
i.preventDefault(), this.open(s);
|
|
@@ -2374,9 +2374,9 @@ class Xe {
|
|
|
2374
2374
|
const t = document.body, n = window.innerWidth - document.documentElement.clientWidth;
|
|
2375
2375
|
if (n > 0) {
|
|
2376
2376
|
var r = document.createElement("style");
|
|
2377
|
-
r.type = "text/css", r.className = "gcss-styles", r.innerText = `.gscrollbar-fixer {margin-right: ${n}px}`, document.head.appendChild(r),
|
|
2377
|
+
r.type = "text/css", r.className = "gcss-styles", r.innerText = `.gscrollbar-fixer {margin-right: ${n}px}`, document.head.appendChild(r), z(t, "gscrollbar-fixer");
|
|
2378
2378
|
}
|
|
2379
|
-
|
|
2379
|
+
z(t, "glightbox-open"), z(Oe, "glightbox-open"), ze && (z(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (z(this.prevButton, "glightbox-button-hidden"), z(this.nextButton, "glightbox-button-hidden")) : (xt(this.prevButton, "glightbox-button-hidden"), xt(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), F(this.settings.onOpen) && this.settings.onOpen(), De && this.settings.touchNavigation && ci(this), this.settings.keyboardNavigation && ni(this);
|
|
2380
2380
|
}
|
|
2381
2381
|
/**
|
|
2382
2382
|
* Open at specific index
|
|
@@ -2389,14 +2389,14 @@ class Xe {
|
|
|
2389
2389
|
* Set Slide
|
|
2390
2390
|
*/
|
|
2391
2391
|
showSlide(e = 0, i = !1) {
|
|
2392
|
-
|
|
2392
|
+
Le(this.loader), this.index = parseInt(e);
|
|
2393
2393
|
let s = this.slidesContainer.querySelector(".current");
|
|
2394
|
-
s &&
|
|
2394
|
+
s && xt(s, "current"), this.slideAnimateOut();
|
|
2395
2395
|
let t = this.slidesContainer.querySelectorAll(".gslide")[e];
|
|
2396
|
-
if (
|
|
2397
|
-
this.slideAnimateIn(t, i),
|
|
2396
|
+
if (Lt(t, "loaded"))
|
|
2397
|
+
this.slideAnimateIn(t, i), ve(this.loader);
|
|
2398
2398
|
else {
|
|
2399
|
-
|
|
2399
|
+
Le(this.loader);
|
|
2400
2400
|
const n = this.elements[e], r = {
|
|
2401
2401
|
index: this.index,
|
|
2402
2402
|
slide: t,
|
|
@@ -2408,10 +2408,10 @@ class Xe {
|
|
|
2408
2408
|
player: null
|
|
2409
2409
|
};
|
|
2410
2410
|
this.trigger("slide_before_load", r), n.instance.setContent(t, () => {
|
|
2411
|
-
|
|
2411
|
+
ve(this.loader), this.resize(), this.slideAnimateIn(t, i), this.trigger("slide_after_load", r);
|
|
2412
2412
|
});
|
|
2413
2413
|
}
|
|
2414
|
-
this.slideDescription = t.querySelector(".gslide-description"), this.slideDescriptionContained = this.slideDescription &&
|
|
2414
|
+
this.slideDescription = t.querySelector(".gslide-description"), this.slideDescriptionContained = this.slideDescription && Lt(this.slideDescription.parentNode, "gslide-media"), this.settings.preload && (this.preloadSlide(e + 1), this.preloadSlide(e - 1)), this.updateNavigationClasses(), this.activeSlide = t;
|
|
2415
2415
|
}
|
|
2416
2416
|
/**
|
|
2417
2417
|
* Preload slides
|
|
@@ -2422,7 +2422,7 @@ class Xe {
|
|
|
2422
2422
|
if (e < 0 || e > this.elements.length - 1 || Xt(this.elements[e]))
|
|
2423
2423
|
return !1;
|
|
2424
2424
|
let i = this.slidesContainer.querySelectorAll(".gslide")[e];
|
|
2425
|
-
if (
|
|
2425
|
+
if (Lt(i, "loaded"))
|
|
2426
2426
|
return !1;
|
|
2427
2427
|
const s = this.elements[e], t = s.type, n = {
|
|
2428
2428
|
index: e,
|
|
@@ -2476,27 +2476,27 @@ class Xe {
|
|
|
2476
2476
|
i < 0 && (i = this.elements.length);
|
|
2477
2477
|
const s = new ue(e, this, i), t = s.getConfig(), n = Rt({}, t), r = s.create(), a = this.elements.length - 1;
|
|
2478
2478
|
n.index = i, n.node = !1, n.instance = s, n.slideConfig = t, this.elements.splice(i, 0, n);
|
|
2479
|
-
let
|
|
2479
|
+
let u = null, d = null;
|
|
2480
2480
|
if (this.slidesContainer) {
|
|
2481
2481
|
if (i > a)
|
|
2482
2482
|
this.slidesContainer.appendChild(r);
|
|
2483
2483
|
else {
|
|
2484
|
-
let
|
|
2485
|
-
this.slidesContainer.insertBefore(r,
|
|
2484
|
+
let m = this.slidesContainer.querySelectorAll(".gslide")[i];
|
|
2485
|
+
this.slidesContainer.insertBefore(r, m);
|
|
2486
2486
|
}
|
|
2487
|
-
(this.settings.preload && this.index == 0 && i == 0 || this.index - 1 == i || this.index + 1 == i) && this.preloadSlide(i), this.index === 0 && i === 0 && (this.index = 1), this.updateNavigationClasses(),
|
|
2487
|
+
(this.settings.preload && this.index == 0 && i == 0 || this.index - 1 == i || this.index + 1 == i) && this.preloadSlide(i), this.index === 0 && i === 0 && (this.index = 1), this.updateNavigationClasses(), u = this.slidesContainer.querySelectorAll(".gslide")[i], d = this.getSlidePlayerInstance(i), n.slideNode = u;
|
|
2488
2488
|
}
|
|
2489
2489
|
this.trigger("slide_inserted", {
|
|
2490
2490
|
index: i,
|
|
2491
|
-
slide:
|
|
2492
|
-
slideNode:
|
|
2491
|
+
slide: u,
|
|
2492
|
+
slideNode: u,
|
|
2493
2493
|
slideConfig: t,
|
|
2494
2494
|
slideIndex: i,
|
|
2495
2495
|
trigger: null,
|
|
2496
2496
|
player: d
|
|
2497
|
-
}),
|
|
2497
|
+
}), F(this.settings.slideInserted) && this.settings.slideInserted({
|
|
2498
2498
|
index: i,
|
|
2499
|
-
slide:
|
|
2499
|
+
slide: u,
|
|
2500
2500
|
player: d
|
|
2501
2501
|
});
|
|
2502
2502
|
}
|
|
@@ -2509,7 +2509,7 @@ class Xe {
|
|
|
2509
2509
|
if (e < 0 || e > this.elements.length - 1)
|
|
2510
2510
|
return !1;
|
|
2511
2511
|
const i = this.slidesContainer && this.slidesContainer.querySelectorAll(".gslide")[e];
|
|
2512
|
-
i && (this.getActiveSlideIndex() == e && (e == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), i.parentNode.removeChild(i)), this.elements.splice(e, 1), this.trigger("slide_removed", e),
|
|
2512
|
+
i && (this.getActiveSlideIndex() == e && (e == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), i.parentNode.removeChild(i)), this.elements.splice(e, 1), this.trigger("slide_removed", e), F(this.settings.slideRemoved) && this.settings.slideRemoved(e);
|
|
2513
2513
|
}
|
|
2514
2514
|
/**
|
|
2515
2515
|
* Slide In
|
|
@@ -2535,25 +2535,25 @@ class Xe {
|
|
|
2535
2535
|
trigger: this.elements[this.index].node,
|
|
2536
2536
|
player: this.getSlidePlayerInstance(this.index)
|
|
2537
2537
|
};
|
|
2538
|
-
if (s.offsetWidth > 0 && t && (
|
|
2538
|
+
if (s.offsetWidth > 0 && t && (ve(t), t.style.display = ""), xt(e, this.effectsClasses), i)
|
|
2539
2539
|
Gt(e, this.settings.cssEfects[this.settings.openEffect].in, () => {
|
|
2540
2540
|
this.settings.autoplayVideos && this.slidePlayerPlay(e), this.trigger("slide_changed", {
|
|
2541
2541
|
prev: n,
|
|
2542
2542
|
current: r
|
|
2543
|
-
}),
|
|
2543
|
+
}), F(this.settings.afterSlideChange) && this.settings.afterSlideChange.apply(this, [n, r]);
|
|
2544
2544
|
});
|
|
2545
2545
|
else {
|
|
2546
|
-
let a = this.settings.slideEffect,
|
|
2547
|
-
this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (
|
|
2546
|
+
let a = this.settings.slideEffect, u = a !== "none" ? this.settings.cssEfects[a].in : a;
|
|
2547
|
+
this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (u = this.settings.cssEfects.slideBack.in), Gt(e, u, () => {
|
|
2548
2548
|
this.settings.autoplayVideos && this.slidePlayerPlay(e), this.trigger("slide_changed", {
|
|
2549
2549
|
prev: n,
|
|
2550
2550
|
current: r
|
|
2551
|
-
}),
|
|
2551
|
+
}), F(this.settings.afterSlideChange) && this.settings.afterSlideChange.apply(this, [n, r]);
|
|
2552
2552
|
});
|
|
2553
2553
|
}
|
|
2554
2554
|
setTimeout(() => {
|
|
2555
2555
|
this.resize(e);
|
|
2556
|
-
}, 100),
|
|
2556
|
+
}, 100), z(e, "current");
|
|
2557
2557
|
}
|
|
2558
2558
|
/**
|
|
2559
2559
|
* Slide out
|
|
@@ -2562,7 +2562,7 @@ class Xe {
|
|
|
2562
2562
|
if (!this.prevActiveSlide)
|
|
2563
2563
|
return !1;
|
|
2564
2564
|
let e = this.prevActiveSlide;
|
|
2565
|
-
|
|
2565
|
+
xt(e, this.effectsClasses), z(e, "prev");
|
|
2566
2566
|
let i = this.settings.slideEffect, s = i !== "none" ? this.settings.cssEfects[i].out : i;
|
|
2567
2567
|
this.slidePlayerPause(e), this.trigger("slide_before_change", {
|
|
2568
2568
|
prev: {
|
|
@@ -2587,7 +2587,7 @@ class Xe {
|
|
|
2587
2587
|
trigger: this.elements[this.index].node,
|
|
2588
2588
|
player: this.getSlidePlayerInstance(this.index)
|
|
2589
2589
|
}
|
|
2590
|
-
}),
|
|
2590
|
+
}), F(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [
|
|
2591
2591
|
{
|
|
2592
2592
|
index: this.prevActiveSlideIndex,
|
|
2593
2593
|
slide: this.prevActiveSlide,
|
|
@@ -2600,7 +2600,7 @@ class Xe {
|
|
|
2600
2600
|
}
|
|
2601
2601
|
]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (s = this.settings.cssEfects.slideBack.out), Gt(e, s, () => {
|
|
2602
2602
|
let t = e.querySelector(".ginner-container"), n = e.querySelector(".gslide-media"), r = e.querySelector(".gslide-description");
|
|
2603
|
-
t.style.transform = "", n.style.transform = "",
|
|
2603
|
+
t.style.transform = "", n.style.transform = "", xt(n, "greset"), n.style.opacity = "", r && (r.style.opacity = ""), xt(e, "prev");
|
|
2604
2604
|
});
|
|
2605
2605
|
}
|
|
2606
2606
|
/**
|
|
@@ -2617,7 +2617,7 @@ class Xe {
|
|
|
2617
2617
|
*/
|
|
2618
2618
|
getSlidePlayerInstance(e) {
|
|
2619
2619
|
const i = "gvideo" + e, s = this.getAllPlayers();
|
|
2620
|
-
return
|
|
2620
|
+
return Ot(s, i) && s[i] ? s[i] : !1;
|
|
2621
2621
|
}
|
|
2622
2622
|
/**
|
|
2623
2623
|
* Stop video at specified
|
|
@@ -2693,10 +2693,10 @@ class Xe {
|
|
|
2693
2693
|
setElements(e) {
|
|
2694
2694
|
this.settings.elements = !1;
|
|
2695
2695
|
const i = [];
|
|
2696
|
-
e && e.length &&
|
|
2696
|
+
e && e.length && lt(e, (s, t) => {
|
|
2697
2697
|
const n = new ue(s, this, t), r = n.getConfig(), a = Rt({}, r);
|
|
2698
2698
|
a.slideConfig = r, a.instance = n, a.index = t, i.push(a);
|
|
2699
|
-
}), this.elements = i, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (
|
|
2699
|
+
}), this.elements = i, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (lt(this.elements, () => {
|
|
2700
2700
|
let s = Ut(this.settings.slideHTML);
|
|
2701
2701
|
this.slidesContainer.appendChild(s);
|
|
2702
2702
|
}), this.showSlide(0, !0)));
|
|
@@ -2715,8 +2715,8 @@ class Xe {
|
|
|
2715
2715
|
*/
|
|
2716
2716
|
getElementIndex(e) {
|
|
2717
2717
|
let i = !1;
|
|
2718
|
-
return
|
|
2719
|
-
if (
|
|
2718
|
+
return lt(this.elements, (s, t) => {
|
|
2719
|
+
if (Ot(s, "node") && s.node == e)
|
|
2720
2720
|
return i = t, !0;
|
|
2721
2721
|
}), i;
|
|
2722
2722
|
}
|
|
@@ -2730,14 +2730,14 @@ class Xe {
|
|
|
2730
2730
|
*/
|
|
2731
2731
|
getElements() {
|
|
2732
2732
|
let e = [];
|
|
2733
|
-
this.elements = this.elements ? this.elements : [], !Xt(this.settings.elements) &&
|
|
2734
|
-
const r = new ue(t, this, n), a = r.getConfig(),
|
|
2735
|
-
|
|
2733
|
+
this.elements = this.elements ? this.elements : [], !Xt(this.settings.elements) && He(this.settings.elements) && this.settings.elements.length && lt(this.settings.elements, (t, n) => {
|
|
2734
|
+
const r = new ue(t, this, n), a = r.getConfig(), u = Rt({}, a);
|
|
2735
|
+
u.node = !1, u.index = n, u.instance = r, u.slideConfig = a, e.push(u);
|
|
2736
2736
|
});
|
|
2737
2737
|
let i = !1;
|
|
2738
|
-
return this.getSelector() && (i = document.querySelectorAll(this.getSelector())), i &&
|
|
2739
|
-
const r = new ue(t, this, n), a = r.getConfig(),
|
|
2740
|
-
|
|
2738
|
+
return this.getSelector() && (i = document.querySelectorAll(this.getSelector())), i && lt(i, (t, n) => {
|
|
2739
|
+
const r = new ue(t, this, n), a = r.getConfig(), u = Rt({}, a);
|
|
2740
|
+
u.node = t, u.index = n, u.instance = r, u.slideConfig = a, u.gallery = t.getAttribute("data-gallery"), e.push(u);
|
|
2741
2741
|
}), e;
|
|
2742
2742
|
}
|
|
2743
2743
|
/**
|
|
@@ -2788,38 +2788,38 @@ class Xe {
|
|
|
2788
2788
|
if (this.built)
|
|
2789
2789
|
return !1;
|
|
2790
2790
|
const e = document.body.childNodes, i = [];
|
|
2791
|
-
|
|
2791
|
+
lt(e, (d) => {
|
|
2792
2792
|
d.parentNode == document.body && d.nodeName.charAt(0) !== "#" && d.hasAttribute && !d.hasAttribute("aria-hidden") && (i.push(d), d.setAttribute("aria-hidden", "true"));
|
|
2793
2793
|
});
|
|
2794
|
-
const s =
|
|
2794
|
+
const s = Ot(this.settings.svg, "next") ? this.settings.svg.next : "", t = Ot(this.settings.svg, "prev") ? this.settings.svg.prev : "", n = Ot(this.settings.svg, "close") ? this.settings.svg.close : "";
|
|
2795
2795
|
let r = this.settings.lightboxHTML;
|
|
2796
2796
|
r = r.replace(/{nextSVG}/g, s), r = r.replace(/{prevSVG}/g, t), r = r.replace(/{closeSVG}/g, n), r = Ut(r), document.body.appendChild(r);
|
|
2797
2797
|
const a = document.getElementById("glightbox-body");
|
|
2798
2798
|
this.modal = a;
|
|
2799
|
-
let
|
|
2800
|
-
this.prevButton = a.querySelector(".gprev"), this.nextButton = a.querySelector(".gnext"), this.overlay = a.querySelector(".goverlay"), this.loader = a.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = i, this.events = {},
|
|
2801
|
-
onElement:
|
|
2802
|
-
withCallback: (d,
|
|
2799
|
+
let u = a.querySelector(".gclose");
|
|
2800
|
+
this.prevButton = a.querySelector(".gprev"), this.nextButton = a.querySelector(".gnext"), this.overlay = a.querySelector(".goverlay"), this.loader = a.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = i, this.events = {}, z(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && u && (this.events.close = Wt("click", {
|
|
2801
|
+
onElement: u,
|
|
2802
|
+
withCallback: (d, m) => {
|
|
2803
2803
|
d.preventDefault(), this.close();
|
|
2804
2804
|
}
|
|
2805
|
-
})),
|
|
2805
|
+
})), u && !this.settings.closeButton && u.parentNode.removeChild(u), this.nextButton && (this.events.next = Wt("click", {
|
|
2806
2806
|
onElement: this.nextButton,
|
|
2807
|
-
withCallback: (d,
|
|
2807
|
+
withCallback: (d, m) => {
|
|
2808
2808
|
d.preventDefault(), this.nextSlide();
|
|
2809
2809
|
}
|
|
2810
|
-
})), this.prevButton && (this.events.prev =
|
|
2810
|
+
})), this.prevButton && (this.events.prev = Wt("click", {
|
|
2811
2811
|
onElement: this.prevButton,
|
|
2812
|
-
withCallback: (d,
|
|
2812
|
+
withCallback: (d, m) => {
|
|
2813
2813
|
d.preventDefault(), this.prevSlide();
|
|
2814
2814
|
}
|
|
2815
|
-
})), this.settings.closeOnOutsideClick && (this.events.outClose =
|
|
2815
|
+
})), this.settings.closeOnOutsideClick && (this.events.outClose = Wt("click", {
|
|
2816
2816
|
onElement: a,
|
|
2817
|
-
withCallback: (d,
|
|
2818
|
-
!this.preventOutsideClick && !
|
|
2817
|
+
withCallback: (d, m) => {
|
|
2818
|
+
!this.preventOutsideClick && !Lt(document.body, "glightbox-mobile") && !Bt(d.target, ".ginner-container") && !Bt(d.target, ".gbtn") && !Lt(d.target, "gnext") && !Lt(d.target, "gprev") && this.close();
|
|
2819
2819
|
}
|
|
2820
|
-
})),
|
|
2821
|
-
this.slidesContainer.appendChild(d.instance.create()), d.slideNode = this.slidesContainer.querySelectorAll(".gslide")[
|
|
2822
|
-
}),
|
|
2820
|
+
})), lt(this.elements, (d, m) => {
|
|
2821
|
+
this.slidesContainer.appendChild(d.instance.create()), d.slideNode = this.slidesContainer.querySelectorAll(".gslide")[m];
|
|
2822
|
+
}), De && z(document.body, "glightbox-touch"), this.events.resize = Wt("resize", {
|
|
2823
2823
|
onElement: window,
|
|
2824
2824
|
withCallback: () => {
|
|
2825
2825
|
this.resize();
|
|
@@ -2835,36 +2835,36 @@ class Xe {
|
|
|
2835
2835
|
* and images with description
|
|
2836
2836
|
*/
|
|
2837
2837
|
resize(e = null) {
|
|
2838
|
-
if (e = e || this.activeSlide, !e ||
|
|
2838
|
+
if (e = e || this.activeSlide, !e || Lt(e, "zoomed"))
|
|
2839
2839
|
return;
|
|
2840
|
-
const i =
|
|
2840
|
+
const i = Xe(), s = e.querySelector(".gvideo-wrapper"), t = e.querySelector(".gslide-image"), n = this.slideDescription;
|
|
2841
2841
|
let r = i.width, a = i.height;
|
|
2842
|
-
if (r <= 768 ?
|
|
2842
|
+
if (r <= 768 ? z(document.body, "glightbox-mobile") : xt(document.body, "glightbox-mobile"), !s && !t)
|
|
2843
2843
|
return;
|
|
2844
|
-
let
|
|
2845
|
-
if (n && (
|
|
2844
|
+
let u = !1;
|
|
2845
|
+
if (n && (Lt(n, "description-bottom") || Lt(n, "description-top")) && !Lt(n, "gabsolute") && (u = !0), t) {
|
|
2846
2846
|
if (r <= 768)
|
|
2847
2847
|
t.querySelector("img");
|
|
2848
|
-
else if (
|
|
2849
|
-
let d = n.offsetHeight,
|
|
2850
|
-
const
|
|
2851
|
-
|
|
2848
|
+
else if (u) {
|
|
2849
|
+
let d = n.offsetHeight, m = t.querySelector("img");
|
|
2850
|
+
const x = this.elements[this.index].node.getAttribute("data-height") ?? "100vh";
|
|
2851
|
+
m.setAttribute("style", `max-height: calc(${x} - ${d}px)`), n.setAttribute("style", `max-width: ${m.offsetWidth}px;`);
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
2854
2854
|
if (s) {
|
|
2855
|
-
let d =
|
|
2855
|
+
let d = Ot(this.settings.plyr.config, "ratio") ? this.settings.plyr.config.ratio : "";
|
|
2856
2856
|
if (!d) {
|
|
2857
|
-
const
|
|
2858
|
-
d = `${
|
|
2859
|
-
}
|
|
2860
|
-
let
|
|
2861
|
-
pe(b) || b.indexOf("px") !== -1 ?
|
|
2862
|
-
let
|
|
2863
|
-
if (
|
|
2864
|
-
let
|
|
2865
|
-
s.parentNode.setAttribute("style", `max-width: ${
|
|
2857
|
+
const M = s.clientWidth, Y = s.clientHeight, et = M / Y;
|
|
2858
|
+
d = `${M / et}:${Y / et}`;
|
|
2859
|
+
}
|
|
2860
|
+
let m = d.split(":"), b = this.settings.videosWidth, x = this.settings.videosWidth;
|
|
2861
|
+
pe(b) || b.indexOf("px") !== -1 ? x = parseInt(b) : b.indexOf("vw") !== -1 ? x = r * parseInt(b) / 100 : b.indexOf("vh") !== -1 ? x = a * parseInt(b) / 100 : b.indexOf("%") !== -1 ? x = r * parseInt(b) / 100 : x = parseInt(s.clientWidth);
|
|
2862
|
+
let L = x / (parseInt(m[0]) / parseInt(m[1]));
|
|
2863
|
+
if (L = Math.floor(L), u && (a = a - n.offsetHeight), x > r || L > a || a < L && r > x) {
|
|
2864
|
+
let M = s.offsetWidth, Y = s.offsetHeight, et = a / Y, st = { width: M * et };
|
|
2865
|
+
s.parentNode.setAttribute("style", `max-width: ${st.width}px`), u && n.setAttribute("style", `max-width: ${st.width}px;`);
|
|
2866
2866
|
} else
|
|
2867
|
-
s.parentNode.style.maxWidth = `${b}`,
|
|
2867
|
+
s.parentNode.style.maxWidth = `${b}`, u && n.setAttribute("style", `max-width: ${b};`);
|
|
2868
2868
|
}
|
|
2869
2869
|
}
|
|
2870
2870
|
/**
|
|
@@ -2879,14 +2879,14 @@ class Xe {
|
|
|
2879
2879
|
*/
|
|
2880
2880
|
updateNavigationClasses() {
|
|
2881
2881
|
const e = this.loop();
|
|
2882
|
-
|
|
2882
|
+
xt(this.nextButton, "disabled"), xt(this.prevButton, "disabled"), this.index == 0 && this.elements.length - 1 == 0 ? (z(this.prevButton, "disabled"), z(this.nextButton, "disabled")) : this.index === 0 && !e ? z(this.prevButton, "disabled") : this.index === this.elements.length - 1 && !e && z(this.nextButton, "disabled");
|
|
2883
2883
|
}
|
|
2884
2884
|
/**
|
|
2885
2885
|
* Handle loop config
|
|
2886
2886
|
*/
|
|
2887
2887
|
loop() {
|
|
2888
|
-
let e =
|
|
2889
|
-
return e =
|
|
2888
|
+
let e = Ot(this.settings, "loopAtEnd") ? this.settings.loopAtEnd : null;
|
|
2889
|
+
return e = Ot(this.settings, "loop") ? this.settings.loop : e, e;
|
|
2890
2890
|
}
|
|
2891
2891
|
/**
|
|
2892
2892
|
* Close Lightbox
|
|
@@ -2904,16 +2904,16 @@ class Xe {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
if (this.closing)
|
|
2906
2906
|
return !1;
|
|
2907
|
-
this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length &&
|
|
2907
|
+
this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length && lt(this.bodyHiddenChildElms, (e) => {
|
|
2908
2908
|
e.removeAttribute("aria-hidden");
|
|
2909
|
-
}),
|
|
2909
|
+
}), z(this.modal, "glightbox-closing"), Gt(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), Gt(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, () => {
|
|
2910
2910
|
if (this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null, this.built = !1, this.events) {
|
|
2911
2911
|
for (let s in this.events)
|
|
2912
2912
|
this.events.hasOwnProperty(s) && this.events[s].destroy();
|
|
2913
2913
|
this.events = null;
|
|
2914
2914
|
}
|
|
2915
2915
|
const e = document.body;
|
|
2916
|
-
|
|
2916
|
+
xt(Oe, "glightbox-open"), xt(e, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), this.modal.parentNode.removeChild(this.modal), this.trigger("close"), F(this.settings.onClose) && this.settings.onClose();
|
|
2917
2917
|
const i = document.querySelector(".gcss-styles");
|
|
2918
2918
|
i && i.parentNode.removeChild(i), this.lightboxOpen = !1, this.closing = null;
|
|
2919
2919
|
});
|
|
@@ -2929,7 +2929,7 @@ class Xe {
|
|
|
2929
2929
|
* Set event
|
|
2930
2930
|
*/
|
|
2931
2931
|
on(e, i, s = !1) {
|
|
2932
|
-
if (!e || !
|
|
2932
|
+
if (!e || !F(i))
|
|
2933
2933
|
throw new TypeError("Event name and callback must be defined");
|
|
2934
2934
|
this.apiEvents.push({ evt: e, once: s, callback: i });
|
|
2935
2935
|
}
|
|
@@ -2947,10 +2947,10 @@ class Xe {
|
|
|
2947
2947
|
*/
|
|
2948
2948
|
trigger(e, i = null) {
|
|
2949
2949
|
const s = [];
|
|
2950
|
-
|
|
2951
|
-
const { evt: r, once: a, callback:
|
|
2952
|
-
r == e && (
|
|
2953
|
-
}), s.length &&
|
|
2950
|
+
lt(this.apiEvents, (t, n) => {
|
|
2951
|
+
const { evt: r, once: a, callback: u } = t;
|
|
2952
|
+
r == e && (u(i), a && s.push(n));
|
|
2953
|
+
}), s.length && lt(s, (t) => this.apiEvents.splice(t, 1));
|
|
2954
2954
|
}
|
|
2955
2955
|
/**
|
|
2956
2956
|
* Removes all events
|
|
@@ -2963,309 +2963,74 @@ class Xe {
|
|
|
2963
2963
|
* Get Version
|
|
2964
2964
|
*/
|
|
2965
2965
|
version() {
|
|
2966
|
-
return
|
|
2966
|
+
return yi;
|
|
2967
2967
|
}
|
|
2968
2968
|
}
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
function dt() {
|
|
3033
|
-
d && d.disconnect(), F(qt, Ct), F("mousedown", g), F("keydown", l), F("resize", y), F("load", M);
|
|
3034
|
-
}
|
|
3035
|
-
var et = [], It = !1, _t = Date.now();
|
|
3036
|
-
function jt(h, x, k) {
|
|
3037
|
-
if (lt(x, k), s.accelerationMax != 1) {
|
|
3038
|
-
var H = Date.now(), W = H - _t;
|
|
3039
|
-
if (W < s.accelerationDelta) {
|
|
3040
|
-
var p = (1 + 50 / W) / 2;
|
|
3041
|
-
p > 1 && (p = Math.min(p, s.accelerationMax), x *= p, k *= p);
|
|
3042
|
-
}
|
|
3043
|
-
_t = Date.now();
|
|
3044
|
-
}
|
|
3045
|
-
if (et.push({
|
|
3046
|
-
x,
|
|
3047
|
-
y: k,
|
|
3048
|
-
lastX: x < 0 ? 0.99 : -0.99,
|
|
3049
|
-
lastY: k < 0 ? 0.99 : -0.99,
|
|
3050
|
-
start: Date.now()
|
|
3051
|
-
}), !It) {
|
|
3052
|
-
var w = yt(), S = h === w || h === document.body;
|
|
3053
|
-
h.$scrollBehavior == null && $(h) && (h.$scrollBehavior = h.style.scrollBehavior, h.style.scrollBehavior = "auto");
|
|
3054
|
-
var A = function(V) {
|
|
3055
|
-
for (var it = Date.now(), R = 0, Y = 0, K = 0; K < et.length; K++) {
|
|
3056
|
-
var z = et[K], mt = it - z.start, nt = mt >= s.animationTime, at = nt ? 1 : mt / s.animationTime;
|
|
3057
|
-
s.pulseAlgorithm && (at = vt(at));
|
|
3058
|
-
var bt = z.x * at - z.lastX >> 0, Dt = z.y * at - z.lastY >> 0;
|
|
3059
|
-
R += bt, Y += Dt, z.lastX += bt, z.lastY += Dt, nt && (et.splice(K, 1), K--);
|
|
3060
|
-
}
|
|
3061
|
-
S ? window.scrollBy(R, Y) : (R && (h.scrollLeft += R), Y && (h.scrollTop += Y)), !x && !k && (et = []), et.length ? ft(A, h, 1e3 / s.frameRate + 1) : (It = !1, h.$scrollBehavior != null && (h.style.scrollBehavior = h.$scrollBehavior, h.$scrollBehavior = null));
|
|
3062
|
-
};
|
|
3063
|
-
ft(A, h, 0), It = !0;
|
|
3064
|
-
}
|
|
3065
|
-
}
|
|
3066
|
-
function Ct(h) {
|
|
3067
|
-
r || M();
|
|
3068
|
-
var x = E(h);
|
|
3069
|
-
if (h.defaultPrevented || h.ctrlKey || ot(f, "embed") || ot(x, "embed") && /\.pdf/i.test(x.src) || ot(f, "object"))
|
|
3070
|
-
return !0;
|
|
3071
|
-
var k = -h.wheelDeltaX || h.deltaX || 0, H = -h.wheelDeltaY || h.deltaY || 0;
|
|
3072
|
-
q && (h.wheelDeltaX && U(h.wheelDeltaX, 120) && (k = -120 * (h.wheelDeltaX / Math.abs(h.wheelDeltaX))), h.wheelDeltaY && U(h.wheelDeltaY, 120) && (H = -120 * (h.wheelDeltaY / Math.abs(h.wheelDeltaY)))), !k && !H && (H = -h.wheelDelta || 0), h.deltaMode === 1 && (k *= 40, H *= 40);
|
|
3073
|
-
var W = u(x);
|
|
3074
|
-
if (!W)
|
|
3075
|
-
return t && gt ? (Object.defineProperty(h, "target", { value: window.frameElement }), parent.wheel(h)) : !0;
|
|
3076
|
-
if (G(H))
|
|
3077
|
-
return !0;
|
|
3078
|
-
Math.abs(k) > 1.2 && (k *= s.stepSize / 120), Math.abs(H) > 1.2 && (H *= s.stepSize / 120), jt(W, k, H), h.preventDefault(), T();
|
|
3079
|
-
}
|
|
3080
|
-
function l(h) {
|
|
3081
|
-
var x = E(h), k = h.ctrlKey || h.altKey || h.metaKey || h.shiftKey && h.code !== "Space";
|
|
3082
|
-
document.body.contains(f) || (f = document.activeElement);
|
|
3083
|
-
var H = /^(textarea|select|embed|object)$/i, W = /^(button|submit|radio|checkbox|file|color|image)$/i;
|
|
3084
|
-
if (h.defaultPrevented || H.test(x.nodeName) || ot(x, "input") && !W.test(x.type) || ot(f, "video") || Vt(h) || x.isContentEditable || k || (ot(x, "button") || ot(x, "input") && W.test(x.type)) && h.code === "Space" || ot(x, "input") && x.type == "radio" && (h.code === "ArrowUp" || h.code === "ArrowDown" || h.code === "ArrowLeft" || h.code === "ArrowRight"))
|
|
3085
|
-
return !0;
|
|
3086
|
-
var p, w = 0, S = 0, A = u(f);
|
|
3087
|
-
if (!A)
|
|
3088
|
-
return t && gt ? parent.keydown(h) : !0;
|
|
3089
|
-
var V = A.clientHeight;
|
|
3090
|
-
switch (A == document.body && (V = window.innerHeight), h.code) {
|
|
3091
|
-
case "ArrowUp":
|
|
3092
|
-
S = -s.arrowScroll;
|
|
3093
|
-
break;
|
|
3094
|
-
case "ArrowDown":
|
|
3095
|
-
S = s.arrowScroll;
|
|
3096
|
-
break;
|
|
3097
|
-
case "Space":
|
|
3098
|
-
p = h.shiftKey ? 1 : -1, S = -p * V * 0.9;
|
|
3099
|
-
break;
|
|
3100
|
-
case "PageUp":
|
|
3101
|
-
S = -V * 0.9;
|
|
3102
|
-
break;
|
|
3103
|
-
case "PageDown":
|
|
3104
|
-
S = V * 0.9;
|
|
3105
|
-
break;
|
|
3106
|
-
case "Home":
|
|
3107
|
-
A == document.body && document.scrollingElement && (A = document.scrollingElement), S = -A.scrollTop;
|
|
3108
|
-
break;
|
|
3109
|
-
case "End":
|
|
3110
|
-
var it = A.scrollHeight - A.scrollTop, R = it - V;
|
|
3111
|
-
S = R > 0 ? R + 10 : 0;
|
|
3112
|
-
break;
|
|
3113
|
-
case "ArrowLeft":
|
|
3114
|
-
w = -s.arrowScroll;
|
|
3115
|
-
break;
|
|
3116
|
-
case "ArrowRight":
|
|
3117
|
-
w = s.arrowScroll;
|
|
3118
|
-
break;
|
|
3119
|
-
default:
|
|
3120
|
-
return !0;
|
|
3121
|
-
}
|
|
3122
|
-
jt(A, w, S), h.preventDefault(), T();
|
|
3123
|
-
}
|
|
3124
|
-
function g(h) {
|
|
3125
|
-
f = E(h);
|
|
3126
|
-
}
|
|
3127
|
-
function E(h) {
|
|
3128
|
-
return h.composedPath ? h.composedPath()[0] : h.target;
|
|
3129
|
-
}
|
|
3130
|
-
var L = /* @__PURE__ */ (function() {
|
|
3131
|
-
var h = 0;
|
|
3132
|
-
return function(x) {
|
|
3133
|
-
return x.uniqueID || (x.uniqueID = h++);
|
|
3134
|
-
};
|
|
3135
|
-
})(), j = {}, D, st = {};
|
|
3136
|
-
function T() {
|
|
3137
|
-
clearTimeout(D), D = setInterval(function() {
|
|
3138
|
-
j = st = {};
|
|
3139
|
-
}, 1 * 1e3);
|
|
3140
|
-
}
|
|
3141
|
-
function v(h, x, k) {
|
|
3142
|
-
for (var H = j, W = h.length; W--; )
|
|
3143
|
-
H[L(h[W])] = x;
|
|
3144
|
-
return x;
|
|
3145
|
-
}
|
|
3146
|
-
function c(h, x) {
|
|
3147
|
-
return j[L(h)];
|
|
3148
|
-
}
|
|
3149
|
-
function u(h) {
|
|
3150
|
-
for (var x = [], k = document.body, H = a.scrollHeight; h; ) {
|
|
3151
|
-
var W = c(h);
|
|
3152
|
-
if (W)
|
|
3153
|
-
return v(x, W);
|
|
3154
|
-
if (x.push(h), H === h.scrollHeight) {
|
|
3155
|
-
var p = I(a) && I(k), w = p || C(a);
|
|
3156
|
-
if (t && O(a) || !t && w)
|
|
3157
|
-
return v(x, yt());
|
|
3158
|
-
} else if (O(h) && C(h))
|
|
3159
|
-
return v(x, h);
|
|
3160
|
-
h = h.parentElement || h.getRootNode && h.getRootNode().host;
|
|
3161
|
-
}
|
|
3162
|
-
}
|
|
3163
|
-
function O(h) {
|
|
3164
|
-
return h.clientHeight + 10 < h.scrollHeight;
|
|
3165
|
-
}
|
|
3166
|
-
function I(h) {
|
|
3167
|
-
var x = getComputedStyle(h, "").getPropertyValue("overflow-y");
|
|
3168
|
-
return x !== "hidden";
|
|
3169
|
-
}
|
|
3170
|
-
function C(h) {
|
|
3171
|
-
var x = getComputedStyle(h, "").getPropertyValue("overflow-y");
|
|
3172
|
-
return x === "scroll" || x === "auto";
|
|
3173
|
-
}
|
|
3174
|
-
function $(h) {
|
|
3175
|
-
var x = L(h);
|
|
3176
|
-
if (st[x] == null) {
|
|
3177
|
-
var k = getComputedStyle(h, "")["scroll-behavior"];
|
|
3178
|
-
st[x] = k == "smooth";
|
|
3179
|
-
}
|
|
3180
|
-
return st[x];
|
|
3181
|
-
}
|
|
3182
|
-
function B(h, x, k) {
|
|
3183
|
-
window.addEventListener(h, x, k || !1);
|
|
3184
|
-
}
|
|
3185
|
-
function F(h, x, k) {
|
|
3186
|
-
window.removeEventListener(h, x, !1);
|
|
3187
|
-
}
|
|
3188
|
-
function ot(h, x) {
|
|
3189
|
-
return h && (h.nodeName || "").toLowerCase() === x.toLowerCase();
|
|
3190
|
-
}
|
|
3191
|
-
function lt(h, x) {
|
|
3192
|
-
h = h > 0 ? 1 : -1, x = x > 0 ? 1 : -1, (n.x !== h || n.y !== x) && (n.x = h, n.y = x, et = [], _t = 0);
|
|
3193
|
-
}
|
|
3194
|
-
try {
|
|
3195
|
-
localStorage.SS_deltaBuffer && (b = localStorage.SS_deltaBuffer.split(","));
|
|
3196
|
-
} catch {
|
|
3197
|
-
}
|
|
3198
|
-
function G(h) {
|
|
3199
|
-
if (h) {
|
|
3200
|
-
b.length || (b = [h, h, h]), h = Math.abs(h), b.push(h), b.shift(), clearTimeout(_), _ = setTimeout(function() {
|
|
3201
|
-
try {
|
|
3202
|
-
localStorage.SS_deltaBuffer = b.join(",");
|
|
3203
|
-
} catch {
|
|
3204
|
-
}
|
|
3205
|
-
}, 1e3);
|
|
3206
|
-
var x = h > 120 && ct(h), k = !ct(120) && !ct(100) && !x;
|
|
3207
|
-
return h < 50 ? !0 : k;
|
|
3208
|
-
}
|
|
3209
|
-
}
|
|
3210
|
-
function U(h, x) {
|
|
3211
|
-
return Math.floor(h / x) == h / x;
|
|
3212
|
-
}
|
|
3213
|
-
function ct(h) {
|
|
3214
|
-
return U(b[0], h) && U(b[1], h) && U(b[2], h);
|
|
3215
|
-
}
|
|
3216
|
-
function Vt(h) {
|
|
3217
|
-
var x = E(h), k = !1;
|
|
3218
|
-
if (document.URL.indexOf("www.youtube.com/watch") != -1)
|
|
3219
|
-
do
|
|
3220
|
-
if (k = x.classList && x.classList.contains("html5-video-controls"), k) break;
|
|
3221
|
-
while (x = x.parentNode);
|
|
3222
|
-
return k;
|
|
3223
|
-
}
|
|
3224
|
-
var ft = (function() {
|
|
3225
|
-
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(h, x, k) {
|
|
3226
|
-
window.setTimeout(h, k || 1e3 / 60);
|
|
3227
|
-
};
|
|
3228
|
-
})(), Tt = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver, yt = (function() {
|
|
3229
|
-
var h = document.scrollingElement;
|
|
3230
|
-
return function() {
|
|
3231
|
-
if (!h) {
|
|
3232
|
-
var x = document.createElement("div");
|
|
3233
|
-
x.style.cssText = "height:10000px;width:1px;", document.body.appendChild(x);
|
|
3234
|
-
var k = document.body.scrollTop;
|
|
3235
|
-
document.documentElement.scrollTop, window.scrollBy(0, 3), document.body.scrollTop != k ? h = document.body : h = document.documentElement, window.scrollBy(0, -3), document.body.removeChild(x);
|
|
3236
|
-
}
|
|
3237
|
-
return h;
|
|
3238
|
-
};
|
|
3239
|
-
})();
|
|
3240
|
-
function J(h) {
|
|
3241
|
-
var x, k, H;
|
|
3242
|
-
return h = h * s.pulseScale, h < 1 ? x = h - (1 - Math.exp(-h)) : (k = Math.exp(-1), h -= 1, H = 1 - Math.exp(-h), x = k + H * (1 - k)), x * s.pulseNormalize;
|
|
3243
|
-
}
|
|
3244
|
-
function vt(h) {
|
|
3245
|
-
return h >= 1 ? 1 : h <= 0 ? 0 : (s.pulseNormalize == 1 && (s.pulseNormalize /= J(1)), J(h));
|
|
3246
|
-
}
|
|
3247
|
-
var tt = window.navigator.userAgent, ht = /Edge/.test(tt), gt = /chrome/i.test(tt) && !ht, wt = /safari/i.test(tt) && !ht, pt = /mobile/i.test(tt), Ot = /Windows NT 6.1/i.test(tt) && /rv:11/i.test(tt), Q = wt && (/Version\/8/i.test(tt) || /Version\/9/i.test(tt)), Yt = (gt || wt || Ot) && !pt, Mt = !1;
|
|
3248
|
-
try {
|
|
3249
|
-
window.addEventListener("test", null, Object.defineProperty({}, "passive", {
|
|
3250
|
-
get: function() {
|
|
3251
|
-
Mt = !0;
|
|
3252
|
-
}
|
|
3253
|
-
}));
|
|
3254
|
-
} catch {
|
|
3255
|
-
}
|
|
3256
|
-
var xt = Mt ? { passive: !1 } : !1, qt = "onwheel" in document.createElement("div") ? "wheel" : "mousewheel";
|
|
3257
|
-
Yt && (B(qt, Ct, xt), B("mousedown", g), B("load", M));
|
|
3258
|
-
function X(h) {
|
|
3259
|
-
for (var x in h)
|
|
3260
|
-
i.hasOwnProperty(x) && (s[x] = h[x]);
|
|
3261
|
-
}
|
|
3262
|
-
X.destroy = dt, window.SmoothScrollOptions && X(window.SmoothScrollOptions), o.exports = X;
|
|
3263
|
-
})();
|
|
3264
|
-
})(Oe)), Oe.exports;
|
|
2969
|
+
class vi {
|
|
2970
|
+
constructor(e = {}) {
|
|
2971
|
+
this.animationTime = e.animationTime ?? 800, this.frameRate = e.frameRate ?? 150, this.stepSize = e.stepSize ?? 120, this.accelerationDelta = e.accelerationDelta ?? 300, this.accelerationMax = e.accelerationMax ?? 2, this.pulseScale = e.pulseScale ?? 4, this.pulseNormalize = 1 / this._pulseRaw(1), this.queue = [], this.pending = !1, this.lastScrollTime = 0, this.direction = { x: 0, y: 0 }, this._init();
|
|
2972
|
+
}
|
|
2973
|
+
_init() {
|
|
2974
|
+
window.addEventListener("wheel", this._onWheel.bind(this), { passive: !1 });
|
|
2975
|
+
}
|
|
2976
|
+
destroy() {
|
|
2977
|
+
window.removeEventListener("wheel", this._onWheel.bind(this)), this.queue = [], this.pending = !1;
|
|
2978
|
+
}
|
|
2979
|
+
_onWheel(e) {
|
|
2980
|
+
if (e.ctrlKey || e.defaultPrevented) return;
|
|
2981
|
+
let i = e.deltaX, s = e.deltaY;
|
|
2982
|
+
!i && !s && (s = -e.wheelDelta || 0), e.deltaMode === 1 && (i *= 40, s *= 40), Math.abs(i) > 1.2 && (i = i / 120 * this.stepSize), Math.abs(s) > 1.2 && (s = s / 120 * this.stepSize);
|
|
2983
|
+
const t = e.target, n = this._findScrollableAncestor(t);
|
|
2984
|
+
if (!n) return;
|
|
2985
|
+
const r = Date.now(), a = r - this.lastScrollTime;
|
|
2986
|
+
let u = 1;
|
|
2987
|
+
a < this.accelerationDelta && (u = Math.min(1 + 50 / a, this.accelerationMax), i *= u, s *= u), this.lastScrollTime = r;
|
|
2988
|
+
const d = Math.sign(i), m = Math.sign(s);
|
|
2989
|
+
(d !== this.direction.x || m !== this.direction.y) && (this.direction = { x: d, y: m }, this.queue = []), this._enqueueScroll(n, i, s), e.preventDefault();
|
|
2990
|
+
}
|
|
2991
|
+
_findScrollableAncestor(e) {
|
|
2992
|
+
const i = document.scrollingElement || document.documentElement;
|
|
2993
|
+
let s = e;
|
|
2994
|
+
for (; s && s !== document.body; ) {
|
|
2995
|
+
const n = window.getComputedStyle(s).overflowY, r = ["auto", "scroll"].includes(n), a = s.scrollHeight > s.clientHeight;
|
|
2996
|
+
if (r && a) return s;
|
|
2997
|
+
if (s === i) return i;
|
|
2998
|
+
s = s.parentElement;
|
|
2999
|
+
}
|
|
3000
|
+
return i;
|
|
3001
|
+
}
|
|
3002
|
+
_enqueueScroll(e, i, s) {
|
|
3003
|
+
this.queue.push({
|
|
3004
|
+
element: e,
|
|
3005
|
+
x: i,
|
|
3006
|
+
y: s,
|
|
3007
|
+
lastX: i < 0 ? 0.99 : -0.99,
|
|
3008
|
+
lastY: s < 0 ? 0.99 : -0.99,
|
|
3009
|
+
start: Date.now()
|
|
3010
|
+
}), this.pending || (this._animate(e), this.pending = !0);
|
|
3011
|
+
}
|
|
3012
|
+
_animate(e) {
|
|
3013
|
+
const i = Date.now();
|
|
3014
|
+
let s = 0, t = 0;
|
|
3015
|
+
for (let n = this.queue.length - 1; n >= 0; n--) {
|
|
3016
|
+
const r = this.queue[n], a = i - r.start, u = a >= this.animationTime, d = u ? 1 : a / this.animationTime, m = this._pulse(d), b = r.x * m - r.lastX | 0, x = r.y * m - r.lastY | 0;
|
|
3017
|
+
s += b, t += x, r.lastX += b, r.lastY += x, u && this.queue.splice(n, 1);
|
|
3018
|
+
}
|
|
3019
|
+
e === document.scrollingElement || e === document.documentElement ? window.scrollBy(s, t) : (s && (e.scrollLeft += s), t && (e.scrollTop += t)), this.queue.length > 0 ? (1e3 / this.frameRate, requestAnimationFrame(() => this._animate(e))) : this.pending = !1;
|
|
3020
|
+
}
|
|
3021
|
+
_pulseRaw(e) {
|
|
3022
|
+
if (e *= this.pulseScale, e < 1)
|
|
3023
|
+
return e - (1 - Math.exp(-e));
|
|
3024
|
+
{
|
|
3025
|
+
const i = Math.exp(-1), s = 1 - Math.exp(-(e - 1));
|
|
3026
|
+
return i + s * (1 - i);
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
_pulse(e) {
|
|
3030
|
+
return e <= 0 ? 0 : e >= 1 ? 1 : this._pulseRaw(e) * this.pulseNormalize;
|
|
3031
|
+
}
|
|
3265
3032
|
}
|
|
3266
|
-
|
|
3267
|
-
const Si = /* @__PURE__ */ be(Oi);
|
|
3268
|
-
class Ai {
|
|
3033
|
+
class wi {
|
|
3269
3034
|
constructor(e = {}) {
|
|
3270
3035
|
const i = {
|
|
3271
3036
|
skin: "light"
|
|
@@ -3276,22 +3041,10 @@ class Ai {
|
|
|
3276
3041
|
}
|
|
3277
3042
|
init() {
|
|
3278
3043
|
this.prepareContent(), this.updateOnResize(), this.blockInit(), this.initeSkrollrr(), this.contentBoxOnRenderUpdate(), this.functionLightboxInit(), this.inViewSetup(), setTimeout(() => {
|
|
3279
|
-
|
|
3044
|
+
Fe.init({
|
|
3280
3045
|
duration: 1200
|
|
3281
3046
|
});
|
|
3282
|
-
}, 300),
|
|
3283
|
-
frameRate: 150,
|
|
3284
|
-
animationTime: 800,
|
|
3285
|
-
stepSize: 120,
|
|
3286
|
-
pulseAlgorithm: 1,
|
|
3287
|
-
pulseScale: 4,
|
|
3288
|
-
pulseNormalize: 1,
|
|
3289
|
-
accelerationDelta: 300,
|
|
3290
|
-
accelerationMax: 2,
|
|
3291
|
-
keyboardSupport: 1,
|
|
3292
|
-
arrowScroll: 50,
|
|
3293
|
-
fixedBackground: 0
|
|
3294
|
-
});
|
|
3047
|
+
}, 300), new vi();
|
|
3295
3048
|
}
|
|
3296
3049
|
prepareContent() {
|
|
3297
3050
|
const e = document.querySelector(".is-wrapper");
|
|
@@ -3302,29 +3055,29 @@ class Ai {
|
|
|
3302
3055
|
};
|
|
3303
3056
|
document.querySelectorAll(".is-arrow-down a").forEach(function(r) {
|
|
3304
3057
|
r.addEventListener("click", function(a) {
|
|
3305
|
-
let
|
|
3306
|
-
if (
|
|
3307
|
-
let d = i(
|
|
3058
|
+
let u = a.target.closest(".is-section");
|
|
3059
|
+
if (u) {
|
|
3060
|
+
let d = i(u);
|
|
3308
3061
|
d && this.scrollIt(d, 1e3, "easeInQuad");
|
|
3309
3062
|
}
|
|
3310
3063
|
a.preventDefault(), a.stopImmediatePropagation();
|
|
3311
3064
|
});
|
|
3312
3065
|
}), e && (e.classList.contains("is-edit") || e.querySelectorAll("a").forEach(function(a) {
|
|
3313
|
-
a.addEventListener("click", function(
|
|
3066
|
+
a.addEventListener("click", function(u) {
|
|
3314
3067
|
let d = a.getAttribute("href");
|
|
3315
3068
|
if (d && d.indexOf("#") === 0)
|
|
3316
3069
|
if (d.indexOf("#section") === 0) {
|
|
3317
|
-
let
|
|
3318
|
-
if (!isNaN(parseInt(
|
|
3319
|
-
let b = document.querySelectorAll(".is-section"),
|
|
3320
|
-
b.forEach(function(
|
|
3321
|
-
|
|
3322
|
-
}),
|
|
3070
|
+
let m = d.replace("#section", "");
|
|
3071
|
+
if (!isNaN(parseInt(m))) {
|
|
3072
|
+
let b = document.querySelectorAll(".is-section"), x, L = 0;
|
|
3073
|
+
b.forEach(function(M) {
|
|
3074
|
+
M.classList.contains("is-section-navbar") || (L === m - 1 && (x = M), L++);
|
|
3075
|
+
}), x && scrollIt(x, 1e3, "easeInQuad"), u.preventDefault();
|
|
3323
3076
|
}
|
|
3324
3077
|
} else
|
|
3325
3078
|
try {
|
|
3326
|
-
let
|
|
3327
|
-
|
|
3079
|
+
let m = document.querySelector(d);
|
|
3080
|
+
m && (scrollIt(m, 1e3, "easeInQuad"), u.preventDefault());
|
|
3328
3081
|
} catch {
|
|
3329
3082
|
}
|
|
3330
3083
|
});
|
|
@@ -3335,9 +3088,9 @@ class Ai {
|
|
|
3335
3088
|
n.forEach(function(r) {
|
|
3336
3089
|
r.classList.contains("once") ? (r.removeAttribute("data-scroll", ""), r.setAttribute("data-scroll-once", "")) : (r.removeAttribute("data-scroll-once", ""), r.setAttribute("data-scroll", ""));
|
|
3337
3090
|
}), n = document.querySelectorAll(".is-container > div"), n.forEach(function(r) {
|
|
3338
|
-
let a = r.querySelectorAll(".is-animated[data-scroll],.is-animated[data-scroll-once]"),
|
|
3091
|
+
let a = r.querySelectorAll(".is-animated[data-scroll],.is-animated[data-scroll-once]"), u = 0;
|
|
3339
3092
|
a.length > 1 && a.forEach(function(d) {
|
|
3340
|
-
d.className.indexOf("delay-") === -1 && (
|
|
3093
|
+
d.className.indexOf("delay-") === -1 && (u > 0 && (d.style.transitionDelay = u + "s", d.style.animationDelay = u + "s"), u = u + 0.2);
|
|
3341
3094
|
});
|
|
3342
3095
|
}), this.skrollrSetup(), this.adjustBgPos();
|
|
3343
3096
|
}
|
|
@@ -3363,7 +3116,7 @@ class Ai {
|
|
|
3363
3116
|
e.forEach((s) => {
|
|
3364
3117
|
s.style && s.style.filter && s.style.filter.indexOf("grayscale") !== -1 && (s.parentNode.style.filter = "grayscale(1)");
|
|
3365
3118
|
});
|
|
3366
|
-
const i = new
|
|
3119
|
+
const i = new Ge({
|
|
3367
3120
|
transition: "all 0.3s ease-out"
|
|
3368
3121
|
});
|
|
3369
3122
|
i.init(), window.skrollrr = i;
|
|
@@ -3377,37 +3130,37 @@ class Ai {
|
|
|
3377
3130
|
}
|
|
3378
3131
|
skrollrSetup() {
|
|
3379
3132
|
document.querySelectorAll(".pin-wrap").forEach((a) => {
|
|
3380
|
-
const
|
|
3381
|
-
a.after(
|
|
3133
|
+
const u = a.firstElementChild;
|
|
3134
|
+
a.after(u), a.parentNode.removeChild(a);
|
|
3382
3135
|
}), document.querySelectorAll(".is-section").forEach((a) => {
|
|
3383
3136
|
a.hasAttribute("data-section-clone") && a.parentNode.removeChild(a), a.hasAttribute("data-section-original") && (a.style.display = "", a.removeAttribute("data-section-original"));
|
|
3384
3137
|
});
|
|
3385
3138
|
let s = window.innerWidth;
|
|
3386
|
-
s <= 760 && document.querySelectorAll(".section-wrap").forEach((
|
|
3387
|
-
|
|
3139
|
+
s <= 760 && document.querySelectorAll(".section-wrap").forEach((u) => {
|
|
3140
|
+
u.outerHTML = u.innerHTML;
|
|
3388
3141
|
});
|
|
3389
3142
|
const t = window.self !== window.top;
|
|
3390
3143
|
let n;
|
|
3391
3144
|
t ? n = document.querySelectorAll(".is-wrapper .section-pin") : n = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), n.length > 0 && window.scrollTo(0, 0), n.forEach(function(a) {
|
|
3392
3145
|
s <= 970 && a.querySelector(".is-box") && (a.querySelectorAll(".is-box").forEach((d) => {
|
|
3393
|
-
const
|
|
3146
|
+
const m = a.cloneNode(!1);
|
|
3394
3147
|
d.getAttributeNames().map((b) => {
|
|
3395
|
-
b.indexOf("data-") !== -1 &&
|
|
3396
|
-
}),
|
|
3397
|
-
(b.indexOf("is-box-") !== -1 || b.indexOf("is-content-") !== -1 || b.indexOf("box-autofit") !== -1 || b.indexOf("is-light-text") !== -1 || b.indexOf("is-dark-text") !== -1 || b.indexOf("is-align-") !== -1 || b.indexOf("type-") !== -1 || b.indexOf("block-click") !== -1 || b.indexOf("hover-zoom") !== -1) &&
|
|
3398
|
-
}),
|
|
3148
|
+
b.indexOf("data-") !== -1 && m.setAttribute(b, d.getAttribute(b));
|
|
3149
|
+
}), m.classList.add("is-box"), d.classList.forEach((b) => {
|
|
3150
|
+
(b.indexOf("is-box-") !== -1 || b.indexOf("is-content-") !== -1 || b.indexOf("box-autofit") !== -1 || b.indexOf("is-light-text") !== -1 || b.indexOf("is-dark-text") !== -1 || b.indexOf("is-align-") !== -1 || b.indexOf("type-") !== -1 || b.indexOf("block-click") !== -1 || b.indexOf("hover-zoom") !== -1) && m.classList.add(b);
|
|
3151
|
+
}), m.setAttribute("data-section-clone", ""), m.innerHTML = d.innerHTML, a.parentNode.insertBefore(m, a);
|
|
3399
3152
|
}), a.setAttribute("data-section-original", ""), a.style.display = "none");
|
|
3400
3153
|
}), t ? n = document.querySelectorAll(".is-wrapper .section-pin") : n = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), n.forEach(function(a) {
|
|
3401
3154
|
if (a.parentNode.closest(".section-wrap") || s <= 970 && a.hasAttribute("data-section-original")) return;
|
|
3402
|
-
const
|
|
3403
|
-
|
|
3155
|
+
const u = document.createElement("div");
|
|
3156
|
+
u.classList.add("pin-wrap"), a.classList.contains("m-skrollrr-off") && u.classList.add("m-skrollrr-off"), a.classList.contains("pin-space-lg") && u.classList.add("pin-space-lg"), a.classList.contains("pin-space-xl") && u.classList.add("pin-space-xl"), a.classList.contains("xs-hidden") && u.classList.add("xs-hidden"), a.classList.contains("sm-hidden") && u.classList.add("sm-hidden"), a.classList.contains("desktop-hidden") && u.classList.add("desktop-hidden"), a.after(u), u.appendChild(a);
|
|
3404
3157
|
});
|
|
3405
3158
|
const r = (a) => {
|
|
3406
3159
|
document.querySelectorAll(".is-section").forEach((d) => {
|
|
3407
|
-
const
|
|
3408
|
-
let b,
|
|
3409
|
-
d.parentNode.classList.contains("pin-wrap") ? (b = d.parentNode.nextElementSibling,
|
|
3410
|
-
|
|
3160
|
+
const m = d.getBoundingClientRect().top;
|
|
3161
|
+
let b, x;
|
|
3162
|
+
d.parentNode.classList.contains("pin-wrap") ? (b = d.parentNode.nextElementSibling, x = d.parentNode.previousElementSibling) : (b = d.nextElementSibling, x = d.previousElementSibling), b && b.classList.contains("pin-wrap") && (b = b.querySelector(".is-section")), x && x.classList.contains("pin-wrap") && (x = x.querySelector(".is-section")), m <= 0 && ((d.classList.contains("no-spacing") || d.classList.contains("pin-overlap")) && d.classList.add("section-inview"), document.querySelectorAll(".is-section").forEach((M) => {
|
|
3163
|
+
M !== d && M.classList.remove("section-inview");
|
|
3411
3164
|
}));
|
|
3412
3165
|
});
|
|
3413
3166
|
};
|
|
@@ -3436,7 +3189,7 @@ class Ai {
|
|
|
3436
3189
|
}), document.querySelectorAll(".is-container video").forEach((t) => {
|
|
3437
3190
|
t.parentNode.setAttribute("data-scroll", "");
|
|
3438
3191
|
});
|
|
3439
|
-
const s = new
|
|
3192
|
+
const s = new Je({
|
|
3440
3193
|
trigger: {
|
|
3441
3194
|
once: !0,
|
|
3442
3195
|
offset: {
|
|
@@ -3523,20 +3276,20 @@ class Ai {
|
|
|
3523
3276
|
});
|
|
3524
3277
|
}
|
|
3525
3278
|
refreshLightbox(e) {
|
|
3526
|
-
this.glightbox && this.glightbox.destroy(), this.glightbox = new
|
|
3279
|
+
this.glightbox && this.glightbox.destroy(), this.glightbox = new Pe(e), window.GLightbox = Pe.default;
|
|
3527
3280
|
}
|
|
3528
3281
|
openLightbox(e, i, s) {
|
|
3529
3282
|
let t = [], n = 0;
|
|
3530
3283
|
if (i) {
|
|
3531
3284
|
const a = i.closest("[data-gallery]");
|
|
3532
|
-
let
|
|
3533
|
-
a ?
|
|
3534
|
-
|
|
3535
|
-
}),
|
|
3285
|
+
let u = [];
|
|
3286
|
+
a ? u = a.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((m) => {
|
|
3287
|
+
m.closest("[data-gallery]") || u.push(m);
|
|
3288
|
+
}), u.forEach((d, m) => {
|
|
3536
3289
|
let b = d.getAttribute("href");
|
|
3537
3290
|
b || (b = d.getAttribute("data-modal-url")), t.push({
|
|
3538
3291
|
href: b
|
|
3539
|
-
}), e === b && (n =
|
|
3292
|
+
}), e === b && (n = m);
|
|
3540
3293
|
});
|
|
3541
3294
|
}
|
|
3542
3295
|
const r = document.activeElement;
|
|
@@ -3629,33 +3382,33 @@ class Ai {
|
|
|
3629
3382
|
const n = window.innerWidth;
|
|
3630
3383
|
document.querySelectorAll(".is-box").forEach((r) => {
|
|
3631
3384
|
let a = [];
|
|
3632
|
-
const
|
|
3633
|
-
for (let d = 0; d <
|
|
3634
|
-
let b =
|
|
3385
|
+
const u = r.attributes;
|
|
3386
|
+
for (let d = 0; d < u.length; d++) {
|
|
3387
|
+
let b = u[d].name.match(/^data--h-(\d+)$/);
|
|
3635
3388
|
if (b) {
|
|
3636
|
-
const
|
|
3637
|
-
a.push(
|
|
3389
|
+
const x = parseInt(b[1], 10);
|
|
3390
|
+
a.push(x);
|
|
3638
3391
|
}
|
|
3639
3392
|
}
|
|
3640
|
-
a = [...new Set(a)], a.sort((d,
|
|
3393
|
+
a = [...new Set(a)], a.sort((d, m) => m - d);
|
|
3641
3394
|
for (let d = 0; d < a.length; d++) {
|
|
3642
|
-
const
|
|
3395
|
+
const m = a[d];
|
|
3643
3396
|
if (d === 0) {
|
|
3644
|
-
if (n >
|
|
3397
|
+
if (n > m) {
|
|
3645
3398
|
let b = r.getAttribute("data--h");
|
|
3646
3399
|
b ? r.style.height = b : r.style.height = "";
|
|
3647
3400
|
}
|
|
3648
3401
|
} else {
|
|
3649
3402
|
const b = a[d - 1];
|
|
3650
|
-
if (b >= n && n >
|
|
3651
|
-
let
|
|
3652
|
-
|
|
3403
|
+
if (b >= n && n > m) {
|
|
3404
|
+
let x = r.getAttribute("data--h-" + b);
|
|
3405
|
+
x && (r.style.height = x);
|
|
3653
3406
|
}
|
|
3654
3407
|
}
|
|
3655
3408
|
}
|
|
3656
3409
|
if (a.length > 0 && a[a.length - 1] >= n) {
|
|
3657
|
-
const
|
|
3658
|
-
let b = r.getAttribute("data--h-" +
|
|
3410
|
+
const m = a[a.length - 1];
|
|
3411
|
+
let b = r.getAttribute("data--h-" + m);
|
|
3659
3412
|
b && (r.style.height = b);
|
|
3660
3413
|
}
|
|
3661
3414
|
}), document.querySelectorAll(".is-block").forEach((r) => {
|
|
@@ -3665,31 +3418,31 @@ class Ai {
|
|
|
3665
3418
|
d && parseInt(d) + 0 <= n && r.classList.contains("fluid") && e.applyFluid(r, "no");
|
|
3666
3419
|
}
|
|
3667
3420
|
let a = [];
|
|
3668
|
-
const
|
|
3669
|
-
for (let d = 0; d <
|
|
3670
|
-
const
|
|
3671
|
-
let b =
|
|
3421
|
+
const u = r.attributes;
|
|
3422
|
+
for (let d = 0; d < u.length; d++) {
|
|
3423
|
+
const m = u[d].name;
|
|
3424
|
+
let b = m.match(/^data--t-(\d+)$/);
|
|
3672
3425
|
if (b) {
|
|
3673
|
-
const
|
|
3674
|
-
a.push(
|
|
3426
|
+
const x = parseInt(b[1], 10);
|
|
3427
|
+
a.push(x);
|
|
3675
3428
|
}
|
|
3676
|
-
if (b =
|
|
3677
|
-
const
|
|
3678
|
-
a.push(
|
|
3429
|
+
if (b = m.match(/^data--w-(\d+)$/), b) {
|
|
3430
|
+
const x = parseInt(b[1], 10);
|
|
3431
|
+
a.push(x);
|
|
3679
3432
|
}
|
|
3680
|
-
if (b =
|
|
3681
|
-
const
|
|
3682
|
-
a.push(
|
|
3433
|
+
if (b = m.match(/^data--transform-(\d+)$/), b) {
|
|
3434
|
+
const x = parseInt(b[1], 10);
|
|
3435
|
+
a.push(x);
|
|
3683
3436
|
}
|
|
3684
3437
|
}
|
|
3685
|
-
a = [...new Set(a)], a.sort((d,
|
|
3438
|
+
a = [...new Set(a)], a.sort((d, m) => m - d);
|
|
3686
3439
|
for (let d = 0; d < a.length; d++) {
|
|
3687
|
-
const
|
|
3440
|
+
const m = a[d];
|
|
3688
3441
|
if (d === 0)
|
|
3689
|
-
n >
|
|
3442
|
+
n > m && e.apply(r, 1e4, t);
|
|
3690
3443
|
else {
|
|
3691
3444
|
const b = a[d - 1];
|
|
3692
|
-
b >= n && n >
|
|
3445
|
+
b >= n && n > m && e.apply(r, b, t);
|
|
3693
3446
|
}
|
|
3694
3447
|
}
|
|
3695
3448
|
if (a.length > 0) {
|
|
@@ -3721,5 +3474,5 @@ class Ai {
|
|
|
3721
3474
|
}
|
|
3722
3475
|
}
|
|
3723
3476
|
export {
|
|
3724
|
-
|
|
3477
|
+
wi as default
|
|
3725
3478
|
};
|