prozilla-os 2.0.1 → 2.0.6

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/main.js CHANGED
@@ -1,4210 +1,12 @@
1
- import { App as Gt, AppsConfig as Xt, CommandsManager as sn, useShell as ln, USERNAME as fn, HOSTNAME as un, useHistory as cn, WebView as dn, isValidUrl as mn } from "@prozilla-os/core";
2
1
  export * from "@prozilla-os/core";
3
- import { Vector2 as Jt } from "@prozilla-os/shared";
4
2
  export * from "@prozilla-os/shared";
5
3
  export * from "@prozilla-os/file-explorer";
6
- import { jsx as I, jsxs as Y, Fragment as gn } from "react/jsx-runtime";
7
- import * as be from "react";
8
- import Zt, { forwardRef as hn, useRef as oe, useState as we, useEffect as Z, useLayoutEffect as pn, useId as vn } from "react";
4
+ export * from "@prozilla-os/terminal";
9
5
  export * from "@prozilla-os/text-editor";
10
6
  export * from "@prozilla-os/settings";
11
7
  export * from "@prozilla-os/media-viewer";
8
+ export * from "@prozilla-os/browser";
12
9
  export * from "@prozilla-os/calculator";
13
10
  export * from "@prozilla-os/app-center";
14
- (function() {
15
- try {
16
- if (typeof document < "u") {
17
- var e = document.createElement("style");
18
- e.appendChild(document.createTextNode('._Terminal_cqg7e_1{--char-width: .585rem;display:flex;flex-direction:column;align-items:flex-start;padding:.5rem;overflow:auto;height:100%;cursor:text}._Terminal_cqg7e_1 *{font-family:var(--mono-font-family);letter-spacing:-.03em}._Terminal_cqg7e_1 p,._Terminal_cqg7e_1 pre{margin:0;height:1.25rem;line-height:inherit;font-size:inherit;letter-spacing:inherit}._Prefix_cqg7e_26{display:flex;width:max-content;white-space:nowrap}._Input_cqg7e_32,._Output_cqg7e_32{display:flex;flex-direction:row;align-items:center;width:100%;line-height:1.25rem;font-size:1rem;text-align:start;white-space:pre}._Input_cqg7e_32{height:1.25rem}._Input-container_cqg7e_47{--cursor-width: var(--char-width);--cursor-offset: 0;position:relative;height:100%;width:fit-content}._Input-container_cqg7e_47:after{content:"";position:absolute;top:0;left:calc(var(--cursor-offset) * var(--char-width) * .9746124950079872);width:var(--cursor-width);height:100%;background-color:var(--foreground-color-0);animation:_blink_cqg7e_1 1s step-end infinite}._Input-container_cqg7e_47 input{color:transparent;position:absolute;left:0;width:100%;padding:0;background:none;border:none;outline:none;font-size:inherit;caret-color:transparent}@keyframes _blink_cqg7e_1{0%,to{background-color:transparent}50%{background-color:var(--foreground-color-0)}}._Input_cqg7e_32 label{position:absolute;width:100%;height:100%;top:0;left:0;cursor:text}._ansi-black-fg_cqg7e_99{color:var(--black-2)}._ansi-red-fg_cqg7e_100{color:var(--red-0)}._ansi-green-fg_cqg7e_101{color:var(--green-0)}._ansi-yellow-fg_cqg7e_102{color:var(--yellow-0)}._ansi-blue-fg_cqg7e_103{color:var(--blue-0)}._ansi-magenta-fg_cqg7e_104{color:var(--purple-0)}._ansi-cyan-fg_cqg7e_105{color:var(--cyan-0)}._ansi-white-fg_cqg7e_106{color:var(--foreground-color-0)}._ansi-bright-black-fg_cqg7e_108{color:var(--black-2)}._ansi-bright-red-fg_cqg7e_109{color:var(--red-0)}._ansi-bright-green-fg_cqg7e_110{color:var(--green-0)}._ansi-bright-yellow-fg_cqg7e_111{color:var(--yellow-0)}._ansi-bright-blue-fg_cqg7e_112{color:var(--blue-0)}._ansi-bright-magenta-fg_cqg7e_113{color:var(--purple-0)}._ansi-bright-cyan-fg_cqg7e_114{color:var(--cyan-0)}._ansi-bright-white-fg_cqg7e_115{color:var(--foreground-color-0)}._ansi-black-bg_cqg7e_117{background-color:var(--black-2)}._ansi-red-bg_cqg7e_118{background-color:var(--red-0)}._ansi-green-bg_cqg7e_119{background-color:var(--green-0)}._ansi-yellow-bg_cqg7e_120{background-color:var(--yellow-0)}._ansi-blue-bg_cqg7e_121{background-color:var(--blue-0)}._ansi-magenta-bg_cqg7e_122{background-color:var(--purple-0)}._ansi-cyan-bg_cqg7e_123{background-color:var(--cyan-0)}._ansi-white-bg_cqg7e_124{background-color:var(--foreground-color-0)}._ansi-dim_cqg7e_126{opacity:.65}')), document.head.appendChild(e);
19
- }
20
- } catch (t) {
21
- console.error("vite-plugin-css-injected-by-js", t);
22
- }
23
- })();
24
- const bn = "_Terminal_cqg7e_1", yn = "_Prefix_cqg7e_26", _n = "_Input_cqg7e_32", xn = "_Output_cqg7e_32", wn = "_blink_cqg7e_1", D = {
25
- Terminal: bn,
26
- Prefix: yn,
27
- Input: _n,
28
- Output: xn,
29
- "Input-container": "_Input-container_cqg7e_47",
30
- blink: wn,
31
- "ansi-black-fg": "_ansi-black-fg_cqg7e_99",
32
- "ansi-red-fg": "_ansi-red-fg_cqg7e_100",
33
- "ansi-green-fg": "_ansi-green-fg_cqg7e_101",
34
- "ansi-yellow-fg": "_ansi-yellow-fg_cqg7e_102",
35
- "ansi-blue-fg": "_ansi-blue-fg_cqg7e_103",
36
- "ansi-magenta-fg": "_ansi-magenta-fg_cqg7e_104",
37
- "ansi-cyan-fg": "_ansi-cyan-fg_cqg7e_105",
38
- "ansi-white-fg": "_ansi-white-fg_cqg7e_106",
39
- "ansi-bright-black-fg": "_ansi-bright-black-fg_cqg7e_108",
40
- "ansi-bright-red-fg": "_ansi-bright-red-fg_cqg7e_109",
41
- "ansi-bright-green-fg": "_ansi-bright-green-fg_cqg7e_110",
42
- "ansi-bright-yellow-fg": "_ansi-bright-yellow-fg_cqg7e_111",
43
- "ansi-bright-blue-fg": "_ansi-bright-blue-fg_cqg7e_112",
44
- "ansi-bright-magenta-fg": "_ansi-bright-magenta-fg_cqg7e_113",
45
- "ansi-bright-cyan-fg": "_ansi-bright-cyan-fg_cqg7e_114",
46
- "ansi-bright-white-fg": "_ansi-bright-white-fg_cqg7e_115",
47
- "ansi-black-bg": "_ansi-black-bg_cqg7e_117",
48
- "ansi-red-bg": "_ansi-red-bg_cqg7e_118",
49
- "ansi-green-bg": "_ansi-green-bg_cqg7e_119",
50
- "ansi-yellow-bg": "_ansi-yellow-bg_cqg7e_120",
51
- "ansi-blue-bg": "_ansi-blue-bg_cqg7e_121",
52
- "ansi-magenta-bg": "_ansi-magenta-bg_cqg7e_122",
53
- "ansi-cyan-bg": "_ansi-cyan-bg_cqg7e_123",
54
- "ansi-white-bg": "_ansi-white-bg_cqg7e_124",
55
- "ansi-dim": "_ansi-dim_cqg7e_126"
56
- };
57
- function kn(e) {
58
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
59
- }
60
- var Fe, mt;
61
- function Sn() {
62
- if (mt) return Fe;
63
- mt = 1;
64
- const e = [
65
- [
66
- { color: "0, 0, 0", class: "ansi-black" },
67
- { color: "187, 0, 0", class: "ansi-red" },
68
- { color: "0, 187, 0", class: "ansi-green" },
69
- { color: "187, 187, 0", class: "ansi-yellow" },
70
- { color: "0, 0, 187", class: "ansi-blue" },
71
- { color: "187, 0, 187", class: "ansi-magenta" },
72
- { color: "0, 187, 187", class: "ansi-cyan" },
73
- { color: "255,255,255", class: "ansi-white" }
74
- ],
75
- [
76
- { color: "85, 85, 85", class: "ansi-bright-black" },
77
- { color: "255, 85, 85", class: "ansi-bright-red" },
78
- { color: "0, 255, 0", class: "ansi-bright-green" },
79
- { color: "255, 255, 85", class: "ansi-bright-yellow" },
80
- { color: "85, 85, 255", class: "ansi-bright-blue" },
81
- { color: "255, 85, 255", class: "ansi-bright-magenta" },
82
- { color: "85, 255, 255", class: "ansi-bright-cyan" },
83
- { color: "255, 255, 255", class: "ansi-bright-white" }
84
- ]
85
- ], t = /(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&amp;|%[A-Fa-f0-9]{2})+)/gm;
86
- class a {
87
- /**
88
- * Anser.escapeForHtml
89
- * Escape the input HTML.
90
- *
91
- * This does the minimum escaping of text to make it compliant with HTML.
92
- * In particular, the '&','<', and '>' characters are escaped. This should
93
- * be run prior to `ansiToHtml`.
94
- *
95
- * @name Anser.escapeForHtml
96
- * @function
97
- * @param {String} txt The input text (containing the ANSI snippets).
98
- * @returns {String} The escaped html.
99
- */
100
- static escapeForHtml(r) {
101
- return new a().escapeForHtml(r);
102
- }
103
- /**
104
- * Anser.linkify
105
- * Adds the links in the HTML.
106
- *
107
- * This replaces any links in the text with anchor tags that display the
108
- * link. You should apply this after you have run `ansiToHtml` on the text.
109
- *
110
- * @name Anser.linkify
111
- * @function
112
- * @param {String} txt The input text.
113
- * @returns {String} The HTML containing the <a> tags (unescaped).
114
- */
115
- static linkify(r) {
116
- return new a().linkify(r);
117
- }
118
- /**
119
- * Anser.ansiToHtml
120
- * This replaces ANSI terminal escape codes with SPAN tags that wrap the
121
- * content.
122
- *
123
- * This function only interprets ANSI SGR (Select Graphic Rendition) codes
124
- * that can be represented in HTML.
125
- * For example, cursor movement codes are ignored and hidden from output.
126
- * The default style uses colors that are very close to the prescribed
127
- * standard. The standard assumes that the text will have a black
128
- * background. These colors are set as inline styles on the SPAN tags.
129
- *
130
- * Another option is to set `use_classes: true` in the options argument.
131
- * This will instead set classes on the spans so the colors can be set via
132
- * CSS. The class names used are of the format `ansi-*-fg/bg` and
133
- * `ansi-bright-*-fg/bg` where `*` is the color name,
134
- * i.e black/red/green/yellow/blue/magenta/cyan/white.
135
- *
136
- * @name Anser.ansiToHtml
137
- * @function
138
- * @param {String} txt The input text.
139
- * @param {Object} options The options passed to the ansiToHTML method.
140
- * @returns {String} The HTML output.
141
- */
142
- static ansiToHtml(r, i) {
143
- return new a().ansiToHtml(r, i);
144
- }
145
- /**
146
- * Anser.ansiToJson
147
- * Converts ANSI input into JSON output.
148
- *
149
- * @name Anser.ansiToJson
150
- * @function
151
- * @param {String} txt The input text.
152
- * @param {Object} options The options passed to the ansiToHTML method.
153
- * @returns {String} The HTML output.
154
- */
155
- static ansiToJson(r, i) {
156
- return new a().ansiToJson(r, i);
157
- }
158
- /**
159
- * Anser.ansiToText
160
- * Converts ANSI input into text output.
161
- *
162
- * @name Anser.ansiToText
163
- * @function
164
- * @param {String} txt The input text.
165
- * @returns {String} The text output.
166
- */
167
- static ansiToText(r) {
168
- return new a().ansiToText(r);
169
- }
170
- /**
171
- * Anser
172
- * The `Anser` class.
173
- *
174
- * @name Anser
175
- * @function
176
- * @returns {Anser}
177
- */
178
- constructor() {
179
- this.fg = this.bg = this.fg_truecolor = this.bg_truecolor = null, this.bright = 0, this.decorations = [];
180
- }
181
- /**
182
- * setupPalette
183
- * Sets up the palette.
184
- *
185
- * @name setupPalette
186
- * @function
187
- */
188
- setupPalette() {
189
- this.PALETTE_COLORS = [];
190
- for (let o = 0; o < 2; ++o)
191
- for (let l = 0; l < 8; ++l)
192
- this.PALETTE_COLORS.push(e[o][l].color);
193
- let r = [0, 95, 135, 175, 215, 255], i = (o, l, f) => r[o] + ", " + r[l] + ", " + r[f];
194
- for (let o = 0; o < 6; ++o)
195
- for (let l = 0; l < 6; ++l)
196
- for (let f = 0; f < 6; ++f)
197
- this.PALETTE_COLORS.push(i(o, l, f));
198
- let s = 8;
199
- for (let o = 0; o < 24; ++o, s += 10)
200
- this.PALETTE_COLORS.push(s + ", " + s + ", " + s);
201
- }
202
- /**
203
- * escapeForHtml
204
- * Escapes the input text.
205
- *
206
- * @name escapeForHtml
207
- * @function
208
- * @param {String} txt The input text.
209
- * @returns {String} The escpaed HTML output.
210
- */
211
- escapeForHtml(r) {
212
- return r.replace(
213
- /[&<>\"]/gm,
214
- (i) => i == "&" ? "&amp;" : i == '"' ? "&quot;" : i == "<" ? "&lt;" : i == ">" ? "&gt;" : ""
215
- );
216
- }
217
- /**
218
- * linkify
219
- * Adds HTML link elements.
220
- *
221
- * @name linkify
222
- * @function
223
- * @param {String} txt The input text.
224
- * @returns {String} The HTML output containing link elements.
225
- */
226
- linkify(r) {
227
- return r.replace(t, (i) => `<a href="${i}">${i}</a>`);
228
- }
229
- /**
230
- * ansiToHtml
231
- * Converts ANSI input into HTML output.
232
- *
233
- * @name ansiToHtml
234
- * @function
235
- * @param {String} txt The input text.
236
- * @param {Object} options The options passed ot the `process` method.
237
- * @returns {String} The HTML output.
238
- */
239
- ansiToHtml(r, i) {
240
- return this.process(r, i, !0);
241
- }
242
- /**
243
- * ansiToJson
244
- * Converts ANSI input into HTML output.
245
- *
246
- * @name ansiToJson
247
- * @function
248
- * @param {String} txt The input text.
249
- * @param {Object} options The options passed ot the `process` method.
250
- * @returns {String} The JSON output.
251
- */
252
- ansiToJson(r, i) {
253
- return i = i || {}, i.json = !0, i.clearLine = !1, this.process(r, i, !0);
254
- }
255
- /**
256
- * ansiToText
257
- * Converts ANSI input into HTML output.
258
- *
259
- * @name ansiToText
260
- * @function
261
- * @param {String} txt The input text.
262
- * @returns {String} The text output.
263
- */
264
- ansiToText(r) {
265
- return this.process(r, {}, !1);
266
- }
267
- /**
268
- * process
269
- * Processes the input.
270
- *
271
- * @name process
272
- * @function
273
- * @param {String} txt The input text.
274
- * @param {Object} options An object passed to `processChunk` method, extended with:
275
- *
276
- * - `json` (Boolean): If `true`, the result will be an object.
277
- * - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output.
278
- *
279
- * @param {Boolean} markup
280
- */
281
- process(r, i, s) {
282
- let o = this, l = r.split(/\033\[/), f = l.shift();
283
- i == null && (i = {}), i.clearLine = /\r/.test(r);
284
- let u = l.map((d) => this.processChunk(d, i, s));
285
- if (i && i.json) {
286
- let d = o.processChunkJson("");
287
- return d.content = f, d.clearLine = i.clearLine, u.unshift(d), i.remove_empty && (u = u.filter((c) => !c.isEmpty())), u;
288
- } else
289
- u.unshift(f);
290
- return u.join("");
291
- }
292
- /**
293
- * processChunkJson
294
- * Processes the current chunk into json output.
295
- *
296
- * @name processChunkJson
297
- * @function
298
- * @param {String} text The input text.
299
- * @param {Object} options An object containing the following fields:
300
- *
301
- * - `json` (Boolean): If `true`, the result will be an object.
302
- * - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output.
303
- *
304
- * @param {Boolean} markup If false, the colors will not be parsed.
305
- * @return {Object} The result object:
306
- *
307
- * - `content` (String): The text.
308
- * - `fg` (String|null): The foreground color.
309
- * - `bg` (String|null): The background color.
310
- * - `fg_truecolor` (String|null): The foreground true color (if 16m color is enabled).
311
- * - `bg_truecolor` (String|null): The background true color (if 16m color is enabled).
312
- * - `clearLine` (Boolean): `true` if a carriageReturn \r was fount at end of line.
313
- * - `was_processed` (Bolean): `true` if the colors were processed, `false` otherwise.
314
- * - `isEmpty` (Function): A function returning `true` if the content is empty, or `false` otherwise.
315
- *
316
- */
317
- processChunkJson(r, i, s) {
318
- i = typeof i > "u" ? {} : i;
319
- let o = i.use_classes = typeof i.use_classes < "u" && i.use_classes, l = i.key = o ? "class" : "color", f = {
320
- content: r,
321
- fg: null,
322
- bg: null,
323
- fg_truecolor: null,
324
- bg_truecolor: null,
325
- isInverted: !1,
326
- clearLine: i.clearLine,
327
- decoration: null,
328
- decorations: [],
329
- was_processed: !1,
330
- isEmpty: () => !f.content
331
- }, u = r.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);
332
- if (!u) return f;
333
- f.content = u[4];
334
- let d = u[2].split(";");
335
- if (u[1] !== "" || u[3] !== "m" || !s)
336
- return f;
337
- let c = this;
338
- for (; d.length > 0; ) {
339
- let g = d.shift(), h = parseInt(g);
340
- if (isNaN(h) || h === 0)
341
- c.fg = c.bg = null, c.decorations = [];
342
- else if (h === 1)
343
- c.decorations.push("bold");
344
- else if (h === 2)
345
- c.decorations.push("dim");
346
- else if (h === 3)
347
- c.decorations.push("italic");
348
- else if (h === 4)
349
- c.decorations.push("underline");
350
- else if (h === 5)
351
- c.decorations.push("blink");
352
- else if (h === 7)
353
- c.decorations.push("reverse");
354
- else if (h === 8)
355
- c.decorations.push("hidden");
356
- else if (h === 9)
357
- c.decorations.push("strikethrough");
358
- else if (h === 21)
359
- c.removeDecoration("bold");
360
- else if (h === 22)
361
- c.removeDecoration("bold"), c.removeDecoration("dim");
362
- else if (h === 23)
363
- c.removeDecoration("italic");
364
- else if (h === 24)
365
- c.removeDecoration("underline");
366
- else if (h === 25)
367
- c.removeDecoration("blink");
368
- else if (h === 27)
369
- c.removeDecoration("reverse");
370
- else if (h === 28)
371
- c.removeDecoration("hidden");
372
- else if (h === 29)
373
- c.removeDecoration("strikethrough");
374
- else if (h === 39)
375
- c.fg = null;
376
- else if (h === 49)
377
- c.bg = null;
378
- else if (h >= 30 && h < 38)
379
- c.fg = e[0][h % 10][l];
380
- else if (h >= 90 && h < 98)
381
- c.fg = e[1][h % 10][l];
382
- else if (h >= 40 && h < 48)
383
- c.bg = e[0][h % 10][l];
384
- else if (h >= 100 && h < 108)
385
- c.bg = e[1][h % 10][l];
386
- else if (h === 38 || h === 48) {
387
- let b = h === 38;
388
- if (d.length >= 1) {
389
- let k = d.shift();
390
- if (k === "5" && d.length >= 1) {
391
- let x = parseInt(d.shift());
392
- if (x >= 0 && x <= 255)
393
- if (!o)
394
- this.PALETTE_COLORS || c.setupPalette(), b ? c.fg = this.PALETTE_COLORS[x] : c.bg = this.PALETTE_COLORS[x];
395
- else {
396
- let w = x >= 16 ? "ansi-palette-" + x : e[x > 7 ? 1 : 0][x % 8].class;
397
- b ? c.fg = w : c.bg = w;
398
- }
399
- } else if (k === "2" && d.length >= 3) {
400
- let x = parseInt(d.shift()), w = parseInt(d.shift()), S = parseInt(d.shift());
401
- if (x >= 0 && x <= 255 && w >= 0 && w <= 255 && S >= 0 && S <= 255) {
402
- let y = x + ", " + w + ", " + S;
403
- o ? b ? (c.fg = "ansi-truecolor", c.fg_truecolor = y) : (c.bg = "ansi-truecolor", c.bg_truecolor = y) : b ? c.fg = y : c.bg = y;
404
- }
405
- }
406
- }
407
- }
408
- }
409
- return c.fg === null && c.bg === null && c.decorations.length === 0 || (f.fg = c.fg, f.bg = c.bg, f.fg_truecolor = c.fg_truecolor, f.bg_truecolor = c.bg_truecolor, f.decorations = c.decorations, f.decoration = c.decorations.slice(-1).pop() || null, f.was_processed = !0), f;
410
- }
411
- /**
412
- * processChunk
413
- * Processes the current chunk of text.
414
- *
415
- * @name processChunk
416
- * @function
417
- * @param {String} text The input text.
418
- * @param {Object} options An object containing the following fields:
419
- *
420
- * - `json` (Boolean): If `true`, the result will be an object.
421
- * - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output.
422
- *
423
- * @param {Boolean} markup If false, the colors will not be parsed.
424
- * @return {Object|String} The result (object if `json` is wanted back or string otherwise).
425
- */
426
- processChunk(r, i, s) {
427
- i = i || {};
428
- let o = this.processChunkJson(r, i, s), l = i.use_classes;
429
- if (o.decorations = o.decorations.filter((h) => {
430
- if (h === "reverse") {
431
- o.fg || (o.fg = e[0][7][l ? "class" : "color"]), o.bg || (o.bg = e[0][0][l ? "class" : "color"]);
432
- let b = o.fg;
433
- o.fg = o.bg, o.bg = b;
434
- let k = o.fg_truecolor;
435
- return o.fg_truecolor = o.bg_truecolor, o.bg_truecolor = k, o.isInverted = !0, !1;
436
- }
437
- return !0;
438
- }), i.json)
439
- return o;
440
- if (o.isEmpty())
441
- return "";
442
- if (!o.was_processed)
443
- return o.content;
444
- let f = [], u = [], d = [], c = {}, g = (h) => {
445
- let b = [], k;
446
- for (k in h)
447
- h.hasOwnProperty(k) && b.push("data-" + k + '="' + this.escapeForHtml(h[k]) + '"');
448
- return b.length > 0 ? " " + b.join(" ") : "";
449
- };
450
- return o.isInverted && (c["ansi-is-inverted"] = "true"), o.fg && (l ? (f.push(o.fg + "-fg"), o.fg_truecolor !== null && (c["ansi-truecolor-fg"] = o.fg_truecolor, o.fg_truecolor = null)) : f.push("color:rgb(" + o.fg + ")")), o.bg && (l ? (f.push(o.bg + "-bg"), o.bg_truecolor !== null && (c["ansi-truecolor-bg"] = o.bg_truecolor, o.bg_truecolor = null)) : f.push("background-color:rgb(" + o.bg + ")")), o.decorations.forEach((h) => {
451
- if (l) {
452
- u.push("ansi-" + h);
453
- return;
454
- }
455
- h === "bold" ? u.push("font-weight:bold") : h === "dim" ? u.push("opacity:0.5") : h === "italic" ? u.push("font-style:italic") : h === "hidden" ? u.push("visibility:hidden") : h === "strikethrough" ? d.push("line-through") : d.push(h);
456
- }), d.length && u.push("text-decoration:" + d.join(" ")), l ? '<span class="' + f.concat(u).join(" ") + '"' + g(c) + ">" + o.content + "</span>" : '<span style="' + f.concat(u).join(";") + '"' + g(c) + ">" + o.content + "</span>";
457
- }
458
- removeDecoration(r) {
459
- const i = this.decorations.indexOf(r);
460
- i >= 0 && this.decorations.splice(i, 1);
461
- }
462
- }
463
- return Fe = a, Fe;
464
- }
465
- var An = Sn();
466
- const In = /* @__PURE__ */ kn(An);
467
- var ne = { exports: {} }, gt;
468
- function En() {
469
- if (gt) return ne.exports;
470
- gt = 1;
471
- function e(r) {
472
- if (!r) return "";
473
- if (!/\r/.test(r)) return r;
474
- for (r = r.replace(/\r+\n/gm, `
475
- `); /\r./.test(r); )
476
- r = r.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm, function(i, s, o) {
477
- return o + s.slice(o.length);
478
- });
479
- return r;
480
- }
481
- function t(r) {
482
- for (var i = 0, s = 0; s < r.length; s++)
483
- r[i].length <= r[s].length && (i = s);
484
- return i;
485
- }
486
- function a(r) {
487
- if (!/\r/.test(r)) return r;
488
- for (var i = r.split("\r"), s = []; i.length > 0; ) {
489
- var o = t(i);
490
- s.push(i[o]), i = i.slice(o + 1);
491
- }
492
- return s.join("\r");
493
- }
494
- function n(r) {
495
- if (!r) return "";
496
- if (!/\r/.test(r)) return r;
497
- if (!/\n/.test(r)) return a(r);
498
- r = r.replace(/\r+\n/gm, `
499
- `);
500
- var i = r.lastIndexOf(`
501
- `);
502
- return e(r.slice(0, i)) + `
503
- ` + a(r.slice(i + 1));
504
- }
505
- return ne.exports = e, ne.exports.escapeCarriageReturn = e, ne.exports.escapeCarriageReturnSafe = n, ne.exports;
506
- }
507
- var Pn = En();
508
- function Cn(e, t) {
509
- return e = Pn.escapeCarriageReturn(Tn(e)), In.ansiToJson(e, {
510
- json: !0,
511
- // eslint-disable-next-line @typescript-eslint/naming-convention
512
- remove_empty: !0,
513
- // eslint-disable-next-line @typescript-eslint/naming-convention
514
- use_classes: t
515
- });
516
- }
517
- function On(e) {
518
- const t = [];
519
- return e.bg && t.push(D[`${e.bg}-bg`]), e.fg && t.push(D[`${e.fg}-fg`]), e.decoration && t.push(D[`ansi-${e.decoration}`]), t.length === 0 ? null : t.join(" ");
520
- }
521
- function Fn(e) {
522
- const t = {};
523
- switch (e.bg && (t.backgroundColor = `rgb(${e.bg})`), e.fg && (t.color = `rgb(${e.fg})`), e.decoration) {
524
- case "bold":
525
- t.fontWeight = "bold";
526
- break;
527
- case "dim":
528
- t.opacity = "0.5";
529
- break;
530
- case "italic":
531
- t.fontStyle = "italic";
532
- break;
533
- case "hidden":
534
- t.visibility = "hidden";
535
- break;
536
- case "strikethrough":
537
- t.textDecoration = "line-through";
538
- break;
539
- case "underline":
540
- t.textDecoration = "underline";
541
- break;
542
- case "blink":
543
- t.textDecoration = "blink";
544
- break;
545
- }
546
- return t;
547
- }
548
- function Nn(e, t, a, n) {
549
- const r = t ? null : Fn(a), i = t ? On(a) : null;
550
- if (!e)
551
- return be.createElement(
552
- "pre",
553
- { style: r, key: n, className: i },
554
- a.content
555
- );
556
- const s = [], o = /(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;
557
- let l = 0, f;
558
- for (; (f = o.exec(a.content)) !== null; ) {
559
- const [, u, d] = f, c = f.index + u.length;
560
- c > l && s.push(a.content.substring(l, c));
561
- const g = d.startsWith("www.") ? `http://${d}` : d;
562
- s.push(
563
- be.createElement(
564
- "a",
565
- {
566
- key: l,
567
- href: g,
568
- target: "_blank"
569
- },
570
- `${d}`
571
- )
572
- ), l = o.lastIndex;
573
- }
574
- return l < a.content.length && s.push(a.content.substring(l)), be.createElement("span", { style: r, key: n, className: i }, s);
575
- }
576
- function Qt(e) {
577
- const { className: t, useClasses: a, children: n, linkify: r } = e;
578
- return be.createElement(
579
- "code",
580
- { className: t },
581
- Cn(n ?? "", a ?? !1).map(
582
- Nn.bind(null, r ?? !1, a ?? !1)
583
- )
584
- );
585
- }
586
- function Tn(e) {
587
- let t = e;
588
- do
589
- e = t, t = e.replace(/[^\n]\x08/gm, "");
590
- while (t.length < e.length);
591
- return e;
592
- }
593
- const Ne = hn(({ text: e }, t) => {
594
- const a = e?.split(`
595
- `);
596
- return /* @__PURE__ */ I("div", { ref: t, children: a?.map(
597
- (n, r) => /* @__PURE__ */ I(Qt, { className: D.Output, useClasses: !0, children: n === "" ? " " : n }, r)
598
- ) });
599
- });
600
- function jn({ value: e, prefix: t, onChange: a, onKeyUp: n, onKeyDown: r, inputRef: i }) {
601
- const [s, o] = we(0), l = oe(null);
602
- pn(() => {
603
- const u = i.current;
604
- u && l.current !== null ? (u.setSelectionRange(l.current, l.current), o(l.current), l.current = null) : u && u.selectionStart !== null && o(u.selectionStart);
605
- }, [e, i]);
606
- const f = () => {
607
- const u = i.current?.selectionStart;
608
- u != null && o(u);
609
- };
610
- return /* @__PURE__ */ Y("span", { className: D.Input, children: [
611
- t && /* @__PURE__ */ I(Qt, { className: D.Prefix, useClasses: !0, children: t }),
612
- /* @__PURE__ */ Y("span", { className: D["Input-container"], style: { "--cursor-offset": s }, children: [
613
- /* @__PURE__ */ I("span", { "aria-hidden": "true", children: e }),
614
- /* @__PURE__ */ I(
615
- "input",
616
- {
617
- id: "input",
618
- value: e,
619
- "aria-label": "Command input",
620
- onChange: (u) => {
621
- l.current = u.target.selectionStart, a(u);
622
- },
623
- ref: i,
624
- onKeyUp: n,
625
- onKeyDown: (u) => {
626
- r?.(u), f();
627
- },
628
- onClick: f,
629
- onSelect: f,
630
- spellCheck: !1,
631
- autoComplete: "off",
632
- autoFocus: !0
633
- }
634
- )
635
- ] })
636
- ] });
637
- }
638
- function $n({ app: e, path: t, input: a, setTitle: n, close: r, active: i, focus: s }) {
639
- const o = oe(null), l = oe(null), f = oe(Jt.ZERO), [u, d] = we(0), [c, g] = ln({
640
- app: e,
641
- path: t,
642
- input: a,
643
- exit: r,
644
- sizeRef: f
645
- });
646
- Z(() => {
647
- n?.(`${fn}@${un}: ${g.workingDirectory.root ? "/" : g.workingDirectory.path}`);
648
- }, [g.workingDirectory.path, g.workingDirectory.root, n]), Z(() => {
649
- i && (g.stream ? o.current?.focus() : l.current?.focus());
650
- }, [i, g.stream]), Z(() => {
651
- if (l.current && !g.stream) {
652
- const y = g.line.length;
653
- l.current.setSelectionRange(y, y);
654
- }
655
- }, [g.historyOffset]);
656
- const h = () => {
657
- o.current && (o.current.scrollTop = o.current.scrollHeight);
658
- };
659
- Z(() => {
660
- h();
661
- }, [g.history.length, g.line, g.ttyBuffer]), Z(() => {
662
- if (!o.current) return;
663
- const y = () => {
664
- if (!o.current) return;
665
- const P = getComputedStyle(o.current), T = parseFloat(P.fontSize), B = 0.585 * T, G = 1.25 * T, { width: he, height: on } = o.current.getBoundingClientRect();
666
- f.current.set(
667
- Math.ceil(he / B),
668
- Math.ceil(on / G)
669
- );
670
- }, p = new ResizeObserver(y);
671
- return p.observe(o.current), y(), () => p.disconnect();
672
- }, []);
673
- const b = (y) => {
674
- const { key: p } = y;
675
- if ((y.ctrlKey || y.metaKey) && p === "c" && !y.shiftKey) {
676
- y.preventDefault(), c.interrupt();
677
- return;
678
- }
679
- if (!g.stream)
680
- if (p === "Tab")
681
- y.preventDefault(), c.autoComplete();
682
- else if (p === "Enter") {
683
- const P = y.target.value;
684
- c.run(P), d((T) => T + 1);
685
- } else p === "ArrowUp" ? (y.preventDefault(), c.historySearch(1)) : p === "ArrowDown" && (y.preventDefault(), c.historySearch(-1));
686
- }, k = (y) => {
687
- c.setLine(y.target.value);
688
- }, x = () => {
689
- if (g.isUsingAltScreen)
690
- return g.ttyBuffer ? /* @__PURE__ */ I(Ne, { text: g.ttyBuffer }) : null;
691
- let y = 0;
692
- for (let p = g.history.length - 1; p >= 0; p--)
693
- if (g.history[p].clear) {
694
- y = p + 1;
695
- break;
696
- }
697
- return /* @__PURE__ */ Y(gn, { children: [
698
- g.history.slice(y).map(
699
- (p, P) => /* @__PURE__ */ I(Ne, { text: p.text }, P)
700
- ),
701
- g.ttyBuffer && /* @__PURE__ */ I(Ne, { text: g.ttyBuffer })
702
- ] });
703
- }, w = (y) => {
704
- s?.(y), y.button === 2 && (y.preventDefault(), navigator.clipboard.readText().then((p) => {
705
- const P = l.current;
706
- if (!P) return;
707
- const T = P.selectionStart ?? g.line.length, B = P.selectionEnd ?? g.line.length;
708
- c.setLine((he) => he.substring(0, T) + p + he.substring(B));
709
- const G = T + p.length;
710
- setTimeout(() => {
711
- P.focus(), P.setSelectionRange(G, G);
712
- }, 0);
713
- }).catch((p) => {
714
- console.error(p);
715
- }));
716
- }, S = (y) => {
717
- y.preventDefault();
718
- };
719
- return /* @__PURE__ */ Y(
720
- "div",
721
- {
722
- ref: o,
723
- tabIndex: 0,
724
- className: D.Terminal,
725
- onKeyDown: b,
726
- onMouseDown: w,
727
- onContextMenu: S,
728
- onClick: (y) => {
729
- window.getSelection()?.toString() === "" && (y.preventDefault(), g.stream ? o.current?.focus() : l.current?.focus());
730
- },
731
- children: [
732
- /* @__PURE__ */ I("div", { className: D.History, children: x() }),
733
- !g.isUsingAltScreen && (g.stream ? null : /* @__PURE__ */ I(
734
- jn,
735
- {
736
- value: g.line,
737
- prefix: g.prompt,
738
- onChange: k,
739
- inputRef: l
740
- },
741
- u
742
- ))
743
- ]
744
- }
745
- );
746
- }
747
- class Ln extends Gt {
748
- constructor() {
749
- super("Terminal", "terminal", $n), this.setIconUrl("https://os.prozilla.dev/assets/apps/icons/terminal.svg"), this.setRole(Xt.APP_ROLES.terminal), this.setCategory("Utilities & tools");
750
- }
751
- addCommands(t) {
752
- return t.forEach((a) => this.addCommand(a)), this;
753
- }
754
- addCommand(t) {
755
- return sn.addCommand(t), this;
756
- }
757
- }
758
- const Dn = new Ln();
759
- Dn.setMetadata({ name: "@prozilla-os/terminal", version: "2.0.0", author: "Prozilla" });
760
- function ze(e, t) {
761
- (t == null || t > e.length) && (t = e.length);
762
- for (var a = 0, n = Array(t); a < t; a++) n[a] = e[a];
763
- return n;
764
- }
765
- function Rn(e) {
766
- if (Array.isArray(e)) return e;
767
- }
768
- function Mn(e) {
769
- if (Array.isArray(e)) return ze(e);
770
- }
771
- function zn(e, t) {
772
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
773
- }
774
- function qn(e, t) {
775
- for (var a = 0; a < t.length; a++) {
776
- var n = t[a];
777
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, ea(n.key), n);
778
- }
779
- }
780
- function Un(e, t, a) {
781
- return t && qn(e.prototype, t), Object.defineProperty(e, "prototype", {
782
- writable: !1
783
- }), e;
784
- }
785
- function ye(e, t) {
786
- var a = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
787
- if (!a) {
788
- if (Array.isArray(e) || (a = tt(e)) || t) {
789
- a && (e = a);
790
- var n = 0, r = function() {
791
- };
792
- return {
793
- s: r,
794
- n: function() {
795
- return n >= e.length ? {
796
- done: !0
797
- } : {
798
- done: !1,
799
- value: e[n++]
800
- };
801
- },
802
- e: function(l) {
803
- throw l;
804
- },
805
- f: r
806
- };
807
- }
808
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
809
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
810
- }
811
- var i, s = !0, o = !1;
812
- return {
813
- s: function() {
814
- a = a.call(e);
815
- },
816
- n: function() {
817
- var l = a.next();
818
- return s = l.done, l;
819
- },
820
- e: function(l) {
821
- o = !0, i = l;
822
- },
823
- f: function() {
824
- try {
825
- s || a.return == null || a.return();
826
- } finally {
827
- if (o) throw i;
828
- }
829
- }
830
- };
831
- }
832
- function _(e, t, a) {
833
- return (t = ea(t)) in e ? Object.defineProperty(e, t, {
834
- value: a,
835
- enumerable: !0,
836
- configurable: !0,
837
- writable: !0
838
- }) : e[t] = a, e;
839
- }
840
- function Wn(e) {
841
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
842
- }
843
- function Bn(e, t) {
844
- var a = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
845
- if (a != null) {
846
- var n, r, i, s, o = [], l = !0, f = !1;
847
- try {
848
- if (i = (a = a.call(e)).next, t === 0) {
849
- if (Object(a) !== a) return;
850
- l = !1;
851
- } else for (; !(l = (n = i.call(a)).done) && (o.push(n.value), o.length !== t); l = !0) ;
852
- } catch (u) {
853
- f = !0, r = u;
854
- } finally {
855
- try {
856
- if (!l && a.return != null && (s = a.return(), Object(s) !== s)) return;
857
- } finally {
858
- if (f) throw r;
859
- }
860
- }
861
- return o;
862
- }
863
- }
864
- function Hn() {
865
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
866
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
867
- }
868
- function Yn() {
869
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
870
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
871
- }
872
- function ht(e, t) {
873
- var a = Object.keys(e);
874
- if (Object.getOwnPropertySymbols) {
875
- var n = Object.getOwnPropertySymbols(e);
876
- t && (n = n.filter(function(r) {
877
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
878
- })), a.push.apply(a, n);
879
- }
880
- return a;
881
- }
882
- function m(e) {
883
- for (var t = 1; t < arguments.length; t++) {
884
- var a = arguments[t] != null ? arguments[t] : {};
885
- t % 2 ? ht(Object(a), !0).forEach(function(n) {
886
- _(e, n, a[n]);
887
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : ht(Object(a)).forEach(function(n) {
888
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(a, n));
889
- });
890
- }
891
- return e;
892
- }
893
- function Ie(e, t) {
894
- return Rn(e) || Bn(e, t) || tt(e, t) || Hn();
895
- }
896
- function F(e) {
897
- return Mn(e) || Wn(e) || tt(e) || Yn();
898
- }
899
- function Vn(e, t) {
900
- if (typeof e != "object" || !e) return e;
901
- var a = e[Symbol.toPrimitive];
902
- if (a !== void 0) {
903
- var n = a.call(e, t);
904
- if (typeof n != "object") return n;
905
- throw new TypeError("@@toPrimitive must return a primitive value.");
906
- }
907
- return (t === "string" ? String : Number)(e);
908
- }
909
- function ea(e) {
910
- var t = Vn(e, "string");
911
- return typeof t == "symbol" ? t : t + "";
912
- }
913
- function ke(e) {
914
- "@babel/helpers - typeof";
915
- return ke = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
916
- return typeof t;
917
- } : function(t) {
918
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
919
- }, ke(e);
920
- }
921
- function tt(e, t) {
922
- if (e) {
923
- if (typeof e == "string") return ze(e, t);
924
- var a = {}.toString.call(e).slice(8, -1);
925
- return a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set" ? Array.from(e) : a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a) ? ze(e, t) : void 0;
926
- }
927
- }
928
- var pt = function() {
929
- }, at = {}, ta = {}, aa = null, na = {
930
- mark: pt,
931
- measure: pt
932
- };
933
- try {
934
- typeof window < "u" && (at = window), typeof document < "u" && (ta = document), typeof MutationObserver < "u" && (aa = MutationObserver), typeof performance < "u" && (na = performance);
935
- } catch {
936
- }
937
- var Kn = at.navigator || {}, vt = Kn.userAgent, bt = vt === void 0 ? "" : vt, q = at, A = ta, yt = aa, pe = na;
938
- q.document;
939
- var z = !!A.documentElement && !!A.head && typeof A.addEventListener == "function" && typeof A.createElement == "function", ra = ~bt.indexOf("MSIE") || ~bt.indexOf("Trident/"), Te, Gn = /fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, Xn = /Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i, ia = {
940
- classic: {
941
- fa: "solid",
942
- fas: "solid",
943
- "fa-solid": "solid",
944
- far: "regular",
945
- "fa-regular": "regular",
946
- fal: "light",
947
- "fa-light": "light",
948
- fat: "thin",
949
- "fa-thin": "thin",
950
- fab: "brands",
951
- "fa-brands": "brands"
952
- },
953
- duotone: {
954
- fa: "solid",
955
- fad: "solid",
956
- "fa-solid": "solid",
957
- "fa-duotone": "solid",
958
- fadr: "regular",
959
- "fa-regular": "regular",
960
- fadl: "light",
961
- "fa-light": "light",
962
- fadt: "thin",
963
- "fa-thin": "thin"
964
- },
965
- sharp: {
966
- fa: "solid",
967
- fass: "solid",
968
- "fa-solid": "solid",
969
- fasr: "regular",
970
- "fa-regular": "regular",
971
- fasl: "light",
972
- "fa-light": "light",
973
- fast: "thin",
974
- "fa-thin": "thin"
975
- },
976
- "sharp-duotone": {
977
- fa: "solid",
978
- fasds: "solid",
979
- "fa-solid": "solid",
980
- fasdr: "regular",
981
- "fa-regular": "regular",
982
- fasdl: "light",
983
- "fa-light": "light",
984
- fasdt: "thin",
985
- "fa-thin": "thin"
986
- },
987
- slab: {
988
- "fa-regular": "regular",
989
- faslr: "regular"
990
- },
991
- "slab-press": {
992
- "fa-regular": "regular",
993
- faslpr: "regular"
994
- },
995
- thumbprint: {
996
- "fa-light": "light",
997
- fatl: "light"
998
- },
999
- whiteboard: {
1000
- "fa-semibold": "semibold",
1001
- fawsb: "semibold"
1002
- },
1003
- notdog: {
1004
- "fa-solid": "solid",
1005
- fans: "solid"
1006
- },
1007
- "notdog-duo": {
1008
- "fa-solid": "solid",
1009
- fands: "solid"
1010
- },
1011
- etch: {
1012
- "fa-solid": "solid",
1013
- faes: "solid"
1014
- },
1015
- jelly: {
1016
- "fa-regular": "regular",
1017
- fajr: "regular"
1018
- },
1019
- "jelly-fill": {
1020
- "fa-regular": "regular",
1021
- fajfr: "regular"
1022
- },
1023
- "jelly-duo": {
1024
- "fa-regular": "regular",
1025
- fajdr: "regular"
1026
- },
1027
- chisel: {
1028
- "fa-regular": "regular",
1029
- facr: "regular"
1030
- },
1031
- utility: {
1032
- "fa-semibold": "semibold",
1033
- fausb: "semibold"
1034
- },
1035
- "utility-duo": {
1036
- "fa-semibold": "semibold",
1037
- faudsb: "semibold"
1038
- },
1039
- "utility-fill": {
1040
- "fa-semibold": "semibold",
1041
- faufsb: "semibold"
1042
- }
1043
- }, Jn = {
1044
- GROUP: "duotone-group",
1045
- PRIMARY: "primary",
1046
- SECONDARY: "secondary"
1047
- }, oa = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-utility", "fa-utility-duo", "fa-utility-fill"], E = "classic", de = "duotone", sa = "sharp", la = "sharp-duotone", fa = "chisel", ua = "etch", ca = "jelly", da = "jelly-duo", ma = "jelly-fill", ga = "notdog", ha = "notdog-duo", pa = "slab", va = "slab-press", ba = "thumbprint", ya = "utility", _a = "utility-duo", xa = "utility-fill", wa = "whiteboard", Zn = "Classic", Qn = "Duotone", er = "Sharp", tr = "Sharp Duotone", ar = "Chisel", nr = "Etch", rr = "Jelly", ir = "Jelly Duo", or = "Jelly Fill", sr = "Notdog", lr = "Notdog Duo", fr = "Slab", ur = "Slab Press", cr = "Thumbprint", dr = "Utility", mr = "Utility Duo", gr = "Utility Fill", hr = "Whiteboard", ka = [E, de, sa, la, fa, ua, ca, da, ma, ga, ha, pa, va, ba, ya, _a, xa, wa];
1048
- Te = {}, _(_(_(_(_(_(_(_(_(_(Te, E, Zn), de, Qn), sa, er), la, tr), fa, ar), ua, nr), ca, rr), da, ir), ma, or), ga, sr), _(_(_(_(_(_(_(_(Te, ha, lr), pa, fr), va, ur), ba, cr), ya, dr), _a, mr), xa, gr), wa, hr);
1049
- var pr = {
1050
- classic: {
1051
- 900: "fas",
1052
- 400: "far",
1053
- normal: "far",
1054
- 300: "fal",
1055
- 100: "fat"
1056
- },
1057
- duotone: {
1058
- 900: "fad",
1059
- 400: "fadr",
1060
- 300: "fadl",
1061
- 100: "fadt"
1062
- },
1063
- sharp: {
1064
- 900: "fass",
1065
- 400: "fasr",
1066
- 300: "fasl",
1067
- 100: "fast"
1068
- },
1069
- "sharp-duotone": {
1070
- 900: "fasds",
1071
- 400: "fasdr",
1072
- 300: "fasdl",
1073
- 100: "fasdt"
1074
- },
1075
- slab: {
1076
- 400: "faslr"
1077
- },
1078
- "slab-press": {
1079
- 400: "faslpr"
1080
- },
1081
- whiteboard: {
1082
- 600: "fawsb"
1083
- },
1084
- thumbprint: {
1085
- 300: "fatl"
1086
- },
1087
- notdog: {
1088
- 900: "fans"
1089
- },
1090
- "notdog-duo": {
1091
- 900: "fands"
1092
- },
1093
- etch: {
1094
- 900: "faes"
1095
- },
1096
- chisel: {
1097
- 400: "facr"
1098
- },
1099
- jelly: {
1100
- 400: "fajr"
1101
- },
1102
- "jelly-fill": {
1103
- 400: "fajfr"
1104
- },
1105
- "jelly-duo": {
1106
- 400: "fajdr"
1107
- },
1108
- utility: {
1109
- 600: "fausb"
1110
- },
1111
- "utility-duo": {
1112
- 600: "faudsb"
1113
- },
1114
- "utility-fill": {
1115
- 600: "faufsb"
1116
- }
1117
- }, vr = {
1118
- "Font Awesome 7 Free": {
1119
- 900: "fas",
1120
- 400: "far"
1121
- },
1122
- "Font Awesome 7 Pro": {
1123
- 900: "fas",
1124
- 400: "far",
1125
- normal: "far",
1126
- 300: "fal",
1127
- 100: "fat"
1128
- },
1129
- "Font Awesome 7 Brands": {
1130
- 400: "fab",
1131
- normal: "fab"
1132
- },
1133
- "Font Awesome 7 Duotone": {
1134
- 900: "fad",
1135
- 400: "fadr",
1136
- normal: "fadr",
1137
- 300: "fadl",
1138
- 100: "fadt"
1139
- },
1140
- "Font Awesome 7 Sharp": {
1141
- 900: "fass",
1142
- 400: "fasr",
1143
- normal: "fasr",
1144
- 300: "fasl",
1145
- 100: "fast"
1146
- },
1147
- "Font Awesome 7 Sharp Duotone": {
1148
- 900: "fasds",
1149
- 400: "fasdr",
1150
- normal: "fasdr",
1151
- 300: "fasdl",
1152
- 100: "fasdt"
1153
- },
1154
- "Font Awesome 7 Jelly": {
1155
- 400: "fajr",
1156
- normal: "fajr"
1157
- },
1158
- "Font Awesome 7 Jelly Fill": {
1159
- 400: "fajfr",
1160
- normal: "fajfr"
1161
- },
1162
- "Font Awesome 7 Jelly Duo": {
1163
- 400: "fajdr",
1164
- normal: "fajdr"
1165
- },
1166
- "Font Awesome 7 Slab": {
1167
- 400: "faslr",
1168
- normal: "faslr"
1169
- },
1170
- "Font Awesome 7 Slab Press": {
1171
- 400: "faslpr",
1172
- normal: "faslpr"
1173
- },
1174
- "Font Awesome 7 Thumbprint": {
1175
- 300: "fatl",
1176
- normal: "fatl"
1177
- },
1178
- "Font Awesome 7 Notdog": {
1179
- 900: "fans",
1180
- normal: "fans"
1181
- },
1182
- "Font Awesome 7 Notdog Duo": {
1183
- 900: "fands",
1184
- normal: "fands"
1185
- },
1186
- "Font Awesome 7 Etch": {
1187
- 900: "faes",
1188
- normal: "faes"
1189
- },
1190
- "Font Awesome 7 Chisel": {
1191
- 400: "facr",
1192
- normal: "facr"
1193
- },
1194
- "Font Awesome 7 Whiteboard": {
1195
- 600: "fawsb",
1196
- normal: "fawsb"
1197
- },
1198
- "Font Awesome 7 Utility": {
1199
- 600: "fausb",
1200
- normal: "fausb"
1201
- },
1202
- "Font Awesome 7 Utility Duo": {
1203
- 600: "faudsb",
1204
- normal: "faudsb"
1205
- },
1206
- "Font Awesome 7 Utility Fill": {
1207
- 600: "faufsb",
1208
- normal: "faufsb"
1209
- }
1210
- }, br = /* @__PURE__ */ new Map([["classic", {
1211
- defaultShortPrefixId: "fas",
1212
- defaultStyleId: "solid",
1213
- styleIds: ["solid", "regular", "light", "thin", "brands"],
1214
- futureStyleIds: [],
1215
- defaultFontWeight: 900
1216
- }], ["duotone", {
1217
- defaultShortPrefixId: "fad",
1218
- defaultStyleId: "solid",
1219
- styleIds: ["solid", "regular", "light", "thin"],
1220
- futureStyleIds: [],
1221
- defaultFontWeight: 900
1222
- }], ["sharp", {
1223
- defaultShortPrefixId: "fass",
1224
- defaultStyleId: "solid",
1225
- styleIds: ["solid", "regular", "light", "thin"],
1226
- futureStyleIds: [],
1227
- defaultFontWeight: 900
1228
- }], ["sharp-duotone", {
1229
- defaultShortPrefixId: "fasds",
1230
- defaultStyleId: "solid",
1231
- styleIds: ["solid", "regular", "light", "thin"],
1232
- futureStyleIds: [],
1233
- defaultFontWeight: 900
1234
- }], ["chisel", {
1235
- defaultShortPrefixId: "facr",
1236
- defaultStyleId: "regular",
1237
- styleIds: ["regular"],
1238
- futureStyleIds: [],
1239
- defaultFontWeight: 400
1240
- }], ["etch", {
1241
- defaultShortPrefixId: "faes",
1242
- defaultStyleId: "solid",
1243
- styleIds: ["solid"],
1244
- futureStyleIds: [],
1245
- defaultFontWeight: 900
1246
- }], ["jelly", {
1247
- defaultShortPrefixId: "fajr",
1248
- defaultStyleId: "regular",
1249
- styleIds: ["regular"],
1250
- futureStyleIds: [],
1251
- defaultFontWeight: 400
1252
- }], ["jelly-duo", {
1253
- defaultShortPrefixId: "fajdr",
1254
- defaultStyleId: "regular",
1255
- styleIds: ["regular"],
1256
- futureStyleIds: [],
1257
- defaultFontWeight: 400
1258
- }], ["jelly-fill", {
1259
- defaultShortPrefixId: "fajfr",
1260
- defaultStyleId: "regular",
1261
- styleIds: ["regular"],
1262
- futureStyleIds: [],
1263
- defaultFontWeight: 400
1264
- }], ["notdog", {
1265
- defaultShortPrefixId: "fans",
1266
- defaultStyleId: "solid",
1267
- styleIds: ["solid"],
1268
- futureStyleIds: [],
1269
- defaultFontWeight: 900
1270
- }], ["notdog-duo", {
1271
- defaultShortPrefixId: "fands",
1272
- defaultStyleId: "solid",
1273
- styleIds: ["solid"],
1274
- futureStyleIds: [],
1275
- defaultFontWeight: 900
1276
- }], ["slab", {
1277
- defaultShortPrefixId: "faslr",
1278
- defaultStyleId: "regular",
1279
- styleIds: ["regular"],
1280
- futureStyleIds: [],
1281
- defaultFontWeight: 400
1282
- }], ["slab-press", {
1283
- defaultShortPrefixId: "faslpr",
1284
- defaultStyleId: "regular",
1285
- styleIds: ["regular"],
1286
- futureStyleIds: [],
1287
- defaultFontWeight: 400
1288
- }], ["thumbprint", {
1289
- defaultShortPrefixId: "fatl",
1290
- defaultStyleId: "light",
1291
- styleIds: ["light"],
1292
- futureStyleIds: [],
1293
- defaultFontWeight: 300
1294
- }], ["utility", {
1295
- defaultShortPrefixId: "fausb",
1296
- defaultStyleId: "semibold",
1297
- styleIds: ["semibold"],
1298
- futureStyleIds: [],
1299
- defaultFontWeight: 600
1300
- }], ["utility-duo", {
1301
- defaultShortPrefixId: "faudsb",
1302
- defaultStyleId: "semibold",
1303
- styleIds: ["semibold"],
1304
- futureStyleIds: [],
1305
- defaultFontWeight: 600
1306
- }], ["utility-fill", {
1307
- defaultShortPrefixId: "faufsb",
1308
- defaultStyleId: "semibold",
1309
- styleIds: ["semibold"],
1310
- futureStyleIds: [],
1311
- defaultFontWeight: 600
1312
- }], ["whiteboard", {
1313
- defaultShortPrefixId: "fawsb",
1314
- defaultStyleId: "semibold",
1315
- styleIds: ["semibold"],
1316
- futureStyleIds: [],
1317
- defaultFontWeight: 600
1318
- }]]), yr = {
1319
- chisel: {
1320
- regular: "facr"
1321
- },
1322
- classic: {
1323
- brands: "fab",
1324
- light: "fal",
1325
- regular: "far",
1326
- solid: "fas",
1327
- thin: "fat"
1328
- },
1329
- duotone: {
1330
- light: "fadl",
1331
- regular: "fadr",
1332
- solid: "fad",
1333
- thin: "fadt"
1334
- },
1335
- etch: {
1336
- solid: "faes"
1337
- },
1338
- jelly: {
1339
- regular: "fajr"
1340
- },
1341
- "jelly-duo": {
1342
- regular: "fajdr"
1343
- },
1344
- "jelly-fill": {
1345
- regular: "fajfr"
1346
- },
1347
- notdog: {
1348
- solid: "fans"
1349
- },
1350
- "notdog-duo": {
1351
- solid: "fands"
1352
- },
1353
- sharp: {
1354
- light: "fasl",
1355
- regular: "fasr",
1356
- solid: "fass",
1357
- thin: "fast"
1358
- },
1359
- "sharp-duotone": {
1360
- light: "fasdl",
1361
- regular: "fasdr",
1362
- solid: "fasds",
1363
- thin: "fasdt"
1364
- },
1365
- slab: {
1366
- regular: "faslr"
1367
- },
1368
- "slab-press": {
1369
- regular: "faslpr"
1370
- },
1371
- thumbprint: {
1372
- light: "fatl"
1373
- },
1374
- utility: {
1375
- semibold: "fausb"
1376
- },
1377
- "utility-duo": {
1378
- semibold: "faudsb"
1379
- },
1380
- "utility-fill": {
1381
- semibold: "faufsb"
1382
- },
1383
- whiteboard: {
1384
- semibold: "fawsb"
1385
- }
1386
- }, Sa = ["fak", "fa-kit", "fakd", "fa-kit-duotone"], _t = {
1387
- kit: {
1388
- fak: "kit",
1389
- "fa-kit": "kit"
1390
- },
1391
- "kit-duotone": {
1392
- fakd: "kit-duotone",
1393
- "fa-kit-duotone": "kit-duotone"
1394
- }
1395
- }, _r = ["kit"], xr = "kit", wr = "kit-duotone", kr = "Kit", Sr = "Kit Duotone";
1396
- _(_({}, xr, kr), wr, Sr);
1397
- var Ar = {
1398
- kit: {
1399
- "fa-kit": "fak"
1400
- }
1401
- }, Ir = {
1402
- "Font Awesome Kit": {
1403
- 400: "fak",
1404
- normal: "fak"
1405
- },
1406
- "Font Awesome Kit Duotone": {
1407
- 400: "fakd",
1408
- normal: "fakd"
1409
- }
1410
- }, Er = {
1411
- kit: {
1412
- fak: "fa-kit"
1413
- }
1414
- }, xt = {
1415
- kit: {
1416
- kit: "fak"
1417
- },
1418
- "kit-duotone": {
1419
- "kit-duotone": "fakd"
1420
- }
1421
- }, je, ve = {
1422
- GROUP: "duotone-group",
1423
- SWAP_OPACITY: "swap-opacity",
1424
- PRIMARY: "primary",
1425
- SECONDARY: "secondary"
1426
- }, Pr = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-utility", "fa-utility-duo", "fa-utility-fill"], Cr = "classic", Or = "duotone", Fr = "sharp", Nr = "sharp-duotone", Tr = "chisel", jr = "etch", $r = "jelly", Lr = "jelly-duo", Dr = "jelly-fill", Rr = "notdog", Mr = "notdog-duo", zr = "slab", qr = "slab-press", Ur = "thumbprint", Wr = "utility", Br = "utility-duo", Hr = "utility-fill", Yr = "whiteboard", Vr = "Classic", Kr = "Duotone", Gr = "Sharp", Xr = "Sharp Duotone", Jr = "Chisel", Zr = "Etch", Qr = "Jelly", ei = "Jelly Duo", ti = "Jelly Fill", ai = "Notdog", ni = "Notdog Duo", ri = "Slab", ii = "Slab Press", oi = "Thumbprint", si = "Utility", li = "Utility Duo", fi = "Utility Fill", ui = "Whiteboard";
1427
- je = {}, _(_(_(_(_(_(_(_(_(_(je, Cr, Vr), Or, Kr), Fr, Gr), Nr, Xr), Tr, Jr), jr, Zr), $r, Qr), Lr, ei), Dr, ti), Rr, ai), _(_(_(_(_(_(_(_(je, Mr, ni), zr, ri), qr, ii), Ur, oi), Wr, si), Br, li), Hr, fi), Yr, ui);
1428
- var ci = "kit", di = "kit-duotone", mi = "Kit", gi = "Kit Duotone";
1429
- _(_({}, ci, mi), di, gi);
1430
- var hi = {
1431
- classic: {
1432
- "fa-brands": "fab",
1433
- "fa-duotone": "fad",
1434
- "fa-light": "fal",
1435
- "fa-regular": "far",
1436
- "fa-solid": "fas",
1437
- "fa-thin": "fat"
1438
- },
1439
- duotone: {
1440
- "fa-regular": "fadr",
1441
- "fa-light": "fadl",
1442
- "fa-thin": "fadt"
1443
- },
1444
- sharp: {
1445
- "fa-solid": "fass",
1446
- "fa-regular": "fasr",
1447
- "fa-light": "fasl",
1448
- "fa-thin": "fast"
1449
- },
1450
- "sharp-duotone": {
1451
- "fa-solid": "fasds",
1452
- "fa-regular": "fasdr",
1453
- "fa-light": "fasdl",
1454
- "fa-thin": "fasdt"
1455
- },
1456
- slab: {
1457
- "fa-regular": "faslr"
1458
- },
1459
- "slab-press": {
1460
- "fa-regular": "faslpr"
1461
- },
1462
- whiteboard: {
1463
- "fa-semibold": "fawsb"
1464
- },
1465
- thumbprint: {
1466
- "fa-light": "fatl"
1467
- },
1468
- notdog: {
1469
- "fa-solid": "fans"
1470
- },
1471
- "notdog-duo": {
1472
- "fa-solid": "fands"
1473
- },
1474
- etch: {
1475
- "fa-solid": "faes"
1476
- },
1477
- jelly: {
1478
- "fa-regular": "fajr"
1479
- },
1480
- "jelly-fill": {
1481
- "fa-regular": "fajfr"
1482
- },
1483
- "jelly-duo": {
1484
- "fa-regular": "fajdr"
1485
- },
1486
- chisel: {
1487
- "fa-regular": "facr"
1488
- },
1489
- utility: {
1490
- "fa-semibold": "fausb"
1491
- },
1492
- "utility-duo": {
1493
- "fa-semibold": "faudsb"
1494
- },
1495
- "utility-fill": {
1496
- "fa-semibold": "faufsb"
1497
- }
1498
- }, pi = {
1499
- classic: ["fas", "far", "fal", "fat", "fad"],
1500
- duotone: ["fadr", "fadl", "fadt"],
1501
- sharp: ["fass", "fasr", "fasl", "fast"],
1502
- "sharp-duotone": ["fasds", "fasdr", "fasdl", "fasdt"],
1503
- slab: ["faslr"],
1504
- "slab-press": ["faslpr"],
1505
- whiteboard: ["fawsb"],
1506
- thumbprint: ["fatl"],
1507
- notdog: ["fans"],
1508
- "notdog-duo": ["fands"],
1509
- etch: ["faes"],
1510
- jelly: ["fajr"],
1511
- "jelly-fill": ["fajfr"],
1512
- "jelly-duo": ["fajdr"],
1513
- chisel: ["facr"],
1514
- utility: ["fausb"],
1515
- "utility-duo": ["faudsb"],
1516
- "utility-fill": ["faufsb"]
1517
- }, qe = {
1518
- classic: {
1519
- fab: "fa-brands",
1520
- fad: "fa-duotone",
1521
- fal: "fa-light",
1522
- far: "fa-regular",
1523
- fas: "fa-solid",
1524
- fat: "fa-thin"
1525
- },
1526
- duotone: {
1527
- fadr: "fa-regular",
1528
- fadl: "fa-light",
1529
- fadt: "fa-thin"
1530
- },
1531
- sharp: {
1532
- fass: "fa-solid",
1533
- fasr: "fa-regular",
1534
- fasl: "fa-light",
1535
- fast: "fa-thin"
1536
- },
1537
- "sharp-duotone": {
1538
- fasds: "fa-solid",
1539
- fasdr: "fa-regular",
1540
- fasdl: "fa-light",
1541
- fasdt: "fa-thin"
1542
- },
1543
- slab: {
1544
- faslr: "fa-regular"
1545
- },
1546
- "slab-press": {
1547
- faslpr: "fa-regular"
1548
- },
1549
- whiteboard: {
1550
- fawsb: "fa-semibold"
1551
- },
1552
- thumbprint: {
1553
- fatl: "fa-light"
1554
- },
1555
- notdog: {
1556
- fans: "fa-solid"
1557
- },
1558
- "notdog-duo": {
1559
- fands: "fa-solid"
1560
- },
1561
- etch: {
1562
- faes: "fa-solid"
1563
- },
1564
- jelly: {
1565
- fajr: "fa-regular"
1566
- },
1567
- "jelly-fill": {
1568
- fajfr: "fa-regular"
1569
- },
1570
- "jelly-duo": {
1571
- fajdr: "fa-regular"
1572
- },
1573
- chisel: {
1574
- facr: "fa-regular"
1575
- },
1576
- utility: {
1577
- fausb: "fa-semibold"
1578
- },
1579
- "utility-duo": {
1580
- faudsb: "fa-semibold"
1581
- },
1582
- "utility-fill": {
1583
- faufsb: "fa-semibold"
1584
- }
1585
- }, vi = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"], Aa = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fawsb", "fatl", "fans", "fands", "faes", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(Pr, vi), bi = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"], Ia = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], yi = Ia.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), _i = ["aw", "fw", "pull-left", "pull-right"], xi = [].concat(F(Object.keys(pi)), bi, _i, ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "inverse", "layers", "layers-bottom-left", "layers-bottom-right", "layers-counter", "layers-text", "layers-top-left", "layers-top-right", "li", "pull-end", "pull-start", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", "width-auto", "width-fixed", ve.GROUP, ve.SWAP_OPACITY, ve.PRIMARY, ve.SECONDARY]).concat(Ia.map(function(e) {
1586
- return "".concat(e, "x");
1587
- })).concat(yi.map(function(e) {
1588
- return "w-".concat(e);
1589
- })), wi = {
1590
- "Font Awesome 5 Free": {
1591
- 900: "fas",
1592
- 400: "far"
1593
- },
1594
- "Font Awesome 5 Pro": {
1595
- 900: "fas",
1596
- 400: "far",
1597
- normal: "far",
1598
- 300: "fal"
1599
- },
1600
- "Font Awesome 5 Brands": {
1601
- 400: "fab",
1602
- normal: "fab"
1603
- },
1604
- "Font Awesome 5 Duotone": {
1605
- 900: "fad"
1606
- }
1607
- }, R = "___FONT_AWESOME___", Ue = 16, Ea = "fa", Pa = "svg-inline--fa", V = "data-fa-i2svg", We = "data-fa-pseudo-element", ki = "data-fa-pseudo-element-pending", nt = "data-prefix", rt = "data-icon", wt = "fontawesome-i2svg", Si = "async", Ai = ["HTML", "HEAD", "STYLE", "SCRIPT"], Ca = ["::before", "::after", ":before", ":after"], Oa = (function() {
1608
- try {
1609
- return process.env.NODE_ENV === "production";
1610
- } catch {
1611
- return !1;
1612
- }
1613
- })();
1614
- function me(e) {
1615
- return new Proxy(e, {
1616
- get: function(a, n) {
1617
- return n in a ? a[n] : a[E];
1618
- }
1619
- });
1620
- }
1621
- var Fa = m({}, ia);
1622
- Fa[E] = m(m(m(m({}, {
1623
- "fa-duotone": "duotone"
1624
- }), ia[E]), _t.kit), _t["kit-duotone"]);
1625
- var Ii = me(Fa), Be = m({}, yr);
1626
- Be[E] = m(m(m(m({}, {
1627
- duotone: "fad"
1628
- }), Be[E]), xt.kit), xt["kit-duotone"]);
1629
- var kt = me(Be), He = m({}, qe);
1630
- He[E] = m(m({}, He[E]), Er.kit);
1631
- var it = me(He), Ye = m({}, hi);
1632
- Ye[E] = m(m({}, Ye[E]), Ar.kit);
1633
- me(Ye);
1634
- var Ei = Gn, Na = "fa-layers-text", Pi = Xn, Ci = m({}, pr);
1635
- me(Ci);
1636
- var Oi = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], $e = Jn, Fi = [].concat(F(_r), F(xi)), se = q.FontAwesomeConfig || {};
1637
- function Ni(e) {
1638
- var t = A.querySelector("script[" + e + "]");
1639
- if (t)
1640
- return t.getAttribute(e);
1641
- }
1642
- function Ti(e) {
1643
- return e === "" ? !0 : e === "false" ? !1 : e === "true" ? !0 : e;
1644
- }
1645
- if (A && typeof A.querySelector == "function") {
1646
- var ji = [["data-family-prefix", "familyPrefix"], ["data-css-prefix", "cssPrefix"], ["data-family-default", "familyDefault"], ["data-style-default", "styleDefault"], ["data-replacement-class", "replacementClass"], ["data-auto-replace-svg", "autoReplaceSvg"], ["data-auto-add-css", "autoAddCss"], ["data-search-pseudo-elements", "searchPseudoElements"], ["data-search-pseudo-elements-warnings", "searchPseudoElementsWarnings"], ["data-search-pseudo-elements-full-scan", "searchPseudoElementsFullScan"], ["data-observe-mutations", "observeMutations"], ["data-mutate-approach", "mutateApproach"], ["data-keep-original-source", "keepOriginalSource"], ["data-measure-performance", "measurePerformance"], ["data-show-missing-icons", "showMissingIcons"]];
1647
- ji.forEach(function(e) {
1648
- var t = Ie(e, 2), a = t[0], n = t[1], r = Ti(Ni(a));
1649
- r != null && (se[n] = r);
1650
- });
1651
- }
1652
- var Ta = {
1653
- styleDefault: "solid",
1654
- familyDefault: E,
1655
- cssPrefix: Ea,
1656
- replacementClass: Pa,
1657
- autoReplaceSvg: !0,
1658
- autoAddCss: !0,
1659
- searchPseudoElements: !1,
1660
- searchPseudoElementsWarnings: !0,
1661
- searchPseudoElementsFullScan: !1,
1662
- observeMutations: !0,
1663
- mutateApproach: "async",
1664
- keepOriginalSource: !0,
1665
- measurePerformance: !1,
1666
- showMissingIcons: !0
1667
- };
1668
- se.familyPrefix && (se.cssPrefix = se.familyPrefix);
1669
- var te = m(m({}, Ta), se);
1670
- te.autoReplaceSvg || (te.observeMutations = !1);
1671
- var v = {};
1672
- Object.keys(Ta).forEach(function(e) {
1673
- Object.defineProperty(v, e, {
1674
- enumerable: !0,
1675
- set: function(a) {
1676
- te[e] = a, le.forEach(function(n) {
1677
- return n(v);
1678
- });
1679
- },
1680
- get: function() {
1681
- return te[e];
1682
- }
1683
- });
1684
- });
1685
- Object.defineProperty(v, "familyPrefix", {
1686
- enumerable: !0,
1687
- set: function(t) {
1688
- te.cssPrefix = t, le.forEach(function(a) {
1689
- return a(v);
1690
- });
1691
- },
1692
- get: function() {
1693
- return te.cssPrefix;
1694
- }
1695
- });
1696
- q.FontAwesomeConfig = v;
1697
- var le = [];
1698
- function $i(e) {
1699
- return le.push(e), function() {
1700
- le.splice(le.indexOf(e), 1);
1701
- };
1702
- }
1703
- var X = Ue, N = {
1704
- size: 16,
1705
- x: 0,
1706
- y: 0,
1707
- rotate: 0,
1708
- flipX: !1,
1709
- flipY: !1
1710
- };
1711
- function Li(e) {
1712
- if (!(!e || !z)) {
1713
- var t = A.createElement("style");
1714
- t.setAttribute("type", "text/css"), t.innerHTML = e;
1715
- for (var a = A.head.childNodes, n = null, r = a.length - 1; r > -1; r--) {
1716
- var i = a[r], s = (i.tagName || "").toUpperCase();
1717
- ["STYLE", "LINK"].indexOf(s) > -1 && (n = i);
1718
- }
1719
- return A.head.insertBefore(t, n), e;
1720
- }
1721
- }
1722
- var Di = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
1723
- function St() {
1724
- for (var e = 12, t = ""; e-- > 0; )
1725
- t += Di[Math.random() * 62 | 0];
1726
- return t;
1727
- }
1728
- function ae(e) {
1729
- for (var t = [], a = (e || []).length >>> 0; a--; )
1730
- t[a] = e[a];
1731
- return t;
1732
- }
1733
- function ot(e) {
1734
- return e.classList ? ae(e.classList) : (e.getAttribute("class") || "").split(" ").filter(function(t) {
1735
- return t;
1736
- });
1737
- }
1738
- function ja(e) {
1739
- return "".concat(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1740
- }
1741
- function Ri(e) {
1742
- return Object.keys(e || {}).reduce(function(t, a) {
1743
- return t + "".concat(a, '="').concat(ja(e[a]), '" ');
1744
- }, "").trim();
1745
- }
1746
- function Ee(e) {
1747
- return Object.keys(e || {}).reduce(function(t, a) {
1748
- return t + "".concat(a, ": ").concat(e[a].trim(), ";");
1749
- }, "");
1750
- }
1751
- function st(e) {
1752
- return e.size !== N.size || e.x !== N.x || e.y !== N.y || e.rotate !== N.rotate || e.flipX || e.flipY;
1753
- }
1754
- function Mi(e) {
1755
- var t = e.transform, a = e.containerWidth, n = e.iconWidth, r = {
1756
- transform: "translate(".concat(a / 2, " 256)")
1757
- }, i = "translate(".concat(t.x * 32, ", ").concat(t.y * 32, ") "), s = "scale(".concat(t.size / 16 * (t.flipX ? -1 : 1), ", ").concat(t.size / 16 * (t.flipY ? -1 : 1), ") "), o = "rotate(".concat(t.rotate, " 0 0)"), l = {
1758
- transform: "".concat(i, " ").concat(s, " ").concat(o)
1759
- }, f = {
1760
- transform: "translate(".concat(n / 2 * -1, " -256)")
1761
- };
1762
- return {
1763
- outer: r,
1764
- inner: l,
1765
- path: f
1766
- };
1767
- }
1768
- function zi(e) {
1769
- var t = e.transform, a = e.width, n = a === void 0 ? Ue : a, r = e.height, i = r === void 0 ? Ue : r, s = "";
1770
- return ra ? s += "translate(".concat(t.x / X - n / 2, "em, ").concat(t.y / X - i / 2, "em) ") : s += "translate(calc(-50% + ".concat(t.x / X, "em), calc(-50% + ").concat(t.y / X, "em)) "), s += "scale(".concat(t.size / X * (t.flipX ? -1 : 1), ", ").concat(t.size / X * (t.flipY ? -1 : 1), ") "), s += "rotate(".concat(t.rotate, "deg) "), s;
1771
- }
1772
- var qi = `:root, :host {
1773
- --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
1774
- --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
1775
- --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
1776
- --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
1777
- --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
1778
- --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
1779
- --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
1780
- --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
1781
- --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
1782
- --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
1783
- --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
1784
- --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
1785
- --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
1786
- --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
1787
- --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
1788
- --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
1789
- --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
1790
- --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
1791
- --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
1792
- --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
1793
- --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
1794
- --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
1795
- --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
1796
- --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
1797
- --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
1798
- --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
1799
- --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
1800
- --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
1801
- --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";
1802
- --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";
1803
- --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";
1804
- }
1805
-
1806
- .svg-inline--fa {
1807
- box-sizing: content-box;
1808
- display: var(--fa-display, inline-block);
1809
- height: 1em;
1810
- overflow: visible;
1811
- vertical-align: -0.125em;
1812
- width: var(--fa-width, 1.25em);
1813
- }
1814
- .svg-inline--fa.fa-2xs {
1815
- vertical-align: 0.1em;
1816
- }
1817
- .svg-inline--fa.fa-xs {
1818
- vertical-align: 0em;
1819
- }
1820
- .svg-inline--fa.fa-sm {
1821
- vertical-align: -0.0714285714em;
1822
- }
1823
- .svg-inline--fa.fa-lg {
1824
- vertical-align: -0.2em;
1825
- }
1826
- .svg-inline--fa.fa-xl {
1827
- vertical-align: -0.25em;
1828
- }
1829
- .svg-inline--fa.fa-2xl {
1830
- vertical-align: -0.3125em;
1831
- }
1832
- .svg-inline--fa.fa-pull-left,
1833
- .svg-inline--fa .fa-pull-start {
1834
- float: inline-start;
1835
- margin-inline-end: var(--fa-pull-margin, 0.3em);
1836
- }
1837
- .svg-inline--fa.fa-pull-right,
1838
- .svg-inline--fa .fa-pull-end {
1839
- float: inline-end;
1840
- margin-inline-start: var(--fa-pull-margin, 0.3em);
1841
- }
1842
- .svg-inline--fa.fa-li {
1843
- width: var(--fa-li-width, 2em);
1844
- inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
1845
- inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
1846
- }
1847
-
1848
- .fa-layers-counter, .fa-layers-text {
1849
- display: inline-block;
1850
- position: absolute;
1851
- text-align: center;
1852
- }
1853
-
1854
- .fa-layers {
1855
- display: inline-block;
1856
- height: 1em;
1857
- position: relative;
1858
- text-align: center;
1859
- vertical-align: -0.125em;
1860
- width: var(--fa-width, 1.25em);
1861
- }
1862
- .fa-layers .svg-inline--fa {
1863
- inset: 0;
1864
- margin: auto;
1865
- position: absolute;
1866
- transform-origin: center center;
1867
- }
1868
-
1869
- .fa-layers-text {
1870
- left: 50%;
1871
- top: 50%;
1872
- transform: translate(-50%, -50%);
1873
- transform-origin: center center;
1874
- }
1875
-
1876
- .fa-layers-counter {
1877
- background-color: var(--fa-counter-background-color, #ff253a);
1878
- border-radius: var(--fa-counter-border-radius, 1em);
1879
- box-sizing: border-box;
1880
- color: var(--fa-inverse, #fff);
1881
- line-height: var(--fa-counter-line-height, 1);
1882
- max-width: var(--fa-counter-max-width, 5em);
1883
- min-width: var(--fa-counter-min-width, 1.5em);
1884
- overflow: hidden;
1885
- padding: var(--fa-counter-padding, 0.25em 0.5em);
1886
- right: var(--fa-right, 0);
1887
- text-overflow: ellipsis;
1888
- top: var(--fa-top, 0);
1889
- transform: scale(var(--fa-counter-scale, 0.25));
1890
- transform-origin: top right;
1891
- }
1892
-
1893
- .fa-layers-bottom-right {
1894
- bottom: var(--fa-bottom, 0);
1895
- right: var(--fa-right, 0);
1896
- top: auto;
1897
- transform: scale(var(--fa-layers-scale, 0.25));
1898
- transform-origin: bottom right;
1899
- }
1900
-
1901
- .fa-layers-bottom-left {
1902
- bottom: var(--fa-bottom, 0);
1903
- left: var(--fa-left, 0);
1904
- right: auto;
1905
- top: auto;
1906
- transform: scale(var(--fa-layers-scale, 0.25));
1907
- transform-origin: bottom left;
1908
- }
1909
-
1910
- .fa-layers-top-right {
1911
- top: var(--fa-top, 0);
1912
- right: var(--fa-right, 0);
1913
- transform: scale(var(--fa-layers-scale, 0.25));
1914
- transform-origin: top right;
1915
- }
1916
-
1917
- .fa-layers-top-left {
1918
- left: var(--fa-left, 0);
1919
- right: auto;
1920
- top: var(--fa-top, 0);
1921
- transform: scale(var(--fa-layers-scale, 0.25));
1922
- transform-origin: top left;
1923
- }
1924
-
1925
- .fa-1x {
1926
- font-size: 1em;
1927
- }
1928
-
1929
- .fa-2x {
1930
- font-size: 2em;
1931
- }
1932
-
1933
- .fa-3x {
1934
- font-size: 3em;
1935
- }
1936
-
1937
- .fa-4x {
1938
- font-size: 4em;
1939
- }
1940
-
1941
- .fa-5x {
1942
- font-size: 5em;
1943
- }
1944
-
1945
- .fa-6x {
1946
- font-size: 6em;
1947
- }
1948
-
1949
- .fa-7x {
1950
- font-size: 7em;
1951
- }
1952
-
1953
- .fa-8x {
1954
- font-size: 8em;
1955
- }
1956
-
1957
- .fa-9x {
1958
- font-size: 9em;
1959
- }
1960
-
1961
- .fa-10x {
1962
- font-size: 10em;
1963
- }
1964
-
1965
- .fa-2xs {
1966
- font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
1967
- line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
1968
- vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
1969
- }
1970
-
1971
- .fa-xs {
1972
- font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
1973
- line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
1974
- vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
1975
- }
1976
-
1977
- .fa-sm {
1978
- font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
1979
- line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
1980
- vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
1981
- }
1982
-
1983
- .fa-lg {
1984
- font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
1985
- line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
1986
- vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
1987
- }
1988
-
1989
- .fa-xl {
1990
- font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
1991
- line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
1992
- vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
1993
- }
1994
-
1995
- .fa-2xl {
1996
- font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
1997
- line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
1998
- vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
1999
- }
2000
-
2001
- .fa-width-auto {
2002
- --fa-width: auto;
2003
- }
2004
-
2005
- .fa-fw,
2006
- .fa-width-fixed {
2007
- --fa-width: 1.25em;
2008
- }
2009
-
2010
- .fa-ul {
2011
- list-style-type: none;
2012
- margin-inline-start: var(--fa-li-margin, 2.5em);
2013
- padding-inline-start: 0;
2014
- }
2015
- .fa-ul > li {
2016
- position: relative;
2017
- }
2018
-
2019
- .fa-li {
2020
- inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
2021
- position: absolute;
2022
- text-align: center;
2023
- width: var(--fa-li-width, 2em);
2024
- line-height: inherit;
2025
- }
2026
-
2027
- /* Heads Up: Bordered Icons will not be supported in the future!
2028
- - This feature will be deprecated in the next major release of Font Awesome (v8)!
2029
- - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
2030
- */
2031
- /* Notes:
2032
- * --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
2033
- * --@{v.$css-prefix}-border-padding =
2034
- ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
2035
- ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
2036
- */
2037
- .fa-border {
2038
- border-color: var(--fa-border-color, #eee);
2039
- border-radius: var(--fa-border-radius, 0.1em);
2040
- border-style: var(--fa-border-style, solid);
2041
- border-width: var(--fa-border-width, 0.0625em);
2042
- box-sizing: var(--fa-border-box-sizing, content-box);
2043
- padding: var(--fa-border-padding, 0.1875em 0.25em);
2044
- }
2045
-
2046
- .fa-pull-left,
2047
- .fa-pull-start {
2048
- float: inline-start;
2049
- margin-inline-end: var(--fa-pull-margin, 0.3em);
2050
- }
2051
-
2052
- .fa-pull-right,
2053
- .fa-pull-end {
2054
- float: inline-end;
2055
- margin-inline-start: var(--fa-pull-margin, 0.3em);
2056
- }
2057
-
2058
- .fa-beat {
2059
- animation-name: fa-beat;
2060
- animation-delay: var(--fa-animation-delay, 0s);
2061
- animation-direction: var(--fa-animation-direction, normal);
2062
- animation-duration: var(--fa-animation-duration, 1s);
2063
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2064
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
2065
- }
2066
-
2067
- .fa-bounce {
2068
- animation-name: fa-bounce;
2069
- animation-delay: var(--fa-animation-delay, 0s);
2070
- animation-direction: var(--fa-animation-direction, normal);
2071
- animation-duration: var(--fa-animation-duration, 1s);
2072
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2073
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
2074
- }
2075
-
2076
- .fa-fade {
2077
- animation-name: fa-fade;
2078
- animation-delay: var(--fa-animation-delay, 0s);
2079
- animation-direction: var(--fa-animation-direction, normal);
2080
- animation-duration: var(--fa-animation-duration, 1s);
2081
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2082
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
2083
- }
2084
-
2085
- .fa-beat-fade {
2086
- animation-name: fa-beat-fade;
2087
- animation-delay: var(--fa-animation-delay, 0s);
2088
- animation-direction: var(--fa-animation-direction, normal);
2089
- animation-duration: var(--fa-animation-duration, 1s);
2090
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2091
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
2092
- }
2093
-
2094
- .fa-flip {
2095
- animation-name: fa-flip;
2096
- animation-delay: var(--fa-animation-delay, 0s);
2097
- animation-direction: var(--fa-animation-direction, normal);
2098
- animation-duration: var(--fa-animation-duration, 1s);
2099
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2100
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
2101
- }
2102
-
2103
- .fa-shake {
2104
- animation-name: fa-shake;
2105
- animation-delay: var(--fa-animation-delay, 0s);
2106
- animation-direction: var(--fa-animation-direction, normal);
2107
- animation-duration: var(--fa-animation-duration, 1s);
2108
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2109
- animation-timing-function: var(--fa-animation-timing, linear);
2110
- }
2111
-
2112
- .fa-spin {
2113
- animation-name: fa-spin;
2114
- animation-delay: var(--fa-animation-delay, 0s);
2115
- animation-direction: var(--fa-animation-direction, normal);
2116
- animation-duration: var(--fa-animation-duration, 2s);
2117
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2118
- animation-timing-function: var(--fa-animation-timing, linear);
2119
- }
2120
-
2121
- .fa-spin-reverse {
2122
- --fa-animation-direction: reverse;
2123
- }
2124
-
2125
- .fa-pulse,
2126
- .fa-spin-pulse {
2127
- animation-name: fa-spin;
2128
- animation-direction: var(--fa-animation-direction, normal);
2129
- animation-duration: var(--fa-animation-duration, 1s);
2130
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
2131
- animation-timing-function: var(--fa-animation-timing, steps(8));
2132
- }
2133
-
2134
- @media (prefers-reduced-motion: reduce) {
2135
- .fa-beat,
2136
- .fa-bounce,
2137
- .fa-fade,
2138
- .fa-beat-fade,
2139
- .fa-flip,
2140
- .fa-pulse,
2141
- .fa-shake,
2142
- .fa-spin,
2143
- .fa-spin-pulse {
2144
- animation: none !important;
2145
- transition: none !important;
2146
- }
2147
- }
2148
- @keyframes fa-beat {
2149
- 0%, 90% {
2150
- transform: scale(1);
2151
- }
2152
- 45% {
2153
- transform: scale(var(--fa-beat-scale, 1.25));
2154
- }
2155
- }
2156
- @keyframes fa-bounce {
2157
- 0% {
2158
- transform: scale(1, 1) translateY(0);
2159
- }
2160
- 10% {
2161
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
2162
- }
2163
- 30% {
2164
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
2165
- }
2166
- 50% {
2167
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
2168
- }
2169
- 57% {
2170
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
2171
- }
2172
- 64% {
2173
- transform: scale(1, 1) translateY(0);
2174
- }
2175
- 100% {
2176
- transform: scale(1, 1) translateY(0);
2177
- }
2178
- }
2179
- @keyframes fa-fade {
2180
- 50% {
2181
- opacity: var(--fa-fade-opacity, 0.4);
2182
- }
2183
- }
2184
- @keyframes fa-beat-fade {
2185
- 0%, 100% {
2186
- opacity: var(--fa-beat-fade-opacity, 0.4);
2187
- transform: scale(1);
2188
- }
2189
- 50% {
2190
- opacity: 1;
2191
- transform: scale(var(--fa-beat-fade-scale, 1.125));
2192
- }
2193
- }
2194
- @keyframes fa-flip {
2195
- 50% {
2196
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
2197
- }
2198
- }
2199
- @keyframes fa-shake {
2200
- 0% {
2201
- transform: rotate(-15deg);
2202
- }
2203
- 4% {
2204
- transform: rotate(15deg);
2205
- }
2206
- 8%, 24% {
2207
- transform: rotate(-18deg);
2208
- }
2209
- 12%, 28% {
2210
- transform: rotate(18deg);
2211
- }
2212
- 16% {
2213
- transform: rotate(-22deg);
2214
- }
2215
- 20% {
2216
- transform: rotate(22deg);
2217
- }
2218
- 32% {
2219
- transform: rotate(-12deg);
2220
- }
2221
- 36% {
2222
- transform: rotate(12deg);
2223
- }
2224
- 40%, 100% {
2225
- transform: rotate(0deg);
2226
- }
2227
- }
2228
- @keyframes fa-spin {
2229
- 0% {
2230
- transform: rotate(0deg);
2231
- }
2232
- 100% {
2233
- transform: rotate(360deg);
2234
- }
2235
- }
2236
- .fa-rotate-90 {
2237
- transform: rotate(90deg);
2238
- }
2239
-
2240
- .fa-rotate-180 {
2241
- transform: rotate(180deg);
2242
- }
2243
-
2244
- .fa-rotate-270 {
2245
- transform: rotate(270deg);
2246
- }
2247
-
2248
- .fa-flip-horizontal {
2249
- transform: scale(-1, 1);
2250
- }
2251
-
2252
- .fa-flip-vertical {
2253
- transform: scale(1, -1);
2254
- }
2255
-
2256
- .fa-flip-both,
2257
- .fa-flip-horizontal.fa-flip-vertical {
2258
- transform: scale(-1, -1);
2259
- }
2260
-
2261
- .fa-rotate-by {
2262
- transform: rotate(var(--fa-rotate-angle, 0));
2263
- }
2264
-
2265
- .svg-inline--fa .fa-primary {
2266
- fill: var(--fa-primary-color, currentColor);
2267
- opacity: var(--fa-primary-opacity, 1);
2268
- }
2269
-
2270
- .svg-inline--fa .fa-secondary {
2271
- fill: var(--fa-secondary-color, currentColor);
2272
- opacity: var(--fa-secondary-opacity, 0.4);
2273
- }
2274
-
2275
- .svg-inline--fa.fa-swap-opacity .fa-primary {
2276
- opacity: var(--fa-secondary-opacity, 0.4);
2277
- }
2278
-
2279
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
2280
- opacity: var(--fa-primary-opacity, 1);
2281
- }
2282
-
2283
- .svg-inline--fa mask .fa-primary,
2284
- .svg-inline--fa mask .fa-secondary {
2285
- fill: black;
2286
- }
2287
-
2288
- .svg-inline--fa.fa-inverse {
2289
- fill: var(--fa-inverse, #fff);
2290
- }
2291
-
2292
- .fa-stack {
2293
- display: inline-block;
2294
- height: 2em;
2295
- line-height: 2em;
2296
- position: relative;
2297
- vertical-align: middle;
2298
- width: 2.5em;
2299
- }
2300
-
2301
- .fa-inverse {
2302
- color: var(--fa-inverse, #fff);
2303
- }
2304
-
2305
- .svg-inline--fa.fa-stack-1x {
2306
- --fa-width: 1.25em;
2307
- height: 1em;
2308
- width: var(--fa-width);
2309
- }
2310
- .svg-inline--fa.fa-stack-2x {
2311
- --fa-width: 2.5em;
2312
- height: 2em;
2313
- width: var(--fa-width);
2314
- }
2315
-
2316
- .fa-stack-1x,
2317
- .fa-stack-2x {
2318
- inset: 0;
2319
- margin: auto;
2320
- position: absolute;
2321
- z-index: var(--fa-stack-z-index, auto);
2322
- }`;
2323
- function $a() {
2324
- var e = Ea, t = Pa, a = v.cssPrefix, n = v.replacementClass, r = qi;
2325
- if (a !== e || n !== t) {
2326
- var i = new RegExp("\\.".concat(e, "\\-"), "g"), s = new RegExp("\\--".concat(e, "\\-"), "g"), o = new RegExp("\\.".concat(t), "g");
2327
- r = r.replace(i, ".".concat(a, "-")).replace(s, "--".concat(a, "-")).replace(o, ".".concat(n));
2328
- }
2329
- return r;
2330
- }
2331
- var At = !1;
2332
- function Le() {
2333
- v.autoAddCss && !At && (Li($a()), At = !0);
2334
- }
2335
- var Ui = {
2336
- mixout: function() {
2337
- return {
2338
- dom: {
2339
- css: $a,
2340
- insertCss: Le
2341
- }
2342
- };
2343
- },
2344
- hooks: function() {
2345
- return {
2346
- beforeDOMElementCreation: function() {
2347
- Le();
2348
- },
2349
- beforeI2svg: function() {
2350
- Le();
2351
- }
2352
- };
2353
- }
2354
- }, M = q || {};
2355
- M[R] || (M[R] = {});
2356
- M[R].styles || (M[R].styles = {});
2357
- M[R].hooks || (M[R].hooks = {});
2358
- M[R].shims || (M[R].shims = []);
2359
- var O = M[R], La = [], Da = function() {
2360
- A.removeEventListener("DOMContentLoaded", Da), Se = 1, La.map(function(t) {
2361
- return t();
2362
- });
2363
- }, Se = !1;
2364
- z && (Se = (A.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(A.readyState), Se || A.addEventListener("DOMContentLoaded", Da));
2365
- function Wi(e) {
2366
- z && (Se ? setTimeout(e, 0) : La.push(e));
2367
- }
2368
- function ge(e) {
2369
- var t = e.tag, a = e.attributes, n = a === void 0 ? {} : a, r = e.children, i = r === void 0 ? [] : r;
2370
- return typeof e == "string" ? ja(e) : "<".concat(t, " ").concat(Ri(n), ">").concat(i.map(ge).join(""), "</").concat(t, ">");
2371
- }
2372
- function It(e, t, a) {
2373
- if (e && e[t] && e[t][a])
2374
- return {
2375
- prefix: t,
2376
- iconName: a,
2377
- icon: e[t][a]
2378
- };
2379
- }
2380
- var De = function(t, a, n, r) {
2381
- var i = Object.keys(t), s = i.length, o = a, l, f, u;
2382
- for (n === void 0 ? (l = 1, u = t[i[0]]) : (l = 0, u = n); l < s; l++)
2383
- f = i[l], u = o(u, t[f], f, t);
2384
- return u;
2385
- };
2386
- function Ra(e) {
2387
- return F(e).length !== 1 ? null : e.codePointAt(0).toString(16);
2388
- }
2389
- function Et(e) {
2390
- return Object.keys(e).reduce(function(t, a) {
2391
- var n = e[a], r = !!n.icon;
2392
- return r ? t[n.iconName] = n.icon : t[a] = n, t;
2393
- }, {});
2394
- }
2395
- function Ve(e, t) {
2396
- var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = a.skipHooks, r = n === void 0 ? !1 : n, i = Et(t);
2397
- typeof O.hooks.addPack == "function" && !r ? O.hooks.addPack(e, Et(t)) : O.styles[e] = m(m({}, O.styles[e] || {}), i), e === "fas" && Ve("fa", t);
2398
- }
2399
- var ue = O.styles, Bi = O.shims, Ma = Object.keys(it), Hi = Ma.reduce(function(e, t) {
2400
- return e[t] = Object.keys(it[t]), e;
2401
- }, {}), lt = null, za = {}, qa = {}, Ua = {}, Wa = {}, Ba = {};
2402
- function Yi(e) {
2403
- return ~Fi.indexOf(e);
2404
- }
2405
- function Vi(e, t) {
2406
- var a = t.split("-"), n = a[0], r = a.slice(1).join("-");
2407
- return n === e && r !== "" && !Yi(r) ? r : null;
2408
- }
2409
- var Ha = function() {
2410
- var t = function(i) {
2411
- return De(ue, function(s, o, l) {
2412
- return s[l] = De(o, i, {}), s;
2413
- }, {});
2414
- };
2415
- za = t(function(r, i, s) {
2416
- if (i[3] && (r[i[3]] = s), i[2]) {
2417
- var o = i[2].filter(function(l) {
2418
- return typeof l == "number";
2419
- });
2420
- o.forEach(function(l) {
2421
- r[l.toString(16)] = s;
2422
- });
2423
- }
2424
- return r;
2425
- }), qa = t(function(r, i, s) {
2426
- if (r[s] = s, i[2]) {
2427
- var o = i[2].filter(function(l) {
2428
- return typeof l == "string";
2429
- });
2430
- o.forEach(function(l) {
2431
- r[l] = s;
2432
- });
2433
- }
2434
- return r;
2435
- }), Ba = t(function(r, i, s) {
2436
- var o = i[2];
2437
- return r[s] = s, o.forEach(function(l) {
2438
- r[l] = s;
2439
- }), r;
2440
- });
2441
- var a = "far" in ue || v.autoFetchSvg, n = De(Bi, function(r, i) {
2442
- var s = i[0], o = i[1], l = i[2];
2443
- return o === "far" && !a && (o = "fas"), typeof s == "string" && (r.names[s] = {
2444
- prefix: o,
2445
- iconName: l
2446
- }), typeof s == "number" && (r.unicodes[s.toString(16)] = {
2447
- prefix: o,
2448
- iconName: l
2449
- }), r;
2450
- }, {
2451
- names: {},
2452
- unicodes: {}
2453
- });
2454
- Ua = n.names, Wa = n.unicodes, lt = Pe(v.styleDefault, {
2455
- family: v.familyDefault
2456
- });
2457
- };
2458
- $i(function(e) {
2459
- lt = Pe(e.styleDefault, {
2460
- family: v.familyDefault
2461
- });
2462
- });
2463
- Ha();
2464
- function ft(e, t) {
2465
- return (za[e] || {})[t];
2466
- }
2467
- function Ki(e, t) {
2468
- return (qa[e] || {})[t];
2469
- }
2470
- function H(e, t) {
2471
- return (Ba[e] || {})[t];
2472
- }
2473
- function Ya(e) {
2474
- return Ua[e] || {
2475
- prefix: null,
2476
- iconName: null
2477
- };
2478
- }
2479
- function Gi(e) {
2480
- var t = Wa[e], a = ft("fas", e);
2481
- return t || (a ? {
2482
- prefix: "fas",
2483
- iconName: a
2484
- } : null) || {
2485
- prefix: null,
2486
- iconName: null
2487
- };
2488
- }
2489
- function U() {
2490
- return lt;
2491
- }
2492
- var Va = function() {
2493
- return {
2494
- prefix: null,
2495
- iconName: null,
2496
- rest: []
2497
- };
2498
- };
2499
- function Xi(e) {
2500
- var t = E, a = Ma.reduce(function(n, r) {
2501
- return n[r] = "".concat(v.cssPrefix, "-").concat(r), n;
2502
- }, {});
2503
- return ka.forEach(function(n) {
2504
- (e.includes(a[n]) || e.some(function(r) {
2505
- return Hi[n].includes(r);
2506
- })) && (t = n);
2507
- }), t;
2508
- }
2509
- function Pe(e) {
2510
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = t.family, n = a === void 0 ? E : a, r = Ii[n][e];
2511
- if (n === de && !e)
2512
- return "fad";
2513
- var i = kt[n][e] || kt[n][r], s = e in O.styles ? e : null, o = i || s || null;
2514
- return o;
2515
- }
2516
- function Ji(e) {
2517
- var t = [], a = null;
2518
- return e.forEach(function(n) {
2519
- var r = Vi(v.cssPrefix, n);
2520
- r ? a = r : n && t.push(n);
2521
- }), {
2522
- iconName: a,
2523
- rest: t
2524
- };
2525
- }
2526
- function Pt(e) {
2527
- return e.sort().filter(function(t, a, n) {
2528
- return n.indexOf(t) === a;
2529
- });
2530
- }
2531
- var Ct = Aa.concat(Sa);
2532
- function Ce(e) {
2533
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = t.skipLookups, n = a === void 0 ? !1 : a, r = null, i = Pt(e.filter(function(g) {
2534
- return Ct.includes(g);
2535
- })), s = Pt(e.filter(function(g) {
2536
- return !Ct.includes(g);
2537
- })), o = i.filter(function(g) {
2538
- return r = g, !oa.includes(g);
2539
- }), l = Ie(o, 1), f = l[0], u = f === void 0 ? null : f, d = Xi(i), c = m(m({}, Ji(s)), {}, {
2540
- prefix: Pe(u, {
2541
- family: d
2542
- })
2543
- });
2544
- return m(m(m({}, c), to({
2545
- values: e,
2546
- family: d,
2547
- styles: ue,
2548
- config: v,
2549
- canonical: c,
2550
- givenPrefix: r
2551
- })), Zi(n, r, c));
2552
- }
2553
- function Zi(e, t, a) {
2554
- var n = a.prefix, r = a.iconName;
2555
- if (e || !n || !r)
2556
- return {
2557
- prefix: n,
2558
- iconName: r
2559
- };
2560
- var i = t === "fa" ? Ya(r) : {}, s = H(n, r);
2561
- return r = i.iconName || s || r, n = i.prefix || n, n === "far" && !ue.far && ue.fas && !v.autoFetchSvg && (n = "fas"), {
2562
- prefix: n,
2563
- iconName: r
2564
- };
2565
- }
2566
- var Qi = ka.filter(function(e) {
2567
- return e !== E || e !== de;
2568
- }), eo = Object.keys(qe).filter(function(e) {
2569
- return e !== E;
2570
- }).map(function(e) {
2571
- return Object.keys(qe[e]);
2572
- }).flat();
2573
- function to(e) {
2574
- var t = e.values, a = e.family, n = e.canonical, r = e.givenPrefix, i = r === void 0 ? "" : r, s = e.styles, o = s === void 0 ? {} : s, l = e.config, f = l === void 0 ? {} : l, u = a === de, d = t.includes("fa-duotone") || t.includes("fad"), c = f.familyDefault === "duotone", g = n.prefix === "fad" || n.prefix === "fa-duotone";
2575
- if (!u && (d || c || g) && (n.prefix = "fad"), (t.includes("fa-brands") || t.includes("fab")) && (n.prefix = "fab"), !n.prefix && Qi.includes(a)) {
2576
- var h = Object.keys(o).find(function(k) {
2577
- return eo.includes(k);
2578
- });
2579
- if (h || f.autoFetchSvg) {
2580
- var b = br.get(a).defaultShortPrefixId;
2581
- n.prefix = b, n.iconName = H(n.prefix, n.iconName) || n.iconName;
2582
- }
2583
- }
2584
- return (n.prefix === "fa" || i === "fa") && (n.prefix = U() || "fas"), n;
2585
- }
2586
- var ao = /* @__PURE__ */ (function() {
2587
- function e() {
2588
- zn(this, e), this.definitions = {};
2589
- }
2590
- return Un(e, [{
2591
- key: "add",
2592
- value: function() {
2593
- for (var a = this, n = arguments.length, r = new Array(n), i = 0; i < n; i++)
2594
- r[i] = arguments[i];
2595
- var s = r.reduce(this._pullDefinitions, {});
2596
- Object.keys(s).forEach(function(o) {
2597
- a.definitions[o] = m(m({}, a.definitions[o] || {}), s[o]), Ve(o, s[o]);
2598
- var l = it[E][o];
2599
- l && Ve(l, s[o]), Ha();
2600
- });
2601
- }
2602
- }, {
2603
- key: "reset",
2604
- value: function() {
2605
- this.definitions = {};
2606
- }
2607
- }, {
2608
- key: "_pullDefinitions",
2609
- value: function(a, n) {
2610
- var r = n.prefix && n.iconName && n.icon ? {
2611
- 0: n
2612
- } : n;
2613
- return Object.keys(r).map(function(i) {
2614
- var s = r[i], o = s.prefix, l = s.iconName, f = s.icon, u = f[2];
2615
- a[o] || (a[o] = {}), u.length > 0 && u.forEach(function(d) {
2616
- typeof d == "string" && (a[o][d] = f);
2617
- }), a[o][l] = f;
2618
- }), a;
2619
- }
2620
- }]);
2621
- })(), Ot = [], Q = {}, ee = {}, no = Object.keys(ee);
2622
- function ro(e, t) {
2623
- var a = t.mixoutsTo;
2624
- return Ot = e, Q = {}, Object.keys(ee).forEach(function(n) {
2625
- no.indexOf(n) === -1 && delete ee[n];
2626
- }), Ot.forEach(function(n) {
2627
- var r = n.mixout ? n.mixout() : {};
2628
- if (Object.keys(r).forEach(function(s) {
2629
- typeof r[s] == "function" && (a[s] = r[s]), ke(r[s]) === "object" && Object.keys(r[s]).forEach(function(o) {
2630
- a[s] || (a[s] = {}), a[s][o] = r[s][o];
2631
- });
2632
- }), n.hooks) {
2633
- var i = n.hooks();
2634
- Object.keys(i).forEach(function(s) {
2635
- Q[s] || (Q[s] = []), Q[s].push(i[s]);
2636
- });
2637
- }
2638
- n.provides && n.provides(ee);
2639
- }), a;
2640
- }
2641
- function Ke(e, t) {
2642
- for (var a = arguments.length, n = new Array(a > 2 ? a - 2 : 0), r = 2; r < a; r++)
2643
- n[r - 2] = arguments[r];
2644
- var i = Q[e] || [];
2645
- return i.forEach(function(s) {
2646
- t = s.apply(null, [t].concat(n));
2647
- }), t;
2648
- }
2649
- function K(e) {
2650
- for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
2651
- a[n - 1] = arguments[n];
2652
- var r = Q[e] || [];
2653
- r.forEach(function(i) {
2654
- i.apply(null, a);
2655
- });
2656
- }
2657
- function W() {
2658
- var e = arguments[0], t = Array.prototype.slice.call(arguments, 1);
2659
- return ee[e] ? ee[e].apply(null, t) : void 0;
2660
- }
2661
- function Ge(e) {
2662
- e.prefix === "fa" && (e.prefix = "fas");
2663
- var t = e.iconName, a = e.prefix || U();
2664
- if (t)
2665
- return t = H(a, t) || t, It(Ka.definitions, a, t) || It(O.styles, a, t);
2666
- }
2667
- var Ka = new ao(), io = function() {
2668
- v.autoReplaceSvg = !1, v.observeMutations = !1, K("noAuto");
2669
- }, oo = {
2670
- i2svg: function() {
2671
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2672
- return z ? (K("beforeI2svg", t), W("pseudoElements2svg", t), W("i2svg", t)) : Promise.reject(new Error("Operation requires a DOM of some kind."));
2673
- },
2674
- watch: function() {
2675
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = t.autoReplaceSvgRoot;
2676
- v.autoReplaceSvg === !1 && (v.autoReplaceSvg = !0), v.observeMutations = !0, Wi(function() {
2677
- lo({
2678
- autoReplaceSvgRoot: a
2679
- }), K("watch", t);
2680
- });
2681
- }
2682
- }, so = {
2683
- icon: function(t) {
2684
- if (t === null)
2685
- return null;
2686
- if (ke(t) === "object" && t.prefix && t.iconName)
2687
- return {
2688
- prefix: t.prefix,
2689
- iconName: H(t.prefix, t.iconName) || t.iconName
2690
- };
2691
- if (Array.isArray(t) && t.length === 2) {
2692
- var a = t[1].indexOf("fa-") === 0 ? t[1].slice(3) : t[1], n = Pe(t[0]);
2693
- return {
2694
- prefix: n,
2695
- iconName: H(n, a) || a
2696
- };
2697
- }
2698
- if (typeof t == "string" && (t.indexOf("".concat(v.cssPrefix, "-")) > -1 || t.match(Ei))) {
2699
- var r = Ce(t.split(" "), {
2700
- skipLookups: !0
2701
- });
2702
- return {
2703
- prefix: r.prefix || U(),
2704
- iconName: H(r.prefix, r.iconName) || r.iconName
2705
- };
2706
- }
2707
- if (typeof t == "string") {
2708
- var i = U();
2709
- return {
2710
- prefix: i,
2711
- iconName: H(i, t) || t
2712
- };
2713
- }
2714
- }
2715
- }, C = {
2716
- noAuto: io,
2717
- config: v,
2718
- dom: oo,
2719
- parse: so,
2720
- library: Ka,
2721
- findIconDefinition: Ge,
2722
- toHtml: ge
2723
- }, lo = function() {
2724
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = t.autoReplaceSvgRoot, n = a === void 0 ? A : a;
2725
- (Object.keys(O.styles).length > 0 || v.autoFetchSvg) && z && v.autoReplaceSvg && C.dom.i2svg({
2726
- node: n
2727
- });
2728
- };
2729
- function Oe(e, t) {
2730
- return Object.defineProperty(e, "abstract", {
2731
- get: t
2732
- }), Object.defineProperty(e, "html", {
2733
- get: function() {
2734
- return e.abstract.map(function(n) {
2735
- return ge(n);
2736
- });
2737
- }
2738
- }), Object.defineProperty(e, "node", {
2739
- get: function() {
2740
- if (z) {
2741
- var n = A.createElement("div");
2742
- return n.innerHTML = e.html, n.children;
2743
- }
2744
- }
2745
- }), e;
2746
- }
2747
- function fo(e) {
2748
- var t = e.children, a = e.main, n = e.mask, r = e.attributes, i = e.styles, s = e.transform;
2749
- if (st(s) && a.found && !n.found) {
2750
- var o = a.width, l = a.height, f = {
2751
- x: o / l / 2,
2752
- y: 0.5
2753
- };
2754
- r.style = Ee(m(m({}, i), {}, {
2755
- "transform-origin": "".concat(f.x + s.x / 16, "em ").concat(f.y + s.y / 16, "em")
2756
- }));
2757
- }
2758
- return [{
2759
- tag: "svg",
2760
- attributes: r,
2761
- children: t
2762
- }];
2763
- }
2764
- function uo(e) {
2765
- var t = e.prefix, a = e.iconName, n = e.children, r = e.attributes, i = e.symbol, s = i === !0 ? "".concat(t, "-").concat(v.cssPrefix, "-").concat(a) : i;
2766
- return [{
2767
- tag: "svg",
2768
- attributes: {
2769
- style: "display: none;"
2770
- },
2771
- children: [{
2772
- tag: "symbol",
2773
- attributes: m(m({}, r), {}, {
2774
- id: s
2775
- }),
2776
- children: n
2777
- }]
2778
- }];
2779
- }
2780
- function co(e) {
2781
- var t = ["aria-label", "aria-labelledby", "title", "role"];
2782
- return t.some(function(a) {
2783
- return a in e;
2784
- });
2785
- }
2786
- function ut(e) {
2787
- var t = e.icons, a = t.main, n = t.mask, r = e.prefix, i = e.iconName, s = e.transform, o = e.symbol, l = e.maskId, f = e.extra, u = e.watchable, d = u === void 0 ? !1 : u, c = n.found ? n : a, g = c.width, h = c.height, b = [v.replacementClass, i ? "".concat(v.cssPrefix, "-").concat(i) : ""].filter(function(p) {
2788
- return f.classes.indexOf(p) === -1;
2789
- }).filter(function(p) {
2790
- return p !== "" || !!p;
2791
- }).concat(f.classes).join(" "), k = {
2792
- children: [],
2793
- attributes: m(m({}, f.attributes), {}, {
2794
- "data-prefix": r,
2795
- "data-icon": i,
2796
- class: b,
2797
- role: f.attributes.role || "img",
2798
- viewBox: "0 0 ".concat(g, " ").concat(h)
2799
- })
2800
- };
2801
- !co(f.attributes) && !f.attributes["aria-hidden"] && (k.attributes["aria-hidden"] = "true"), d && (k.attributes[V] = "");
2802
- var x = m(m({}, k), {}, {
2803
- prefix: r,
2804
- iconName: i,
2805
- main: a,
2806
- mask: n,
2807
- maskId: l,
2808
- transform: s,
2809
- symbol: o,
2810
- styles: m({}, f.styles)
2811
- }), w = n.found && a.found ? W("generateAbstractMask", x) || {
2812
- children: [],
2813
- attributes: {}
2814
- } : W("generateAbstractIcon", x) || {
2815
- children: [],
2816
- attributes: {}
2817
- }, S = w.children, y = w.attributes;
2818
- return x.children = S, x.attributes = y, o ? uo(x) : fo(x);
2819
- }
2820
- function Ft(e) {
2821
- var t = e.content, a = e.width, n = e.height, r = e.transform, i = e.extra, s = e.watchable, o = s === void 0 ? !1 : s, l = m(m({}, i.attributes), {}, {
2822
- class: i.classes.join(" ")
2823
- });
2824
- o && (l[V] = "");
2825
- var f = m({}, i.styles);
2826
- st(r) && (f.transform = zi({
2827
- transform: r,
2828
- width: a,
2829
- height: n
2830
- }), f["-webkit-transform"] = f.transform);
2831
- var u = Ee(f);
2832
- u.length > 0 && (l.style = u);
2833
- var d = [];
2834
- return d.push({
2835
- tag: "span",
2836
- attributes: l,
2837
- children: [t]
2838
- }), d;
2839
- }
2840
- function mo(e) {
2841
- var t = e.content, a = e.extra, n = m(m({}, a.attributes), {}, {
2842
- class: a.classes.join(" ")
2843
- }), r = Ee(a.styles);
2844
- r.length > 0 && (n.style = r);
2845
- var i = [];
2846
- return i.push({
2847
- tag: "span",
2848
- attributes: n,
2849
- children: [t]
2850
- }), i;
2851
- }
2852
- var Re = O.styles;
2853
- function Xe(e) {
2854
- var t = e[0], a = e[1], n = e.slice(4), r = Ie(n, 1), i = r[0], s = null;
2855
- return Array.isArray(i) ? s = {
2856
- tag: "g",
2857
- attributes: {
2858
- class: "".concat(v.cssPrefix, "-").concat($e.GROUP)
2859
- },
2860
- children: [{
2861
- tag: "path",
2862
- attributes: {
2863
- class: "".concat(v.cssPrefix, "-").concat($e.SECONDARY),
2864
- fill: "currentColor",
2865
- d: i[0]
2866
- }
2867
- }, {
2868
- tag: "path",
2869
- attributes: {
2870
- class: "".concat(v.cssPrefix, "-").concat($e.PRIMARY),
2871
- fill: "currentColor",
2872
- d: i[1]
2873
- }
2874
- }]
2875
- } : s = {
2876
- tag: "path",
2877
- attributes: {
2878
- fill: "currentColor",
2879
- d: i
2880
- }
2881
- }, {
2882
- found: !0,
2883
- width: t,
2884
- height: a,
2885
- icon: s
2886
- };
2887
- }
2888
- var go = {
2889
- found: !1,
2890
- width: 512,
2891
- height: 512
2892
- };
2893
- function ho(e, t) {
2894
- !Oa && !v.showMissingIcons && e && console.error('Icon with name "'.concat(e, '" and prefix "').concat(t, '" is missing.'));
2895
- }
2896
- function Je(e, t) {
2897
- var a = t;
2898
- return t === "fa" && v.styleDefault !== null && (t = U()), new Promise(function(n, r) {
2899
- if (a === "fa") {
2900
- var i = Ya(e) || {};
2901
- e = i.iconName || e, t = i.prefix || t;
2902
- }
2903
- if (e && t && Re[t] && Re[t][e]) {
2904
- var s = Re[t][e];
2905
- return n(Xe(s));
2906
- }
2907
- ho(e, t), n(m(m({}, go), {}, {
2908
- icon: v.showMissingIcons && e ? W("missingIconAbstract") || {} : {}
2909
- }));
2910
- });
2911
- }
2912
- var Nt = function() {
2913
- }, Ze = v.measurePerformance && pe && pe.mark && pe.measure ? pe : {
2914
- mark: Nt,
2915
- measure: Nt
2916
- }, re = 'FA "7.1.0"', po = function(t) {
2917
- return Ze.mark("".concat(re, " ").concat(t, " begins")), function() {
2918
- return Ga(t);
2919
- };
2920
- }, Ga = function(t) {
2921
- Ze.mark("".concat(re, " ").concat(t, " ends")), Ze.measure("".concat(re, " ").concat(t), "".concat(re, " ").concat(t, " begins"), "".concat(re, " ").concat(t, " ends"));
2922
- }, ct = {
2923
- begin: po,
2924
- end: Ga
2925
- }, _e = function() {
2926
- };
2927
- function Tt(e) {
2928
- var t = e.getAttribute ? e.getAttribute(V) : null;
2929
- return typeof t == "string";
2930
- }
2931
- function vo(e) {
2932
- var t = e.getAttribute ? e.getAttribute(nt) : null, a = e.getAttribute ? e.getAttribute(rt) : null;
2933
- return t && a;
2934
- }
2935
- function bo(e) {
2936
- return e && e.classList && e.classList.contains && e.classList.contains(v.replacementClass);
2937
- }
2938
- function yo() {
2939
- if (v.autoReplaceSvg === !0)
2940
- return xe.replace;
2941
- var e = xe[v.autoReplaceSvg];
2942
- return e || xe.replace;
2943
- }
2944
- function _o(e) {
2945
- return A.createElementNS("http://www.w3.org/2000/svg", e);
2946
- }
2947
- function xo(e) {
2948
- return A.createElement(e);
2949
- }
2950
- function Xa(e) {
2951
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = t.ceFn, n = a === void 0 ? e.tag === "svg" ? _o : xo : a;
2952
- if (typeof e == "string")
2953
- return A.createTextNode(e);
2954
- var r = n(e.tag);
2955
- Object.keys(e.attributes || []).forEach(function(s) {
2956
- r.setAttribute(s, e.attributes[s]);
2957
- });
2958
- var i = e.children || [];
2959
- return i.forEach(function(s) {
2960
- r.appendChild(Xa(s, {
2961
- ceFn: n
2962
- }));
2963
- }), r;
2964
- }
2965
- function wo(e) {
2966
- var t = " ".concat(e.outerHTML, " ");
2967
- return t = "".concat(t, "Font Awesome fontawesome.com "), t;
2968
- }
2969
- var xe = {
2970
- replace: function(t) {
2971
- var a = t[0];
2972
- if (a.parentNode)
2973
- if (t[1].forEach(function(r) {
2974
- a.parentNode.insertBefore(Xa(r), a);
2975
- }), a.getAttribute(V) === null && v.keepOriginalSource) {
2976
- var n = A.createComment(wo(a));
2977
- a.parentNode.replaceChild(n, a);
2978
- } else
2979
- a.remove();
2980
- },
2981
- nest: function(t) {
2982
- var a = t[0], n = t[1];
2983
- if (~ot(a).indexOf(v.replacementClass))
2984
- return xe.replace(t);
2985
- var r = new RegExp("".concat(v.cssPrefix, "-.*"));
2986
- if (delete n[0].attributes.id, n[0].attributes.class) {
2987
- var i = n[0].attributes.class.split(" ").reduce(function(o, l) {
2988
- return l === v.replacementClass || l.match(r) ? o.toSvg.push(l) : o.toNode.push(l), o;
2989
- }, {
2990
- toNode: [],
2991
- toSvg: []
2992
- });
2993
- n[0].attributes.class = i.toSvg.join(" "), i.toNode.length === 0 ? a.removeAttribute("class") : a.setAttribute("class", i.toNode.join(" "));
2994
- }
2995
- var s = n.map(function(o) {
2996
- return ge(o);
2997
- }).join(`
2998
- `);
2999
- a.setAttribute(V, ""), a.innerHTML = s;
3000
- }
3001
- };
3002
- function jt(e) {
3003
- e();
3004
- }
3005
- function Ja(e, t) {
3006
- var a = typeof t == "function" ? t : _e;
3007
- if (e.length === 0)
3008
- a();
3009
- else {
3010
- var n = jt;
3011
- v.mutateApproach === Si && (n = q.requestAnimationFrame || jt), n(function() {
3012
- var r = yo(), i = ct.begin("mutate");
3013
- e.map(r), i(), a();
3014
- });
3015
- }
3016
- }
3017
- var dt = !1;
3018
- function Za() {
3019
- dt = !0;
3020
- }
3021
- function Qe() {
3022
- dt = !1;
3023
- }
3024
- var Ae = null;
3025
- function $t(e) {
3026
- if (yt && v.observeMutations) {
3027
- var t = e.treeCallback, a = t === void 0 ? _e : t, n = e.nodeCallback, r = n === void 0 ? _e : n, i = e.pseudoElementsCallback, s = i === void 0 ? _e : i, o = e.observeMutationsRoot, l = o === void 0 ? A : o;
3028
- Ae = new yt(function(f) {
3029
- if (!dt) {
3030
- var u = U();
3031
- ae(f).forEach(function(d) {
3032
- if (d.type === "childList" && d.addedNodes.length > 0 && !Tt(d.addedNodes[0]) && (v.searchPseudoElements && s(d.target), a(d.target)), d.type === "attributes" && d.target.parentNode && v.searchPseudoElements && s([d.target], !0), d.type === "attributes" && Tt(d.target) && ~Oi.indexOf(d.attributeName))
3033
- if (d.attributeName === "class" && vo(d.target)) {
3034
- var c = Ce(ot(d.target)), g = c.prefix, h = c.iconName;
3035
- d.target.setAttribute(nt, g || u), h && d.target.setAttribute(rt, h);
3036
- } else bo(d.target) && r(d.target);
3037
- });
3038
- }
3039
- }), z && Ae.observe(l, {
3040
- childList: !0,
3041
- attributes: !0,
3042
- characterData: !0,
3043
- subtree: !0
3044
- });
3045
- }
3046
- }
3047
- function ko() {
3048
- Ae && Ae.disconnect();
3049
- }
3050
- function So(e) {
3051
- var t = e.getAttribute("style"), a = [];
3052
- return t && (a = t.split(";").reduce(function(n, r) {
3053
- var i = r.split(":"), s = i[0], o = i.slice(1);
3054
- return s && o.length > 0 && (n[s] = o.join(":").trim()), n;
3055
- }, {})), a;
3056
- }
3057
- function Ao(e) {
3058
- var t = e.getAttribute("data-prefix"), a = e.getAttribute("data-icon"), n = e.innerText !== void 0 ? e.innerText.trim() : "", r = Ce(ot(e));
3059
- return r.prefix || (r.prefix = U()), t && a && (r.prefix = t, r.iconName = a), r.iconName && r.prefix || (r.prefix && n.length > 0 && (r.iconName = Ki(r.prefix, e.innerText) || ft(r.prefix, Ra(e.innerText))), !r.iconName && v.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (r.iconName = e.firstChild.data)), r;
3060
- }
3061
- function Io(e) {
3062
- var t = ae(e.attributes).reduce(function(a, n) {
3063
- return a.name !== "class" && a.name !== "style" && (a[n.name] = n.value), a;
3064
- }, {});
3065
- return t;
3066
- }
3067
- function Eo() {
3068
- return {
3069
- iconName: null,
3070
- prefix: null,
3071
- transform: N,
3072
- symbol: !1,
3073
- mask: {
3074
- iconName: null,
3075
- prefix: null,
3076
- rest: []
3077
- },
3078
- maskId: null,
3079
- extra: {
3080
- classes: [],
3081
- styles: {},
3082
- attributes: {}
3083
- }
3084
- };
3085
- }
3086
- function Lt(e) {
3087
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
3088
- styleParser: !0
3089
- }, a = Ao(e), n = a.iconName, r = a.prefix, i = a.rest, s = Io(e), o = Ke("parseNodeAttributes", {}, e), l = t.styleParser ? So(e) : [];
3090
- return m({
3091
- iconName: n,
3092
- prefix: r,
3093
- transform: N,
3094
- mask: {
3095
- iconName: null,
3096
- prefix: null,
3097
- rest: []
3098
- },
3099
- maskId: null,
3100
- symbol: !1,
3101
- extra: {
3102
- classes: i,
3103
- styles: l,
3104
- attributes: s
3105
- }
3106
- }, o);
3107
- }
3108
- var Po = O.styles;
3109
- function Qa(e) {
3110
- var t = v.autoReplaceSvg === "nest" ? Lt(e, {
3111
- styleParser: !1
3112
- }) : Lt(e);
3113
- return ~t.extra.classes.indexOf(Na) ? W("generateLayersText", e, t) : W("generateSvgReplacementMutation", e, t);
3114
- }
3115
- function Co() {
3116
- return [].concat(F(Sa), F(Aa));
3117
- }
3118
- function Dt(e) {
3119
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
3120
- if (!z) return Promise.resolve();
3121
- var a = A.documentElement.classList, n = function(d) {
3122
- return a.add("".concat(wt, "-").concat(d));
3123
- }, r = function(d) {
3124
- return a.remove("".concat(wt, "-").concat(d));
3125
- }, i = v.autoFetchSvg ? Co() : oa.concat(Object.keys(Po));
3126
- i.includes("fa") || i.push("fa");
3127
- var s = [".".concat(Na, ":not([").concat(V, "])")].concat(i.map(function(u) {
3128
- return ".".concat(u, ":not([").concat(V, "])");
3129
- })).join(", ");
3130
- if (s.length === 0)
3131
- return Promise.resolve();
3132
- var o = [];
3133
- try {
3134
- o = ae(e.querySelectorAll(s));
3135
- } catch {
3136
- }
3137
- if (o.length > 0)
3138
- n("pending"), r("complete");
3139
- else
3140
- return Promise.resolve();
3141
- var l = ct.begin("onTree"), f = o.reduce(function(u, d) {
3142
- try {
3143
- var c = Qa(d);
3144
- c && u.push(c);
3145
- } catch (g) {
3146
- Oa || g.name === "MissingIcon" && console.error(g);
3147
- }
3148
- return u;
3149
- }, []);
3150
- return new Promise(function(u, d) {
3151
- Promise.all(f).then(function(c) {
3152
- Ja(c, function() {
3153
- n("active"), n("complete"), r("pending"), typeof t == "function" && t(), l(), u();
3154
- });
3155
- }).catch(function(c) {
3156
- l(), d(c);
3157
- });
3158
- });
3159
- }
3160
- function Oo(e) {
3161
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
3162
- Qa(e).then(function(a) {
3163
- a && Ja([a], t);
3164
- });
3165
- }
3166
- function Fo(e) {
3167
- return function(t) {
3168
- var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = (t || {}).icon ? t : Ge(t || {}), r = a.mask;
3169
- return r && (r = (r || {}).icon ? r : Ge(r || {})), e(n, m(m({}, a), {}, {
3170
- mask: r
3171
- }));
3172
- };
3173
- }
3174
- var No = function(t) {
3175
- var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = a.transform, r = n === void 0 ? N : n, i = a.symbol, s = i === void 0 ? !1 : i, o = a.mask, l = o === void 0 ? null : o, f = a.maskId, u = f === void 0 ? null : f, d = a.classes, c = d === void 0 ? [] : d, g = a.attributes, h = g === void 0 ? {} : g, b = a.styles, k = b === void 0 ? {} : b;
3176
- if (t) {
3177
- var x = t.prefix, w = t.iconName, S = t.icon;
3178
- return Oe(m({
3179
- type: "icon"
3180
- }, t), function() {
3181
- return K("beforeDOMElementCreation", {
3182
- iconDefinition: t,
3183
- params: a
3184
- }), ut({
3185
- icons: {
3186
- main: Xe(S),
3187
- mask: l ? Xe(l.icon) : {
3188
- found: !1,
3189
- width: null,
3190
- height: null,
3191
- icon: {}
3192
- }
3193
- },
3194
- prefix: x,
3195
- iconName: w,
3196
- transform: m(m({}, N), r),
3197
- symbol: s,
3198
- maskId: u,
3199
- extra: {
3200
- attributes: h,
3201
- styles: k,
3202
- classes: c
3203
- }
3204
- });
3205
- });
3206
- }
3207
- }, To = {
3208
- mixout: function() {
3209
- return {
3210
- icon: Fo(No)
3211
- };
3212
- },
3213
- hooks: function() {
3214
- return {
3215
- mutationObserverCallbacks: function(a) {
3216
- return a.treeCallback = Dt, a.nodeCallback = Oo, a;
3217
- }
3218
- };
3219
- },
3220
- provides: function(t) {
3221
- t.i2svg = function(a) {
3222
- var n = a.node, r = n === void 0 ? A : n, i = a.callback, s = i === void 0 ? function() {
3223
- } : i;
3224
- return Dt(r, s);
3225
- }, t.generateSvgReplacementMutation = function(a, n) {
3226
- var r = n.iconName, i = n.prefix, s = n.transform, o = n.symbol, l = n.mask, f = n.maskId, u = n.extra;
3227
- return new Promise(function(d, c) {
3228
- Promise.all([Je(r, i), l.iconName ? Je(l.iconName, l.prefix) : Promise.resolve({
3229
- found: !1,
3230
- width: 512,
3231
- height: 512,
3232
- icon: {}
3233
- })]).then(function(g) {
3234
- var h = Ie(g, 2), b = h[0], k = h[1];
3235
- d([a, ut({
3236
- icons: {
3237
- main: b,
3238
- mask: k
3239
- },
3240
- prefix: i,
3241
- iconName: r,
3242
- transform: s,
3243
- symbol: o,
3244
- maskId: f,
3245
- extra: u,
3246
- watchable: !0
3247
- })]);
3248
- }).catch(c);
3249
- });
3250
- }, t.generateAbstractIcon = function(a) {
3251
- var n = a.children, r = a.attributes, i = a.main, s = a.transform, o = a.styles, l = Ee(o);
3252
- l.length > 0 && (r.style = l);
3253
- var f;
3254
- return st(s) && (f = W("generateAbstractTransformGrouping", {
3255
- main: i,
3256
- transform: s,
3257
- containerWidth: i.width,
3258
- iconWidth: i.width
3259
- })), n.push(f || i.icon), {
3260
- children: n,
3261
- attributes: r
3262
- };
3263
- };
3264
- }
3265
- }, jo = {
3266
- mixout: function() {
3267
- return {
3268
- layer: function(a) {
3269
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.classes, i = r === void 0 ? [] : r;
3270
- return Oe({
3271
- type: "layer"
3272
- }, function() {
3273
- K("beforeDOMElementCreation", {
3274
- assembler: a,
3275
- params: n
3276
- });
3277
- var s = [];
3278
- return a(function(o) {
3279
- Array.isArray(o) ? o.map(function(l) {
3280
- s = s.concat(l.abstract);
3281
- }) : s = s.concat(o.abstract);
3282
- }), [{
3283
- tag: "span",
3284
- attributes: {
3285
- class: ["".concat(v.cssPrefix, "-layers")].concat(F(i)).join(" ")
3286
- },
3287
- children: s
3288
- }];
3289
- });
3290
- }
3291
- };
3292
- }
3293
- }, $o = {
3294
- mixout: function() {
3295
- return {
3296
- counter: function(a) {
3297
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3298
- n.title;
3299
- var r = n.classes, i = r === void 0 ? [] : r, s = n.attributes, o = s === void 0 ? {} : s, l = n.styles, f = l === void 0 ? {} : l;
3300
- return Oe({
3301
- type: "counter",
3302
- content: a
3303
- }, function() {
3304
- return K("beforeDOMElementCreation", {
3305
- content: a,
3306
- params: n
3307
- }), mo({
3308
- content: a.toString(),
3309
- extra: {
3310
- attributes: o,
3311
- styles: f,
3312
- classes: ["".concat(v.cssPrefix, "-layers-counter")].concat(F(i))
3313
- }
3314
- });
3315
- });
3316
- }
3317
- };
3318
- }
3319
- }, Lo = {
3320
- mixout: function() {
3321
- return {
3322
- text: function(a) {
3323
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.transform, i = r === void 0 ? N : r, s = n.classes, o = s === void 0 ? [] : s, l = n.attributes, f = l === void 0 ? {} : l, u = n.styles, d = u === void 0 ? {} : u;
3324
- return Oe({
3325
- type: "text",
3326
- content: a
3327
- }, function() {
3328
- return K("beforeDOMElementCreation", {
3329
- content: a,
3330
- params: n
3331
- }), Ft({
3332
- content: a,
3333
- transform: m(m({}, N), i),
3334
- extra: {
3335
- attributes: f,
3336
- styles: d,
3337
- classes: ["".concat(v.cssPrefix, "-layers-text")].concat(F(o))
3338
- }
3339
- });
3340
- });
3341
- }
3342
- };
3343
- },
3344
- provides: function(t) {
3345
- t.generateLayersText = function(a, n) {
3346
- var r = n.transform, i = n.extra, s = null, o = null;
3347
- if (ra) {
3348
- var l = parseInt(getComputedStyle(a).fontSize, 10), f = a.getBoundingClientRect();
3349
- s = f.width / l, o = f.height / l;
3350
- }
3351
- return Promise.resolve([a, Ft({
3352
- content: a.innerHTML,
3353
- width: s,
3354
- height: o,
3355
- transform: r,
3356
- extra: i,
3357
- watchable: !0
3358
- })]);
3359
- };
3360
- }
3361
- }, en = new RegExp('"', "ug"), Rt = [1105920, 1112319], Mt = m(m(m(m({}, {
3362
- FontAwesome: {
3363
- normal: "fas",
3364
- 400: "fas"
3365
- }
3366
- }), vr), wi), Ir), et = Object.keys(Mt).reduce(function(e, t) {
3367
- return e[t.toLowerCase()] = Mt[t], e;
3368
- }, {}), Do = Object.keys(et).reduce(function(e, t) {
3369
- var a = et[t];
3370
- return e[t] = a[900] || F(Object.entries(a))[0][1], e;
3371
- }, {});
3372
- function Ro(e) {
3373
- var t = e.replace(en, "");
3374
- return Ra(F(t)[0] || "");
3375
- }
3376
- function Mo(e) {
3377
- var t = e.getPropertyValue("font-feature-settings").includes("ss01"), a = e.getPropertyValue("content"), n = a.replace(en, ""), r = n.codePointAt(0), i = r >= Rt[0] && r <= Rt[1], s = n.length === 2 ? n[0] === n[1] : !1;
3378
- return i || s || t;
3379
- }
3380
- function zo(e, t) {
3381
- var a = e.replace(/^['"]|['"]$/g, "").toLowerCase(), n = parseInt(t), r = isNaN(n) ? "normal" : n;
3382
- return (et[a] || {})[r] || Do[a];
3383
- }
3384
- function zt(e, t) {
3385
- var a = "".concat(ki).concat(t.replace(":", "-"));
3386
- return new Promise(function(n, r) {
3387
- if (e.getAttribute(a) !== null)
3388
- return n();
3389
- var i = ae(e.children), s = i.filter(function(P) {
3390
- return P.getAttribute(We) === t;
3391
- })[0], o = q.getComputedStyle(e, t), l = o.getPropertyValue("font-family"), f = l.match(Pi), u = o.getPropertyValue("font-weight"), d = o.getPropertyValue("content");
3392
- if (s && !f)
3393
- return e.removeChild(s), n();
3394
- if (f && d !== "none" && d !== "") {
3395
- var c = o.getPropertyValue("content"), g = zo(l, u), h = Ro(c), b = f[0].startsWith("FontAwesome"), k = Mo(o), x = ft(g, h), w = x;
3396
- if (b) {
3397
- var S = Gi(h);
3398
- S.iconName && S.prefix && (x = S.iconName, g = S.prefix);
3399
- }
3400
- if (x && !k && (!s || s.getAttribute(nt) !== g || s.getAttribute(rt) !== w)) {
3401
- e.setAttribute(a, w), s && e.removeChild(s);
3402
- var y = Eo(), p = y.extra;
3403
- p.attributes[We] = t, Je(x, g).then(function(P) {
3404
- var T = ut(m(m({}, y), {}, {
3405
- icons: {
3406
- main: P,
3407
- mask: Va()
3408
- },
3409
- prefix: g,
3410
- iconName: w,
3411
- extra: p,
3412
- watchable: !0
3413
- })), B = A.createElementNS("http://www.w3.org/2000/svg", "svg");
3414
- t === "::before" ? e.insertBefore(B, e.firstChild) : e.appendChild(B), B.outerHTML = T.map(function(G) {
3415
- return ge(G);
3416
- }).join(`
3417
- `), e.removeAttribute(a), n();
3418
- }).catch(r);
3419
- } else
3420
- n();
3421
- } else
3422
- n();
3423
- });
3424
- }
3425
- function qo(e) {
3426
- return Promise.all([zt(e, "::before"), zt(e, "::after")]);
3427
- }
3428
- function Uo(e) {
3429
- return e.parentNode !== document.head && !~Ai.indexOf(e.tagName.toUpperCase()) && !e.getAttribute(We) && (!e.parentNode || e.parentNode.tagName !== "svg");
3430
- }
3431
- var Wo = function(t) {
3432
- return !!t && Ca.some(function(a) {
3433
- return t.includes(a);
3434
- });
3435
- }, Bo = function(t) {
3436
- if (!t) return [];
3437
- var a = /* @__PURE__ */ new Set(), n = t.split(/,(?![^()]*\))/).map(function(l) {
3438
- return l.trim();
3439
- });
3440
- n = n.flatMap(function(l) {
3441
- return l.includes("(") ? l : l.split(",").map(function(f) {
3442
- return f.trim();
3443
- });
3444
- });
3445
- var r = ye(n), i;
3446
- try {
3447
- for (r.s(); !(i = r.n()).done; ) {
3448
- var s = i.value;
3449
- if (Wo(s)) {
3450
- var o = Ca.reduce(function(l, f) {
3451
- return l.replace(f, "");
3452
- }, s);
3453
- o !== "" && o !== "*" && a.add(o);
3454
- }
3455
- }
3456
- } catch (l) {
3457
- r.e(l);
3458
- } finally {
3459
- r.f();
3460
- }
3461
- return a;
3462
- };
3463
- function qt(e) {
3464
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
3465
- if (z) {
3466
- var a;
3467
- if (t)
3468
- a = e;
3469
- else if (v.searchPseudoElementsFullScan)
3470
- a = e.querySelectorAll("*");
3471
- else {
3472
- var n = /* @__PURE__ */ new Set(), r = ye(document.styleSheets), i;
3473
- try {
3474
- for (r.s(); !(i = r.n()).done; ) {
3475
- var s = i.value;
3476
- try {
3477
- var o = ye(s.cssRules), l;
3478
- try {
3479
- for (o.s(); !(l = o.n()).done; ) {
3480
- var f = l.value, u = Bo(f.selectorText), d = ye(u), c;
3481
- try {
3482
- for (d.s(); !(c = d.n()).done; ) {
3483
- var g = c.value;
3484
- n.add(g);
3485
- }
3486
- } catch (b) {
3487
- d.e(b);
3488
- } finally {
3489
- d.f();
3490
- }
3491
- }
3492
- } catch (b) {
3493
- o.e(b);
3494
- } finally {
3495
- o.f();
3496
- }
3497
- } catch (b) {
3498
- v.searchPseudoElementsWarnings && console.warn("Font Awesome: cannot parse stylesheet: ".concat(s.href, " (").concat(b.message, `)
3499
- If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`));
3500
- }
3501
- }
3502
- } catch (b) {
3503
- r.e(b);
3504
- } finally {
3505
- r.f();
3506
- }
3507
- if (!n.size) return;
3508
- var h = Array.from(n).join(", ");
3509
- try {
3510
- a = e.querySelectorAll(h);
3511
- } catch {
3512
- }
3513
- }
3514
- return new Promise(function(b, k) {
3515
- var x = ae(a).filter(Uo).map(qo), w = ct.begin("searchPseudoElements");
3516
- Za(), Promise.all(x).then(function() {
3517
- w(), Qe(), b();
3518
- }).catch(function() {
3519
- w(), Qe(), k();
3520
- });
3521
- });
3522
- }
3523
- }
3524
- var Ho = {
3525
- hooks: function() {
3526
- return {
3527
- mutationObserverCallbacks: function(a) {
3528
- return a.pseudoElementsCallback = qt, a;
3529
- }
3530
- };
3531
- },
3532
- provides: function(t) {
3533
- t.pseudoElements2svg = function(a) {
3534
- var n = a.node, r = n === void 0 ? A : n;
3535
- v.searchPseudoElements && qt(r);
3536
- };
3537
- }
3538
- }, Ut = !1, Yo = {
3539
- mixout: function() {
3540
- return {
3541
- dom: {
3542
- unwatch: function() {
3543
- Za(), Ut = !0;
3544
- }
3545
- }
3546
- };
3547
- },
3548
- hooks: function() {
3549
- return {
3550
- bootstrap: function() {
3551
- $t(Ke("mutationObserverCallbacks", {}));
3552
- },
3553
- noAuto: function() {
3554
- ko();
3555
- },
3556
- watch: function(a) {
3557
- var n = a.observeMutationsRoot;
3558
- Ut ? Qe() : $t(Ke("mutationObserverCallbacks", {
3559
- observeMutationsRoot: n
3560
- }));
3561
- }
3562
- };
3563
- }
3564
- }, Wt = function(t) {
3565
- var a = {
3566
- size: 16,
3567
- x: 0,
3568
- y: 0,
3569
- flipX: !1,
3570
- flipY: !1,
3571
- rotate: 0
3572
- };
3573
- return t.toLowerCase().split(" ").reduce(function(n, r) {
3574
- var i = r.toLowerCase().split("-"), s = i[0], o = i.slice(1).join("-");
3575
- if (s && o === "h")
3576
- return n.flipX = !0, n;
3577
- if (s && o === "v")
3578
- return n.flipY = !0, n;
3579
- if (o = parseFloat(o), isNaN(o))
3580
- return n;
3581
- switch (s) {
3582
- case "grow":
3583
- n.size = n.size + o;
3584
- break;
3585
- case "shrink":
3586
- n.size = n.size - o;
3587
- break;
3588
- case "left":
3589
- n.x = n.x - o;
3590
- break;
3591
- case "right":
3592
- n.x = n.x + o;
3593
- break;
3594
- case "up":
3595
- n.y = n.y - o;
3596
- break;
3597
- case "down":
3598
- n.y = n.y + o;
3599
- break;
3600
- case "rotate":
3601
- n.rotate = n.rotate + o;
3602
- break;
3603
- }
3604
- return n;
3605
- }, a);
3606
- }, Vo = {
3607
- mixout: function() {
3608
- return {
3609
- parse: {
3610
- transform: function(a) {
3611
- return Wt(a);
3612
- }
3613
- }
3614
- };
3615
- },
3616
- hooks: function() {
3617
- return {
3618
- parseNodeAttributes: function(a, n) {
3619
- var r = n.getAttribute("data-fa-transform");
3620
- return r && (a.transform = Wt(r)), a;
3621
- }
3622
- };
3623
- },
3624
- provides: function(t) {
3625
- t.generateAbstractTransformGrouping = function(a) {
3626
- var n = a.main, r = a.transform, i = a.containerWidth, s = a.iconWidth, o = {
3627
- transform: "translate(".concat(i / 2, " 256)")
3628
- }, l = "translate(".concat(r.x * 32, ", ").concat(r.y * 32, ") "), f = "scale(".concat(r.size / 16 * (r.flipX ? -1 : 1), ", ").concat(r.size / 16 * (r.flipY ? -1 : 1), ") "), u = "rotate(".concat(r.rotate, " 0 0)"), d = {
3629
- transform: "".concat(l, " ").concat(f, " ").concat(u)
3630
- }, c = {
3631
- transform: "translate(".concat(s / 2 * -1, " -256)")
3632
- }, g = {
3633
- outer: o,
3634
- inner: d,
3635
- path: c
3636
- };
3637
- return {
3638
- tag: "g",
3639
- attributes: m({}, g.outer),
3640
- children: [{
3641
- tag: "g",
3642
- attributes: m({}, g.inner),
3643
- children: [{
3644
- tag: n.icon.tag,
3645
- children: n.icon.children,
3646
- attributes: m(m({}, n.icon.attributes), g.path)
3647
- }]
3648
- }]
3649
- };
3650
- };
3651
- }
3652
- }, Me = {
3653
- x: 0,
3654
- y: 0,
3655
- width: "100%",
3656
- height: "100%"
3657
- };
3658
- function Bt(e) {
3659
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
3660
- return e.attributes && (e.attributes.fill || t) && (e.attributes.fill = "black"), e;
3661
- }
3662
- function Ko(e) {
3663
- return e.tag === "g" ? e.children : [e];
3664
- }
3665
- var Go = {
3666
- hooks: function() {
3667
- return {
3668
- parseNodeAttributes: function(a, n) {
3669
- var r = n.getAttribute("data-fa-mask"), i = r ? Ce(r.split(" ").map(function(s) {
3670
- return s.trim();
3671
- })) : Va();
3672
- return i.prefix || (i.prefix = U()), a.mask = i, a.maskId = n.getAttribute("data-fa-mask-id"), a;
3673
- }
3674
- };
3675
- },
3676
- provides: function(t) {
3677
- t.generateAbstractMask = function(a) {
3678
- var n = a.children, r = a.attributes, i = a.main, s = a.mask, o = a.maskId, l = a.transform, f = i.width, u = i.icon, d = s.width, c = s.icon, g = Mi({
3679
- transform: l,
3680
- containerWidth: d,
3681
- iconWidth: f
3682
- }), h = {
3683
- tag: "rect",
3684
- attributes: m(m({}, Me), {}, {
3685
- fill: "white"
3686
- })
3687
- }, b = u.children ? {
3688
- children: u.children.map(Bt)
3689
- } : {}, k = {
3690
- tag: "g",
3691
- attributes: m({}, g.inner),
3692
- children: [Bt(m({
3693
- tag: u.tag,
3694
- attributes: m(m({}, u.attributes), g.path)
3695
- }, b))]
3696
- }, x = {
3697
- tag: "g",
3698
- attributes: m({}, g.outer),
3699
- children: [k]
3700
- }, w = "mask-".concat(o || St()), S = "clip-".concat(o || St()), y = {
3701
- tag: "mask",
3702
- attributes: m(m({}, Me), {}, {
3703
- id: w,
3704
- maskUnits: "userSpaceOnUse",
3705
- maskContentUnits: "userSpaceOnUse"
3706
- }),
3707
- children: [h, x]
3708
- }, p = {
3709
- tag: "defs",
3710
- children: [{
3711
- tag: "clipPath",
3712
- attributes: {
3713
- id: S
3714
- },
3715
- children: Ko(c)
3716
- }, y]
3717
- };
3718
- return n.push(p, {
3719
- tag: "rect",
3720
- attributes: m({
3721
- fill: "currentColor",
3722
- "clip-path": "url(#".concat(S, ")"),
3723
- mask: "url(#".concat(w, ")")
3724
- }, Me)
3725
- }), {
3726
- children: n,
3727
- attributes: r
3728
- };
3729
- };
3730
- }
3731
- }, Xo = {
3732
- provides: function(t) {
3733
- var a = !1;
3734
- q.matchMedia && (a = q.matchMedia("(prefers-reduced-motion: reduce)").matches), t.missingIconAbstract = function() {
3735
- var n = [], r = {
3736
- fill: "currentColor"
3737
- }, i = {
3738
- attributeType: "XML",
3739
- repeatCount: "indefinite",
3740
- dur: "2s"
3741
- };
3742
- n.push({
3743
- tag: "path",
3744
- attributes: m(m({}, r), {}, {
3745
- d: "M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"
3746
- })
3747
- });
3748
- var s = m(m({}, i), {}, {
3749
- attributeName: "opacity"
3750
- }), o = {
3751
- tag: "circle",
3752
- attributes: m(m({}, r), {}, {
3753
- cx: "256",
3754
- cy: "364",
3755
- r: "28"
3756
- }),
3757
- children: []
3758
- };
3759
- return a || o.children.push({
3760
- tag: "animate",
3761
- attributes: m(m({}, i), {}, {
3762
- attributeName: "r",
3763
- values: "28;14;28;28;14;28;"
3764
- })
3765
- }, {
3766
- tag: "animate",
3767
- attributes: m(m({}, s), {}, {
3768
- values: "1;0;1;1;0;1;"
3769
- })
3770
- }), n.push(o), n.push({
3771
- tag: "path",
3772
- attributes: m(m({}, r), {}, {
3773
- opacity: "1",
3774
- d: "M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"
3775
- }),
3776
- children: a ? [] : [{
3777
- tag: "animate",
3778
- attributes: m(m({}, s), {}, {
3779
- values: "1;0;0;0;0;1;"
3780
- })
3781
- }]
3782
- }), a || n.push({
3783
- tag: "path",
3784
- attributes: m(m({}, r), {}, {
3785
- opacity: "0",
3786
- d: "M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"
3787
- }),
3788
- children: [{
3789
- tag: "animate",
3790
- attributes: m(m({}, s), {}, {
3791
- values: "0;0;1;1;0;0;"
3792
- })
3793
- }]
3794
- }), {
3795
- tag: "g",
3796
- attributes: {
3797
- class: "missing"
3798
- },
3799
- children: n
3800
- };
3801
- };
3802
- }
3803
- }, Jo = {
3804
- hooks: function() {
3805
- return {
3806
- parseNodeAttributes: function(a, n) {
3807
- var r = n.getAttribute("data-fa-symbol"), i = r === null ? !1 : r === "" ? !0 : r;
3808
- return a.symbol = i, a;
3809
- }
3810
- };
3811
- }
3812
- }, Zo = [Ui, To, jo, $o, Lo, Ho, Yo, Vo, Go, Xo, Jo];
3813
- ro(Zo, {
3814
- mixoutsTo: C
3815
- });
3816
- C.noAuto;
3817
- var ce = C.config;
3818
- C.library;
3819
- C.dom;
3820
- var tn = C.parse;
3821
- C.findIconDefinition;
3822
- C.toHtml;
3823
- var Qo = C.icon;
3824
- C.layer;
3825
- C.text;
3826
- C.counter;
3827
- function es(e) {
3828
- return e = e - 0, e === e;
3829
- }
3830
- function an(e) {
3831
- return es(e) ? e : (e = e.replace(/[_-]+(.)?/g, (t, a) => a ? a.toUpperCase() : ""), e.charAt(0).toLowerCase() + e.slice(1));
3832
- }
3833
- function ts(e) {
3834
- return e.charAt(0).toUpperCase() + e.slice(1);
3835
- }
3836
- var J = /* @__PURE__ */ new Map(), as = 1e3;
3837
- function ns(e) {
3838
- if (J.has(e))
3839
- return J.get(e);
3840
- const t = {};
3841
- let a = 0;
3842
- const n = e.length;
3843
- for (; a < n; ) {
3844
- const r = e.indexOf(";", a), i = r === -1 ? n : r, s = e.slice(a, i).trim();
3845
- if (s) {
3846
- const o = s.indexOf(":");
3847
- if (o > 0) {
3848
- const l = s.slice(0, o).trim(), f = s.slice(o + 1).trim();
3849
- if (l && f) {
3850
- const u = an(l);
3851
- t[u.startsWith("webkit") ? ts(u) : u] = f;
3852
- }
3853
- }
3854
- }
3855
- a = i + 1;
3856
- }
3857
- if (J.size === as) {
3858
- const r = J.keys().next().value;
3859
- r && J.delete(r);
3860
- }
3861
- return J.set(e, t), t;
3862
- }
3863
- function nn(e, t, a = {}) {
3864
- if (typeof t == "string")
3865
- return t;
3866
- const n = (t.children || []).map((u) => nn(e, u)), r = t.attributes || {}, i = {};
3867
- for (const [u, d] of Object.entries(r))
3868
- switch (!0) {
3869
- case u === "class": {
3870
- i.className = d;
3871
- break;
3872
- }
3873
- case u === "style": {
3874
- i.style = ns(String(d));
3875
- break;
3876
- }
3877
- case u.startsWith("aria-"):
3878
- case u.startsWith("data-"): {
3879
- i[u.toLowerCase()] = d;
3880
- break;
3881
- }
3882
- default:
3883
- i[an(u)] = d;
3884
- }
3885
- const {
3886
- style: s,
3887
- role: o,
3888
- "aria-label": l,
3889
- ...f
3890
- } = a;
3891
- return s && (i.style = i.style ? { ...i.style, ...s } : s), o && (i.role = o), l && (i["aria-label"] = l, i["aria-hidden"] = "false"), e(t.tag, { ...f, ...i }, ...n);
3892
- }
3893
- var rs = nn.bind(null, Zt.createElement), Ht = (e, t) => {
3894
- const a = vn();
3895
- return e || (t ? a : void 0);
3896
- }, is = class {
3897
- constructor(e = "react-fontawesome") {
3898
- this.enabled = !1;
3899
- let t = !1;
3900
- try {
3901
- t = typeof process < "u" && process.env.NODE_ENV === "development";
3902
- } catch {
3903
- }
3904
- this.scope = e, this.enabled = t;
3905
- }
3906
- /**
3907
- * Logs messages to the console if not in production.
3908
- * @param args - The message and/or data to log.
3909
- */
3910
- log(...e) {
3911
- this.enabled && console.log(`[${this.scope}]`, ...e);
3912
- }
3913
- /**
3914
- * Logs warnings to the console if not in production.
3915
- * @param args - The warning message and/or data to log.
3916
- */
3917
- warn(...e) {
3918
- this.enabled && console.warn(`[${this.scope}]`, ...e);
3919
- }
3920
- /**
3921
- * Logs errors to the console if not in production.
3922
- * @param args - The error message and/or data to log.
3923
- */
3924
- error(...e) {
3925
- this.enabled && console.error(`[${this.scope}]`, ...e);
3926
- }
3927
- };
3928
- typeof process < "u" && process.env.FA_VERSION;
3929
- var os = (
3930
- // @ts-expect-error TS2872 - Expression is always truthy - This is true when v7 of SVGCore is used, but not when v6 is used.
3931
- // This is the point of this check - if the property exists on config, we have v7, otherwise we have v6.
3932
- // TS is checking this against the dev dependencies which uses v7, so it reports a false error here.
3933
- "searchPseudoElementsFullScan" in ce ? "7.0.0" : "6.0.0"
3934
- ), ss = Number.parseInt(os) >= 7, fe = "fa", j = {
3935
- beat: "fa-beat",
3936
- fade: "fa-fade",
3937
- beatFade: "fa-beat-fade",
3938
- bounce: "fa-bounce",
3939
- shake: "fa-shake",
3940
- spin: "fa-spin",
3941
- spinPulse: "fa-spin-pulse",
3942
- spinReverse: "fa-spin-reverse",
3943
- pulse: "fa-pulse"
3944
- }, ls = {
3945
- left: "fa-pull-left",
3946
- right: "fa-pull-right"
3947
- }, fs = {
3948
- 90: "fa-rotate-90",
3949
- 180: "fa-rotate-180",
3950
- 270: "fa-rotate-270"
3951
- }, us = {
3952
- "2xs": "fa-2xs",
3953
- xs: "fa-xs",
3954
- sm: "fa-sm",
3955
- lg: "fa-lg",
3956
- xl: "fa-xl",
3957
- "2xl": "fa-2xl",
3958
- "1x": "fa-1x",
3959
- "2x": "fa-2x",
3960
- "3x": "fa-3x",
3961
- "4x": "fa-4x",
3962
- "5x": "fa-5x",
3963
- "6x": "fa-6x",
3964
- "7x": "fa-7x",
3965
- "8x": "fa-8x",
3966
- "9x": "fa-9x",
3967
- "10x": "fa-10x"
3968
- }, $ = {
3969
- border: "fa-border",
3970
- /** @deprecated */
3971
- fixedWidth: "fa-fw",
3972
- flip: "fa-flip",
3973
- flipHorizontal: "fa-flip-horizontal",
3974
- flipVertical: "fa-flip-vertical",
3975
- inverse: "fa-inverse",
3976
- rotateBy: "fa-rotate-by",
3977
- swapOpacity: "fa-swap-opacity",
3978
- widthAuto: "fa-width-auto"
3979
- };
3980
- function cs(e) {
3981
- const t = ce.cssPrefix || ce.familyPrefix || fe;
3982
- return t === fe ? e : e.replace(
3983
- new RegExp(String.raw`(?<=^|\s)${fe}-`, "g"),
3984
- `${t}-`
3985
- );
3986
- }
3987
- function ds(e) {
3988
- const {
3989
- beat: t,
3990
- fade: a,
3991
- beatFade: n,
3992
- bounce: r,
3993
- shake: i,
3994
- spin: s,
3995
- spinPulse: o,
3996
- spinReverse: l,
3997
- pulse: f,
3998
- fixedWidth: u,
3999
- inverse: d,
4000
- border: c,
4001
- flip: g,
4002
- size: h,
4003
- rotation: b,
4004
- pull: k,
4005
- swapOpacity: x,
4006
- rotateBy: w,
4007
- widthAuto: S,
4008
- className: y
4009
- } = e, p = [];
4010
- return y && p.push(...y.split(" ")), t && p.push(j.beat), a && p.push(j.fade), n && p.push(j.beatFade), r && p.push(j.bounce), i && p.push(j.shake), s && p.push(j.spin), l && p.push(j.spinReverse), o && p.push(j.spinPulse), f && p.push(j.pulse), u && p.push($.fixedWidth), d && p.push($.inverse), c && p.push($.border), g === !0 && p.push($.flip), (g === "horizontal" || g === "both") && p.push($.flipHorizontal), (g === "vertical" || g === "both") && p.push($.flipVertical), h != null && p.push(us[h]), b != null && b !== 0 && p.push(fs[b]), k != null && p.push(ls[k]), x && p.push($.swapOpacity), ss ? (w && p.push($.rotateBy), S && p.push($.widthAuto), (ce.cssPrefix || ce.familyPrefix || fe) === fe ? p : (
4011
- // TODO: see if we can achieve custom prefix support without iterating
4012
- // eslint-disable-next-line unicorn/no-array-callback-reference
4013
- p.map(cs)
4014
- )) : p;
4015
- }
4016
- var ms = (e) => typeof e == "object" && "icon" in e && !!e.icon;
4017
- function Yt(e) {
4018
- if (e)
4019
- return ms(e) ? e : tn.icon(e);
4020
- }
4021
- function gs(e) {
4022
- return Object.keys(e);
4023
- }
4024
- var Vt = new is("FontAwesomeIcon"), rn = {
4025
- border: !1,
4026
- className: "",
4027
- mask: void 0,
4028
- maskId: void 0,
4029
- fixedWidth: !1,
4030
- inverse: !1,
4031
- flip: !1,
4032
- icon: void 0,
4033
- listItem: !1,
4034
- pull: void 0,
4035
- pulse: !1,
4036
- rotation: void 0,
4037
- rotateBy: !1,
4038
- size: void 0,
4039
- spin: !1,
4040
- spinPulse: !1,
4041
- spinReverse: !1,
4042
- beat: !1,
4043
- fade: !1,
4044
- beatFade: !1,
4045
- bounce: !1,
4046
- shake: !1,
4047
- symbol: !1,
4048
- title: "",
4049
- titleId: void 0,
4050
- transform: void 0,
4051
- swapOpacity: !1,
4052
- widthAuto: !1
4053
- }, hs = new Set(Object.keys(rn)), ie = Zt.forwardRef((e, t) => {
4054
- const a = { ...rn, ...e }, {
4055
- icon: n,
4056
- mask: r,
4057
- symbol: i,
4058
- title: s,
4059
- titleId: o,
4060
- maskId: l,
4061
- transform: f
4062
- } = a, u = Ht(l, !!r), d = Ht(o, !!s), c = Yt(n);
4063
- if (!c)
4064
- return Vt.error("Icon lookup is undefined", n), null;
4065
- const g = ds(a), h = typeof f == "string" ? tn.transform(f) : f, b = Yt(r), k = Qo(c, {
4066
- ...g.length > 0 && { classes: g },
4067
- ...h && { transform: h },
4068
- ...b && { mask: b },
4069
- symbol: i,
4070
- title: s,
4071
- titleId: d,
4072
- maskId: u
4073
- });
4074
- if (!k)
4075
- return Vt.error("Could not find icon", c), null;
4076
- const { abstract: x } = k, w = { ref: t };
4077
- for (const S of gs(a))
4078
- hs.has(S) || (w[S] = a[S]);
4079
- return rs(x[0], w);
4080
- });
4081
- ie.displayName = "FontAwesomeIcon";
4082
- var ps = {
4083
- prefix: "fas",
4084
- iconName: "caret-right",
4085
- icon: [256, 512, [], "f0da", "M249.3 235.8c10.2 12.6 9.5 31.1-2.2 42.8l-128 128c-9.2 9.2-22.9 11.9-34.9 6.9S64.5 396.9 64.5 384l0-256c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l128 128 2.2 2.4z"]
4086
- }, vs = {
4087
- prefix: "fas",
4088
- iconName: "caret-left",
4089
- icon: [256, 512, [], "f0d9", "M7.7 235.8c-10.3 12.6-9.5 31.1 2.2 42.8l128 128c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-256c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-128 128-2.2 2.4z"]
4090
- }, bs = {
4091
- prefix: "fas",
4092
- iconName: "house",
4093
- icon: [512, 512, [127968, 63498, 63500, "home", "home-alt", "home-lg-alt"], "f015", "M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-9.6 9-12.8 22.9-8 35.1S18.8 272 32 272l16 0 0 176c0 35.3 28.7 64 64 64l288 0c35.3 0 64-28.7 64-64l0-176 16 0c13.2 0 25-8.1 29.8-20.3s1.6-26.2-8-35.1l-224-208zM240 320l32 0c26.5 0 48 21.5 48 48l0 96-128 0 0-96c0-26.5 21.5-48 48-48z"]
4094
- }, ys = bs, _s = {
4095
- prefix: "fas",
4096
- iconName: "rotate-right",
4097
- icon: [512, 512, ["redo-alt", "rotate-forward"], "f2f9", "M488 192l-144 0c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l46.7-46.7c-75.3-58.6-184.3-53.3-253.5 15.9-75 75-75 196.5 0 271.5s196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c94.3-94.3 243.7-99.6 344.3-16.2L471 7c6.9-6.9 17.2-8.9 26.2-5.2S512 14.3 512 24l0 144c0 13.3-10.7 24-24 24z"]
4098
- };
4099
- (function() {
4100
- try {
4101
- if (typeof document < "u") {
4102
- var e = document.createElement("style");
4103
- e.appendChild(document.createTextNode('._Browser_rk8bv_1{--header-height: 3.5rem;--nav-bar-height: 2.25rem;display:flex;flex-direction:column;width:100%;height:100%}._Header_rk8bv_11{display:flex;flex-direction:column;width:100%;height:var(--header-height);background-color:var(--background-color-0)}._NavBar_rk8bv_19{display:flex;gap:1rem;justify-content:flex-start;align-items:center;width:100%;height:var(--nav-bar-height);padding:1.25rem}._IconButton_rk8bv_29{--color: var(--foreground-color-0);position:relative;display:flex;justify-content:center;align-items:center;height:1rem;width:auto;padding:0;background:none;border:none;outline:none;aspect-ratio:1;cursor:pointer}._IconButton_rk8bv_29:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fff0;border-radius:var(--border-radius-99);transform:scale(1);transform-origin:center;transition:all var(--transition-duration-1) var(--ease-in-out-default)}._IconButton_rk8bv_29:hover:after,._IconButton_rk8bv_29:focus-visible:after{background-color:#ffffff1a;transform:scale(175%)}._IconButton_rk8bv_29:disabled{--color: var(--foreground-color-2)}._IconButton_rk8bv_29 svg{height:100%}._IconButton_rk8bv_29 svg path{fill:var(--color);transition:fill var(--transition-duration-0) var(--ease-in-out-default)}._SearchBar_rk8bv_79{flex:1;padding:.25rem .5rem;background-color:var(--background-color-2);border:none;border-radius:var(--border-radius-1);outline:none;font-family:inherit;font-size:.875em}._Bookmarks_rk8bv_90{height:calc(var(--header-height) - var(--nav-bar-height))}')), document.head.appendChild(e);
4104
- }
4105
- } catch (t) {
4106
- console.error("vite-plugin-css-injected-by-js", t);
4107
- }
4108
- })();
4109
- const xs = "_Browser_rk8bv_1", ws = "_Header_rk8bv_11", ks = "_NavBar_rk8bv_19", Ss = "_IconButton_rk8bv_29", As = "_SearchBar_rk8bv_79", Is = "_Bookmarks_rk8bv_90", L = {
4110
- Browser: xs,
4111
- Header: ws,
4112
- NavBar: ks,
4113
- IconButton: Ss,
4114
- SearchBar: As,
4115
- Bookmarks: Is
4116
- }, Kt = "https://prozilla.dev/", Es = "https://www.google.com/search?igu=1";
4117
- function Ps({ url: e = Kt, focus: t }) {
4118
- const [a, n] = we(e), [r, i] = we(e), { history: s, pushState: o, stateIndex: l, undo: f, redo: u, undoAvailable: d, redoAvailable: c } = cn(e), g = oe(null);
4119
- Z(() => {
4120
- s.length !== 0 && n(s[l]);
4121
- }, [s, l]);
4122
- const h = () => {
4123
- g.current == null || g.current.contentWindow == null || (g.current.contentWindow.location.href = a);
4124
- }, b = (w) => {
4125
- if (a === w)
4126
- return h();
4127
- n(w), i(w), o(w);
4128
- }, k = (w) => {
4129
- i(w.target.value);
4130
- }, x = (w) => {
4131
- const S = w.target.value;
4132
- w.key === "Enter" && S !== "" && (mn(S) ? b(S) : b(`${Es}&q=${S}`));
4133
- };
4134
- return /* @__PURE__ */ Y("div", { className: L.Browser, children: [
4135
- /* @__PURE__ */ Y("div", { className: L.Header, children: [
4136
- /* @__PURE__ */ Y("div", { className: L.NavBar, children: [
4137
- /* @__PURE__ */ I(
4138
- "button",
4139
- {
4140
- title: "Back",
4141
- tabIndex: 0,
4142
- className: L.IconButton,
4143
- onClick: () => {
4144
- f();
4145
- },
4146
- disabled: !d,
4147
- children: /* @__PURE__ */ I(ie, { icon: vs })
4148
- }
4149
- ),
4150
- /* @__PURE__ */ I(
4151
- "button",
4152
- {
4153
- title: "Forward",
4154
- tabIndex: 0,
4155
- className: L.IconButton,
4156
- onClick: () => {
4157
- u();
4158
- },
4159
- disabled: !c,
4160
- children: /* @__PURE__ */ I(ie, { icon: ps })
4161
- }
4162
- ),
4163
- /* @__PURE__ */ I(
4164
- "button",
4165
- {
4166
- title: "Reload",
4167
- tabIndex: 0,
4168
- className: L.IconButton,
4169
- onClick: h,
4170
- children: /* @__PURE__ */ I(ie, { icon: _s })
4171
- }
4172
- ),
4173
- /* @__PURE__ */ I(
4174
- "button",
4175
- {
4176
- title: "Home",
4177
- tabIndex: 0,
4178
- className: L.IconButton,
4179
- onClick: () => {
4180
- b(Kt);
4181
- },
4182
- children: /* @__PURE__ */ I(ie, { icon: ys })
4183
- }
4184
- ),
4185
- /* @__PURE__ */ I(
4186
- "input",
4187
- {
4188
- value: r,
4189
- type: "text",
4190
- "aria-label": "Search bar",
4191
- className: L.SearchBar,
4192
- tabIndex: 0,
4193
- onChange: k,
4194
- onKeyDown: x
4195
- }
4196
- )
4197
- ] }),
4198
- /* @__PURE__ */ I("div", { className: L.Bookmarks })
4199
- ] }),
4200
- /* @__PURE__ */ I(dn, { ref: g, source: a, title: "Browser", focus: t })
4201
- ] });
4202
- }
4203
- const Cs = new Gt("Browser", "browser", Ps, { size: new Jt(700, 500) }).setIconUrl("https://os.prozilla.dev/assets/apps/icons/browser.svg").setRole(Xt.APP_ROLES.browser).setCategory("Utilities & tools");
4204
- Cs.setMetadata({ name: "@prozilla-os/browser", version: "1.1.21", author: "Prozilla" });
4205
- export {
4206
- Ln as TerminalApp,
4207
- Cs as browser,
4208
- Dn as terminal
4209
- };
11
+ export * from "@prozilla-os/code-editor";
4210
12
  //# sourceMappingURL=main.js.map