@voidzero-dev/vitepress-theme 1.1.60 → 1.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index111.js +4 -4
- package/dist/index113.js +3 -3
- package/dist/index115.js +8 -8
- package/dist/index119.js +10 -10
- package/dist/index121.js +3 -3
- package/dist/index123.js +7 -7
- package/dist/index128.js +4 -4
- package/dist/index135.js +1 -1
- package/dist/index140.js +2 -2
- package/dist/index142.js +21 -21
- package/dist/index145.js +17 -17
- package/dist/index148.js +1 -1
- package/dist/index157.js +4 -4
- package/dist/index167.js +4 -4
- package/dist/index173.js +5 -5
- package/dist/index185.js +2 -2
- package/dist/index187.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +26 -28
- package/dist/index199.js +29 -41
- package/dist/index200.js +15 -15
- package/dist/index201.js +17 -21
- package/dist/index202.js +16 -16
- package/dist/index203.js +13 -13
- package/dist/index204.js +123 -24
- package/dist/index205.js +28 -26
- package/dist/index206.js +41 -124
- package/dist/index207.js +38 -2
- package/dist/index208.js +5 -2
- package/dist/index209.js +2 -2
- package/dist/index210.js +4 -0
- package/dist/index211.js +2 -108
- package/dist/index212.js +4 -0
- package/dist/index214.js +108 -2
- package/dist/index216.js +2 -2
- package/dist/index217.js +2 -2
- package/dist/index218.js +2 -2
- package/dist/index219.js +34 -2
- package/dist/index220.js +1 -1
- package/dist/index221.js +2 -2
- package/dist/index222.js +2 -2
- package/dist/index223.js +2 -2
- package/dist/index224.js +2 -2
- package/dist/index225.js +2 -34
- package/dist/index226.js +2 -2
- package/dist/index227.js +2 -2
- package/dist/index228.js +2 -2
- package/dist/index229.js +2 -2
- package/dist/index23.js +7 -7
- package/dist/index230.js +1 -1
- package/dist/index231.js +1 -1
- package/dist/index232.js +1 -1
- package/dist/index233.js +2 -5
- package/dist/index234.js +2 -3
- package/dist/index235.js +103 -5
- package/dist/index236.js +2 -2
- package/dist/index237.js +2 -5
- package/dist/index238.js +1 -1
- package/dist/index239.js +2 -2
- package/dist/index240.js +2 -2
- package/dist/index241.js +2 -2
- package/dist/index242.js +2 -2
- package/dist/index243.js +2 -2
- package/dist/index244.js +2 -2
- package/dist/index245.js +2 -2
- package/dist/index246.js +1 -1
- package/dist/index247.js +2 -103
- package/dist/index248.js +1 -1
- package/dist/index249.js +1 -1
- package/dist/index250.js +2 -2
- package/dist/index251.js +2 -2
- package/dist/index252.js +2 -2
- package/dist/index253.js +2 -2
- package/dist/index254.js +2 -2
- package/dist/index255.js +2 -2
- package/dist/index256.js +1 -1
- package/dist/index257.js +2 -2
- package/dist/index258.js +2 -2
- package/dist/index259.js +2 -2
- package/dist/index260.js +47 -2
- package/dist/index261.js +1 -1
- package/dist/index262.js +2 -52
- package/dist/index263.js +3 -44
- package/dist/index264.js +2 -2587
- package/dist/index265.js +5 -2
- package/dist/index266.js +5 -2
- package/dist/index267.js +96 -2
- package/dist/index268.js +2 -2
- package/dist/index269.js +2 -2
- package/dist/index270.js +2 -2
- package/dist/index271.js +2 -20
- package/dist/index272.js +3 -92
- package/dist/index273.js +7 -0
- package/dist/index274.js +52 -5
- package/dist/index275.js +44 -6
- package/dist/index276.js +2587 -5
- package/dist/index277.js +2 -5
- package/dist/index278.js +2 -5
- package/dist/index279.js +2 -5
- package/dist/index28.js +1 -1
- package/dist/index280.js +2 -32
- package/dist/index281.js +2 -2
- package/dist/index282.js +9 -2
- package/dist/index283.js +1 -1
- package/dist/index284.js +2 -2
- package/dist/index285.js +20 -2
- package/dist/index286.js +92 -2
- package/dist/index288.js +5 -2
- package/dist/index289.js +5 -2
- package/dist/index290.js +5 -2
- package/dist/index291.js +5 -2
- package/dist/index292.js +5 -2
- package/dist/index293.js +5 -96
- package/dist/index294.js +32 -2
- package/dist/index295.js +2 -98146
- package/dist/index296.js +2 -2
- package/dist/index297.js +2 -2
- package/dist/index298.js +2 -9
- package/dist/index299.js +2 -2
- package/dist/index300.js +2 -2
- package/dist/index301.js +2 -2
- package/dist/index302.js +2 -47
- package/dist/index303.js +2 -2
- package/dist/index304.js +2 -2
- package/dist/index305.js +2 -2
- package/dist/index306.js +1 -1
- package/dist/index307.js +2 -2
- package/dist/index309.js +1 -1
- package/dist/index310.js +2 -5
- package/dist/index311.js +98146 -2
- package/dist/index312.js +1 -1
- package/dist/index313.js +1 -1
- package/dist/index314.js +83 -2
- package/dist/index316.js +71 -2
- package/dist/index318.js +1 -1
- package/dist/index319.js +1 -1
- package/dist/index320.js +1 -1
- package/dist/index321.js +2 -82
- package/dist/index322.js +4 -0
- package/dist/index323.js +2 -83
- package/dist/index324.js +4 -0
- package/dist/index325.js +1 -1
- package/dist/index326.js +1 -1
- package/dist/index327.js +7207 -2
- package/dist/index328.js +1626 -7098
- package/dist/index329.js +2 -1735
- package/dist/index330.js +129 -2
- package/dist/index332.js +3 -71
- package/dist/index333.js +4 -0
- package/dist/index334.js +82 -3
- package/dist/index336.js +4 -0
- package/dist/index337.js +3 -16
- package/dist/{index335.js → index338.js} +3 -3
- package/dist/index340.js +18 -0
- package/dist/{index339.js → index342.js} +4 -4
- package/dist/{index341.js → index344.js} +1 -1
- package/dist/{index343.js → index346.js} +5 -5
- package/dist/{index345.js → index348.js} +2 -2
- package/dist/index350.js +46 -5
- package/dist/index351.js +5 -46
- package/dist/index352.js +5 -70
- package/dist/index353.js +5 -47
- package/dist/index354.js +5 -112
- package/dist/index355.js +5 -62
- package/dist/index356.js +4 -4
- package/dist/index357.js +62 -2
- package/dist/index358.js +5 -29
- package/dist/index359.js +24 -0
- package/dist/index360.js +5 -8
- package/dist/index361.js +3 -3
- package/dist/index362.js +30 -5
- package/dist/index363.js +26 -22
- package/dist/index364.js +5 -30
- package/dist/index365.js +2 -26
- package/dist/index366.js +28 -314
- package/dist/index368.js +8 -5
- package/dist/index369.js +70 -5
- package/dist/index370.js +47 -5
- package/dist/index371.js +112 -5
- package/dist/index372.js +19 -5
- package/dist/index374.js +94 -446
- package/dist/index376.js +29 -0
- package/dist/{index388.js → index378.js} +3 -3
- package/dist/index380.js +55 -2
- package/dist/index382.js +19 -17
- package/dist/index385.js +4 -0
- package/dist/index386.js +2 -27
- package/dist/{index375.js → index387.js} +2 -2
- package/dist/{index377.js → index389.js} +1 -1
- package/dist/{index394.js → index391.js} +1 -1
- package/dist/index392.js +2 -21
- package/dist/index393.js +456 -0
- package/dist/index395.js +87 -2
- package/dist/index396.js +309 -448
- package/dist/index398.js +443 -84
- package/dist/index399.js +5 -10
- package/dist/index400.js +5 -4
- package/dist/index401.js +5 -28
- package/dist/index402.js +13 -5
- package/dist/index403.js +5 -23
- package/dist/index404.js +5 -21
- package/dist/index405.js +28 -5
- package/dist/index406.js +3 -3
- package/dist/index407.js +10 -5
- package/dist/index408.js +4 -5
- package/dist/index409.js +22 -12
- package/dist/index410.js +17 -5
- package/dist/index411.js +18 -16
- package/dist/index412.js +19 -17
- package/dist/index413.js +21 -32
- package/dist/index415.js +70 -76
- package/dist/index417.js +48 -22
- package/dist/index419.js +76 -70
- package/dist/index42.js +4 -4
- package/dist/index421.js +26 -48
- package/dist/index423.js +30 -23
- package/dist/index425.js +3 -3
- package/dist/index426.js +2 -2
- package/dist/index427.js +2 -2
- package/dist/index428.js +2 -2
- package/dist/index429.js +5 -26
- package/dist/index430.js +27 -0
- package/dist/index432.js +93 -93
- package/dist/index434.js +27 -23
- package/dist/index436.js +93 -93
- package/dist/index438.js +21 -24
- package/dist/index440.js +5 -11
- package/dist/index441.js +14 -28
- package/dist/index442.js +11 -5
- package/dist/index443.js +28 -5
- package/dist/index444.js +4 -13
- package/dist/index445.js +37 -27
- package/dist/index447.js +2 -39
- package/dist/index448.js +31 -0
- package/dist/index451.js +2 -2
- package/dist/index46.js +1 -1
- package/dist/index49.js +3 -3
- package/dist/index51.js +4 -4
- package/dist/index52.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index58.js +6 -6
- package/dist/index6.js +1 -1
- package/dist/index62.js +1 -1
- package/dist/index65.js +1 -1
- package/dist/index7.js +2 -2
- package/dist/index75.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index8.js +2 -2
- package/dist/index81.js +2 -2
- package/dist/index9.js +1 -1
- package/dist/index93.js +1 -1
- package/dist/vitepress/components/vitepress-default/VPDocAsideSponsors.vue.d.ts +2 -1
- package/dist/vitepress/index.d.ts +2 -0
- package/dist/vitepress/types/theme-config.d.ts +68 -0
- package/package.json +1 -1
- package/dist/index213.js +0 -40
- package/dist/index215.js +0 -4
- package/dist/index287.js +0 -4
- package/dist/index315.js +0 -4
- package/dist/index317.js +0 -4
- package/dist/index331.js +0 -5
- package/dist/index347.js +0 -131
- package/dist/index349.js +0 -4
- package/dist/index373.js +0 -7
- package/dist/index381.js +0 -4
- package/dist/index384.js +0 -96
- package/dist/index390.js +0 -57
- package/dist/index431.js +0 -7
- package/dist/index449.js +0 -4
- /package/dist/{index367.js → index397.js} +0 -0
package/dist/index396.js
CHANGED
|
@@ -1,456 +1,317 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import { __module as q } from "./index397.js";
|
|
2
|
+
var fe = q.exports, te;
|
|
3
|
+
function he() {
|
|
4
|
+
return te ? q.exports : (te = 1, (function(ne, ve) {
|
|
5
|
+
(function(z, Q) {
|
|
6
|
+
ne.exports = Q();
|
|
7
|
+
})(typeof self < "u" ? self : fe, (() => (() => {
|
|
8
|
+
var z = { 3146: (s, c, p) => {
|
|
9
|
+
for (var S = p(3491), m = typeof window > "u" ? p.g : window, g = ["moz", "webkit"], h = "AnimationFrame", d = m["request" + h], _ = m["cancel" + h] || m["cancelRequest" + h], O = 0; !d && O < g.length; O++) d = m[g[O] + "Request" + h], _ = m[g[O] + "Cancel" + h] || m[g[O] + "CancelRequest" + h];
|
|
10
|
+
if (!d || !_) {
|
|
11
|
+
var D = 0, x = 0, b = [], R = 1e3 / 60;
|
|
12
|
+
d = function(y) {
|
|
13
|
+
if (b.length === 0) {
|
|
14
|
+
var T = S(), L = Math.max(0, R - (T - D));
|
|
15
|
+
D = L + T, setTimeout((function() {
|
|
16
|
+
var M = b.slice(0);
|
|
17
|
+
b.length = 0;
|
|
18
|
+
for (var C = 0; C < M.length; C++) if (!M[C].cancelled) try {
|
|
19
|
+
M[C].callback(D);
|
|
20
|
+
} catch (N) {
|
|
21
|
+
setTimeout((function() {
|
|
22
|
+
throw N;
|
|
23
|
+
}), 0);
|
|
24
|
+
}
|
|
25
|
+
}), Math.round(L));
|
|
26
|
+
}
|
|
27
|
+
return b.push({ handle: ++x, callback: y, cancelled: !1 }), x;
|
|
28
|
+
}, _ = function(y) {
|
|
29
|
+
for (var T = 0; T < b.length; T++) b[T].handle === y && (b[T].cancelled = !0);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
s.exports = function(y) {
|
|
33
|
+
return d.call(m, y);
|
|
34
|
+
}, s.exports.cancel = function() {
|
|
35
|
+
_.apply(m, arguments);
|
|
36
|
+
}, s.exports.polyfill = function(y) {
|
|
37
|
+
y || (y = m), y.requestAnimationFrame = d, y.cancelAnimationFrame = _;
|
|
38
|
+
};
|
|
39
|
+
}, 3491: function(s) {
|
|
40
|
+
(function() {
|
|
41
|
+
var c, p, S, m, g, h;
|
|
42
|
+
typeof performance < "u" && performance !== null && performance.now ? s.exports = function() {
|
|
43
|
+
return performance.now();
|
|
44
|
+
} : typeof process < "u" && process !== null && process.hrtime ? (s.exports = function() {
|
|
45
|
+
return (c() - g) / 1e6;
|
|
46
|
+
}, p = process.hrtime, m = (c = function() {
|
|
47
|
+
var d;
|
|
48
|
+
return 1e9 * (d = p())[0] + d[1];
|
|
49
|
+
})(), h = 1e9 * process.uptime(), g = m - h) : Date.now ? (s.exports = function() {
|
|
50
|
+
return Date.now() - S;
|
|
51
|
+
}, S = Date.now()) : (s.exports = function() {
|
|
52
|
+
return (/* @__PURE__ */ new Date()).getTime() - S;
|
|
53
|
+
}, S = (/* @__PURE__ */ new Date()).getTime());
|
|
54
|
+
}).call(this);
|
|
55
|
+
} }, Q = {};
|
|
56
|
+
function w(s) {
|
|
57
|
+
var c = Q[s];
|
|
58
|
+
if (c !== void 0) return c.exports;
|
|
59
|
+
var p = Q[s] = { exports: {} };
|
|
60
|
+
return z[s].call(p.exports, p, p.exports, w), p.exports;
|
|
39
61
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
62
|
+
w.n = (s) => {
|
|
63
|
+
var c = s && s.__esModule ? () => s.default : () => s;
|
|
64
|
+
return w.d(c, { a: c }), c;
|
|
65
|
+
}, w.d = (s, c) => {
|
|
66
|
+
for (var p in c) w.o(c, p) && !w.o(s, p) && Object.defineProperty(s, p, { enumerable: !0, get: c[p] });
|
|
67
|
+
}, w.g = (function() {
|
|
68
|
+
if (typeof globalThis == "object") return globalThis;
|
|
69
|
+
try {
|
|
70
|
+
return this || new Function("return this")();
|
|
71
|
+
} catch {
|
|
72
|
+
if (typeof window == "object") return window;
|
|
73
|
+
}
|
|
74
|
+
})(), w.o = (s, c) => Object.prototype.hasOwnProperty.call(s, c);
|
|
75
|
+
var J = {};
|
|
76
|
+
return (() => {
|
|
77
|
+
w.d(J, { default: () => oe });
|
|
78
|
+
var s = w(3146), c = w.n(s);
|
|
79
|
+
const p = function(o) {
|
|
80
|
+
return new RegExp(/<[a-z][\s\S]*>/i).test(o);
|
|
81
|
+
}, S = function(o, t) {
|
|
82
|
+
return Math.floor(Math.random() * (t - o + 1)) + o;
|
|
83
|
+
};
|
|
84
|
+
var m = "TYPE_CHARACTER", g = "REMOVE_CHARACTER", h = "REMOVE_ALL", d = "REMOVE_LAST_VISIBLE_NODE", _ = "PAUSE_FOR", O = "CALL_FUNCTION", D = "ADD_HTML_TAG_ELEMENT", x = "CHANGE_DELETE_SPEED", b = "CHANGE_DELAY", R = "CHANGE_CURSOR", y = "PASTE_STRING", T = "HTML_TAG";
|
|
85
|
+
function L(o) {
|
|
86
|
+
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
87
|
+
return typeof t;
|
|
88
|
+
} : function(t) {
|
|
89
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
90
|
+
}, L(o);
|
|
91
|
+
}
|
|
92
|
+
function M(o, t) {
|
|
93
|
+
var a = Object.keys(o);
|
|
94
|
+
if (Object.getOwnPropertySymbols) {
|
|
95
|
+
var r = Object.getOwnPropertySymbols(o);
|
|
96
|
+
t && (r = r.filter((function(A) {
|
|
97
|
+
return Object.getOwnPropertyDescriptor(o, A).enumerable;
|
|
98
|
+
}))), a.push.apply(a, r);
|
|
73
99
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
J.value && (h.value = !1);
|
|
85
|
-
});
|
|
86
|
-
const n = R([]), N = m(!1);
|
|
87
|
-
j(v, () => {
|
|
88
|
-
N.value = !1;
|
|
89
|
-
});
|
|
90
|
-
const X = ie(async () => {
|
|
91
|
-
if (M.value)
|
|
92
|
-
return se(new Pe(M.value));
|
|
93
|
-
}, null), C = new qe(16);
|
|
94
|
-
Ie(
|
|
95
|
-
() => [de.value, v.value, h.value],
|
|
96
|
-
async ([t, e, a], p, b) => {
|
|
97
|
-
p?.[0] !== t && C.clear();
|
|
98
|
-
let g = !1;
|
|
99
|
-
if (b(() => {
|
|
100
|
-
g = !0;
|
|
101
|
-
}), !t) return;
|
|
102
|
-
n.value = t.search(e).slice(0, 16), N.value = !0;
|
|
103
|
-
const ye = a ? await Promise.all(n.value.map((i) => ve(i.id))) : [];
|
|
104
|
-
if (g) return;
|
|
105
|
-
for (const { id: i, mod: A } of ye) {
|
|
106
|
-
const I = i.slice(0, i.indexOf("#"));
|
|
107
|
-
let w = C.get(I);
|
|
108
|
-
if (w) continue;
|
|
109
|
-
w = /* @__PURE__ */ new Map(), C.set(I, w);
|
|
110
|
-
const x = A.default ?? A;
|
|
111
|
-
if (x?.render || x?.setup) {
|
|
112
|
-
const f = Te(x);
|
|
113
|
-
f.config.warnHandler = () => {
|
|
114
|
-
}, f.provide(_e, $), Object.defineProperties(f.config.globalProperties, {
|
|
115
|
-
$frontmatter: {
|
|
116
|
-
get() {
|
|
117
|
-
return $.frontmatter.value;
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
$params: {
|
|
121
|
-
get() {
|
|
122
|
-
return $.page.value.params;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
const ee = document.createElement("div");
|
|
127
|
-
f.mount(ee), ee.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach((T) => {
|
|
128
|
-
const te = T.querySelector("a")?.getAttribute("href"), le = te?.startsWith("#") && te.slice(1);
|
|
129
|
-
if (!le) return;
|
|
130
|
-
let ae = "";
|
|
131
|
-
for (; (T = T.nextElementSibling) && !/^h[1-6]$/i.test(T.tagName); )
|
|
132
|
-
ae += T.outerHTML;
|
|
133
|
-
w.set(le, ae);
|
|
134
|
-
}), f.unmount();
|
|
100
|
+
return a;
|
|
101
|
+
}
|
|
102
|
+
function C(o) {
|
|
103
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
104
|
+
var a = arguments[t] != null ? arguments[t] : {};
|
|
105
|
+
t % 2 ? M(Object(a), !0).forEach((function(r) {
|
|
106
|
+
u(o, r, a[r]);
|
|
107
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(a)) : M(Object(a)).forEach((function(r) {
|
|
108
|
+
Object.defineProperty(o, r, Object.getOwnPropertyDescriptor(a, r));
|
|
109
|
+
}));
|
|
135
110
|
}
|
|
136
|
-
|
|
111
|
+
return o;
|
|
137
112
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
X.value?.markRegExp(be(Z), { done: i });
|
|
113
|
+
function N(o) {
|
|
114
|
+
return (function(t) {
|
|
115
|
+
if (Array.isArray(t)) return U(t);
|
|
116
|
+
})(o) || (function(t) {
|
|
117
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
118
|
+
})(o) || (function(t, a) {
|
|
119
|
+
if (t) {
|
|
120
|
+
if (typeof t == "string") return U(t, a);
|
|
121
|
+
var r = {}.toString.call(t).slice(8, -1);
|
|
122
|
+
return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? U(t, a) : void 0;
|
|
149
123
|
}
|
|
150
|
-
})
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
i.querySelector('mark[data-markjs="true"]')?.scrollIntoView({ block: "center" });
|
|
155
|
-
M.value?.firstElementChild?.scrollIntoView({ block: "start" });
|
|
156
|
-
},
|
|
157
|
-
{ debounce: 200, immediate: !0 }
|
|
158
|
-
);
|
|
159
|
-
async function ve(t) {
|
|
160
|
-
const e = Ne(t.slice(0, t.indexOf("#")));
|
|
161
|
-
try {
|
|
162
|
-
if (!e) throw new Error(`Cannot find file for id: ${t}`);
|
|
163
|
-
return { id: t, mod: await import(
|
|
164
|
-
/*@vite-ignore*/
|
|
165
|
-
e
|
|
166
|
-
) };
|
|
167
|
-
} catch (a) {
|
|
168
|
-
return console.error(a), { id: t, mod: {} };
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
const F = m(), pe = V(() => v.value?.length <= 0);
|
|
172
|
-
function U(t = !0) {
|
|
173
|
-
F.value?.focus(), t && F.value?.select();
|
|
174
|
-
}
|
|
175
|
-
B(() => {
|
|
176
|
-
U();
|
|
177
|
-
});
|
|
178
|
-
function fe(t) {
|
|
179
|
-
t.pointerType === "mouse" && U();
|
|
180
|
-
}
|
|
181
|
-
const o = m(-1), k = m(!0);
|
|
182
|
-
j(n, (t) => {
|
|
183
|
-
o.value = t.length ? 0 : -1, q();
|
|
184
|
-
});
|
|
185
|
-
function q() {
|
|
186
|
-
y(() => {
|
|
187
|
-
document.querySelector(".result.selected")?.scrollIntoView({ block: "nearest" });
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
H("ArrowUp", (t) => {
|
|
191
|
-
t.preventDefault(), o.value--, o.value < 0 && (o.value = n.value.length - 1), k.value = !0, q();
|
|
192
|
-
}), H("ArrowDown", (t) => {
|
|
193
|
-
t.preventDefault(), o.value++, o.value >= n.value.length && (o.value = 0), k.value = !0, q();
|
|
194
|
-
});
|
|
195
|
-
const me = Ke();
|
|
196
|
-
H("Enter", (t) => {
|
|
197
|
-
if (t.isComposing || t.target instanceof HTMLButtonElement && t.target.type !== "submit")
|
|
198
|
-
return;
|
|
199
|
-
const e = n.value[o.value];
|
|
200
|
-
if (t.target instanceof HTMLInputElement && !e) {
|
|
201
|
-
t.preventDefault();
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
e && (me.go(e.id), _("close"));
|
|
205
|
-
}), H("Escape", () => {
|
|
206
|
-
_("close");
|
|
207
|
-
});
|
|
208
|
-
const c = je({
|
|
209
|
-
modal: {
|
|
210
|
-
displayDetails: "Display detailed list",
|
|
211
|
-
resetButtonTitle: "Reset search",
|
|
212
|
-
backButtonTitle: "Close search",
|
|
213
|
-
noResultsText: "No results for",
|
|
214
|
-
footer: {
|
|
215
|
-
selectText: "to select",
|
|
216
|
-
selectKeyAriaLabel: "enter",
|
|
217
|
-
navigateText: "to navigate",
|
|
218
|
-
navigateUpKeyAriaLabel: "up arrow",
|
|
219
|
-
navigateDownKeyAriaLabel: "down arrow",
|
|
220
|
-
closeText: "to close",
|
|
221
|
-
closeKeyAriaLabel: "escape"
|
|
124
|
+
})(o) || (function() {
|
|
125
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
126
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
127
|
+
})();
|
|
222
128
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
e
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
])) : P("", !0)
|
|
410
|
-
])
|
|
411
|
-
], 42, st)
|
|
412
|
-
], 8, ot))), 128)),
|
|
413
|
-
s(v) && !n.value.length && N.value ? (u(), d("li", pt, [
|
|
414
|
-
S(L(s(c)("modal.noResultsText")) + ' "', 1),
|
|
415
|
-
l("strong", null, L(s(v)), 1),
|
|
416
|
-
e[21] || (e[21] = S('" ', -1))
|
|
417
|
-
])) : P("", !0)
|
|
418
|
-
], 40, at),
|
|
419
|
-
l("div", ft, [
|
|
420
|
-
l("span", null, [
|
|
421
|
-
l("kbd", {
|
|
422
|
-
"aria-label": s(c)("modal.footer.navigateUpKeyAriaLabel")
|
|
423
|
-
}, [...e[22] || (e[22] = [
|
|
424
|
-
l("span", { class: "vpi-arrow-up navigate-icon" }, null, -1)
|
|
425
|
-
])], 8, mt),
|
|
426
|
-
l("kbd", {
|
|
427
|
-
"aria-label": s(c)("modal.footer.navigateDownKeyAriaLabel")
|
|
428
|
-
}, [...e[23] || (e[23] = [
|
|
429
|
-
l("span", { class: "vpi-arrow-down navigate-icon" }, null, -1)
|
|
430
|
-
])], 8, ht),
|
|
431
|
-
S(" " + L(s(c)("modal.footer.navigateText")), 1)
|
|
432
|
-
]),
|
|
433
|
-
l("span", null, [
|
|
434
|
-
l("kbd", {
|
|
435
|
-
"aria-label": s(c)("modal.footer.selectKeyAriaLabel")
|
|
436
|
-
}, [...e[24] || (e[24] = [
|
|
437
|
-
l("span", { class: "vpi-corner-down-left navigate-icon" }, null, -1)
|
|
438
|
-
])], 8, bt),
|
|
439
|
-
S(" " + L(s(c)("modal.footer.selectText")), 1)
|
|
440
|
-
]),
|
|
441
|
-
l("span", null, [
|
|
442
|
-
l("kbd", {
|
|
443
|
-
"aria-label": s(c)("modal.footer.closeKeyAriaLabel")
|
|
444
|
-
}, "esc", 8, gt),
|
|
445
|
-
S(" " + L(s(c)("modal.footer.closeText")), 1)
|
|
446
|
-
])
|
|
447
|
-
])
|
|
448
|
-
], 64))
|
|
449
|
-
])
|
|
450
|
-
], 8, ze)
|
|
451
|
-
]));
|
|
452
|
-
}
|
|
453
|
-
});
|
|
129
|
+
function U(o, t) {
|
|
130
|
+
(t == null || t > o.length) && (t = o.length);
|
|
131
|
+
for (var a = 0, r = Array(t); a < t; a++) r[a] = o[a];
|
|
132
|
+
return r;
|
|
133
|
+
}
|
|
134
|
+
function re(o, t) {
|
|
135
|
+
for (var a = 0; a < t.length; a++) {
|
|
136
|
+
var r = t[a];
|
|
137
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(o, $(r.key), r);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function u(o, t, a) {
|
|
141
|
+
return (t = $(t)) in o ? Object.defineProperty(o, t, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : o[t] = a, o;
|
|
142
|
+
}
|
|
143
|
+
function $(o) {
|
|
144
|
+
var t = (function(a) {
|
|
145
|
+
if (L(a) != "object" || !a) return a;
|
|
146
|
+
var r = a[Symbol.toPrimitive];
|
|
147
|
+
if (r !== void 0) {
|
|
148
|
+
var A = r.call(a, "string");
|
|
149
|
+
if (L(A) != "object") return A;
|
|
150
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
151
|
+
}
|
|
152
|
+
return String(a);
|
|
153
|
+
})(o);
|
|
154
|
+
return L(t) == "symbol" ? t : t + "";
|
|
155
|
+
}
|
|
156
|
+
const oe = (function() {
|
|
157
|
+
function o(r, A) {
|
|
158
|
+
var e = this;
|
|
159
|
+
if ((function(n, i) {
|
|
160
|
+
if (!(n instanceof i)) throw new TypeError("Cannot call a class as a function");
|
|
161
|
+
})(this, o), u(this, "state", { cursorAnimation: null, lastFrameTime: null, pauseUntil: null, eventQueue: [], eventLoop: null, eventLoopPaused: !1, reverseCalledEvents: [], calledEvents: [], visibleNodes: [], initialOptions: null, elements: { container: null, wrapper: document.createElement("span"), cursor: document.createElement("span") } }), u(this, "options", { strings: null, cursor: "|", delay: "natural", pauseFor: 1500, deleteSpeed: "natural", loop: !1, autoStart: !1, devMode: !1, skipAddStyles: !1, wrapperClassName: "Typewriter__wrapper", cursorClassName: "Typewriter__cursor", stringSplitter: null, onCreateTextNode: null, onRemoveNode: null }), u(this, "setupWrapperElement", (function() {
|
|
162
|
+
e.state.elements.container && (e.state.elements.wrapper.className = e.options.wrapperClassName, e.state.elements.cursor.className = e.options.cursorClassName, e.state.elements.cursor.innerHTML = e.options.cursor, e.state.elements.container.innerHTML = "", e.state.elements.container.appendChild(e.state.elements.wrapper), e.state.elements.container.appendChild(e.state.elements.cursor));
|
|
163
|
+
})), u(this, "start", (function() {
|
|
164
|
+
return e.state.eventLoopPaused = !1, e.runEventLoop(), e;
|
|
165
|
+
})), u(this, "pause", (function() {
|
|
166
|
+
return e.state.eventLoopPaused = !0, e;
|
|
167
|
+
})), u(this, "stop", (function() {
|
|
168
|
+
return e.state.eventLoop && ((0, s.cancel)(e.state.eventLoop), e.state.eventLoop = null), e;
|
|
169
|
+
})), u(this, "pauseFor", (function(n) {
|
|
170
|
+
return e.addEventToQueue(_, { ms: n }), e;
|
|
171
|
+
})), u(this, "typeOutAllStrings", (function() {
|
|
172
|
+
return typeof e.options.strings == "string" ? (e.typeString(e.options.strings).pauseFor(e.options.pauseFor), e) : (e.options.strings.forEach((function(n) {
|
|
173
|
+
e.typeString(n).pauseFor(e.options.pauseFor).deleteAll(e.options.deleteSpeed);
|
|
174
|
+
})), e);
|
|
175
|
+
})), u(this, "typeString", (function(n) {
|
|
176
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
177
|
+
if (p(n)) return e.typeOutHTMLString(n, i);
|
|
178
|
+
if (n) {
|
|
179
|
+
var f = (e.options || {}).stringSplitter, v = typeof f == "function" ? f(n) : n.split("");
|
|
180
|
+
e.typeCharacters(v, i);
|
|
181
|
+
}
|
|
182
|
+
return e;
|
|
183
|
+
})), u(this, "pasteString", (function(n) {
|
|
184
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
185
|
+
return p(n) ? e.typeOutHTMLString(n, i, !0) : (n && e.addEventToQueue(y, { character: n, node: i }), e);
|
|
186
|
+
})), u(this, "typeOutHTMLString", (function(n) {
|
|
187
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, f = arguments.length > 2 ? arguments[2] : void 0, v = (function(k) {
|
|
188
|
+
var j = document.createElement("div");
|
|
189
|
+
return j.innerHTML = k, j.childNodes;
|
|
190
|
+
})(n);
|
|
191
|
+
if (v.length > 0) for (var l = 0; l < v.length; l++) {
|
|
192
|
+
var E = v[l], P = E.innerHTML;
|
|
193
|
+
E && E.nodeType !== 3 ? (E.innerHTML = "", e.addEventToQueue(D, { node: E, parentNode: i }), f ? e.pasteString(P, E) : e.typeString(P, E)) : E.textContent && (f ? e.pasteString(E.textContent, i) : e.typeString(E.textContent, i));
|
|
194
|
+
}
|
|
195
|
+
return e;
|
|
196
|
+
})), u(this, "deleteAll", (function() {
|
|
197
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "natural";
|
|
198
|
+
return e.addEventToQueue(h, { speed: n }), e;
|
|
199
|
+
})), u(this, "changeDeleteSpeed", (function(n) {
|
|
200
|
+
if (!n) throw new Error("Must provide new delete speed");
|
|
201
|
+
return e.addEventToQueue(x, { speed: n }), e;
|
|
202
|
+
})), u(this, "changeDelay", (function(n) {
|
|
203
|
+
if (!n) throw new Error("Must provide new delay");
|
|
204
|
+
return e.addEventToQueue(b, { delay: n }), e;
|
|
205
|
+
})), u(this, "changeCursor", (function(n) {
|
|
206
|
+
if (!n) throw new Error("Must provide new cursor");
|
|
207
|
+
return e.addEventToQueue(R, { cursor: n }), e;
|
|
208
|
+
})), u(this, "deleteChars", (function(n) {
|
|
209
|
+
if (!n) throw new Error("Must provide amount of characters to delete");
|
|
210
|
+
for (var i = 0; i < n; i++) e.addEventToQueue(g);
|
|
211
|
+
return e;
|
|
212
|
+
})), u(this, "callFunction", (function(n, i) {
|
|
213
|
+
if (!n || typeof n != "function") throw new Error("Callback must be a function");
|
|
214
|
+
return e.addEventToQueue(O, { cb: n, thisArg: i }), e;
|
|
215
|
+
})), u(this, "typeCharacters", (function(n) {
|
|
216
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
217
|
+
if (!n || !Array.isArray(n)) throw new Error("Characters must be an array");
|
|
218
|
+
return n.forEach((function(f) {
|
|
219
|
+
e.addEventToQueue(m, { character: f, node: i });
|
|
220
|
+
})), e;
|
|
221
|
+
})), u(this, "removeCharacters", (function(n) {
|
|
222
|
+
if (!n || !Array.isArray(n)) throw new Error("Characters must be an array");
|
|
223
|
+
return n.forEach((function() {
|
|
224
|
+
e.addEventToQueue(g);
|
|
225
|
+
})), e;
|
|
226
|
+
})), u(this, "addEventToQueue", (function(n, i) {
|
|
227
|
+
var f = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
228
|
+
return e.addEventToStateProperty(n, i, f, "eventQueue");
|
|
229
|
+
})), u(this, "addReverseCalledEvent", (function(n, i) {
|
|
230
|
+
var f = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
231
|
+
return e.options.loop ? e.addEventToStateProperty(n, i, f, "reverseCalledEvents") : e;
|
|
232
|
+
})), u(this, "addEventToStateProperty", (function(n, i) {
|
|
233
|
+
var f = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], v = arguments.length > 3 ? arguments[3] : void 0, l = { eventName: n, eventArgs: i || {} };
|
|
234
|
+
return e.state[v] = f ? [l].concat(N(e.state[v])) : [].concat(N(e.state[v]), [l]), e;
|
|
235
|
+
})), u(this, "runEventLoop", (function() {
|
|
236
|
+
e.state.lastFrameTime || (e.state.lastFrameTime = Date.now());
|
|
237
|
+
var n = Date.now(), i = n - e.state.lastFrameTime;
|
|
238
|
+
if (!e.state.eventQueue.length) {
|
|
239
|
+
if (!e.options.loop) return;
|
|
240
|
+
e.state.eventQueue = N(e.state.calledEvents), e.state.calledEvents = [], e.options = C({}, e.state.initialOptions);
|
|
241
|
+
}
|
|
242
|
+
if (e.state.eventLoop = c()(e.runEventLoop), !e.state.eventLoopPaused) {
|
|
243
|
+
if (e.state.pauseUntil) {
|
|
244
|
+
if (n < e.state.pauseUntil) return;
|
|
245
|
+
e.state.pauseUntil = null;
|
|
246
|
+
}
|
|
247
|
+
var f, v = N(e.state.eventQueue), l = v.shift();
|
|
248
|
+
if (!(i <= (f = l.eventName === d || l.eventName === g ? e.options.deleteSpeed === "natural" ? S(40, 80) : e.options.deleteSpeed : e.options.delay === "natural" ? S(120, 160) : e.options.delay))) {
|
|
249
|
+
var E = l.eventName, P = l.eventArgs;
|
|
250
|
+
switch (e.logInDevMode({ currentEvent: l, state: e.state, delay: f }), E) {
|
|
251
|
+
case y:
|
|
252
|
+
case m:
|
|
253
|
+
var k = P.character, j = P.node, X = document.createTextNode(k), F = X;
|
|
254
|
+
e.options.onCreateTextNode && typeof e.options.onCreateTextNode == "function" && (F = e.options.onCreateTextNode(k, X)), F && (j ? j.appendChild(F) : e.state.elements.wrapper.appendChild(F)), e.state.visibleNodes = [].concat(N(e.state.visibleNodes), [{ type: "TEXT_NODE", character: k, node: F }]);
|
|
255
|
+
break;
|
|
256
|
+
case g:
|
|
257
|
+
v.unshift({ eventName: d, eventArgs: { removingCharacterNode: !0 } });
|
|
258
|
+
break;
|
|
259
|
+
case _:
|
|
260
|
+
var ae = l.eventArgs.ms;
|
|
261
|
+
e.state.pauseUntil = Date.now() + parseInt(ae);
|
|
262
|
+
break;
|
|
263
|
+
case O:
|
|
264
|
+
var K = l.eventArgs, se = K.cb, ie = K.thisArg;
|
|
265
|
+
se.call(ie, { elements: e.state.elements });
|
|
266
|
+
break;
|
|
267
|
+
case D:
|
|
268
|
+
var Z = l.eventArgs, Y = Z.node, V = Z.parentNode;
|
|
269
|
+
V ? V.appendChild(Y) : e.state.elements.wrapper.appendChild(Y), e.state.visibleNodes = [].concat(N(e.state.visibleNodes), [{ type: T, node: Y, parentNode: V || e.state.elements.wrapper }]);
|
|
270
|
+
break;
|
|
271
|
+
case h:
|
|
272
|
+
var ue = e.state.visibleNodes, W = P.speed, H = [];
|
|
273
|
+
W && H.push({ eventName: x, eventArgs: { speed: W, temp: !0 } });
|
|
274
|
+
for (var ee = 0, le = ue.length; ee < le; ee++) H.push({ eventName: d, eventArgs: { removingCharacterNode: !1 } });
|
|
275
|
+
W && H.push({ eventName: x, eventArgs: { speed: e.options.deleteSpeed, temp: !0 } }), v.unshift.apply(v, H);
|
|
276
|
+
break;
|
|
277
|
+
case d:
|
|
278
|
+
var ce = l.eventArgs.removingCharacterNode;
|
|
279
|
+
if (e.state.visibleNodes.length) {
|
|
280
|
+
var G = e.state.visibleNodes.pop(), pe = G.type, I = G.node, de = G.character;
|
|
281
|
+
e.options.onRemoveNode && typeof e.options.onRemoveNode == "function" && e.options.onRemoveNode({ node: I, character: de }), I && I.parentNode.removeChild(I), pe === T && ce && v.unshift({ eventName: d, eventArgs: {} });
|
|
282
|
+
}
|
|
283
|
+
break;
|
|
284
|
+
case x:
|
|
285
|
+
e.options.deleteSpeed = l.eventArgs.speed;
|
|
286
|
+
break;
|
|
287
|
+
case b:
|
|
288
|
+
e.options.delay = l.eventArgs.delay;
|
|
289
|
+
break;
|
|
290
|
+
case R:
|
|
291
|
+
e.options.cursor = l.eventArgs.cursor, e.state.elements.cursor.innerHTML = l.eventArgs.cursor;
|
|
292
|
+
}
|
|
293
|
+
e.options.loop && (l.eventName === d || l.eventArgs && l.eventArgs.temp || (e.state.calledEvents = [].concat(N(e.state.calledEvents), [l]))), e.state.eventQueue = v, e.state.lastFrameTime = n;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
})), r) if (typeof r == "string") {
|
|
297
|
+
var B = document.querySelector(r);
|
|
298
|
+
if (!B) throw new Error("Could not find container element");
|
|
299
|
+
this.state.elements.container = B;
|
|
300
|
+
} else this.state.elements.container = r;
|
|
301
|
+
A && (this.options = C(C({}, this.options), A)), this.state.initialOptions = C({}, this.options), this.init();
|
|
302
|
+
}
|
|
303
|
+
var t, a;
|
|
304
|
+
return t = o, (a = [{ key: "init", value: function() {
|
|
305
|
+
var r, A;
|
|
306
|
+
this.setupWrapperElement(), this.addEventToQueue(R, { cursor: this.options.cursor }, !0), this.addEventToQueue(h, null, !0), !window || window.___TYPEWRITER_JS_STYLES_ADDED___ || this.options.skipAddStyles || (r = ".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}", (A = document.createElement("style")).appendChild(document.createTextNode(r)), document.head.appendChild(A), window.___TYPEWRITER_JS_STYLES_ADDED___ = !0), this.options.autoStart === !0 && this.options.strings && this.typeOutAllStrings().start();
|
|
307
|
+
} }, { key: "logInDevMode", value: function(r) {
|
|
308
|
+
this.options.devMode && console.log(r);
|
|
309
|
+
} }]) && re(t.prototype, a), Object.defineProperty(t, "prototype", { writable: !1 }), o;
|
|
310
|
+
})();
|
|
311
|
+
})(), J.default;
|
|
312
|
+
})()));
|
|
313
|
+
})(q), q.exports);
|
|
314
|
+
}
|
|
454
315
|
export {
|
|
455
|
-
|
|
316
|
+
he as __require
|
|
456
317
|
};
|