@innovastudio/contentbox-interactive-runtime 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
2
|
function gi(u) {
|
|
3
3
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
4
4
|
}
|
|
5
|
-
var Dt = { exports: {} }, ws = Dt.exports,
|
|
5
|
+
var Dt = { exports: {} }, ws = Dt.exports, Oi;
|
|
6
6
|
function xs() {
|
|
7
|
-
return
|
|
7
|
+
return Oi || (Oi = 1, (function(u, e) {
|
|
8
8
|
(function(t, s) {
|
|
9
9
|
u.exports = s();
|
|
10
10
|
})(ws, function() {
|
|
11
|
-
var t = typeof window < "u" ? window : typeof
|
|
11
|
+
var t = typeof window < "u" ? window : typeof Ai < "u" ? Ai : typeof self < "u" ? self : {}, s = "Expected a function", i = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, l = /^0b[01]+$/i, c = /^0o[0-7]+$/i, d = parseInt, o = typeof t == "object" && t && t.Object === Object && t, h = typeof self == "object" && self && self.Object === Object && self, p = o || h || Function("return this")(), g = Object.prototype.toString, w = Math.max, S = Math.min, b = function() {
|
|
12
12
|
return p.Date.now();
|
|
13
13
|
};
|
|
14
|
-
function x(
|
|
14
|
+
function x(A, j, z) {
|
|
15
15
|
var V, K, ve, be, X, we, ue = 0, qe = !1, xe = !1, Le = !0;
|
|
16
|
-
if (typeof
|
|
16
|
+
if (typeof A != "function") throw new TypeError(s);
|
|
17
17
|
function Re(Z) {
|
|
18
18
|
var _e = V, Ie = K;
|
|
19
|
-
return V = K = void 0, ue = Z, be =
|
|
19
|
+
return V = K = void 0, ue = Z, be = A.apply(Ie, _e);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Fe(Z) {
|
|
22
22
|
var _e = Z - we;
|
|
23
23
|
return we === void 0 || _e >= j || _e < 0 || xe && Z - ue >= ve;
|
|
24
24
|
}
|
|
25
25
|
function He() {
|
|
26
26
|
var Z = b();
|
|
27
|
-
if (
|
|
27
|
+
if (Fe(Z)) return Ge(Z);
|
|
28
28
|
X = setTimeout(He, (function(_e) {
|
|
29
29
|
var Ie = j - (_e - we);
|
|
30
30
|
return xe ? S(Ie, ve - (_e - ue)) : Ie;
|
|
@@ -33,8 +33,8 @@ function xs() {
|
|
|
33
33
|
function Ge(Z) {
|
|
34
34
|
return X = void 0, Le && V ? Re(Z) : (V = K = void 0, be);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
var Z = b(), _e =
|
|
36
|
+
function Ae() {
|
|
37
|
+
var Z = b(), _e = Fe(Z);
|
|
38
38
|
if (V = arguments, K = this, we = Z, _e) {
|
|
39
39
|
if (X === void 0) return (function(Ie) {
|
|
40
40
|
return ue = Ie, X = setTimeout(He, j), qe ? Re(Ie) : be;
|
|
@@ -43,73 +43,73 @@ function xs() {
|
|
|
43
43
|
}
|
|
44
44
|
return X === void 0 && (X = setTimeout(He, j)), be;
|
|
45
45
|
}
|
|
46
|
-
return j = v(j) || 0, m(z) && (qe = !!z.leading, ve = (xe = "maxWait" in z) ? w(v(z.maxWait) || 0, j) : ve, Le = "trailing" in z ? !!z.trailing : Le),
|
|
46
|
+
return j = v(j) || 0, m(z) && (qe = !!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
47
|
X !== void 0 && clearTimeout(X), ue = 0, V = we = K = X = void 0;
|
|
48
|
-
},
|
|
48
|
+
}, Ae.flush = function() {
|
|
49
49
|
return X === void 0 ? be : Ge(b());
|
|
50
|
-
},
|
|
50
|
+
}, Ae;
|
|
51
51
|
}
|
|
52
|
-
function m(
|
|
53
|
-
var j = typeof
|
|
54
|
-
return !!
|
|
52
|
+
function m(A) {
|
|
53
|
+
var j = typeof A;
|
|
54
|
+
return !!A && (j == "object" || j == "function");
|
|
55
55
|
}
|
|
56
|
-
function v(
|
|
57
|
-
if (typeof
|
|
56
|
+
function v(A) {
|
|
57
|
+
if (typeof A == "number") return A;
|
|
58
58
|
if ((function(V) {
|
|
59
59
|
return typeof V == "symbol" || /* @__PURE__ */ (function(K) {
|
|
60
60
|
return !!K && typeof K == "object";
|
|
61
61
|
})(V) && g.call(V) == n;
|
|
62
|
-
})(
|
|
63
|
-
if (m(
|
|
64
|
-
var j = typeof
|
|
65
|
-
|
|
62
|
+
})(A)) return i;
|
|
63
|
+
if (m(A)) {
|
|
64
|
+
var j = typeof A.valueOf == "function" ? A.valueOf() : A;
|
|
65
|
+
A = m(j) ? j + "" : j;
|
|
66
66
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
|
|
69
|
-
var z = l.test(
|
|
70
|
-
return z || c.test(
|
|
67
|
+
if (typeof A != "string") return A === 0 ? A : +A;
|
|
68
|
+
A = A.replace(r, "");
|
|
69
|
+
var z = l.test(A);
|
|
70
|
+
return z || c.test(A) ? d(A.slice(2), z ? 2 : 8) : a.test(A) ? i : +A;
|
|
71
71
|
}
|
|
72
|
-
var _ = function(
|
|
72
|
+
var _ = function(A, j, z) {
|
|
73
73
|
var V = !0, K = !0;
|
|
74
|
-
if (typeof
|
|
75
|
-
return m(z) && (V = "leading" in z ? !!z.leading : V, K = "trailing" in z ? !!z.trailing : K), x(
|
|
76
|
-
}, f = "Expected a function", y = NaN, k = "[object Symbol]", C = /^\s+|\s+$/g, T = /^[-+]0x[0-9a-f]+$/i,
|
|
74
|
+
if (typeof A != "function") throw new TypeError(s);
|
|
75
|
+
return m(z) && (V = "leading" in z ? !!z.leading : V, K = "trailing" in z ? !!z.trailing : K), x(A, j, { leading: V, maxWait: j, trailing: K });
|
|
76
|
+
}, f = "Expected a function", y = NaN, k = "[object Symbol]", C = /^\s+|\s+$/g, T = /^[-+]0x[0-9a-f]+$/i, O = /^0b[01]+$/i, R = /^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")(), q = Object.prototype.toString, I = Math.max, E = Math.min, $ = function() {
|
|
77
77
|
return M.Date.now();
|
|
78
78
|
};
|
|
79
|
-
function H(
|
|
80
|
-
var j = typeof
|
|
81
|
-
return !!
|
|
79
|
+
function H(A) {
|
|
80
|
+
var j = typeof A;
|
|
81
|
+
return !!A && (j == "object" || j == "function");
|
|
82
82
|
}
|
|
83
|
-
function U(
|
|
84
|
-
if (typeof
|
|
83
|
+
function U(A) {
|
|
84
|
+
if (typeof A == "number") return A;
|
|
85
85
|
if ((function(V) {
|
|
86
86
|
return typeof V == "symbol" || /* @__PURE__ */ (function(K) {
|
|
87
87
|
return !!K && typeof K == "object";
|
|
88
88
|
})(V) && q.call(V) == k;
|
|
89
|
-
})(
|
|
90
|
-
if (H(
|
|
91
|
-
var j = typeof
|
|
92
|
-
|
|
89
|
+
})(A)) return y;
|
|
90
|
+
if (H(A)) {
|
|
91
|
+
var j = typeof A.valueOf == "function" ? A.valueOf() : A;
|
|
92
|
+
A = H(j) ? j + "" : j;
|
|
93
93
|
}
|
|
94
|
-
if (typeof
|
|
95
|
-
|
|
96
|
-
var z =
|
|
97
|
-
return z || R.test(
|
|
94
|
+
if (typeof A != "string") return A === 0 ? A : +A;
|
|
95
|
+
A = A.replace(C, "");
|
|
96
|
+
var z = O.test(A);
|
|
97
|
+
return z || R.test(A) ? B(A.slice(2), z ? 2 : 8) : T.test(A) ? y : +A;
|
|
98
98
|
}
|
|
99
|
-
var J = function(
|
|
99
|
+
var J = function(A, j, z) {
|
|
100
100
|
var V, K, ve, be, X, we, ue = 0, qe = !1, xe = !1, Le = !0;
|
|
101
|
-
if (typeof
|
|
101
|
+
if (typeof A != "function") throw new TypeError(f);
|
|
102
102
|
function Re(Z) {
|
|
103
103
|
var _e = V, Ie = K;
|
|
104
|
-
return V = K = void 0, ue = Z, be =
|
|
104
|
+
return V = K = void 0, ue = Z, be = A.apply(Ie, _e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Fe(Z) {
|
|
107
107
|
var _e = Z - we;
|
|
108
108
|
return we === void 0 || _e >= j || _e < 0 || xe && Z - ue >= ve;
|
|
109
109
|
}
|
|
110
110
|
function He() {
|
|
111
111
|
var Z = $();
|
|
112
|
-
if (
|
|
112
|
+
if (Fe(Z)) return Ge(Z);
|
|
113
113
|
X = setTimeout(He, (function(_e) {
|
|
114
114
|
var Ie = j - (_e - we);
|
|
115
115
|
return xe ? E(Ie, ve - (_e - ue)) : Ie;
|
|
@@ -118,8 +118,8 @@ function xs() {
|
|
|
118
118
|
function Ge(Z) {
|
|
119
119
|
return X = void 0, Le && V ? Re(Z) : (V = K = void 0, be);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
var Z = $(), _e =
|
|
121
|
+
function Ae() {
|
|
122
|
+
var Z = $(), _e = Fe(Z);
|
|
123
123
|
if (V = arguments, K = this, we = Z, _e) {
|
|
124
124
|
if (X === void 0) return (function(Ie) {
|
|
125
125
|
return ue = Ie, X = setTimeout(He, j), qe ? Re(Ie) : be;
|
|
@@ -128,22 +128,22 @@ function xs() {
|
|
|
128
128
|
}
|
|
129
129
|
return X === void 0 && (X = setTimeout(He, j)), be;
|
|
130
130
|
}
|
|
131
|
-
return j = U(j) || 0, H(z) && (qe = !!z.leading, ve = (xe = "maxWait" in z) ? I(U(z.maxWait) || 0, j) : ve, Le = "trailing" in z ? !!z.trailing : Le),
|
|
131
|
+
return j = U(j) || 0, H(z) && (qe = !!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
132
|
X !== void 0 && clearTimeout(X), ue = 0, V = we = K = X = void 0;
|
|
133
|
-
},
|
|
133
|
+
}, Ae.flush = function() {
|
|
134
134
|
return X === void 0 ? be : Ge($());
|
|
135
|
-
},
|
|
136
|
-
},
|
|
135
|
+
}, Ae;
|
|
136
|
+
}, F = function() {
|
|
137
137
|
};
|
|
138
|
-
function ee(
|
|
139
|
-
|
|
138
|
+
function ee(A) {
|
|
139
|
+
A && A.forEach(function(j) {
|
|
140
140
|
var z = Array.prototype.slice.call(j.addedNodes), V = Array.prototype.slice.call(j.removedNodes);
|
|
141
141
|
if ((function K(ve) {
|
|
142
142
|
var be = void 0, X = void 0;
|
|
143
143
|
for (be = 0; be < ve.length; be += 1)
|
|
144
144
|
if ((X = ve[be]).dataset && X.dataset.aos || X.children && K(X.children)) return !0;
|
|
145
145
|
return !1;
|
|
146
|
-
})(z.concat(V))) return
|
|
146
|
+
})(z.concat(V))) return F();
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function Q() {
|
|
@@ -151,36 +151,36 @@ function xs() {
|
|
|
151
151
|
}
|
|
152
152
|
var he = { isSupported: function() {
|
|
153
153
|
return !!Q();
|
|
154
|
-
}, ready: function(
|
|
154
|
+
}, ready: function(A, j) {
|
|
155
155
|
var z = window.document, V = new (Q())(ee);
|
|
156
|
-
|
|
157
|
-
} }, Ee = function(
|
|
158
|
-
if (!(
|
|
156
|
+
F = j, V.observe(z.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
|
|
157
|
+
} }, Ee = function(A, j) {
|
|
158
|
+
if (!(A instanceof j)) throw new TypeError("Cannot call a class as a function");
|
|
159
159
|
}, me = /* @__PURE__ */ (function() {
|
|
160
|
-
function
|
|
160
|
+
function A(j, z) {
|
|
161
161
|
for (var V = 0; V < z.length; V++) {
|
|
162
162
|
var K = z[V];
|
|
163
163
|
K.enumerable = K.enumerable || !1, K.configurable = !0, "value" in K && (K.writable = !0), Object.defineProperty(j, K.key, K);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
return function(j, z, V) {
|
|
167
|
-
return z &&
|
|
167
|
+
return z && A(j.prototype, z), V && A(j, V), j;
|
|
168
168
|
};
|
|
169
|
-
})(), Te = Object.assign || function(
|
|
169
|
+
})(), Te = Object.assign || function(A) {
|
|
170
170
|
for (var j = 1; j < arguments.length; j++) {
|
|
171
171
|
var z = arguments[j];
|
|
172
|
-
for (var V in z) Object.prototype.hasOwnProperty.call(z, V) && (
|
|
172
|
+
for (var V in z) Object.prototype.hasOwnProperty.call(z, V) && (A[V] = z[V]);
|
|
173
173
|
}
|
|
174
|
-
return
|
|
174
|
+
return A;
|
|
175
175
|
}, ye = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, re = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, N = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i, G = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
|
|
176
176
|
function ie() {
|
|
177
177
|
return navigator.userAgent || navigator.vendor || window.opera || "";
|
|
178
178
|
}
|
|
179
179
|
var ce = new ((function() {
|
|
180
|
-
function
|
|
181
|
-
Ee(this,
|
|
180
|
+
function A() {
|
|
181
|
+
Ee(this, A);
|
|
182
182
|
}
|
|
183
|
-
return me(
|
|
183
|
+
return me(A, [{ key: "phone", value: function() {
|
|
184
184
|
var j = ie();
|
|
185
185
|
return !(!ye.test(j) && !re.test(j.substr(0, 4)));
|
|
186
186
|
} }, { key: "mobile", value: function() {
|
|
@@ -190,12 +190,12 @@ function xs() {
|
|
|
190
190
|
return this.mobile() && !this.phone();
|
|
191
191
|
} }, { key: "ie11", value: function() {
|
|
192
192
|
return "-ms-scroll-limit" in document.documentElement.style && "-ms-ime-align" in document.documentElement.style;
|
|
193
|
-
} }]),
|
|
194
|
-
})())(), fe = function(
|
|
193
|
+
} }]), A;
|
|
194
|
+
})())(), fe = function(A, j) {
|
|
195
195
|
var z = void 0;
|
|
196
|
-
return ce.ie11() ? (z = document.createEvent("CustomEvent")).initCustomEvent(
|
|
197
|
-
}, le = function(
|
|
198
|
-
return
|
|
196
|
+
return ce.ie11() ? (z = document.createEvent("CustomEvent")).initCustomEvent(A, !0, !0, { detail: j }) : z = new CustomEvent(A, { detail: j }), document.dispatchEvent(z);
|
|
197
|
+
}, le = function(A) {
|
|
198
|
+
return A.forEach(function(j, z) {
|
|
199
199
|
return (function(V, K) {
|
|
200
200
|
var ve = V.options, be = V.position, X = V.node, we = (V.data, function() {
|
|
201
201
|
V.animated && ((function(ue, qe) {
|
|
@@ -211,85 +211,85 @@ function xs() {
|
|
|
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();
|
|
212
212
|
})(j, window.pageYOffset);
|
|
213
213
|
});
|
|
214
|
-
}, se = function(
|
|
215
|
-
for (var j = 0, z = 0;
|
|
214
|
+
}, se = function(A) {
|
|
215
|
+
for (var j = 0, z = 0; A && !isNaN(A.offsetLeft) && !isNaN(A.offsetTop); ) j += A.offsetLeft - (A.tagName != "BODY" ? A.scrollLeft : 0), z += A.offsetTop - (A.tagName != "BODY" ? A.scrollTop : 0), A = A.offsetParent;
|
|
216
216
|
return { top: z, left: j };
|
|
217
|
-
}, te = function(
|
|
218
|
-
var V =
|
|
217
|
+
}, te = function(A, j, z) {
|
|
218
|
+
var V = A.getAttribute("data-aos-" + j);
|
|
219
219
|
if (V !== void 0) {
|
|
220
220
|
if (V === "true") return !0;
|
|
221
221
|
if (V === "false") return !1;
|
|
222
222
|
}
|
|
223
223
|
return V || z;
|
|
224
|
-
},
|
|
225
|
-
return
|
|
224
|
+
}, Y = function(A, j) {
|
|
225
|
+
return A.forEach(function(z, V) {
|
|
226
226
|
var K = 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
229
|
j.initClassName && z.node.classList.add(j.initClassName), z.position = { in: (function(ue, qe, xe) {
|
|
230
|
-
var Le = window.innerHeight, Re = te(ue, "anchor"),
|
|
231
|
-
Re && document.querySelectorAll(Re) && (
|
|
232
|
-
var Z = se(
|
|
230
|
+
var Le = window.innerHeight, Re = te(ue, "anchor"), Fe = te(ue, "anchor-placement"), He = Number(te(ue, "offset", Fe ? 0 : qe)), Ge = Fe || xe, Ae = ue;
|
|
231
|
+
Re && document.querySelectorAll(Re) && (Ae = document.querySelectorAll(Re)[0]);
|
|
232
|
+
var Z = se(Ae).top - Le;
|
|
233
233
|
switch (Ge) {
|
|
234
234
|
case "top-bottom":
|
|
235
235
|
break;
|
|
236
236
|
case "center-bottom":
|
|
237
|
-
Z +=
|
|
237
|
+
Z += Ae.offsetHeight / 2;
|
|
238
238
|
break;
|
|
239
239
|
case "bottom-bottom":
|
|
240
|
-
Z +=
|
|
240
|
+
Z += Ae.offsetHeight;
|
|
241
241
|
break;
|
|
242
242
|
case "top-center":
|
|
243
243
|
Z += Le / 2;
|
|
244
244
|
break;
|
|
245
245
|
case "center-center":
|
|
246
|
-
Z += Le / 2 +
|
|
246
|
+
Z += Le / 2 + Ae.offsetHeight / 2;
|
|
247
247
|
break;
|
|
248
248
|
case "bottom-center":
|
|
249
|
-
Z += Le / 2 +
|
|
249
|
+
Z += Le / 2 + Ae.offsetHeight;
|
|
250
250
|
break;
|
|
251
251
|
case "top-top":
|
|
252
252
|
Z += Le;
|
|
253
253
|
break;
|
|
254
254
|
case "bottom-top":
|
|
255
|
-
Z += Le +
|
|
255
|
+
Z += Le + Ae.offsetHeight;
|
|
256
256
|
break;
|
|
257
257
|
case "center-top":
|
|
258
|
-
Z += Le +
|
|
258
|
+
Z += Le + Ae.offsetHeight / 2;
|
|
259
259
|
}
|
|
260
260
|
return Z + He;
|
|
261
261
|
})(z.node, j.offset, j.anchorPlacement), out: K && (function(ue, qe) {
|
|
262
262
|
var xe = te(ue, "anchor"), Le = te(ue, "offset", qe), Re = ue;
|
|
263
263
|
return xe && document.querySelectorAll(xe) && (Re = document.querySelectorAll(xe)[0]), se(Re).top + Re.offsetHeight - Le;
|
|
264
264
|
})(z.node, j.offset) }, z.options = { once: ve, mirror: K, animatedClassNames: we, id: be };
|
|
265
|
-
}),
|
|
265
|
+
}), A;
|
|
266
266
|
}, Se = function() {
|
|
267
|
-
var
|
|
268
|
-
return Array.prototype.map.call(
|
|
267
|
+
var A = document.querySelectorAll("[data-aos]");
|
|
268
|
+
return Array.prototype.map.call(A, function(j) {
|
|
269
269
|
return { node: j };
|
|
270
270
|
});
|
|
271
271
|
}, pe = [], Me = !1, ne = { offset: 120, delay: 0, easing: "ease", duration: 400, disable: !1, once: !1, mirror: !1, anchorPlacement: "top-bottom", startEvent: "DOMContentLoaded", animatedClassName: "aos-animate", initClassName: "aos-init", useClassNames: !1, disableMutationObserver: !1, throttleDelay: 99, debounceDelay: 50 }, Pe = function() {
|
|
272
272
|
return document.all && !window.atob;
|
|
273
273
|
}, Ce = function() {
|
|
274
|
-
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Me = !0), Me && (pe =
|
|
274
|
+
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Me = !0), Me && (pe = Y(pe, ne), le(pe), window.addEventListener("scroll", _(function() {
|
|
275
275
|
le(pe, ne.once);
|
|
276
276
|
}, ne.throttleDelay)));
|
|
277
277
|
}, De = function() {
|
|
278
|
-
if (pe = Se(),
|
|
278
|
+
if (pe = Se(), Ye(ne.disable) || Pe()) return Ue();
|
|
279
279
|
Ce();
|
|
280
280
|
}, Ue = function() {
|
|
281
|
-
pe.forEach(function(
|
|
282
|
-
|
|
281
|
+
pe.forEach(function(A, j) {
|
|
282
|
+
A.node.removeAttribute("data-aos"), A.node.removeAttribute("data-aos-easing"), A.node.removeAttribute("data-aos-duration"), A.node.removeAttribute("data-aos-delay"), ne.initClassName && A.node.classList.remove(ne.initClassName), ne.animatedClassName && A.node.classList.remove(ne.animatedClassName);
|
|
283
283
|
});
|
|
284
|
-
},
|
|
285
|
-
return
|
|
284
|
+
}, Ye = function(A) {
|
|
285
|
+
return A === !0 || A === "mobile" && ce.mobile() || A === "phone" && ce.phone() || A === "tablet" && ce.tablet() || typeof A == "function" && A() === !0;
|
|
286
286
|
};
|
|
287
|
-
return { init: function(
|
|
288
|
-
return ne = Te(ne,
|
|
287
|
+
return { init: function(A) {
|
|
288
|
+
return ne = Te(ne, A), pe = Se(), ne.disableMutationObserver || he.isSupported() || (console.info(`
|
|
289
289
|
aos: MutationObserver is not supported on this browser,
|
|
290
290
|
code mutations observing has been disabled.
|
|
291
291
|
You may have to call "refreshHard()" by yourself.
|
|
292
|
-
`), ne.disableMutationObserver = !0), ne.disableMutationObserver || he.ready("[data-aos]", De),
|
|
292
|
+
`), ne.disableMutationObserver = !0), ne.disableMutationObserver || he.ready("[data-aos]", De), Ye(ne.disable) || Pe() ? Ue() : (document.querySelector("body").setAttribute("data-aos-easing", ne.easing), document.querySelector("body").setAttribute("data-aos-duration", ne.duration), document.querySelector("body").setAttribute("data-aos-delay", ne.delay), ["DOMContentLoaded", "load"].indexOf(ne.startEvent) === -1 ? document.addEventListener(ne.startEvent, function() {
|
|
293
293
|
Ce(!0);
|
|
294
294
|
}) : window.addEventListener("load", function() {
|
|
295
295
|
Ce(!0);
|
|
@@ -432,12 +432,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
432
432
|
}), t(this, "onAnimationFrame", function(k) {
|
|
433
433
|
y.debug && (y.debugData.frameStart = Date.now());
|
|
434
434
|
var C, T = {};
|
|
435
|
-
y.drivers.forEach(function(
|
|
436
|
-
T[
|
|
437
|
-
}), y.elements.forEach(function(
|
|
438
|
-
|
|
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(
|
|
440
|
-
return
|
|
435
|
+
y.drivers.forEach(function(O) {
|
|
436
|
+
T[O.name] = O.getValue(y.frame);
|
|
437
|
+
}), y.elements.forEach(function(O) {
|
|
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, R) {
|
|
440
|
+
return O + R;
|
|
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] : {};
|
|
@@ -449,15 +449,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
449
449
|
}), t(this, "findAndAddElements", function() {
|
|
450
450
|
y.elements = [], document.querySelectorAll(".lax").forEach(function(k) {
|
|
451
451
|
var C = [];
|
|
452
|
-
k.classList.forEach(function(
|
|
453
|
-
|
|
452
|
+
k.classList.forEach(function(O) {
|
|
453
|
+
O.includes("lax_preset") && (O = O.replace("lax_preset_", ""), C.push(O));
|
|
454
454
|
});
|
|
455
455
|
var T = t({}, "scrollY", { presets: C });
|
|
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(
|
|
460
|
-
y.elements.push(new _(k, y,
|
|
459
|
+
document.querySelectorAll(k).forEach(function(O, R) {
|
|
460
|
+
y.elements.push(new _(k, y, O, C, R, T));
|
|
461
461
|
});
|
|
462
462
|
}), t(this, "removeElements", function(k) {
|
|
463
463
|
y.elements = y.elements.filter(function(C) {
|
|
@@ -478,9 +478,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
478
478
|
}).sort(function(R, B) {
|
|
479
479
|
return B < R ? 1 : -1;
|
|
480
480
|
}), C = k[k.length - 1], T = 0; T < k.length; T++) {
|
|
481
|
-
var
|
|
482
|
-
if (y <
|
|
483
|
-
C =
|
|
481
|
+
var O = k[T];
|
|
482
|
+
if (y < O) {
|
|
483
|
+
C = O;
|
|
484
484
|
break;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
@@ -489,20 +489,20 @@ 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
|
|
492
|
+
var O, R = document.body.scrollHeight, B = document.body.scrollWidth, P = window.innerWidth, D = window.innerHeight, q = s((O = window.pageXOffset !== void 0, q = (document.compatMode || "") === "CSS1Compat", E = O ? window.pageXOffset : (q ? document.documentElement : document.body).scrollLeft, [O ? window.pageYOffset : (q ? document.documentElement : document.body).scrollTop, E]), 2), E = q[0], M = M + q[1], q = M + C, I = I + E, E = I + T;
|
|
493
493
|
return Function("return ".concat(f.replace(/screenWidth/g, P).replace(/screenHeight/g, D).replace(/pageHeight/g, R).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, q).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] : {};
|
|
497
497
|
e(this, v), t(this, "getValueFn", void 0), t(this, "name", ""), t(this, "lastValue", 0), t(this, "frameStep", 1), t(this, "m1", 0), t(this, "m2", 0), t(this, "inertia", 0), t(this, "inertiaEnabled", !1), t(this, "getValue", function(T) {
|
|
498
|
-
var
|
|
499
|
-
return T % k.frameStep == 0 && (
|
|
498
|
+
var O = k.lastValue;
|
|
499
|
+
return T % k.frameStep == 0 && (O = k.getValueFn(T)), k.inertiaEnabled && (T = O - k.lastValue, k.m1 = 0.8 * k.m1 + T * (1 - 0.8), k.m2 = 0.8 * k.m2 + k.m1 * (1 - 0.8), k.inertia = Math.round(5e3 * k.m2) / 15e3), k.lastValue = O, [k.lastValue, k.inertia];
|
|
500
500
|
}), this.name = f, this.getValueFn = y, Object.keys(C).forEach(function(T) {
|
|
501
501
|
k[T] = C[T];
|
|
502
502
|
}), this.lastValue = this.getValueFn(0);
|
|
503
503
|
}
|
|
504
504
|
function _(f, y, k, C) {
|
|
505
|
-
var T = this,
|
|
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
507
|
var M, q = T.transforms, I = {};
|
|
508
508
|
for (M in q) {
|
|
@@ -510,16 +510,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
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
|
|
513
|
+
var F, me = s(E[$], 3), ee = me[0], Q = 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
|
-
if (G.forEach(function(
|
|
517
|
-
|
|
516
|
+
if (G.forEach(function(Y) {
|
|
517
|
+
Y < ce && le++;
|
|
518
518
|
}), le <= 0) return ie[0];
|
|
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, Q, he ? U % he : U, N), me && (
|
|
522
|
+
})(ee, Q, he ? U % he : U, N), me && (F = J * me, Te === "absolute" && (F = Math.abs(F)), N += F), F = (re || p.includes($) ? "px" : g.includes($) ? "deg" : "") == "px" ? 0 : 3, F = N.toFixed(F), I[$] = ye ? ye(F, T.domElement) : F + re);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
T.applyStyles(I), T.onUpdate && T.onUpdate(P, T.domElement);
|
|
@@ -529,18 +529,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
529
529
|
for (P in T.transformsData) (function(M) {
|
|
530
530
|
var q = T.transformsData[M], I = {}, E = q.presets;
|
|
531
531
|
(E === void 0 ? [] : E).forEach(function(ee) {
|
|
532
|
-
var U, Q = s(ee.split(":"), 3), J = Q[0],
|
|
533
|
-
Q ? (U = Q(
|
|
532
|
+
var U, Q = s(ee.split(":"), 3), J = Q[0], F = Q[1], ee = Q[2], Q = window.lax.presets[J];
|
|
533
|
+
Q ? (U = Q(F, ee), Object.keys(U).forEach(function(he) {
|
|
534
534
|
q[he] = U[he];
|
|
535
535
|
})) : console.error("Lax preset cannot be found with name: ", J);
|
|
536
536
|
}), delete q.presets;
|
|
537
537
|
for (var $ in q) (function(H) {
|
|
538
|
-
var U = s(q[H], 3), ee = U[0],
|
|
538
|
+
var U = s(q[H], 3), ee = U[0], F = 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(), F = x(F, D).map(function(Q) {
|
|
539
539
|
return m(Q, J, T.groupIndex);
|
|
540
540
|
}), ee = x(ee, D).map(function(Q) {
|
|
541
541
|
return m(Q, J, T.groupIndex);
|
|
542
542
|
});
|
|
543
|
-
I[H] = [
|
|
543
|
+
I[H] = [F, ee, U];
|
|
544
544
|
})($);
|
|
545
545
|
T.transforms[M] = I;
|
|
546
546
|
})(P);
|
|
@@ -552,8 +552,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
552
552
|
Object.keys(I).forEach(function(E) {
|
|
553
553
|
T.domElement.style.setProperty(E, I[E]);
|
|
554
554
|
});
|
|
555
|
-
}), this.selector = f, this.laxInstance = y, this.domElement = k, this.transformsData = C, this.groupIndex =
|
|
556
|
-
var R = (
|
|
555
|
+
}), this.selector = f, this.laxInstance = y, this.domElement = k, this.transformsData = C, this.groupIndex = O;
|
|
556
|
+
var R = (O = B.style) === void 0 ? {} : O, B = B.onUpdate;
|
|
557
557
|
Object.keys(R).forEach(function(P) {
|
|
558
558
|
k.style.setProperty(P, R[P]);
|
|
559
559
|
}), B && (this.onUpdate = B), this.calculateTransforms();
|
|
@@ -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"), d = 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"),
|
|
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"), d = 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"), R = 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"), q = 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 = {},
|
|
599
|
-
(t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"), Q = 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"),
|
|
600
|
-
let ve = ee, be = Q, X = he, we = Ee, ue = me, qe = Te, xe = ye, Le = re, Re = N,
|
|
601
|
-
nt < 730 ? (J = ve,
|
|
598
|
+
let J = {}, F = {}, ee = {}, Q = {}, he = {}, Ee = {}, me = {}, Te = {}, ye = {}, re = {}, N = {}, G = {}, ie = {}, ce = {}, fe = {}, le = {}, se = {}, te = {}, Y = {}, Se = {}, pe = {}, Me = {}, ne = {}, Pe = {}, Ce = {}, De = {}, Ue = {}, Ye = {}, A = {}, j = {}, z = {}, V = {}, K = {};
|
|
599
|
+
(t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"), Q = 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"), Y = 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"), Ye = 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") && (Q = 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") && (Y = 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") && (Ye = 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") && (Q = 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") && (Y = 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") && (Ye = 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") && (Q = 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") && (Y = 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") && (Ye = 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 = Q, X = he, we = Ee, ue = me, qe = Te, xe = ye, Le = re, Re = N, Fe = G, He = ie, Ge = ce, Ae = fe, Z = le, _e = se, Ie = te, vt = Y, wt = Se, xt = pe, _t = Me, kt = ne, St = Pe, Et = Ce, Tt = De, Lt = Ue, Ct = Ye, At = A, Ot = j, Mt = z, nt = window.innerHeight;
|
|
601
|
+
nt < 730 ? (J = ve, F = be, ee = X, Q = we, he = ue, Ee = qe, me = xe, Te = Le, ye = Re, re = Fe, N = He, G = Ge, ie = Ae, ce = Z, fe = _e, le = Ie, se = vt, te = wt, Y = xt, Se = _t, pe = kt, Me = St, ne = Et, Pe = Tt, Ce = Lt, De = Ct, Ue = At, Ye = Ot, A = Mt, j = {}, z = {}) : nt >= 730 && nt < 790 ? (F = ve, ee = be, Q = X, he = we, Ee = ue, me = qe, Te = xe, ye = Le, re = Re, N = Fe, G = He, ie = Ge, ce = Ae, fe = Z, le = _e, se = Ie, te = vt, Y = wt, Se = xt, pe = _t, Me = kt, ne = St, Pe = Et, Ce = Tt, De = Lt, Ue = Ct, Ye = At, A = Ot, j = Mt, z = {}) : nt >= 790 && nt < 840 || (nt >= 840 && nt < 1125 ? (ee = {}, Q = ve, he = be, Ee = X, me = we, Te = ue, ye = qe, re = xe, N = Le, G = Re, ie = Fe, ce = He, fe = Ge, le = Ae, se = Z, te = _e, Y = Ie, Se = vt, pe = wt, Me = xt, ne = _t, Pe = kt, Ce = St, De = Et, Ue = Tt, Ye = Lt, A = Ct, j = At, z = Ot, V = Mt) : (ee = {}, Q = {}, he = ve, Ee = be, me = X, Te = we, ye = ue, re = qe, N = xe, G = Le, ie = Re, ce = Fe, fe = He, le = Ge, se = Ae, te = Z, Y = _e, Se = Ie, pe = vt, Me = wt, ne = xt, Pe = _t, Ce = kt, De = St, Ue = Et, Ye = Tt, A = Lt, j = Ct, z = At, V = Ot, K = 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(d).length !== 0 && (L = this.parseObj(d, "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(
|
|
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(d).length !== 0 && (L = this.parseObj(d, "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(R).length !== 0 && (L = this.parseObj(R, "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(q).length !== 0 && (L = this.parseObj(q, "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(F).length !== 0 && (L = this.parseObj(F, "elInY-100", L)), Object.keys(ee).length !== 0 && (L = this.parseObj(ee, "elInY", L)), Object.keys(Q).length !== 0 && (L = this.parseObj(Q, "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(Y).length !== 0 && (L = this.parseObj(Y, "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(Ye).length !== 0 && (L = this.parseObj(Ye, "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(K).length !== 0 && (L = this.parseObj(K, "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);
|
|
@@ -703,7 +703,7 @@ function Ls() {
|
|
|
703
703
|
}), si;
|
|
704
704
|
}
|
|
705
705
|
var Cs = Ls();
|
|
706
|
-
const
|
|
706
|
+
const Yt = /* @__PURE__ */ gi(Cs);
|
|
707
707
|
Array.prototype.each = function(u) {
|
|
708
708
|
const e = this.length;
|
|
709
709
|
for (let t = 0; t < e; t++) {
|
|
@@ -726,7 +726,7 @@ let $t = class {
|
|
|
726
726
|
* @param {DefaultOptions.trigger} [options=DefaultOptions.trigger] options
|
|
727
727
|
*/
|
|
728
728
|
constructor(e, t) {
|
|
729
|
-
this.element = e, t =
|
|
729
|
+
this.element = e, t = Yt(new mi().trigger, t), this.offset = t.offset, this.toggle = t.toggle, this.once = t.once, this.visible = null, this.active = !0;
|
|
730
730
|
}
|
|
731
731
|
/**
|
|
732
732
|
* Checks if the Trigger is in the viewport, calls the callbacks and toggles the classes
|
|
@@ -821,7 +821,7 @@ let $t = class {
|
|
|
821
821
|
} else if (typeof this.toggle.callback.out == "function")
|
|
822
822
|
return this.toggle.callback.out.call(this.element, this);
|
|
823
823
|
}
|
|
824
|
-
},
|
|
824
|
+
}, As = class {
|
|
825
825
|
/**
|
|
826
826
|
* Initializes the collection
|
|
827
827
|
* @param {Trigger[]} [triggers=[]] triggers A set of triggers to init with, optional
|
|
@@ -887,7 +887,7 @@ let $t = class {
|
|
|
887
887
|
call(e) {
|
|
888
888
|
this.triggers.each(e);
|
|
889
889
|
}
|
|
890
|
-
},
|
|
890
|
+
}, Os = class {
|
|
891
891
|
/**
|
|
892
892
|
* ScrollAnimationLoop constructor.
|
|
893
893
|
* Starts a requestAnimationFrame loop as long as the user has scrolled the scrollElement. Stops after a certain time.
|
|
@@ -907,7 +907,7 @@ let $t = class {
|
|
|
907
907
|
_parseOptions(e) {
|
|
908
908
|
let t = new mi().scroll;
|
|
909
909
|
typeof e != "function" ? (t.callback = () => {
|
|
910
|
-
}, t =
|
|
910
|
+
}, t = Yt(t, e)) : t.callback = e, this.element = t.element, this.sustain = t.sustain, this.callback = t.callback, this.startCallback = t.start, this.stopCallback = t.stop, this.directionChange = t.directionChange;
|
|
911
911
|
}
|
|
912
912
|
/**
|
|
913
913
|
* Callback when the user scrolled the element
|
|
@@ -986,7 +986,7 @@ let $t = class {
|
|
|
986
986
|
*
|
|
987
987
|
* Date: 2017-07-09
|
|
988
988
|
*/
|
|
989
|
-
const ct = $t, Ms =
|
|
989
|
+
const ct = $t, Ms = As, qs = Os;
|
|
990
990
|
class Rs {
|
|
991
991
|
/**
|
|
992
992
|
* Constructor for the scroll trigger
|
|
@@ -1001,7 +1001,7 @@ class Rs {
|
|
|
1001
1001
|
* @private
|
|
1002
1002
|
*/
|
|
1003
1003
|
_parseOptions(e) {
|
|
1004
|
-
e =
|
|
1004
|
+
e = Yt(new mi(), e), this.defaultTrigger = e.trigger, this.scrollOptions = e.scroll;
|
|
1005
1005
|
}
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Initializes the collection, picks all [data-scroll] elements as initial elements
|
|
@@ -1074,7 +1074,7 @@ class Rs {
|
|
|
1074
1074
|
* @returns Trigger
|
|
1075
1075
|
*/
|
|
1076
1076
|
createTrigger(e, t) {
|
|
1077
|
-
return new ct(e,
|
|
1077
|
+
return new ct(e, Yt(this.defaultTrigger, t));
|
|
1078
1078
|
}
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Creates an array of triggers
|
|
@@ -1148,7 +1148,7 @@ function et() {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
return u;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function Oe(u, e) {
|
|
1152
1152
|
if ((tt(u) || u === window || u === document) && (u = [u]), !Pi(u) && !dt(u) && (u = [u]), rs(u) != 0) {
|
|
1153
1153
|
if (Pi(u) && !dt(u)) {
|
|
1154
1154
|
let t = u.length, s = 0;
|
|
@@ -1163,7 +1163,7 @@ function Ae(u, e) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
function Ii(u, e = null, t = null) {
|
|
1165
1165
|
const s = u[Ri] = u[Ri] || [], i = { all: s, evt: null, found: null };
|
|
1166
|
-
return e && t && rs(s) > 0 &&
|
|
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;
|
|
1169
1169
|
}), i;
|
|
@@ -1175,20 +1175,20 @@ function Xe(u, { onElement: e, withCallback: t, avoidDuplicate: s = !0, once: i
|
|
|
1175
1175
|
ge(t) && t.call(r, c, this), i && l.destroy();
|
|
1176
1176
|
}
|
|
1177
1177
|
return l.destroy = function() {
|
|
1178
|
-
|
|
1178
|
+
Oe(a, (c) => {
|
|
1179
1179
|
const d = Ii(c, u, l);
|
|
1180
1180
|
d.found && d.all.splice(d.evt, 1), c.removeEventListener && c.removeEventListener(u, l, n);
|
|
1181
1181
|
});
|
|
1182
|
-
},
|
|
1182
|
+
}, Oe(a, (c) => {
|
|
1183
1183
|
const d = Ii(c, u, l);
|
|
1184
1184
|
(c.addEventListener && s && !d.found || !s) && (c.addEventListener(u, l, n), d.all.push({ eventName: u, fn: l }));
|
|
1185
1185
|
}), l;
|
|
1186
1186
|
}
|
|
1187
1187
|
function ae(u, e) {
|
|
1188
|
-
|
|
1188
|
+
Oe(e.split(" "), (t) => u.classList.add(t));
|
|
1189
1189
|
}
|
|
1190
1190
|
function je(u, e) {
|
|
1191
|
-
|
|
1191
|
+
Oe(e.split(" "), (t) => u.classList.remove(t));
|
|
1192
1192
|
}
|
|
1193
1193
|
function Ve(u, e) {
|
|
1194
1194
|
return u.classList.contains(e);
|
|
@@ -1207,14 +1207,14 @@ function ut(u, e = "", t = !1) {
|
|
|
1207
1207
|
if (e === "none")
|
|
1208
1208
|
return ge(t) && t(), !1;
|
|
1209
1209
|
const s = Is(), i = e.split(" ");
|
|
1210
|
-
|
|
1210
|
+
Oe(i, (n) => {
|
|
1211
1211
|
ae(u, "g" + n);
|
|
1212
1212
|
}), Xe(s, {
|
|
1213
1213
|
onElement: u,
|
|
1214
1214
|
avoidDuplicate: !1,
|
|
1215
1215
|
once: !0,
|
|
1216
1216
|
withCallback: (n, r) => {
|
|
1217
|
-
|
|
1217
|
+
Oe(i, (a) => {
|
|
1218
1218
|
je(r, "g" + a);
|
|
1219
1219
|
}), ge(t) && t();
|
|
1220
1220
|
}
|
|
@@ -1380,7 +1380,7 @@ function Di(u = -1) {
|
|
|
1380
1380
|
return e[0];
|
|
1381
1381
|
typeof u == "string" && (u = parseInt(u));
|
|
1382
1382
|
const t = [];
|
|
1383
|
-
|
|
1383
|
+
Oe(e, (a) => {
|
|
1384
1384
|
t.push(a.getAttribute("data-taborder"));
|
|
1385
1385
|
});
|
|
1386
1386
|
const s = Math.max.apply(Math, t.map((a) => parseInt(a)));
|
|
@@ -1420,14 +1420,14 @@ function Ds(u) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
});
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function Ft(u) {
|
|
1424
1424
|
return Math.sqrt(u.x * u.x + u.y * u.y);
|
|
1425
1425
|
}
|
|
1426
1426
|
function $s(u, e) {
|
|
1427
1427
|
return u.x * e.x + u.y * e.y;
|
|
1428
1428
|
}
|
|
1429
1429
|
function Hs(u, e) {
|
|
1430
|
-
var t =
|
|
1430
|
+
var t = Ft(u) * Ft(e);
|
|
1431
1431
|
if (t === 0)
|
|
1432
1432
|
return 0;
|
|
1433
1433
|
var s = $s(u, e) / t;
|
|
@@ -1483,7 +1483,7 @@ class Us {
|
|
|
1483
1483
|
if (i > 1) {
|
|
1484
1484
|
this._cancelLongTap(), this._cancelSingleTap();
|
|
1485
1485
|
var n = { x: e.touches[1].pageX - this.x1, y: e.touches[1].pageY - this.y1 };
|
|
1486
|
-
s.x = n.x, s.y = n.y, this.pinchStartLen =
|
|
1486
|
+
s.x = n.x, s.y = n.y, this.pinchStartLen = Ft(s), this.multipointStart.dispatch(e, this.element);
|
|
1487
1487
|
}
|
|
1488
1488
|
this._preventTap = !1, this.longTapTimeout = setTimeout(
|
|
1489
1489
|
(function() {
|
|
@@ -1497,7 +1497,7 @@ class Us {
|
|
|
1497
1497
|
var t = this.preV, s = e.touches.length, i = e.touches[0].pageX, n = e.touches[0].pageY;
|
|
1498
1498
|
if (this.isDoubleTap = !1, s > 1) {
|
|
1499
1499
|
var r = e.touches[1].pageX, a = e.touches[1].pageY, l = { x: e.touches[1].pageX - i, y: e.touches[1].pageY - n };
|
|
1500
|
-
t.x !== null && (this.pinchStartLen > 0 && (e.zoom =
|
|
1500
|
+
t.x !== null && (this.pinchStartLen > 0 && (e.zoom = Ft(l) / this.pinchStartLen, this.pinch.dispatch(e, this.element)), e.angle = Vs(l, t), this.rotate.dispatch(e, this.element)), t.x = l.x, t.y = l.y, this.x2 !== null && this.sx2 !== null ? (e.deltaX = (i - this.x2 + r - this.sx2) / 2, e.deltaY = (n - this.y2 + a - this.sy2) / 2) : (e.deltaX = 0, e.deltaY = 0), this.twoFingerPressMove.dispatch(e, this.element), this.sx2 = r, this.sy2 = a;
|
|
1501
1501
|
} else {
|
|
1502
1502
|
if (this.x2 !== null) {
|
|
1503
1503
|
e.deltaX = i - this.x2, e.deltaY = n - this.y2;
|
|
@@ -1559,14 +1559,14 @@ function ri(u) {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
}), s.style.opacity = "", n && (n.style.opacity = "");
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Ys(u) {
|
|
1563
1563
|
if (u.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, d = 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,
|
|
1565
|
+
let e = ss(), t = e.width, s = e.height, i = !1, n = null, r = null, a = null, l = !1, c = 1, d = 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, R;
|
|
1566
1566
|
const B = document.getElementById("glightbox-slider"), P = document.querySelector(".goverlay"), D = new Us(B, {
|
|
1567
1567
|
touchStart: (M) => {
|
|
1568
1568
|
if (i = !0, (Ve(M.targetTouches[0].target, "ginner-container") || Qe(M.targetTouches[0].target, ".gslide-desc") || M.targetTouches[0].target.nodeName.toLowerCase() == "a") && (i = !1), Qe(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,
|
|
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 = u.activeSlide, r = n.querySelector(".gslide-media"), R = 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
|
}
|
|
@@ -1580,7 +1580,7 @@ function Fs(u) {
|
|
|
1580
1580
|
return !1;
|
|
1581
1581
|
}
|
|
1582
1582
|
l = !0;
|
|
1583
|
-
let q = M.targetTouches[0].clientX, I = M.targetTouches[0].clientY, E = T - q, $ =
|
|
1583
|
+
let q = M.targetTouches[0].clientX, I = M.targetTouches[0].clientY, E = T - q, $ = 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, u.settings.touchFollowAxis && (v = 0)), y && (H = 1 - Math.abs(x) / t, r.style.opacity = H, u.settings.touchFollowAxis && (_ = 0)), !a)
|
|
@@ -1650,7 +1650,7 @@ function Fs(u) {
|
|
|
1650
1650
|
});
|
|
1651
1651
|
u.events.touch = D;
|
|
1652
1652
|
}
|
|
1653
|
-
class
|
|
1653
|
+
class Fs {
|
|
1654
1654
|
constructor(e, t, s = null) {
|
|
1655
1655
|
if (this.img = e, this.slide = t, this.onclose = s, this.img.setZoomEvents)
|
|
1656
1656
|
return !1;
|
|
@@ -1872,7 +1872,7 @@ class Zs {
|
|
|
1872
1872
|
return this.setSize(a, t), a;
|
|
1873
1873
|
}
|
|
1874
1874
|
let i = "", n = e.getAttribute("data-glightbox"), r = e.nodeName.toLowerCase();
|
|
1875
|
-
if (r === "a" && (i = e.href), r === "img" && (i = e.src, s.alt = e.alt), s.href = i,
|
|
1875
|
+
if (r === "a" && (i = e.href), r === "img" && (i = e.src, s.alt = e.alt), s.href = i, Oe(s, (a, l) => {
|
|
1876
1876
|
Ne(t, l) && l !== "width" && (s[l] = t[l]);
|
|
1877
1877
|
const c = e.dataset[l];
|
|
1878
1878
|
We(c) || (s[l] = this.sanitizeValue(c));
|
|
@@ -1887,9 +1887,9 @@ class Zs {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
} else {
|
|
1889
1889
|
let a = [];
|
|
1890
|
-
|
|
1890
|
+
Oe(s, (l, c) => {
|
|
1891
1891
|
a.push(";\\s?" + c);
|
|
1892
|
-
}), a = a.join("\\s?:|"), n.trim() !== "" &&
|
|
1892
|
+
}), a = a.join("\\s?:|"), n.trim() !== "" && Oe(s, (l, c) => {
|
|
1893
1893
|
const d = n, o = "s?" + c + "s?:s?(.*?)(" + a + "s?:|$)", h = new RegExp(o), p = d.match(h);
|
|
1894
1894
|
if (p && p.length && p[1]) {
|
|
1895
1895
|
const g = p[1].trim().replace(/;\s*$/, "");
|
|
@@ -2000,7 +2000,7 @@ class It {
|
|
|
2000
2000
|
toleranceY: s.dragToleranceY,
|
|
2001
2001
|
slide: e,
|
|
2002
2002
|
instance: this.instance
|
|
2003
|
-
}), i.zoomable && w.naturalWidth > w.offsetWidth && (ae(w, "zoomable"), new
|
|
2003
|
+
}), i.zoomable && w.naturalWidth > w.offsetWidth && (ae(w, "zoomable"), new Fs(w, e, () => {
|
|
2004
2004
|
this.instance.resize();
|
|
2005
2005
|
})), ge(h) && h();
|
|
2006
2006
|
});
|
|
@@ -2197,7 +2197,7 @@ class Bi {
|
|
|
2197
2197
|
var r = document.createElement("style");
|
|
2198
2198
|
r.type = "text/css", r.className = "gcss-styles", r.innerText = `.gscrollbar-fixer {margin-right: ${n}px}`, document.head.appendChild(r), ae(i, "gscrollbar-fixer");
|
|
2199
2199
|
}
|
|
2200
|
-
ae(i, "glightbox-open"), ae(oi, "glightbox-open"), zi && (ae(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (ae(this.prevButton, "glightbox-button-hidden"), ae(this.nextButton, "glightbox-button-hidden")) : (je(this.prevButton, "glightbox-button-hidden"), je(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), ge(this.settings.onOpen) && this.settings.onOpen(), Vi && this.settings.touchNavigation &&
|
|
2200
|
+
ae(i, "glightbox-open"), ae(oi, "glightbox-open"), zi && (ae(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (ae(this.prevButton, "glightbox-button-hidden"), ae(this.nextButton, "glightbox-button-hidden")) : (je(this.prevButton, "glightbox-button-hidden"), je(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), ge(this.settings.onOpen) && this.settings.onOpen(), Vi && this.settings.touchNavigation && Ys(this), this.settings.keyboardNavigation && Ds(this);
|
|
2201
2201
|
}
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Open at specific index
|
|
@@ -2514,10 +2514,10 @@ class Bi {
|
|
|
2514
2514
|
setElements(e) {
|
|
2515
2515
|
this.settings.elements = !1;
|
|
2516
2516
|
const t = [];
|
|
2517
|
-
e && e.length &&
|
|
2517
|
+
e && e.length && Oe(e, (s, i) => {
|
|
2518
2518
|
const n = new It(s, this, i), r = n.getConfig(), a = et({}, r);
|
|
2519
2519
|
a.slideConfig = r, a.instance = n, a.index = i, t.push(a);
|
|
2520
|
-
}), this.elements = t, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (
|
|
2520
|
+
}), this.elements = t, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (Oe(this.elements, () => {
|
|
2521
2521
|
let s = rt(this.settings.slideHTML);
|
|
2522
2522
|
this.slidesContainer.appendChild(s);
|
|
2523
2523
|
}), this.showSlide(0, !0)));
|
|
@@ -2536,7 +2536,7 @@ class Bi {
|
|
|
2536
2536
|
*/
|
|
2537
2537
|
getElementIndex(e) {
|
|
2538
2538
|
let t = !1;
|
|
2539
|
-
return
|
|
2539
|
+
return Oe(this.elements, (s, i) => {
|
|
2540
2540
|
if (Ne(s, "node") && s.node == e)
|
|
2541
2541
|
return t = i, !0;
|
|
2542
2542
|
}), t;
|
|
@@ -2551,12 +2551,12 @@ class Bi {
|
|
|
2551
2551
|
*/
|
|
2552
2552
|
getElements() {
|
|
2553
2553
|
let e = [];
|
|
2554
|
-
this.elements = this.elements ? this.elements : [], !We(this.settings.elements) && ns(this.settings.elements) && this.settings.elements.length &&
|
|
2554
|
+
this.elements = this.elements ? this.elements : [], !We(this.settings.elements) && ns(this.settings.elements) && this.settings.elements.length && Oe(this.settings.elements, (i, n) => {
|
|
2555
2555
|
const r = new It(i, this, n), a = r.getConfig(), l = et({}, a);
|
|
2556
2556
|
l.node = !1, l.index = n, l.instance = r, l.slideConfig = a, e.push(l);
|
|
2557
2557
|
});
|
|
2558
2558
|
let t = !1;
|
|
2559
|
-
return this.getSelector() && (t = document.querySelectorAll(this.getSelector())), t &&
|
|
2559
|
+
return this.getSelector() && (t = document.querySelectorAll(this.getSelector())), t && Oe(t, (i, n) => {
|
|
2560
2560
|
const r = new It(i, this, n), a = r.getConfig(), l = et({}, a);
|
|
2561
2561
|
l.node = i, l.index = n, l.instance = r, l.slideConfig = a, l.gallery = i.getAttribute("data-gallery"), e.push(l);
|
|
2562
2562
|
}), e;
|
|
@@ -2609,7 +2609,7 @@ class Bi {
|
|
|
2609
2609
|
if (this.built)
|
|
2610
2610
|
return !1;
|
|
2611
2611
|
const e = document.body.childNodes, t = [];
|
|
2612
|
-
|
|
2612
|
+
Oe(e, (c) => {
|
|
2613
2613
|
c.parentNode == document.body && c.nodeName.charAt(0) !== "#" && c.hasAttribute && !c.hasAttribute("aria-hidden") && (t.push(c), c.setAttribute("aria-hidden", "true"));
|
|
2614
2614
|
});
|
|
2615
2615
|
const s = Ne(this.settings.svg, "next") ? this.settings.svg.next : "", i = Ne(this.settings.svg, "prev") ? this.settings.svg.prev : "", n = Ne(this.settings.svg, "close") ? this.settings.svg.close : "";
|
|
@@ -2638,7 +2638,7 @@ class Bi {
|
|
|
2638
2638
|
withCallback: (c, d) => {
|
|
2639
2639
|
!this.preventOutsideClick && !Ve(document.body, "glightbox-mobile") && !Qe(c.target, ".ginner-container") && !Qe(c.target, ".gbtn") && !Ve(c.target, "gnext") && !Ve(c.target, "gprev") && this.close();
|
|
2640
2640
|
}
|
|
2641
|
-
})),
|
|
2641
|
+
})), Oe(this.elements, (c, d) => {
|
|
2642
2642
|
this.slidesContainer.appendChild(c.instance.create()), c.slideNode = this.slidesContainer.querySelectorAll(".gslide")[d];
|
|
2643
2643
|
}), Vi && ae(document.body, "glightbox-touch"), this.events.resize = Xe("resize", {
|
|
2644
2644
|
onElement: window,
|
|
@@ -2725,7 +2725,7 @@ class Bi {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
if (this.closing)
|
|
2727
2727
|
return !1;
|
|
2728
|
-
this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length &&
|
|
2728
|
+
this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length && Oe(this.bodyHiddenChildElms, (e) => {
|
|
2729
2729
|
e.removeAttribute("aria-hidden");
|
|
2730
2730
|
}), ae(this.modal, "glightbox-closing"), ut(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), ut(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, () => {
|
|
2731
2731
|
if (this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null, this.built = !1, this.events) {
|
|
@@ -2768,10 +2768,10 @@ class Bi {
|
|
|
2768
2768
|
*/
|
|
2769
2769
|
trigger(e, t = null) {
|
|
2770
2770
|
const s = [];
|
|
2771
|
-
|
|
2771
|
+
Oe(this.apiEvents, (i, n) => {
|
|
2772
2772
|
const { evt: r, once: a, callback: l } = i;
|
|
2773
2773
|
r == e && (l(t), a && s.push(n));
|
|
2774
|
-
}), s.length &&
|
|
2774
|
+
}), s.length && Oe(s, (i) => this.apiEvents.splice(i, 1));
|
|
2775
2775
|
}
|
|
2776
2776
|
/**
|
|
2777
2777
|
* Removes all events
|
|
@@ -2949,7 +2949,7 @@ function Ui(u, e) {
|
|
|
2949
2949
|
}
|
|
2950
2950
|
return t;
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function Yi(u) {
|
|
2953
2953
|
for (var e = 1; e < arguments.length; e++) {
|
|
2954
2954
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2955
2955
|
e % 2 ? Ui(Object(t), !0).forEach(function(s) {
|
|
@@ -3309,7 +3309,7 @@ function di(u, e) {
|
|
|
3309
3309
|
t.classes = Object.assign({}, u.classes, e.classes);
|
|
3310
3310
|
var s = ["direction", "type", "slide", "arrow", "nav"];
|
|
3311
3311
|
s.forEach(function(i) {
|
|
3312
|
-
e.classes.hasOwnProperty(i) && (t.classes[i] =
|
|
3312
|
+
e.classes.hasOwnProperty(i) && (t.classes[i] = Yi(Yi({}, u.classes[i]), e.classes[i]));
|
|
3313
3313
|
});
|
|
3314
3314
|
}
|
|
3315
3315
|
return e.hasOwnProperty("breakpoints") && (t.breakpoints = Object.assign({}, u.breakpoints, e.breakpoints)), t;
|
|
@@ -3697,14 +3697,14 @@ function gn(u, e, t) {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
}), s;
|
|
3699
3699
|
}
|
|
3700
|
-
function
|
|
3700
|
+
function Fi() {
|
|
3701
3701
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3702
3702
|
}
|
|
3703
3703
|
function Kt(u, e) {
|
|
3704
3704
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, i, n, r, a = 0, l = function() {
|
|
3705
|
-
a = t.leading === !1 ? 0 :
|
|
3705
|
+
a = t.leading === !1 ? 0 : Fi(), s = null, r = u.apply(i, n), s || (i = n = null);
|
|
3706
3706
|
}, c = function() {
|
|
3707
|
-
var o =
|
|
3707
|
+
var o = Fi();
|
|
3708
3708
|
!a && t.leading === !1 && (a = o);
|
|
3709
3709
|
var h = e - (o - a);
|
|
3710
3710
|
return i = this, n = arguments, h <= 0 || h > e ? (s && (clearTimeout(s), s = null), a = o, r = u.apply(i, n), s || (i = n = null)) : !s && t.trailing !== !1 && (s = setTimeout(l, h)), r;
|
|
@@ -4322,7 +4322,7 @@ function Cn(u, e) {
|
|
|
4322
4322
|
}
|
|
4323
4323
|
};
|
|
4324
4324
|
}
|
|
4325
|
-
function
|
|
4325
|
+
function An(u, e) {
|
|
4326
4326
|
return {
|
|
4327
4327
|
/**
|
|
4328
4328
|
* Modifies passed translate value with number in the `gap` settings.
|
|
@@ -4336,7 +4336,7 @@ function On(u, e) {
|
|
|
4336
4336
|
}
|
|
4337
4337
|
};
|
|
4338
4338
|
}
|
|
4339
|
-
function
|
|
4339
|
+
function On(u, e) {
|
|
4340
4340
|
return {
|
|
4341
4341
|
/**
|
|
4342
4342
|
* Adds to the passed translate width of the half of clones.
|
|
@@ -4381,7 +4381,7 @@ function qn(u, e) {
|
|
|
4381
4381
|
};
|
|
4382
4382
|
}
|
|
4383
4383
|
function Rn(u, e, t) {
|
|
4384
|
-
var s = [
|
|
4384
|
+
var s = [An, On, Mn, qn].concat(u._t, [Cn]);
|
|
4385
4385
|
return {
|
|
4386
4386
|
/**
|
|
4387
4387
|
* Piplines translate value with registered transformers.
|
|
@@ -5114,7 +5114,7 @@ function Un(u, e, t) {
|
|
|
5114
5114
|
function Zi(u) {
|
|
5115
5115
|
return pt(u) ? hn(u) : (it("Breakpoints option must be an object"), {});
|
|
5116
5116
|
}
|
|
5117
|
-
function
|
|
5117
|
+
function Yn(u, e, t) {
|
|
5118
5118
|
var s = new st(), i = u.settings, n = Zi(i.breakpoints), r = Object.assign({}, i), a = {
|
|
5119
5119
|
/**
|
|
5120
5120
|
* Matches settings for currectly matching media breakpoint.
|
|
@@ -5139,7 +5139,7 @@ function Fn(u, e, t) {
|
|
|
5139
5139
|
s.off("resize", window);
|
|
5140
5140
|
}), a;
|
|
5141
5141
|
}
|
|
5142
|
-
var
|
|
5142
|
+
var Fn = {
|
|
5143
5143
|
// Required
|
|
5144
5144
|
Html: yn,
|
|
5145
5145
|
Translate: In,
|
|
@@ -5160,7 +5160,7 @@ var Yn = {
|
|
|
5160
5160
|
Controls: Vn,
|
|
5161
5161
|
Keyboard: Bn,
|
|
5162
5162
|
Autoplay: Un,
|
|
5163
|
-
Breakpoints:
|
|
5163
|
+
Breakpoints: Yn
|
|
5164
5164
|
}, Wn = /* @__PURE__ */ (function(u) {
|
|
5165
5165
|
sn(t, u);
|
|
5166
5166
|
var e = on(t);
|
|
@@ -5171,7 +5171,7 @@ var Yn = {
|
|
|
5171
5171
|
key: "mount",
|
|
5172
5172
|
value: function() {
|
|
5173
5173
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5174
|
-
return Bt(ht(t.prototype), "mount", this).call(this, Object.assign({},
|
|
5174
|
+
return Bt(ht(t.prototype), "mount", this).call(this, Object.assign({}, Fn, i));
|
|
5175
5175
|
}
|
|
5176
5176
|
}]), t;
|
|
5177
5177
|
})(fn);
|
|
@@ -6522,7 +6522,7 @@ class Ut {
|
|
|
6522
6522
|
return this.block ? Ze.parse : Ze.parseInline;
|
|
6523
6523
|
}
|
|
6524
6524
|
}
|
|
6525
|
-
class
|
|
6525
|
+
class Ar {
|
|
6526
6526
|
defaults = wi();
|
|
6527
6527
|
options = this.setOptions;
|
|
6528
6528
|
parse = this.parseMarkdown(!0);
|
|
@@ -6694,7 +6694,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
6694
6694
|
};
|
|
6695
6695
|
}
|
|
6696
6696
|
}
|
|
6697
|
-
const at = new
|
|
6697
|
+
const at = new Ar();
|
|
6698
6698
|
function oe(u, e) {
|
|
6699
6699
|
return at.parse(u, e);
|
|
6700
6700
|
}
|
|
@@ -6726,7 +6726,7 @@ oe.walkTokens;
|
|
|
6726
6726
|
oe.parseInline;
|
|
6727
6727
|
Ze.parse;
|
|
6728
6728
|
Je.lex;
|
|
6729
|
-
class
|
|
6729
|
+
class Or {
|
|
6730
6730
|
constructor(e = {}, t) {
|
|
6731
6731
|
const s = {
|
|
6732
6732
|
lang: []
|
|
@@ -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,
|
|
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, R = e.color3_blue, B = e.color4_red, P = e.color4_green, D = e.color4_blue, M = e.color5_red, q = 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,9 +8456,9 @@ Check the information and return the details.
|
|
|
8456
8456
|
r: y,
|
|
8457
8457
|
g: k,
|
|
8458
8458
|
b: C
|
|
8459
|
-
}), T &&
|
|
8459
|
+
}), T && O && R && !(T === "0" && O === "0" && R === "0") && E.push({
|
|
8460
8460
|
r: T,
|
|
8461
|
-
g:
|
|
8461
|
+
g: O,
|
|
8462
8462
|
b: R
|
|
8463
8463
|
}), B && P && D && !(B === "0" && P === "0" && D === "0") && E.push({
|
|
8464
8464
|
r: B,
|
|
@@ -8471,9 +8471,9 @@ Check the information and return the details.
|
|
|
8471
8471
|
});
|
|
8472
8472
|
let H = await (async () => {
|
|
8473
8473
|
let U = [], J = this.builder.getFormValues();
|
|
8474
|
-
for (const
|
|
8475
|
-
if (
|
|
8476
|
-
const ee =
|
|
8474
|
+
for (const F of J)
|
|
8475
|
+
if (F.value instanceof FileList && F.type === "multifile") {
|
|
8476
|
+
const ee = F.value;
|
|
8477
8477
|
if (ee.length > 0) {
|
|
8478
8478
|
let Q = 0;
|
|
8479
8479
|
for (const he of ee) {
|
|
@@ -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,
|
|
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, R = e.color3_green, B = e.color3_blue, P = e.color4_red, D = e.color4_green, M = e.color4_blue, q = 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,8 +8587,8 @@ Check the information and return the details.
|
|
|
8587
8587
|
r: k,
|
|
8588
8588
|
g: C,
|
|
8589
8589
|
b: T
|
|
8590
|
-
}),
|
|
8591
|
-
r:
|
|
8590
|
+
}), O && R && B && !(O === "0" && R === "0" && B === "0") && $.push({
|
|
8591
|
+
r: O,
|
|
8592
8592
|
g: R,
|
|
8593
8593
|
b: B
|
|
8594
8594
|
}), P && D && M && !(P === "0" && D === "0" && M === "0") && $.push({
|
|
@@ -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,
|
|
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, R = e.color3_blue, B = e.color4_red, P = e.color4_green, D = e.color4_blue, M = e.color5_red, q = 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,9 +8636,9 @@ Check the information and return the details.
|
|
|
8636
8636
|
r: y,
|
|
8637
8637
|
g: k,
|
|
8638
8638
|
b: C
|
|
8639
|
-
}), T &&
|
|
8639
|
+
}), T && O && R && !(T === "0" && O === "0" && R === "0") && E.push({
|
|
8640
8640
|
r: T,
|
|
8641
|
-
g:
|
|
8641
|
+
g: O,
|
|
8642
8642
|
b: R
|
|
8643
8643
|
}), B && P && D && !(B === "0" && P === "0" && D === "0") && E.push({
|
|
8644
8644
|
r: B,
|
|
@@ -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,
|
|
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, R = e.color3_blue, B = e.color4_red, P = e.color4_green, D = e.color4_blue, M = e.color5_red, q = 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,9 +8685,9 @@ Check the information and return the details.
|
|
|
8685
8685
|
r: y,
|
|
8686
8686
|
g: k,
|
|
8687
8687
|
b: C
|
|
8688
|
-
}), T &&
|
|
8688
|
+
}), T && O && R && !(T === "0" && O === "0" && R === "0") && E.push({
|
|
8689
8689
|
r: T,
|
|
8690
|
-
g:
|
|
8690
|
+
g: O,
|
|
8691
8691
|
b: R
|
|
8692
8692
|
}), B && P && D && !(B === "0" && P === "0" && D === "0") && E.push({
|
|
8693
8693
|
r: B,
|
|
@@ -9600,7 +9600,7 @@ class qr {
|
|
|
9600
9600
|
n.appendChild(k), n.appendChild(g), this.loaded = () => {
|
|
9601
9601
|
n.style.display = "flex";
|
|
9602
9602
|
const E = document.querySelector(".imagemask-controls");
|
|
9603
|
-
E.style.display = "flex", e.style.display = "flex",
|
|
9603
|
+
E.style.display = "flex", e.style.display = "flex", O(), v = [], _ = [], w.clearRect(0, 0, g.width, g.height), b.clearRect(0, 0, S.width, S.height), this.empty = !0, x.value = "";
|
|
9604
9604
|
try {
|
|
9605
9605
|
m(S);
|
|
9606
9606
|
} catch {
|
|
@@ -9609,16 +9609,16 @@ class qr {
|
|
|
9609
9609
|
this.loaded();
|
|
9610
9610
|
};
|
|
9611
9611
|
let C = null, T = null;
|
|
9612
|
-
const
|
|
9612
|
+
const O = () => {
|
|
9613
9613
|
g.width > 0 && g.height > 0 && (C = w.getImageData(0, 0, g.width, g.height), T = b.getImageData(0, 0, S.width, S.height));
|
|
9614
9614
|
const E = k.offsetWidth, $ = k.offsetHeight, H = window.devicePixelRatio || 1;
|
|
9615
9615
|
g.width = E * H, g.height = $ * H, w.scale(H, H), g.style.width = `${E}px`, g.style.height = `${$}px`;
|
|
9616
9616
|
const U = k.naturalWidth, J = k.naturalHeight;
|
|
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
|
-
const
|
|
9619
|
-
|
|
9618
|
+
const F = document.createElement("canvas");
|
|
9619
|
+
F.width = C.width, F.height = C.height, F.getContext("2d").putImageData(C, 0, 0);
|
|
9620
9620
|
const Q = document.createElement("canvas");
|
|
9621
|
-
Q.width = T.width, Q.height = T.height, Q.getContext("2d").putImageData(T, 0, 0), w.drawImage(
|
|
9621
|
+
Q.width = T.width, Q.height = T.height, Q.getContext("2d").putImageData(T, 0, 0), w.drawImage(F, 0, 0, C.width, C.height, 0, 0, g.width, g.height), b.drawImage(Q, 0, 0, T.width, T.height, 0, 0, S.width, S.height);
|
|
9622
9622
|
}
|
|
9623
9623
|
};
|
|
9624
9624
|
let R = !1, B = parseInt(l.value, 10);
|
|
@@ -9647,8 +9647,8 @@ class qr {
|
|
|
9647
9647
|
const {
|
|
9648
9648
|
x: $,
|
|
9649
9649
|
y: H
|
|
9650
|
-
} = P(E), U = S.width / g.width, J = S.height / g.height,
|
|
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(
|
|
9650
|
+
} = P(E), U = S.width / g.width, J = S.height / g.height, F = $ * U, ee = H * J;
|
|
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(F, ee, B / 2 * U, 0, Math.PI * 2), b.fill();
|
|
9652
9652
|
};
|
|
9653
9653
|
g.addEventListener("mousedown", D), g.addEventListener("mouseup", M), g.addEventListener("mousemove", q), g.addEventListener("touchstart", (E) => {
|
|
9654
9654
|
D(E), E.preventDefault();
|
|
@@ -9662,9 +9662,9 @@ class qr {
|
|
|
9662
9662
|
passive: !1
|
|
9663
9663
|
}), o.addEventListener("click", (E) => {
|
|
9664
9664
|
E.preventDefault(), f(), w.clearRect(0, 0, g.width, g.height), b.clearRect(0, 0, S.width, S.height), this.empty = !0, x.value = "", m(S);
|
|
9665
|
-
}), window.addEventListener("resize",
|
|
9665
|
+
}), window.addEventListener("resize", O);
|
|
9666
9666
|
const I = (E) => {
|
|
9667
|
-
E ? (e.setAttribute("aria-modal", "true"), e.setAttribute("role", "dialog"), e.classList.add("fullscreen"), t.style.display = "block", s.style.display = "flex", h.style.display = "none") : (e.removeAttribute("aria-modal"), e.removeAttribute("role"), e.classList.remove("fullscreen"), t.style.display = "none", s.style.display = "none", h.style.display = ""),
|
|
9667
|
+
E ? (e.setAttribute("aria-modal", "true"), e.setAttribute("role", "dialog"), e.classList.add("fullscreen"), t.style.display = "block", s.style.display = "flex", h.style.display = "none") : (e.removeAttribute("aria-modal"), e.removeAttribute("role"), e.classList.remove("fullscreen"), t.style.display = "none", s.style.display = "none", h.style.display = ""), O();
|
|
9668
9668
|
};
|
|
9669
9669
|
h.addEventListener("click", (E) => {
|
|
9670
9670
|
E.preventDefault(), I(!0);
|
|
@@ -9822,7 +9822,7 @@ class Rr {
|
|
|
9822
9822
|
i && i.call(this, n);
|
|
9823
9823
|
}, !e)
|
|
9824
9824
|
throw new Error("A valid DOM element is required.");
|
|
9825
|
-
e.classList.add("formview-container"), e.classList.add("fb-ui"), this.element = e, this.media = new
|
|
9825
|
+
e.classList.add("formview-container"), e.classList.add("fb-ui"), this.element = e, this.media = new Or({
|
|
9826
9826
|
lang: this.settings.lang
|
|
9827
9827
|
}, this), this.upload = new Mr({
|
|
9828
9828
|
lang: this.settings.lang
|
|
@@ -10287,8 +10287,8 @@ class Rr {
|
|
|
10287
10287
|
C.className = "peer-span-rounded", y.appendChild(C);
|
|
10288
10288
|
const T = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z"></path></svg>';
|
|
10289
10289
|
C.innerHTML = T, _ === 0 && o.isRequired && k.setAttribute("required", "required");
|
|
10290
|
-
const
|
|
10291
|
-
|
|
10290
|
+
const O = document.createElement("span");
|
|
10291
|
+
O.innerText = f, y.appendChild(O), k.addEventListener("change", this.changeListener);
|
|
10292
10292
|
}), o.showOtherItem) {
|
|
10293
10293
|
const v = document.createElement("label");
|
|
10294
10294
|
v.setAttribute("for", b + "_other"), v.className = "option-label", m.appendChild(v);
|
|
@@ -10327,8 +10327,8 @@ class Rr {
|
|
|
10327
10327
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10" />
|
|
10328
10328
|
</svg>`;
|
|
10329
10329
|
C.innerHTML = T;
|
|
10330
|
-
const
|
|
10331
|
-
|
|
10330
|
+
const O = document.createElement("span");
|
|
10331
|
+
O.innerText = f, y.appendChild(O), k.addEventListener("change", this.changeListener);
|
|
10332
10332
|
}), o.showOtherItem) {
|
|
10333
10333
|
const v = document.createElement("label");
|
|
10334
10334
|
v.setAttribute("for", b + "_other"), v.className = "option-label", m.appendChild(v);
|
|
@@ -10379,8 +10379,8 @@ class Rr {
|
|
|
10379
10379
|
let b = this.getId();
|
|
10380
10380
|
const x = document.createElement("label");
|
|
10381
10381
|
if (x.setAttribute("for", `dropdown_${b}`), x.className = "field-label", x.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), p.appendChild(x), o.fieldNote) {
|
|
10382
|
-
const
|
|
10383
|
-
|
|
10382
|
+
const O = document.createElement("div");
|
|
10383
|
+
O.className = "field-note", O.innerHTML = o.fieldNote, p.appendChild(O);
|
|
10384
10384
|
}
|
|
10385
10385
|
const m = document.createElement("div");
|
|
10386
10386
|
m.className = "relative", p.appendChild(m);
|
|
@@ -10389,14 +10389,14 @@ 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((
|
|
10393
|
-
let B =
|
|
10394
|
-
o.choicesText && (B = o.choicesText[R] ||
|
|
10392
|
+
if (f.setAttribute("selected", "selected"), f.setAttribute("disabled", "disabled"), f.value = "", f.innerText = o.placeholder, _.appendChild(f), o.choices && o.choices.forEach((O, R) => {
|
|
10393
|
+
let B = O;
|
|
10394
|
+
o.choicesText && (B = o.choicesText[R] || O);
|
|
10395
10395
|
const P = document.createElement("option");
|
|
10396
|
-
P.value =
|
|
10396
|
+
P.value = O, P.innerText = B, _.appendChild(P), R === o.selected && (f.remove(), P.setAttribute("selected", "selected"));
|
|
10397
10397
|
}), o.showOtherItem) {
|
|
10398
|
-
const
|
|
10399
|
-
|
|
10398
|
+
const O = document.createElement("option");
|
|
10399
|
+
O.value = "other", O.innerText = o.otherText, _.appendChild(O);
|
|
10400
10400
|
}
|
|
10401
10401
|
const y = document.createElement("div");
|
|
10402
10402
|
y.className = "select-arrow", v.appendChild(y), this.appendHtml(y, `
|
|
@@ -10409,8 +10409,8 @@ class Rr {
|
|
|
10409
10409
|
const C = p.querySelector(`#dropdown_${b}`), T = p.querySelector(`#input_other_${b}`);
|
|
10410
10410
|
C.addEventListener("change", () => {
|
|
10411
10411
|
C.value === "other" ? (T.classList.remove("hidden"), T.focus()) : T.classList.add("hidden");
|
|
10412
|
-
const
|
|
10413
|
-
this.settings.onInputChange && this.settings.onInputChange(
|
|
10412
|
+
const O = this.getFormValues();
|
|
10413
|
+
this.settings.onInputChange && this.settings.onInputChange(O);
|
|
10414
10414
|
}), k.addEventListener("input", this.inputListener);
|
|
10415
10415
|
}
|
|
10416
10416
|
if (g === "date") {
|
|
@@ -10489,8 +10489,8 @@ class Rr {
|
|
|
10489
10489
|
</svg>
|
|
10490
10490
|
${this.out("Take Photo")}
|
|
10491
10491
|
`, y.appendChild(T));
|
|
10492
|
-
const
|
|
10493
|
-
|
|
10492
|
+
const O = document.createElement("div");
|
|
10493
|
+
O.className = "file-preview-container", m.appendChild(O);
|
|
10494
10494
|
const R = document.createElement("div");
|
|
10495
10495
|
R.className = "file-drop-info-highlight", R.id = `file_name_${b}`, m.appendChild(R), C && C.addEventListener("click", (N) => {
|
|
10496
10496
|
N.preventDefault(), _.click();
|
|
@@ -10506,7 +10506,7 @@ class Rr {
|
|
|
10506
10506
|
}
|
|
10507
10507
|
}) : g === "multifile" && m.addEventListener("drop", (N) => {
|
|
10508
10508
|
if (N.preventDefault(), N.dataTransfer.files && N.dataTransfer.files.length > 0) {
|
|
10509
|
-
m.classList.remove("drag-over"),
|
|
10509
|
+
m.classList.remove("drag-over"), O.innerHTML = "";
|
|
10510
10510
|
const G = N.dataTransfer.files;
|
|
10511
10511
|
G.length > 0 && (_.files = G, Array.from(G).forEach((ie) => {
|
|
10512
10512
|
re(ie);
|
|
@@ -10516,7 +10516,7 @@ class Rr {
|
|
|
10516
10516
|
const N = _.files[0];
|
|
10517
10517
|
N && (ye(N), this.clearSelectedFiles());
|
|
10518
10518
|
}) : g === "multifile" && _.addEventListener("change", () => {
|
|
10519
|
-
|
|
10519
|
+
O.innerHTML = "";
|
|
10520
10520
|
const N = _.files;
|
|
10521
10521
|
Array.from(N).forEach((G) => {
|
|
10522
10522
|
G && (re(G), this.clearSelectedFiles());
|
|
@@ -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"),
|
|
10662
|
+
const $ = p.querySelector(".livevideo"), H = p.querySelector(".photo-captured"), U = p.querySelector(".btn-selectfile2"), J = p.querySelector(".btn-takephoto2"), F = p.querySelector(".btn-capturephoto"), ee = p.querySelector(".btn-clearphoto"), Q = p.querySelector(".btn-stopcamera");
|
|
10663
10663
|
this.photoBlob = {};
|
|
10664
10664
|
let he;
|
|
10665
10665
|
U && U.addEventListener("click", (N) => {
|
|
@@ -10673,10 +10673,10 @@ class Rr {
|
|
|
10673
10673
|
video: !0
|
|
10674
10674
|
}), $.srcObject = he;
|
|
10675
10675
|
} catch {
|
|
10676
|
-
alert("Unable to access the camera."), $.style.display = "none",
|
|
10676
|
+
alert("Unable to access the camera."), $.style.display = "none", F.style.display = "none", Q.style.display = "none", y.style.display = "none", R.style.display = "none";
|
|
10677
10677
|
}
|
|
10678
10678
|
setTimeout(() => {
|
|
10679
|
-
J.style.display = "none", H.style.display = "none", $.style.display = "",
|
|
10679
|
+
J.style.display = "none", H.style.display = "none", $.style.display = "", F.style.display = "", ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", Q.style.display = "", y.style.display = "none", R.style.display = "none";
|
|
10680
10680
|
}, 100);
|
|
10681
10681
|
};
|
|
10682
10682
|
T && T.addEventListener("click", async (N) => {
|
|
@@ -10684,9 +10684,9 @@ class Rr {
|
|
|
10684
10684
|
}), J.addEventListener("click", async (N) => {
|
|
10685
10685
|
N.preventDefault(), Ee();
|
|
10686
10686
|
}), Q.addEventListener("click", () => {
|
|
10687
|
-
he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none",
|
|
10688
|
-
}),
|
|
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",
|
|
10687
|
+
he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none", F.style.display = "none", Q.style.display = "none", J.style.display = "none", y.style.display = "", R.style.display = "";
|
|
10688
|
+
}), F.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", F.style.display = "none", ee.style.display = "", U && (U.style.display = ""), J.style.display = "", Q.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");
|
|
@@ -10702,9 +10702,9 @@ class Rr {
|
|
|
10702
10702
|
});
|
|
10703
10703
|
const Te = (N, G) => {
|
|
10704
10704
|
const ie = `.${N.split(".").pop().toLowerCase()}`;
|
|
10705
|
-
if (!P.some((
|
|
10705
|
+
if (!P.some((Y) => Y.extensions.split(", ").includes(ie)))
|
|
10706
10706
|
return;
|
|
10707
|
-
let fe = B.images.some((
|
|
10707
|
+
let fe = B.images.some((Y) => Y.extensions.split(", ").includes(ie));
|
|
10708
10708
|
if (o.useImageMask) {
|
|
10709
10709
|
if (!fe)
|
|
10710
10710
|
return;
|
|
@@ -10718,21 +10718,21 @@ class Rr {
|
|
|
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
|
-
`, R.appendChild(se), se.addEventListener("click", (
|
|
10721
|
+
`, R.appendChild(se), se.addEventListener("click", (Y) => {
|
|
10722
10722
|
let pe = se.closest(".form-field").querySelector(".img-preview");
|
|
10723
10723
|
pe && pe.remove(), v.value = "", _.value = "", R.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && q.clearImage();
|
|
10724
10724
|
const Me = document.querySelector(".formview-container .submit-container");
|
|
10725
10725
|
Me && setTimeout(() => {
|
|
10726
10726
|
this.stickyElement(Me);
|
|
10727
|
-
}, 1e3),
|
|
10727
|
+
}, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
|
|
10728
10728
|
}), fe) {
|
|
10729
|
-
let
|
|
10730
|
-
|
|
10729
|
+
let Y = m.querySelector(".formview-container .img-preview");
|
|
10730
|
+
Y || (Y = document.createElement("img"), Y.className = "img-preview", m.appendChild(Y)), Y.src = N;
|
|
10731
10731
|
} else
|
|
10732
10732
|
I();
|
|
10733
10733
|
if (!G) {
|
|
10734
|
-
const
|
|
10735
|
-
this.settings.onInputChange && this.settings.onInputChange(
|
|
10734
|
+
const Y = this.getFormValues();
|
|
10735
|
+
this.settings.onInputChange && this.settings.onInputChange(Y);
|
|
10736
10736
|
}
|
|
10737
10737
|
const te = document.querySelector(".formview-container .submit-container");
|
|
10738
10738
|
te && setTimeout(() => {
|
|
@@ -10762,8 +10762,8 @@ class Rr {
|
|
|
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
|
`, R.appendChild(ce), ce.addEventListener("click", (se) => {
|
|
10765
|
-
let
|
|
10766
|
-
|
|
10765
|
+
let Y = ce.closest(".form-field").querySelector(".img-preview");
|
|
10766
|
+
Y && Y.remove(), _.value = "", R.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && q.clearImage();
|
|
10767
10767
|
const Se = document.querySelector(".formview-container .submit-container");
|
|
10768
10768
|
Se && setTimeout(() => {
|
|
10769
10769
|
this.stickyElement(Se);
|
|
@@ -10771,8 +10771,8 @@ class Rr {
|
|
|
10771
10771
|
}), N.type.startsWith("image/")) {
|
|
10772
10772
|
const se = new FileReader();
|
|
10773
10773
|
se.onload = function(te) {
|
|
10774
|
-
let
|
|
10775
|
-
|
|
10774
|
+
let Y = m.querySelector(".formview-container .img-preview");
|
|
10775
|
+
Y || (Y = document.createElement("img"), Y.className = "img-preview", m.appendChild(Y)), Y.src = te.target.result;
|
|
10776
10776
|
}, se.readAsDataURL(N);
|
|
10777
10777
|
} else
|
|
10778
10778
|
I();
|
|
@@ -10785,12 +10785,12 @@ class Rr {
|
|
|
10785
10785
|
}
|
|
10786
10786
|
}, re = (N) => {
|
|
10787
10787
|
if (N) {
|
|
10788
|
-
if (P = P.concat(B.images), !P.some((
|
|
10788
|
+
if (P = P.concat(B.images), !P.some((Y) => Y.type === N.type)) {
|
|
10789
10789
|
alert(this.out("Invalid file type."));
|
|
10790
10790
|
return;
|
|
10791
10791
|
}
|
|
10792
10792
|
const ie = document.createElement("div");
|
|
10793
|
-
ie.className = "image-item",
|
|
10793
|
+
ie.className = "image-item", O.appendChild(ie);
|
|
10794
10794
|
const ce = document.createElement("div");
|
|
10795
10795
|
ce.className = "file-drop-info-highlight", ie.appendChild(ce);
|
|
10796
10796
|
const fe = document.createElement("div");
|
|
@@ -10800,7 +10800,7 @@ class Rr {
|
|
|
10800
10800
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
10801
10801
|
<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" />
|
|
10802
10802
|
</svg>
|
|
10803
|
-
`, ce.appendChild(le), le.addEventListener("click", (
|
|
10803
|
+
`, ce.appendChild(le), le.addEventListener("click", (Y) => {
|
|
10804
10804
|
const Se = le.closest(".image-item");
|
|
10805
10805
|
Se && Se.remove(), ((ne) => {
|
|
10806
10806
|
const Pe = new DataTransfer(), Ce = _.files;
|
|
@@ -10811,13 +10811,13 @@ class Rr {
|
|
|
10811
10811
|
const Me = document.querySelector(".formview-container .submit-container");
|
|
10812
10812
|
Me && setTimeout(() => {
|
|
10813
10813
|
this.stickyElement(Me);
|
|
10814
|
-
}, 1e3),
|
|
10814
|
+
}, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
|
|
10815
10815
|
}), N.type.startsWith("image/")) {
|
|
10816
|
-
const
|
|
10817
|
-
|
|
10816
|
+
const Y = new FileReader();
|
|
10817
|
+
Y.onload = function(Se) {
|
|
10818
10818
|
let pe = document.createElement("img");
|
|
10819
10819
|
pe.className = "img-preview", ie.appendChild(pe), pe.src = Se.target.result;
|
|
10820
|
-
},
|
|
10820
|
+
}, Y.readAsDataURL(N);
|
|
10821
10821
|
}
|
|
10822
10822
|
const se = this.getFormValues();
|
|
10823
10823
|
this.settings.onInputChange && this.settings.onInputChange(se);
|
|
@@ -10916,8 +10916,8 @@ class Rr {
|
|
|
10916
10916
|
const k = document.createElement("button");
|
|
10917
10917
|
k.className = "btn-resetform";
|
|
10918
10918
|
const C = t.resetText || this.settings.resetText;
|
|
10919
|
-
k.innerText = C, x.appendChild(k), k.addEventListener("click", (
|
|
10920
|
-
|
|
10919
|
+
k.innerText = C, x.appendChild(k), k.addEventListener("click", (O) => {
|
|
10920
|
+
O.preventDefault();
|
|
10921
10921
|
const R = k.closest("form");
|
|
10922
10922
|
R && (R.reset(), R.querySelectorAll(".btn-clearfile").forEach((D) => {
|
|
10923
10923
|
D.click();
|
|
@@ -11389,11 +11389,11 @@ ${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((
|
|
11392
|
+
const T = await new Promise((O, R) => {
|
|
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
11397
|
}, B.onerror = R, B.readAsDataURL(C);
|
|
11398
11398
|
});
|
|
11399
11399
|
_ = _.replaceAll(`{{${y.name}}}`, T), _ = _.replaceAll(`{{${y.name.toUpperCase()}}}`, T);
|
|
@@ -11419,7 +11419,7 @@ ${e}`);
|
|
|
11419
11419
|
}), v.context = _;
|
|
11420
11420
|
});
|
|
11421
11421
|
}
|
|
11422
|
-
const p = async (v, _, f, y, k, C, T,
|
|
11422
|
+
const p = async (v, _, f, y, k, C, T, O) => {
|
|
11423
11423
|
const R = document.createElement("div");
|
|
11424
11424
|
R.classList.add("result-container"), t.appendChild(R), R.innerHTML = `
|
|
11425
11425
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 20" width="27" height="20" fill="currentColor">
|
|
@@ -11456,7 +11456,7 @@ Use the following information to answer the request:
|
|
|
11456
11456
|
|
|
11457
11457
|
${q.data}
|
|
11458
11458
|
`)), T && (T.image || T.video || T.audio) || B) {
|
|
11459
|
-
const I = await this.media.generate(v, _, f, y, T, R,
|
|
11459
|
+
const I = await this.media.generate(v, _, f, y, T, R, 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,
|
|
@@ -11467,7 +11467,7 @@ ${q.data}
|
|
|
11467
11467
|
if (this.settings.assistantStreamUrl)
|
|
11468
11468
|
await this.assistantStream(v, _, k, C, async (I) => {
|
|
11469
11469
|
if (!(I && typeof I == "object")) {
|
|
11470
|
-
if (D += I, !
|
|
11470
|
+
if (D += I, !O) {
|
|
11471
11471
|
const E = oe.parse(D);
|
|
11472
11472
|
R.innerHTML = E, M += E;
|
|
11473
11473
|
}
|
|
@@ -11477,12 +11477,12 @@ ${q.data}
|
|
|
11477
11477
|
const E = setInterval(() => {
|
|
11478
11478
|
R.innerHTML === oe.parse(D) && (clearInterval(E), I());
|
|
11479
11479
|
}, 10);
|
|
11480
|
-
}),
|
|
11480
|
+
}), O && (R.innerHTML = "", R.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
|
-
if (D = I,
|
|
11485
|
+
if (D = I, O)
|
|
11486
11486
|
R.innerHTML = "", R.remove();
|
|
11487
11487
|
else {
|
|
11488
11488
|
const E = oe.parse(I);
|
|
@@ -11494,11 +11494,11 @@ ${q.data}
|
|
|
11494
11494
|
const H = async (U) => {
|
|
11495
11495
|
let J = 0;
|
|
11496
11496
|
for (; J < U.length; ) {
|
|
11497
|
-
if ($ = I.slice(0, $.length + 1), J++, !
|
|
11498
|
-
const
|
|
11499
|
-
R.innerHTML =
|
|
11497
|
+
if ($ = I.slice(0, $.length + 1), J++, !O) {
|
|
11498
|
+
const F = oe.parse($);
|
|
11499
|
+
R.innerHTML = F, E = F;
|
|
11500
11500
|
}
|
|
11501
|
-
await new Promise((
|
|
11501
|
+
await new Promise((F) => setTimeout(F, 50));
|
|
11502
11502
|
}
|
|
11503
11503
|
};
|
|
11504
11504
|
await this.sendStream(v, _, k, y, C, async (U) => {
|
|
@@ -11507,19 +11507,19 @@ ${q.data}
|
|
|
11507
11507
|
const J = setInterval(() => {
|
|
11508
11508
|
$.length === I.length && (clearInterval(J), U());
|
|
11509
11509
|
}, 10);
|
|
11510
|
-
}),
|
|
11510
|
+
}), O && (R.innerHTML = "", R.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
|
-
if (D = I,
|
|
11515
|
+
if (D = I, O)
|
|
11516
11516
|
R.innerHTML = "", R.remove();
|
|
11517
11517
|
else {
|
|
11518
11518
|
const E = oe.parse(I);
|
|
11519
11519
|
R.innerHTML = E, this.outputHtml += `<div class="result-container">${E}</div>`;
|
|
11520
11520
|
}
|
|
11521
11521
|
}
|
|
11522
|
-
if (!
|
|
11522
|
+
if (!O) {
|
|
11523
11523
|
let I = "";
|
|
11524
11524
|
if (q && q.urls.forEach(($) => {
|
|
11525
11525
|
let H = $;
|
|
@@ -11551,11 +11551,11 @@ ${q.data}
|
|
|
11551
11551
|
provider: k,
|
|
11552
11552
|
model: C,
|
|
11553
11553
|
system: T,
|
|
11554
|
-
functs:
|
|
11554
|
+
functs: O,
|
|
11555
11555
|
tools: R,
|
|
11556
11556
|
hideOutput: B
|
|
11557
11557
|
} = v[_];
|
|
11558
|
-
k = k || "", y = y || "", T = T || "You are an assistant",
|
|
11558
|
+
k = k || "", y = y || "", T = T || "You are an assistant", O = O || [];
|
|
11559
11559
|
let P = f;
|
|
11560
11560
|
this.previousResults.forEach((M, q) => {
|
|
11561
11561
|
const I = `{{output_step_${q + 1}}}`;
|
|
@@ -11564,7 +11564,7 @@ ${q.data}
|
|
|
11564
11564
|
const I = `{{output_step_${q + 1}}}`;
|
|
11565
11565
|
P = P.replace(new RegExp(I, "g"), d(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), d(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,
|
|
11567
|
+
let D = await p(f, y, k, C, T, O, R, B);
|
|
11568
11568
|
if (!D)
|
|
11569
11569
|
break;
|
|
11570
11570
|
if (this.mediaGenerated.push(...D.media), D.media && D.media.length === 1) {
|
|
@@ -11581,12 +11581,12 @@ ${q.data}
|
|
|
11581
11581
|
context: k,
|
|
11582
11582
|
provider: C,
|
|
11583
11583
|
model: T,
|
|
11584
|
-
system:
|
|
11584
|
+
system: O,
|
|
11585
11585
|
functs: R,
|
|
11586
11586
|
tools: B,
|
|
11587
11587
|
hideOutput: P
|
|
11588
11588
|
} = _[f];
|
|
11589
|
-
k = k || "",
|
|
11589
|
+
k = k || "", O = O || "You are an assistant", R = R || [];
|
|
11590
11590
|
let D = y;
|
|
11591
11591
|
this.previousResults && this.previousResults.forEach((q, I) => {
|
|
11592
11592
|
const E = `{{output_step_${I + 1}}}`;
|
|
@@ -11595,7 +11595,7 @@ ${q.data}
|
|
|
11595
11595
|
const E = `{{output_step_${I + 1}}}`;
|
|
11596
11596
|
D = D.replace(new RegExp(E, "g"), q), D = D.replace(new RegExp(E.toUpperCase(), "g"), q);
|
|
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,
|
|
11598
|
+
let M = await p(y, k, C, T, O, R, B, P);
|
|
11599
11599
|
if (M && (this.mediaGenerated.push(...M.media), !!this.previousResults))
|
|
11600
11600
|
if (M.media && M.media.length === 1) {
|
|
11601
11601
|
let q = M.media[0], I = M.media2 && M.media2.length === 1 && M.media2[0];
|
|
@@ -12405,9 +12405,12 @@ class Nr {
|
|
|
12405
12405
|
if (i && typeof i.mount == "function")
|
|
12406
12406
|
try {
|
|
12407
12407
|
const n = this.parseOptions(t);
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12408
|
+
let r = t.querySelector(".grid-sortable");
|
|
12409
|
+
r || t.classList.contains("grid-sortable") && (r = t), r && Array.from(r.children).forEach((l, c) => {
|
|
12410
|
+
l.nodeType === 1 && l.tagName !== "STYLE" && l.tagName !== "SCRIPT" && l.setAttribute("data-index", c);
|
|
12411
|
+
}), t.hasAttribute("data-cb-original-content") || t.setAttribute("data-cb-original-content", t.innerHTML);
|
|
12412
|
+
const a = i.mount(t, n);
|
|
12413
|
+
this.components.set(t, a), t.setAttribute("data-cb-loaded", "true");
|
|
12411
12414
|
} catch (n) {
|
|
12412
12415
|
console.error(`[PluginManager] Failed to mount component "${s}":`, n);
|
|
12413
12416
|
}
|
|
@@ -12569,9 +12572,12 @@ class Nr {
|
|
|
12569
12572
|
if (c && typeof c.mount == "function")
|
|
12570
12573
|
try {
|
|
12571
12574
|
const d = this.parseOptions(a);
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
+
let o = a.querySelector(".grid-sortable");
|
|
12576
|
+
o || a.classList.contains("grid-sortable") && (o = a), o && Array.from(o.children).forEach((p, g) => {
|
|
12577
|
+
p.nodeType === 1 && p.tagName !== "STYLE" && p.tagName !== "SCRIPT" && p.setAttribute("data-index", g);
|
|
12578
|
+
}), a.hasAttribute("data-cb-original-content") ? a.innerHTML = a.getAttribute("data-cb-original-content") : a.setAttribute("data-cb-original-content", a.innerHTML);
|
|
12579
|
+
const h = await c.mount(a, d);
|
|
12580
|
+
this.components.set(a, h), a.setAttribute("data-cb-loaded", "true"), r++;
|
|
12575
12581
|
} catch (d) {
|
|
12576
12582
|
console.error(`[PluginManager] Failed to mount component "${l}":`, d);
|
|
12577
12583
|
}
|