@innovastudio/contentbox-interactive-runtime 1.0.13 → 1.0.15
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.
|
@@ -12,11 +12,11 @@ function xs() {
|
|
|
12
12
|
return p.Date.now();
|
|
13
13
|
};
|
|
14
14
|
function x(A, j, z) {
|
|
15
|
-
var V,
|
|
15
|
+
var V, Q, ve, be, X, we, ue = 0, Re = !1, xe = !1, Le = !0;
|
|
16
16
|
if (typeof A != "function") throw new TypeError(s);
|
|
17
|
-
function
|
|
18
|
-
var _e = V, Ie =
|
|
19
|
-
return V =
|
|
17
|
+
function qe(Z) {
|
|
18
|
+
var _e = V, Ie = Q;
|
|
19
|
+
return V = Q = void 0, ue = Z, be = A.apply(Ie, _e);
|
|
20
20
|
}
|
|
21
21
|
function Ye(Z) {
|
|
22
22
|
var _e = Z - we;
|
|
@@ -31,20 +31,20 @@ function xs() {
|
|
|
31
31
|
})(Z));
|
|
32
32
|
}
|
|
33
33
|
function Ge(Z) {
|
|
34
|
-
return X = void 0, Le && V ?
|
|
34
|
+
return X = void 0, Le && V ? qe(Z) : (V = Q = void 0, be);
|
|
35
35
|
}
|
|
36
36
|
function Ae() {
|
|
37
37
|
var Z = b(), _e = Ye(Z);
|
|
38
|
-
if (V = arguments,
|
|
38
|
+
if (V = arguments, Q = this, we = Z, _e) {
|
|
39
39
|
if (X === void 0) return (function(Ie) {
|
|
40
|
-
return ue = Ie, X = setTimeout(He, j),
|
|
40
|
+
return ue = Ie, X = setTimeout(He, j), Re ? qe(Ie) : be;
|
|
41
41
|
})(we);
|
|
42
|
-
if (xe) return X = setTimeout(He, j),
|
|
42
|
+
if (xe) return X = setTimeout(He, j), qe(we);
|
|
43
43
|
}
|
|
44
44
|
return X === void 0 && (X = setTimeout(He, j)), be;
|
|
45
45
|
}
|
|
46
|
-
return j = v(j) || 0, m(z) && (
|
|
47
|
-
X !== void 0 && clearTimeout(X), ue = 0, V = we =
|
|
46
|
+
return j = v(j) || 0, m(z) && (Re = !!z.leading, ve = (xe = "maxWait" in z) ? w(v(z.maxWait) || 0, j) : ve, Le = "trailing" in z ? !!z.trailing : Le), Ae.cancel = function() {
|
|
47
|
+
X !== void 0 && clearTimeout(X), ue = 0, V = we = Q = X = void 0;
|
|
48
48
|
}, Ae.flush = function() {
|
|
49
49
|
return X === void 0 ? be : Ge(b());
|
|
50
50
|
}, Ae;
|
|
@@ -56,8 +56,8 @@ function xs() {
|
|
|
56
56
|
function v(A) {
|
|
57
57
|
if (typeof A == "number") return A;
|
|
58
58
|
if ((function(V) {
|
|
59
|
-
return typeof V == "symbol" || /* @__PURE__ */ (function(
|
|
60
|
-
return !!
|
|
59
|
+
return typeof V == "symbol" || /* @__PURE__ */ (function(Q) {
|
|
60
|
+
return !!Q && typeof Q == "object";
|
|
61
61
|
})(V) && g.call(V) == n;
|
|
62
62
|
})(A)) return i;
|
|
63
63
|
if (m(A)) {
|
|
@@ -70,10 +70,10 @@ function xs() {
|
|
|
70
70
|
return z || c.test(A) ? u(A.slice(2), z ? 2 : 8) : a.test(A) ? i : +A;
|
|
71
71
|
}
|
|
72
72
|
var _ = function(A, j, z) {
|
|
73
|
-
var V = !0,
|
|
73
|
+
var V = !0, Q = !0;
|
|
74
74
|
if (typeof A != "function") throw new TypeError(s);
|
|
75
|
-
return m(z) && (V = "leading" in z ? !!z.leading : V,
|
|
76
|
-
}, f = "Expected a function", y = NaN, k = "[object Symbol]", C = /^\s+|\s+$/g, T = /^[-+]0x[0-9a-f]+$/i, O = /^0b[01]+$/i,
|
|
75
|
+
return m(z) && (V = "leading" in z ? !!z.leading : V, Q = "trailing" in z ? !!z.trailing : Q), x(A, j, { leading: V, maxWait: j, trailing: Q });
|
|
76
|
+
}, f = "Expected a function", y = NaN, k = "[object Symbol]", C = /^\s+|\s+$/g, T = /^[-+]0x[0-9a-f]+$/i, O = /^0b[01]+$/i, q = /^0o[0-7]+$/i, B = parseInt, P = typeof t == "object" && t && t.Object === Object && t, D = typeof self == "object" && self && self.Object === Object && self, M = P || D || Function("return this")(), R = Object.prototype.toString, I = Math.max, E = Math.min, $ = function() {
|
|
77
77
|
return M.Date.now();
|
|
78
78
|
};
|
|
79
79
|
function H(A) {
|
|
@@ -83,9 +83,9 @@ function xs() {
|
|
|
83
83
|
function U(A) {
|
|
84
84
|
if (typeof A == "number") return A;
|
|
85
85
|
if ((function(V) {
|
|
86
|
-
return typeof V == "symbol" || /* @__PURE__ */ (function(
|
|
87
|
-
return !!
|
|
88
|
-
})(V) &&
|
|
86
|
+
return typeof V == "symbol" || /* @__PURE__ */ (function(Q) {
|
|
87
|
+
return !!Q && typeof Q == "object";
|
|
88
|
+
})(V) && R.call(V) == k;
|
|
89
89
|
})(A)) return y;
|
|
90
90
|
if (H(A)) {
|
|
91
91
|
var j = typeof A.valueOf == "function" ? A.valueOf() : A;
|
|
@@ -94,14 +94,14 @@ function xs() {
|
|
|
94
94
|
if (typeof A != "string") return A === 0 ? A : +A;
|
|
95
95
|
A = A.replace(C, "");
|
|
96
96
|
var z = O.test(A);
|
|
97
|
-
return z ||
|
|
97
|
+
return z || q.test(A) ? B(A.slice(2), z ? 2 : 8) : T.test(A) ? y : +A;
|
|
98
98
|
}
|
|
99
99
|
var J = function(A, j, z) {
|
|
100
|
-
var V,
|
|
100
|
+
var V, Q, ve, be, X, we, ue = 0, Re = !1, xe = !1, Le = !0;
|
|
101
101
|
if (typeof A != "function") throw new TypeError(f);
|
|
102
|
-
function
|
|
103
|
-
var _e = V, Ie =
|
|
104
|
-
return V =
|
|
102
|
+
function qe(Z) {
|
|
103
|
+
var _e = V, Ie = Q;
|
|
104
|
+
return V = Q = void 0, ue = Z, be = A.apply(Ie, _e);
|
|
105
105
|
}
|
|
106
106
|
function Ye(Z) {
|
|
107
107
|
var _e = Z - we;
|
|
@@ -116,20 +116,20 @@ function xs() {
|
|
|
116
116
|
})(Z));
|
|
117
117
|
}
|
|
118
118
|
function Ge(Z) {
|
|
119
|
-
return X = void 0, Le && V ?
|
|
119
|
+
return X = void 0, Le && V ? qe(Z) : (V = Q = void 0, be);
|
|
120
120
|
}
|
|
121
121
|
function Ae() {
|
|
122
122
|
var Z = $(), _e = Ye(Z);
|
|
123
|
-
if (V = arguments,
|
|
123
|
+
if (V = arguments, Q = this, we = Z, _e) {
|
|
124
124
|
if (X === void 0) return (function(Ie) {
|
|
125
|
-
return ue = Ie, X = setTimeout(He, j),
|
|
125
|
+
return ue = Ie, X = setTimeout(He, j), Re ? qe(Ie) : be;
|
|
126
126
|
})(we);
|
|
127
|
-
if (xe) return X = setTimeout(He, j),
|
|
127
|
+
if (xe) return X = setTimeout(He, j), qe(we);
|
|
128
128
|
}
|
|
129
129
|
return X === void 0 && (X = setTimeout(He, j)), be;
|
|
130
130
|
}
|
|
131
|
-
return j = U(j) || 0, H(z) && (
|
|
132
|
-
X !== void 0 && clearTimeout(X), ue = 0, V = we =
|
|
131
|
+
return j = U(j) || 0, H(z) && (Re = !!z.leading, ve = (xe = "maxWait" in z) ? I(U(z.maxWait) || 0, j) : ve, Le = "trailing" in z ? !!z.trailing : Le), Ae.cancel = function() {
|
|
132
|
+
X !== void 0 && clearTimeout(X), ue = 0, V = we = Q = X = void 0;
|
|
133
133
|
}, Ae.flush = function() {
|
|
134
134
|
return X === void 0 ? be : Ge($());
|
|
135
135
|
}, Ae;
|
|
@@ -138,29 +138,29 @@ function xs() {
|
|
|
138
138
|
function ee(A) {
|
|
139
139
|
A && A.forEach(function(j) {
|
|
140
140
|
var z = Array.prototype.slice.call(j.addedNodes), V = Array.prototype.slice.call(j.removedNodes);
|
|
141
|
-
if ((function
|
|
141
|
+
if ((function Q(ve) {
|
|
142
142
|
var be = void 0, X = void 0;
|
|
143
143
|
for (be = 0; be < ve.length; be += 1)
|
|
144
|
-
if ((X = ve[be]).dataset && X.dataset.aos || X.children &&
|
|
144
|
+
if ((X = ve[be]).dataset && X.dataset.aos || X.children && Q(X.children)) return !0;
|
|
145
145
|
return !1;
|
|
146
146
|
})(z.concat(V))) return Y();
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function K() {
|
|
150
150
|
return window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
|
151
151
|
}
|
|
152
152
|
var he = { isSupported: function() {
|
|
153
|
-
return !!
|
|
153
|
+
return !!K();
|
|
154
154
|
}, ready: function(A, j) {
|
|
155
|
-
var z = window.document, V = new (
|
|
155
|
+
var z = window.document, V = new (K())(ee);
|
|
156
156
|
Y = j, V.observe(z.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
|
|
157
157
|
} }, Ee = function(A, j) {
|
|
158
158
|
if (!(A instanceof j)) throw new TypeError("Cannot call a class as a function");
|
|
159
159
|
}, me = /* @__PURE__ */ (function() {
|
|
160
160
|
function A(j, z) {
|
|
161
161
|
for (var V = 0; V < z.length; V++) {
|
|
162
|
-
var
|
|
163
|
-
|
|
162
|
+
var Q = z[V];
|
|
163
|
+
Q.enumerable = Q.enumerable || !1, Q.configurable = !0, "value" in Q && (Q.writable = !0), Object.defineProperty(j, Q.key, Q);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
return function(j, z, V) {
|
|
@@ -196,16 +196,16 @@ function xs() {
|
|
|
196
196
|
return ce.ie11() ? (z = document.createEvent("CustomEvent")).initCustomEvent(A, !0, !0, { detail: j }) : z = new CustomEvent(A, { detail: j }), document.dispatchEvent(z);
|
|
197
197
|
}, le = function(A) {
|
|
198
198
|
return A.forEach(function(j, z) {
|
|
199
|
-
return (function(V,
|
|
199
|
+
return (function(V, Q) {
|
|
200
200
|
var ve = V.options, be = V.position, X = V.node, we = (V.data, function() {
|
|
201
|
-
V.animated && ((function(ue,
|
|
202
|
-
|
|
201
|
+
V.animated && ((function(ue, Re) {
|
|
202
|
+
Re && Re.forEach(function(xe) {
|
|
203
203
|
return ue.classList.remove(xe);
|
|
204
204
|
});
|
|
205
205
|
})(X, ve.animatedClassNames), fe("aos:out", X), V.options.id && fe("aos:in:" + V.options.id, X), V.animated = !1);
|
|
206
206
|
});
|
|
207
|
-
ve.mirror &&
|
|
208
|
-
|
|
207
|
+
ve.mirror && Q >= be.out && !ve.once ? we() : Q >= be.in ? V.animated || ((function(ue, Re) {
|
|
208
|
+
Re && Re.forEach(function(xe) {
|
|
209
209
|
return ue.classList.add(xe);
|
|
210
210
|
});
|
|
211
211
|
})(X, ve.animatedClassNames), fe("aos:in", X), V.options.id && fe("aos:in:" + V.options.id, X), V.animated = !0) : V.animated && !ve.once && we();
|
|
@@ -223,12 +223,12 @@ function xs() {
|
|
|
223
223
|
return V || z;
|
|
224
224
|
}, F = function(A, j) {
|
|
225
225
|
return A.forEach(function(z, V) {
|
|
226
|
-
var
|
|
226
|
+
var Q = te(z.node, "mirror", j.mirror), ve = te(z.node, "once", j.once), be = te(z.node, "id"), X = j.useClassNames && z.node.getAttribute("data-aos"), we = [j.animatedClassName].concat(X ? X.split(" ") : []).filter(function(ue) {
|
|
227
227
|
return typeof ue == "string";
|
|
228
228
|
});
|
|
229
|
-
j.initClassName && z.node.classList.add(j.initClassName), z.position = { in: (function(ue,
|
|
230
|
-
var Le = window.innerHeight,
|
|
231
|
-
|
|
229
|
+
j.initClassName && z.node.classList.add(j.initClassName), z.position = { in: (function(ue, Re, xe) {
|
|
230
|
+
var Le = window.innerHeight, qe = te(ue, "anchor"), Ye = te(ue, "anchor-placement"), He = Number(te(ue, "offset", Ye ? 0 : Re)), Ge = Ye || xe, Ae = ue;
|
|
231
|
+
qe && document.querySelectorAll(qe) && (Ae = document.querySelectorAll(qe)[0]);
|
|
232
232
|
var Z = se(Ae).top - Le;
|
|
233
233
|
switch (Ge) {
|
|
234
234
|
case "top-bottom":
|
|
@@ -258,10 +258,10 @@ function xs() {
|
|
|
258
258
|
Z += Le + Ae.offsetHeight / 2;
|
|
259
259
|
}
|
|
260
260
|
return Z + He;
|
|
261
|
-
})(z.node, j.offset, j.anchorPlacement), out:
|
|
262
|
-
var xe = te(ue, "anchor"), Le = te(ue, "offset",
|
|
263
|
-
return xe && document.querySelectorAll(xe) && (
|
|
264
|
-
})(z.node, j.offset) }, z.options = { once: ve, mirror:
|
|
261
|
+
})(z.node, j.offset, j.anchorPlacement), out: Q && (function(ue, Re) {
|
|
262
|
+
var xe = te(ue, "anchor"), Le = te(ue, "offset", Re), qe = ue;
|
|
263
|
+
return xe && document.querySelectorAll(xe) && (qe = document.querySelectorAll(xe)[0]), se(qe).top + qe.offsetHeight - Le;
|
|
264
|
+
})(z.node, j.offset) }, z.options = { once: ve, mirror: Q, animatedClassNames: we, id: be };
|
|
265
265
|
}), A;
|
|
266
266
|
}, Se = function() {
|
|
267
267
|
var A = document.querySelectorAll("[data-aos]");
|
|
@@ -436,8 +436,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
436
436
|
T[O.name] = O.getValue(y.frame);
|
|
437
437
|
}), y.elements.forEach(function(O) {
|
|
438
438
|
O.update(T, y.frame);
|
|
439
|
-
}), y.debug && y.debugData.frameLengths.push(Date.now() - y.debugData.frameStart), y.frame % 60 == 0 && y.debug && (C = Math.ceil(y.debugData.frameLengths.reduce(function(O,
|
|
440
|
-
return O +
|
|
439
|
+
}), y.debug && y.debugData.frameLengths.push(Date.now() - y.debugData.frameStart), y.frame % 60 == 0 && y.debug && (C = Math.ceil(y.debugData.frameLengths.reduce(function(O, q) {
|
|
440
|
+
return O + q;
|
|
441
441
|
}, 0) / 60), console.log("Average frame calculation time: ".concat(C, "ms")), y.debugData.frameLengths = []), y.frame++, window.requestAnimationFrame(y.onAnimationFrame);
|
|
442
442
|
}), t(this, "addDriver", function(k, C) {
|
|
443
443
|
var T = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -456,8 +456,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
456
456
|
y.elements.push(new _(".lax", y, k, T, 0, {}));
|
|
457
457
|
});
|
|
458
458
|
}), t(this, "addElements", function(k, C, T) {
|
|
459
|
-
document.querySelectorAll(k).forEach(function(O,
|
|
460
|
-
y.elements.push(new _(k, y, O, C,
|
|
459
|
+
document.querySelectorAll(k).forEach(function(O, q) {
|
|
460
|
+
y.elements.push(new _(k, y, O, C, q, T));
|
|
461
461
|
});
|
|
462
462
|
}), t(this, "removeElements", function(k) {
|
|
463
463
|
y.elements = y.elements.filter(function(C) {
|
|
@@ -473,10 +473,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
473
473
|
}());
|
|
474
474
|
function x(f, y) {
|
|
475
475
|
if (Array.isArray(f)) return f;
|
|
476
|
-
for (var k = Object.keys(f).map(function(
|
|
477
|
-
return parseInt(
|
|
478
|
-
}).sort(function(
|
|
479
|
-
return B <
|
|
476
|
+
for (var k = Object.keys(f).map(function(q) {
|
|
477
|
+
return parseInt(q);
|
|
478
|
+
}).sort(function(q, B) {
|
|
479
|
+
return B < q ? 1 : -1;
|
|
480
480
|
}), C = k[k.length - 1], T = 0; T < k.length; T++) {
|
|
481
481
|
var O = k[T];
|
|
482
482
|
if (y < O) {
|
|
@@ -489,8 +489,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
489
489
|
function m(f, E, k) {
|
|
490
490
|
var C = E.width, T = E.height, M = E.x, I = E.y;
|
|
491
491
|
if (typeof f == "number") return f;
|
|
492
|
-
var O,
|
|
493
|
-
return Function("return ".concat(f.replace(/screenWidth/g, P).replace(/screenHeight/g, D).replace(/pageHeight/g,
|
|
492
|
+
var O, q = document.body.scrollHeight, B = document.body.scrollWidth, P = window.innerWidth, D = window.innerHeight, R = s((O = window.pageXOffset !== void 0, R = (document.compatMode || "") === "CSS1Compat", E = O ? window.pageXOffset : (R ? document.documentElement : document.body).scrollLeft, [O ? window.pageYOffset : (R ? document.documentElement : document.body).scrollTop, E]), 2), E = R[0], M = M + R[1], R = M + C, I = I + E, E = I + T;
|
|
493
|
+
return Function("return ".concat(f.replace(/screenWidth/g, P).replace(/screenHeight/g, D).replace(/pageHeight/g, q).replace(/pageWidth/g, B).replace(/elWidth/g, C).replace(/elHeight/g, T).replace(/elInY/g, I - D).replace(/elOutY/g, E).replace(/elCenterY/g, I + T / 2 - D / 2).replace(/elInX/g, M - P).replace(/elOutX/g, R).replace(/elCenterX/g, M + C / 2 - P / 2).replace(/index/g, k)))();
|
|
494
494
|
}
|
|
495
495
|
function v(f, y) {
|
|
496
496
|
var k = this, C = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -504,13 +504,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
504
504
|
function _(f, y, k, C) {
|
|
505
505
|
var T = this, O = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0, B = 5 < arguments.length && arguments[5] !== void 0 ? arguments[5] : {};
|
|
506
506
|
e(this, _), t(this, "domElement", void 0), t(this, "transformsData", void 0), t(this, "styles", {}), t(this, "selector", ""), t(this, "groupIndex", 0), t(this, "laxInstance", void 0), t(this, "onUpdate", void 0), t(this, "update", function(P, D) {
|
|
507
|
-
var M,
|
|
508
|
-
for (M in
|
|
509
|
-
var E =
|
|
507
|
+
var M, R = T.transforms, I = {};
|
|
508
|
+
for (M in R) {
|
|
509
|
+
var E = R[M];
|
|
510
510
|
P[M] || console.error("No lax driver with name: ", M);
|
|
511
511
|
var $, H = s(P[M], 2), U = H[0], J = H[1];
|
|
512
512
|
for ($ in E) {
|
|
513
|
-
var Y, me = s(E[$], 3), ee = me[0],
|
|
513
|
+
var Y, me = s(E[$], 3), ee = me[0], K = me[1], Te = me[2], re = Te === void 0 ? {} : Te, he = re.modValue, ye = re.frameStep, Ee = ye === void 0 ? 1 : ye, N = re.easing, me = re.inertia, Te = re.inertiaMode, ye = re.cssFn, re = re.cssUnit, re = re === void 0 ? "" : re, N = w[N];
|
|
514
514
|
D % Ee == 0 && (N = (function(G, ie, ce, fe) {
|
|
515
515
|
var le = 0;
|
|
516
516
|
if (G.forEach(function(F) {
|
|
@@ -519,7 +519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
519
519
|
if (le >= G.length) return ie[G.length - 1];
|
|
520
520
|
var se, te = (te = G[se = le - 1], G = G[le], (ce - te) / (G - te));
|
|
521
521
|
return fe && (te = fe(te)), se = ie[se], ie = ie[le], se * (1 - (te = te)) + ie * te;
|
|
522
|
-
})(ee,
|
|
522
|
+
})(ee, K, he ? U % he : U, N), me && (Y = J * me, Te === "absolute" && (Y = Math.abs(Y)), N += Y), Y = (re || p.includes($) ? "px" : g.includes($) ? "deg" : "") == "px" ? 0 : 3, Y = N.toFixed(Y), I[$] = ye ? ye(Y, T.domElement) : Y + re);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
T.applyStyles(I), T.onUpdate && T.onUpdate(P, T.domElement);
|
|
@@ -527,35 +527,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
527
527
|
T.transforms = {};
|
|
528
528
|
var P, D = T.laxInstance.windowWidth;
|
|
529
529
|
for (P in T.transformsData) (function(M) {
|
|
530
|
-
var
|
|
530
|
+
var R = T.transformsData[M], I = {}, E = R.presets;
|
|
531
531
|
(E === void 0 ? [] : E).forEach(function(ee) {
|
|
532
|
-
var U,
|
|
533
|
-
|
|
534
|
-
|
|
532
|
+
var U, K = s(ee.split(":"), 3), J = K[0], Y = K[1], ee = K[2], K = window.lax.presets[J];
|
|
533
|
+
K ? (U = K(Y, ee), Object.keys(U).forEach(function(he) {
|
|
534
|
+
R[he] = U[he];
|
|
535
535
|
})) : console.error("Lax preset cannot be found with name: ", J);
|
|
536
|
-
}), delete
|
|
537
|
-
for (var $ in
|
|
538
|
-
var U = s(
|
|
539
|
-
return m(
|
|
540
|
-
}), ee = x(ee, D).map(function(
|
|
541
|
-
return m(
|
|
536
|
+
}), delete R.presets;
|
|
537
|
+
for (var $ in R) (function(H) {
|
|
538
|
+
var U = s(R[H], 3), ee = U[0], Y = ee === void 0 ? [-1e9, 1e9] : ee, ee = U[1], ee = ee === void 0 ? [-1e9, 1e9] : ee, U = U[2], U = U === void 0 ? {} : U, J = T.domElement.getBoundingClientRect(), Y = x(Y, D).map(function(K) {
|
|
539
|
+
return m(K, J, T.groupIndex);
|
|
540
|
+
}), ee = x(ee, D).map(function(K) {
|
|
541
|
+
return m(K, J, T.groupIndex);
|
|
542
542
|
});
|
|
543
543
|
I[H] = [Y, ee, U];
|
|
544
544
|
})($);
|
|
545
545
|
T.transforms[M] = I;
|
|
546
546
|
})(P);
|
|
547
547
|
}), t(this, "applyStyles", function(P) {
|
|
548
|
-
var D, M,
|
|
548
|
+
var D, M, R, I = (D = P, M = { transform: "", filter: "" }, R = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(D).forEach(function(E) {
|
|
549
549
|
var $ = D[E], H = p.includes(E) ? "px" : g.includes(E) ? "deg" : "";
|
|
550
|
-
h.includes(E) ?
|
|
551
|
-
}), M.transform = "translate3d(".concat(
|
|
550
|
+
h.includes(E) ? R[E] = $ : u.includes(E) ? M.transform += "".concat(E, "(").concat($).concat(H, ") ") : o.includes(E) ? M.filter += "".concat(E, "(").concat($).concat(H, ") ") : M[E] = "".concat($).concat(H, " ");
|
|
551
|
+
}), M.transform = "translate3d(".concat(R.translateX, "px, ").concat(R.translateY, "px, ").concat(R.translateZ, "px) ").concat(M.transform), M);
|
|
552
552
|
Object.keys(I).forEach(function(E) {
|
|
553
553
|
T.domElement.style.setProperty(E, I[E]);
|
|
554
554
|
});
|
|
555
555
|
}), this.selector = f, this.laxInstance = y, this.domElement = k, this.transformsData = C, this.groupIndex = O;
|
|
556
|
-
var
|
|
557
|
-
Object.keys(
|
|
558
|
-
k.style.setProperty(P,
|
|
556
|
+
var q = (O = B.style) === void 0 ? {} : O, B = B.onUpdate;
|
|
557
|
+
Object.keys(q).forEach(function(P) {
|
|
558
|
+
k.style.setProperty(P, q[P]);
|
|
559
559
|
}), B && (this.onUpdate = B), this.calculateTransforms();
|
|
560
560
|
}
|
|
561
561
|
d.exports !== void 0 ? d.exports = b : window.lax = b;
|
|
@@ -589,18 +589,18 @@ class Ts {
|
|
|
589
589
|
return;
|
|
590
590
|
}
|
|
591
591
|
i.style.transform = "";
|
|
592
|
-
let r = this.getObjVal(i, "data-top-bottom"), a = this.getObjVal(i, "data-top"), l = this.getObjVal(i, "data-50-top"), c = this.getObjVal(i, "data-100-top"), u = this.getObjVal(i, "data-center-bottom"), o = this.getObjVal(i, "data-center"), h = this.getObjVal(i, "data-center-top"), p = this.getObjVal(i, "data--400-bottom"), g = this.getObjVal(i, "data--300-bottom"), w = this.getObjVal(i, "data--200-bottom"), S = this.getObjVal(i, "data--150-bottom"), b = this.getObjVal(i, "data--100-bottom"), x = this.getObjVal(i, "data--50-bottom"), m = this.getObjVal(i, "data-bottom"), v = this.getObjVal(i, "data-50-bottom"), _ = this.getObjVal(i, "data-100-bottom"), f = this.getObjVal(i, "data-150-bottom"), y = this.getObjVal(i, "data-200-bottom"), k = this.getObjVal(i, "data-300-bottom"), C = this.getObjVal(i, "data-400-bottom"), T = this.getObjVal(i, "data-bottom-top"), O = this.getObjVal(i, "data-in"),
|
|
592
|
+
let r = this.getObjVal(i, "data-top-bottom"), a = this.getObjVal(i, "data-top"), l = this.getObjVal(i, "data-50-top"), c = this.getObjVal(i, "data-100-top"), u = this.getObjVal(i, "data-center-bottom"), o = this.getObjVal(i, "data-center"), h = this.getObjVal(i, "data-center-top"), p = this.getObjVal(i, "data--400-bottom"), g = this.getObjVal(i, "data--300-bottom"), w = this.getObjVal(i, "data--200-bottom"), S = this.getObjVal(i, "data--150-bottom"), b = this.getObjVal(i, "data--100-bottom"), x = this.getObjVal(i, "data--50-bottom"), m = this.getObjVal(i, "data-bottom"), v = this.getObjVal(i, "data-50-bottom"), _ = this.getObjVal(i, "data-100-bottom"), f = this.getObjVal(i, "data-150-bottom"), y = this.getObjVal(i, "data-200-bottom"), k = this.getObjVal(i, "data-300-bottom"), C = this.getObjVal(i, "data-400-bottom"), T = this.getObjVal(i, "data-bottom-top"), O = this.getObjVal(i, "data-in"), q = this.getObjVal(i, "data-in-150"), B = this.getObjVal(i, "data-in-300"), P = this.getObjVal(i, "data-cen--150"), D = this.getObjVal(i, "data-cen"), M = this.getObjVal(i, "data-cen-150"), R = this.getObjVal(i, "data-out--300"), I = this.getObjVal(i, "data-out--150"), E = this.getObjVal(i, "data-out"), $ = !1;
|
|
593
593
|
i.hasAttribute("data-xs") && ($ = !0);
|
|
594
594
|
let H = !1;
|
|
595
595
|
i.hasAttribute("data-sm") && (H = !0);
|
|
596
596
|
let U = !1;
|
|
597
597
|
i.hasAttribute("data-md") && (U = !0), i.hasAttribute("data-lg"), i.hasAttribute("data-xl");
|
|
598
|
-
let J = {}, Y = {}, ee = {},
|
|
599
|
-
(t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"),
|
|
600
|
-
let ve = ee, be =
|
|
601
|
-
nt < 730 ? (J = ve, Y = be, ee = X,
|
|
598
|
+
let J = {}, Y = {}, ee = {}, K = {}, he = {}, Ee = {}, me = {}, Te = {}, ye = {}, re = {}, N = {}, G = {}, ie = {}, ce = {}, fe = {}, le = {}, se = {}, te = {}, F = {}, Se = {}, pe = {}, Me = {}, ne = {}, Pe = {}, Ce = {}, De = {}, Ue = {}, Fe = {}, A = {}, j = {}, z = {}, V = {}, Q = {};
|
|
599
|
+
(t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"), K = this.getObjVal(i, "data-t-100"), he = this.getObjVal(i, "data-t-200"), Ee = this.getObjVal(i, "data-t-300"), me = this.getObjVal(i, "data-t-400"), Te = this.getObjVal(i, "data-t-500"), ye = this.getObjVal(i, "data-t-600"), re = this.getObjVal(i, "data-t-700"), N = this.getObjVal(i, "data-t-800"), G = this.getObjVal(i, "data-t-900"), ie = this.getObjVal(i, "data-t-1000"), ce = this.getObjVal(i, "data-t-1100"), fe = this.getObjVal(i, "data-t-1200"), le = this.getObjVal(i, "data-t-1300"), se = this.getObjVal(i, "data-t-1400"), te = this.getObjVal(i, "data-t-1500"), F = this.getObjVal(i, "data-t-1600"), Se = this.getObjVal(i, "data-t-1700"), pe = this.getObjVal(i, "data-t-1800"), Me = this.getObjVal(i, "data-t-1900"), ne = this.getObjVal(i, "data-t-2000"), Pe = this.getObjVal(i, "data-t-2100"), Ce = this.getObjVal(i, "data-t-2200"), De = this.getObjVal(i, "data-t-2300"), Ue = this.getObjVal(i, "data-t-2400"), Fe = this.getObjVal(i, "data-t-2500"), A = this.getObjVal(i, "data-t-2600"), j = this.getObjVal(i, "data-t-2700"), z = this.getObjVal(i, "data-t-2800")), t > 970 && t <= 1280 && U && (i.hasAttribute("data-md-t") && (ee = this.getObjVal(i, "data-md-t")), i.hasAttribute("data-md-t-100") && (K = this.getObjVal(i, "data-md-t-100")), i.hasAttribute("data-md-t-200") && (he = this.getObjVal(i, "data-md-t-200")), i.hasAttribute("data-md-t-300") && (Ee = this.getObjVal(i, "data-md-t-300")), i.hasAttribute("data-md-t-400") && (me = this.getObjVal(i, "data-md-t-400")), i.hasAttribute("data-md-t-500") && (Te = this.getObjVal(i, "data-md-t-500")), i.hasAttribute("data-md-t-600") && (ye = this.getObjVal(i, "data-md-t-600")), i.hasAttribute("data-md-t-700") && (re = this.getObjVal(i, "data-md-t-700")), i.hasAttribute("data-md-t-800") && (N = this.getObjVal(i, "data-md-t-800")), i.hasAttribute("data-md-t-900") && (G = this.getObjVal(i, "data-md-t-900")), i.hasAttribute("data-md-t-1000") && (ie = this.getObjVal(i, "data-md-t-1000")), i.hasAttribute("data-md-t-1100") && (ce = this.getObjVal(i, "data-md-t-1100")), i.hasAttribute("data-md-t-1200") && (fe = this.getObjVal(i, "data-md-t-1200")), i.hasAttribute("data-md-t-1300") && (le = this.getObjVal(i, "data-md-t-1300")), i.hasAttribute("data-md-t-1400") && (se = this.getObjVal(i, "data-md-t-1400")), i.hasAttribute("data-md-t-1500") && (te = this.getObjVal(i, "data-md-t-1500")), i.hasAttribute("data-md-t-1600") && (F = this.getObjVal(i, "data-md-t-1600")), i.hasAttribute("data-md-t-1700") && (Se = this.getObjVal(i, "data-md-t-1700")), i.hasAttribute("data-md-t-1800") && (pe = this.getObjVal(i, "data-md-t-1800")), i.hasAttribute("data-md-t-1900") && (Me = this.getObjVal(i, "data-md-t-1900")), i.hasAttribute("data-md-t-2000") && (ne = this.getObjVal(i, "data-md-t-2000")), i.hasAttribute("data-md-t-2100") && (Pe = this.getObjVal(i, "data-md-t-2100")), i.hasAttribute("data-md-t-2200") && (Ce = this.getObjVal(i, "data-md-t-2200")), i.hasAttribute("data-md-t-2300") && (De = this.getObjVal(i, "data-md-t-2300")), i.hasAttribute("data-md-t-2400") && (Ue = this.getObjVal(i, "data-md-t-2400")), i.hasAttribute("data-md-t-2500") && (Fe = this.getObjVal(i, "data-md-t-2500")), i.hasAttribute("data-md-t-2600") && (A = this.getObjVal(i, "data-md-t-2600")), i.hasAttribute("data-md-t-2700") && (j = this.getObjVal(i, "data-md-t-2700")), i.hasAttribute("data-md-t-2800") && (z = this.getObjVal(i, "data-md-t-2800"))), t <= 970 && i.hasAttribute("m-data-out") && (E = this.getObjVal(i, "m-data-out")), (t > 760 && t <= 970 && H || t <= 760 && !$ && H) && (i.hasAttribute("data-sm-t") && (ee = this.getObjVal(i, "data-sm-t")), i.hasAttribute("data-sm-t-100") && (K = this.getObjVal(i, "data-sm-t-100")), i.hasAttribute("data-sm-t-200") && (he = this.getObjVal(i, "data-sm-t-200")), i.hasAttribute("data-sm-t-300") && (Ee = this.getObjVal(i, "data-sm-t-300")), i.hasAttribute("data-sm-t-400") && (me = this.getObjVal(i, "data-sm-t-400")), i.hasAttribute("data-sm-t-500") && (Te = this.getObjVal(i, "data-sm-t-500")), i.hasAttribute("data-sm-t-600") && (ye = this.getObjVal(i, "data-sm-t-600")), i.hasAttribute("data-sm-t-700") && (re = this.getObjVal(i, "data-sm-t-700")), i.hasAttribute("data-sm-t-800") && (N = this.getObjVal(i, "data-sm-t-800")), i.hasAttribute("data-sm-t-900") && (G = this.getObjVal(i, "data-sm-t-900")), i.hasAttribute("data-sm-t-1000") && (ie = this.getObjVal(i, "data-sm-t-1000")), i.hasAttribute("data-sm-t-1100") && (ce = this.getObjVal(i, "data-sm-t-1100")), i.hasAttribute("data-sm-t-1200") && (fe = this.getObjVal(i, "data-sm-t-1200")), i.hasAttribute("data-sm-t-1300") && (le = this.getObjVal(i, "data-sm-t-1300")), i.hasAttribute("data-sm-t-1400") && (se = this.getObjVal(i, "data-sm-t-1400")), i.hasAttribute("data-sm-t-1500") && (te = this.getObjVal(i, "data-sm-t-1500")), i.hasAttribute("data-sm-t-1600") && (F = this.getObjVal(i, "data-sm-t-1600")), i.hasAttribute("data-sm-t-1700") && (Se = this.getObjVal(i, "data-sm-t-1700")), i.hasAttribute("data-sm-t-1800") && (pe = this.getObjVal(i, "data-sm-t-1800")), i.hasAttribute("data-sm-t-1900") && (Me = this.getObjVal(i, "data-sm-t-1900")), i.hasAttribute("data-sm-t-2000") && (ne = this.getObjVal(i, "data-sm-t-2000")), i.hasAttribute("data-sm-t-2100") && (Pe = this.getObjVal(i, "data-sm-t-2100")), i.hasAttribute("data-sm-t-2200") && (Ce = this.getObjVal(i, "data-sm-t-2200")), i.hasAttribute("data-sm-t-2300") && (De = this.getObjVal(i, "data-sm-t-2300")), i.hasAttribute("data-sm-t-2400") && (Ue = this.getObjVal(i, "data-sm-t-2400")), i.hasAttribute("data-sm-t-2500") && (Fe = this.getObjVal(i, "data-sm-t-2500")), i.hasAttribute("data-sm-t-2600") && (A = this.getObjVal(i, "data-sm-t-2600")), i.hasAttribute("data-sm-t-2700") && (j = this.getObjVal(i, "data-sm-t-2700")), i.hasAttribute("data-sm-t-2800") && (z = this.getObjVal(i, "data-sm-t-2800"))), t <= 414 && $ && (i.hasAttribute("data-xs-t") && (ee = this.getObjVal(i, "data-xs-t")), i.hasAttribute("data-xs-t-100") && (K = this.getObjVal(i, "data-xs-t-100")), i.hasAttribute("data-xs-t-200") && (he = this.getObjVal(i, "data-xs-t-200")), i.hasAttribute("data-xs-t-300") && (Ee = this.getObjVal(i, "data-xs-t-300")), i.hasAttribute("data-xs-t-400") && (me = this.getObjVal(i, "data-xs-t-400")), i.hasAttribute("data-xs-t-500") && (Te = this.getObjVal(i, "data-xs-t-500")), i.hasAttribute("data-xs-t-600") && (ye = this.getObjVal(i, "data-xs-t-600")), i.hasAttribute("data-xs-t-700") && (re = this.getObjVal(i, "data-xs-t-700")), i.hasAttribute("data-xs-t-800") && (N = this.getObjVal(i, "data-xs-t-800")), i.hasAttribute("data-xs-t-900") && (G = this.getObjVal(i, "data-xs-t-900")), i.hasAttribute("data-xs-t-1000") && (ie = this.getObjVal(i, "data-xs-t-1000")), i.hasAttribute("data-xs-t-1100") && (ce = this.getObjVal(i, "data-xs-t-1100")), i.hasAttribute("data-xs-t-1200") && (fe = this.getObjVal(i, "data-xs-t-1200")), i.hasAttribute("data-xs-t-1300") && (le = this.getObjVal(i, "data-xs-t-1300")), i.hasAttribute("data-xs-t-1400") && (se = this.getObjVal(i, "data-xs-t-1400")), i.hasAttribute("data-xs-t-1500") && (te = this.getObjVal(i, "data-xs-t-1500")), i.hasAttribute("data-xs-t-1600") && (F = this.getObjVal(i, "data-xs-t-1600")), i.hasAttribute("data-xs-t-1700") && (Se = this.getObjVal(i, "data-xs-t-1700")), i.hasAttribute("data-xs-t-1800") && (pe = this.getObjVal(i, "data-xs-t-1800")), i.hasAttribute("data-xs-t-1900") && (Me = this.getObjVal(i, "data-xs-t-1900")), i.hasAttribute("data-xs-t-2000") && (ne = this.getObjVal(i, "data-xs-t-2000")), i.hasAttribute("data-xs-t-2100") && (Pe = this.getObjVal(i, "data-xs-t-2100")), i.hasAttribute("data-xs-t-2200") && (Ce = this.getObjVal(i, "data-xs-t-2200")), i.hasAttribute("data-xs-t-2300") && (De = this.getObjVal(i, "data-xs-t-2300")), i.hasAttribute("data-xs-t-2400") && (Ue = this.getObjVal(i, "data-xs-t-2400")), i.hasAttribute("data-xs-t-2500") && (Fe = this.getObjVal(i, "data-xs-t-2500")), i.hasAttribute("data-xs-t-2600") && (A = this.getObjVal(i, "data-xs-t-2600")), i.hasAttribute("data-xs-t-2700") && (j = this.getObjVal(i, "data-xs-t-2700")), i.hasAttribute("data-xs-t-2800") && (z = this.getObjVal(i, "data-xs-t-2800")));
|
|
600
|
+
let ve = ee, be = K, X = he, we = Ee, ue = me, Re = Te, xe = ye, Le = re, qe = N, Ye = G, He = ie, Ge = ce, Ae = fe, Z = le, _e = se, Ie = te, vt = F, wt = Se, xt = pe, _t = Me, kt = ne, St = Pe, Et = Ce, Tt = De, Lt = Ue, Ct = Fe, At = A, Ot = j, Mt = z, nt = window.innerHeight;
|
|
601
|
+
nt < 730 ? (J = ve, Y = be, ee = X, K = we, he = ue, Ee = Re, me = xe, Te = Le, ye = qe, re = Ye, N = He, G = Ge, ie = Ae, ce = Z, fe = _e, le = Ie, se = vt, te = wt, F = xt, Se = _t, pe = kt, Me = St, ne = Et, Pe = Tt, Ce = Lt, De = Ct, Ue = At, Fe = Ot, A = Mt, j = {}, z = {}) : nt >= 730 && nt < 790 ? (Y = ve, ee = be, K = X, he = we, Ee = ue, me = Re, Te = xe, ye = Le, re = qe, N = Ye, G = He, ie = Ge, ce = Ae, fe = Z, le = _e, se = Ie, te = vt, F = wt, Se = xt, pe = _t, Me = kt, ne = St, Pe = Et, Ce = Tt, De = Lt, Ue = Ct, Fe = At, A = Ot, j = Mt, z = {}) : nt >= 790 && nt < 840 || (nt >= 840 && nt < 1125 ? (ee = {}, K = ve, he = be, Ee = X, me = we, Te = ue, ye = Re, re = xe, N = Le, G = qe, ie = Ye, ce = He, fe = Ge, le = Ae, se = Z, te = _e, F = Ie, Se = vt, pe = wt, Me = xt, ne = _t, Pe = kt, Ce = St, De = Et, Ue = Tt, Fe = Lt, A = Ct, j = At, z = Ot, V = Mt) : (ee = {}, K = {}, he = ve, Ee = be, me = X, Te = we, ye = ue, re = Re, N = xe, G = Le, ie = qe, ce = Ye, fe = He, le = Ge, se = Ae, te = Z, F = _e, Se = Ie, pe = vt, Me = wt, ne = xt, Pe = _t, Ce = kt, De = St, Ue = Et, Fe = Tt, A = Lt, j = Ct, z = At, V = Ot, Q = Mt));
|
|
602
602
|
let L = {};
|
|
603
|
-
Object.keys(T).length !== 0 && (L = this.parseObj(T, "elInY", L)), Object.keys(C).length !== 0 && (L = this.parseObj(C, "elInY+50", L)), Object.keys(k).length !== 0 && (L = this.parseObj(k, "elInY+100", L)), Object.keys(y).length !== 0 && (L = this.parseObj(y, "elInY+150", L)), Object.keys(f).length !== 0 && (L = this.parseObj(f, "elInY+200", L)), Object.keys(_).length !== 0 && (L = this.parseObj(_, "elInY+250", L)), Object.keys(v).length !== 0 && (L = this.parseObj(v, "elInY+300", L)), Object.keys(m).length !== 0 && (L = this.parseObj(m, "elInY+350", L)), Object.keys(x).length !== 0 && (L = this.parseObj(x, "elInY+400", L)), Object.keys(b).length !== 0 && (L = this.parseObj(b, "elInY+450", L)), Object.keys(S).length !== 0 && (L = this.parseObj(S, "elInY+500", L)), Object.keys(w).length !== 0 && (L = this.parseObj(w, "elInY+550", L)), Object.keys(g).length !== 0 && (L = this.parseObj(g, "elInY+600", L)), Object.keys(p).length !== 0 && (L = this.parseObj(p, "elInY+650", L)), Object.keys(h).length !== 0 && (L = this.parseObj(h, "elCenterY-300", L)), Object.keys(o).length !== 0 && (L = this.parseObj(o, "elCenterY", L)), Object.keys(u).length !== 0 && (L = this.parseObj(u, "elCenterY+100", L)), Object.keys(c).length !== 0 && (L = this.parseObj(c, "elCenterY+200", L)), Object.keys(l).length !== 0 && (L = this.parseObj(l, "elCenterY+300", L)), Object.keys(a).length !== 0 && (L = this.parseObj(a, "elOutY-300", L)), Object.keys(r).length !== 0 && (L = this.parseObj(r, "elOutY", L)), Object.keys(O).length !== 0 && (L = this.parseObj(O, "elInY", L)), Object.keys(
|
|
603
|
+
Object.keys(T).length !== 0 && (L = this.parseObj(T, "elInY", L)), Object.keys(C).length !== 0 && (L = this.parseObj(C, "elInY+50", L)), Object.keys(k).length !== 0 && (L = this.parseObj(k, "elInY+100", L)), Object.keys(y).length !== 0 && (L = this.parseObj(y, "elInY+150", L)), Object.keys(f).length !== 0 && (L = this.parseObj(f, "elInY+200", L)), Object.keys(_).length !== 0 && (L = this.parseObj(_, "elInY+250", L)), Object.keys(v).length !== 0 && (L = this.parseObj(v, "elInY+300", L)), Object.keys(m).length !== 0 && (L = this.parseObj(m, "elInY+350", L)), Object.keys(x).length !== 0 && (L = this.parseObj(x, "elInY+400", L)), Object.keys(b).length !== 0 && (L = this.parseObj(b, "elInY+450", L)), Object.keys(S).length !== 0 && (L = this.parseObj(S, "elInY+500", L)), Object.keys(w).length !== 0 && (L = this.parseObj(w, "elInY+550", L)), Object.keys(g).length !== 0 && (L = this.parseObj(g, "elInY+600", L)), Object.keys(p).length !== 0 && (L = this.parseObj(p, "elInY+650", L)), Object.keys(h).length !== 0 && (L = this.parseObj(h, "elCenterY-300", L)), Object.keys(o).length !== 0 && (L = this.parseObj(o, "elCenterY", L)), Object.keys(u).length !== 0 && (L = this.parseObj(u, "elCenterY+100", L)), Object.keys(c).length !== 0 && (L = this.parseObj(c, "elCenterY+200", L)), Object.keys(l).length !== 0 && (L = this.parseObj(l, "elCenterY+300", L)), Object.keys(a).length !== 0 && (L = this.parseObj(a, "elOutY-300", L)), Object.keys(r).length !== 0 && (L = this.parseObj(r, "elOutY", L)), Object.keys(O).length !== 0 && (L = this.parseObj(O, "elInY", L)), Object.keys(q).length !== 0 && (L = this.parseObj(q, "elInY+150", L)), Object.keys(B).length !== 0 && (L = this.parseObj(B, "elInY+300 ", L)), Object.keys(P).length !== 0 && (L = this.parseObj(P, "elCenterY-150", L)), Object.keys(D).length !== 0 && (L = this.parseObj(D, "elCenterY", L)), Object.keys(M).length !== 0 && (L = this.parseObj(M, "elCenterY+150", L)), Object.keys(R).length !== 0 && (L = this.parseObj(R, "elOutY-300 ", L)), Object.keys(I).length !== 0 && (L = this.parseObj(I, "elOutY-150 ", L)), Object.keys(E).length !== 0 && (L = this.parseObj(E, "elOutY", L)), Object.keys(J).length !== 0 && (L = this.parseObj(J, "elInY-200", L)), Object.keys(Y).length !== 0 && (L = this.parseObj(Y, "elInY-100", L)), Object.keys(ee).length !== 0 && (L = this.parseObj(ee, "elInY", L)), Object.keys(K).length !== 0 && (L = this.parseObj(K, "elInY+100", L)), Object.keys(he).length !== 0 && (L = this.parseObj(he, "elInY+200", L)), Object.keys(Ee).length !== 0 && (L = this.parseObj(Ee, "elInY+300 ", L)), Object.keys(me).length !== 0 && (L = this.parseObj(me, "elInY+400 ", L)), Object.keys(Te).length !== 0 && (L = this.parseObj(Te, "elInY+500 ", L)), Object.keys(ye).length !== 0 && (L = this.parseObj(ye, "elInY+600 ", L)), Object.keys(re).length !== 0 && (L = this.parseObj(re, "elInY+700 ", L)), Object.keys(N).length !== 0 && (L = this.parseObj(N, "elInY+800 ", L)), Object.keys(G).length !== 0 && (L = this.parseObj(G, "elInY+900 ", L)), Object.keys(ie).length !== 0 && (L = this.parseObj(ie, "elInY+1000 ", L)), Object.keys(ce).length !== 0 && (L = this.parseObj(ce, "elInY+1100 ", L)), Object.keys(fe).length !== 0 && (L = this.parseObj(fe, "elInY+1200 ", L)), Object.keys(le).length !== 0 && (L = this.parseObj(le, "elInY+1300 ", L)), Object.keys(se).length !== 0 && (L = this.parseObj(se, "elInY+1400 ", L)), Object.keys(te).length !== 0 && (L = this.parseObj(te, "elInY+1500 ", L)), Object.keys(F).length !== 0 && (L = this.parseObj(F, "elInY+1600 ", L)), Object.keys(Se).length !== 0 && (L = this.parseObj(Se, "elInY+1700 ", L)), Object.keys(pe).length !== 0 && (L = this.parseObj(pe, "elInY+1800 ", L)), Object.keys(Me).length !== 0 && (L = this.parseObj(Me, "elInY+1900 ", L)), Object.keys(ne).length !== 0 && (L = this.parseObj(ne, "elInY+2000 ", L)), Object.keys(Pe).length !== 0 && (L = this.parseObj(Pe, "elInY+2100 ", L)), Object.keys(Ce).length !== 0 && (L = this.parseObj(Ce, "elInY+2200 ", L)), Object.keys(De).length !== 0 && (L = this.parseObj(De, "elInY+2300 ", L)), Object.keys(Ue).length !== 0 && (L = this.parseObj(Ue, "elInY+2400 ", L)), Object.keys(Fe).length !== 0 && (L = this.parseObj(Fe, "elInY+2500 ", L)), Object.keys(A).length !== 0 && (L = this.parseObj(A, "elInY+2600 ", L)), Object.keys(j).length !== 0 && (L = this.parseObj(j, "elInY+2700 ", L)), Object.keys(z).length !== 0 && (L = this.parseObj(z, "elInY+2800 ", L)), Object.keys(V).length !== 0 && (L = this.parseObj(V, "elInY+2900 ", L)), Object.keys(Q).length !== 0 && (L = this.parseObj(Q, "elInY+3000 ", L)), i.style.transition = "", i.setAttribute("data-dummy-selector", "1"), lt.addElements("[data-dummy-selector]", {
|
|
604
604
|
scrollY: L
|
|
605
605
|
}), this.elements.push(document.querySelector("[data-dummy-selector]")), i.removeAttribute("data-dummy-selector"), setTimeout(() => {
|
|
606
606
|
i.style.opacity = 1, i.getAttribute("data-smooth-scrolling") === "off" || this.settings.transition && (i.style.transition = this.settings.transition);
|
|
@@ -694,9 +694,9 @@ function mi() {
|
|
|
694
694
|
*
|
|
695
695
|
* Date: 2013-04-10
|
|
696
696
|
*/
|
|
697
|
-
var si,
|
|
697
|
+
var si, Ri;
|
|
698
698
|
function Ls() {
|
|
699
|
-
return
|
|
699
|
+
return Ri || (Ri = 1, si = function d(e, t) {
|
|
700
700
|
return e == null || t == null || Object.keys(t).forEach(function(s) {
|
|
701
701
|
Object.prototype.toString.call(t[s]) == "[object Object]" ? Object.prototype.toString.call(e[s]) != "[object Object]" ? e[s] = t[s] : e[s] = d(e[s], t[s]) : e[s] = t[s];
|
|
702
702
|
}), e;
|
|
@@ -712,10 +712,10 @@ Array.prototype.each = function(d) {
|
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
714
|
typeof window < "u" && typeof NodeList < "u" && (NodeList.prototype.each = Array.prototype.each, NodeList.prototype.filter = Array.prototype.filter);
|
|
715
|
-
function
|
|
715
|
+
function Rt(d) {
|
|
716
716
|
return Number(d) === d && d % 1 === 0;
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function qt(d) {
|
|
719
719
|
return Number(d) === d && d % 1 !== 0;
|
|
720
720
|
}
|
|
721
721
|
let $t = class {
|
|
@@ -764,7 +764,7 @@ let $t = class {
|
|
|
764
764
|
*/
|
|
765
765
|
_getElementOffset(e, t) {
|
|
766
766
|
let s = { x: 0, y: 0 };
|
|
767
|
-
return typeof this.offset.element.x == "function" ? s.x = e.width * this.offset.element.x(this, e, t) :
|
|
767
|
+
return typeof this.offset.element.x == "function" ? s.x = e.width * this.offset.element.x(this, e, t) : qt(this.offset.element.x) ? s.x = e.width * this.offset.element.x : Rt(this.offset.element.x) && (s.x = this.offset.element.x), typeof this.offset.element.y == "function" ? s.y = e.height * this.offset.element.y(this, e, t) : qt(this.offset.element.y) ? s.y = e.height * this.offset.element.y : Rt(this.offset.element.y) && (s.y = this.offset.element.y), s;
|
|
768
768
|
}
|
|
769
769
|
/**
|
|
770
770
|
* Get the calculated offset to place on the viewport
|
|
@@ -775,7 +775,7 @@ let $t = class {
|
|
|
775
775
|
*/
|
|
776
776
|
_getViewportOffset(e, t) {
|
|
777
777
|
let s = { x: 0, y: 0 };
|
|
778
|
-
return typeof this.offset.viewport.x == "function" ? s.x = e.w * this.offset.viewport.x(this, e, t) :
|
|
778
|
+
return typeof this.offset.viewport.x == "function" ? s.x = e.w * this.offset.viewport.x(this, e, t) : qt(this.offset.viewport.x) ? s.x = e.w * this.offset.viewport.x : Rt(this.offset.viewport.x) && (s.x = this.offset.viewport.x), typeof this.offset.viewport.y == "function" ? s.y = e.h * this.offset.viewport.y(this, e, t) : qt(this.offset.viewport.y) ? s.y = e.h * this.offset.viewport.y : Rt(this.offset.viewport.y) && (s.y = this.offset.viewport.y), s;
|
|
779
779
|
}
|
|
780
780
|
/**
|
|
781
781
|
* Check the visibility of the trigger in the viewport, with offsets applied
|
|
@@ -986,8 +986,8 @@ let $t = class {
|
|
|
986
986
|
*
|
|
987
987
|
* Date: 2017-07-09
|
|
988
988
|
*/
|
|
989
|
-
const ct = $t, Ms = As,
|
|
990
|
-
class
|
|
989
|
+
const ct = $t, Ms = As, Rs = Os;
|
|
990
|
+
class qs {
|
|
991
991
|
/**
|
|
992
992
|
* Constructor for the scroll trigger
|
|
993
993
|
* @param {DefaultOptions} [options=DefaultOptions] options
|
|
@@ -1017,7 +1017,7 @@ class Rs {
|
|
|
1017
1017
|
* @private
|
|
1018
1018
|
*/
|
|
1019
1019
|
_initLoop() {
|
|
1020
|
-
this.loop = new
|
|
1020
|
+
this.loop = new Rs({
|
|
1021
1021
|
sustain: this.scrollOptions.sustain,
|
|
1022
1022
|
element: this.scrollOptions.element,
|
|
1023
1023
|
callback: (e, t) => {
|
|
@@ -1134,7 +1134,7 @@ class Rs {
|
|
|
1134
1134
|
this.loop.kill(), this.loop = null;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
|
-
const
|
|
1137
|
+
const qi = Date.now();
|
|
1138
1138
|
function et() {
|
|
1139
1139
|
let d = {}, e = !0, t = 0, s = arguments.length;
|
|
1140
1140
|
Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (e = arguments[0], t++);
|
|
@@ -1162,7 +1162,7 @@ function Oe(d, e) {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
function Ii(d, e = null, t = null) {
|
|
1165
|
-
const s = d[
|
|
1165
|
+
const s = d[qi] = d[qi] || [], i = { all: s, evt: null, found: null };
|
|
1166
1166
|
return e && t && rs(s) > 0 && Oe(s, (n, r) => {
|
|
1167
1167
|
if (n.eventName == e && n.fn.toString() == t.toString())
|
|
1168
1168
|
return i.found = !0, i.evt = r, !1;
|
|
@@ -1193,7 +1193,7 @@ function je(d, e) {
|
|
|
1193
1193
|
function Ve(d, e) {
|
|
1194
1194
|
return d.classList.contains(e);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Ke(d, e) {
|
|
1197
1197
|
for (; d !== document.body; ) {
|
|
1198
1198
|
if (d = d.parentElement, !d)
|
|
1199
1199
|
return !1;
|
|
@@ -1550,7 +1550,7 @@ class Us {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
function ri(d) {
|
|
1552
1552
|
const e = js(), t = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
1553
|
-
let s = Ve(d, "gslide-media") ? d : d.querySelector(".gslide-media"), i =
|
|
1553
|
+
let s = Ve(d, "gslide-media") ? d : d.querySelector(".gslide-media"), i = Ke(s, ".ginner-container"), n = d.querySelector(".gslide-description");
|
|
1554
1554
|
t > 769 && (s = i), ae(s, "greset"), Ht(s, "translate3d(0, 0, 0)"), Xe(e, {
|
|
1555
1555
|
onElement: s,
|
|
1556
1556
|
once: !0,
|
|
@@ -1562,11 +1562,11 @@ function ri(d) {
|
|
|
1562
1562
|
function Fs(d) {
|
|
1563
1563
|
if (d.events.hasOwnProperty("touch"))
|
|
1564
1564
|
return !1;
|
|
1565
|
-
let e = ss(), t = e.width, s = e.height, i = !1, n = null, r = null, a = null, l = !1, c = 1, u = 4.5, o = 1, h = !1, p = !1, g = null, w = null, S = null, b = null, x, m, v = 0, _ = 0, f = !1, y = !1, k = {}, C = {}, T = 0, O = 0,
|
|
1565
|
+
let e = ss(), t = e.width, s = e.height, i = !1, n = null, r = null, a = null, l = !1, c = 1, u = 4.5, o = 1, h = !1, p = !1, g = null, w = null, S = null, b = null, x, m, v = 0, _ = 0, f = !1, y = !1, k = {}, C = {}, T = 0, O = 0, q;
|
|
1566
1566
|
const B = document.getElementById("glightbox-slider"), P = document.querySelector(".goverlay"), D = new Us(B, {
|
|
1567
1567
|
touchStart: (M) => {
|
|
1568
|
-
if (i = !0, (Ve(M.targetTouches[0].target, "ginner-container") ||
|
|
1569
|
-
if (C = M.targetTouches[0], k.pageX = M.targetTouches[0].pageX, k.pageY = M.targetTouches[0].pageY, T = M.targetTouches[0].clientX, O = M.targetTouches[0].clientY, n = d.activeSlide, r = n.querySelector(".gslide-media"),
|
|
1568
|
+
if (i = !0, (Ve(M.targetTouches[0].target, "ginner-container") || Ke(M.targetTouches[0].target, ".gslide-desc") || M.targetTouches[0].target.nodeName.toLowerCase() == "a") && (i = !1), Ke(M.targetTouches[0].target, ".gslide-inline") && !Ve(M.targetTouches[0].target.parentNode, "gslide-inline") && (i = !1), i) {
|
|
1569
|
+
if (C = M.targetTouches[0], k.pageX = M.targetTouches[0].pageX, k.pageY = M.targetTouches[0].pageY, T = M.targetTouches[0].clientX, O = M.targetTouches[0].clientY, n = d.activeSlide, r = n.querySelector(".gslide-media"), q = n.querySelector(".gslide-inline"), a = null, Ve(r, "gslide-image") && (a = r.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (r = n.querySelector(".ginner-container")), je(P, "greset"), M.pageX > 20 && M.pageX < window.innerWidth - 20)
|
|
1570
1570
|
return;
|
|
1571
1571
|
M.preventDefault();
|
|
1572
1572
|
}
|
|
@@ -1574,13 +1574,13 @@ function Fs(d) {
|
|
|
1574
1574
|
touchMove: (M) => {
|
|
1575
1575
|
if (!i || (C = M.targetTouches[0], h || p))
|
|
1576
1576
|
return;
|
|
1577
|
-
if (
|
|
1577
|
+
if (q && q.offsetHeight > s) {
|
|
1578
1578
|
const U = k.pageX - C.pageX;
|
|
1579
1579
|
if (Math.abs(U) <= 13)
|
|
1580
1580
|
return !1;
|
|
1581
1581
|
}
|
|
1582
1582
|
l = !0;
|
|
1583
|
-
let
|
|
1583
|
+
let R = M.targetTouches[0].clientX, I = M.targetTouches[0].clientY, E = T - R, $ = O - I;
|
|
1584
1584
|
Math.abs(E) > Math.abs($) ? (f = !1, y = !0) : (y = !1, f = !0), x = C.pageX - k.pageX, v = x * 100 / t, m = C.pageY - k.pageY, _ = m * 100 / s;
|
|
1585
1585
|
let H;
|
|
1586
1586
|
if (f && a && (H = 1 - Math.abs(m) / s, P.style.opacity = H, d.settings.touchFollowAxis && (v = 0)), y && (H = 1 - Math.abs(x) / t, r.style.opacity = H, d.settings.touchFollowAxis && (_ = 0)), !a)
|
|
@@ -1594,12 +1594,12 @@ function Fs(d) {
|
|
|
1594
1594
|
S = g, b = w;
|
|
1595
1595
|
return;
|
|
1596
1596
|
}
|
|
1597
|
-
const M = Math.abs(parseInt(_)),
|
|
1597
|
+
const M = Math.abs(parseInt(_)), R = Math.abs(parseInt(v));
|
|
1598
1598
|
if (M > 29 && a) {
|
|
1599
1599
|
d.close();
|
|
1600
1600
|
return;
|
|
1601
1601
|
}
|
|
1602
|
-
if (M < 29 &&
|
|
1602
|
+
if (M < 29 && R < 25)
|
|
1603
1603
|
return ae(P, "greset"), P.style.opacity = 1, ri(r);
|
|
1604
1604
|
},
|
|
1605
1605
|
multipointEnd: () => {
|
|
@@ -1614,18 +1614,18 @@ function Fs(d) {
|
|
|
1614
1614
|
if (!a || l)
|
|
1615
1615
|
return !1;
|
|
1616
1616
|
h = !0, a.scaleX = a.scaleY = c * M.zoom;
|
|
1617
|
-
let
|
|
1618
|
-
if (p = !0,
|
|
1619
|
-
p = !1,
|
|
1617
|
+
let R = c * M.zoom;
|
|
1618
|
+
if (p = !0, R <= 1) {
|
|
1619
|
+
p = !1, R = 1, b = null, S = null, g = null, w = null, a.setAttribute("style", "");
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
|
-
|
|
1622
|
+
R > u && (R = u), a.style.transform = `scale3d(${R}, ${R}, 1)`, o = R;
|
|
1623
1623
|
},
|
|
1624
1624
|
pressMove: (M) => {
|
|
1625
1625
|
if (p && !h) {
|
|
1626
|
-
var
|
|
1627
|
-
S && (
|
|
1628
|
-
let E = `translate3d(${
|
|
1626
|
+
var R = C.pageX - k.pageX, I = C.pageY - k.pageY;
|
|
1627
|
+
S && (R = R + S), b && (I = I + b), g = R, w = I;
|
|
1628
|
+
let E = `translate3d(${R}px, ${I}px, 0)`;
|
|
1629
1629
|
o && (E += ` scale3d(${o}, ${o}, 1)`), Ht(a, E);
|
|
1630
1630
|
}
|
|
1631
1631
|
},
|
|
@@ -1720,11 +1720,11 @@ class $i {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
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);
|
|
1722
1722
|
let t = e.target.nodeName.toLowerCase(), s = ["input", "select", "textarea", "button", "a"];
|
|
1723
|
-
if (e.target.classList.contains("nodrag") ||
|
|
1723
|
+
if (e.target.classList.contains("nodrag") || Ke(e.target, ".nodrag") || s.indexOf(t) !== -1) {
|
|
1724
1724
|
this.active = !1;
|
|
1725
1725
|
return;
|
|
1726
1726
|
}
|
|
1727
|
-
e.preventDefault(), (e.target === this.el || t !== "img" &&
|
|
1727
|
+
e.preventDefault(), (e.target === this.el || t !== "img" && Ke(e.target, ".gslide-inline")) && (this.active = !0, this.el.classList.add("dragging"), this.dragContainer = Ke(e.target, ".ginner-container"));
|
|
1728
1728
|
}
|
|
1729
1729
|
dragEnd(e) {
|
|
1730
1730
|
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(() => {
|
|
@@ -1800,7 +1800,7 @@ function Gs(d, e, t, s) {
|
|
|
1800
1800
|
});
|
|
1801
1801
|
}
|
|
1802
1802
|
function Hi(d) {
|
|
1803
|
-
const e =
|
|
1803
|
+
const e = Ke(d.target, ".gslide-media");
|
|
1804
1804
|
d.type === "enterfullscreen" && ae(e, "fullscreen"), d.type === "exitfullscreen" && je(e, "fullscreen");
|
|
1805
1805
|
}
|
|
1806
1806
|
function Xs(d, e, t, s) {
|
|
@@ -2026,12 +2026,12 @@ class It {
|
|
|
2026
2026
|
withCallback: (i, n) => {
|
|
2027
2027
|
i.preventDefault();
|
|
2028
2028
|
const r = document.body;
|
|
2029
|
-
let a =
|
|
2029
|
+
let a = Ke(n, ".gslide-desc");
|
|
2030
2030
|
if (!a)
|
|
2031
2031
|
return !1;
|
|
2032
2032
|
a.innerHTML = t.description, ae(r, "gdesc-open");
|
|
2033
2033
|
let l = Xe("click", {
|
|
2034
|
-
onElement: [r,
|
|
2034
|
+
onElement: [r, Ke(a, ".gslide-description")],
|
|
2035
2035
|
withCallback: (c, u) => {
|
|
2036
2036
|
c.target.nodeName.toLowerCase() !== "a" && (je(r, "gdesc-open"), ae(r, "gdesc-closed"), a.innerHTML = t.smallDescription, this.descriptionEvents(a, t), setTimeout(() => {
|
|
2037
2037
|
je(r, "gdesc-closed");
|
|
@@ -2064,7 +2064,7 @@ class It {
|
|
|
2064
2064
|
return this.slideConfig = e.parseConfig(this.element, this.instance.settings), this.slideConfig;
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
|
-
const
|
|
2067
|
+
const Ks = "3.2.0", zi = bi(), Vi = Ps();
|
|
2068
2068
|
let oi;
|
|
2069
2069
|
typeof document > "u" || (oi = document.getElementsByTagName("html")[0]);
|
|
2070
2070
|
const yi = {
|
|
@@ -2636,7 +2636,7 @@ class Bi {
|
|
|
2636
2636
|
})), this.settings.closeOnOutsideClick && (this.events.outClose = Xe("click", {
|
|
2637
2637
|
onElement: a,
|
|
2638
2638
|
withCallback: (c, u) => {
|
|
2639
|
-
!this.preventOutsideClick && !Ve(document.body, "glightbox-mobile") && !
|
|
2639
|
+
!this.preventOutsideClick && !Ve(document.body, "glightbox-mobile") && !Ke(c.target, ".ginner-container") && !Ke(c.target, ".gbtn") && !Ve(c.target, "gnext") && !Ve(c.target, "gprev") && this.close();
|
|
2640
2640
|
}
|
|
2641
2641
|
})), Oe(this.elements, (c, u) => {
|
|
2642
2642
|
this.slidesContainer.appendChild(c.instance.create()), c.slideNode = this.slidesContainer.querySelectorAll(".gslide")[u];
|
|
@@ -2784,10 +2784,10 @@ class Bi {
|
|
|
2784
2784
|
* Get Version
|
|
2785
2785
|
*/
|
|
2786
2786
|
version() {
|
|
2787
|
-
return
|
|
2787
|
+
return Ks;
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
|
-
class
|
|
2790
|
+
class Qs {
|
|
2791
2791
|
constructor(e = {}) {
|
|
2792
2792
|
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.keyboardSupport = e.keyboardSupport ?? !0, this.arrowScroll = e.arrowScroll ?? 50, this.fixedBackground = e.fixedBackground ?? !1, this.queue = [], this.pending = !1, this.lastScrollTime = Date.now(), this.direction = { x: 0, y: 0 }, this.activeElement = null, this.deltaBuffer = [], this.deltaBufferTimer = null, this.isMac = /^Mac/.test(navigator.platform), this.scrollBehaviorCache = /* @__PURE__ */ new WeakMap(), this.pulseNormalize = 1 / this._pulseRaw(1), this._init();
|
|
2793
2793
|
}
|
|
@@ -2978,7 +2978,7 @@ function en(d, e) {
|
|
|
2978
2978
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(d, s.key, s);
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
|
-
function
|
|
2981
|
+
function Kt(d, e, t) {
|
|
2982
2982
|
return e && en(d.prototype, e), d;
|
|
2983
2983
|
}
|
|
2984
2984
|
function tn(d, e, t) {
|
|
@@ -3319,7 +3319,7 @@ var pn = /* @__PURE__ */ (function() {
|
|
|
3319
3319
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3320
3320
|
Zt(this, d), this.events = e, this.hop = e.hasOwnProperty;
|
|
3321
3321
|
}
|
|
3322
|
-
return
|
|
3322
|
+
return Kt(d, [{
|
|
3323
3323
|
key: "on",
|
|
3324
3324
|
value: function(t, s) {
|
|
3325
3325
|
if (ui(t)) {
|
|
@@ -3359,7 +3359,7 @@ var pn = /* @__PURE__ */ (function() {
|
|
|
3359
3359
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3360
3360
|
Zt(this, d), this._c = {}, this._t = [], this._e = new pn(), this.disabled = !1, this.selector = e, this.settings = di(cn, t), this.index = this.settings.startAt;
|
|
3361
3361
|
}
|
|
3362
|
-
return
|
|
3362
|
+
return Kt(d, [{
|
|
3363
3363
|
key: "mount",
|
|
3364
3364
|
value: function() {
|
|
3365
3365
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -3700,7 +3700,7 @@ function gn(d, e, t) {
|
|
|
3700
3700
|
function Yi() {
|
|
3701
3701
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3702
3702
|
}
|
|
3703
|
-
function
|
|
3703
|
+
function Qt(d, e) {
|
|
3704
3704
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, i, n, r, a = 0, l = function() {
|
|
3705
3705
|
a = t.leading === !1 ? 0 : Yi(), s = null, r = d.apply(i, n), s || (i = n = null);
|
|
3706
3706
|
}, c = function() {
|
|
@@ -3775,7 +3775,7 @@ function mn(d, e, t) {
|
|
|
3775
3775
|
var n = d.settings.perView;
|
|
3776
3776
|
return s.value * (n - 1) / n;
|
|
3777
3777
|
}
|
|
3778
|
-
}), t.on(["build.after", "update"],
|
|
3778
|
+
}), t.on(["build.after", "update"], Qt(function() {
|
|
3779
3779
|
s.apply(e.Html.wrapper.children);
|
|
3780
3780
|
}, 30)), t.on("destroy", function() {
|
|
3781
3781
|
s.remove(e.Html.wrapper.children);
|
|
@@ -4164,7 +4164,7 @@ var st = /* @__PURE__ */ (function() {
|
|
|
4164
4164
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4165
4165
|
Zt(this, d), this.listeners = e;
|
|
4166
4166
|
}
|
|
4167
|
-
return
|
|
4167
|
+
return Kt(d, [{
|
|
4168
4168
|
key: "on",
|
|
4169
4169
|
value: function(t, s, i) {
|
|
4170
4170
|
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
@@ -4215,7 +4215,7 @@ function Sn(d, e, t) {
|
|
|
4215
4215
|
* @return {Void}
|
|
4216
4216
|
*/
|
|
4217
4217
|
bind: function() {
|
|
4218
|
-
s.on("resize", window,
|
|
4218
|
+
s.on("resize", window, Qt(function() {
|
|
4219
4219
|
t.emit("resize");
|
|
4220
4220
|
}, d.settings.throttle));
|
|
4221
4221
|
},
|
|
@@ -4366,7 +4366,7 @@ function Mn(d, e) {
|
|
|
4366
4366
|
}
|
|
4367
4367
|
};
|
|
4368
4368
|
}
|
|
4369
|
-
function
|
|
4369
|
+
function Rn(d, e) {
|
|
4370
4370
|
return {
|
|
4371
4371
|
/**
|
|
4372
4372
|
* Modifies passed translate value with index in the `focusAt` setting.
|
|
@@ -4380,8 +4380,8 @@ function qn(d, e) {
|
|
|
4380
4380
|
}
|
|
4381
4381
|
};
|
|
4382
4382
|
}
|
|
4383
|
-
function
|
|
4384
|
-
var s = [An, On, Mn,
|
|
4383
|
+
function qn(d, e, t) {
|
|
4384
|
+
var s = [An, On, Mn, Rn].concat(d._t, [Cn]);
|
|
4385
4385
|
return {
|
|
4386
4386
|
/**
|
|
4387
4387
|
* Piplines translate value with registered transformers.
|
|
@@ -4407,7 +4407,7 @@ function In(d, e, t) {
|
|
|
4407
4407
|
* @return {Void}
|
|
4408
4408
|
*/
|
|
4409
4409
|
set: function(n) {
|
|
4410
|
-
var r =
|
|
4410
|
+
var r = qn(d, e).mutate(n), a = "translate3d(".concat(-1 * r, "px, 0px, 0px)");
|
|
4411
4411
|
e.Html.wrapper.style.mozTransform = a, e.Html.wrapper.style.webkitTransform = a, e.Html.wrapper.style.transform = a;
|
|
4412
4412
|
},
|
|
4413
4413
|
/**
|
|
@@ -4614,7 +4614,7 @@ function Nn(d, e, t) {
|
|
|
4614
4614
|
*/
|
|
4615
4615
|
bindSwipeMove: function() {
|
|
4616
4616
|
var o = this;
|
|
4617
|
-
s.on(Gi, e.Html.wrapper,
|
|
4617
|
+
s.on(Gi, e.Html.wrapper, Qt(function(h) {
|
|
4618
4618
|
o.move(h);
|
|
4619
4619
|
}, d.settings.throttle), l);
|
|
4620
4620
|
},
|
|
@@ -5131,7 +5131,7 @@ function Fn(d, e, t) {
|
|
|
5131
5131
|
return r;
|
|
5132
5132
|
}
|
|
5133
5133
|
};
|
|
5134
|
-
return Object.assign(i, a.match(n)), s.on("resize", window,
|
|
5134
|
+
return Object.assign(i, a.match(n)), s.on("resize", window, Qt(function() {
|
|
5135
5135
|
d.settings = di(i, a.match(n));
|
|
5136
5136
|
}, d.settings.throttle)), t.on("update", function() {
|
|
5137
5137
|
n = Zi(n), r = Object.assign({}, i);
|
|
@@ -5167,7 +5167,7 @@ var Yn = {
|
|
|
5167
5167
|
function t() {
|
|
5168
5168
|
return Zt(this, t), e.apply(this, arguments);
|
|
5169
5169
|
}
|
|
5170
|
-
return
|
|
5170
|
+
return Kt(t, [{
|
|
5171
5171
|
key: "mount",
|
|
5172
5172
|
value: function() {
|
|
5173
5173
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -5262,7 +5262,7 @@ const Be = {
|
|
|
5262
5262
|
fencesBeginRegex: (d) => new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`),
|
|
5263
5263
|
headingBeginRegex: (d) => new RegExp(`^ {0,${Math.min(3, d - 1)}}#`),
|
|
5264
5264
|
htmlBeginRegex: (d) => new RegExp(`^ {0,${Math.min(3, d - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
5265
|
-
}, Gn = /^(?:[ \t]*(?:\n|$))+/, Xn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Jn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, yt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Zn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, xi = /(?:[*+-]|\d{1,9}[.)])/, us = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ds = de(us).replace(/bull/g, xi).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(),
|
|
5265
|
+
}, Gn = /^(?:[ \t]*(?:\n|$))+/, Xn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Jn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, yt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Zn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, xi = /(?:[*+-]|\d{1,9}[.)])/, us = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ds = de(us).replace(/bull/g, xi).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Kn = de(us).replace(/bull/g, xi).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), _i = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Qn = /^[^\n]+/, ki = /(?!\s*\])(?:\\.|[^\[\]\\])+/, er = de(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ki).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), tr = de(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, xi).getRegex(), ei = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Si = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ir = de("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Si).replace("tag", ei).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), hs = de(_i).replace("hr", yt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ei).getRegex(), sr = de(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", hs).getRegex(), Ei = {
|
|
5266
5266
|
blockquote: sr,
|
|
5267
5267
|
code: Xn,
|
|
5268
5268
|
def: er,
|
|
@@ -5275,12 +5275,12 @@ const Be = {
|
|
|
5275
5275
|
newline: Gn,
|
|
5276
5276
|
paragraph: hs,
|
|
5277
5277
|
table: bt,
|
|
5278
|
-
text:
|
|
5279
|
-
},
|
|
5278
|
+
text: Qn
|
|
5279
|
+
}, Ki = de("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", yt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ei).getRegex(), nr = {
|
|
5280
5280
|
...Ei,
|
|
5281
|
-
lheading:
|
|
5282
|
-
table:
|
|
5283
|
-
paragraph: de(_i).replace("hr", yt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table",
|
|
5281
|
+
lheading: Kn,
|
|
5282
|
+
table: Ki,
|
|
5283
|
+
paragraph: de(_i).replace("hr", yt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ki).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ei).getRegex()
|
|
5284
5284
|
}, rr = {
|
|
5285
5285
|
...Ei,
|
|
5286
5286
|
html: de(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Si).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
@@ -5343,13 +5343,13 @@ const Be = {
|
|
|
5343
5343
|
">": ">",
|
|
5344
5344
|
'"': """,
|
|
5345
5345
|
"'": "'"
|
|
5346
|
-
},
|
|
5347
|
-
function
|
|
5346
|
+
}, Qi = (d) => Tr[d];
|
|
5347
|
+
function Qe(d, e) {
|
|
5348
5348
|
if (e) {
|
|
5349
5349
|
if (Be.escapeTest.test(d))
|
|
5350
|
-
return d.replace(Be.escapeReplace,
|
|
5350
|
+
return d.replace(Be.escapeReplace, Qi);
|
|
5351
5351
|
} else if (Be.escapeTestNoEncode.test(d))
|
|
5352
|
-
return d.replace(Be.escapeReplaceNoEncode,
|
|
5352
|
+
return d.replace(Be.escapeReplaceNoEncode, Qi);
|
|
5353
5353
|
return d;
|
|
5354
5354
|
}
|
|
5355
5355
|
function es(d) {
|
|
@@ -6168,8 +6168,8 @@ class Jt {
|
|
|
6168
6168
|
code({ text: e, lang: t, escaped: s }) {
|
|
6169
6169
|
const i = (t || "").match(Be.notSpaceStart)?.[0], n = e.replace(Be.endingNewline, "") + `
|
|
6170
6170
|
`;
|
|
6171
|
-
return i ? '<pre><code class="language-' +
|
|
6172
|
-
` : "<pre><code>" + (s ? n :
|
|
6171
|
+
return i ? '<pre><code class="language-' + Qe(i) + '">' + (s ? n : Qe(n, !0)) + `</code></pre>
|
|
6172
|
+
` : "<pre><code>" + (s ? n : Qe(n, !0)) + `</code></pre>
|
|
6173
6173
|
`;
|
|
6174
6174
|
}
|
|
6175
6175
|
blockquote({ tokens: e }) {
|
|
@@ -6204,7 +6204,7 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
6204
6204
|
let t = "";
|
|
6205
6205
|
if (e.task) {
|
|
6206
6206
|
const s = this.checkbox({ checked: !!e.checked });
|
|
6207
|
-
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = s + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = s + " " +
|
|
6207
|
+
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = s + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = s + " " + Qe(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
|
|
6208
6208
|
type: "text",
|
|
6209
6209
|
raw: s + " ",
|
|
6210
6210
|
text: s + " ",
|
|
@@ -6260,7 +6260,7 @@ ${e}</tr>
|
|
|
6260
6260
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
6261
6261
|
}
|
|
6262
6262
|
codespan({ text: e }) {
|
|
6263
|
-
return `<code>${
|
|
6263
|
+
return `<code>${Qe(e, !0)}</code>`;
|
|
6264
6264
|
}
|
|
6265
6265
|
br(e) {
|
|
6266
6266
|
return "<br>";
|
|
@@ -6274,19 +6274,19 @@ ${e}</tr>
|
|
|
6274
6274
|
return i;
|
|
6275
6275
|
e = n;
|
|
6276
6276
|
let r = '<a href="' + e + '"';
|
|
6277
|
-
return t && (r += ' title="' +
|
|
6277
|
+
return t && (r += ' title="' + Qe(t) + '"'), r += ">" + i + "</a>", r;
|
|
6278
6278
|
}
|
|
6279
6279
|
image({ href: e, title: t, text: s, tokens: i }) {
|
|
6280
6280
|
i && (s = this.parser.parseInline(i, this.parser.textRenderer));
|
|
6281
6281
|
const n = es(e);
|
|
6282
6282
|
if (n === null)
|
|
6283
|
-
return
|
|
6283
|
+
return Qe(s);
|
|
6284
6284
|
e = n;
|
|
6285
6285
|
let r = `<img src="${e}" alt="${s}"`;
|
|
6286
|
-
return t && (r += ` title="${
|
|
6286
|
+
return t && (r += ` title="${Qe(t)}"`), r += ">", r;
|
|
6287
6287
|
}
|
|
6288
6288
|
text(e) {
|
|
6289
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
6289
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Qe(e.text);
|
|
6290
6290
|
}
|
|
6291
6291
|
}
|
|
6292
6292
|
class Ci {
|
|
@@ -6685,7 +6685,7 @@ class Ar {
|
|
|
6685
6685
|
return (s) => {
|
|
6686
6686
|
if (s.message += `
|
|
6687
6687
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
6688
|
-
const i = "<p>An error occurred:</p><pre>" +
|
|
6688
|
+
const i = "<p>An error occurred:</p><pre>" + Qe(s.message + "", !0) + "</pre>";
|
|
6689
6689
|
return t ? Promise.resolve(i) : i;
|
|
6690
6690
|
}
|
|
6691
6691
|
if (t)
|
|
@@ -8447,7 +8447,7 @@ Check the information and return the details.
|
|
|
8447
8447
|
} = this.getDimension(x);
|
|
8448
8448
|
S = U, b = J;
|
|
8449
8449
|
}
|
|
8450
|
-
let v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, C = e.color2_blue, T = e.color3_red, O = e.color3_green,
|
|
8450
|
+
let v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, C = e.color2_blue, T = e.color3_red, O = e.color3_green, q = e.color3_blue, B = e.color4_red, P = e.color4_green, D = e.color4_blue, M = e.color5_red, R = e.color5_green, I = e.color5_blue, E = [];
|
|
8451
8451
|
v && _ && f && !(v === "0" && _ === "0" && f === "0") && E.push({
|
|
8452
8452
|
r: v,
|
|
8453
8453
|
g: _,
|
|
@@ -8456,17 +8456,17 @@ Check the information and return the details.
|
|
|
8456
8456
|
r: y,
|
|
8457
8457
|
g: k,
|
|
8458
8458
|
b: C
|
|
8459
|
-
}), T && O &&
|
|
8459
|
+
}), T && O && q && !(T === "0" && O === "0" && q === "0") && E.push({
|
|
8460
8460
|
r: T,
|
|
8461
8461
|
g: O,
|
|
8462
|
-
b:
|
|
8462
|
+
b: q
|
|
8463
8463
|
}), B && P && D && !(B === "0" && P === "0" && D === "0") && E.push({
|
|
8464
8464
|
r: B,
|
|
8465
8465
|
g: P,
|
|
8466
8466
|
b: D
|
|
8467
|
-
}), M &&
|
|
8467
|
+
}), M && R && I && !(M === "0" && R === "0" && I === "0") && E.push({
|
|
8468
8468
|
r: M,
|
|
8469
|
-
g:
|
|
8469
|
+
g: R,
|
|
8470
8470
|
b: I
|
|
8471
8471
|
});
|
|
8472
8472
|
let H = await (async () => {
|
|
@@ -8475,9 +8475,9 @@ Check the information and return the details.
|
|
|
8475
8475
|
if (Y.value instanceof FileList && Y.type === "multifile") {
|
|
8476
8476
|
const ee = Y.value;
|
|
8477
8477
|
if (ee.length > 0) {
|
|
8478
|
-
let
|
|
8478
|
+
let K = 0;
|
|
8479
8479
|
for (const he of ee) {
|
|
8480
|
-
|
|
8480
|
+
K++;
|
|
8481
8481
|
const Ee = new FormData();
|
|
8482
8482
|
Ee.append("file", he), Ee.append("customData", this.builder.settings.customData);
|
|
8483
8483
|
let me = this.builder.settings.uploadMediaUrl_Fal;
|
|
@@ -8487,7 +8487,7 @@ Check the information and return the details.
|
|
|
8487
8487
|
})).json();
|
|
8488
8488
|
if (ye.ok) {
|
|
8489
8489
|
const re = ye.url;
|
|
8490
|
-
U.push(re), this.builder.filesUploaded["file_" +
|
|
8490
|
+
U.push(re), this.builder.filesUploaded["file_" + K] = re;
|
|
8491
8491
|
}
|
|
8492
8492
|
}
|
|
8493
8493
|
}
|
|
@@ -8578,7 +8578,7 @@ Check the information and return the details.
|
|
|
8578
8578
|
};
|
|
8579
8579
|
let S = e.width || 1280, b = e.height || 768, x = e.num_images || 1;
|
|
8580
8580
|
x > 4 && (x = 4);
|
|
8581
|
-
let m = e.style || "any", v = e.style_id || this.builder.settings._2dIllustrationStyleId, _ = e.color1_red, f = e.color1_green, y = e.color1_blue, k = e.color2_red, C = e.color2_green, T = e.color2_blue, O = e.color3_red,
|
|
8581
|
+
let m = e.style || "any", v = e.style_id || this.builder.settings._2dIllustrationStyleId, _ = e.color1_red, f = e.color1_green, y = e.color1_blue, k = e.color2_red, C = e.color2_green, T = e.color2_blue, O = e.color3_red, q = e.color3_green, B = e.color3_blue, P = e.color4_red, D = e.color4_green, M = e.color4_blue, R = e.color5_red, I = e.color5_green, E = e.color5_blue, $ = [];
|
|
8582
8582
|
_ && f && y && !(_ === "0" && f === "0" && y === "0") && $.push({
|
|
8583
8583
|
r: _,
|
|
8584
8584
|
g: f,
|
|
@@ -8587,16 +8587,16 @@ Check the information and return the details.
|
|
|
8587
8587
|
r: k,
|
|
8588
8588
|
g: C,
|
|
8589
8589
|
b: T
|
|
8590
|
-
}), O &&
|
|
8590
|
+
}), O && q && B && !(O === "0" && q === "0" && B === "0") && $.push({
|
|
8591
8591
|
r: O,
|
|
8592
|
-
g:
|
|
8592
|
+
g: q,
|
|
8593
8593
|
b: B
|
|
8594
8594
|
}), P && D && M && !(P === "0" && D === "0" && M === "0") && $.push({
|
|
8595
8595
|
r: P,
|
|
8596
8596
|
g: D,
|
|
8597
8597
|
b: M
|
|
8598
|
-
}),
|
|
8599
|
-
r:
|
|
8598
|
+
}), R && I && E && !(R === "0" && I === "0" && E === "0") && $.push({
|
|
8599
|
+
r: R,
|
|
8600
8600
|
g: I,
|
|
8601
8601
|
b: E
|
|
8602
8602
|
}), n = {
|
|
@@ -8627,7 +8627,7 @@ Check the information and return the details.
|
|
|
8627
8627
|
};
|
|
8628
8628
|
let S = e.width || 1280, b = e.height || 768, x = e.num_images || 1;
|
|
8629
8629
|
x > 4 && (x = 4);
|
|
8630
|
-
let m = e.style || "digital_illustration", v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, C = e.color2_blue, T = e.color3_red, O = e.color3_green,
|
|
8630
|
+
let m = e.style || "digital_illustration", v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, C = e.color2_blue, T = e.color3_red, O = e.color3_green, q = e.color3_blue, B = e.color4_red, P = e.color4_green, D = e.color4_blue, M = e.color5_red, R = e.color5_green, I = e.color5_blue, E = [];
|
|
8631
8631
|
v && _ && f && !(v === "0" && _ === "0" && f === "0") && E.push({
|
|
8632
8632
|
r: v,
|
|
8633
8633
|
g: _,
|
|
@@ -8636,17 +8636,17 @@ Check the information and return the details.
|
|
|
8636
8636
|
r: y,
|
|
8637
8637
|
g: k,
|
|
8638
8638
|
b: C
|
|
8639
|
-
}), T && O &&
|
|
8639
|
+
}), T && O && q && !(T === "0" && O === "0" && q === "0") && E.push({
|
|
8640
8640
|
r: T,
|
|
8641
8641
|
g: O,
|
|
8642
|
-
b:
|
|
8642
|
+
b: q
|
|
8643
8643
|
}), B && P && D && !(B === "0" && P === "0" && D === "0") && E.push({
|
|
8644
8644
|
r: B,
|
|
8645
8645
|
g: P,
|
|
8646
8646
|
b: D
|
|
8647
|
-
}), M &&
|
|
8647
|
+
}), M && R && I && !(M === "0" && R === "0" && I === "0") && E.push({
|
|
8648
8648
|
r: M,
|
|
8649
|
-
g:
|
|
8649
|
+
g: R,
|
|
8650
8650
|
b: I
|
|
8651
8651
|
}), n = {
|
|
8652
8652
|
prompt: w,
|
|
@@ -8676,7 +8676,7 @@ Check the information and return the details.
|
|
|
8676
8676
|
};
|
|
8677
8677
|
let S = e.width || 1024, b = e.height || 1365, x = e.num_images || 1;
|
|
8678
8678
|
x > 4 && (x = 1);
|
|
8679
|
-
let m = "digital_illustration/cover", v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, C = e.color2_blue, T = e.color3_red, O = e.color3_green,
|
|
8679
|
+
let m = "digital_illustration/cover", v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, C = e.color2_blue, T = e.color3_red, O = e.color3_green, q = e.color3_blue, B = e.color4_red, P = e.color4_green, D = e.color4_blue, M = e.color5_red, R = e.color5_green, I = e.color5_blue, E = [];
|
|
8680
8680
|
v && _ && f && !(v === "0" && _ === "0" && f === "0") && E.push({
|
|
8681
8681
|
r: v,
|
|
8682
8682
|
g: _,
|
|
@@ -8685,17 +8685,17 @@ Check the information and return the details.
|
|
|
8685
8685
|
r: y,
|
|
8686
8686
|
g: k,
|
|
8687
8687
|
b: C
|
|
8688
|
-
}), T && O &&
|
|
8688
|
+
}), T && O && q && !(T === "0" && O === "0" && q === "0") && E.push({
|
|
8689
8689
|
r: T,
|
|
8690
8690
|
g: O,
|
|
8691
|
-
b:
|
|
8691
|
+
b: q
|
|
8692
8692
|
}), B && P && D && !(B === "0" && P === "0" && D === "0") && E.push({
|
|
8693
8693
|
r: B,
|
|
8694
8694
|
g: P,
|
|
8695
8695
|
b: D
|
|
8696
|
-
}), M &&
|
|
8696
|
+
}), M && R && I && !(M === "0" && R === "0" && I === "0") && E.push({
|
|
8697
8697
|
r: M,
|
|
8698
|
-
g:
|
|
8698
|
+
g: R,
|
|
8699
8699
|
b: I
|
|
8700
8700
|
}), n = {
|
|
8701
8701
|
prompt: w,
|
|
@@ -9474,7 +9474,7 @@ class Mr {
|
|
|
9474
9474
|
return e;
|
|
9475
9475
|
}
|
|
9476
9476
|
}
|
|
9477
|
-
class
|
|
9477
|
+
class Rr {
|
|
9478
9478
|
constructor(e, t = {}) {
|
|
9479
9479
|
const s = {
|
|
9480
9480
|
lang: []
|
|
@@ -9617,11 +9617,11 @@ class qr {
|
|
|
9617
9617
|
if (S.width = U * H, S.height = J * H, b.scale(H, H), S.style.width = `${U}px`, S.style.height = `${J}px`, C) {
|
|
9618
9618
|
const Y = document.createElement("canvas");
|
|
9619
9619
|
Y.width = C.width, Y.height = C.height, Y.getContext("2d").putImageData(C, 0, 0);
|
|
9620
|
-
const
|
|
9621
|
-
|
|
9620
|
+
const K = document.createElement("canvas");
|
|
9621
|
+
K.width = T.width, K.height = T.height, K.getContext("2d").putImageData(T, 0, 0), w.drawImage(Y, 0, 0, C.width, C.height, 0, 0, g.width, g.height), b.drawImage(K, 0, 0, T.width, T.height, 0, 0, S.width, S.height);
|
|
9622
9622
|
}
|
|
9623
9623
|
};
|
|
9624
|
-
let
|
|
9624
|
+
let q = !1, B = parseInt(l.value, 10);
|
|
9625
9625
|
l.addEventListener("input", (E) => {
|
|
9626
9626
|
B = parseInt(E.target.value, 10);
|
|
9627
9627
|
});
|
|
@@ -9639,25 +9639,25 @@ class qr {
|
|
|
9639
9639
|
y: E.clientY - $.top
|
|
9640
9640
|
};
|
|
9641
9641
|
}, D = (E) => {
|
|
9642
|
-
|
|
9642
|
+
q = !0, R(E);
|
|
9643
9643
|
}, M = () => {
|
|
9644
|
-
|
|
9645
|
-
},
|
|
9646
|
-
if (!
|
|
9644
|
+
q = !1, w.beginPath(), this.empty = !1, m(S);
|
|
9645
|
+
}, R = (E) => {
|
|
9646
|
+
if (!q) return;
|
|
9647
9647
|
const {
|
|
9648
9648
|
x: $,
|
|
9649
9649
|
y: H
|
|
9650
9650
|
} = P(E), U = S.width / g.width, J = S.height / g.height, Y = $ * U, ee = H * J;
|
|
9651
9651
|
w.fillStyle = "rgb(255, 255, 255)", w.beginPath(), w.arc($, H, B / 2, 0, Math.PI * 2), w.fill(), b.fillStyle = "rgb(255, 255, 255)", b.beginPath(), b.arc(Y, ee, B / 2 * U, 0, Math.PI * 2), b.fill();
|
|
9652
9652
|
};
|
|
9653
|
-
g.addEventListener("mousedown", D), g.addEventListener("mouseup", M), g.addEventListener("mousemove",
|
|
9653
|
+
g.addEventListener("mousedown", D), g.addEventListener("mouseup", M), g.addEventListener("mousemove", R), g.addEventListener("touchstart", (E) => {
|
|
9654
9654
|
D(E), E.preventDefault();
|
|
9655
9655
|
}, {
|
|
9656
9656
|
passive: !1
|
|
9657
9657
|
}), g.addEventListener("touchend", (E) => {
|
|
9658
9658
|
M(), E.preventDefault();
|
|
9659
9659
|
}), g.addEventListener("touchmove", (E) => {
|
|
9660
|
-
|
|
9660
|
+
R(E), E.preventDefault();
|
|
9661
9661
|
}, {
|
|
9662
9662
|
passive: !1
|
|
9663
9663
|
}), o.addEventListener("click", (E) => {
|
|
@@ -9675,7 +9675,7 @@ class qr {
|
|
|
9675
9675
|
});
|
|
9676
9676
|
}
|
|
9677
9677
|
}
|
|
9678
|
-
class
|
|
9678
|
+
class qr {
|
|
9679
9679
|
constructor(e, t = {}) {
|
|
9680
9680
|
const s = {
|
|
9681
9681
|
lang: [],
|
|
@@ -10389,11 +10389,11 @@ class Rr {
|
|
|
10389
10389
|
const _ = document.createElement("select");
|
|
10390
10390
|
_.id = `dropdown_${b}`, _.name = w, o.isRequired && _.setAttribute("required", "required"), v.appendChild(_);
|
|
10391
10391
|
const f = document.createElement("option");
|
|
10392
|
-
if (f.setAttribute("selected", "selected"), f.setAttribute("disabled", "disabled"), f.value = "", f.innerText = o.placeholder, _.appendChild(f), o.choices && o.choices.forEach((O,
|
|
10392
|
+
if (f.setAttribute("selected", "selected"), f.setAttribute("disabled", "disabled"), f.value = "", f.innerText = o.placeholder, _.appendChild(f), o.choices && o.choices.forEach((O, q) => {
|
|
10393
10393
|
let B = O;
|
|
10394
|
-
o.choicesText && (B = o.choicesText[
|
|
10394
|
+
o.choicesText && (B = o.choicesText[q] || O);
|
|
10395
10395
|
const P = document.createElement("option");
|
|
10396
|
-
P.value = O, P.innerText = B, _.appendChild(P),
|
|
10396
|
+
P.value = O, P.innerText = B, _.appendChild(P), q === o.selected && (f.remove(), P.setAttribute("selected", "selected"));
|
|
10397
10397
|
}), o.showOtherItem) {
|
|
10398
10398
|
const O = document.createElement("option");
|
|
10399
10399
|
O.value = "other", O.innerText = o.otherText, _.appendChild(O);
|
|
@@ -10491,8 +10491,8 @@ class Rr {
|
|
|
10491
10491
|
`, y.appendChild(T));
|
|
10492
10492
|
const O = document.createElement("div");
|
|
10493
10493
|
O.className = "file-preview-container", m.appendChild(O);
|
|
10494
|
-
const
|
|
10495
|
-
|
|
10494
|
+
const q = document.createElement("div");
|
|
10495
|
+
q.className = "file-drop-info-highlight", q.id = `file_name_${b}`, m.appendChild(q), C && C.addEventListener("click", (N) => {
|
|
10496
10496
|
N.preventDefault(), _.click();
|
|
10497
10497
|
}), m.classList.add("disabledrop"), (!o.source || o.source && o.source === "local" || o.source && o.source === "local_and_camera") && (m.classList.remove("disabledrop"), m.addEventListener("dragover", (N) => {
|
|
10498
10498
|
N.preventDefault(), Array.from(N.dataTransfer.items).some((ie) => ie.kind === "file") && m.classList.add("drag-over");
|
|
@@ -10611,19 +10611,19 @@ class Rr {
|
|
|
10611
10611
|
});
|
|
10612
10612
|
const M = P.map((N) => N.type).join(",");
|
|
10613
10613
|
_.setAttribute("accept", M);
|
|
10614
|
-
let
|
|
10614
|
+
let R;
|
|
10615
10615
|
if (o.useImageMask) {
|
|
10616
10616
|
p.classList.add("image-mask");
|
|
10617
10617
|
const N = document.createElement("div");
|
|
10618
|
-
p.appendChild(N),
|
|
10618
|
+
p.appendChild(N), R = new Rr(N, {
|
|
10619
10619
|
lang: this.settings.lang,
|
|
10620
10620
|
name: w + "_mask"
|
|
10621
|
-
}), this.objImageMask =
|
|
10621
|
+
}), this.objImageMask = R;
|
|
10622
10622
|
}
|
|
10623
10623
|
o.largePreview && p.classList.add("large-preview");
|
|
10624
10624
|
const I = () => {
|
|
10625
10625
|
const N = m.querySelector(".img-preview");
|
|
10626
|
-
N && (N.remove(), o.useImageMask &&
|
|
10626
|
+
N && (N.remove(), o.useImageMask && R.clearImage());
|
|
10627
10627
|
};
|
|
10628
10628
|
let E = `
|
|
10629
10629
|
<div class="div-livevideo">
|
|
@@ -10659,7 +10659,7 @@ class Rr {
|
|
|
10659
10659
|
</div>
|
|
10660
10660
|
`;
|
|
10661
10661
|
this.appendHtml(m, E);
|
|
10662
|
-
const $ = p.querySelector(".livevideo"), H = p.querySelector(".photo-captured"), U = p.querySelector(".btn-selectfile2"), J = p.querySelector(".btn-takephoto2"), Y = p.querySelector(".btn-capturephoto"), ee = p.querySelector(".btn-clearphoto"),
|
|
10662
|
+
const $ = p.querySelector(".livevideo"), H = p.querySelector(".photo-captured"), U = p.querySelector(".btn-selectfile2"), J = p.querySelector(".btn-takephoto2"), Y = p.querySelector(".btn-capturephoto"), ee = p.querySelector(".btn-clearphoto"), K = p.querySelector(".btn-stopcamera");
|
|
10663
10663
|
this.photoBlob = {};
|
|
10664
10664
|
let he;
|
|
10665
10665
|
U && U.addEventListener("click", (N) => {
|
|
@@ -10673,29 +10673,29 @@ class Rr {
|
|
|
10673
10673
|
video: !0
|
|
10674
10674
|
}), $.srcObject = he;
|
|
10675
10675
|
} catch {
|
|
10676
|
-
alert("Unable to access the camera."), $.style.display = "none", Y.style.display = "none",
|
|
10676
|
+
alert("Unable to access the camera."), $.style.display = "none", Y.style.display = "none", K.style.display = "none", y.style.display = "none", q.style.display = "none";
|
|
10677
10677
|
}
|
|
10678
10678
|
setTimeout(() => {
|
|
10679
|
-
J.style.display = "none", H.style.display = "none", $.style.display = "", Y.style.display = "", ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none",
|
|
10679
|
+
J.style.display = "none", H.style.display = "none", $.style.display = "", Y.style.display = "", ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", K.style.display = "", y.style.display = "none", q.style.display = "none";
|
|
10680
10680
|
}, 100);
|
|
10681
10681
|
};
|
|
10682
10682
|
T && T.addEventListener("click", async (N) => {
|
|
10683
10683
|
N.preventDefault(), Ee();
|
|
10684
10684
|
}), J.addEventListener("click", async (N) => {
|
|
10685
10685
|
N.preventDefault(), Ee();
|
|
10686
|
-
}),
|
|
10687
|
-
he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none", Y.style.display = "none",
|
|
10686
|
+
}), K.addEventListener("click", () => {
|
|
10687
|
+
he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none", Y.style.display = "none", K.style.display = "none", J.style.display = "none", y.style.display = "", q.style.display = "";
|
|
10688
10688
|
}), Y.addEventListener("click", (N) => {
|
|
10689
|
-
if (N.preventDefault(), H.style.display = "", H.width = $.videoWidth, H.height = $.videoHeight, H.getContext("2d").drawImage($, 0, 0, H.width, H.height), he.getTracks().forEach((G) => G.stop()), $.style.display = "none", Y.style.display = "none", ee.style.display = "", U && (U.style.display = ""), J.style.display = "",
|
|
10689
|
+
if (N.preventDefault(), H.style.display = "", H.width = $.videoWidth, H.height = $.videoHeight, H.getContext("2d").drawImage($, 0, 0, H.width, H.height), he.getTracks().forEach((G) => G.stop()), $.style.display = "none", Y.style.display = "none", ee.style.display = "", U && (U.style.display = ""), J.style.display = "", K.style.display = "none", H.toBlob((G) => {
|
|
10690
10690
|
this.photoBlob[w] = G, _.removeAttribute("required");
|
|
10691
10691
|
}, "image/jpeg"), J.style.display = "", o.useImageMask) {
|
|
10692
10692
|
const G = H.toDataURL("image/jpeg");
|
|
10693
|
-
|
|
10693
|
+
R.setImage(G);
|
|
10694
10694
|
}
|
|
10695
10695
|
this.clearSelectedFiles();
|
|
10696
10696
|
});
|
|
10697
10697
|
const me = () => {
|
|
10698
|
-
this.photoBlob[w] = null, H.style.display = "none", H.getContext("2d").clearRect(0, 0, H.width, H.height), v.value !== "" ? o.isRequired && _.removeAttribute("required") : o.isRequired && _.setAttribute("required", "required"), ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", y.style.display = "",
|
|
10698
|
+
this.photoBlob[w] = null, H.style.display = "none", H.getContext("2d").clearRect(0, 0, H.width, H.height), v.value !== "" ? o.isRequired && _.removeAttribute("required") : o.isRequired && _.setAttribute("required", "required"), ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", y.style.display = "", q.style.display = "";
|
|
10699
10699
|
};
|
|
10700
10700
|
ee.addEventListener("click", () => {
|
|
10701
10701
|
me();
|
|
@@ -10708,19 +10708,19 @@ class Rr {
|
|
|
10708
10708
|
if (o.useImageMask) {
|
|
10709
10709
|
if (!fe)
|
|
10710
10710
|
return;
|
|
10711
|
-
|
|
10711
|
+
R.loadUrl(N);
|
|
10712
10712
|
}
|
|
10713
|
-
me(),
|
|
10713
|
+
me(), q.innerHTML = "";
|
|
10714
10714
|
const le = document.createElement("div");
|
|
10715
|
-
|
|
10715
|
+
q.appendChild(le);
|
|
10716
10716
|
const se = document.createElement("button");
|
|
10717
10717
|
if (se.className = "btn-clearfile", se.innerHTML = `
|
|
10718
10718
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
10719
10719
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3" /><path d="M18 13.3l-6.3 -6.3" />
|
|
10720
10720
|
</svg>
|
|
10721
|
-
`,
|
|
10721
|
+
`, q.appendChild(se), se.addEventListener("click", (F) => {
|
|
10722
10722
|
let pe = se.closest(".form-field").querySelector(".img-preview");
|
|
10723
|
-
pe && pe.remove(), v.value = "", _.value = "",
|
|
10723
|
+
pe && pe.remove(), v.value = "", _.value = "", q.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && R.clearImage();
|
|
10724
10724
|
const Me = document.querySelector(".formview-container .submit-container");
|
|
10725
10725
|
Me && setTimeout(() => {
|
|
10726
10726
|
this.stickyElement(Me);
|
|
@@ -10751,19 +10751,19 @@ class Rr {
|
|
|
10751
10751
|
alert(this.out("Invalid file type."));
|
|
10752
10752
|
return;
|
|
10753
10753
|
}
|
|
10754
|
-
|
|
10754
|
+
R.loadImage(N);
|
|
10755
10755
|
}
|
|
10756
|
-
me(), v.value = "",
|
|
10756
|
+
me(), v.value = "", q.innerHTML = "";
|
|
10757
10757
|
const ie = document.createElement("div");
|
|
10758
|
-
ie.innerText = N.name,
|
|
10758
|
+
ie.innerText = N.name, q.appendChild(ie);
|
|
10759
10759
|
const ce = document.createElement("button");
|
|
10760
10760
|
if (ce.className = "btn-clearfile", ce.innerHTML = `
|
|
10761
10761
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
10762
10762
|
<path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
|
|
10763
10763
|
</svg>
|
|
10764
|
-
`,
|
|
10764
|
+
`, q.appendChild(ce), ce.addEventListener("click", (se) => {
|
|
10765
10765
|
let F = ce.closest(".form-field").querySelector(".img-preview");
|
|
10766
|
-
F && F.remove(), _.value = "",
|
|
10766
|
+
F && F.remove(), _.value = "", q.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && R.clearImage();
|
|
10767
10767
|
const Se = document.querySelector(".formview-container .submit-container");
|
|
10768
10768
|
Se && setTimeout(() => {
|
|
10769
10769
|
this.stickyElement(Se);
|
|
@@ -10918,10 +10918,10 @@ class Rr {
|
|
|
10918
10918
|
const C = t.resetText || this.settings.resetText;
|
|
10919
10919
|
k.innerText = C, x.appendChild(k), k.addEventListener("click", (O) => {
|
|
10920
10920
|
O.preventDefault();
|
|
10921
|
-
const
|
|
10922
|
-
|
|
10921
|
+
const q = k.closest("form");
|
|
10922
|
+
q && (q.reset(), q.querySelectorAll(".btn-clearfile").forEach((D) => {
|
|
10923
10923
|
D.click();
|
|
10924
|
-
}),
|
|
10924
|
+
}), q.querySelectorAll(".slider-container").forEach((D) => {
|
|
10925
10925
|
const M = D.querySelector("input");
|
|
10926
10926
|
D.querySelector(".current-value").textContent = M.value;
|
|
10927
10927
|
}));
|
|
@@ -11389,12 +11389,12 @@ ${e}`);
|
|
|
11389
11389
|
if (y.value instanceof FileList && y.value.length > 0) {
|
|
11390
11390
|
const C = y.value[0];
|
|
11391
11391
|
if (!C) continue;
|
|
11392
|
-
const T = await new Promise((O,
|
|
11392
|
+
const T = await new Promise((O, q) => {
|
|
11393
11393
|
const B = new FileReader();
|
|
11394
11394
|
B.onload = (P) => {
|
|
11395
11395
|
const D = P.target.result.split(",")[1];
|
|
11396
11396
|
O(D);
|
|
11397
|
-
}, B.onerror =
|
|
11397
|
+
}, B.onerror = q, B.readAsDataURL(C);
|
|
11398
11398
|
});
|
|
11399
11399
|
_ = _.replaceAll(`{{${y.name}}}`, T), _ = _.replaceAll(`{{${y.name.toUpperCase()}}}`, T);
|
|
11400
11400
|
}
|
|
@@ -11420,8 +11420,8 @@ ${e}`);
|
|
|
11420
11420
|
});
|
|
11421
11421
|
}
|
|
11422
11422
|
const p = async (v, _, f, y, k, C, T, O) => {
|
|
11423
|
-
const
|
|
11424
|
-
|
|
11423
|
+
const q = document.createElement("div");
|
|
11424
|
+
q.classList.add("result-container"), t.appendChild(q), q.innerHTML = `
|
|
11425
11425
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 20" width="27" height="20" fill="currentColor">
|
|
11426
11426
|
<circle cx="15" cy="15" r="10">
|
|
11427
11427
|
<animate attributeName="cy" dur="0.6s" values="15;5;15" repeatCount="indefinite"></animate>
|
|
@@ -11439,7 +11439,7 @@ ${e}`);
|
|
|
11439
11439
|
try {
|
|
11440
11440
|
P = JSON.parse(v), P && typeof P == "object" && (B = !0);
|
|
11441
11441
|
} catch {
|
|
11442
|
-
return
|
|
11442
|
+
return q.innerHTML = `<p>${this.out("Incorrect JSON format.")}</p>`, !1;
|
|
11443
11443
|
}
|
|
11444
11444
|
(T && (T.image || T.video || T.audio) || B) && (c || (a.innerHTML = `
|
|
11445
11445
|
<span class="loading-icon" style="width:60px;display:flex;align-items:center;justify-content:center">
|
|
@@ -11450,18 +11450,18 @@ ${e}`);
|
|
|
11450
11450
|
</span>
|
|
11451
11451
|
|
|
11452
11452
|
`, a.setAttribute("disabled", "")));
|
|
11453
|
-
let D = "", M = "",
|
|
11454
|
-
if (T && T.search && (
|
|
11453
|
+
let D = "", M = "", R;
|
|
11454
|
+
if (T && T.search && (R = await this.getRelevantInfo(v, _, q), R.data !== "" && (_ += `
|
|
11455
11455
|
Use the following information to answer the request:
|
|
11456
11456
|
|
|
11457
|
-
${
|
|
11457
|
+
${R.data}
|
|
11458
11458
|
`)), T && (T.image || T.video || T.audio) || B) {
|
|
11459
|
-
const I = await this.media.generate(v, _, f, y, T,
|
|
11459
|
+
const I = await this.media.generate(v, _, f, y, T, q, O);
|
|
11460
11460
|
return this.needCleanup = !0, this.settings.consoleLog && console.log(I), I.mediaGenerated ? {
|
|
11461
11461
|
media: I.output,
|
|
11462
11462
|
media2: I.output2,
|
|
11463
11463
|
markdown: I.markdown
|
|
11464
|
-
} : (
|
|
11464
|
+
} : (q.innerHTML = `<p>${I.message}</p>`, !1);
|
|
11465
11465
|
}
|
|
11466
11466
|
if (this.settings.assistantId) {
|
|
11467
11467
|
if (this.settings.assistantStreamUrl)
|
|
@@ -11469,24 +11469,24 @@ ${q.data}
|
|
|
11469
11469
|
if (!(I && typeof I == "object")) {
|
|
11470
11470
|
if (D += I, !O) {
|
|
11471
11471
|
const E = oe.parse(D);
|
|
11472
|
-
|
|
11472
|
+
q.innerHTML = E, M += E;
|
|
11473
11473
|
}
|
|
11474
11474
|
await new Promise((E) => setTimeout(E, 50));
|
|
11475
11475
|
}
|
|
11476
11476
|
}), await new Promise((I) => {
|
|
11477
11477
|
const E = setInterval(() => {
|
|
11478
|
-
|
|
11478
|
+
q.innerHTML === oe.parse(D) && (clearInterval(E), I());
|
|
11479
11479
|
}, 10);
|
|
11480
|
-
}), O && (
|
|
11480
|
+
}), O && (q.innerHTML = "", q.remove()), this.outputHtml += `<div class="result-container">${M}</div>`;
|
|
11481
11481
|
else if (this.settings.assistantUrl) {
|
|
11482
11482
|
let I = await this.assistant(v, _, k, C);
|
|
11483
11483
|
if (!I)
|
|
11484
11484
|
return !1;
|
|
11485
11485
|
if (D = I, O)
|
|
11486
|
-
|
|
11486
|
+
q.innerHTML = "", q.remove();
|
|
11487
11487
|
else {
|
|
11488
11488
|
const E = oe.parse(I);
|
|
11489
|
-
|
|
11489
|
+
q.innerHTML = E, this.outputHtml += `<div class="result-container">${E}</div>`;
|
|
11490
11490
|
}
|
|
11491
11491
|
}
|
|
11492
11492
|
} else if (this.settings.sendCommandStreamUrl) {
|
|
@@ -11496,7 +11496,7 @@ ${q.data}
|
|
|
11496
11496
|
for (; J < U.length; ) {
|
|
11497
11497
|
if ($ = I.slice(0, $.length + 1), J++, !O) {
|
|
11498
11498
|
const Y = oe.parse($);
|
|
11499
|
-
|
|
11499
|
+
q.innerHTML = Y, E = Y;
|
|
11500
11500
|
}
|
|
11501
11501
|
await new Promise((Y) => setTimeout(Y, 50));
|
|
11502
11502
|
}
|
|
@@ -11507,24 +11507,24 @@ ${q.data}
|
|
|
11507
11507
|
const J = setInterval(() => {
|
|
11508
11508
|
$.length === I.length && (clearInterval(J), U());
|
|
11509
11509
|
}, 10);
|
|
11510
|
-
}), O && (
|
|
11510
|
+
}), O && (q.innerHTML = "", q.remove()), this.outputHtml += `<div class="result-container">${E}</div>`;
|
|
11511
11511
|
} else {
|
|
11512
11512
|
let I = await this.send(v, _, k, y, C);
|
|
11513
11513
|
if (!I)
|
|
11514
11514
|
return !1;
|
|
11515
11515
|
if (D = I, O)
|
|
11516
|
-
|
|
11516
|
+
q.innerHTML = "", q.remove();
|
|
11517
11517
|
else {
|
|
11518
11518
|
const E = oe.parse(I);
|
|
11519
|
-
|
|
11519
|
+
q.innerHTML = E, this.outputHtml += `<div class="result-container">${E}</div>`;
|
|
11520
11520
|
}
|
|
11521
11521
|
}
|
|
11522
11522
|
if (!O) {
|
|
11523
11523
|
let I = "";
|
|
11524
|
-
if (
|
|
11524
|
+
if (R && R.urls.forEach(($) => {
|
|
11525
11525
|
let H = $;
|
|
11526
11526
|
H.length > 75 && (H = H.slice(0, 75) + "..."), I += `<div><a class="source_url" href="${$}">${H}</url></div>`;
|
|
11527
|
-
}),
|
|
11527
|
+
}), R && R.failed.forEach(($) => {
|
|
11528
11528
|
let H = $;
|
|
11529
11529
|
H.length > 75 && (H = H.slice(0, 75) + "..."), I += `<div><a class="source_url" style="opacity:0.5" href="${$}">${H}</url></div>`;
|
|
11530
11530
|
}), I !== "") {
|
|
@@ -11552,24 +11552,24 @@ ${q.data}
|
|
|
11552
11552
|
model: C,
|
|
11553
11553
|
system: T,
|
|
11554
11554
|
functs: O,
|
|
11555
|
-
tools:
|
|
11555
|
+
tools: q,
|
|
11556
11556
|
hideOutput: B
|
|
11557
11557
|
} = v[_];
|
|
11558
11558
|
k = k || "", y = y || "", T = T || "You are an assistant", O = O || [];
|
|
11559
11559
|
let P = f;
|
|
11560
|
-
this.previousResults.forEach((M,
|
|
11561
|
-
const I = `{{output_step_${
|
|
11560
|
+
this.previousResults.forEach((M, R) => {
|
|
11561
|
+
const I = `{{output_step_${R + 1}}}`;
|
|
11562
11562
|
P = P.replace(new RegExp(I, "g"), u(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), u(M, f));
|
|
11563
|
-
}), f = P, f = f.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(f), P = y, this.previousResults.forEach((M,
|
|
11564
|
-
const I = `{{output_step_${
|
|
11563
|
+
}), f = P, f = f.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(f), P = y, this.previousResults.forEach((M, R) => {
|
|
11564
|
+
const I = `{{output_step_${R + 1}}}`;
|
|
11565
11565
|
P = P.replace(new RegExp(I, "g"), u(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), u(M, f));
|
|
11566
11566
|
}), y = P, y = y.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim();
|
|
11567
|
-
let D = await p(f, y, k, C, T, O,
|
|
11567
|
+
let D = await p(f, y, k, C, T, O, q, B);
|
|
11568
11568
|
if (!D)
|
|
11569
11569
|
break;
|
|
11570
11570
|
if (this.mediaGenerated.push(...D.media), D.media && D.media.length === 1) {
|
|
11571
|
-
let M = D.media[0],
|
|
11572
|
-
this.previousResults.push(
|
|
11571
|
+
let M = D.media[0], R = D.media2 && D.media2.length === 1 && D.media2[0];
|
|
11572
|
+
this.previousResults.push(R || M), B && (this.filesUploaded[`output_step_${_}`] = M);
|
|
11573
11573
|
} else
|
|
11574
11574
|
this.previousResults.push(D.markdown);
|
|
11575
11575
|
}
|
|
@@ -11582,24 +11582,24 @@ ${q.data}
|
|
|
11582
11582
|
provider: C,
|
|
11583
11583
|
model: T,
|
|
11584
11584
|
system: O,
|
|
11585
|
-
functs:
|
|
11585
|
+
functs: q,
|
|
11586
11586
|
tools: B,
|
|
11587
11587
|
hideOutput: P
|
|
11588
11588
|
} = _[f];
|
|
11589
|
-
k = k || "", O = O || "You are an assistant",
|
|
11589
|
+
k = k || "", O = O || "You are an assistant", q = q || [];
|
|
11590
11590
|
let D = y;
|
|
11591
|
-
this.previousResults && this.previousResults.forEach((
|
|
11591
|
+
this.previousResults && this.previousResults.forEach((R, I) => {
|
|
11592
11592
|
const E = `{{output_step_${I + 1}}}`;
|
|
11593
|
-
D = D.replace(new RegExp(E, "g"),
|
|
11594
|
-
}), y = D, y = y.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(y), D = k, this.previousResults && this.previousResults.forEach((
|
|
11593
|
+
D = D.replace(new RegExp(E, "g"), R), D = D.replace(new RegExp(E.toUpperCase(), "g"), R);
|
|
11594
|
+
}), y = D, y = y.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(y), D = k, this.previousResults && this.previousResults.forEach((R, I) => {
|
|
11595
11595
|
const E = `{{output_step_${I + 1}}}`;
|
|
11596
|
-
D = D.replace(new RegExp(E, "g"),
|
|
11596
|
+
D = D.replace(new RegExp(E, "g"), R), D = D.replace(new RegExp(E.toUpperCase(), "g"), R);
|
|
11597
11597
|
}), k = D, k = k.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(k);
|
|
11598
|
-
let M = await p(y, k, C, T, O,
|
|
11598
|
+
let M = await p(y, k, C, T, O, q, B, P);
|
|
11599
11599
|
if (M && (this.mediaGenerated.push(...M.media), !!this.previousResults))
|
|
11600
11600
|
if (M.media && M.media.length === 1) {
|
|
11601
|
-
let
|
|
11602
|
-
this.previousResults[f] = I ||
|
|
11601
|
+
let R = M.media[0], I = M.media2 && M.media2.length === 1 && M.media2[0];
|
|
11602
|
+
this.previousResults[f] = I || R, P && (this.filesUploaded[`output_step_${f}`] = R);
|
|
11603
11603
|
} else
|
|
11604
11604
|
this.previousResults[f] = M.markdown;
|
|
11605
11605
|
})(o, e)), a.innerHTML = l, a.removeAttribute("disabled"), this.isGenerating = !1;
|
|
@@ -12458,8 +12458,8 @@ class Nr {
|
|
|
12458
12458
|
const s = e.querySelectorAll(".edit[data-edit-id]");
|
|
12459
12459
|
if (s.length === 0)
|
|
12460
12460
|
return;
|
|
12461
|
-
e.querySelectorAll('[contenteditable="true"]').forEach((r) => {
|
|
12462
|
-
r.removeAttribute("contenteditable"), r._cbObserver && (r._cbObserver.disconnect(), delete r._cbObserver);
|
|
12461
|
+
e.querySelectorAll('.edit[contenteditable="true"]').forEach((r) => {
|
|
12462
|
+
r.removeAttribute("contenteditable"), r._cbObserver && (r._cbObserver.disconnect(), delete r._cbObserver), r._cbKeydownHandler && (r.removeEventListener("keydown", r._cbKeydownHandler), delete r._cbKeydownHandler);
|
|
12463
12463
|
});
|
|
12464
12464
|
const n = (r, a) => {
|
|
12465
12465
|
const l = e.getAttribute("data-cb-original-content");
|
|
@@ -12475,11 +12475,26 @@ class Nr {
|
|
|
12475
12475
|
};
|
|
12476
12476
|
s.forEach((r) => {
|
|
12477
12477
|
r.setAttribute("contenteditable", "true");
|
|
12478
|
-
const a =
|
|
12479
|
-
|
|
12480
|
-
|
|
12478
|
+
const a = (u) => {
|
|
12479
|
+
var o = document.createRange();
|
|
12480
|
+
o.selectNodeContents(u);
|
|
12481
|
+
var h = window.getSelection();
|
|
12482
|
+
h.removeAllRanges(), h.addRange(o);
|
|
12483
|
+
}, l = (u) => {
|
|
12484
|
+
if ((u.ctrlKey || u.metaKey) && u.which === 65) {
|
|
12485
|
+
let o;
|
|
12486
|
+
try {
|
|
12487
|
+
window.getSelection ? o = window.getSelection().getRangeAt(0).commonAncestorContainer.parentNode : document.selection && (o = document.selection.createRange().parentElement()), a(o), u.preventDefault(), u.stopImmediatePropagation();
|
|
12488
|
+
} catch {
|
|
12489
|
+
}
|
|
12490
|
+
}
|
|
12491
|
+
};
|
|
12492
|
+
r.addEventListener("keydown", l), r._cbKeydownHandler = l;
|
|
12493
|
+
const c = new MutationObserver(() => {
|
|
12494
|
+
const u = r.getAttribute("data-edit-id"), o = r.innerHTML;
|
|
12495
|
+
n(u, o);
|
|
12481
12496
|
});
|
|
12482
|
-
|
|
12497
|
+
c.observe(r, {
|
|
12483
12498
|
childList: !0,
|
|
12484
12499
|
// Child elements added/removed
|
|
12485
12500
|
characterData: !0,
|
|
@@ -12490,7 +12505,7 @@ class Nr {
|
|
|
12490
12505
|
// Attribute changes
|
|
12491
12506
|
attributeFilter: ["style"]
|
|
12492
12507
|
// Specifically watch style (color picker)
|
|
12493
|
-
}), r._cbObserver =
|
|
12508
|
+
}), r._cbObserver = c;
|
|
12494
12509
|
});
|
|
12495
12510
|
}
|
|
12496
12511
|
/**
|
|
@@ -12716,13 +12731,15 @@ class Nr {
|
|
|
12716
12731
|
* Destroy all components and plugins
|
|
12717
12732
|
*/
|
|
12718
12733
|
destroy() {
|
|
12719
|
-
this.components.forEach((
|
|
12720
|
-
const
|
|
12721
|
-
|
|
12722
|
-
}),
|
|
12723
|
-
t.
|
|
12724
|
-
|
|
12725
|
-
|
|
12734
|
+
this.components.forEach((e, t) => {
|
|
12735
|
+
const s = t.dataset.cbType, i = this.plugins.get(s);
|
|
12736
|
+
i && typeof i.unmount == "function" && i.unmount(t, e);
|
|
12737
|
+
}), this.components.forEach((e, t) => {
|
|
12738
|
+
t.querySelectorAll('.edit[contenteditable="true"]').forEach((i) => {
|
|
12739
|
+
i.removeAttribute("contenteditable"), i._cbObserver && (i._cbObserver.disconnect(), delete i._cbObserver), i._cbKeydownHandler && (i.removeEventListener("keydown", i._cbKeydownHandler), delete i._cbKeydownHandler);
|
|
12740
|
+
});
|
|
12741
|
+
}), this.plugins.forEach((e, t) => {
|
|
12742
|
+
typeof e.destroy == "function" && e.destroy(this);
|
|
12726
12743
|
}), this.components.clear(), this.plugins.clear();
|
|
12727
12744
|
}
|
|
12728
12745
|
/**
|
|
@@ -12768,7 +12785,7 @@ class Hr {
|
|
|
12768
12785
|
onReInit: () => {
|
|
12769
12786
|
this.functionLightboxInit();
|
|
12770
12787
|
}
|
|
12771
|
-
}), this.pluginManager.setRuntime(this), window.Glide = Wn, window.FormViewer =
|
|
12788
|
+
}), this.pluginManager.setRuntime(this), window.Glide = Wn, window.FormViewer = qr, window.NavBar = jr, window.pageReRender = () => {
|
|
12772
12789
|
this.pageReRender();
|
|
12773
12790
|
};
|
|
12774
12791
|
}
|
|
@@ -12866,7 +12883,7 @@ class Hr {
|
|
|
12866
12883
|
ks.init({
|
|
12867
12884
|
duration: 1200
|
|
12868
12885
|
});
|
|
12869
|
-
}, 300), this.settings.smoothScroll && new
|
|
12886
|
+
}, 300), this.settings.smoothScroll && new Qs();
|
|
12870
12887
|
}
|
|
12871
12888
|
prepareContent() {
|
|
12872
12889
|
const e = document.querySelector(".is-wrapper");
|
|
@@ -13011,7 +13028,7 @@ class Hr {
|
|
|
13011
13028
|
}), document.querySelectorAll(".is-container video").forEach((i) => {
|
|
13012
13029
|
i.parentNode.setAttribute("data-scroll", "");
|
|
13013
13030
|
});
|
|
13014
|
-
const s = new
|
|
13031
|
+
const s = new qs({
|
|
13015
13032
|
trigger: {
|
|
13016
13033
|
once: !0,
|
|
13017
13034
|
offset: {
|