border-beam 1.3.0 → 1.4.1

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/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { jsxs as he, Fragment as Ce, jsx as ze } from "react/jsx-runtime";
2
- import { forwardRef as Ge, useId as Me, useRef as Ie, useState as P, useEffect as B, useCallback as ye, useMemo as ve } from "react";
3
- const Le = {
1
+ import { jsxs as ve, Fragment as Ie, jsx as We } from "react/jsx-runtime";
2
+ import { forwardRef as Le, useId as Be, useRef as Pe, useState as E, useEffect as A, useCallback as He, useMemo as Xe } from "react";
3
+ const Ee = {
4
4
  sm: {
5
5
  borderRadius: 32,
6
6
  borderWidth: 1,
@@ -23,7 +23,7 @@ const Le = {
23
23
  borderRadius: 16,
24
24
  borderWidth: 1
25
25
  }
26
- }, ne = {
26
+ }, pe = {
27
27
  sm: {
28
28
  dark: {
29
29
  strokeOpacity: 0.46,
@@ -116,10 +116,10 @@ const Le = {
116
116
  brightness: 1.3
117
117
  }
118
118
  }
119
- }, ha = {
120
- dark: { ...ne.md.dark },
121
- light: { ...ne.md.light }
122
- }, C = {
119
+ }, vo = {
120
+ dark: { ...pe.md.dark },
121
+ light: { ...pe.md.light }
122
+ }, G = {
123
123
  colorful: {
124
124
  border: [
125
125
  { color: "rgb(255, 50, 100)", pos: "33% -7.4%", size: "70px 40px" },
@@ -179,8 +179,68 @@ const Le = {
179
179
  ],
180
180
  spike: { primary: "rgb(255, 140, 80)", secondary: "rgba(255, 100, 60, 0.98)" },
181
181
  spikeLt: { primary: "rgb(200, 80, 40)", secondary: "rgb(220, 120, 30)" }
182
+ },
183
+ forest: {
184
+ border: [
185
+ { color: "rgb(46, 160, 90)", pos: "33% -7.4%", size: "70px 40px" },
186
+ { color: "rgb(30, 190, 120)", pos: "12% -5%", size: "60px 35px" },
187
+ { color: "rgb(70, 180, 70)", pos: "2.1% 68.3%", size: "40px 70px" },
188
+ { color: "rgb(20, 150, 130)", pos: "2.1% 68.3%", size: "20px 35px" },
189
+ { color: "rgb(90, 200, 80)", pos: "74.4% 100%", size: "180px 32px" },
190
+ { color: "rgb(40, 170, 110)", pos: "55% 100%", size: "85px 26px" },
191
+ { color: "rgb(120, 210, 70)", pos: "93.9% 0%", size: "74px 32px" },
192
+ { color: "rgb(35, 145, 100)", pos: "100% 27.1%", size: "26px 42px" },
193
+ { color: "rgb(60, 195, 140)", pos: "100% 27.1%", size: "52px 48px" }
194
+ ],
195
+ spike: { primary: "rgb(46, 160, 90)", secondary: "rgba(30, 190, 120,, 0.98)" },
196
+ spikeLt: { primary: "rgb(33, 115, 65)", secondary: "rgb(22, 137, 86)" }
197
+ },
198
+ candy: {
199
+ border: [
200
+ { color: "rgb(240, 70, 170)", pos: "33% -7.4%", size: "70px 40px" },
201
+ { color: "rgb(255, 90, 140)", pos: "12% -5%", size: "60px 35px" },
202
+ { color: "rgb(215, 60, 200)", pos: "2.1% 68.3%", size: "40px 70px" },
203
+ { color: "rgb(255, 110, 180)", pos: "2.1% 68.3%", size: "20px 35px" },
204
+ { color: "rgb(200, 80, 240)", pos: "74.4% 100%", size: "180px 32px" },
205
+ { color: "rgb(250, 60, 150)", pos: "55% 100%", size: "85px 26px" },
206
+ { color: "rgb(230, 120, 220)", pos: "93.9% 0%", size: "74px 32px" },
207
+ { color: "rgb(245, 85, 165)", pos: "100% 27.1%", size: "26px 42px" },
208
+ { color: "rgb(210, 70, 230)", pos: "100% 27.1%", size: "52px 48px" }
209
+ ],
210
+ spike: { primary: "rgb(240, 70, 170)", secondary: "rgba(255, 90, 140,, 0.98)" },
211
+ spikeLt: { primary: "rgb(173, 50, 122)", secondary: "rgb(184, 65, 101)" }
212
+ },
213
+ ice: {
214
+ border: [
215
+ { color: "rgb(90, 200, 240)", pos: "33% -7.4%", size: "70px 40px" },
216
+ { color: "rgb(60, 175, 230)", pos: "12% -5%", size: "60px 35px" },
217
+ { color: "rgb(130, 220, 250)", pos: "2.1% 68.3%", size: "40px 70px" },
218
+ { color: "rgb(70, 190, 215)", pos: "2.1% 68.3%", size: "20px 35px" },
219
+ { color: "rgb(110, 210, 255)", pos: "74.4% 100%", size: "180px 32px" },
220
+ { color: "rgb(50, 165, 220)", pos: "55% 100%", size: "85px 26px" },
221
+ { color: "rgb(150, 230, 250)", pos: "93.9% 0%", size: "74px 32px" },
222
+ { color: "rgb(85, 195, 235)", pos: "100% 27.1%", size: "26px 42px" },
223
+ { color: "rgb(65, 180, 245)", pos: "100% 27.1%", size: "52px 48px" }
224
+ ],
225
+ spike: { primary: "rgb(90, 200, 240)", secondary: "rgba(60, 175, 230,, 0.98)" },
226
+ spikeLt: { primary: "rgb(65, 144, 173)", secondary: "rgb(43, 126, 166)" }
227
+ },
228
+ gold: {
229
+ border: [
230
+ { color: "rgb(240, 190, 60)", pos: "33% -7.4%", size: "70px 40px" },
231
+ { color: "rgb(255, 210, 90)", pos: "12% -5%", size: "60px 35px" },
232
+ { color: "rgb(225, 165, 40)", pos: "2.1% 68.3%", size: "40px 70px" },
233
+ { color: "rgb(250, 200, 70)", pos: "2.1% 68.3%", size: "20px 35px" },
234
+ { color: "rgb(255, 225, 120)", pos: "74.4% 100%", size: "180px 32px" },
235
+ { color: "rgb(230, 175, 50)", pos: "55% 100%", size: "85px 26px" },
236
+ { color: "rgb(245, 205, 85)", pos: "93.9% 0%", size: "74px 32px" },
237
+ { color: "rgb(215, 155, 35)", pos: "100% 27.1%", size: "26px 42px" },
238
+ { color: "rgb(255, 215, 100)", pos: "100% 27.1%", size: "52px 48px" }
239
+ ],
240
+ spike: { primary: "rgb(240, 190, 60)", secondary: "rgba(255, 210, 90,, 0.98)" },
241
+ spikeLt: { primary: "rgb(173, 137, 43)", secondary: "rgb(184, 151, 65)" }
182
242
  }
183
- }, He = {
243
+ }, Se = {
184
244
  colorful: {
185
245
  border: [
186
246
  { color: "rgb(50, 200, 80)", pos: "2% 68%", size: "9px 18px" },
@@ -268,36 +328,124 @@ const Le = {
268
328
  { color: "rgba(255, 200, 50, 0.3)", pos: "100% 27%", size: "5px 10px" },
269
329
  { color: "rgba(255, 90, 70, 0.3)", pos: "100% 27%", size: "11px 12px" }
270
330
  ]
331
+ },
332
+ forest: {
333
+ border: [
334
+ { color: "rgb(46, 160, 90)", pos: "2% 68%", size: "9px 18px" },
335
+ { color: "rgb(30, 190, 120)", pos: "2% 68%", size: "4px 8px" },
336
+ { color: "rgb(70, 180, 70)", pos: "72% -3%", size: "59px 9px" },
337
+ { color: "rgb(20, 150, 130)", pos: "74% 100%", size: "42px 7px" },
338
+ { color: "rgb(90, 200, 80)", pos: "100% 27%", size: "10px 17px" },
339
+ { color: "rgb(40, 170, 110)", pos: "100% 27%", size: "10px 18px" },
340
+ { color: "rgb(120, 210, 70)", pos: "100% 27%", size: "5px 10px" },
341
+ { color: "rgb(35, 145, 100)", pos: "100% 27%", size: "11px 12px" }
342
+ ],
343
+ inner: [
344
+ { color: "rgba(60, 195, 140,, 0.5)", pos: "2% 68%", size: "9px 18px" },
345
+ { color: "rgba(46, 160, 90,, 0.45)", pos: "2% 68%", size: "4px 8px" },
346
+ { color: "rgba(30, 190, 120,, 0.35)", pos: "72% -3%", size: "59px 9px" },
347
+ { color: "rgba(70, 180, 70,, 0.35)", pos: "74% 100%", size: "42px 7px" },
348
+ { color: "rgba(20, 150, 130,, 0.3)", pos: "100% 27%", size: "10px 17px" },
349
+ { color: "rgba(90, 200, 80,, 0.4)", pos: "100% 27%", size: "10px 18px" },
350
+ { color: "rgba(40, 170, 110,, 0.3)", pos: "100% 27%", size: "5px 10px" },
351
+ { color: "rgba(120, 210, 70,, 0.3)", pos: "100% 27%", size: "11px 12px" }
352
+ ]
353
+ },
354
+ candy: {
355
+ border: [
356
+ { color: "rgb(240, 70, 170)", pos: "2% 68%", size: "9px 18px" },
357
+ { color: "rgb(255, 90, 140)", pos: "2% 68%", size: "4px 8px" },
358
+ { color: "rgb(215, 60, 200)", pos: "72% -3%", size: "59px 9px" },
359
+ { color: "rgb(255, 110, 180)", pos: "74% 100%", size: "42px 7px" },
360
+ { color: "rgb(200, 80, 240)", pos: "100% 27%", size: "10px 17px" },
361
+ { color: "rgb(250, 60, 150)", pos: "100% 27%", size: "10px 18px" },
362
+ { color: "rgb(230, 120, 220)", pos: "100% 27%", size: "5px 10px" },
363
+ { color: "rgb(245, 85, 165)", pos: "100% 27%", size: "11px 12px" }
364
+ ],
365
+ inner: [
366
+ { color: "rgba(210, 70, 230,, 0.5)", pos: "2% 68%", size: "9px 18px" },
367
+ { color: "rgba(240, 70, 170,, 0.45)", pos: "2% 68%", size: "4px 8px" },
368
+ { color: "rgba(255, 90, 140,, 0.35)", pos: "72% -3%", size: "59px 9px" },
369
+ { color: "rgba(215, 60, 200,, 0.35)", pos: "74% 100%", size: "42px 7px" },
370
+ { color: "rgba(255, 110, 180,, 0.3)", pos: "100% 27%", size: "10px 17px" },
371
+ { color: "rgba(200, 80, 240,, 0.4)", pos: "100% 27%", size: "10px 18px" },
372
+ { color: "rgba(250, 60, 150,, 0.3)", pos: "100% 27%", size: "5px 10px" },
373
+ { color: "rgba(230, 120, 220,, 0.3)", pos: "100% 27%", size: "11px 12px" }
374
+ ]
375
+ },
376
+ ice: {
377
+ border: [
378
+ { color: "rgb(90, 200, 240)", pos: "2% 68%", size: "9px 18px" },
379
+ { color: "rgb(60, 175, 230)", pos: "2% 68%", size: "4px 8px" },
380
+ { color: "rgb(130, 220, 250)", pos: "72% -3%", size: "59px 9px" },
381
+ { color: "rgb(70, 190, 215)", pos: "74% 100%", size: "42px 7px" },
382
+ { color: "rgb(110, 210, 255)", pos: "100% 27%", size: "10px 17px" },
383
+ { color: "rgb(50, 165, 220)", pos: "100% 27%", size: "10px 18px" },
384
+ { color: "rgb(150, 230, 250)", pos: "100% 27%", size: "5px 10px" },
385
+ { color: "rgb(85, 195, 235)", pos: "100% 27%", size: "11px 12px" }
386
+ ],
387
+ inner: [
388
+ { color: "rgba(65, 180, 245,, 0.5)", pos: "2% 68%", size: "9px 18px" },
389
+ { color: "rgba(90, 200, 240,, 0.45)", pos: "2% 68%", size: "4px 8px" },
390
+ { color: "rgba(60, 175, 230,, 0.35)", pos: "72% -3%", size: "59px 9px" },
391
+ { color: "rgba(130, 220, 250,, 0.35)", pos: "74% 100%", size: "42px 7px" },
392
+ { color: "rgba(70, 190, 215,, 0.3)", pos: "100% 27%", size: "10px 17px" },
393
+ { color: "rgba(110, 210, 255,, 0.4)", pos: "100% 27%", size: "10px 18px" },
394
+ { color: "rgba(50, 165, 220,, 0.3)", pos: "100% 27%", size: "5px 10px" },
395
+ { color: "rgba(150, 230, 250,, 0.3)", pos: "100% 27%", size: "11px 12px" }
396
+ ]
397
+ },
398
+ gold: {
399
+ border: [
400
+ { color: "rgb(240, 190, 60)", pos: "2% 68%", size: "9px 18px" },
401
+ { color: "rgb(255, 210, 90)", pos: "2% 68%", size: "4px 8px" },
402
+ { color: "rgb(225, 165, 40)", pos: "72% -3%", size: "59px 9px" },
403
+ { color: "rgb(250, 200, 70)", pos: "74% 100%", size: "42px 7px" },
404
+ { color: "rgb(255, 225, 120)", pos: "100% 27%", size: "10px 17px" },
405
+ { color: "rgb(230, 175, 50)", pos: "100% 27%", size: "10px 18px" },
406
+ { color: "rgb(245, 205, 85)", pos: "100% 27%", size: "5px 10px" },
407
+ { color: "rgb(215, 155, 35)", pos: "100% 27%", size: "11px 12px" }
408
+ ],
409
+ inner: [
410
+ { color: "rgba(255, 215, 100,, 0.5)", pos: "2% 68%", size: "9px 18px" },
411
+ { color: "rgba(240, 190, 60,, 0.45)", pos: "2% 68%", size: "4px 8px" },
412
+ { color: "rgba(255, 210, 90,, 0.35)", pos: "72% -3%", size: "59px 9px" },
413
+ { color: "rgba(225, 165, 40,, 0.35)", pos: "74% 100%", size: "42px 7px" },
414
+ { color: "rgba(250, 200, 70,, 0.3)", pos: "100% 27%", size: "10px 17px" },
415
+ { color: "rgba(255, 225, 120,, 0.4)", pos: "100% 27%", size: "10px 18px" },
416
+ { color: "rgba(230, 175, 50,, 0.3)", pos: "100% 27%", size: "5px 10px" },
417
+ { color: "rgba(245, 205, 85,, 0.3)", pos: "100% 27%", size: "11px 12px" }
418
+ ]
271
419
  }
272
420
  };
273
- function Pe(t) {
274
- return He[t].border.map((a) => `radial-gradient(ellipse ${a.size} at ${a.pos}, ${a.color}, transparent)`).join(`,
421
+ function Ae(a) {
422
+ return Se[a].border.map((o) => `radial-gradient(ellipse ${o.size} at ${o.pos}, ${o.color}, transparent)`).join(`,
275
423
  `);
276
424
  }
277
- function Be(t) {
278
- return He[t].inner.map((a) => `radial-gradient(ellipse ${a.size} at ${a.pos}, ${a.color}, transparent)`).join(`,
425
+ function _e(a) {
426
+ return Se[a].inner.map((o) => `radial-gradient(ellipse ${o.size} at ${o.pos}, ${o.color}, transparent)`).join(`,
279
427
  `);
280
428
  }
281
- function Ee(t) {
282
- return C[t].border.map((a) => `radial-gradient(ellipse ${a.size} at ${a.pos}, ${a.color}, transparent)`).join(`,
429
+ function je(a) {
430
+ return G[a].border.map((o) => `radial-gradient(ellipse ${o.size} at ${o.pos}, ${o.color}, transparent)`).join(`,
283
431
  `);
284
432
  }
285
- function Ae(t) {
286
- const e = C[t], a = t === "mono" ? 0.225 : 0.45;
433
+ function Te(a) {
434
+ const e = G[a], o = a === "mono" ? 0.225 : 0.45;
287
435
  return e.border.map((r) => {
288
- const o = r.color.replace("rgb(", "rgba(").replace(")", `, ${a})`);
436
+ const t = r.color.replace("rgb(", "rgba(").replace(")", `, ${o})`);
289
437
  return `radial-gradient(ellipse ${r.size.split(" ").map((i) => {
290
438
  const c = parseInt(i);
291
439
  return `${Math.round(c * 0.9)}px`;
292
- }).join(" ")} at ${r.pos}, ${o}, transparent)`;
440
+ }).join(" ")} at ${r.pos}, ${t}, transparent)`;
293
441
  }).join(`,
294
442
  `);
295
443
  }
296
- function _e(t, e) {
297
- const a = C[t];
298
- return e ? a.spike : a.spikeLt;
444
+ function Ne(a, e) {
445
+ const o = G[a];
446
+ return e ? o.spike : o.spikeLt;
299
447
  }
300
- const je = {
448
+ const Ve = {
301
449
  colorful: {
302
450
  dark: [
303
451
  { color: "rgb(255, 50, 100)", sizeW: 36, sizeH: 36, offsetX: 0, offsetY: 2 },
@@ -393,16 +541,112 @@ const je = {
393
541
  { color: "rgb(190, 70, 50)", sizeW: 35, sizeH: 28, offsetX: 110, offsetY: 1 },
394
542
  { color: "rgb(180, 50, 50)", sizeW: 30, sizeH: 30, offsetX: -110, offsetY: -1 }
395
543
  ]
544
+ },
545
+ forest: {
546
+ dark: [
547
+ { color: "rgb(46, 160, 90)", sizeW: 36, sizeH: 36, offsetX: 0, offsetY: 2 },
548
+ { color: "rgb(30, 190, 120)", sizeW: 30, sizeH: 32, offsetX: 39, offsetY: 0 },
549
+ { color: "rgb(70, 180, 70)", sizeW: 33, sizeH: 28, offsetX: -36, offsetY: 2 },
550
+ { color: "rgb(20, 150, 130)", sizeW: 29, sizeH: 34, offsetX: -54, offsetY: 0 },
551
+ { color: "rgb(90, 200, 80)", sizeW: 27, sizeH: 30, offsetX: 51, offsetY: -1 },
552
+ { color: "rgb(40, 170, 110)", sizeW: 36, sizeH: 24, offsetX: 21, offsetY: 1 },
553
+ { color: "rgb(120, 210, 70)", sizeW: 30, sizeH: 22, offsetX: -21, offsetY: 0 },
554
+ { color: "rgb(35, 145, 100)", sizeW: 25, sizeH: 28, offsetX: 66, offsetY: 1 },
555
+ { color: "rgb(60, 195, 140)", sizeW: 23, sizeH: 30, offsetX: -66, offsetY: -1 }
556
+ ],
557
+ light: [
558
+ { color: "rgb(33, 115, 65)", sizeW: 45, sizeH: 36, offsetX: 0, offsetY: 2 },
559
+ { color: "rgb(22, 137, 86)", sizeW: 35, sizeH: 32, offsetX: 65, offsetY: 0 },
560
+ { color: "rgb(50, 130, 50)", sizeW: 40, sizeH: 28, offsetX: -60, offsetY: 2 },
561
+ { color: "rgb(14, 108, 94)", sizeW: 35, sizeH: 34, offsetX: -90, offsetY: 0 },
562
+ { color: "rgb(65, 144, 58)", sizeW: 38, sizeH: 30, offsetX: 85, offsetY: -1 },
563
+ { color: "rgb(29, 122, 79)", sizeW: 50, sizeH: 24, offsetX: 35, offsetY: 1 },
564
+ { color: "rgb(86, 151, 50)", sizeW: 40, sizeH: 22, offsetX: -35, offsetY: 0 },
565
+ { color: "rgb(25, 104, 72)", sizeW: 35, sizeH: 28, offsetX: 110, offsetY: 1 },
566
+ { color: "rgb(43, 140, 101)", sizeW: 30, sizeH: 30, offsetX: -110, offsetY: -1 }
567
+ ]
568
+ },
569
+ candy: {
570
+ dark: [
571
+ { color: "rgb(240, 70, 170)", sizeW: 36, sizeH: 36, offsetX: 0, offsetY: 2 },
572
+ { color: "rgb(255, 90, 140)", sizeW: 30, sizeH: 32, offsetX: 39, offsetY: 0 },
573
+ { color: "rgb(215, 60, 200)", sizeW: 33, sizeH: 28, offsetX: -36, offsetY: 2 },
574
+ { color: "rgb(255, 110, 180)", sizeW: 29, sizeH: 34, offsetX: -54, offsetY: 0 },
575
+ { color: "rgb(200, 80, 240)", sizeW: 27, sizeH: 30, offsetX: 51, offsetY: -1 },
576
+ { color: "rgb(250, 60, 150)", sizeW: 36, sizeH: 24, offsetX: 21, offsetY: 1 },
577
+ { color: "rgb(230, 120, 220)", sizeW: 30, sizeH: 22, offsetX: -21, offsetY: 0 },
578
+ { color: "rgb(245, 85, 165)", sizeW: 25, sizeH: 28, offsetX: 66, offsetY: 1 },
579
+ { color: "rgb(210, 70, 230)", sizeW: 23, sizeH: 30, offsetX: -66, offsetY: -1 }
580
+ ],
581
+ light: [
582
+ { color: "rgb(173, 50, 122)", sizeW: 45, sizeH: 36, offsetX: 0, offsetY: 2 },
583
+ { color: "rgb(184, 65, 101)", sizeW: 35, sizeH: 32, offsetX: 65, offsetY: 0 },
584
+ { color: "rgb(155, 43, 144)", sizeW: 40, sizeH: 28, offsetX: -60, offsetY: 2 },
585
+ { color: "rgb(184, 79, 130)", sizeW: 35, sizeH: 34, offsetX: -90, offsetY: 0 },
586
+ { color: "rgb(144, 58, 173)", sizeW: 38, sizeH: 30, offsetX: 85, offsetY: -1 },
587
+ { color: "rgb(180, 43, 108)", sizeW: 50, sizeH: 24, offsetX: 35, offsetY: 1 },
588
+ { color: "rgb(166, 86, 158)", sizeW: 40, sizeH: 22, offsetX: -35, offsetY: 0 },
589
+ { color: "rgb(176, 61, 119)", sizeW: 35, sizeH: 28, offsetX: 110, offsetY: 1 },
590
+ { color: "rgb(151, 50, 166)", sizeW: 30, sizeH: 30, offsetX: -110, offsetY: -1 }
591
+ ]
592
+ },
593
+ ice: {
594
+ dark: [
595
+ { color: "rgb(90, 200, 240)", sizeW: 36, sizeH: 36, offsetX: 0, offsetY: 2 },
596
+ { color: "rgb(60, 175, 230)", sizeW: 30, sizeH: 32, offsetX: 39, offsetY: 0 },
597
+ { color: "rgb(130, 220, 250)", sizeW: 33, sizeH: 28, offsetX: -36, offsetY: 2 },
598
+ { color: "rgb(70, 190, 215)", sizeW: 29, sizeH: 34, offsetX: -54, offsetY: 0 },
599
+ { color: "rgb(110, 210, 255)", sizeW: 27, sizeH: 30, offsetX: 51, offsetY: -1 },
600
+ { color: "rgb(50, 165, 220)", sizeW: 36, sizeH: 24, offsetX: 21, offsetY: 1 },
601
+ { color: "rgb(150, 230, 250)", sizeW: 30, sizeH: 22, offsetX: -21, offsetY: 0 },
602
+ { color: "rgb(85, 195, 235)", sizeW: 25, sizeH: 28, offsetX: 66, offsetY: 1 },
603
+ { color: "rgb(65, 180, 245)", sizeW: 23, sizeH: 30, offsetX: -66, offsetY: -1 }
604
+ ],
605
+ light: [
606
+ { color: "rgb(65, 144, 173)", sizeW: 45, sizeH: 36, offsetX: 0, offsetY: 2 },
607
+ { color: "rgb(43, 126, 166)", sizeW: 35, sizeH: 32, offsetX: 65, offsetY: 0 },
608
+ { color: "rgb(94, 158, 180)", sizeW: 40, sizeH: 28, offsetX: -60, offsetY: 2 },
609
+ { color: "rgb(50, 137, 155)", sizeW: 35, sizeH: 34, offsetX: -90, offsetY: 0 },
610
+ { color: "rgb(79, 151, 184)", sizeW: 38, sizeH: 30, offsetX: 85, offsetY: -1 },
611
+ { color: "rgb(36, 119, 158)", sizeW: 50, sizeH: 24, offsetX: 35, offsetY: 1 },
612
+ { color: "rgb(108, 166, 180)", sizeW: 40, sizeH: 22, offsetX: -35, offsetY: 0 },
613
+ { color: "rgb(61, 140, 169)", sizeW: 35, sizeH: 28, offsetX: 110, offsetY: 1 },
614
+ { color: "rgb(47, 130, 176)", sizeW: 30, sizeH: 30, offsetX: -110, offsetY: -1 }
615
+ ]
616
+ },
617
+ gold: {
618
+ dark: [
619
+ { color: "rgb(240, 190, 60)", sizeW: 36, sizeH: 36, offsetX: 0, offsetY: 2 },
620
+ { color: "rgb(255, 210, 90)", sizeW: 30, sizeH: 32, offsetX: 39, offsetY: 0 },
621
+ { color: "rgb(225, 165, 40)", sizeW: 33, sizeH: 28, offsetX: -36, offsetY: 2 },
622
+ { color: "rgb(250, 200, 70)", sizeW: 29, sizeH: 34, offsetX: -54, offsetY: 0 },
623
+ { color: "rgb(255, 225, 120)", sizeW: 27, sizeH: 30, offsetX: 51, offsetY: -1 },
624
+ { color: "rgb(230, 175, 50)", sizeW: 36, sizeH: 24, offsetX: 21, offsetY: 1 },
625
+ { color: "rgb(245, 205, 85)", sizeW: 30, sizeH: 22, offsetX: -21, offsetY: 0 },
626
+ { color: "rgb(215, 155, 35)", sizeW: 25, sizeH: 28, offsetX: 66, offsetY: 1 },
627
+ { color: "rgb(255, 215, 100)", sizeW: 23, sizeH: 30, offsetX: -66, offsetY: -1 }
628
+ ],
629
+ light: [
630
+ { color: "rgb(173, 137, 43)", sizeW: 45, sizeH: 36, offsetX: 0, offsetY: 2 },
631
+ { color: "rgb(184, 151, 65)", sizeW: 35, sizeH: 32, offsetX: 65, offsetY: 0 },
632
+ { color: "rgb(162, 119, 29)", sizeW: 40, sizeH: 28, offsetX: -60, offsetY: 2 },
633
+ { color: "rgb(180, 144, 50)", sizeW: 35, sizeH: 34, offsetX: -90, offsetY: 0 },
634
+ { color: "rgb(184, 162, 86)", sizeW: 38, sizeH: 30, offsetX: 85, offsetY: -1 },
635
+ { color: "rgb(166, 126, 36)", sizeW: 50, sizeH: 24, offsetX: 35, offsetY: 1 },
636
+ { color: "rgb(176, 148, 61)", sizeW: 40, sizeH: 22, offsetX: -35, offsetY: 0 },
637
+ { color: "rgb(155, 112, 25)", sizeW: 35, sizeH: 28, offsetX: 110, offsetY: 1 },
638
+ { color: "rgb(184, 155, 72)", sizeW: 30, sizeH: 30, offsetX: -110, offsetY: -1 }
639
+ ]
396
640
  }
397
641
  };
398
- function Te(t, e, a) {
399
- return je[t][e ? "dark" : "light"].map((o) => {
400
- const s = o.offsetX === 0 ? "" : o.offsetX > 0 ? ` + ${o.offsetX}px` : ` - ${Math.abs(o.offsetX)}px`, i = o.offsetY === 0 ? "" : o.offsetY > 0 ? ` + ${o.offsetY}px` : ` - ${Math.abs(o.offsetY)}px`;
401
- return `radial-gradient(ellipse calc(${o.sizeW}px * var(--beam-w-${a})) calc(${o.sizeH}px * var(--beam-h-${a})) at calc(var(--beam-x-${a}) * 100%${s}) calc(100%${i}), ${o.color}, transparent)`;
642
+ function De(a, e, o) {
643
+ return Ve[a][e ? "dark" : "light"].map((t) => {
644
+ const s = t.offsetX === 0 ? "" : t.offsetX > 0 ? ` + ${t.offsetX}px` : ` - ${Math.abs(t.offsetX)}px`, i = t.offsetY === 0 ? "" : t.offsetY > 0 ? ` + ${t.offsetY}px` : ` - ${Math.abs(t.offsetY)}px`;
645
+ return `radial-gradient(ellipse calc(${t.sizeW}px * var(--beam-w-${o})) calc(${t.sizeH}px * var(--beam-h-${o})) at calc(var(--beam-x-${o}) * 100%${s}) calc(100%${i}), ${t.color}, transparent)`;
402
646
  }).join(`,
403
647
  `);
404
648
  }
405
- const Ne = {
649
+ const Ue = {
406
650
  colorful: [
407
651
  { color: "rgba(255, 50, 100, 0.48)", sizeW: 33, sizeH: 30, offsetX: 0, offsetY: 0 },
408
652
  { color: "rgba(40, 180, 220, 0.42)", sizeW: 24, sizeH: 26, offsetX: 39, offsetY: -3 },
@@ -446,16 +690,60 @@ const Ne = {
446
690
  { color: "rgba(255, 160, 80, 0.40)", sizeW: 25, sizeH: 18, offsetX: -21, offsetY: -2 },
447
691
  { color: "rgba(255, 90, 60, 0.45)", sizeW: 21, sizeH: 24, offsetX: 66, offsetY: 0 },
448
692
  { color: "rgba(255, 70, 70, 0.52)", sizeW: 18, sizeH: 26, offsetX: -66, offsetY: -1 }
693
+ ],
694
+ forest: [
695
+ { color: "rgba(46, 160, 90,, 0.48)", sizeW: 33, sizeH: 30, offsetX: 0, offsetY: 0 },
696
+ { color: "rgba(30, 190, 120,, 0.42)", sizeW: 24, sizeH: 26, offsetX: 39, offsetY: -3 },
697
+ { color: "rgba(70, 180, 70,, 0.48)", sizeW: 27, sizeH: 24, offsetX: -36, offsetY: 0 },
698
+ { color: "rgba(20, 150, 130,, 0.42)", sizeW: 23, sizeH: 28, offsetX: -54, offsetY: -2 },
699
+ { color: "rgba(90, 200, 80,, 0.50)", sizeW: 24, sizeH: 24, offsetX: 51, offsetY: -1 },
700
+ { color: "rgba(40, 170, 110,, 0.45)", sizeW: 30, sizeH: 20, offsetX: 21, offsetY: 0 },
701
+ { color: "rgba(120, 210, 70,, 0.40)", sizeW: 25, sizeH: 18, offsetX: -21, offsetY: -2 },
702
+ { color: "rgba(35, 145, 100,, 0.45)", sizeW: 21, sizeH: 24, offsetX: 66, offsetY: 0 },
703
+ { color: "rgba(60, 195, 140,, 0.52)", sizeW: 18, sizeH: 26, offsetX: -66, offsetY: -1 }
704
+ ],
705
+ candy: [
706
+ { color: "rgba(240, 70, 170,, 0.48)", sizeW: 33, sizeH: 30, offsetX: 0, offsetY: 0 },
707
+ { color: "rgba(255, 90, 140,, 0.42)", sizeW: 24, sizeH: 26, offsetX: 39, offsetY: -3 },
708
+ { color: "rgba(215, 60, 200,, 0.48)", sizeW: 27, sizeH: 24, offsetX: -36, offsetY: 0 },
709
+ { color: "rgba(255, 110, 180,, 0.42)", sizeW: 23, sizeH: 28, offsetX: -54, offsetY: -2 },
710
+ { color: "rgba(200, 80, 240,, 0.50)", sizeW: 24, sizeH: 24, offsetX: 51, offsetY: -1 },
711
+ { color: "rgba(250, 60, 150,, 0.45)", sizeW: 30, sizeH: 20, offsetX: 21, offsetY: 0 },
712
+ { color: "rgba(230, 120, 220,, 0.40)", sizeW: 25, sizeH: 18, offsetX: -21, offsetY: -2 },
713
+ { color: "rgba(245, 85, 165,, 0.45)", sizeW: 21, sizeH: 24, offsetX: 66, offsetY: 0 },
714
+ { color: "rgba(210, 70, 230,, 0.52)", sizeW: 18, sizeH: 26, offsetX: -66, offsetY: -1 }
715
+ ],
716
+ ice: [
717
+ { color: "rgba(90, 200, 240,, 0.48)", sizeW: 33, sizeH: 30, offsetX: 0, offsetY: 0 },
718
+ { color: "rgba(60, 175, 230,, 0.42)", sizeW: 24, sizeH: 26, offsetX: 39, offsetY: -3 },
719
+ { color: "rgba(130, 220, 250,, 0.48)", sizeW: 27, sizeH: 24, offsetX: -36, offsetY: 0 },
720
+ { color: "rgba(70, 190, 215,, 0.42)", sizeW: 23, sizeH: 28, offsetX: -54, offsetY: -2 },
721
+ { color: "rgba(110, 210, 255,, 0.50)", sizeW: 24, sizeH: 24, offsetX: 51, offsetY: -1 },
722
+ { color: "rgba(50, 165, 220,, 0.45)", sizeW: 30, sizeH: 20, offsetX: 21, offsetY: 0 },
723
+ { color: "rgba(150, 230, 250,, 0.40)", sizeW: 25, sizeH: 18, offsetX: -21, offsetY: -2 },
724
+ { color: "rgba(85, 195, 235,, 0.45)", sizeW: 21, sizeH: 24, offsetX: 66, offsetY: 0 },
725
+ { color: "rgba(65, 180, 245,, 0.52)", sizeW: 18, sizeH: 26, offsetX: -66, offsetY: -1 }
726
+ ],
727
+ gold: [
728
+ { color: "rgba(240, 190, 60,, 0.48)", sizeW: 33, sizeH: 30, offsetX: 0, offsetY: 0 },
729
+ { color: "rgba(255, 210, 90,, 0.42)", sizeW: 24, sizeH: 26, offsetX: 39, offsetY: -3 },
730
+ { color: "rgba(225, 165, 40,, 0.48)", sizeW: 27, sizeH: 24, offsetX: -36, offsetY: 0 },
731
+ { color: "rgba(250, 200, 70,, 0.42)", sizeW: 23, sizeH: 28, offsetX: -54, offsetY: -2 },
732
+ { color: "rgba(255, 225, 120,, 0.50)", sizeW: 24, sizeH: 24, offsetX: 51, offsetY: -1 },
733
+ { color: "rgba(230, 175, 50,, 0.45)", sizeW: 30, sizeH: 20, offsetX: 21, offsetY: 0 },
734
+ { color: "rgba(245, 205, 85,, 0.40)", sizeW: 25, sizeH: 18, offsetX: -21, offsetY: -2 },
735
+ { color: "rgba(215, 155, 35,, 0.45)", sizeW: 21, sizeH: 24, offsetX: 66, offsetY: 0 },
736
+ { color: "rgba(255, 215, 100,, 0.52)", sizeW: 18, sizeH: 26, offsetX: -66, offsetY: -1 }
449
737
  ]
450
738
  };
451
- function Ve(t, e) {
452
- return Ne[t].map((r) => {
453
- const o = r.offsetX === 0 ? "" : r.offsetX > 0 ? ` + ${r.offsetX}px` : ` - ${Math.abs(r.offsetX)}px`, s = r.offsetY === 0 ? "" : ` - ${Math.abs(r.offsetY)}px`;
454
- return `radial-gradient(ellipse calc(${r.sizeW}px * var(--beam-w-${e})) calc(${r.sizeH}px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%${o}) calc(100%${s}), ${r.color}, transparent)`;
739
+ function Ke(a, e) {
740
+ return Ue[a].map((r) => {
741
+ const t = r.offsetX === 0 ? "" : r.offsetX > 0 ? ` + ${r.offsetX}px` : ` - ${Math.abs(r.offsetX)}px`, s = r.offsetY === 0 ? "" : ` - ${Math.abs(r.offsetY)}px`;
742
+ return `radial-gradient(ellipse calc(${r.sizeW}px * var(--beam-w-${e})) calc(${r.sizeH}px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%${t}) calc(100%${s}), ${r.color}, transparent)`;
455
743
  }).join(`,
456
744
  `);
457
745
  }
458
- const De = {
746
+ const Qe = {
459
747
  colorful: {
460
748
  dark: {
461
749
  spikes: [
@@ -545,47 +833,127 @@ const De = {
545
833
  { color1: "rgb(190, 70, 30)", color2: "rgba(190, 70, 30, 0.78)" }
546
834
  ]
547
835
  }
836
+ },
837
+ forest: {
838
+ dark: {
839
+ spikes: [
840
+ { color1: "rgb(46, 160, 90)", color2: "rgb(30, 190, 120)" },
841
+ { color1: "rgba(70, 180, 70,, 0.59)", color2: "rgba(20, 150, 130,, 0.29)" },
842
+ { color1: "rgb(90, 200, 80)", color2: "rgb(40, 170, 110)" },
843
+ { color1: "rgba(120, 210, 70,, 0.91)", color2: "rgba(35, 145, 100,, 0.45)" },
844
+ { color1: "rgb(60, 195, 140)", color2: "rgb(46, 160, 90)" }
845
+ ]
846
+ },
847
+ light: {
848
+ spikes: [
849
+ { color1: "rgb(33, 115, 65)", color2: "rgba(22, 137, 86,, 0.8)" },
850
+ { color1: "rgba(50, 130, 50,, 0.7)", color2: "rgba(14, 108, 94,, 0.46)" },
851
+ { color1: "rgb(65, 144, 58)", color2: "rgba(29, 122, 79,, 0.82)" },
852
+ { color1: "rgb(86, 151, 50)", color2: "rgba(25, 104, 72,, 0.7)" },
853
+ { color1: "rgb(43, 140, 101)", color2: "rgba(33, 115, 65,, 0.78)" }
854
+ ]
855
+ }
856
+ },
857
+ candy: {
858
+ dark: {
859
+ spikes: [
860
+ { color1: "rgb(240, 70, 170)", color2: "rgb(255, 90, 140)" },
861
+ { color1: "rgba(215, 60, 200,, 0.59)", color2: "rgba(255, 110, 180,, 0.29)" },
862
+ { color1: "rgb(200, 80, 240)", color2: "rgb(250, 60, 150)" },
863
+ { color1: "rgba(230, 120, 220,, 0.91)", color2: "rgba(245, 85, 165,, 0.45)" },
864
+ { color1: "rgb(210, 70, 230)", color2: "rgb(240, 70, 170)" }
865
+ ]
866
+ },
867
+ light: {
868
+ spikes: [
869
+ { color1: "rgb(173, 50, 122)", color2: "rgba(184, 65, 101,, 0.8)" },
870
+ { color1: "rgba(155, 43, 144,, 0.7)", color2: "rgba(184, 79, 130,, 0.46)" },
871
+ { color1: "rgb(144, 58, 173)", color2: "rgba(180, 43, 108,, 0.82)" },
872
+ { color1: "rgb(166, 86, 158)", color2: "rgba(176, 61, 119,, 0.7)" },
873
+ { color1: "rgb(151, 50, 166)", color2: "rgba(173, 50, 122,, 0.78)" }
874
+ ]
875
+ }
876
+ },
877
+ ice: {
878
+ dark: {
879
+ spikes: [
880
+ { color1: "rgb(90, 200, 240)", color2: "rgb(60, 175, 230)" },
881
+ { color1: "rgba(130, 220, 250,, 0.59)", color2: "rgba(70, 190, 215,, 0.29)" },
882
+ { color1: "rgb(110, 210, 255)", color2: "rgb(50, 165, 220)" },
883
+ { color1: "rgba(150, 230, 250,, 0.91)", color2: "rgba(85, 195, 235,, 0.45)" },
884
+ { color1: "rgb(65, 180, 245)", color2: "rgb(90, 200, 240)" }
885
+ ]
886
+ },
887
+ light: {
888
+ spikes: [
889
+ { color1: "rgb(65, 144, 173)", color2: "rgba(43, 126, 166,, 0.8)" },
890
+ { color1: "rgba(94, 158, 180,, 0.7)", color2: "rgba(50, 137, 155,, 0.46)" },
891
+ { color1: "rgb(79, 151, 184)", color2: "rgba(36, 119, 158,, 0.82)" },
892
+ { color1: "rgb(108, 166, 180)", color2: "rgba(61, 140, 169,, 0.7)" },
893
+ { color1: "rgb(47, 130, 176)", color2: "rgba(65, 144, 173,, 0.78)" }
894
+ ]
895
+ }
896
+ },
897
+ gold: {
898
+ dark: {
899
+ spikes: [
900
+ { color1: "rgb(240, 190, 60)", color2: "rgb(255, 210, 90)" },
901
+ { color1: "rgba(225, 165, 40,, 0.59)", color2: "rgba(250, 200, 70,, 0.29)" },
902
+ { color1: "rgb(255, 225, 120)", color2: "rgb(230, 175, 50)" },
903
+ { color1: "rgba(245, 205, 85,, 0.91)", color2: "rgba(215, 155, 35,, 0.45)" },
904
+ { color1: "rgb(255, 215, 100)", color2: "rgb(240, 190, 60)" }
905
+ ]
906
+ },
907
+ light: {
908
+ spikes: [
909
+ { color1: "rgb(173, 137, 43)", color2: "rgba(184, 151, 65,, 0.8)" },
910
+ { color1: "rgba(162, 119, 29,, 0.7)", color2: "rgba(180, 144, 50,, 0.46)" },
911
+ { color1: "rgb(184, 162, 86)", color2: "rgba(166, 126, 36,, 0.82)" },
912
+ { color1: "rgb(176, 148, 61)", color2: "rgba(155, 112, 25,, 0.7)" },
913
+ { color1: "rgb(184, 155, 72)", color2: "rgba(173, 137, 43,, 0.78)" }
914
+ ]
915
+ }
548
916
  }
549
917
  };
550
- function K(t, e) {
551
- const a = t.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*[\d.]+\s*\)$/);
552
- if (a) return `rgba(${a[1]}, ${a[2]}, ${a[3]}, ${e})`;
553
- const r = t.match(/^rgb\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);
554
- return r ? `rgba(${r[1]}, ${r[2]}, ${r[3]}, ${e})` : t;
555
- }
556
- function q(t, e) {
557
- const a = t.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);
558
- if (a) return `rgba(${a[1]}, ${a[2]}, ${a[3]}, ${(parseFloat(a[4]) * e).toFixed(2)})`;
559
- const r = t.match(/^rgb\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);
560
- return r ? `rgba(${r[1]}, ${r[2]}, ${r[3]}, ${e.toFixed(2)})` : t;
561
- }
562
- function Ue(t, e, a) {
563
- const r = _e(t, e), o = De[t][e ? "dark" : "light"], s = t === "mono", i = s ? 0.14 : 1, c = s ? q(r.primary, 0.14) : r.primary, p = s ? q(r.primary, 0.09) : r.primary, b = s ? q(r.secondary, 0.12) : r.secondary, m = s ? K(r.secondary, 0.06) : K(r.secondary, 0.49), n = o.spikes.map(
564
- (v) => s ? { color1: q(v.color1, i), color2: q(v.color2, i * 0.7) } : v
565
- ), l = s ? "12px" : "0.8px", d = s ? "14px" : "2px", k = s ? "12px" : "1.2px", f = s ? "10px" : "0.6px", g = s ? "42px" : "92px", W = s ? "38px" : "72px", Y = s ? "40px" : "85px", z = s ? "32px" : "60px", H = s ? "12px" : "1px", $ = s ? "rgba(255, 255, 255, 0.5)" : "rgba(255, 255, 255, 1)", w = s ? "rgba(255, 255, 255, 0.45)" : "rgba(255, 255, 255, 0.9)", y = s ? "rgba(255, 255, 255, 0.25)" : "rgba(255, 255, 255, 0.5)", x = s ? "rgba(255, 255, 255, 0.15)" : "rgba(255, 255, 255, 0.3)", X = s ? "rgba(255, 255, 255, 0.06)" : "rgba(255, 255, 255, 0.12)", u = s ? "rgba(255, 255, 255, 0.015)" : "rgba(255, 255, 255, 0.03)";
918
+ function J(a, e) {
919
+ const o = a.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*[\d.]+\s*\)$/);
920
+ if (o) return `rgba(${o[1]}, ${o[2]}, ${o[3]}, ${e})`;
921
+ const r = a.match(/^rgb\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);
922
+ return r ? `rgba(${r[1]}, ${r[2]}, ${r[3]}, ${e})` : a;
923
+ }
924
+ function q(a, e) {
925
+ const o = a.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);
926
+ if (o) return `rgba(${o[1]}, ${o[2]}, ${o[3]}, ${(parseFloat(o[4]) * e).toFixed(2)})`;
927
+ const r = a.match(/^rgb\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);
928
+ return r ? `rgba(${r[1]}, ${r[2]}, ${r[3]}, ${e.toFixed(2)})` : a;
929
+ }
930
+ function Ze(a, e, o) {
931
+ const r = Ne(a, e), t = Qe[a][e ? "dark" : "light"], s = a === "mono", i = s ? 0.14 : 1, c = s ? q(r.primary, 0.14) : r.primary, p = s ? q(r.primary, 0.09) : r.primary, b = s ? q(r.secondary, 0.12) : r.secondary, g = s ? J(r.secondary, 0.06) : J(r.secondary, 0.49), n = t.spikes.map(
932
+ (k) => s ? { color1: q(k.color1, i), color2: q(k.color2, i * 0.7) } : k
933
+ ), l = s ? "12px" : "0.8px", f = s ? "14px" : "2px", W = s ? "12px" : "1.2px", y = s ? "10px" : "0.6px", d = s ? "42px" : "92px", m = s ? "38px" : "72px", H = s ? "40px" : "85px", X = s ? "32px" : "60px", O = s ? "12px" : "1px", $ = s ? "rgba(255, 255, 255, 0.5)" : "rgba(255, 255, 255, 1)", Y = s ? "rgba(255, 255, 255, 0.45)" : "rgba(255, 255, 255, 0.9)", x = s ? "rgba(255, 255, 255, 0.25)" : "rgba(255, 255, 255, 0.5)", w = s ? "rgba(255, 255, 255, 0.15)" : "rgba(255, 255, 255, 0.3)", v = s ? "rgba(255, 255, 255, 0.06)" : "rgba(255, 255, 255, 0.12)", u = s ? "rgba(255, 255, 255, 0.015)" : "rgba(255, 255, 255, 0.03)";
566
934
  if (e)
567
- return `radial-gradient(ellipse calc(${l} * var(--beam-spike-${a})) calc(${g} * var(--beam-h-${a})) at 8% calc(100% - 2px), ${c}, ${p} 30%, transparent 88%),
568
- radial-gradient(ellipse calc(10px * var(--beam-spike2-${a})) calc(35px * var(--beam-h-${a})) at 22% calc(100% - 4px), ${b}, ${m} 50%, transparent 95%),
569
- radial-gradient(ellipse calc(${d} * (2 - var(--beam-spike-${a}))) calc(${W} * var(--beam-h-${a})) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
570
- radial-gradient(ellipse calc(14px * var(--beam-spike2-${a})) calc(28px * var(--beam-h-${a})) at 50% calc(100% - 2px), ${n[1].color1}, ${n[1].color2} 55%, transparent 96%),
571
- radial-gradient(ellipse calc(${k} * (2 - var(--beam-spike2-${a}))) calc(${Y} * var(--beam-h-${a})) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
572
- radial-gradient(ellipse calc(7px * var(--beam-spike-${a})) calc(45px * var(--beam-h-${a})) at 78% calc(100% - 2px), ${n[3].color1}, ${n[3].color2} 48%, transparent 94%),
573
- radial-gradient(ellipse calc(${f} * (2 - var(--beam-spike-${a}))) calc(${z} * var(--beam-h-${a})) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
574
- radial-gradient(ellipse calc(21px * var(--beam-spike-${a})) calc(15px * var(--beam-spike2-${a})) at calc(var(--beam-x-${a}) * 100%) calc(100% + 1px), ${$} 0%, ${w} 20%, ${y} 50%, transparent 100%),
575
- radial-gradient(ellipse calc(42px * var(--beam-w-${a})) calc(40px * var(--beam-h-${a})) at calc(var(--beam-x-${a}) * 100%) 100%, ${x} 0%, ${X} 25%, ${u} 55%, transparent 80%)`;
935
+ return `radial-gradient(ellipse calc(${l} * var(--beam-spike-${o}) * var(--beam-spike-mul, 1)) calc(${d} * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 8% calc(100% - 2px), ${c}, ${p} 30%, transparent 88%),
936
+ radial-gradient(ellipse calc(10px * var(--beam-spike2-${o}) * var(--beam-spike-mul, 1)) calc(35px * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 22% calc(100% - 4px), ${b}, ${g} 50%, transparent 95%),
937
+ radial-gradient(ellipse calc(${f} * (2 - var(--beam-spike-${o})) * var(--beam-spike-mul, 1)) calc(${m} * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
938
+ radial-gradient(ellipse calc(14px * var(--beam-spike2-${o}) * var(--beam-spike-mul, 1)) calc(28px * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 50% calc(100% - 2px), ${n[1].color1}, ${n[1].color2} 55%, transparent 96%),
939
+ radial-gradient(ellipse calc(${W} * (2 - var(--beam-spike2-${o})) * var(--beam-spike-mul, 1)) calc(${H} * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
940
+ radial-gradient(ellipse calc(7px * var(--beam-spike-${o}) * var(--beam-spike-mul, 1)) calc(45px * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 78% calc(100% - 2px), ${n[3].color1}, ${n[3].color2} 48%, transparent 94%),
941
+ radial-gradient(ellipse calc(${y} * (2 - var(--beam-spike-${o})) * var(--beam-spike-mul, 1)) calc(${X} * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
942
+ radial-gradient(ellipse calc(21px * var(--beam-spike-${o})) calc(15px * var(--beam-spike2-${o})) at calc(var(--beam-x-${o}) * 100%) calc(100% + 1px), ${$} 0%, ${Y} 20%, ${x} 50%, transparent 100%),
943
+ radial-gradient(ellipse calc(42px * var(--beam-w-${o})) calc(40px * var(--beam-h-${o})) at calc(var(--beam-x-${o}) * 100%) 100%, ${w} 0%, ${v} 25%, ${u} 55%, transparent 80%)`;
576
944
  {
577
- const v = s ? q(r.primary, 0.11) : K(r.primary, 0.85), S = s ? q(r.secondary, 0.09) : K(r.secondary, 0.7);
578
- return `radial-gradient(ellipse calc(${l} * var(--beam-spike-${a})) calc(${g} * var(--beam-h-${a})) at 8% calc(100% - 2px), ${c}, ${v} 30%, transparent 88%),
579
- radial-gradient(ellipse calc(10px * var(--beam-spike2-${a})) calc(35px * var(--beam-h-${a})) at 22% calc(100% - 4px), ${b}, ${S} 50%, transparent 95%),
580
- radial-gradient(ellipse calc(${d} * (2 - var(--beam-spike-${a}))) calc(${W} * var(--beam-h-${a})) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
581
- radial-gradient(ellipse calc(14px * var(--beam-spike2-${a})) calc(28px * var(--beam-h-${a})) at 50% calc(100% - 2px), ${n[1].color1}, ${n[1].color2} 55%, transparent 96%),
582
- radial-gradient(ellipse calc(${k} * (2 - var(--beam-spike2-${a}))) calc(${Y} * var(--beam-h-${a})) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
583
- radial-gradient(ellipse calc(7px * var(--beam-spike-${a})) calc(45px * var(--beam-h-${a})) at 78% calc(100% - 2px), ${n[3].color1}, ${n[3].color2} 48%, transparent 94%),
584
- radial-gradient(ellipse calc(${H} * (2 - var(--beam-spike-${a}))) calc(${z} * var(--beam-h-${a})) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
585
- radial-gradient(ellipse calc(50px * var(--beam-w-${a})) calc(32px * var(--beam-h-${a})) at calc(var(--beam-x-${a}) * 100%) calc(100%), rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0.03) 60%, transparent 85%)`;
945
+ const k = s ? q(r.primary, 0.11) : J(r.primary, 0.85), z = s ? q(r.secondary, 0.09) : J(r.secondary, 0.7);
946
+ return `radial-gradient(ellipse calc(${l} * var(--beam-spike-${o}) * var(--beam-spike-mul, 1)) calc(${d} * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 8% calc(100% - 2px), ${c}, ${k} 30%, transparent 88%),
947
+ radial-gradient(ellipse calc(10px * var(--beam-spike2-${o}) * var(--beam-spike-mul, 1)) calc(35px * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 22% calc(100% - 4px), ${b}, ${z} 50%, transparent 95%),
948
+ radial-gradient(ellipse calc(${f} * (2 - var(--beam-spike-${o})) * var(--beam-spike-mul, 1)) calc(${m} * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
949
+ radial-gradient(ellipse calc(14px * var(--beam-spike2-${o}) * var(--beam-spike-mul, 1)) calc(28px * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 50% calc(100% - 2px), ${n[1].color1}, ${n[1].color2} 55%, transparent 96%),
950
+ radial-gradient(ellipse calc(${W} * (2 - var(--beam-spike2-${o})) * var(--beam-spike-mul, 1)) calc(${H} * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
951
+ radial-gradient(ellipse calc(7px * var(--beam-spike-${o}) * var(--beam-spike-mul, 1)) calc(45px * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 78% calc(100% - 2px), ${n[3].color1}, ${n[3].color2} 48%, transparent 94%),
952
+ radial-gradient(ellipse calc(${O} * (2 - var(--beam-spike-${o})) * var(--beam-spike-mul, 1)) calc(${X} * var(--beam-h-${o}) * var(--beam-spike-mul, 1)) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
953
+ radial-gradient(ellipse calc(50px * var(--beam-w-${o})) calc(32px * var(--beam-h-${o})) at calc(var(--beam-x-${o}) * 100%) calc(100%), rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0.03) 60%, transparent 85%)`;
586
954
  }
587
955
  }
588
- const Xe = [
956
+ const Fe = [
589
957
  { region: 1, quad: "tl" },
590
958
  { region: 2, quad: "tl" },
591
959
  { region: 3, quad: "bl" },
@@ -595,7 +963,7 @@ const Xe = [
595
963
  { region: 1, quad: "tr" },
596
964
  { region: 2, quad: "tr" },
597
965
  { region: 3, quad: "tr" }
598
- ], Ke = [
966
+ ], Je = [
599
967
  [65, 35],
600
968
  [55, 30],
601
969
  [35, 65],
@@ -605,7 +973,7 @@ const Xe = [
605
973
  [69, 28],
606
974
  [22, 38],
607
975
  [47, 44]
608
- ], Qe = [
976
+ ], eo = [
609
977
  { ci: 0, region: 1, quad: "tl", w: 84, h: 48 },
610
978
  { ci: 1, region: 2, quad: "tl", w: 72, h: 42 },
611
979
  { ci: 2, region: 3, quad: "bl", w: 48, h: 84 },
@@ -613,7 +981,7 @@ const Xe = [
613
981
  { ci: 5, region: 3, quad: "br", w: 102, h: 31 },
614
982
  { ci: 6, region: 1, quad: "tr", w: 89, h: 38 },
615
983
  { ci: 8, region: 3, quad: "tr", w: 62, h: 58 }
616
- ], ke = [
984
+ ], Ye = [
617
985
  { ci: 0, region: 1, quad: "tl", w: 80, h: 19, x: "27%", y: "0%" },
618
986
  { ci: 6, region: 2, quad: "tr", w: 74, h: 11, x: "73%", y: "-1%" },
619
987
  { ci: 7, region: 3, quad: "tr", w: 15, h: 44, x: "100%", y: "33%" },
@@ -622,7 +990,7 @@ const Xe = [
622
990
  { ci: 1, region: 3, quad: "bl", w: 60, h: 21, x: "24%", y: "101%" },
623
991
  { ci: 2, region: 1, quad: "bl", w: 17, h: 40, x: "0%", y: "60%" },
624
992
  { ci: 3, region: 2, quad: "tl", w: 13, h: 32, x: "-1%", y: "28%" }
625
- ], Ze = [
993
+ ], oo = [
626
994
  { ci: 0, region: 1, quad: "tl", w: 110, h: 30, x: "27%", y: "3%" },
627
995
  { ci: 6, region: 2, quad: "tr", w: 100, h: 20, x: "73%", y: "1%" },
628
996
  { ci: 7, region: 3, quad: "tr", w: 26, h: 62, x: "100%", y: "33%" },
@@ -631,71 +999,71 @@ const Xe = [
631
999
  { ci: 1, region: 3, quad: "bl", w: 88, h: 32, x: "24%", y: "99%" },
632
1000
  { ci: 2, region: 1, quad: "bl", w: 28, h: 58, x: "0%", y: "60%" }
633
1001
  ];
634
- function Je(t, e, a) {
635
- const r = t.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
636
- return `rgba(${r ? `${r[1]}, ${r[2]}, ${r[3]}` : "255, 255, 255"}, var(--bop-${e}-${a}))`;
1002
+ function ro(a, e, o) {
1003
+ const r = a.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
1004
+ return `rgba(${r ? `${r[1]}, ${r[2]}, ${r[3]}` : "255, 255, 255"}, var(--bop-${e}-${o}))`;
637
1005
  }
638
- function be(t, e, a, r, o, s, i, c) {
639
- return `radial-gradient(ellipse calc(${e}px * var(--bw${r}-${c}) * var(--pulse-glow-sx, 1) * var(--pulse-glow-boost, 1)) calc(${a}px * var(--bh${r}-${c}) * var(--bgh-${c}) * var(--pulse-glow-sy, 1) * var(--pulse-glow-boost, 1)) at calc(${s} + var(--bx${r}-${c})) calc(${i} + var(--by${r}-${c})), ${Je(t, o, c)}, transparent)`;
1006
+ function fe(a, e, o, r, t, s, i, c) {
1007
+ return `radial-gradient(ellipse calc(${e}px * var(--bw${r}-${c}) * var(--pulse-glow-sx, 1) * var(--pulse-glow-boost, 1)) calc(${o}px * var(--bh${r}-${c}) * var(--bgh-${c}) * var(--pulse-glow-sy, 1) * var(--pulse-glow-boost, 1)) at calc(${s} + var(--bx${r}-${c})) calc(${i} + var(--by${r}-${c})), ${ro(a, t, c)}, transparent)`;
640
1008
  }
641
- function ea(t, e) {
642
- return C[t].border.map((a, r) => {
643
- const { region: o, quad: s } = Xe[r], [i, c] = a.pos.split(" "), [p, b] = a.size.split(" ").map(parseFloat);
644
- return be(a.color, p, b, o, s, i, c, e);
1009
+ function ao(a, e) {
1010
+ return G[a].border.map((o, r) => {
1011
+ const { region: t, quad: s } = Fe[r], [i, c] = o.pos.split(" "), [p, b] = o.size.split(" ").map(parseFloat);
1012
+ return fe(o.color, p, b, t, s, i, c, e);
645
1013
  }).join(`,
646
1014
  `);
647
1015
  }
648
- function aa(t, e, a) {
649
- const o = C[t].border.map((b, m) => {
650
- const { region: n, quad: l } = Xe[m], [d, k] = b.pos.split(" "), [f, g] = Ke[m];
651
- return be(b.color, f, g, n, l, d, k, e);
652
- }), s = a ? "255, 255, 255" : "0, 0, 0", i = a ? 0.18 : 0.08, p = [
1016
+ function to(a, e, o) {
1017
+ const t = G[a].border.map((b, g) => {
1018
+ const { region: n, quad: l } = Fe[g], [f, W] = b.pos.split(" "), [y, d] = Je[g];
1019
+ return fe(b.color, y, d, n, l, f, W, e);
1020
+ }), s = o ? "255, 255, 255" : "0, 0, 0", i = o ? 0.18 : 0.08, p = [
653
1021
  ["0%", "0%", "tl"],
654
1022
  ["100%", "0%", "tr"],
655
1023
  ["0%", "100%", "bl"],
656
1024
  ["100%", "100%", "br"]
657
1025
  ].map(
658
- ([b, m, n]) => `radial-gradient(ellipse 60px 60px at ${b} ${m}, rgba(${s}, calc(${i} * var(--bop-${n}-${e}))), transparent 70%)`
1026
+ ([b, g, n]) => `radial-gradient(ellipse 60px 60px at ${b} ${g}, rgba(${s}, calc(${i} * var(--bop-${n}-${e}))), transparent 70%)`
659
1027
  );
660
- return [...o, ...p].join(`,
1028
+ return [...t, ...p].join(`,
661
1029
  `);
662
1030
  }
663
- function we(t, e, a) {
664
- const r = C[e].border;
665
- return t.map((o) => {
666
- const s = r[o.ci], [i, c] = s.pos.split(" ");
667
- return be(s.color, o.w, o.h, o.region, o.quad, o.x ?? i, o.y ?? c, a);
1031
+ function we(a, e, o) {
1032
+ const r = G[e].border;
1033
+ return a.map((t) => {
1034
+ const s = r[t.ci], [i, c] = s.pos.split(" ");
1035
+ return fe(s.color, t.w, t.h, t.region, t.quad, t.x ?? i, t.y ?? c, o);
668
1036
  }).join(`,
669
1037
  `);
670
1038
  }
671
- function Ye(t, e, a) {
672
- const r = C[e].border, o = +a.toFixed(3);
673
- return t.map((s) => {
674
- const i = r[s.ci], [c, p] = i.pos.split(" "), b = s.x ?? c, m = s.y ?? p, n = i.color.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/), l = n ? `${n[1]}, ${n[2]}, ${n[3]}` : "255, 255, 255";
675
- return `radial-gradient(ellipse calc(${s.w}px * var(--pulse-glow-sx, 1) * var(--pulse-glow-boost, 1)) calc(${s.h}px * var(--pulse-glow-sy, 1) * var(--pulse-glow-boost, 1)) at ${b} ${m}, rgba(${l}, ${o}), transparent)`;
1039
+ function Re(a, e, o) {
1040
+ const r = G[e].border, t = +o.toFixed(3);
1041
+ return a.map((s) => {
1042
+ const i = r[s.ci], [c, p] = i.pos.split(" "), b = s.x ?? c, g = s.y ?? p, n = i.color.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/), l = n ? `${n[1]}, ${n[2]}, ${n[3]}` : "255, 255, 255";
1043
+ return `radial-gradient(ellipse calc(${s.w}px * var(--pulse-glow-sx, 1) * var(--pulse-glow-boost, 1)) calc(${s.h}px * var(--pulse-glow-sy, 1) * var(--pulse-glow-boost, 1)) at ${b} ${g}, rgba(${l}, ${t}), transparent)`;
676
1044
  }).join(`,
677
1045
  `);
678
1046
  }
679
- function _(t) {
1047
+ function N(a) {
680
1048
  return `
681
- [data-beam="${t}"][data-paused],
682
- [data-beam="${t}"][data-paused]::after,
683
- [data-beam="${t}"][data-paused]::before,
684
- [data-beam="${t}"][data-paused] [data-beam-bloom] {
1049
+ [data-beam="${a}"][data-paused],
1050
+ [data-beam="${a}"][data-paused]::after,
1051
+ [data-beam="${a}"][data-paused]::before,
1052
+ [data-beam="${a}"][data-paused] [data-beam-bloom] {
685
1053
  animation-play-state: paused !important;
686
1054
  }`;
687
1055
  }
688
- function Oe(t) {
689
- const e = ["bw1", "bh1", "bw2", "bh2", "bw3", "bh3", "bgh", "bop-tl", "bop-tr", "bop-bl", "bop-br"], a = ["bx1", "by1", "bx2", "by2", "bx3", "by3"], r = e.map(
690
- (s) => `@property --${s}-${t} {
1056
+ function Me(a) {
1057
+ const e = ["bw1", "bh1", "bw2", "bh2", "bw3", "bh3", "bgh", "bop-tl", "bop-tr", "bop-bl", "bop-br"], o = ["bx1", "by1", "bx2", "by2", "bx3", "by3"], r = e.map(
1058
+ (s) => `@property --${s}-${a} {
691
1059
  syntax: "<number>";
692
1060
  initial-value: 1;
693
1061
  inherits: true;
694
1062
  }`
695
1063
  ).join(`
696
1064
 
697
- `), o = a.map(
698
- (s) => `@property --${s}-${t} {
1065
+ `), t = o.map(
1066
+ (s) => `@property --${s}-${a} {
699
1067
  syntax: "<length>";
700
1068
  initial-value: 0px;
701
1069
  inherits: true;
@@ -705,30 +1073,30 @@ function Oe(t) {
705
1073
  `);
706
1074
  return `${r}
707
1075
 
708
- ${o}
1076
+ ${t}
709
1077
 
710
- @property --beam-opacity-${t} {
1078
+ @property --beam-opacity-${a} {
711
1079
  syntax: "<number>";
712
1080
  initial-value: 0;
713
1081
  inherits: true;
714
1082
  }
715
1083
 
716
- @property --beam-hue-${t} {
1084
+ @property --beam-hue-${a} {
717
1085
  syntax: "<angle>";
718
1086
  initial-value: 0deg;
719
1087
  inherits: true;
720
1088
  }`;
721
1089
  }
722
- function pe(t, e, a) {
723
- const r = e === "dark", o = a / 2.3;
724
- return t === "pulse-inner" ? {
1090
+ function ge(a, e, o) {
1091
+ const r = e === "dark", t = o / 2.3;
1092
+ return a === "pulse-inner" ? {
725
1093
  sp: 0.28,
726
1094
  dr: r ? 33 : 40,
727
1095
  op: r ? 0.48 : 0.45,
728
1096
  gh: r ? 0.34 : 0.22,
729
- bs: (r ? 1.9 : 2.6) * o,
730
- ss: (r ? 2.6 : 4.6) * o,
731
- ghs: (r ? 2.4 : 5.5) * o,
1097
+ bs: (r ? 1.9 : 2.6) * t,
1098
+ ss: (r ? 2.6 : 4.6) * t,
1099
+ ghs: (r ? 2.4 : 5.5) * t,
732
1100
  // Full hue revolution period (seconds) — colors continuously cycle.
733
1101
  huePeriod: 16
734
1102
  } : {
@@ -736,74 +1104,78 @@ function pe(t, e, a) {
736
1104
  dr: r ? 14 : 19,
737
1105
  op: r ? 0.46 : 0,
738
1106
  gh: r ? 0.16 : 0.58,
739
- bs: (r ? 2.3 : 3.7) * o,
740
- ss: (r ? 6.4 : 4.6) * o,
741
- ghs: (r ? 2.4 : 3.8) * o,
1107
+ bs: (r ? 2.3 : 3.7) * t,
1108
+ ss: (r ? 6.4 : 4.6) * t,
1109
+ ghs: (r ? 2.4 : 3.8) * t,
742
1110
  // Full hue revolution period (seconds) — colors continuously cycle.
743
1111
  huePeriod: 14
744
1112
  };
745
1113
  }
746
- function ra(t, e) {
747
- const { sp: a, dr: r, op: o, gh: s, bs: i, ss: c, ghs: p } = e;
1114
+ function so(a, e) {
1115
+ const { sp: o, dr: r, op: t, gh: s, bs: i, ss: c, ghs: p } = e;
748
1116
  return [
749
- { prop: `--bw1-${t}`, a: 1 - a, b: 1 + a * 1.1, period: c * 0.9, delay: 0, unit: "" },
750
- { prop: `--bh1-${t}`, a: 1 + a * 0.9, b: 1 - a * 0.85, period: c * 1.26, delay: 0, unit: "" },
751
- { prop: `--bx1-${t}`, a: -r, b: r * 0.9, period: i * 1.6, delay: 0, unit: "px" },
752
- { prop: `--by1-${t}`, a: r * 0.55, b: -r * 0.7, period: i * 1.6, delay: 0, unit: "px" },
753
- { prop: `--bw2-${t}`, a: 1 + a, b: 1 - a * 0.85, period: c * 1.1, delay: 0, unit: "" },
754
- { prop: `--bh2-${t}`, a: 1 - a * 0.8, b: 1 + a * 1.05, period: c * 0.81, delay: 0, unit: "" },
755
- { prop: `--bx2-${t}`, a: r * 0.8, b: -r * 0.9, period: i * 1.88, delay: 0, unit: "px" },
756
- { prop: `--by2-${t}`, a: -r, b: r * 0.65, period: i * 1.88, delay: 0, unit: "px" },
757
- { prop: `--bw3-${t}`, a: 1 - a * 0.6, b: 1 + a * 1.15, period: c * 0.98, delay: 0, unit: "" },
758
- { prop: `--bh3-${t}`, a: 1 + a * 0.75, b: 1 - a, period: c * 1.4, delay: 0, unit: "" },
759
- { prop: `--bx3-${t}`, a: -r * 0.6, b: r, period: i * 1.45, delay: 0, unit: "px" },
760
- { prop: `--by3-${t}`, a: -r * 0.85, b: r * 0.45, period: i * 1.45, delay: 0, unit: "px" },
761
- { prop: `--bgh-${t}`, a: 1 - s, b: 1 + s, period: p, delay: 0, unit: "" },
762
- { prop: `--bop-tl-${t}`, a: 1 - o, b: 1, period: i, delay: 0, unit: "" },
763
- { prop: `--bop-tr-${t}`, a: 1 - o, b: 1, period: i * 1.32, delay: i * 0.28, unit: "" },
764
- { prop: `--bop-bl-${t}`, a: 1 - o, b: 1, period: i * 0.84, delay: i * 0.55, unit: "" },
765
- { prop: `--bop-br-${t}`, a: 1 - o, b: 1, period: i * 1.58, delay: i * 0.83, unit: "" }
1117
+ { prop: `--bw1-${a}`, a: 1 - o, b: 1 + o * 1.1, period: c * 0.9, delay: 0, unit: "" },
1118
+ { prop: `--bh1-${a}`, a: 1 + o * 0.9, b: 1 - o * 0.85, period: c * 1.26, delay: 0, unit: "" },
1119
+ { prop: `--bx1-${a}`, a: -r, b: r * 0.9, period: i * 1.6, delay: 0, unit: "px" },
1120
+ { prop: `--by1-${a}`, a: r * 0.55, b: -r * 0.7, period: i * 1.6, delay: 0, unit: "px" },
1121
+ { prop: `--bw2-${a}`, a: 1 + o, b: 1 - o * 0.85, period: c * 1.1, delay: 0, unit: "" },
1122
+ { prop: `--bh2-${a}`, a: 1 - o * 0.8, b: 1 + o * 1.05, period: c * 0.81, delay: 0, unit: "" },
1123
+ { prop: `--bx2-${a}`, a: r * 0.8, b: -r * 0.9, period: i * 1.88, delay: 0, unit: "px" },
1124
+ { prop: `--by2-${a}`, a: -r, b: r * 0.65, period: i * 1.88, delay: 0, unit: "px" },
1125
+ { prop: `--bw3-${a}`, a: 1 - o * 0.6, b: 1 + o * 1.15, period: c * 0.98, delay: 0, unit: "" },
1126
+ { prop: `--bh3-${a}`, a: 1 + o * 0.75, b: 1 - o, period: c * 1.4, delay: 0, unit: "" },
1127
+ { prop: `--bx3-${a}`, a: -r * 0.6, b: r, period: i * 1.45, delay: 0, unit: "px" },
1128
+ { prop: `--by3-${a}`, a: -r * 0.85, b: r * 0.45, period: i * 1.45, delay: 0, unit: "px" },
1129
+ { prop: `--bgh-${a}`, a: 1 - s, b: 1 + s, period: p, delay: 0, unit: "" },
1130
+ { prop: `--bop-tl-${a}`, a: 1 - t, b: 1, period: i, delay: 0, unit: "" },
1131
+ { prop: `--bop-tr-${a}`, a: 1 - t, b: 1, period: i * 1.32, delay: i * 0.28, unit: "" },
1132
+ { prop: `--bop-bl-${a}`, a: 1 - t, b: 1, period: i * 0.84, delay: i * 0.55, unit: "" },
1133
+ { prop: `--bop-br-${a}`, a: 1 - t, b: 1, period: i * 1.58, delay: i * 0.83, unit: "" }
766
1134
  ];
767
1135
  }
768
- function ta(t, e, a, r, o, s) {
769
- if (t !== "pulse-inner" && t !== "pulse-outside") return null;
770
- const i = pe(t, e, a);
1136
+ function io(a, e, o, r, t, s) {
1137
+ if (a !== "pulse-inner" && a !== "pulse-outside") return null;
1138
+ const i = ge(a, e, o);
771
1139
  return {
772
- oscillators: ra(s, i),
1140
+ oscillators: so(s, i),
773
1141
  // Pulse colors continuously rotate a full hue circle so the palette is never
774
1142
  // pinned to fixed edges (no more "always red top-right / green left").
775
- hue: o ? null : { prop: `--beam-hue-${s}`, range: 360, period: i.huePeriod, continuous: !0 }
1143
+ hue: t ? null : { prop: `--beam-hue-${s}`, range: 360, period: i.huePeriod, continuous: !0 }
776
1144
  };
777
1145
  }
778
- function Q(t, e, a) {
779
- return ` animation: ${e}-${t} ${a}s ease forwards;`;
1146
+ function ee(a, e, o) {
1147
+ return ` animation: ${e}-${a} ${o}s ease forwards;`;
1148
+ }
1149
+ function R(a, e = 1) {
1150
+ return Math.max(0.5, Math.round(a * e * 100) / 100);
780
1151
  }
781
- function oa(t) {
782
- const { size: e } = t;
783
- return e === "line" ? ba(t) : e === "sm" ? sa(t) : e === "pulse-inner" ? na(t) : e === "pulse-outside" ? ca(t) : ia(t);
1152
+ function no(a) {
1153
+ const { size: e } = a;
1154
+ return e === "line" ? fo(a) : e === "sm" ? co(a) : e === "pulse-inner" ? po(a) : e === "pulse-outside" ? lo(a) : bo(a);
784
1155
  }
785
- function sa(t) {
1156
+ function co(a) {
786
1157
  const {
787
1158
  id: e,
788
- borderRadius: a,
1159
+ borderRadius: o,
789
1160
  borderWidth: r,
790
- duration: o,
1161
+ duration: t,
791
1162
  strokeOpacity: s,
792
1163
  innerOpacity: i,
793
1164
  bloomOpacity: c,
794
1165
  innerShadow: p,
795
1166
  colorVariant: b,
796
- staticColors: m,
1167
+ staticColors: g,
797
1168
  brightness: n,
798
1169
  saturation: l,
799
- hueRange: d,
800
- theme: k
801
- } = t, f = Math.max(0, a - r), g = b === "mono" ? 0.5 : 1, W = s * g, Y = i * g, z = c * g, H = m ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, $ = m ? "" : `
1170
+ hueRange: f,
1171
+ theme: W,
1172
+ glowSize: y = 1
1173
+ } = a, d = Math.max(0, o - r), m = b === "mono" ? 0.5 : 1, H = s * m, X = i * m, O = c * m, $ = g ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, Y = g ? "" : `
802
1174
  @keyframes beam-hue-shift-${e} {
803
- 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
804
- 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
805
- 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
806
- }`, w = k === "dark", y = w ? `conic-gradient(
1175
+ 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1176
+ 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1177
+ 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1178
+ }`, x = W === "dark", w = x ? `conic-gradient(
807
1179
  from var(--beam-angle-${e}),
808
1180
  transparent 0%, transparent 54%,
809
1181
  rgba(255, 255, 255, 0.1) 57%,
@@ -825,7 +1197,7 @@ function sa(t) {
825
1197
  rgba(0, 0, 0, 0.2) 72%,
826
1198
  rgba(0, 0, 0, 0.08) 75%,
827
1199
  transparent 78%, transparent 100%
828
- )`, x = Pe(b), X = Be(b), u = w ? `conic-gradient(
1200
+ )`, v = Ae(b), u = _e(b), k = x ? `conic-gradient(
829
1201
  from var(--beam-angle-${e}),
830
1202
  transparent 0%, transparent 58%,
831
1203
  rgba(255, 255, 255, 0.03) 62%,
@@ -853,7 +1225,7 @@ function sa(t) {
853
1225
  rgba(0, 0, 0, 0.08) 75%,
854
1226
  rgba(0, 0, 0, 0.02) 78%,
855
1227
  transparent 82%
856
- )`, v = `conic-gradient(
1228
+ )`, z = `conic-gradient(
857
1229
  from var(--beam-angle-${e}),
858
1230
  transparent 0%, transparent 22%,
859
1231
  rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.4) 36%,
@@ -876,19 +1248,19 @@ function sa(t) {
876
1248
 
877
1249
  [data-beam="${e}"] {
878
1250
  position: relative;
879
- border-radius: ${a}px;
1251
+ border-radius: ${o}px;
880
1252
  overflow: hidden;
881
1253
  }
882
1254
 
883
1255
  [data-beam="${e}"][data-active] {
884
1256
  animation:
885
- beam-spin-${e} ${o}s linear infinite,
1257
+ beam-spin-${e} ${t}s linear infinite,
886
1258
  beam-fade-in-${e} 0.6s ease forwards;
887
1259
  }
888
1260
 
889
1261
  [data-beam="${e}"][data-fading] {
890
1262
  animation:
891
- beam-spin-${e} ${o}s linear infinite,
1263
+ beam-spin-${e} ${t}s linear infinite,
892
1264
  beam-fade-out-${e} 0.5s ease forwards;
893
1265
  }
894
1266
 
@@ -897,10 +1269,10 @@ function sa(t) {
897
1269
  content: "";
898
1270
  position: absolute;
899
1271
  inset: 0;
900
- border-radius: ${f}px;
1272
+ border-radius: ${d}px;
901
1273
  padding: ${r}px;
902
- clip-path: inset(0 round ${a}px);
903
- background: ${y},${x};
1274
+ clip-path: inset(0 round ${o}px);
1275
+ background: ${w},${v};
904
1276
  -webkit-mask:
905
1277
  conic-gradient(
906
1278
  from var(--beam-angle-${e}),
@@ -927,8 +1299,8 @@ function sa(t) {
927
1299
  mask-composite: intersect, exclude;
928
1300
  pointer-events: none;
929
1301
  z-index: 2;
930
- opacity: calc(var(--beam-opacity-${e}) * ${W.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
931
- ${H}
1302
+ opacity: calc(var(--beam-opacity-${e}) * ${H.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1303
+ ${$}
932
1304
  }
933
1305
 
934
1306
  [data-beam="${e}"][data-active]::before,
@@ -936,33 +1308,33 @@ function sa(t) {
936
1308
  content: "";
937
1309
  position: absolute;
938
1310
  inset: 0;
939
- border-radius: ${a}px;
940
- clip-path: inset(0 round ${a}px);
941
- background: ${X};
1311
+ border-radius: ${o}px;
1312
+ clip-path: inset(0 round ${o}px);
1313
+ background: ${u};
942
1314
  box-shadow: inset 0 0 5px 1px ${p};
943
- -webkit-mask-image: ${v};
1315
+ -webkit-mask-image: ${z};
944
1316
  -webkit-mask-composite: source-over;
945
- mask-image: ${v};
1317
+ mask-image: ${z};
946
1318
  mask-composite: add;
947
1319
  pointer-events: none;
948
1320
  z-index: 1;
949
- opacity: calc(var(--beam-opacity-${e}) * ${Y.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
950
- ${H}
1321
+ opacity: calc(var(--beam-opacity-${e}) * ${X.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1322
+ ${$}
951
1323
  }
952
1324
 
953
1325
  [data-beam="${e}"] [data-beam-bloom] {
954
1326
  display: none;
955
1327
  position: absolute;
956
1328
  inset: 0;
957
- border-radius: ${f}px;
958
- clip-path: inset(0 round ${a}px);
959
- background: ${u};
1329
+ border-radius: ${d}px;
1330
+ clip-path: inset(0 round ${o}px);
1331
+ background: ${k};
960
1332
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
961
1333
  -webkit-mask-composite: xor;
962
1334
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
963
1335
  mask-composite: exclude;
964
1336
  padding: ${r}px;
965
- filter: blur(8px) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)});
1337
+ filter: blur(${R(8, y)}px) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)});
966
1338
  pointer-events: none;
967
1339
  z-index: 3;
968
1340
  opacity: 0;
@@ -971,7 +1343,7 @@ function sa(t) {
971
1343
  [data-beam="${e}"][data-active] [data-beam-bloom],
972
1344
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
973
1345
  display: block;
974
- opacity: calc(var(--beam-opacity-${e}) * ${z.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1346
+ opacity: calc(var(--beam-opacity-${e}) * ${O.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
975
1347
  }
976
1348
 
977
1349
  @keyframes beam-spin-${e} {
@@ -986,32 +1358,33 @@ function sa(t) {
986
1358
  from { --beam-opacity-${e}: 1; }
987
1359
  to { --beam-opacity-${e}: 0; }
988
1360
  }
989
- ${$}
990
- ${_(e)}
1361
+ ${Y}
1362
+ ${N(e)}
991
1363
  `;
992
1364
  }
993
- function ia(t) {
1365
+ function bo(a) {
994
1366
  const {
995
1367
  id: e,
996
- borderRadius: a,
1368
+ borderRadius: o,
997
1369
  borderWidth: r,
998
- duration: o,
1370
+ duration: t,
999
1371
  strokeOpacity: s,
1000
1372
  innerOpacity: i,
1001
1373
  bloomOpacity: c,
1002
1374
  innerShadow: p,
1003
1375
  colorVariant: b,
1004
- staticColors: m,
1376
+ staticColors: g,
1005
1377
  brightness: n,
1006
1378
  saturation: l,
1007
- hueRange: d,
1008
- theme: k
1009
- } = t, f = Math.max(0, a - r), g = b === "mono" ? 0.5 : 1, W = s * g, Y = i * g, z = c * g, H = m ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, $ = m ? "" : `
1379
+ hueRange: f,
1380
+ theme: W,
1381
+ glowSize: y = 1
1382
+ } = a, d = Math.max(0, o - r), m = b === "mono" ? 0.5 : 1, H = s * m, X = i * m, O = c * m, $ = g ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, Y = g ? "" : `
1010
1383
  @keyframes beam-hue-shift-${e} {
1011
- 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1012
- 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1013
- 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1014
- }`, w = k === "dark", y = w ? `conic-gradient(
1384
+ 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1385
+ 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1386
+ 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1387
+ }`, x = W === "dark", w = x ? `conic-gradient(
1015
1388
  from var(--beam-angle-${e}),
1016
1389
  transparent 0%, transparent 54%,
1017
1390
  rgba(255, 255, 255, 0.1) 57%,
@@ -1033,7 +1406,7 @@ function ia(t) {
1033
1406
  rgba(0, 0, 0, 0.2) 72%,
1034
1407
  rgba(0, 0, 0, 0.08) 75%,
1035
1408
  transparent 78%, transparent 100%
1036
- )`, x = Ee(b), X = Ae(b), u = w ? `conic-gradient(
1409
+ )`, v = je(b), u = Te(b), k = x ? `conic-gradient(
1037
1410
  from var(--beam-angle-${e}),
1038
1411
  transparent 0%, transparent 58%,
1039
1412
  rgba(255, 255, 255, 0.03) 62%,
@@ -1077,19 +1450,19 @@ function ia(t) {
1077
1450
 
1078
1451
  [data-beam="${e}"] {
1079
1452
  position: relative;
1080
- border-radius: ${a}px;
1453
+ border-radius: ${o}px;
1081
1454
  overflow: hidden;
1082
1455
  }
1083
1456
 
1084
1457
  [data-beam="${e}"][data-active] {
1085
1458
  animation:
1086
- beam-spin-${e} ${o}s linear infinite,
1459
+ beam-spin-${e} ${t}s linear infinite,
1087
1460
  beam-fade-in-${e} 0.6s ease forwards;
1088
1461
  }
1089
1462
 
1090
1463
  [data-beam="${e}"][data-fading] {
1091
1464
  animation:
1092
- beam-spin-${e} ${o}s linear infinite,
1465
+ beam-spin-${e} ${t}s linear infinite,
1093
1466
  beam-fade-out-${e} 0.5s ease forwards;
1094
1467
  }
1095
1468
 
@@ -1098,10 +1471,10 @@ function ia(t) {
1098
1471
  content: "";
1099
1472
  position: absolute;
1100
1473
  inset: 0;
1101
- border-radius: ${f}px;
1474
+ border-radius: ${d}px;
1102
1475
  padding: ${r}px;
1103
- clip-path: inset(0 round ${a}px);
1104
- background: ${y},${x};
1476
+ clip-path: inset(0 round ${o}px);
1477
+ background: ${w},${v};
1105
1478
  -webkit-mask:
1106
1479
  conic-gradient(
1107
1480
  from var(--beam-angle-${e}),
@@ -1128,8 +1501,8 @@ function ia(t) {
1128
1501
  mask-composite: intersect, exclude;
1129
1502
  pointer-events: none;
1130
1503
  z-index: 2;
1131
- opacity: calc(var(--beam-opacity-${e}) * ${W.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1132
- ${H}
1504
+ opacity: calc(var(--beam-opacity-${e}) * ${H.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1505
+ ${$}
1133
1506
  }
1134
1507
 
1135
1508
  [data-beam="${e}"][data-active]::before,
@@ -1137,8 +1510,8 @@ function ia(t) {
1137
1510
  content: "";
1138
1511
  position: absolute;
1139
1512
  inset: 0;
1140
- border-radius: ${a}px;
1141
- background: ${X};
1513
+ border-radius: ${o}px;
1514
+ background: ${u};
1142
1515
  box-shadow: inset 0 0 9px 1px ${p};
1143
1516
  -webkit-mask-image:
1144
1517
  conic-gradient(
@@ -1166,24 +1539,24 @@ function ia(t) {
1166
1539
  mask-composite: intersect, add;
1167
1540
  pointer-events: none;
1168
1541
  z-index: 1;
1169
- opacity: calc(var(--beam-opacity-${e}) * ${Y.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1170
- clip-path: inset(0 round ${a}px);
1171
- ${H}
1542
+ opacity: calc(var(--beam-opacity-${e}) * ${X.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1543
+ clip-path: inset(0 round ${o}px);
1544
+ ${$}
1172
1545
  }
1173
1546
 
1174
1547
  [data-beam="${e}"] [data-beam-bloom] {
1175
1548
  display: none;
1176
1549
  position: absolute;
1177
1550
  inset: 0;
1178
- border-radius: ${f}px;
1179
- clip-path: inset(0 round ${a}px);
1180
- background: ${u};
1551
+ border-radius: ${d}px;
1552
+ clip-path: inset(0 round ${o}px);
1553
+ background: ${k};
1181
1554
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1182
1555
  -webkit-mask-composite: xor;
1183
1556
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1184
1557
  mask-composite: exclude;
1185
1558
  padding: ${r}px;
1186
- filter: blur(8px) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)});
1559
+ filter: blur(${R(8, y)}px) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)});
1187
1560
  pointer-events: none;
1188
1561
  z-index: 3;
1189
1562
  opacity: 0;
@@ -1192,7 +1565,7 @@ function ia(t) {
1192
1565
  [data-beam="${e}"][data-active] [data-beam-bloom],
1193
1566
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
1194
1567
  display: block;
1195
- opacity: calc(var(--beam-opacity-${e}) * ${z.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1568
+ opacity: calc(var(--beam-opacity-${e}) * ${O.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1196
1569
  }
1197
1570
 
1198
1571
  @keyframes beam-spin-${e} {
@@ -1207,42 +1580,43 @@ function ia(t) {
1207
1580
  from { --beam-opacity-${e}: 1; }
1208
1581
  to { --beam-opacity-${e}: 0; }
1209
1582
  }
1210
- ${$}
1211
- ${_(e)}
1583
+ ${Y}
1584
+ ${N(e)}
1212
1585
  `;
1213
1586
  }
1214
- function na(t) {
1587
+ function po(a) {
1215
1588
  const {
1216
1589
  id: e,
1217
- borderRadius: a,
1590
+ borderRadius: o,
1218
1591
  borderWidth: r,
1219
- duration: o,
1592
+ duration: t,
1220
1593
  strokeOpacity: s,
1221
1594
  innerOpacity: i,
1222
1595
  bloomOpacity: c,
1223
1596
  colorVariant: p,
1224
1597
  staticColors: b,
1225
- brightness: m,
1598
+ brightness: g,
1226
1599
  saturation: n,
1227
1600
  hueRange: l,
1228
- theme: d
1229
- } = t, k = d === "dark", f = p === "mono" ? 0.5 : 1, g = (s * f).toFixed(2), W = (i * f).toFixed(2), Y = (c * f).toFixed(2), { op: z } = pe("pulse-inner", d, o), H = 8, $ = m.toFixed(2), w = n.toFixed(2), y = b ? `filter: brightness(${$}) saturate(${w});` : `filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${$}) saturate(${w});`, x = b ? `filter: blur(${H}px) brightness(${$}) saturate(${w});` : `filter: blur(${H}px) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${$}) saturate(${w});`, X = ea(p, e), u = aa(p, e, k), v = Ye(Qe, p, 1 - z * 0.5);
1601
+ theme: f,
1602
+ glowSize: W = 1
1603
+ } = a, y = f === "dark", d = p === "mono" ? 0.5 : 1, m = (s * d).toFixed(2), H = (i * d).toFixed(2), X = (c * d).toFixed(2), { op: O } = ge("pulse-inner", f, t), $ = R(8, W), Y = g.toFixed(2), x = n.toFixed(2), w = b ? `filter: brightness(${Y}) saturate(${x});` : `filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${Y}) saturate(${x});`, v = b ? `filter: blur(${$}px) brightness(${Y}) saturate(${x});` : `filter: blur(${$}px) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${Y}) saturate(${x});`, u = ao(p, e), k = to(p, e, y), z = Re(eo, p, 1 - O * 0.5);
1230
1604
  return `
1231
- ${Oe(e)}
1605
+ ${Me(e)}
1232
1606
 
1233
1607
  [data-beam="${e}"] {
1234
1608
  position: relative;
1235
- border-radius: ${a}px;
1609
+ border-radius: ${o}px;
1236
1610
  overflow: hidden;
1237
1611
  isolation: isolate;
1238
1612
  }
1239
1613
 
1240
1614
  [data-beam="${e}"][data-active] {
1241
- ${Q(e, "beam-fade-in", 0.6)}
1615
+ ${ee(e, "beam-fade-in", 0.6)}
1242
1616
  }
1243
1617
 
1244
1618
  [data-beam="${e}"][data-fading] {
1245
- ${Q(e, "beam-fade-out", 0.5)}
1619
+ ${ee(e, "beam-fade-out", 0.5)}
1246
1620
  }
1247
1621
 
1248
1622
  [data-beam="${e}"][data-active]::after,
@@ -1250,10 +1624,10 @@ ${Q(e, "beam-fade-out", 0.5)}
1250
1624
  content: "";
1251
1625
  position: absolute;
1252
1626
  inset: 0;
1253
- border-radius: ${a}px;
1627
+ border-radius: ${o}px;
1254
1628
  padding: ${r}px;
1255
- clip-path: inset(0 round ${a}px);
1256
- background: ${X};
1629
+ clip-path: inset(0 round ${o}px);
1630
+ background: ${u};
1257
1631
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1258
1632
  -webkit-mask-composite: xor;
1259
1633
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
@@ -1261,8 +1635,8 @@ ${Q(e, "beam-fade-out", 0.5)}
1261
1635
  pointer-events: none;
1262
1636
  z-index: 2;
1263
1637
  will-change: opacity, filter;
1264
- opacity: calc(var(--beam-opacity-${e}) * ${g} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1265
- ${y}
1638
+ opacity: calc(var(--beam-opacity-${e}) * ${m} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1639
+ ${w}
1266
1640
  }
1267
1641
 
1268
1642
  [data-beam="${e}"][data-active]::before,
@@ -1270,9 +1644,9 @@ ${Q(e, "beam-fade-out", 0.5)}
1270
1644
  content: "";
1271
1645
  position: absolute;
1272
1646
  inset: 0;
1273
- border-radius: ${a}px;
1274
- clip-path: inset(0 round ${a}px);
1275
- background: ${u};
1647
+ border-radius: ${o}px;
1648
+ clip-path: inset(0 round ${o}px);
1649
+ background: ${k};
1276
1650
  -webkit-mask-image:
1277
1651
  linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
1278
1652
  linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
@@ -1284,17 +1658,17 @@ ${Q(e, "beam-fade-out", 0.5)}
1284
1658
  pointer-events: none;
1285
1659
  z-index: 1;
1286
1660
  will-change: opacity, filter;
1287
- opacity: calc(var(--beam-opacity-${e}) * ${W} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1288
- ${y}
1661
+ opacity: calc(var(--beam-opacity-${e}) * ${H} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1662
+ ${w}
1289
1663
  }
1290
1664
 
1291
1665
  [data-beam="${e}"] [data-beam-bloom] {
1292
1666
  display: none;
1293
1667
  position: absolute;
1294
1668
  inset: 0;
1295
- border-radius: ${a}px;
1296
- clip-path: inset(0 round ${a}px);
1297
- background: ${v};
1669
+ border-radius: ${o}px;
1670
+ clip-path: inset(0 round ${o}px);
1671
+ background: ${z};
1298
1672
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1299
1673
  -webkit-mask-composite: xor;
1300
1674
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
@@ -1309,13 +1683,13 @@ ${Q(e, "beam-fade-out", 0.5)}
1309
1683
  [data-beam="${e}"][data-active] [data-beam-bloom],
1310
1684
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
1311
1685
  display: block;
1312
- opacity: calc(var(--beam-opacity-${e}) * ${Y} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1313
- ${x}
1686
+ opacity: calc(var(--beam-opacity-${e}) * ${X} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1687
+ ${v}
1314
1688
  }
1315
1689
 
1316
1690
  @keyframes beam-fade-in-${e} { to { --beam-opacity-${e}: 1; } }
1317
1691
  @keyframes beam-fade-out-${e} { from { --beam-opacity-${e}: 1; } to { --beam-opacity-${e}: 0; } }
1318
- ${_(e)}
1692
+ ${N(e)}
1319
1693
 
1320
1694
  @media (prefers-reduced-motion: reduce) {
1321
1695
  [data-beam="${e}"][data-active],
@@ -1331,51 +1705,52 @@ ${_(e)}
1331
1705
  }
1332
1706
  `;
1333
1707
  }
1334
- function ca(t) {
1708
+ function lo(a) {
1335
1709
  const {
1336
1710
  id: e,
1337
- borderRadius: a,
1711
+ borderRadius: o,
1338
1712
  duration: r,
1339
- strokeOpacity: o,
1713
+ strokeOpacity: t,
1340
1714
  innerOpacity: s,
1341
1715
  bloomOpacity: i,
1342
1716
  colorVariant: c,
1343
1717
  staticColors: p,
1344
1718
  brightness: b,
1345
- saturation: m,
1719
+ saturation: g,
1346
1720
  hueRange: n,
1347
1721
  theme: l,
1348
- hairlineOpacity: d = 0
1349
- } = t, k = l === "dark", f = c === "mono" ? 0.5 : 1, g = (o * f).toFixed(2), W = (s * f).toFixed(2), Y = (i * f).toFixed(2), z = k ? "70, 70, 70" : "0, 0, 0", H = d.toFixed(2), $ = `linear-gradient(rgba(${z}, ${H}), rgba(${z}, ${H}))`, { op: w } = pe("pulse-outside", l, r), y = 0.95, x = 0.9, X = k ? 3 : 6, u = k ? 22.5 : 15, v = b.toFixed(2), S = m.toFixed(2), J = p ? `filter: brightness(${v}) saturate(${S});` : `filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${v}) saturate(${S});`, G = `brightness(var(--beam-glow-brightness, ${v})) saturate(var(--beam-glow-saturate, ${S}))`, ee = p ? `filter: blur(var(--beam-core-blur, ${X}px)) ${G};` : `filter: blur(var(--beam-core-blur, ${X}px)) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) ${G};`, j = p ? `filter: blur(var(--beam-bloom-blur, ${u}px)) ${G};` : `filter: blur(var(--beam-bloom-blur, ${u}px)) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) ${G};`, A = we(ke, c, e), ae = we(ke, c, e), R = Ye(Ze, c, 1 - w * 0.5), O = d > 0 ? `${A},
1350
- ${$}` : A;
1722
+ hairlineOpacity: f = 0,
1723
+ glowSize: W = 1
1724
+ } = a, y = l === "dark", d = c === "mono" ? 0.5 : 1, m = (t * d).toFixed(2), H = (s * d).toFixed(2), X = (i * d).toFixed(2), O = y ? "70, 70, 70" : "0, 0, 0", $ = f.toFixed(2), Y = `linear-gradient(rgba(${O}, ${$}), rgba(${O}, ${$}))`, { op: x } = ge("pulse-outside", l, r), w = 0.95, v = 0.9, u = R(y ? 3 : 6, W), k = R(y ? 22.5 : 15, W), z = b.toFixed(2), C = g.toFixed(2), j = p ? `filter: brightness(${z}) saturate(${C});` : `filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${z}) saturate(${C});`, I = `brightness(var(--beam-glow-brightness, ${z})) saturate(var(--beam-glow-saturate, ${C}))`, re = p ? `filter: blur(var(--beam-core-blur, ${u}px)) ${I};` : `filter: blur(var(--beam-core-blur, ${u}px)) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) ${I};`, ae = p ? `filter: blur(var(--beam-bloom-blur, ${k}px)) ${I};` : `filter: blur(var(--beam-bloom-blur, ${k}px)) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) ${I};`, T = we(Ye, c, e), V = we(Ye, c, e), te = Re(oo, c, 1 - x * 0.5), M = f > 0 ? `${T},
1725
+ ${Y}` : T;
1351
1726
  return `
1352
- ${Oe(e)}
1727
+ ${Me(e)}
1353
1728
 
1354
1729
  [data-beam="${e}"] {
1355
1730
  position: relative;
1356
- border-radius: ${a}px;
1731
+ border-radius: ${o}px;
1357
1732
  overflow: visible;
1358
1733
  isolation: isolate;
1359
1734
  }
1360
1735
 
1361
1736
  [data-beam="${e}"][data-active] {
1362
- ${Q(e, "beam-fade-in", 0.6)}
1737
+ ${ee(e, "beam-fade-in", 0.6)}
1363
1738
  }
1364
1739
 
1365
1740
  [data-beam="${e}"][data-fading] {
1366
- ${Q(e, "beam-fade-out", 0.5)}
1741
+ ${ee(e, "beam-fade-out", 0.5)}
1367
1742
  }
1368
- ${d > 0 ? `
1743
+ ${f > 0 ? `
1369
1744
  /* Idle hairline — painted above the (opaque) child in the inner 1px edge ring so
1370
1745
  it overlaps a standard inset component border exactly. */
1371
1746
  [data-beam="${e}"]::after {
1372
1747
  content: "";
1373
1748
  position: absolute;
1374
1749
  inset: 0;
1375
- border-radius: ${a}px;
1750
+ border-radius: ${o}px;
1376
1751
  padding: 1px;
1377
- clip-path: inset(0 round ${a}px);
1378
- background: ${$};
1752
+ clip-path: inset(0 round ${o}px);
1753
+ background: ${Y};
1379
1754
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1380
1755
  -webkit-mask-composite: xor;
1381
1756
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
@@ -1389,10 +1764,10 @@ ${d > 0 ? `
1389
1764
  content: "";
1390
1765
  position: absolute;
1391
1766
  inset: 0;
1392
- border-radius: ${a}px;
1767
+ border-radius: ${o}px;
1393
1768
  padding: 1px;
1394
- clip-path: inset(0 round ${a}px);
1395
- background: ${O};
1769
+ clip-path: inset(0 round ${o}px);
1770
+ background: ${M};
1396
1771
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1397
1772
  -webkit-mask-composite: xor;
1398
1773
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
@@ -1400,8 +1775,8 @@ ${d > 0 ? `
1400
1775
  pointer-events: none;
1401
1776
  z-index: 2;
1402
1777
  will-change: opacity, filter;
1403
- opacity: calc(var(--beam-opacity-${e}) * ${g} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1404
- ${J}
1778
+ opacity: calc(var(--beam-opacity-${e}) * ${m} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1779
+ ${j}
1405
1780
  }
1406
1781
 
1407
1782
  [data-beam="${e}"][data-active]::before,
@@ -1410,13 +1785,13 @@ ${d > 0 ? `
1410
1785
  position: absolute;
1411
1786
  inset: -10px;
1412
1787
  z-index: -1;
1413
- border-radius: ${a + 10}px;
1414
- background: ${ae};
1415
- transform: scale(${y}, ${x});
1788
+ border-radius: ${o + 10}px;
1789
+ background: ${V};
1790
+ transform: scale(${w}, ${v});
1416
1791
  pointer-events: none;
1417
1792
  will-change: opacity, filter;
1418
- opacity: calc(var(--beam-opacity-${e}) * ${W} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1419
- ${ee}
1793
+ opacity: calc(var(--beam-opacity-${e}) * ${H} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1794
+ ${re}
1420
1795
  }
1421
1796
 
1422
1797
  [data-beam="${e}"] [data-beam-bloom] {
@@ -1424,9 +1799,9 @@ ${d > 0 ? `
1424
1799
  position: absolute;
1425
1800
  inset: -30px;
1426
1801
  z-index: -1;
1427
- border-radius: ${a + 30}px;
1428
- background: ${R};
1429
- transform: scale(${y}, ${x});
1802
+ border-radius: ${o + 30}px;
1803
+ background: ${te};
1804
+ transform: scale(${w}, ${v});
1430
1805
  pointer-events: none;
1431
1806
  will-change: transform;
1432
1807
  opacity: 0;
@@ -1435,13 +1810,13 @@ ${d > 0 ? `
1435
1810
  [data-beam="${e}"][data-active] [data-beam-bloom],
1436
1811
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
1437
1812
  display: block;
1438
- opacity: calc(var(--beam-opacity-${e}) * ${Y} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1439
- ${j}
1813
+ opacity: calc(var(--beam-opacity-${e}) * ${X} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1814
+ ${ae}
1440
1815
  }
1441
1816
 
1442
1817
  @keyframes beam-fade-in-${e} { to { --beam-opacity-${e}: 1; } }
1443
1818
  @keyframes beam-fade-out-${e} { from { --beam-opacity-${e}: 1; } to { --beam-opacity-${e}: 0; } }
1444
- ${_(e)}
1819
+ ${N(e)}
1445
1820
 
1446
1821
  @media (prefers-reduced-motion: reduce) {
1447
1822
  [data-beam="${e}"][data-active],
@@ -1457,34 +1832,35 @@ ${_(e)}
1457
1832
  }
1458
1833
  `;
1459
1834
  }
1460
- function ba(t) {
1835
+ function fo(a) {
1461
1836
  const {
1462
1837
  id: e,
1463
- borderRadius: a,
1838
+ borderRadius: o,
1464
1839
  borderWidth: r,
1465
- duration: o,
1840
+ duration: t,
1466
1841
  strokeOpacity: s,
1467
1842
  innerOpacity: i,
1468
1843
  bloomOpacity: c,
1469
1844
  innerShadow: p,
1470
1845
  colorVariant: b,
1471
- staticColors: m,
1846
+ staticColors: g,
1472
1847
  brightness: n,
1473
1848
  saturation: l,
1474
- hueRange: d,
1475
- theme: k
1476
- } = t, f = Math.max(0, a - r), g = k === "dark", W = s, Y = i, z = c, H = m ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, $ = m ? "" : `animation: beam-hue-shift-bloom-${e} 8s ease-in-out infinite;`, w = m ? "" : `
1849
+ hueRange: f,
1850
+ theme: W,
1851
+ glowSize: y = 1
1852
+ } = a, d = Math.max(0, o - r), m = W === "dark", H = s, X = i, O = c, $ = g ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, Y = g ? "" : `animation: beam-hue-shift-bloom-${e} 8s ease-in-out infinite;`, x = g ? "" : `
1477
1853
  @keyframes beam-hue-shift-${e} {
1478
- 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1479
- 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1480
- 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1854
+ 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1855
+ 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1856
+ 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1481
1857
  }
1482
1858
 
1483
1859
  @keyframes beam-hue-shift-bloom-${e} {
1484
- 0% { filter: blur(8px) hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d + 10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1485
- 50% { filter: blur(8px) hue-rotate(calc(var(--beam-hue-base, 0deg) + ${d + 10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1486
- 100% { filter: blur(8px) hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d + 10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1487
- }`, y = g ? `radial-gradient(
1860
+ 0% { filter: blur(${R(8, y)}px) hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f + 10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1861
+ 50% { filter: blur(${R(8, y)}px) hue-rotate(calc(var(--beam-hue-base, 0deg) + ${f + 10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1862
+ 100% { filter: blur(${R(8, y)}px) hue-rotate(calc(var(--beam-hue-base, 0deg) - ${f + 10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1863
+ }`, w = m ? `radial-gradient(
1488
1864
  ellipse calc(24px * var(--beam-w-${e})) calc(28px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) calc(100% + 2px),
1489
1865
  rgba(255, 255, 255, 0.38) 0%,
1490
1866
  rgba(255, 255, 255, 0.12) 30%,
@@ -1494,7 +1870,7 @@ function ba(t) {
1494
1870
  rgba(0, 0, 0, 0.6) 0%,
1495
1871
  rgba(0, 0, 0, 0.25) 35%,
1496
1872
  transparent 70%
1497
- )`, x = Te(b, g, e), X = Ve(b, e), u = Ue(b, g, e), v = b === "mono" ? "filter: blur(6px);" : "";
1873
+ )`, v = De(b, m, e), u = Ke(b, e), k = Ze(b, m, e), z = b === "mono" ? "filter: blur(6px);" : "";
1498
1874
  return `
1499
1875
  @property --beam-x-${e} {
1500
1876
  syntax: "<number>";
@@ -1540,27 +1916,27 @@ function ba(t) {
1540
1916
 
1541
1917
  [data-beam="${e}"] {
1542
1918
  position: relative;
1543
- border-radius: ${a}px;
1919
+ border-radius: ${o}px;
1544
1920
  overflow: hidden;
1545
1921
  }
1546
1922
 
1547
1923
  [data-beam="${e}"][data-active] {
1548
1924
  animation:
1549
- beam-travel-${e} ${o}s linear infinite,
1550
- beam-edge-fade-${e} ${o}s linear infinite,
1551
- beam-breathe-${e} ${(o * 1.3).toFixed(1)}s ease-in-out infinite,
1552
- beam-spike-${e} ${(o * 1.33).toFixed(1)}s ease-in-out infinite,
1553
- beam-spike2-${e} ${(o * 1.7).toFixed(1)}s ease-in-out infinite,
1925
+ beam-travel-${e} ${t}s linear infinite,
1926
+ beam-edge-fade-${e} ${t}s linear infinite,
1927
+ beam-breathe-${e} ${(t * 1.3).toFixed(1)}s ease-in-out infinite,
1928
+ beam-spike-${e} ${(t * 1.33).toFixed(1)}s ease-in-out infinite,
1929
+ beam-spike2-${e} ${(t * 1.7).toFixed(1)}s ease-in-out infinite,
1554
1930
  beam-fade-in-${e} 0.6s ease forwards;
1555
1931
  }
1556
1932
 
1557
1933
  [data-beam="${e}"][data-fading] {
1558
1934
  animation:
1559
- beam-travel-${e} ${o}s linear infinite,
1560
- beam-edge-fade-${e} ${o}s linear infinite,
1561
- beam-breathe-${e} ${(o * 1.3).toFixed(1)}s ease-in-out infinite,
1562
- beam-spike-${e} ${(o * 1.33).toFixed(1)}s ease-in-out infinite,
1563
- beam-spike2-${e} ${(o * 1.7).toFixed(1)}s ease-in-out infinite,
1935
+ beam-travel-${e} ${t}s linear infinite,
1936
+ beam-edge-fade-${e} ${t}s linear infinite,
1937
+ beam-breathe-${e} ${(t * 1.3).toFixed(1)}s ease-in-out infinite,
1938
+ beam-spike-${e} ${(t * 1.33).toFixed(1)}s ease-in-out infinite,
1939
+ beam-spike2-${e} ${(t * 1.7).toFixed(1)}s ease-in-out infinite,
1564
1940
  beam-fade-out-${e} 0.5s ease forwards;
1565
1941
  }
1566
1942
 
@@ -1569,10 +1945,10 @@ function ba(t) {
1569
1945
  content: "";
1570
1946
  position: absolute;
1571
1947
  inset: 0;
1572
- border-radius: ${f}px;
1948
+ border-radius: ${d}px;
1573
1949
  padding: ${r}px;
1574
- clip-path: inset(0 round ${a}px);
1575
- background: ${y}, ${x};
1950
+ clip-path: inset(0 round ${o}px);
1951
+ background: ${w}, ${v};
1576
1952
  -webkit-mask:
1577
1953
  radial-gradient(
1578
1954
  ellipse calc(78px * var(--beam-w-${e})) calc(60px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
@@ -1591,8 +1967,8 @@ function ba(t) {
1591
1967
  mask-composite: intersect, exclude;
1592
1968
  pointer-events: none;
1593
1969
  z-index: 2;
1594
- opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${W.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1595
- ${H}
1970
+ opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${H.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1971
+ ${$}
1596
1972
  }
1597
1973
 
1598
1974
  [data-beam="${e}"][data-active]::before,
@@ -1600,8 +1976,8 @@ function ba(t) {
1600
1976
  content: "";
1601
1977
  position: absolute;
1602
1978
  inset: 0;
1603
- border-radius: ${a}px;
1604
- background: ${X};
1979
+ border-radius: ${o}px;
1980
+ background: ${u};
1605
1981
  box-shadow: inset 0 0 9px 1px ${p};
1606
1982
  -webkit-mask-image:
1607
1983
  radial-gradient(
@@ -1621,17 +1997,17 @@ function ba(t) {
1621
1997
  mask-composite: intersect, add;
1622
1998
  pointer-events: none;
1623
1999
  z-index: 1;
1624
- opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${Y.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1625
- clip-path: inset(0 round ${a}px);
1626
- ${H}
2000
+ opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${X.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
2001
+ clip-path: inset(0 round ${o}px);
2002
+ ${$}
1627
2003
  }
1628
2004
 
1629
2005
  [data-beam="${e}"] [data-beam-bloom] {
1630
2006
  display: none;
1631
2007
  position: absolute;
1632
2008
  inset: 0;
1633
- border-radius: ${f}px;
1634
- clip-path: inset(0 round ${a}px);
2009
+ border-radius: ${d}px;
2010
+ clip-path: inset(0 round ${o}px);
1635
2011
  padding: 0;
1636
2012
  -webkit-mask: radial-gradient(
1637
2013
  ellipse calc(84px * var(--beam-w-${e})) calc(110px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
@@ -1643,8 +2019,8 @@ function ba(t) {
1643
2019
  white 0%, rgba(255, 255, 255, 0.5) 35%, transparent 100%
1644
2020
  );
1645
2021
  mask-composite: add;
1646
- background: ${u};
1647
- ${v}
2022
+ background: ${k};
2023
+ ${z}
1648
2024
  pointer-events: none;
1649
2025
  z-index: 3;
1650
2026
  opacity: 0;
@@ -1653,8 +2029,8 @@ function ba(t) {
1653
2029
  [data-beam="${e}"][data-active] [data-beam-bloom],
1654
2030
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
1655
2031
  display: block;
1656
- opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${z.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1657
- ${$}
2032
+ opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${O.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
2033
+ ${Y}
1658
2034
  }
1659
2035
 
1660
2036
  @keyframes beam-travel-${e} {
@@ -1711,209 +2087,214 @@ function ba(t) {
1711
2087
  from { --beam-opacity-${e}: 1; }
1712
2088
  to { --beam-opacity-${e}: 0; }
1713
2089
  }
1714
- ${w}
1715
- ${_(e)}
2090
+ ${x}
2091
+ ${N(e)}
1716
2092
  `;
1717
2093
  }
1718
- const Z = /* @__PURE__ */ new Set();
1719
- let E = null, ce = 0;
1720
- const pa = 1e3 / 30 - 2, la = Math.PI * 2;
1721
- function We(t) {
1722
- return (1 - Math.cos(la * t)) / 2;
1723
- }
1724
- function Fe(t) {
1725
- if (E = requestAnimationFrame(Fe), t - ce < pa) return;
1726
- ce = t;
1727
- const e = t / 1e3;
1728
- Z.forEach(({ el: a, config: r }) => {
1729
- for (const o of r.oscillators) {
1730
- const s = (e - o.delay) / o.period, i = o.a + (o.b - o.a) * We(s);
1731
- a.style.setProperty(
1732
- o.prop,
1733
- o.unit === "px" ? `${i.toFixed(2)}px` : i.toFixed(4)
2094
+ const oe = /* @__PURE__ */ new Set();
2095
+ let _ = null, le = 0;
2096
+ const go = 1e3 / 30 - 2, mo = Math.PI * 2;
2097
+ function Oe(a) {
2098
+ return (1 - Math.cos(mo * a)) / 2;
2099
+ }
2100
+ function qe(a) {
2101
+ if (_ = requestAnimationFrame(qe), a - le < go) return;
2102
+ le = a;
2103
+ const e = a / 1e3;
2104
+ oe.forEach(({ el: o, config: r }) => {
2105
+ for (const t of r.oscillators) {
2106
+ const s = (e - t.delay) / t.period, i = t.a + (t.b - t.a) * Oe(s);
2107
+ o.style.setProperty(
2108
+ t.prop,
2109
+ t.unit === "px" ? `${i.toFixed(2)}px` : i.toFixed(4)
1734
2110
  );
1735
2111
  }
1736
2112
  if (r.hue) {
1737
- const { prop: o, range: s, period: i, continuous: c } = r.hue, p = c ? e / i % 1 * s : -s + 2 * s * We(e / i);
1738
- a.style.setProperty(o, `${p.toFixed(2)}deg`);
2113
+ const { prop: t, range: s, period: i, continuous: c } = r.hue, p = c ? e / i % 1 * s : -s + 2 * s * Oe(e / i);
2114
+ o.style.setProperty(t, `${p.toFixed(2)}deg`);
1739
2115
  }
1740
2116
  });
1741
2117
  }
1742
- function da() {
1743
- E == null && (ce = 0, E = requestAnimationFrame(Fe));
2118
+ function xo() {
2119
+ _ == null && (le = 0, _ = requestAnimationFrame(qe));
1744
2120
  }
1745
- function fa() {
1746
- Z.size === 0 && E != null && (cancelAnimationFrame(E), E = null);
2121
+ function $o() {
2122
+ oe.size === 0 && _ != null && (cancelAnimationFrame(_), _ = null);
1747
2123
  }
1748
- function ga(t, e) {
1749
- const a = { el: t, config: e };
1750
- return Z.add(a), da(), () => {
1751
- Z.delete(a), fa();
2124
+ function zo(a, e) {
2125
+ const o = { el: a, config: e };
2126
+ return oe.add(o), xo(), () => {
2127
+ oe.delete(o), $o();
1752
2128
  };
1753
2129
  }
1754
- function ma() {
1755
- const [t, e] = P(() => typeof window > "u" || window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
1756
- return B(() => {
2130
+ function uo() {
2131
+ const [a, e] = E(() => typeof window > "u" || window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
2132
+ return A(() => {
1757
2133
  if (typeof window > "u") return;
1758
- const a = window.matchMedia("(prefers-color-scheme: dark)"), r = (o) => {
1759
- e(o.matches ? "dark" : "light");
2134
+ const o = window.matchMedia("(prefers-color-scheme: dark)"), r = (t) => {
2135
+ e(t.matches ? "dark" : "light");
1760
2136
  };
1761
- return a.addEventListener("change", r), () => a.removeEventListener("change", r);
1762
- }, []), t;
2137
+ return o.addEventListener("change", r), () => o.removeEventListener("change", r);
2138
+ }, []), a;
1763
2139
  }
1764
- function $a(t, e) {
1765
- return t === "auto" ? e : t;
2140
+ function ho(a, e) {
2141
+ return a === "auto" ? e : a;
1766
2142
  }
1767
- const za = Ge(
2143
+ const Wo = Le(
1768
2144
  function({
1769
2145
  children: e,
1770
- size: a = "md",
2146
+ size: o = "md",
1771
2147
  colorVariant: r = "colorful",
1772
- theme: o = "dark",
2148
+ theme: t = "dark",
1773
2149
  staticColors: s = !1,
1774
2150
  duration: i,
1775
2151
  active: c = !0,
1776
2152
  borderRadius: p,
1777
2153
  brightness: b,
1778
- saturation: m,
2154
+ saturation: g,
1779
2155
  hueRange: n = 30,
1780
- strength: l = 1,
1781
- className: d,
1782
- style: k,
1783
- onActivate: f,
1784
- onDeactivate: g,
1785
- onAnimationEnd: W,
1786
- ...Y
1787
- }, z) {
1788
- const $ = Me().replace(/:/g, "-"), w = ma(), y = Ie(null), [x, X] = P(c), [u, v] = P(!1), [S, J] = P(!0), [G, ee] = P(null), [j, A] = P({ x: 1, y: 1 });
1789
- B(() => {
2156
+ glowSize: l = 1,
2157
+ strength: f = 1,
2158
+ className: W,
2159
+ style: y,
2160
+ css: d,
2161
+ onActivate: m,
2162
+ onDeactivate: H,
2163
+ onAnimationEnd: X,
2164
+ ...O
2165
+ }, $) {
2166
+ const x = Be().replace(/:/g, "-"), w = uo(), v = Pe(null), [u, k] = E(c), [z, C] = E(!1), [j, I] = E(!0), [re, ae] = E(null), [T, V] = E({ x: 1, y: 1 });
2167
+ A(() => {
1790
2168
  if (p != null) return;
1791
- const h = y.current;
2169
+ const h = v.current;
1792
2170
  if (!h) return;
1793
- const F = () => {
1794
- const I = h.firstElementChild;
1795
- if (!I) return;
1796
- const se = getComputedStyle(I), L = parseFloat(se.borderTopLeftRadius);
1797
- !isNaN(L) && L > 0 && ee(L);
2171
+ const S = () => {
2172
+ const B = h.firstElementChild;
2173
+ if (!B) return;
2174
+ const ce = getComputedStyle(B), P = parseFloat(ce.borderTopLeftRadius);
2175
+ !isNaN(P) && P > 0 && ae(P);
1798
2176
  };
1799
- F();
1800
- const M = new MutationObserver(F);
1801
- return M.observe(h, { childList: !0, subtree: !1 }), () => M.disconnect();
1802
- }, [p, e]), B(() => {
1803
- c && !x && !u ? X(!0) : !c && x && !u && v(!0);
1804
- }, [c, x, u]), B(() => {
1805
- const h = y.current;
2177
+ S();
2178
+ const L = new MutationObserver(S);
2179
+ return L.observe(h, { childList: !0, subtree: !1 }), () => L.disconnect();
2180
+ }, [p, e]), A(() => {
2181
+ c && !u && !z ? k(!0) : !c && u && !z && C(!0);
2182
+ }, [c, u, z]), A(() => {
2183
+ const h = v.current;
1806
2184
  if (!h || typeof IntersectionObserver > "u") return;
1807
- const F = new IntersectionObserver(
1808
- (M) => {
1809
- for (const I of M) J(I.isIntersecting);
2185
+ const S = new IntersectionObserver(
2186
+ (L) => {
2187
+ for (const B of L) I(B.isIntersecting);
1810
2188
  },
1811
2189
  // Start animating slightly before the element scrolls into view.
1812
2190
  { rootMargin: "256px" }
1813
2191
  );
1814
- return F.observe(h), () => F.disconnect();
1815
- }, []), B(() => {
1816
- if (a !== "pulse-outside") {
1817
- A({ x: 1, y: 1 });
2192
+ return S.observe(h), () => S.disconnect();
2193
+ }, []), A(() => {
2194
+ if (o !== "pulse-outside") {
2195
+ V({ x: 1, y: 1 });
1818
2196
  return;
1819
2197
  }
1820
- const h = y.current;
2198
+ const h = v.current;
1821
2199
  if (!h) return;
1822
- const F = 350, M = 140, I = 0.35, se = 4, L = (D) => Math.max(I, Math.min(se, D)), ge = () => {
1823
- const D = h.firstElementChild;
1824
- if (!D) return;
1825
- const U = D.getBoundingClientRect();
1826
- if (!U.width || !U.height) return;
1827
- const ue = +L(U.width / F).toFixed(3), xe = +L(U.height / M).toFixed(3);
1828
- A((ie) => ie.x === ue && ie.y === xe ? ie : { x: ue, y: xe });
2200
+ const S = 350, L = 140, B = 0.35, ce = 4, P = (Q) => Math.max(B, Math.min(ce, Q)), ze = () => {
2201
+ const Q = h.firstElementChild;
2202
+ if (!Q) return;
2203
+ const Z = Q.getBoundingClientRect();
2204
+ if (!Z.width || !Z.height) return;
2205
+ const ye = +P(Z.width / S).toFixed(3), ke = +P(Z.height / L).toFixed(3);
2206
+ V((be) => be.x === ye && be.y === ke ? be : { x: ye, y: ke });
1829
2207
  };
1830
- if (ge(), typeof ResizeObserver > "u") return;
1831
- const me = h.firstElementChild;
1832
- if (!me) return;
1833
- const $e = new ResizeObserver(ge);
1834
- return $e.observe(me), () => $e.disconnect();
1835
- }, [a, e]);
1836
- const ae = ye(
2208
+ if (ze(), typeof ResizeObserver > "u") return;
2209
+ const ue = h.firstElementChild;
2210
+ if (!ue) return;
2211
+ const he = new ResizeObserver(ze);
2212
+ return he.observe(ue), () => he.disconnect();
2213
+ }, [o, e]);
2214
+ const te = He(
1837
2215
  (h) => {
1838
- const F = h.animationName;
1839
- F.includes("fade-out") ? (X(!1), v(!1), g == null || g()) : F.includes("fade-in") && (f == null || f()), W == null || W(h);
2216
+ const S = h.animationName;
2217
+ S.includes("fade-out") ? (k(!1), C(!1), H == null || H()) : S.includes("fade-in") && (m == null || m()), X == null || X(h);
1840
2218
  },
1841
- [f, g, W]
1842
- ), R = $a(o, w), O = ne[a][R], re = Le[a], te = a === "pulse-inner" || a === "pulse-outside", le = p ?? G ?? re.borderRadius, T = i ?? (a === "line" ? 3.1 : te ? 2.3 : 1.96), de = m ?? O.saturation, fe = b ?? O.brightness ?? 1.3, N = a === "line" ? Math.min(n, 13) : n, V = r === "mono" ? !0 : s, Se = ve(
1843
- () => oa({
1844
- id: $,
1845
- borderRadius: le,
1846
- borderWidth: re.borderWidth,
1847
- duration: T,
1848
- strokeOpacity: O.strokeOpacity,
1849
- innerOpacity: O.innerOpacity,
1850
- bloomOpacity: O.bloomOpacity,
1851
- innerShadow: O.innerShadow,
1852
- size: a,
2219
+ [m, H, X]
2220
+ ), M = ho(t, w), F = pe[o][M], se = Ee[o], ie = o === "pulse-inner" || o === "pulse-outside", de = p ?? re ?? se.borderRadius, D = i ?? (o === "line" ? 3.1 : ie ? 2.3 : 1.96), me = g ?? F.saturation, xe = b ?? F.brightness ?? 1.3, U = o === "line" ? Math.min(n, 13) : n, K = r === "mono" ? !0 : s, $e = Xe(
2221
+ () => no({
2222
+ id: x,
2223
+ borderRadius: de,
2224
+ borderWidth: se.borderWidth,
2225
+ duration: D,
2226
+ strokeOpacity: F.strokeOpacity,
2227
+ innerOpacity: F.innerOpacity,
2228
+ bloomOpacity: F.bloomOpacity,
2229
+ innerShadow: F.innerShadow,
2230
+ size: o,
1853
2231
  colorVariant: r,
1854
- staticColors: V,
1855
- brightness: fe,
1856
- saturation: de,
1857
- hueRange: N,
1858
- theme: R,
1859
- hairlineOpacity: O.hairlineOpacity
2232
+ staticColors: K,
2233
+ brightness: xe,
2234
+ saturation: me,
2235
+ hueRange: U,
2236
+ theme: M,
2237
+ hairlineOpacity: F.hairlineOpacity,
2238
+ glowSize: l
1860
2239
  }),
1861
2240
  [
1862
- $,
1863
- le,
1864
- re.borderWidth,
1865
- T,
1866
- O.strokeOpacity,
1867
- O.innerOpacity,
1868
- O.bloomOpacity,
1869
- O.innerShadow,
1870
- O.hairlineOpacity,
1871
- a,
1872
- r,
1873
- V,
1874
- fe,
2241
+ x,
1875
2242
  de,
1876
- N,
1877
- R
2243
+ se.borderWidth,
2244
+ D,
2245
+ F.strokeOpacity,
2246
+ F.innerOpacity,
2247
+ F.bloomOpacity,
2248
+ F.innerShadow,
2249
+ F.hairlineOpacity,
2250
+ o,
2251
+ r,
2252
+ K,
2253
+ xe,
2254
+ me,
2255
+ U,
2256
+ l,
2257
+ M
1878
2258
  ]
1879
- ), oe = ve(
1880
- () => te ? ta(a, R, T, N, V, $) : null,
1881
- [te, a, R, T, N, V, $]
2259
+ ), ne = Xe(
2260
+ () => ie ? io(o, M, D, U, K, x) : null,
2261
+ [ie, o, M, D, U, K, x]
1882
2262
  );
1883
- B(() => {
1884
- var F;
1885
- if (!oe || !(x || u) || !S) return;
1886
- const h = y.current;
1887
- if (h && !(typeof window < "u" && ((F = window.matchMedia) != null && F.call(window, "(prefers-reduced-motion: reduce)").matches)))
1888
- return ga(h, oe);
1889
- }, [oe, x, u, S]);
1890
- const Re = ye(
2263
+ A(() => {
2264
+ var S;
2265
+ if (!ne || !(u || z) || !j) return;
2266
+ const h = v.current;
2267
+ if (h && !(typeof window < "u" && ((S = window.matchMedia) != null && S.call(window, "(prefers-reduced-motion: reduce)").matches)))
2268
+ return zo(h, ne);
2269
+ }, [ne, u, z, j]);
2270
+ const Ge = He(
1891
2271
  (h) => {
1892
- y.current = h, typeof z == "function" ? z(h) : z && (z.current = h);
2272
+ v.current = h, typeof $ == "function" ? $(h) : $ && ($.current = h);
1893
2273
  },
1894
- [z]
1895
- ), qe = {
1896
- ...k ?? {},
1897
- "--beam-strength": Math.max(0, Math.min(1, l)),
1898
- ...a === "pulse-outside" ? { "--pulse-glow-sx": j.x, "--pulse-glow-sy": j.y } : {}
2274
+ [$]
2275
+ ), Ce = {
2276
+ ...y ?? {},
2277
+ "--beam-strength": Math.max(0, Math.min(1, f)),
2278
+ ...o === "pulse-outside" ? { "--pulse-glow-sx": T.x, "--pulse-glow-sy": T.y } : {}
1899
2279
  };
1900
- return /* @__PURE__ */ he(Ce, { children: [
1901
- /* @__PURE__ */ ze("style", { children: Se }),
1902
- /* @__PURE__ */ he(
2280
+ return /* @__PURE__ */ ve(Ie, { children: [
2281
+ /* @__PURE__ */ We("style", { children: d ? `${$e}
2282
+ ${d.split("{id}").join(x)}` : $e }),
2283
+ /* @__PURE__ */ ve(
1903
2284
  "div",
1904
2285
  {
1905
- ...Y,
1906
- ref: Re,
1907
- "data-beam": $,
1908
- "data-active": x && !u ? "" : void 0,
1909
- "data-fading": u ? "" : void 0,
1910
- "data-paused": x && !u && !S ? "" : void 0,
1911
- className: d,
1912
- style: qe,
1913
- onAnimationEnd: ae,
2286
+ ...O,
2287
+ ref: Ge,
2288
+ "data-beam": x,
2289
+ "data-active": u && !z ? "" : void 0,
2290
+ "data-fading": z ? "" : void 0,
2291
+ "data-paused": u && !z && !j ? "" : void 0,
2292
+ className: W,
2293
+ style: Ce,
2294
+ onAnimationEnd: te,
1914
2295
  children: [
1915
2296
  e,
1916
- /* @__PURE__ */ ze("div", { "data-beam-bloom": !0 })
2297
+ /* @__PURE__ */ We("div", { "data-beam-bloom": !0 })
1917
2298
  ]
1918
2299
  }
1919
2300
  )
@@ -1921,9 +2302,9 @@ const za = Ge(
1921
2302
  }
1922
2303
  );
1923
2304
  export {
1924
- za as BorderBeam,
1925
- za as default,
1926
- Le as sizePresets,
1927
- ne as sizeThemePresets,
1928
- ha as themeColors
2305
+ Wo as BorderBeam,
2306
+ Wo as default,
2307
+ Ee as sizePresets,
2308
+ pe as sizeThemePresets,
2309
+ vo as themeColors
1929
2310
  };