@sailfish-ai/recorder 1.8.12 → 1.8.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/recorder.cjs CHANGED
@@ -373,26 +373,29 @@ function withAppUrlMetadata(e) {
373
373
  H && window.addEventListener("beforeunload", () => {
374
374
  window.name = ee + window.name;
375
375
  }), exports.nowTimestamp = Date.now, /[1-9][0-9]{12}/.test(Date.now().toString()) || (exports.nowTimestamp = () => (/* @__PURE__ */ new Date()).getTime());
376
- const ne = readDebugFlag(), re = "per_session", oe = "sailfish_funcspan_global_state";
377
- let se = null, ie = false, le = null, ce = null;
376
+ const ne = readDebugFlag(), re = "per_session";
377
+ let oe = null, se = false, ie = null, le = null, ce = false, pe = null, de = null, he = false;
378
+ const me = "sailfish_funcspan_global_state";
378
379
  function saveGlobalFuncSpanState(e, a) {
379
380
  try {
380
381
  if ("undefined" == typeof localStorage) return;
381
- const u = { enabled: e, expirationTimestampMs: a };
382
- localStorage.setItem(oe, JSON.stringify(u)), ne && console.log("[Sailfish] Saved global function span state to localStorage:", u);
382
+ const u = { enabled: e, expirationTimestampMs: a, savedAt: Date.now() };
383
+ localStorage.setItem(me, JSON.stringify(u)), ne && console.log("[Sailfish] Saved funcSpan state to localStorage:", u);
383
384
  } catch (e2) {
384
- ne && console.warn("[Sailfish] Failed to save global function span state to localStorage:", e2);
385
+ ne && console.warn("[Sailfish] Failed to save funcSpan state to localStorage:", e2);
385
386
  }
386
387
  }
387
388
  function clearGlobalFuncSpanState() {
388
389
  try {
389
390
  if ("undefined" == typeof localStorage) return;
390
- localStorage.removeItem(oe), ne && console.log("[Sailfish] Cleared global function span state from localStorage");
391
+ localStorage.removeItem(me), ne && console.log("[Sailfish] Cleared funcSpan state from localStorage");
391
392
  } catch (e) {
392
- ne && console.warn("[Sailfish] Failed to clear global function span state from localStorage:", e);
393
+ ne && console.warn("[Sailfish] Failed to clear funcSpan state from localStorage:", e);
393
394
  }
394
395
  }
395
- let pe = false, de = null, he = null, me = false, ge = null, ye = null;
396
+ function clearStaleFuncSpanState() {
397
+ ce = false, de = null, he = false, clearGlobalFuncSpanState(), ne && console.log("[Sailfish] Cleared stale function span tracking state (backend validation failed)");
398
+ }
396
399
  function isWebSocketOpen(e) {
397
400
  return (e == null ? void 0 : e.readyState) === WebSocket.OPEN;
398
401
  }
@@ -403,15 +406,15 @@ async function flushNotifyQueue() {
403
406
  u.onsuccess = () => a(u.result), u.onerror = () => a([]);
404
407
  })) ?? [];
405
408
  })();
406
- if (isWebSocketOpen(se)) try {
407
- for (const a of e) se.send(a.value), await deleteNotifyMessageById(a.id);
409
+ if (isWebSocketOpen(oe)) try {
410
+ for (const a of e) oe.send(a.value), await deleteNotifyMessageById(a.id);
408
411
  } catch (e2) {
409
412
  }
410
413
  }
411
414
  async function flushBufferedEvents() {
412
- if (isWebSocketOpen(se)) if (le) await le;
415
+ if (isWebSocketOpen(oe)) if (ie) await ie;
413
416
  else {
414
- le = (async () => {
417
+ ie = (async () => {
415
418
  var _a2, _b;
416
419
  const e = await (async function getAllIndexedEvents() {
417
420
  return await withStore$1("readonly", (e2) => new Promise((a2) => {
@@ -426,33 +429,33 @@ async function flushBufferedEvents() {
426
429
  for (const e2 of Object.values(a)) {
427
430
  const a2 = buildBatches(e2, (e3) => eventSize(e3.data), 52428800);
428
431
  for (const e3 of a2) {
429
- if (!isWebSocketOpen(se)) break;
432
+ if (!isWebSocketOpen(oe)) break;
430
433
  const a3 = e3.map((e4) => {
431
434
  var _a3, _b2;
432
435
  return { ...e4.data, appUrl: ((_a3 = e4.data) == null ? void 0 : _a3.appUrl) ?? ((_b2 = window == null ? void 0 : window.location) == null ? void 0 : _b2.href) };
433
436
  }), u = e3.map((e4) => e4.id).filter((e4) => null != e4);
434
437
  try {
435
438
  const e4 = JSON.stringify({ type: "events", events: a3, mapUuid: window.sfMapUuid });
436
- se.send(e4), await deleteEventsByIds(u);
439
+ oe.send(e4), await deleteEventsByIds(u);
437
440
  } catch (e4) {
438
441
  }
439
442
  }
440
443
  }
441
444
  })();
442
445
  try {
443
- await le;
446
+ await ie;
444
447
  } finally {
445
- le = null;
448
+ ie = null;
446
449
  }
447
450
  }
448
451
  }
449
452
  function sendEvent(e) {
450
453
  var _a2;
451
454
  const a = { ...e, app_url: (e == null ? void 0 : e.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
452
- if (ie || !isWebSocketOpen(se)) return void saveEventToIDB(a);
455
+ if (se || !isWebSocketOpen(oe)) return void saveEventToIDB(a);
453
456
  const u = JSON.stringify({ type: "event", event: a, mapUuid: window.sfMapUuid });
454
457
  try {
455
- se.send(u);
458
+ oe.send(u);
456
459
  } catch (e2) {
457
460
  saveEventToIDB(a);
458
461
  }
@@ -462,120 +465,139 @@ function initializeWebSocket(e, a, u, m2) {
462
465
  const a2 = document.createElement("a");
463
466
  return a2.href = e2, `${a2.hostname}${a2.port ? `:${a2.port}` : ""}`;
464
467
  })(e);
465
- let b2 = `${"https:" === new URL(e).protocol ? "wss" : "ws"}://${w2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.12`;
468
+ let b2 = `${"https:" === new URL(e).protocol ? "wss" : "ws"}://${w2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.15`;
466
469
  m2 && (b2 += `&envValue=${encodeURIComponent(m2)}`);
467
- return se = new $(b2, [], { connectionTimeout: 3e4 }), se.addEventListener("open", () => {
468
- ne && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (pe ? "ENABLED" : "DISABLED"))), (async () => {
470
+ return oe = new $(b2, [], { connectionTimeout: 3e4 }), oe.addEventListener("open", () => {
471
+ ne && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (ce ? "ENABLED" : "DISABLED"))), (async () => {
469
472
  try {
470
- ie = true, await flushNotifyQueue(), await flushBufferedEvents();
473
+ se = true, await flushNotifyQueue(), await flushBufferedEvents();
471
474
  } finally {
472
- ie = false;
475
+ se = false;
473
476
  }
474
- null != ce && clearInterval(ce), ce = window.setInterval(() => {
477
+ null != le && clearInterval(le), le = window.setInterval(() => {
475
478
  flushBufferedEvents();
476
479
  }, 2e3);
477
480
  })();
478
- }), se.addEventListener("close", () => {
481
+ }), oe.addEventListener("close", () => {
479
482
  ne && console.log("[Sailfish] WebSocket closed");
480
- }), se.addEventListener("message", (e2) => {
483
+ }), oe.addEventListener("message", (e2) => {
481
484
  try {
482
485
  const a2 = JSON.parse(e2.data);
483
- if ("funcSpanTrackingControl" === a2.type) if (ne && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a2.enabled, timeoutSeconds: a2.timeoutSeconds, expirationTimestampMs: a2.expirationTimestampMs }), null !== de && (window.clearTimeout(de), de = null), pe = a2.enabled, me = false, ne && console.log("[Sailfish] Function span tracking " + (a2.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a2.enabled) {
486
+ if ("funcSpanTrackingControl" === a2.type) if (ne && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a2.enabled, timeoutSeconds: a2.timeoutSeconds, expirationTimestampMs: a2.expirationTimestampMs }), null !== pe && (window.clearTimeout(pe), pe = null), ce = a2.enabled, he = false, ne && console.log("[Sailfish] Function span tracking " + (a2.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a2.enabled) {
484
487
  if (a2.expirationTimestampMs) {
485
- he = a2.expirationTimestampMs;
486
- const e3 = Date.now(), u2 = he - e3;
487
- ne && console.log(`[Sailfish] Server expiration timestamp: ${he}, ms until expiration: ${u2}`), u2 > 0 ? (saveGlobalFuncSpanState(true, he), de = window.setTimeout(() => {
488
- me || (pe = false, he = null, clearGlobalFuncSpanState(), ne && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
489
- }, u2)) : (pe = false, he = null, clearGlobalFuncSpanState(), ne && console.log("[Sailfish] Tracking already expired, not enabling"));
488
+ de = a2.expirationTimestampMs;
489
+ const e3 = Date.now(), u2 = de - e3;
490
+ ne && console.log(`[Sailfish] Server expiration timestamp: ${de}, ms until expiration: ${u2}`), u2 > 0 ? (saveGlobalFuncSpanState(true, de), pe = window.setTimeout(() => {
491
+ if (!he) {
492
+ ce = false, de = null, clearGlobalFuncSpanState(), ne && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time");
493
+ try {
494
+ isWebSocketOpen(oe) && (oe.send(JSON.stringify({ type: "funcSpanTrackingExpired", sessionId: getOrSetSessionId(), expiredAt: Date.now() })), ne && console.log("[Sailfish] Notified backend that function span tracking expired"));
495
+ } catch (e4) {
496
+ ne && console.warn("[Sailfish] Failed to notify backend of tracking expiry:", e4);
497
+ }
498
+ }
499
+ }, u2)) : (ce = false, de = null, clearGlobalFuncSpanState(), ne && console.log("[Sailfish] Tracking already expired, not enabling"));
490
500
  } else {
491
501
  const e3 = a2.timeoutSeconds || 3600;
492
- e3 > 0 && (he = Date.now() + 1e3 * e3, saveGlobalFuncSpanState(true, he), de = window.setTimeout(() => {
493
- me || (pe = false, he = null, clearGlobalFuncSpanState(), ne && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e3}s (legacy)`));
502
+ e3 > 0 && (de = Date.now() + 1e3 * e3, saveGlobalFuncSpanState(true, de), pe = window.setTimeout(() => {
503
+ if (!he) {
504
+ ce = false, de = null, clearGlobalFuncSpanState(), ne && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e3}s (legacy)`);
505
+ try {
506
+ isWebSocketOpen(oe) && (oe.send(JSON.stringify({ type: "funcSpanTrackingExpired", sessionId: getOrSetSessionId(), expiredAt: Date.now() })), ne && console.log("[Sailfish] Notified backend that function span tracking expired (legacy timeout)"));
507
+ } catch (e4) {
508
+ ne && console.warn("[Sailfish] Failed to notify backend of tracking expiry:", e4);
509
+ }
510
+ }
494
511
  }, 1e3 * e3));
495
512
  }
496
513
  try {
497
514
  const e3 = getOrSetSessionId();
498
- se.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e3, enabled: true, configurationType: "global" })), ne && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e3}`);
515
+ oe.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e3, enabled: true, configurationType: "global" })), ne && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e3}`);
499
516
  } catch (e3) {
500
517
  ne && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e3);
501
518
  }
502
- } else he = null, clearGlobalFuncSpanState();
519
+ } else de = null, clearGlobalFuncSpanState();
503
520
  } catch (e3) {
504
521
  }
505
- }), se;
522
+ }), oe;
506
523
  }
507
524
  function sendMessage(e) {
508
525
  var _a2;
509
526
  "sessionId" in e || (e.sessionId = getOrSetSessionId());
510
527
  const a = JSON.stringify({ ...e, app_url: (e == null ? void 0 : e.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) });
511
- if (ie || !isWebSocketOpen(se)) saveNotifyMessageToIDB(a);
528
+ if (se || !isWebSocketOpen(oe)) saveNotifyMessageToIDB(a);
512
529
  else try {
513
- se.send(a);
530
+ oe.send(a);
514
531
  } catch (e2) {
515
532
  saveNotifyMessageToIDB(a);
516
533
  }
517
534
  }
518
535
  function enableFunctionSpanTracking() {
519
- if (ne && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), pe && !me && (ge = de, ye = he, ne && console.log("[Sailfish] Saved global tracking state while switching to local mode")), pe = true, me = true, he = null, de = null, isWebSocketOpen(se)) try {
536
+ if (ne && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), ce = true, he = true, de = null, null !== pe && (window.clearTimeout(pe), pe = null), isWebSocketOpen(oe)) try {
520
537
  const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: re };
521
- se.send(JSON.stringify(e));
538
+ oe.send(JSON.stringify(e));
522
539
  } catch (e) {
523
540
  console.error("[FUNCSPAN START] ✗ Failed to send tracking session report:", e);
524
541
  }
525
542
  else ne && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
526
543
  }
527
544
  function disableFunctionSpanTracking() {
528
- if (ne && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(se)) try {
545
+ if (ne && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(oe)) try {
529
546
  const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: re };
530
- se.send(JSON.stringify(e));
547
+ oe.send(JSON.stringify(e));
531
548
  } catch (e) {
532
549
  console.error("[FUNCSPAN STOP] ✗ Failed to send tracking stop report:", e);
533
550
  }
534
551
  else console.warn("[FUNCSPAN STOP] ✗ WebSocket not open, cannot notify tracking end");
535
- me && (me = false, null !== ge || null !== ye ? (pe = true, he = ye, de = ge, ne && console.log("[Sailfish] LOCAL tracking mode disabled, restored GLOBAL tracking state"), ge = null, ye = null) : (pe = false, he = null, de = null, ne && console.log("[Sailfish] LOCAL tracking mode disabled, no global tracking to restore")));
552
+ he && (ce = false, he = false, de = null, ne && console.log("[Sailfish] LOCAL tracking mode disabled")), null !== pe && (window.clearTimeout(pe), pe = null);
536
553
  }
537
554
  function isFunctionSpanTrackingEnabled() {
538
- return pe;
555
+ return ce;
556
+ }
557
+ function initializeFunctionSpanTrackingFromApi(e) {
558
+ e && !ce ? (ce = true, he = false, de = null, ne && console.log("[Sailfish] Function span tracking initialized as ENABLED from API check")) : !e && ce && (ce = false, he = false, de = null, ne && console.log("[Sailfish] Function span tracking initialized as DISABLED from API check"));
539
559
  }
540
560
  function getFuncSpanHeader() {
541
- if (!pe) return null;
542
- if (null !== he) {
543
- if (Date.now() >= he) return pe = false, he = null, ne && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
561
+ if (!ce) return null;
562
+ if (null !== de) {
563
+ if (Date.now() >= de) return ce = false, de = null, clearGlobalFuncSpanState(), ne && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
544
564
  }
545
- return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-0-5-5-0-1.0" };
565
+ return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-1-10-10-1-1.0-1-0-0" };
546
566
  }
547
567
  (() => {
548
568
  const e = (function loadGlobalFuncSpanState() {
549
569
  try {
550
570
  if ("undefined" == typeof localStorage) return null;
551
- const e2 = localStorage.getItem(oe);
571
+ const e2 = localStorage.getItem(me);
552
572
  if (!e2) return null;
553
573
  const a = JSON.parse(e2);
554
- return a.enabled && a.expirationTimestampMs && Date.now() >= a.expirationTimestampMs ? (ne && console.log("[Sailfish] Stored global function span state has expired, clearing"), localStorage.removeItem(oe), null) : (ne && console.log("[Sailfish] Loaded global function span state from localStorage:", a), a);
574
+ return ne && console.log("[Sailfish] Loaded funcSpan state from localStorage:", a), a;
555
575
  } catch (e2) {
556
- return ne && console.warn("[Sailfish] Failed to load global function span state from localStorage:", e2), null;
576
+ return ne && console.warn("[Sailfish] Failed to load funcSpan state from localStorage:", e2), null;
557
577
  }
558
578
  })();
559
- e && e.enabled && (pe = true, he = e.expirationTimestampMs, me = false, ne && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTimestampMs: he }));
579
+ if (e && e.enabled) if (ce = true, de = e.expirationTimestampMs, he = false, ne && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTime: de }), null !== de) {
580
+ Date.now() >= de ? (ce = false, de = null, clearGlobalFuncSpanState(), ne && console.log("[Sailfish] Module init: Persisted tracking already expired, cleared state")) : ne && console.log("[Sailfish] Module init: Function span tracking is active and valid (temporary until WebSocket confirms)");
581
+ } else ne && console.log("[Sailfish] Module init: Function span tracking is active (no expiration, temporary until WebSocket confirms)");
560
582
  })();
561
- const we = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
562
- var be, ve, Ce = {}, ke = {}, xe = {}, Me = {};
583
+ const ge = Object.freeze(Object.defineProperty({ __proto__: null, clearStaleFuncSpanState, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeFunctionSpanTrackingFromApi, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
584
+ var ye, we, be = {}, ve = {}, Ce = {}, ke = {};
563
585
  function requireBase64() {
564
- if (be) return Me;
565
- be = 1;
586
+ if (ye) return ke;
587
+ ye = 1;
566
588
  var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
567
- return Me.encode = function(a) {
589
+ return ke.encode = function(a) {
568
590
  if (0 <= a && a < e.length) return e[a];
569
591
  throw new TypeError("Must be between 0 and 63: " + a);
570
- }, Me.decode = function(e2) {
592
+ }, ke.decode = function(e2) {
571
593
  return 65 <= e2 && e2 <= 90 ? e2 - 65 : 97 <= e2 && e2 <= 122 ? e2 - 97 + 26 : 48 <= e2 && e2 <= 57 ? e2 - 48 + 52 : 43 == e2 ? 62 : 47 == e2 ? 63 : -1;
572
- }, Me;
594
+ }, ke;
573
595
  }
574
596
  function requireBase64Vlq() {
575
- if (ve) return xe;
576
- ve = 1;
597
+ if (we) return Ce;
598
+ we = 1;
577
599
  var e = requireBase64();
578
- return xe.encode = function base64VLQ_encode(a) {
600
+ return Ce.encode = function base64VLQ_encode(a) {
579
601
  var u, m2 = "", w2 = (function toVLQSigned(e2) {
580
602
  return e2 < 0 ? 1 + (-e2 << 1) : 0 + (e2 << 1);
581
603
  })(a);
@@ -583,7 +605,7 @@ function requireBase64Vlq() {
583
605
  u = 31 & w2, (w2 >>>= 5) > 0 && (u |= 32), m2 += e.encode(u);
584
606
  } while (w2 > 0);
585
607
  return m2;
586
- }, xe.decode = function base64VLQ_decode(a, u, m2) {
608
+ }, Ce.decode = function base64VLQ_decode(a, u, m2) {
587
609
  var w2, b2, C2 = a.length, x2 = 0, I2 = 0;
588
610
  do {
589
611
  if (u >= C2) throw new Error("Expected more digits in base 64 VLQ value.");
@@ -594,11 +616,11 @@ function requireBase64Vlq() {
594
616
  var a2 = e2 >> 1;
595
617
  return 1 & ~e2 ? a2 : -a2;
596
618
  })(x2), m2.rest = u;
597
- }, xe;
619
+ }, Ce;
598
620
  }
599
- var Ie, Oe = {};
621
+ var xe, Me = {};
600
622
  function requireUtil() {
601
- return Ie || (Ie = 1, (function(e) {
623
+ return xe || (xe = 1, (function(e) {
602
624
  e.getArg = function getArg(e2, a2, u2) {
603
625
  if (a2 in e2) return e2[a2];
604
626
  if (3 === arguments.length) return u2;
@@ -710,12 +732,12 @@ function requireUtil() {
710
732
  }
711
733
  return m2(a2);
712
734
  };
713
- })(Oe)), Oe;
735
+ })(Me)), Me;
714
736
  }
715
- var Ee, Le = {};
737
+ var Ie, Oe = {};
716
738
  function requireArraySet() {
717
- if (Ee) return Le;
718
- Ee = 1;
739
+ if (Ie) return Oe;
740
+ Ie = 1;
719
741
  var e = requireUtil(), a = Object.prototype.hasOwnProperty, u = "undefined" != typeof Map;
720
742
  function ArraySet() {
721
743
  this._array = [], this._set = u ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
@@ -746,12 +768,12 @@ function requireArraySet() {
746
768
  throw new Error("No element indexed by " + e2);
747
769
  }, ArraySet.prototype.toArray = function ArraySet_toArray() {
748
770
  return this._array.slice();
749
- }, Le.ArraySet = ArraySet, Le;
771
+ }, Oe.ArraySet = ArraySet, Oe;
750
772
  }
751
- var Ae, Te, De = {};
773
+ var Ee, Le, Ae = {};
752
774
  function requireMappingList() {
753
- if (Ae) return De;
754
- Ae = 1;
775
+ if (Ee) return Ae;
776
+ Ee = 1;
755
777
  var e = requireUtil();
756
778
  function MappingList() {
757
779
  this._array = [], this._sorted = true, this._last = { generatedLine: -1, generatedColumn: 0 };
@@ -765,11 +787,11 @@ function requireMappingList() {
765
787
  })(this._last, a) ? (this._sorted = false, this._array.push(a)) : (this._last = a, this._array.push(a));
766
788
  }, MappingList.prototype.toArray = function MappingList_toArray() {
767
789
  return this._sorted || (this._array.sort(e.compareByGeneratedPositionsInflated), this._sorted = true), this._array;
768
- }, De.MappingList = MappingList, De;
790
+ }, Ae.MappingList = MappingList, Ae;
769
791
  }
770
792
  function requireSourceMapGenerator() {
771
- if (Te) return ke;
772
- Te = 1;
793
+ if (Le) return ve;
794
+ Le = 1;
773
795
  var e = requireBase64Vlq(), a = requireUtil(), u = requireArraySet().ArraySet, m2 = requireMappingList().MappingList;
774
796
  function SourceMapGenerator(e2) {
775
797
  e2 || (e2 = {}), this._file = a.getArg(e2, "file", null), this._sourceRoot = a.getArg(e2, "sourceRoot", null), this._skipValidation = a.getArg(e2, "skipValidation", false), this._ignoreInvalidMapping = a.getArg(e2, "ignoreInvalidMapping", false), this._sources = new u(), this._names = new u(), this._mappings = new m2(), this._sourcesContents = null;
@@ -846,11 +868,11 @@ function requireSourceMapGenerator() {
846
868
  return null != this._file && (e2.file = this._file), null != this._sourceRoot && (e2.sourceRoot = this._sourceRoot), this._sourcesContents && (e2.sourcesContent = this._generateSourcesContent(e2.sources, e2.sourceRoot)), e2;
847
869
  }, SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
848
870
  return JSON.stringify(this.toJSON());
849
- }, ke.SourceMapGenerator = SourceMapGenerator, ke;
871
+ }, ve.SourceMapGenerator = SourceMapGenerator, ve;
850
872
  }
851
- var Ue, Be = {}, je = {};
873
+ var Te, De = {}, Ue = {};
852
874
  function requireBinarySearch() {
853
- return Ue || (Ue = 1, (function(e) {
875
+ return Te || (Te = 1, (function(e) {
854
876
  function recursiveSearch(a, u, m2, w2, b2, C2) {
855
877
  var x2 = Math.floor((u - a) / 2) + a, I2 = b2(m2, w2[x2], true);
856
878
  return 0 === I2 ? x2 : I2 > 0 ? u - x2 > 1 ? recursiveSearch(x2, u, m2, w2, b2, C2) : C2 == e.LEAST_UPPER_BOUND ? u < w2.length ? u : -1 : x2 : x2 - a > 1 ? recursiveSearch(a, x2, m2, w2, b2, C2) : C2 == e.LEAST_UPPER_BOUND ? x2 : a < 0 ? -1 : a;
@@ -862,11 +884,11 @@ function requireBinarySearch() {
862
884
  for (; b2 - 1 >= 0 && 0 === m2(u[b2], u[b2 - 1], true); ) --b2;
863
885
  return b2;
864
886
  };
865
- })(je)), je;
887
+ })(Ue)), Ue;
866
888
  }
867
- var Ge, Ve, qe = {};
889
+ var Be, je, Ge = {};
868
890
  function requireQuickSort() {
869
- if (Ge) return qe;
891
+ if (Be) return Ge;
870
892
  function SortTemplate(e2) {
871
893
  function swap(e3, a, u) {
872
894
  var m2 = e3[a];
@@ -885,21 +907,21 @@ function requireQuickSort() {
885
907
  }
886
908
  };
887
909
  }
888
- Ge = 1;
910
+ Be = 1;
889
911
  let e = /* @__PURE__ */ new WeakMap();
890
- return qe.quickSort = function(a, u, m2 = 0) {
912
+ return Ge.quickSort = function(a, u, m2 = 0) {
891
913
  let w2 = e.get(u);
892
914
  void 0 === w2 && (w2 = (function cloneSort(e2) {
893
915
  let a2 = SortTemplate.toString();
894
916
  return new Function(`return ${a2}`)()(e2);
895
917
  })(u), e.set(u, w2)), w2(a, u, m2, a.length - 1);
896
- }, qe;
918
+ }, Ge;
897
919
  }
898
- var He, Je, Ye = {};
899
- var Xe = (function requireSourceMap() {
900
- return Je || (Je = 1, Ce.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, Ce.SourceMapConsumer = (function requireSourceMapConsumer() {
901
- if (Ve) return Be;
902
- Ve = 1;
920
+ var Ve, qe, He = {};
921
+ var Je = (function requireSourceMap() {
922
+ return qe || (qe = 1, be.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, be.SourceMapConsumer = (function requireSourceMapConsumer() {
923
+ if (je) return De;
924
+ je = 1;
903
925
  var e = requireUtil(), a = requireBinarySearch(), u = requireArraySet().ArraySet, m2 = requireBase64Vlq(), w2 = requireQuickSort().quickSort;
904
926
  function SourceMapConsumer(a2, u2) {
905
927
  var m3 = a2;
@@ -956,7 +978,7 @@ var Xe = (function requireSourceMap() {
956
978
  else for (var _2 = x2.originalColumn; x2 && x2.originalLine === m3 && x2.originalColumn == _2; ) b3.push({ line: e.getArg(x2, "generatedLine", null), column: e.getArg(x2, "generatedColumn", null), lastColumn: e.getArg(x2, "lastGeneratedColumn", null) }), x2 = this._originalMappings[++C2];
957
979
  }
958
980
  return b3;
959
- }, Be.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
981
+ }, De.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
960
982
  var u2, m3 = a2;
961
983
  if (null != this.sourceRoot && (m3 = e.relative(this.sourceRoot, m3)), this._sources.has(m3)) return this._sources.indexOf(m3);
962
984
  for (u2 = 0; u2 < this._absoluteSources.length; ++u2) if (this._absoluteSources[u2] == a2) return u2;
@@ -1073,7 +1095,7 @@ var Xe = (function requireSourceMap() {
1073
1095
  if (b3.source === m3.source) return { line: e.getArg(b3, "generatedLine", null), column: e.getArg(b3, "generatedColumn", null), lastColumn: e.getArg(b3, "lastGeneratedColumn", null) };
1074
1096
  }
1075
1097
  return { line: null, column: null, lastColumn: null };
1076
- }, Be.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1098
+ }, De.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1077
1099
  for (var e2 = [], a2 = 0; a2 < this._sections.length; a2++) for (var u2 = 0; u2 < this._sections[a2].consumer.sources.length; u2++) e2.push(this._sections[a2].consumer.sources[u2]);
1078
1100
  return e2;
1079
1101
  } }), IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(u2) {
@@ -1112,10 +1134,10 @@ var Xe = (function requireSourceMap() {
1112
1134
  this.__generatedMappings.push(E2), "number" == typeof E2.originalLine && this.__originalMappings.push(E2);
1113
1135
  }
1114
1136
  w2(this.__generatedMappings, e.compareByGeneratedPositionsDeflated), w2(this.__originalMappings, e.compareByOriginalPositions);
1115
- }, Be.IndexedSourceMapConsumer = IndexedSourceMapConsumer, Be;
1116
- })().SourceMapConsumer, Ce.SourceNode = (function requireSourceNode() {
1117
- if (He) return Ye;
1118
- He = 1;
1137
+ }, De.IndexedSourceMapConsumer = IndexedSourceMapConsumer, De;
1138
+ })().SourceMapConsumer, be.SourceNode = (function requireSourceNode() {
1139
+ if (Ve) return He;
1140
+ Ve = 1;
1119
1141
  var e = requireSourceMapGenerator().SourceMapGenerator, a = requireUtil(), u = /(\r?\n)/, m2 = "$$$isSourceNode$$$";
1120
1142
  function SourceNode(e2, a2, u2, w2, b2) {
1121
1143
  this.children = [], this.sourceContents = {}, this.line = null == e2 ? null : e2, this.column = null == a2 ? null : a2, this.source = null == u2 ? null : u2, this.name = null == b2 ? null : b2, this[m2] = true, null != w2 && this.add(w2);
@@ -1199,20 +1221,20 @@ var Xe = (function requireSourceMap() {
1199
1221
  }), this.walkSourceContents(function(e2, a3) {
1200
1222
  m3.setSourceContent(e2, a3);
1201
1223
  }), { code: u2.code, map: m3 };
1202
- }, Ye.SourceNode = SourceNode, Ye;
1203
- })().SourceNode), Ce;
1224
+ }, He.SourceNode = SourceNode, He;
1225
+ })().SourceNode), be;
1204
1226
  })();
1205
- const Qe = /* @__PURE__ */ new Map(), et = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1227
+ const Ye = /* @__PURE__ */ new Map(), Xe = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1206
1228
  async function getConsumerFor(e, a) {
1207
1229
  const u = (e || `/assets/${a}`).split("?")[0], m2 = [`${u}.map`, u.replace(/\.js$/, ".js.map"), `/assets/${a}.map`];
1208
1230
  for (const e2 of m2) try {
1209
- if (Qe.has(e2)) return Qe.get(e2);
1231
+ if (Ye.has(e2)) return Ye.get(e2);
1210
1232
  const a2 = await fetch(e2);
1211
1233
  if (!a2.ok) continue;
1212
1234
  const u2 = await a2.json();
1213
1235
  if (!u2 || !u2.mappings || !u2.sources) continue;
1214
- const m3 = await new Xe.SourceMapConsumer(u2);
1215
- return Qe.set(e2, m3), m3;
1236
+ const m3 = await new Je.SourceMapConsumer(u2);
1237
+ return Ye.set(e2, m3), m3;
1216
1238
  } catch {
1217
1239
  }
1218
1240
  return null;
@@ -1224,7 +1246,7 @@ async function captureError(e, a = false) {
1224
1246
  if (!e2) return ["No stack trace available"];
1225
1247
  const a2 = Array.isArray(e2) ? e2 : e2.split("\n"), u2 = [];
1226
1248
  for (const e3 of a2) {
1227
- const a3 = e3.match(et);
1249
+ const a3 = e3.match(Xe);
1228
1250
  if (!a3) {
1229
1251
  u2.push(e3);
1230
1252
  continue;
@@ -1239,8 +1261,8 @@ async function captureError(e, a = false) {
1239
1261
  u2.push(`${e3} [No source map found for ${w3}]`);
1240
1262
  continue;
1241
1263
  }
1242
- let O2 = _2.originalPositionFor({ line: x3, column: I2, bias: Xe.SourceMapConsumer.GREATEST_LOWER_BOUND });
1243
- if (!O2.source || null == O2.line) for (let e4 = 1; e4 <= 20 && (O2 = _2.originalPositionFor({ line: x3, column: Math.max(0, I2 - e4), bias: Xe.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e4++) ;
1264
+ let O2 = _2.originalPositionFor({ line: x3, column: I2, bias: Je.SourceMapConsumer.GREATEST_LOWER_BOUND });
1265
+ if (!O2.source || null == O2.line) for (let e4 = 1; e4 <= 20 && (O2 = _2.originalPositionFor({ line: x3, column: Math.max(0, I2 - e4), bias: Je.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e4++) ;
1244
1266
  if (O2.source && null != O2.line) {
1245
1267
  const e4 = O2.name || "anonymous";
1246
1268
  u2.push(`${O2.source}:${O2.line}:${O2.column ?? 0} (${e4})`);
@@ -1250,11 +1272,11 @@ async function captureError(e, a = false) {
1250
1272
  })(m2), b2 = w2.filter((e2) => !e2.includes("chunk-") && !e2.includes("react-dom")), C2 = b2.length > 0 ? b2 : w2, x2 = Date.now();
1251
1273
  sendMessage({ type: "event", event: { type: 6, timestamp: x2, data: { payload: { message: u, stack: m2, trace: C2, filteredStack: b2, userAgent: navigator.userAgent, url: window.location.href, timestamp: x2, level: "error" } } } });
1252
1274
  }
1253
- const nt = readDebugFlag();
1254
- const ot = readDebugFlag();
1275
+ const Qe = readDebugFlag();
1276
+ const et = readDebugFlag();
1255
1277
  function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1256
1278
  const C2 = `${u.backendApi}/graphql/?apiKey=${u.apiKey}`;
1257
- return ot && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1279
+ return et && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1258
1280
  let b3 = 0;
1259
1281
  const attemptRequest = async () => {
1260
1282
  try {
@@ -1262,18 +1284,21 @@ function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1262
1284
  } catch (e3) {
1263
1285
  if (b3++, b3 > u2) throw e3;
1264
1286
  const C3 = m3 * Math.pow(w3, b3 - 1);
1265
- return nt && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1287
+ return Qe && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1266
1288
  }
1267
1289
  };
1268
1290
  return attemptRequest();
1269
1291
  })(() => fetch(C2, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ operationName: e, query: a, variables: u }) }).then((e2) => {
1270
- if (ot && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1292
+ if (et && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1271
1293
  return e2.json();
1272
1294
  }), "Sending GraphQL request to Sailfish AI", m2, w2, b2);
1273
1295
  }
1274
1296
  function fetchCaptureSettings(e, a) {
1275
1297
  return sendGraphQLRequest("GetCaptureSettingsFromApiKey", "\n query GetCaptureSettingsFromApiKey($apiKey: String!) {\n captureSettingsFromApiKey(apiKey: $apiKey) {\n recordCanvas\n recordCrossOriginIframes\n collectFonts\n inlineImages\n recordPassword\n recordRealName\n recordCreditCardInfo\n recordSsn\n recordDob\n sampling\n }\n }\n ", { apiKey: e, backendApi: a });
1276
1298
  }
1299
+ function fetchFunctionSpanTrackingEnabled(e, a) {
1300
+ return sendGraphQLRequest("GetFunctionSpanTrackingEnabledFromApiKey", "\n query GetFunctionSpanTrackingEnabledFromApiKey($apiKey: String!) {\n isFunctionSpanTrackingEnabledFromApiKey(apiKey: $apiKey)\n }\n ", { apiKey: e, backendApi: a });
1301
+ }
1277
1302
  function startRecordingSession(e, a, u, m2, w2, b2, C2, x2, I2) {
1278
1303
  return sendGraphQLRequest("StartSession", "mutation StartSession(\n $apiKey: UUID!,\n $recordingSessionId: UUID!,\n $serviceIdentifier: String!,\n $serviceVersion: String,\n $mapUuid: String,\n $gitSha: String,\n $library: String,\n $serviceAdditionalMetadata: JSON,\n $startRecordingFilePath: String,\n $startRecordingLineNumber: Int\n ) {\n startRecordingSession(\n companyApiKey: $apiKey,\n sessionId: $recordingSessionId,\n serviceIdentifier: $serviceIdentifier,\n serviceVersion: $serviceVersion,\n mapUuid: $mapUuid,\n gitSha: $gitSha,\n library: $library,\n serviceAdditionalMetadata: $serviceAdditionalMetadata,\n startRecordingFilePath: $startRecordingFilePath,\n startRecordingLineNumber: $startRecordingLineNumber\n ) {\n id\n }\n }", { apiKey: e, recordingSessionId: a, backendApi: u, serviceIdentifier: m2, serviceVersion: w2, mapUuid: b2, gitSha: C2, library: x2, serviceAdditionalMetadata: I2, startRecordingFilePath: null, startRecordingLineNumber: null });
1279
1304
  }
@@ -1283,9 +1308,9 @@ function sendDomainsToNotPropagateHeaderTo(e, a, u) {
1283
1308
  function createTriageFromRecorder(e, a, u, m2, w2, b2) {
1284
1309
  return sendGraphQLRequest("CreateTriageFromRecorder", "mutation CreateTriageFromRecorder(\n $apiKey: String!,\n $recordingSessionId: String!,\n $timestampStart: String!,\n $timestampEnd: String!,\n $description: String\n ) {\n createTriageFromRecorder(\n apiKey: $apiKey,\n recordingSessionId: $recordingSessionId,\n timestampStart: $timestampStart,\n timestampEnd: $timestampEnd,\n description: $description\n ) {\n id\n }\n }\n ", { apiKey: e, recordingSessionId: u, timestampStart: m2, timestampEnd: w2, description: b2, backendApi: a });
1285
1310
  }
1286
- const st = { enabled: false, openModalExistingMode: { key: "e", requireCmdCtrl: false }, openModalCaptureNewMode: { key: "n", requireCmdCtrl: false }, closeModal: { key: "escape", requireCmdCtrl: false }, submitReport: { key: "enter", requireCmdCtrl: true }, startRecording: { key: "r", requireCmdCtrl: false }, stopRecording: { key: "escape", requireCmdCtrl: true } }, it = { shortcuts: { ...st }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1311
+ const nt = { enabled: false, openModalExistingMode: { key: "e", requireCmdCtrl: false }, openModalCaptureNewMode: { key: "n", requireCmdCtrl: false }, closeModal: { key: "escape", requireCmdCtrl: false }, submitReport: { key: "enter", requireCmdCtrl: true }, startRecording: { key: "r", requireCmdCtrl: false }, stopRecording: { key: "escape", requireCmdCtrl: true } }, ot = { shortcuts: { ...nt }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1287
1312
  } };
1288
- let at = null, lt = { mode: "lookback", description: "" }, ct = null, ut = null, pt = null, dt = false;
1313
+ let st = null, it = { mode: "lookback", description: "" }, at = null, lt = null, ct = null, ut = false;
1289
1314
  function getShortcutKeyCmdCtrlLabel() {
1290
1315
  return (function isMacPlatform() {
1291
1316
  const e = navigator.userAgentData;
@@ -1298,11 +1323,11 @@ function getShortcutLabelFromContext(e) {
1298
1323
  return e2.requireCmdCtrl && a.push(getShortcutKeyCmdCtrlLabel()), a.push((function formatShortcutKeyLabel(e3) {
1299
1324
  return ({ escape: "esc" }[e3.toLowerCase()] || e3).toUpperCase();
1300
1325
  })(e2.key)), a.map((e3) => `<span style="background: #F1F5F9; border:1px solid #cbd5e1; border-radius: 4px; padding: 0 4px; font-weight: 500; font-size: 12px; color: #94A3B8; line-height: 16px;">${e3}</span>`).join(e2.requireCmdCtrl ? " + " : "");
1301
- })(it.shortcuts[e]);
1326
+ })(ot.shortcuts[e]);
1302
1327
  }
1303
1328
  function setupIssueReporting(e) {
1304
- it.apiKey = e.apiKey, it.backendApi = e.backendApi, it.resolveSessionId = e.getSessionId, e.customBaseUrl && (it.triageBaseUrl = e.customBaseUrl), it.shortcuts = (function mergeShortcutsConfig(e2) {
1305
- const a2 = { ...st };
1329
+ ot.apiKey = e.apiKey, ot.backendApi = e.backendApi, ot.resolveSessionId = e.getSessionId, e.customBaseUrl && (ot.triageBaseUrl = e.customBaseUrl), ot.shortcuts = (function mergeShortcutsConfig(e2) {
1330
+ const a2 = { ...nt };
1306
1331
  if (!e2) return a2;
1307
1332
  "boolean" == typeof e2.enabled && (a2.enabled = e2.enabled);
1308
1333
  const u = ["openModalExistingMode", "openModalCaptureNewMode", "closeModal", "submitReport", "startRecording", "stopRecording"];
@@ -1312,7 +1337,7 @@ function setupIssueReporting(e) {
1312
1337
  }
1313
1338
  return a2;
1314
1339
  })(e.shortcuts);
1315
- const { shortcuts: a } = it;
1340
+ const { shortcuts: a } = ot;
1316
1341
  window.addEventListener("keydown", (e2) => {
1317
1342
  const u = (function isTypingInInput() {
1318
1343
  const e3 = document.activeElement;
@@ -1322,20 +1347,20 @@ function setupIssueReporting(e) {
1322
1347
  } : injectModalHTML;
1323
1348
  if (C2 && shortcutUsed("openModalExistingMode")) return e2.preventDefault(), void x2("lookback");
1324
1349
  if (C2 && shortcutUsed("openModalCaptureNewMode")) return e2.preventDefault(), void x2("startnow");
1325
- if (b2 && !dt && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1350
+ if (b2 && !ut && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1326
1351
  if (b2 && shortcutUsed("submitReport")) {
1327
1352
  const a2 = document.getElementById("sf-issue-submit-btn");
1328
1353
  return void (a2 && !a2.disabled && (e2.preventDefault(), a2.click()));
1329
1354
  }
1330
- if (dt && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1331
- if (b2 && "startnow" === lt.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1355
+ if (ut && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1356
+ if (b2 && "startnow" === it.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1332
1357
  const a2 = document.getElementById("sf-start-recording-btn");
1333
1358
  return void (a2 && (e2.preventDefault(), a2.click()));
1334
1359
  }
1335
1360
  });
1336
1361
  }
1337
1362
  function closeModal() {
1338
- it.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (at == null ? void 0 : at.parentNode) && at.parentNode.removeChild(at), at = null, dt || (lt = { mode: "lookback", description: "", occurredInThisTab: true }, ct = null, ut = null), pt && clearInterval(pt);
1363
+ ot.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (st == null ? void 0 : st.parentNode) && st.parentNode.removeChild(st), st = null, ut || (it = { mode: "lookback", description: "", occurredInThisTab: true }, at = null, lt = null), ct && clearInterval(ct);
1339
1364
  }
1340
1365
  function activateModalIsolation(e) {
1341
1366
  e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1");
@@ -1394,9 +1419,9 @@ function activateModalIsolation(e) {
1394
1419
  };
1395
1420
  }
1396
1421
  function injectModalHTML(e = "lookback") {
1397
- at && (at.remove(), at = null), at = document.createElement("div"), at.id = "sf-report-issue-modal";
1422
+ st && (st.remove(), st = null), st = document.createElement("div"), st.id = "sf-report-issue-modal";
1398
1423
  const a = "startnow" === e;
1399
- at.innerHTML = `
1424
+ st.innerHTML = `
1400
1425
  <div style="position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9998;"></div>
1401
1426
  <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
1402
1427
  background:#fff; padding:24px; border-radius:12px;
@@ -1444,7 +1469,7 @@ function injectModalHTML(e = "lookback") {
1444
1469
  <textarea id="sf-issue-description" placeholder="Add description here"
1445
1470
  style="width:100%; height:80px; padding:8px 12px; font-size:14px;
1446
1471
  border:1px solid #cbd5e1; border-radius:6px; margin-bottom:20px;
1447
- resize:none; outline:none;">${lt.description}</textarea>
1472
+ resize:none; outline:none;">${it.description}</textarea>
1448
1473
 
1449
1474
  <div id="sf-lookback-container" style="display:${a ? "none" : "block"}; margin-bottom:20px;">
1450
1475
  <label for="sf-lookback-minutes" style="display:block; font-size:14px; font-weight:500; margin-bottom:6px;">
@@ -1532,8 +1557,8 @@ function injectModalHTML(e = "lookback") {
1532
1557
  <a href="mailto:info@sailfishqa.com?subject=I'd%20love%20to%20learn%20more&body=Hey%2C%20Sailfish%20AI%20team%20-%20I'd%20love%20to%20learn%20more%20about%20Sailfish%20AI!">Powered by Sailfish AI</a>
1533
1558
  </div>
1534
1559
  </div>
1535
- `, lt.mode = e, document.body.appendChild(at), (function bindListeners() {
1536
- const e2 = at == null ? void 0 : at.querySelectorAll(".sf-issue-tab"), a2 = document.getElementById("sf-start-recording-btn"), u = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1560
+ `, it.mode = e, document.body.appendChild(st), (function bindListeners() {
1561
+ const e2 = st == null ? void 0 : st.querySelectorAll(".sf-issue-tab"), a2 = document.getElementById("sf-start-recording-btn"), u = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1537
1562
  e2 == null ? void 0 : e2.forEach((e3) => {
1538
1563
  e3.addEventListener("click", (e4) => {
1539
1564
  const a3 = e4.currentTarget.dataset.mode;
@@ -1541,11 +1566,11 @@ function injectModalHTML(e = "lookback") {
1541
1566
  });
1542
1567
  }), u && (u.onclick = closeModal);
1543
1568
  w2 && w2.addEventListener("change", () => {
1544
- "lookback" === lt.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1569
+ "lookback" === it.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1545
1570
  });
1546
1571
  a2 && (a2.onclick = () => {
1547
1572
  const e3 = document.getElementById("sf-issue-description");
1548
- e3 && (lt.description = e3.value), (function startCountdownThenRecord() {
1573
+ e3 && (it.description = e3.value), (function startCountdownThenRecord() {
1549
1574
  if (document.getElementById("sf-countdown-overlay")) return;
1550
1575
  const e4 = document.createElement("div");
1551
1576
  e4.id = "sf-countdown-overlay", e4.style.cssText = "\n position: fixed;\n inset: 0;\n background: rgba(0,0,0,0.6);\n z-index: 10001;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 80px;\n font-weight: bold;\n color: white;\n font-family: sans-serif;\n ";
@@ -1554,9 +1579,9 @@ function injectModalHTML(e = "lookback") {
1554
1579
  const u2 = setInterval(async () => {
1555
1580
  if (a3--, a3 > 0) e4.textContent = a3.toString();
1556
1581
  else {
1557
- clearInterval(u2), document.body.removeChild(e4), ct = Date.now(), dt = true;
1582
+ clearInterval(u2), document.body.removeChild(e4), at = Date.now(), ut = true;
1558
1583
  try {
1559
- const { enableFunctionSpanTracking: e5 } = await Promise.resolve().then(() => we);
1584
+ const { enableFunctionSpanTracking: e5 } = await Promise.resolve().then(() => ge);
1560
1585
  e5();
1561
1586
  } catch (e5) {
1562
1587
  console.error("[Report Issue] Failed to enable function span tracking:", e5);
@@ -1582,8 +1607,8 @@ function injectModalHTML(e = "lookback") {
1582
1607
  `, e5.addEventListener("click", () => stopRecording()), document.body.appendChild(e5);
1583
1608
  const a4 = e5.querySelector("#sf-recording-timer");
1584
1609
  if (!a4) return;
1585
- pt = setInterval(() => {
1586
- const e6 = Date.now() - (ct ?? Date.now()), u3 = Math.floor(e6 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e6 % 6e4 / 1e3).toString().padStart(2, "0");
1610
+ ct = setInterval(() => {
1611
+ const e6 = Date.now() - (at ?? Date.now()), u3 = Math.floor(e6 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e6 % 6e4 / 1e3).toString().padStart(2, "0");
1587
1612
  a4.textContent = `${u3}:${m3}`;
1588
1613
  }, 1e3);
1589
1614
  })();
@@ -1591,12 +1616,12 @@ function injectModalHTML(e = "lookback") {
1591
1616
  }, 1e3);
1592
1617
  })();
1593
1618
  });
1594
- at == null ? void 0 : at.addEventListener("click", (e3) => {
1619
+ st == null ? void 0 : st.addEventListener("click", (e3) => {
1595
1620
  var _a2;
1596
1621
  if (e3.target.closest("#sf-issue-submit-btn")) {
1597
- const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = lt.mode;
1622
+ const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = it.mode;
1598
1623
  let u2, m3;
1599
- if (lt.description = e4, "startnow" === a3) u2 = ct ?? Date.now() - 3e5, m3 = ut ?? Date.now();
1624
+ if (it.description = e4, "startnow" === a3) u2 = at ?? Date.now() - 3e5, m3 = lt ?? Date.now();
1600
1625
  else {
1601
1626
  const e5 = 60 * Number((w2 == null ? void 0 : w2.value) || "2") * 1e3;
1602
1627
  m3 = Date.now(), u2 = m3 - e5;
@@ -1605,9 +1630,9 @@ function injectModalHTML(e = "lookback") {
1605
1630
  var _a3, _b;
1606
1631
  try {
1607
1632
  showTriageStatusModal(true);
1608
- const m4 = await createTriageFromRecorder(it.apiKey, it.backendApi, (function getSessionIdSafely() {
1609
- if (!it.resolveSessionId) throw new Error("getSessionId not defined");
1610
- return it.resolveSessionId();
1633
+ const m4 = await createTriageFromRecorder(ot.apiKey, ot.backendApi, (function getSessionIdSafely() {
1634
+ if (!ot.resolveSessionId) throw new Error("getSessionId not defined");
1635
+ return ot.resolveSessionId();
1611
1636
  })(), e5, a4, u3), w3 = (_b = (_a3 = m4 == null ? void 0 : m4.data) == null ? void 0 : _a3.createTriageFromRecorder) == null ? void 0 : _b.id;
1612
1637
  w3 ? showTriageStatusModal(false, w3) : (console.error("No Triage ID returned from backend."), showTriageStatusModal(false, null));
1613
1638
  } catch (e6) {
@@ -1616,29 +1641,29 @@ function injectModalHTML(e = "lookback") {
1616
1641
  })(`${u2}`, `${m3}`, e4);
1617
1642
  }
1618
1643
  });
1619
- })(), it.deactivateIsolation = activateModalIsolation(at);
1644
+ })(), ot.deactivateIsolation = activateModalIsolation(st);
1620
1645
  }
1621
1646
  function setActiveTab(e) {
1622
- lt.mode = e;
1623
- const a = at == null ? void 0 : at.querySelector("#sf-tab-lookback"), u = at == null ? void 0 : at.querySelector("#sf-tab-startnow");
1647
+ it.mode = e;
1648
+ const a = st == null ? void 0 : st.querySelector("#sf-tab-lookback"), u = st == null ? void 0 : st.querySelector("#sf-tab-startnow");
1624
1649
  "lookback" === e ? (a.style.background = "white", a.style.color = "#0F172A", u.style.background = "transparent", u.style.color = "#64748B") : (u.style.background = "white", u.style.color = "#0F172A", a.style.background = "transparent", a.style.color = "#64748B");
1625
1650
  }
1626
1651
  function updateModeSpecificUI(e) {
1627
1652
  const a = document.querySelector("#sf-issue-mode-info div"), u = document.getElementById("sf-issue-submit-btn"), m2 = document.getElementById("sf-record-button-container"), w2 = document.getElementById("sf-recording-timer-label"), b2 = document.getElementById("sf-recording-timer-display"), C2 = document.getElementById("sf-modal-footer"), x2 = document.getElementById("sf-lookback-container");
1628
1653
  if (a && u && m2 && w2 && b2 && C2 && x2) if ("startnow" === e) {
1629
1654
  m2.style.display = "block", x2.style.display = "none", C2.style.justifyContent = "space-between", a.textContent = "I want to reproduce the issue right now.";
1630
- const e2 = null !== ct && null !== ut;
1631
- if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", ct && ut) {
1632
- const e3 = Math.floor((ut - ct) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1655
+ const e2 = null !== at && null !== lt;
1656
+ if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", at && lt) {
1657
+ const e3 = Math.floor((lt - at) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1633
1658
  w2.style.display = "block", b2.textContent = `${a2}:${u2}`;
1634
1659
  } else w2.style.display = "none";
1635
1660
  } else m2.style.display = "none", w2.style.display = "none", x2.style.display = "block", C2.style.justifyContent = "flex-end", a.textContent = "Something already happened. Capture the past few minutes.", u.disabled = false, u.style.opacity = "1", u.style.cursor = "pointer";
1636
1661
  }
1637
1662
  async function stopRecording() {
1638
1663
  var _a2;
1639
- ut = Date.now(), dt = false, pt && clearInterval(pt), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1664
+ lt = Date.now(), ut = false, ct && clearInterval(ct), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1640
1665
  try {
1641
- const { disableFunctionSpanTracking: e } = await Promise.resolve().then(() => we);
1666
+ const { disableFunctionSpanTracking: e } = await Promise.resolve().then(() => ge);
1642
1667
  e();
1643
1668
  } catch (e) {
1644
1669
  console.error("[Report Issue] Failed to disable function span tracking:", e);
@@ -1651,17 +1676,17 @@ async function stopRecording() {
1651
1676
  a2 && (a2.textContent = "Re-record");
1652
1677
  }
1653
1678
  const a = document.getElementById("sf-recording-timer-label"), u = document.getElementById("sf-recording-timer-display");
1654
- if (a && u && ct && ut) {
1655
- const e2 = Math.floor((ut - ct) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1679
+ if (a && u && at && lt) {
1680
+ const e2 = Math.floor((lt - at) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1656
1681
  u.textContent = `${m3}:${w3}`, a.style.display = "block";
1657
1682
  }
1658
1683
  const m2 = document.getElementById("sf-issue-description");
1659
- m2 && (m2.value = lt.description);
1684
+ m2 && (m2.value = it.description);
1660
1685
  const w2 = document.querySelector('input[value="startnow"]');
1661
1686
  w2 && (w2.checked = true);
1662
1687
  const b2 = document.getElementById("sf-inline-record-chip"), C2 = document.getElementById("sf-inline-record-timer");
1663
1688
  if (b2 && C2) {
1664
- const e2 = Math.floor(((ut ?? 0) - (ct ?? 0)) / 1e3), a2 = Math.floor(e2 / 60).toString().padStart(2, "0"), u2 = Math.floor(e2 % 60).toString().padStart(2, "0");
1689
+ const e2 = Math.floor(((lt ?? 0) - (at ?? 0)) / 1e3), a2 = Math.floor(e2 / 60).toString().padStart(2, "0"), u2 = Math.floor(e2 % 60).toString().padStart(2, "0");
1665
1690
  C2.textContent = `${a2}:${u2}`, C2.style.color = "black", b2.style.display = "flex";
1666
1691
  }
1667
1692
  const x2 = document.getElementById("sf-issue-submit-btn");
@@ -1674,7 +1699,7 @@ function showTriageStatusModal(e, a) {
1674
1699
  var _a3, _b;
1675
1700
  (_a3 = document.getElementById("sf-report-issue-modal")) == null ? void 0 : _a3.remove(), (_b = document.getElementById("sf-triage-status-modal")) == null ? void 0 : _b.remove();
1676
1701
  })();
1677
- const u = a ? `${it.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1702
+ const u = a ? `${ot.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1678
1703
  m2.id = "sf-triage-status-modal", Object.assign(m2.style, { position: "fixed", inset: "0", zIndex: "9998", display: "flex", alignItems: "center", justifyContent: "center" });
1679
1704
  const w2 = e ? "Reporting Issue..." : "Issue reported!", b2 = e ? '<p style="font-size:14px; color:#64748b; line-height:20px;">This may take ~10 seconds</p>' : "", C2 = e ? '<div style="display:flex; justify-content:center; align-items:center; padding: 40px 0;">\n <div style="width:24px; height:24px; border:2px solid #295dbf; border-top:2px solid white; border-radius:50%; animation:spin 1s linear infinite;"></div>\n </div>' : "", x2 = e ? "" : '<div id="sf-copied-status" style="display:none; font-size:12px; font-weight:500; color:white;\n background-color:#22c55e; padding:4px 8px; border-radius:6px; white-space:nowrap; align-items:center; gap:6px;">\n <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M21 7.5L9 19.5L3 13.5L5.25 11.25L9 15L18.75 5.25L21 7.5Z" fill="white"/>\n </svg>\n Copied\n </div>';
1680
1705
  m2.innerHTML = `
@@ -1736,7 +1761,7 @@ function showTriageStatusModal(e, a) {
1736
1761
  function fadeCardAndRemove(e, a, u = 300) {
1737
1762
  a.style.opacity = "0", a.addEventListener("transitionend", () => e.remove(), { once: true }), setTimeout(() => e.remove(), u + 100);
1738
1763
  }
1739
- var ht = Object.defineProperty, b$1 = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? ht(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), gt = Object.defineProperty, xn = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? gt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), yt = ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(yt || {});
1764
+ var pt = Object.defineProperty, b$1 = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? pt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), dt = Object.defineProperty, xn = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? dt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), ht = ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(ht || {});
1740
1765
  function vr(e) {
1741
1766
  return e.nodeType === e.ELEMENT_NODE;
1742
1767
  }
@@ -1778,7 +1803,7 @@ function kr(e) {
1778
1803
  })(e.cssText);
1779
1804
  return a || e.cssText;
1780
1805
  }
1781
- let wt = class {
1806
+ let gt = class {
1782
1807
  constructor() {
1783
1808
  xn(this, "idNodeMap", /* @__PURE__ */ new Map()), xn(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
1784
1809
  }
@@ -1830,7 +1855,7 @@ function Zt({ element: e, maskInputOptions: a, tagName: u, type: m2, value: w2,
1830
1855
  function fe(e) {
1831
1856
  return e.toLowerCase();
1832
1857
  }
1833
- const St = "__rrweb_original__";
1858
+ const yt = "__rrweb_original__";
1834
1859
  function Yt(e) {
1835
1860
  const a = e.type;
1836
1861
  return e.hasAttribute("data-rr-is-password") ? "password" : a ? fe(a) : null;
@@ -1845,19 +1870,19 @@ function xr(e, a) {
1845
1870
  const m2 = u.pathname.match(/\.([0-9a-z]+)(?:$)/i);
1846
1871
  return (null == m2 ? void 0 : m2[1]) ?? null;
1847
1872
  }
1848
- let bt = 1;
1849
- const vt = new RegExp("[^a-z0-9-_:]");
1873
+ let wt = 1;
1874
+ const St = new RegExp("[^a-z0-9-_:]");
1850
1875
  function Ir() {
1851
- return bt++;
1876
+ return wt++;
1852
1877
  }
1853
- let Ct, kt;
1854
- const xt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Mt = /^(?:[a-z+]+:)?\/\//i, It = /^www\..*/i, Et = /^(data:)([^,]*),(.*)/i;
1878
+ let bt, vt;
1879
+ const Ct = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, kt = /^(?:[a-z+]+:)?\/\//i, xt = /^www\..*/i, Mt = /^(data:)([^,]*),(.*)/i;
1855
1880
  function Pt(e, a) {
1856
- return (e || "").replace(xt, (e2, u, m2, w2, b2, C2) => {
1881
+ return (e || "").replace(Ct, (e2, u, m2, w2, b2, C2) => {
1857
1882
  const x2 = m2 || b2 || C2, I2 = u || w2 || "";
1858
1883
  if (!x2) return e2;
1859
- if (Mt.test(x2) || It.test(x2)) return `url(${I2}${x2}${I2})`;
1860
- if (Et.test(x2)) return `url(${I2}${x2}${I2})`;
1884
+ if (kt.test(x2) || xt.test(x2)) return `url(${I2}${x2}${I2})`;
1885
+ if (Mt.test(x2)) return `url(${I2}${x2}${I2})`;
1861
1886
  if ("/" === x2[0]) return `url(${I2}${(function Ei(e3) {
1862
1887
  let a2 = "";
1863
1888
  return a2 = e3.indexOf("//") > -1 ? e3.split("/").slice(0, 3).join("/") : e3.split("/")[0], a2 = a2.split("?")[0], a2;
@@ -1868,8 +1893,8 @@ function Pt(e, a) {
1868
1893
  return `url(${I2}${_2.join("/")}${I2})`;
1869
1894
  });
1870
1895
  }
1871
- const Lt = /^[^ \t\n\r\u000c]+/, Rt = /^[, \t\n\r\u000c]+/;
1872
- const Dt = /* @__PURE__ */ new WeakMap();
1896
+ const It = /^[^ \t\n\r\u000c]+/, Et = /^[, \t\n\r\u000c]+/;
1897
+ const Lt = /* @__PURE__ */ new WeakMap();
1873
1898
  function At(e, a) {
1874
1899
  return a && "" !== a.trim() ? $t(e, a) : a;
1875
1900
  }
@@ -1877,8 +1902,8 @@ function Fi(e) {
1877
1902
  return !("svg" !== e.tagName && !e.ownerSVGElement);
1878
1903
  }
1879
1904
  function $t(e, a) {
1880
- let u = Dt.get(e);
1881
- if (u || (u = e.createElement("a"), Dt.set(e, u)), a) {
1905
+ let u = Lt.get(e);
1906
+ if (u || (u = e.createElement("a"), Lt.set(e, u)), a) {
1882
1907
  if (a.startsWith("blob:") || a.startsWith("data:")) return a;
1883
1908
  } else a = "";
1884
1909
  return u.setAttribute("href", a), u.href;
@@ -1893,8 +1918,8 @@ function Mr(e, a, u, m2) {
1893
1918
  return w2 ? (m4 = w2[0], u2 += m4.length, m4) : "";
1894
1919
  }
1895
1920
  const m3 = [];
1896
- for (; n(Rt), !(u2 >= a2.length); ) {
1897
- let w2 = n(Lt);
1921
+ for (; n(Et), !(u2 >= a2.length); ) {
1922
+ let w2 = n(It);
1898
1923
  if ("," === w2.slice(-1)) w2 = At(e2, w2.substring(0, w2.length - 1)), m3.push(w2);
1899
1924
  else {
1900
1925
  let b2 = "";
@@ -1964,9 +1989,9 @@ function zi(e, a) {
1964
1989
  })(u, m2);
1965
1990
  switch (e.nodeType) {
1966
1991
  case e.DOCUMENT_NODE:
1967
- return "CSS1Compat" !== e.compatMode ? { type: yt.Document, childNodes: [], compatMode: e.compatMode } : { type: yt.Document, childNodes: [] };
1992
+ return "CSS1Compat" !== e.compatMode ? { type: ht.Document, childNodes: [], compatMode: e.compatMode } : { type: ht.Document, childNodes: [] };
1968
1993
  case e.DOCUMENT_TYPE_NODE:
1969
- return { type: yt.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1994
+ return { type: ht.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1970
1995
  case e.ELEMENT_NODE:
1971
1996
  return (function Vi(e2, a2) {
1972
1997
  const { doc: u2, blockClass: m3, blockSelector: w3, inlineStylesheet: b3, maskInputOptions: C3 = {}, maskInputFn: x3, dataURLOptions: I3 = {}, inlineImages: _3, recordCanvas: O3, keepIframeSrcFn: E3, newlyAddedElement: D3 = false, rootId: F3 } = a2, U3 = (function Ui(e3, a3, u3) {
@@ -1984,7 +2009,7 @@ function zi(e, a) {
1984
2009
  })(e2, m3, w3), B3 = (function Oi(e3) {
1985
2010
  if (e3 instanceof HTMLFormElement) return "form";
1986
2011
  const a3 = fe(e3.tagName);
1987
- return vt.test(a3) ? "div" : a3;
2012
+ return St.test(a3) ? "div" : a3;
1988
2013
  })(e2);
1989
2014
  let $3 = {};
1990
2015
  const z2 = e2.attributes.length;
@@ -2013,7 +2038,7 @@ function zi(e, a) {
2013
2038
  const a3 = e3.getContext("2d");
2014
2039
  if (!a3) return true;
2015
2040
  for (let u3 = 0; u3 < e3.width; u3 += 50) for (let m4 = 0; m4 < e3.height; m4 += 50) {
2016
- const w4 = a3.getImageData, b4 = St in w4 ? w4[St] : w4;
2041
+ const w4 = a3.getImageData, b4 = yt in w4 ? w4[yt] : w4;
2017
2042
  if (new Uint32Array(b4.call(a3, u3, m4, Math.min(50, e3.width - u3), Math.min(50, e3.height - m4)).data.buffer).some((e4) => 0 !== e4)) return false;
2018
2043
  }
2019
2044
  return true;
@@ -2025,11 +2050,11 @@ function zi(e, a) {
2025
2050
  }
2026
2051
  }
2027
2052
  if ("img" === B3 && _3) {
2028
- Ct || (Ct = u2.createElement("canvas"), kt = Ct.getContext("2d"));
2053
+ bt || (bt = u2.createElement("canvas"), vt = bt.getContext("2d"));
2029
2054
  const a3 = e2, m4 = a3.currentSrc || a3.getAttribute("src") || "<unknown-src>", w4 = a3.crossOrigin, A = () => {
2030
2055
  a3.removeEventListener("load", A);
2031
2056
  try {
2032
- Ct.width = a3.naturalWidth, Ct.height = a3.naturalHeight, kt.drawImage(a3, 0, 0), $3.rr_dataURL = Ct.toDataURL(I3.type, I3.quality);
2057
+ bt.width = a3.naturalWidth, bt.height = a3.naturalHeight, vt.drawImage(a3, 0, 0), $3.rr_dataURL = bt.toDataURL(I3.type, I3.quality);
2033
2058
  } catch (e3) {
2034
2059
  if ("anonymous" !== a3.crossOrigin) return a3.crossOrigin = "anonymous", void (a3.complete && 0 !== a3.naturalWidth ? A() : a3.addEventListener("load", A));
2035
2060
  console.warn(`Cannot inline img src=${m4}! Error: ${e3}`);
@@ -2052,7 +2077,7 @@ function zi(e, a) {
2052
2077
  customElements.get(B3) && (j2 = true);
2053
2078
  } catch {
2054
2079
  }
2055
- return { type: yt.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2080
+ return { type: ht.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2056
2081
  })(e, { doc: u, blockClass: w2, blockSelector: b2, inlineStylesheet: x2, maskInputOptions: I2, maskInputFn: O2, dataURLOptions: E2, inlineImages: D2, recordCanvas: F2, keepIframeSrcFn: U2, newlyAddedElement: B2, rootId: $2 });
2057
2082
  case e.TEXT_NODE:
2058
2083
  return (function ji(e2, a2) {
@@ -2068,12 +2093,12 @@ function zi(e, a) {
2068
2093
  }
2069
2094
  x3 = Pt(x3, $t(a2.doc));
2070
2095
  }
2071
- return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e2.parentElement) : x3.replace(/[\S]/g, "*")), { type: yt.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2096
+ return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e2.parentElement) : x3.replace(/[\S]/g, "*")), { type: ht.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2072
2097
  })(e, { doc: u, needsMask: C2, maskTextFn: _2, rootId: $2 });
2073
2098
  case e.CDATA_SECTION_NODE:
2074
- return { type: yt.CDATA, textContent: "", rootId: $2 };
2099
+ return { type: ht.CDATA, textContent: "", rootId: $2 };
2075
2100
  case e.COMMENT_NODE:
2076
- return { type: yt.Comment, textContent: e.textContent || "", rootId: $2 };
2101
+ return { type: ht.Comment, textContent: e.textContent || "", rootId: $2 };
2077
2102
  default:
2078
2103
  return false;
2079
2104
  }
@@ -2089,21 +2114,21 @@ function Se(e, a) {
2089
2114
  if (!ee2) return console.warn(e, "not serialized"), null;
2090
2115
  let te2;
2091
2116
  te2 = m2.hasNode(e) ? m2.getId(e) : (function Gi(e2, a2) {
2092
- return !!(a2.comment && e2.type === yt.Comment || e2.type === yt.Element && (a2.script && ("script" === e2.tagName || "link" === e2.tagName && ("preload" === e2.attributes.rel || "modulepreload" === e2.attributes.rel) && "script" === e2.attributes.as || "link" === e2.tagName && "prefetch" === e2.attributes.rel && "string" == typeof e2.attributes.href && "js" === xr(e2.attributes.href)) || a2.headFavicon && ("link" === e2.tagName && "shortcut icon" === e2.attributes.rel || "meta" === e2.tagName && (N(e2.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e2.attributes.name) || "icon" === N(e2.attributes.rel) || "apple-touch-icon" === N(e2.attributes.rel) || "shortcut icon" === N(e2.attributes.rel))) || "meta" === e2.tagName && (a2.headMetaDescKeywords && N(e2.attributes.name).match(/^description|keywords$/) || a2.headMetaSocial && (N(e2.attributes.property).match(/^(og|twitter|fb):/) || N(e2.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e2.attributes.name)) || a2.headMetaRobots && ("robots" === N(e2.attributes.name) || "googlebot" === N(e2.attributes.name) || "bingbot" === N(e2.attributes.name)) || a2.headMetaHttpEquiv && void 0 !== e2.attributes["http-equiv"] || a2.headMetaAuthorship && ("author" === N(e2.attributes.name) || "generator" === N(e2.attributes.name) || "framework" === N(e2.attributes.name) || "publisher" === N(e2.attributes.name) || "progid" === N(e2.attributes.name) || N(e2.attributes.property).match(/^article:/) || N(e2.attributes.property).match(/^product:/)) || a2.headMetaVerification && ("google-site-verification" === N(e2.attributes.name) || "yandex-verification" === N(e2.attributes.name) || "csrf-token" === N(e2.attributes.name) || "p:domain_verify" === N(e2.attributes.name) || "verify-v1" === N(e2.attributes.name) || "verification" === N(e2.attributes.name) || "shopify-checkout-api-token" === N(e2.attributes.name)))));
2093
- })(ee2, F2) || !Q2 && ee2.type === yt.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2117
+ return !!(a2.comment && e2.type === ht.Comment || e2.type === ht.Element && (a2.script && ("script" === e2.tagName || "link" === e2.tagName && ("preload" === e2.attributes.rel || "modulepreload" === e2.attributes.rel) && "script" === e2.attributes.as || "link" === e2.tagName && "prefetch" === e2.attributes.rel && "string" == typeof e2.attributes.href && "js" === xr(e2.attributes.href)) || a2.headFavicon && ("link" === e2.tagName && "shortcut icon" === e2.attributes.rel || "meta" === e2.tagName && (N(e2.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e2.attributes.name) || "icon" === N(e2.attributes.rel) || "apple-touch-icon" === N(e2.attributes.rel) || "shortcut icon" === N(e2.attributes.rel))) || "meta" === e2.tagName && (a2.headMetaDescKeywords && N(e2.attributes.name).match(/^description|keywords$/) || a2.headMetaSocial && (N(e2.attributes.property).match(/^(og|twitter|fb):/) || N(e2.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e2.attributes.name)) || a2.headMetaRobots && ("robots" === N(e2.attributes.name) || "googlebot" === N(e2.attributes.name) || "bingbot" === N(e2.attributes.name)) || a2.headMetaHttpEquiv && void 0 !== e2.attributes["http-equiv"] || a2.headMetaAuthorship && ("author" === N(e2.attributes.name) || "generator" === N(e2.attributes.name) || "framework" === N(e2.attributes.name) || "publisher" === N(e2.attributes.name) || "progid" === N(e2.attributes.name) || N(e2.attributes.property).match(/^article:/) || N(e2.attributes.property).match(/^product:/)) || a2.headMetaVerification && ("google-site-verification" === N(e2.attributes.name) || "yandex-verification" === N(e2.attributes.name) || "csrf-token" === N(e2.attributes.name) || "p:domain_verify" === N(e2.attributes.name) || "verify-v1" === N(e2.attributes.name) || "verification" === N(e2.attributes.name) || "shopify-checkout-api-token" === N(e2.attributes.name)))));
2118
+ })(ee2, F2) || !Q2 && ee2.type === ht.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2094
2119
  const ne2 = Object.assign(ee2, { id: te2 });
2095
2120
  if (m2.add(e, ne2), -2 === te2) return null;
2096
2121
  z2 && z2(e);
2097
2122
  let re2 = !I2;
2098
- if (ne2.type === yt.Element) {
2123
+ if (ne2.type === ht.Element) {
2099
2124
  re2 = re2 && !ne2.needBlock, delete ne2.needBlock;
2100
2125
  const a2 = e.shadowRoot;
2101
2126
  a2 && ze(a2) && (ne2.isShadowHost = true);
2102
2127
  }
2103
- if ((ne2.type === yt.Document || ne2.type === yt.Element) && re2) {
2104
- F2.headWhitespace && ne2.type === yt.Element && "head" === ne2.tagName && (Q2 = false);
2128
+ if ((ne2.type === ht.Document || ne2.type === ht.Element) && re2) {
2129
+ F2.headWhitespace && ne2.type === ht.Element && "head" === ne2.tagName && (Q2 = false);
2105
2130
  const a2 = { doc: u, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, maskTextClass: C2, maskTextSelector: x2, skipChild: I2, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, preserveWhiteSpace: Q2, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2, onStylesheetLoad: q2, stylesheetLoadTimeout: H2, keepIframeSrcFn: J2 };
2106
- if (ne2.type !== yt.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
2131
+ if (ne2.type !== ht.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
2107
2132
  const e2 = Se(u2, a2);
2108
2133
  e2 && ne2.childNodes.push(e2);
2109
2134
  }
@@ -2112,7 +2137,7 @@ function Se(e, a) {
2112
2137
  m3 && (ze(e.shadowRoot) && (m3.isShadow = true), ne2.childNodes.push(m3));
2113
2138
  }
2114
2139
  }
2115
- return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === yt.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
2140
+ return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === ht.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
2116
2141
  const m3 = e2.contentWindow;
2117
2142
  if (!m3) return;
2118
2143
  let w3, b3 = false;
@@ -2138,7 +2163,7 @@ function Se(e, a) {
2138
2163
  const u2 = Se(a2, { doc: a2, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, maskTextClass: C2, maskTextSelector: x2, skipChild: false, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, preserveWhiteSpace: Q2, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2, onStylesheetLoad: q2, stylesheetLoadTimeout: H2, keepIframeSrcFn: J2 });
2139
2164
  u2 && j2(e, u2);
2140
2165
  }
2141
- }, V2), ne2.type === yt.Element && "link" === ne2.tagName && "string" == typeof ne2.attributes.rel && ("stylesheet" === ne2.attributes.rel || "preload" === ne2.attributes.rel && "string" == typeof ne2.attributes.href && "css" === xr(ne2.attributes.href)) && (function Wi(e2, a2, u2) {
2166
+ }, V2), ne2.type === ht.Element && "link" === ne2.tagName && "string" == typeof ne2.attributes.rel && ("stylesheet" === ne2.attributes.rel || "preload" === ne2.attributes.rel && "string" == typeof ne2.attributes.href && "css" === xr(ne2.attributes.href)) && (function Wi(e2, a2, u2) {
2142
2167
  let m3, w3 = false;
2143
2168
  try {
2144
2169
  m3 = e2.sheet;
@@ -2178,13 +2203,13 @@ function $i(e) {
2178
2203
  } });
2179
2204
  }), u;
2180
2205
  }
2181
- var Ft = { exports: {} }, Ut = String, Rr = function() {
2182
- return { isColorSupported: false, reset: Ut, bold: Ut, dim: Ut, italic: Ut, underline: Ut, inverse: Ut, hidden: Ut, strikethrough: Ut, black: Ut, red: Ut, green: Ut, yellow: Ut, blue: Ut, magenta: Ut, cyan: Ut, white: Ut, gray: Ut, bgBlack: Ut, bgRed: Ut, bgGreen: Ut, bgYellow: Ut, bgBlue: Ut, bgMagenta: Ut, bgCyan: Ut, bgWhite: Ut, blackBright: Ut, redBright: Ut, greenBright: Ut, yellowBright: Ut, blueBright: Ut, magentaBright: Ut, cyanBright: Ut, whiteBright: Ut, bgBlackBright: Ut, bgRedBright: Ut, bgGreenBright: Ut, bgYellowBright: Ut, bgBlueBright: Ut, bgMagentaBright: Ut, bgCyanBright: Ut, bgWhiteBright: Ut };
2206
+ var Rt = { exports: {} }, Dt = String, Rr = function() {
2207
+ return { isColorSupported: false, reset: Dt, bold: Dt, dim: Dt, italic: Dt, underline: Dt, inverse: Dt, hidden: Dt, strikethrough: Dt, black: Dt, red: Dt, green: Dt, yellow: Dt, blue: Dt, magenta: Dt, cyan: Dt, white: Dt, gray: Dt, bgBlack: Dt, bgRed: Dt, bgGreen: Dt, bgYellow: Dt, bgBlue: Dt, bgMagenta: Dt, bgCyan: Dt, bgWhite: Dt, blackBright: Dt, redBright: Dt, greenBright: Dt, yellowBright: Dt, blueBright: Dt, magentaBright: Dt, cyanBright: Dt, whiteBright: Dt, bgBlackBright: Dt, bgRedBright: Dt, bgGreenBright: Dt, bgYellowBright: Dt, bgBlueBright: Dt, bgMagentaBright: Dt, bgCyanBright: Dt, bgWhiteBright: Dt };
2183
2208
  };
2184
- Ft.exports = Rr(), Ft.exports.createColors = Rr;
2185
- var Bt = Ft.exports;
2186
- const Wt = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2187
- let jt = Bt, Vt = Wt, Ht = class Lr extends Error {
2209
+ Rt.exports = Rr(), Rt.exports.createColors = Rr;
2210
+ var Ft = Rt.exports;
2211
+ const Ut = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2212
+ let Bt = Ft, Wt = Ut, jt = class Lr extends Error {
2188
2213
  constructor(e, a, u, m2, w2, b2) {
2189
2214
  super(e), this.name = "CssSyntaxError", this.reason = e, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a < "u" && typeof u < "u" && ("number" == typeof a ? (this.line = a, this.column = u) : (this.line = a.line, this.column = a.column, this.endLine = u.line, this.endColumn = u.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, Lr);
2190
2215
  }
@@ -2194,11 +2219,11 @@ let jt = Bt, Vt = Wt, Ht = class Lr extends Error {
2194
2219
  showSourceCode(e) {
2195
2220
  if (!this.source) return "";
2196
2221
  let a = this.source;
2197
- null == e && (e = jt.isColorSupported);
2222
+ null == e && (e = Bt.isColorSupported);
2198
2223
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
2199
2224
  if (e) {
2200
- let { bold: e2, gray: a2, red: u2 } = jt.createColors(true);
2201
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Vt && (i = (e3) => Vt(e3));
2225
+ let { bold: e2, gray: a2, red: u2 } = Bt.createColors(true);
2226
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Wt && (i = (e3) => Wt(e3));
2202
2227
  }
2203
2228
  let u = a.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u.length), b2 = String(w2).length;
2204
2229
  return u.slice(m2, w2).map((e2, a2) => {
@@ -2219,10 +2244,10 @@ let jt = Bt, Vt = Wt, Ht = class Lr extends Error {
2219
2244
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
2220
2245
  }
2221
2246
  };
2222
- var Kt = Ht;
2223
- Ht.default = Ht;
2224
- const Jt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2225
- let Xt = class {
2247
+ var Vt = jt;
2248
+ jt.default = jt;
2249
+ const Ht = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2250
+ let Kt = class {
2226
2251
  constructor(e) {
2227
2252
  this.builder = e;
2228
2253
  }
@@ -2274,7 +2299,7 @@ let Xt = class {
2274
2299
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
2275
2300
  let w2 = e.parent;
2276
2301
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
2277
- if (!w2) return Jt[u];
2302
+ if (!w2) return Ht[u];
2278
2303
  let b2 = e.root();
2279
2304
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
2280
2305
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -2286,7 +2311,7 @@ let Xt = class {
2286
2311
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
2287
2312
  });
2288
2313
  }
2289
- return typeof m2 > "u" && (m2 = Jt[u]), b2.rawCache[u] = m2, m2;
2314
+ return typeof m2 > "u" && (m2 = Ht[u]), b2.rawCache[u] = m2, m2;
2290
2315
  }
2291
2316
  rawBeforeClose(e) {
2292
2317
  let a;
@@ -2362,17 +2387,17 @@ let Xt = class {
2362
2387
  this[e.type](e, a);
2363
2388
  }
2364
2389
  };
2365
- var Qt = Xt;
2366
- Xt.default = Xt;
2367
- let en = Qt;
2390
+ var Jt = Kt;
2391
+ Kt.default = Kt;
2392
+ let Xt = Jt;
2368
2393
  function ks(e, a) {
2369
- new en(a).stringify(e);
2394
+ new Xt(a).stringify(e);
2370
2395
  }
2371
- var tn = ks;
2396
+ var Qt = ks;
2372
2397
  ks.default = ks;
2373
- var nn = {};
2374
- nn.isClean = Symbol("isClean"), nn.my = Symbol("my");
2375
- let rn = Kt, on = Qt, sn = tn, { isClean: an, my: ln } = nn;
2398
+ var en = {};
2399
+ en.isClean = Symbol("isClean"), en.my = Symbol("my");
2400
+ let tn = Vt, nn = Jt, rn = Qt, { isClean: on, my: sn } = en;
2376
2401
  function Cs(e, a) {
2377
2402
  let u = new e.constructor();
2378
2403
  for (let m2 in e) {
@@ -2394,12 +2419,12 @@ function Pe(e, a) {
2394
2419
  }
2395
2420
  return w2;
2396
2421
  }
2397
- let cn = class {
2422
+ let an = class {
2398
2423
  get proxyOf() {
2399
2424
  return this;
2400
2425
  }
2401
2426
  constructor(e = {}) {
2402
- this.raws = {}, this[an] = false, this[ln] = true;
2427
+ this.raws = {}, this[on] = false, this[sn] = true;
2403
2428
  for (let a in e) if ("nodes" === a) {
2404
2429
  this.nodes = [];
2405
2430
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -2443,19 +2468,19 @@ let cn = class {
2443
2468
  let { end: u, start: m2 } = this.rangeBy(a);
2444
2469
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
2445
2470
  }
2446
- return new rn(e);
2471
+ return new tn(e);
2447
2472
  }
2448
2473
  getProxyProcessor() {
2449
2474
  return { get: (e, a) => "proxyOf" === a ? e : "root" === a ? () => e.root().toProxy() : e[a], set: (e, a, u) => (e[a] === u || (e[a] = u, ("prop" === a || "value" === a || "name" === a || "params" === a || "important" === a || "text" === a) && e.markDirty()), true) };
2450
2475
  }
2451
2476
  markClean() {
2452
- this[an] = true;
2477
+ this[on] = true;
2453
2478
  }
2454
2479
  markDirty() {
2455
- if (this[an]) {
2456
- this[an] = false;
2480
+ if (this[on]) {
2481
+ this[on] = false;
2457
2482
  let e = this;
2458
- for (; e = e.parent; ) e[an] = false;
2483
+ for (; e = e.parent; ) e[on] = false;
2459
2484
  }
2460
2485
  }
2461
2486
  next() {
@@ -2491,7 +2516,7 @@ let cn = class {
2491
2516
  return (u.line < a.line || u.line === a.line && u.column <= a.column) && (u = { column: a.column + 1, line: a.line }), { end: u, start: a };
2492
2517
  }
2493
2518
  raw(e, a) {
2494
- return new on().raw(this, e, a);
2519
+ return new nn().raw(this, e, a);
2495
2520
  }
2496
2521
  remove() {
2497
2522
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -2528,7 +2553,7 @@ let cn = class {
2528
2553
  toProxy() {
2529
2554
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
2530
2555
  }
2531
- toString(e = sn) {
2556
+ toString(e = rn) {
2532
2557
  e.stringify && (e = e.stringify);
2533
2558
  let a = "";
2534
2559
  return e(this, (e2) => {
@@ -2541,16 +2566,16 @@ let cn = class {
2541
2566
  return e.warn(a, m2);
2542
2567
  }
2543
2568
  };
2544
- var un = cn;
2545
- cn.default = cn;
2546
- let pn = un, dn = class extends pn {
2569
+ var ln = an;
2570
+ an.default = an;
2571
+ let cn = ln, un = class extends cn {
2547
2572
  constructor(e) {
2548
2573
  super(e), this.type = "comment";
2549
2574
  }
2550
2575
  };
2551
- var hn = dn;
2552
- dn.default = dn;
2553
- let fn = un, mn = class extends fn {
2576
+ var pn = un;
2577
+ un.default = un;
2578
+ let dn = ln, hn = class extends dn {
2554
2579
  get variable() {
2555
2580
  return this.prop.startsWith("--") || "$" === this.prop[0];
2556
2581
  }
@@ -2558,16 +2583,16 @@ let fn = un, mn = class extends fn {
2558
2583
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
2559
2584
  }
2560
2585
  };
2561
- var gn = mn;
2562
- mn.default = mn;
2563
- let yn, wn, Sn, bn, Mn = hn, In = gn, _n = un, { isClean: On, my: En } = nn;
2586
+ var fn = hn;
2587
+ hn.default = hn;
2588
+ let mn, gn, yn, wn, Sn = pn, bn = fn, Mn = ln, { isClean: In, my: _n } = en;
2564
2589
  function _r(e) {
2565
2590
  return e.map((e2) => (e2.nodes && (e2.nodes = _r(e2.nodes)), delete e2.source, e2));
2566
2591
  }
2567
2592
  function Wr(e) {
2568
- if (e[On] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2593
+ if (e[In] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2569
2594
  }
2570
- let Ln = class zr extends _n {
2595
+ let On = class zr extends Mn {
2571
2596
  get first() {
2572
2597
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
2573
2598
  }
@@ -2619,7 +2644,7 @@ let Ln = class zr extends _n {
2619
2644
  return this.markDirty(), this;
2620
2645
  }
2621
2646
  normalize(e, a) {
2622
- if ("string" == typeof e) e = _r(wn(e).nodes);
2647
+ if ("string" == typeof e) e = _r(gn(e).nodes);
2623
2648
  else if (typeof e > "u") e = [];
2624
2649
  else if (Array.isArray(e)) {
2625
2650
  e = e.slice(0);
@@ -2630,14 +2655,14 @@ let Ln = class zr extends _n {
2630
2655
  } else if (e.type) e = [e];
2631
2656
  else if (e.prop) {
2632
2657
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
2633
- "string" != typeof e.value && (e.value = String(e.value)), e = [new In(e)];
2634
- } else if (e.selector || e.selectors) e = [new bn(e)];
2635
- else if (e.name) e = [new yn(e)];
2658
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new bn(e)];
2659
+ } else if (e.selector || e.selectors) e = [new wn(e)];
2660
+ else if (e.name) e = [new mn(e)];
2636
2661
  else {
2637
2662
  if (!e.text) throw new Error("Unknown node type in node creation");
2638
- e = [new Mn(e)];
2663
+ e = [new Sn(e)];
2639
2664
  }
2640
- return e.map((e2) => (e2[En] || zr.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[On] && Wr(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
2665
+ return e.map((e2) => (e2[_n] || zr.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[In] && Wr(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
2641
2666
  }
2642
2667
  prepend(...e) {
2643
2668
  e = e.reverse();
@@ -2713,22 +2738,22 @@ let Ln = class zr extends _n {
2713
2738
  }));
2714
2739
  }
2715
2740
  };
2716
- Ln.registerParse = (e) => {
2741
+ On.registerParse = (e) => {
2742
+ gn = e;
2743
+ }, On.registerRule = (e) => {
2717
2744
  wn = e;
2718
- }, Ln.registerRule = (e) => {
2719
- bn = e;
2720
- }, Ln.registerAtRule = (e) => {
2745
+ }, On.registerAtRule = (e) => {
2746
+ mn = e;
2747
+ }, On.registerRoot = (e) => {
2721
2748
  yn = e;
2722
- }, Ln.registerRoot = (e) => {
2723
- Sn = e;
2724
2749
  };
2725
- var Rn = Ln;
2726
- Ln.default = Ln, Ln.rebuild = (e) => {
2727
- "atrule" === e.type ? Object.setPrototypeOf(e, yn.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, bn.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, In.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Mn.prototype) : "root" === e.type && Object.setPrototypeOf(e, Sn.prototype), e[En] = true, e.nodes && e.nodes.forEach((e2) => {
2728
- Ln.rebuild(e2);
2750
+ var En = On;
2751
+ On.default = On, On.rebuild = (e) => {
2752
+ "atrule" === e.type ? Object.setPrototypeOf(e, mn.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, wn.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, bn.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Sn.prototype) : "root" === e.type && Object.setPrototypeOf(e, yn.prototype), e[_n] = true, e.nodes && e.nodes.forEach((e2) => {
2753
+ On.rebuild(e2);
2729
2754
  });
2730
2755
  };
2731
- let An = Rn, Tn = class extends An {
2756
+ let Ln = En, Rn = class extends Ln {
2732
2757
  constructor(e) {
2733
2758
  super(e), this.type = "atrule";
2734
2759
  }
@@ -2739,38 +2764,38 @@ let An = Rn, Tn = class extends An {
2739
2764
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
2740
2765
  }
2741
2766
  };
2742
- var Nn = Tn;
2743
- Tn.default = Tn, An.registerAtRule(Tn);
2744
- let Pn, Dn, Fn = Rn, Un = class extends Fn {
2767
+ var An = Rn;
2768
+ Rn.default = Rn, Ln.registerAtRule(Rn);
2769
+ let Tn, Nn, Pn = En, Dn = class extends Pn {
2745
2770
  constructor(e) {
2746
2771
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
2747
2772
  }
2748
2773
  toResult(e = {}) {
2749
- return new Pn(new Dn(), this, e).stringify();
2774
+ return new Tn(new Nn(), this, e).stringify();
2750
2775
  }
2751
2776
  };
2752
- Un.registerLazyResult = (e) => {
2753
- Pn = e;
2754
- }, Un.registerProcessor = (e) => {
2755
- Dn = e;
2777
+ Dn.registerLazyResult = (e) => {
2778
+ Tn = e;
2779
+ }, Dn.registerProcessor = (e) => {
2780
+ Nn = e;
2756
2781
  };
2757
- var Bn = Un;
2758
- Un.default = Un;
2759
- var Wn = { nanoid: (e = 21) => {
2782
+ var Fn = Dn;
2783
+ Dn.default = Dn;
2784
+ var Un = { nanoid: (e = 21) => {
2760
2785
  let a = "", u = 0 | e;
2761
2786
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
2762
2787
  return a;
2763
2788
  } };
2764
- let { existsSync: zn, readFileSync: jn } = Wt, { dirname: Vn, join: qn } = Wt, { SourceMapConsumer: Zn, SourceMapGenerator: Kn } = Wt;
2765
- let Qn = class {
2789
+ let { existsSync: Bn, readFileSync: Wn } = Ut, { dirname: zn, join: jn } = Ut, { SourceMapConsumer: Vn, SourceMapGenerator: qn } = Ut;
2790
+ let Zn = class {
2766
2791
  constructor(e, a) {
2767
2792
  if (false === a.map) return;
2768
2793
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
2769
2794
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
2770
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Vn(this.mapFile)), m2 && (this.text = m2);
2795
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = zn(this.mapFile)), m2 && (this.text = m2);
2771
2796
  }
2772
2797
  consumer() {
2773
- return this.consumerCache || (this.consumerCache = new Zn(this.text)), this.consumerCache;
2798
+ return this.consumerCache || (this.consumerCache = new Vn(this.text)), this.consumerCache;
2774
2799
  }
2775
2800
  decodeInline(e) {
2776
2801
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -2795,15 +2820,15 @@ let Qn = class {
2795
2820
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
2796
2821
  }
2797
2822
  loadFile(e) {
2798
- if (this.root = Vn(e), zn(e)) return this.mapFile = e, jn(e, "utf-8").toString().trim();
2823
+ if (this.root = zn(e), Bn(e)) return this.mapFile = e, Wn(e, "utf-8").toString().trim();
2799
2824
  }
2800
2825
  loadMap(e, a) {
2801
2826
  if (false === a) return false;
2802
2827
  if (a) {
2803
2828
  if ("string" == typeof a) return a;
2804
2829
  if ("function" != typeof a) {
2805
- if (a instanceof Zn) return Kn.fromSourceMap(a).toString();
2806
- if (a instanceof Kn) return a.toString();
2830
+ if (a instanceof Vn) return qn.fromSourceMap(a).toString();
2831
+ if (a instanceof qn) return a.toString();
2807
2832
  if (this.isMap(a)) return JSON.stringify(a);
2808
2833
  throw new Error("Unsupported previous source map format: " + a.toString());
2809
2834
  }
@@ -2819,7 +2844,7 @@ let Qn = class {
2819
2844
  if (this.inline) return this.decodeInline(this.annotation);
2820
2845
  if (this.annotation) {
2821
2846
  let a2 = this.annotation;
2822
- return e && (a2 = qn(Vn(e), a2)), this.loadFile(a2);
2847
+ return e && (a2 = jn(zn(e), a2)), this.loadFile(a2);
2823
2848
  }
2824
2849
  }
2825
2850
  }
@@ -2830,23 +2855,23 @@ let Qn = class {
2830
2855
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
2831
2856
  }
2832
2857
  };
2833
- var nr = Qn;
2834
- Qn.default = Qn;
2835
- let { nanoid: rr } = Wn, { isAbsolute: or, resolve: sr } = Wt, { SourceMapConsumer: ir, SourceMapGenerator: ar } = Wt, { fileURLToPath: lr, pathToFileURL: cr } = Wt, ur = Kt, pr = nr, dr = Wt, hr = Symbol("fromOffsetCache"), fr = !(!ir || !ar), mr = !(!sr || !or), gr = class {
2858
+ var Kn = Zn;
2859
+ Zn.default = Zn;
2860
+ let { nanoid: Qn } = Un, { isAbsolute: nr, resolve: rr } = Ut, { SourceMapConsumer: or, SourceMapGenerator: sr } = Ut, { fileURLToPath: ir, pathToFileURL: ar } = Ut, lr = Vt, cr = Kn, ur = Ut, pr = Symbol("fromOffsetCache"), dr = !(!or || !sr), hr = !(!rr || !nr), fr = class {
2836
2861
  get from() {
2837
2862
  return this.file || this.id;
2838
2863
  }
2839
2864
  constructor(e, a = {}) {
2840
2865
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
2841
- if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!mr || /^\w+:\/\//.test(a.from) || or(a.from) ? this.file = a.from : this.file = sr(a.from)), mr && fr) {
2842
- let e2 = new pr(this.css, a);
2866
+ if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!hr || /^\w+:\/\//.test(a.from) || nr(a.from) ? this.file = a.from : this.file = rr(a.from)), hr && dr) {
2867
+ let e2 = new cr(this.css, a);
2843
2868
  if (e2.text) {
2844
2869
  this.map = e2;
2845
2870
  let a2 = e2.consumer().file;
2846
2871
  !this.file && a2 && (this.file = this.mapResolve(a2));
2847
2872
  }
2848
2873
  }
2849
- this.file || (this.id = "<input css " + rr(6) + ">"), this.map && (this.map.file = this.from);
2874
+ this.file || (this.id = "<input css " + Qn(6) + ">"), this.map && (this.map.file = this.from);
2850
2875
  }
2851
2876
  error(e, a, u, m2 = {}) {
2852
2877
  let w2, b2, C2;
@@ -2865,17 +2890,17 @@ let { nanoid: rr } = Wn, { isAbsolute: or, resolve: sr } = Wt, { SourceMapConsum
2865
2890
  a = e2.line, u = e2.col;
2866
2891
  }
2867
2892
  let x2 = this.origin(a, u, b2, w2);
2868
- return C2 = x2 ? new ur(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new ur(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (cr && (C2.input.url = cr(this.file).toString()), C2.input.file = this.file), C2;
2893
+ return C2 = x2 ? new lr(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new lr(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (ar && (C2.input.url = ar(this.file).toString()), C2.input.file = this.file), C2;
2869
2894
  }
2870
2895
  fromOffset(e) {
2871
2896
  let a, u;
2872
- if (this[hr]) u = this[hr];
2897
+ if (this[pr]) u = this[pr];
2873
2898
  else {
2874
2899
  let e2 = this.css.split("\n");
2875
2900
  u = new Array(e2.length);
2876
2901
  let a2 = 0;
2877
2902
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
2878
- this[hr] = u;
2903
+ this[pr] = u;
2879
2904
  }
2880
2905
  a = u[u.length - 1];
2881
2906
  let m2 = 0;
@@ -2894,17 +2919,17 @@ let { nanoid: rr } = Wn, { isAbsolute: or, resolve: sr } = Wt, { SourceMapConsum
2894
2919
  return { col: e - u[m2] + 1, line: m2 + 1 };
2895
2920
  }
2896
2921
  mapResolve(e) {
2897
- return /^\w+:\/\//.test(e) ? e : sr(this.map.consumer().sourceRoot || this.map.root || ".", e);
2922
+ return /^\w+:\/\//.test(e) ? e : rr(this.map.consumer().sourceRoot || this.map.root || ".", e);
2898
2923
  }
2899
2924
  origin(e, a, u, m2) {
2900
2925
  if (!this.map) return false;
2901
2926
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
2902
2927
  if (!x2.source) return false;
2903
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = or(x2.source) ? cr(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || cr(this.map.mapFile));
2928
+ "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = nr(x2.source) ? ar(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ar(this.map.mapFile));
2904
2929
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
2905
2930
  if ("file:" === b2.protocol) {
2906
- if (!lr) throw new Error("file: protocol is not available in this PostCSS build");
2907
- I2.file = lr(b2);
2931
+ if (!ir) throw new Error("file: protocol is not available in this PostCSS build");
2932
+ I2.file = ir(b2);
2908
2933
  }
2909
2934
  let _2 = C2.sourceContentFor(x2.source);
2910
2935
  return _2 && (I2.source = _2), I2;
@@ -2915,9 +2940,9 @@ let { nanoid: rr } = Wn, { isAbsolute: or, resolve: sr } = Wt, { SourceMapConsum
2915
2940
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
2916
2941
  }
2917
2942
  };
2918
- var yr = gr;
2919
- gr.default = gr, dr && dr.registerInput && dr.registerInput(gr);
2920
- let wr, Sr, Cr = Rn, Ar = class extends Cr {
2943
+ var mr = fr;
2944
+ fr.default = fr, ur && ur.registerInput && ur.registerInput(fr);
2945
+ let gr, yr, wr = En, Sr = class extends wr {
2921
2946
  constructor(e) {
2922
2947
  super(e), this.type = "root", this.nodes || (this.nodes = []);
2923
2948
  }
@@ -2934,29 +2959,29 @@ let wr, Sr, Cr = Rn, Ar = class extends Cr {
2934
2959
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
2935
2960
  }
2936
2961
  toResult(e = {}) {
2937
- return new wr(new Sr(), this, e).stringify();
2962
+ return new gr(new yr(), this, e).stringify();
2938
2963
  }
2939
2964
  };
2940
- Ar.registerLazyResult = (e) => {
2941
- wr = e;
2942
- }, Ar.registerProcessor = (e) => {
2943
- Sr = e;
2965
+ Sr.registerLazyResult = (e) => {
2966
+ gr = e;
2967
+ }, Sr.registerProcessor = (e) => {
2968
+ yr = e;
2944
2969
  };
2945
- var Tr = Ar;
2946
- Ar.default = Ar, Cr.registerRoot(Ar);
2947
- let Nr = { comma: (e) => Nr.split(e, [","], true), space(e) {
2970
+ var Cr = Sr;
2971
+ Sr.default = Sr, wr.registerRoot(Sr);
2972
+ let Ar = { comma: (e) => Ar.split(e, [","], true), space(e) {
2948
2973
  let a = [" ", "\n", " "];
2949
- return Nr.split(e, a);
2974
+ return Ar.split(e, a);
2950
2975
  }, split(e, a, u) {
2951
2976
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
2952
2977
  for (let u2 of e) _2 ? _2 = false : "\\" === u2 ? _2 = true : x2 ? u2 === I2 && (x2 = false) : '"' === u2 || "'" === u2 ? (x2 = true, I2 = u2) : "(" === u2 ? C2 += 1 : ")" === u2 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a.includes(u2) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u2;
2953
2978
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
2954
2979
  } };
2955
- var Pr = Nr;
2956
- Nr.default = Nr;
2957
- let Dr = Rn, Fr = Pr, Ur = class extends Dr {
2980
+ var Tr = Ar;
2981
+ Ar.default = Ar;
2982
+ let Nr = En, Pr = Tr, Dr = class extends Nr {
2958
2983
  get selectors() {
2959
- return Fr.comma(this.selector);
2984
+ return Pr.comma(this.selector);
2960
2985
  }
2961
2986
  set selectors(e) {
2962
2987
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -2966,34 +2991,34 @@ let Dr = Rn, Fr = Pr, Ur = class extends Dr {
2966
2991
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
2967
2992
  }
2968
2993
  };
2969
- var Br = Ur;
2970
- Ur.default = Ur, Dr.registerRule(Ur);
2971
- let $r = Nn, jr = hn, Gr = gn, Vr = yr, qr = nr, Hr = Tr, Zr = Br;
2994
+ var Fr = Dr;
2995
+ Dr.default = Dr, Nr.registerRule(Dr);
2996
+ let Ur = An, Br = pn, $r = fn, jr = mr, Gr = Kn, Vr = Cr, qr = Fr;
2972
2997
  function Ze(e, a) {
2973
2998
  if (Array.isArray(e)) return e.map((e2) => Ze(e2));
2974
2999
  let { inputs: u, ...m2 } = e;
2975
3000
  if (u) {
2976
3001
  a = [];
2977
3002
  for (let e2 of u) {
2978
- let u2 = { ...e2, __proto__: Vr.prototype };
2979
- u2.map && (u2.map = { ...u2.map, __proto__: qr.prototype }), a.push(u2);
3003
+ let u2 = { ...e2, __proto__: jr.prototype };
3004
+ u2.map && (u2.map = { ...u2.map, __proto__: Gr.prototype }), a.push(u2);
2980
3005
  }
2981
3006
  }
2982
3007
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ze(e2, a))), m2.source) {
2983
3008
  let { inputId: e2, ...u2 } = m2.source;
2984
3009
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
2985
3010
  }
2986
- if ("root" === m2.type) return new Hr(m2);
2987
- if ("decl" === m2.type) return new Gr(m2);
2988
- if ("rule" === m2.type) return new Zr(m2);
2989
- if ("comment" === m2.type) return new jr(m2);
2990
- if ("atrule" === m2.type) return new $r(m2);
3011
+ if ("root" === m2.type) return new Vr(m2);
3012
+ if ("decl" === m2.type) return new $r(m2);
3013
+ if ("rule" === m2.type) return new qr(m2);
3014
+ if ("comment" === m2.type) return new Br(m2);
3015
+ if ("atrule" === m2.type) return new Ur(m2);
2991
3016
  throw new Error("Unknown node type: " + e.type);
2992
3017
  }
2993
- var Kr = Ze;
3018
+ var Hr = Ze;
2994
3019
  Ze.default = Ze;
2995
- let { dirname: Jr, relative: Yr, resolve: Xr, sep: Qr } = Wt, { SourceMapConsumer: eo, SourceMapGenerator: to } = Wt, { pathToFileURL: oo } = Wt, io = yr, ao = !(!eo || !to), lo = !!(Jr && Xr && Yr && Qr);
2996
- var co = class {
3020
+ let { dirname: Zr, relative: Kr, resolve: Jr, sep: Yr } = Ut, { SourceMapConsumer: Xr, SourceMapGenerator: Qr } = Ut, { pathToFileURL: eo } = Ut, to = mr, oo = !(!Xr || !Qr), io = !!(Zr && Jr && Kr && Yr);
3021
+ var ao = class {
2997
3022
  constructor(e, a, u, m2) {
2998
3023
  this.stringify = e, this.mapOpts = u.map || {}, this.root = a, this.opts = u, this.css = m2, this.originalCSS = m2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
2999
3024
  }
@@ -3005,8 +3030,8 @@ var co = class {
3005
3030
  }
3006
3031
  applyPrevMaps() {
3007
3032
  for (let e of this.previous()) {
3008
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Jr(e.file);
3009
- false === this.mapOpts.sourcesContent ? (a = new eo(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
3033
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Zr(e.file);
3034
+ false === this.mapOpts.sourcesContent ? (a = new Xr(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
3010
3035
  }
3011
3036
  }
3012
3037
  clearAnnotation() {
@@ -3016,7 +3041,7 @@ var co = class {
3016
3041
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
3017
3042
  }
3018
3043
  generate() {
3019
- if (this.clearAnnotation(), lo && ao && this.isMap()) return this.generateMap();
3044
+ if (this.clearAnnotation(), io && oo && this.isMap()) return this.generateMap();
3020
3045
  {
3021
3046
  let e = "";
3022
3047
  return this.stringify(this.root, (a) => {
@@ -3028,12 +3053,12 @@ var co = class {
3028
3053
  if (this.root) this.generateString();
3029
3054
  else if (1 === this.previous().length) {
3030
3055
  let e = this.previous()[0].consumer();
3031
- e.file = this.outputFile(), this.map = to.fromSourceMap(e, { ignoreInvalidMapping: true });
3032
- } else this.map = new to({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
3056
+ e.file = this.outputFile(), this.map = Qr.fromSourceMap(e, { ignoreInvalidMapping: true });
3057
+ } else this.map = new Qr({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
3033
3058
  return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
3034
3059
  }
3035
3060
  generateString() {
3036
- this.css = "", this.map = new to({ file: this.outputFile(), ignoreInvalidMapping: true });
3061
+ this.css = "", this.map = new Qr({ file: this.outputFile(), ignoreInvalidMapping: true });
3037
3062
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
3038
3063
  this.stringify(this.root, (C2, x2, I2) => {
3039
3064
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u, b2.generated.column = m2 - 1, x2.source && x2.source.start ? (b2.source = this.sourcePath(x2), b2.original.line = x2.source.start.line, b2.original.column = x2.source.start.column - 1, this.map.addMapping(b2)) : (b2.source = w2, b2.original.line = 1, b2.original.column = 0, this.map.addMapping(b2))), a = C2.match(/\n/g), a ? (u += a.length, e = C2.lastIndexOf("\n"), m2 = C2.length - e) : m2 += C2.length, x2 && "start" !== I2) {
@@ -3063,9 +3088,9 @@ var co = class {
3063
3088
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
3064
3089
  let a = this.memoizedPaths.get(e);
3065
3090
  if (a) return a;
3066
- let u = this.opts.to ? Jr(this.opts.to) : ".";
3067
- "string" == typeof this.mapOpts.annotation && (u = Jr(Xr(u, this.mapOpts.annotation)));
3068
- let m2 = Yr(u, e);
3091
+ let u = this.opts.to ? Zr(this.opts.to) : ".";
3092
+ "string" == typeof this.mapOpts.annotation && (u = Zr(Jr(u, this.mapOpts.annotation)));
3093
+ let m2 = Kr(u, e);
3069
3094
  return this.memoizedPaths.set(e, m2), m2;
3070
3095
  }
3071
3096
  previous() {
@@ -3076,7 +3101,7 @@ var co = class {
3076
3101
  }
3077
3102
  });
3078
3103
  else {
3079
- let e = new io(this.originalCSS, this.opts);
3104
+ let e = new to(this.originalCSS, this.opts);
3080
3105
  e.map && this.previousMaps.push(e.map);
3081
3106
  }
3082
3107
  return this.previousMaps;
@@ -3107,8 +3132,8 @@ var co = class {
3107
3132
  toFileUrl(e) {
3108
3133
  let a = this.memoizedFileURLs.get(e);
3109
3134
  if (a) return a;
3110
- if (oo) {
3111
- let a2 = oo(e).toString();
3135
+ if (eo) {
3136
+ let a2 = eo(e).toString();
3112
3137
  return this.memoizedFileURLs.set(e, a2), a2;
3113
3138
  }
3114
3139
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -3116,13 +3141,13 @@ var co = class {
3116
3141
  toUrl(e) {
3117
3142
  let a = this.memoizedURLs.get(e);
3118
3143
  if (a) return a;
3119
- "\\" === Qr && (e = e.replace(/\\/g, "/"));
3144
+ "\\" === Yr && (e = e.replace(/\\/g, "/"));
3120
3145
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
3121
3146
  return this.memoizedURLs.set(e, u), u;
3122
3147
  }
3123
3148
  };
3124
- const uo = /[\t\n\f\r "#'()/;[\\\]{}]/g, ho = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Mo = /.[\r\n"'(/\\]/, _o = /[\da-f]/i;
3125
- let Ao = Nn, No = hn, Po = gn, Do = Tr, Fo = Br, Xa = function(e, a = {}) {
3149
+ const lo = /[\t\n\f\r "#'()/;[\\\]{}]/g, co = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, uo = /.[\r\n"'(/\\]/, ho = /[\da-f]/i;
3150
+ let Mo = An, _o = pn, Ao = fn, No = Cr, Po = Fr, Xa = function(e, a = {}) {
3126
3151
  let u, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e.css.valueOf(), F2 = a.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
3127
3152
  function y2(a2) {
3128
3153
  throw e.error("Unclosed " + a2, B2);
@@ -3172,7 +3197,7 @@ let Ao = Nn, No = hn, Po = gn, Do = Tr, Fo = Br, Xa = function(e, a = {}) {
3172
3197
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
3173
3198
  } while (I2);
3174
3199
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3175
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || Mo.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3200
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || uo.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3176
3201
  break;
3177
3202
  case 39:
3178
3203
  case 34:
@@ -3190,31 +3215,31 @@ let Ao = Nn, No = hn, Po = gn, Do = Tr, Fo = Br, Xa = function(e, a = {}) {
3190
3215
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3191
3216
  break;
3192
3217
  case 64:
3193
- uo.lastIndex = B2 + 1, uo.test(D2), b2 = 0 === uo.lastIndex ? D2.length - 1 : uo.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3218
+ lo.lastIndex = B2 + 1, lo.test(D2), b2 = 0 === lo.lastIndex ? D2.length - 1 : lo.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3194
3219
  break;
3195
3220
  case 92:
3196
3221
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
3197
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, _o.test(D2.charAt(b2)))) {
3198
- for (; _o.test(D2.charAt(b2 + 1)); ) b2 += 1;
3222
+ if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, ho.test(D2.charAt(b2)))) {
3223
+ for (; ho.test(D2.charAt(b2 + 1)); ) b2 += 1;
3199
3224
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
3200
3225
  }
3201
3226
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3202
3227
  break;
3203
3228
  default:
3204
- 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (ho.lastIndex = B2 + 1, ho.test(D2), b2 = 0 === ho.lastIndex ? D2.length - 1 : ho.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3229
+ 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (co.lastIndex = B2 + 1, co.test(D2), b2 = 0 === co.lastIndex ? D2.length - 1 : co.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3205
3230
  }
3206
3231
  return B2++, x2;
3207
3232
  }, position: function S() {
3208
3233
  return B2;
3209
3234
  } };
3210
3235
  };
3211
- const Uo = { empty: true, space: true };
3212
- var $o = class {
3236
+ const Do = { empty: true, space: true };
3237
+ var Fo = class {
3213
3238
  constructor(e) {
3214
- this.input = e, this.root = new Do(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
3239
+ this.input = e, this.root = new No(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
3215
3240
  }
3216
3241
  atrule(e) {
3217
- let a = new Ao();
3242
+ let a = new Mo();
3218
3243
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
3219
3244
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
3220
3245
  for (; !this.tokenizer.endOfFile(); ) {
@@ -3266,7 +3291,7 @@ var $o = class {
3266
3291
  return false;
3267
3292
  }
3268
3293
  comment(e) {
3269
- let a = new No();
3294
+ let a = new _o();
3270
3295
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
3271
3296
  let u = e[1].slice(2, -2);
3272
3297
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -3279,7 +3304,7 @@ var $o = class {
3279
3304
  this.tokenizer = Xa(this.input);
3280
3305
  }
3281
3306
  decl(e, a) {
3282
- let u = new Po();
3307
+ let u = new Ao();
3283
3308
  this.init(u, e[0][2]);
3284
3309
  let m2, w2 = e[e.length - 1];
3285
3310
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Ha(e2) {
@@ -3328,7 +3353,7 @@ var $o = class {
3328
3353
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
3329
3354
  }
3330
3355
  emptyRule(e) {
3331
- let a = new Fo();
3356
+ let a = new Po();
3332
3357
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
3333
3358
  }
3334
3359
  end(e) {
@@ -3404,7 +3429,7 @@ var $o = class {
3404
3429
  }
3405
3430
  raw(e, a, u, m2) {
3406
3431
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
3407
- for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", Uo[x2] || Uo[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3432
+ for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", Do[x2] || Do[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3408
3433
  if (!O2) {
3409
3434
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
3410
3435
  e.raws[a] = { raw: m3, value: _2 };
@@ -3413,7 +3438,7 @@ var $o = class {
3413
3438
  }
3414
3439
  rule(e) {
3415
3440
  e.pop();
3416
- let a = new Fo();
3441
+ let a = new Po();
3417
3442
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
3418
3443
  }
3419
3444
  spacesAndCommentsFromEnd(e) {
@@ -3453,9 +3478,9 @@ var $o = class {
3453
3478
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
3454
3479
  }
3455
3480
  };
3456
- let jo = Rn, Go = yr, Vo = $o;
3481
+ let Uo = En, $o = mr, jo = Fo;
3457
3482
  function _t(e, a) {
3458
- let u = new Go(e, a), m2 = new Vo(u);
3483
+ let u = new $o(e, a), m2 = new jo(u);
3459
3484
  try {
3460
3485
  m2.parse();
3461
3486
  } catch (e2) {
@@ -3463,9 +3488,9 @@ function _t(e, a) {
3463
3488
  }
3464
3489
  return m2.root;
3465
3490
  }
3466
- var qo = _t;
3467
- _t.default = _t, jo.registerParse(_t);
3468
- let Ho = class {
3491
+ var Go = _t;
3492
+ _t.default = _t, Uo.registerParse(_t);
3493
+ let Vo = class {
3469
3494
  constructor(e, a = {}) {
3470
3495
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
3471
3496
  let e2 = a.node.rangeBy(a);
@@ -3477,9 +3502,9 @@ let Ho = class {
3477
3502
  return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
3478
3503
  }
3479
3504
  };
3480
- var Zo = Ho;
3481
- Ho.default = Ho;
3482
- let Ko = Zo, Jo = class {
3505
+ var qo = Vo;
3506
+ Vo.default = Vo;
3507
+ let Ho = qo, Zo = class {
3483
3508
  get content() {
3484
3509
  return this.css;
3485
3510
  }
@@ -3491,26 +3516,26 @@ let Ko = Zo, Jo = class {
3491
3516
  }
3492
3517
  warn(e, a = {}) {
3493
3518
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
3494
- let u = new Ko(e, a);
3519
+ let u = new Ho(e, a);
3495
3520
  return this.messages.push(u), u;
3496
3521
  }
3497
3522
  warnings() {
3498
3523
  return this.messages.filter((e) => "warning" === e.type);
3499
3524
  }
3500
3525
  };
3501
- var Yo = Jo;
3502
- Jo.default = Jo;
3503
- let Xo = {};
3526
+ var Ko = Zo;
3527
+ Zo.default = Zo;
3528
+ let Jo = {};
3504
3529
  var so = function(e) {
3505
- Xo[e] || (Xo[e] = true, typeof console < "u" && console.warn && console.warn(e));
3530
+ Jo[e] || (Jo[e] = true, typeof console < "u" && console.warn && console.warn(e));
3506
3531
  };
3507
- let Qo = Rn, es = Bn, ts = co, ns = qo, rs = Yo, os = Tr, ss = tn, { isClean: is, my: as } = nn, ls = so;
3508
- const cs = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, us = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, ps = { Once: true, postcssPlugin: true, prepare: true };
3532
+ let Yo = En, Xo = Fn, Qo = ao, es = Go, ts = Ko, ns = Cr, rs = Qt, { isClean: os, my: ss } = en, is = so;
3533
+ const as = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, ls = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, cs = { Once: true, postcssPlugin: true, prepare: true };
3509
3534
  function Ne(e) {
3510
3535
  return "object" == typeof e && "function" == typeof e.then;
3511
3536
  }
3512
3537
  function no(e) {
3513
- let a = false, u = cs[e.type];
3538
+ let a = false, u = as[e.type];
3514
3539
  return "decl" === e.type ? a = e.prop.toLowerCase() : "atrule" === e.type && (a = e.name.toLowerCase()), a && e.append ? [u, u + "-" + a, 0, u + "Exit", u + "Exit-" + a] : a ? [u, u + "-" + a, u + "Exit", u + "Exit-" + a] : e.append ? [u, 0, u + "Exit"] : [u, u + "Exit"];
3515
3540
  }
3516
3541
  function Gn(e) {
@@ -3518,9 +3543,9 @@ function Gn(e) {
3518
3543
  return a = "document" === e.type ? ["Document", 0, "DocumentExit"] : "root" === e.type ? ["Root", 0, "RootExit"] : no(e), { eventIndex: 0, events: a, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
3519
3544
  }
3520
3545
  function Ps(e) {
3521
- return e[is] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3546
+ return e[os] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3522
3547
  }
3523
- let ds = {}, hs = class ro {
3548
+ let us = {}, ps = class ro {
3524
3549
  get content() {
3525
3550
  return this.stringify().content;
3526
3551
  }
@@ -3547,19 +3572,19 @@ let ds = {}, hs = class ro {
3547
3572
  }
3548
3573
  constructor(e, a, u) {
3549
3574
  let m2;
3550
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof ro || a instanceof rs) m2 = Ps(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
3575
+ if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof ro || a instanceof ts) m2 = Ps(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
3551
3576
  else {
3552
- let e2 = ns;
3577
+ let e2 = es;
3553
3578
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
3554
3579
  try {
3555
3580
  m2 = e2(a, u);
3556
3581
  } catch (e3) {
3557
3582
  this.processed = true, this.error = e3;
3558
3583
  }
3559
- m2 && !m2[as] && Qo.rebuild(m2);
3584
+ m2 && !m2[ss] && Yo.rebuild(m2);
3560
3585
  }
3561
3586
  else m2 = Ps(a);
3562
- this.result = new rs(e, m2, u), this.helpers = { ...ds, postcss: ds, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
3587
+ this.result = new ts(e, m2, u), this.helpers = { ...us, postcss: us, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
3563
3588
  }
3564
3589
  async() {
3565
3590
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -3593,8 +3618,8 @@ let ds = {}, hs = class ro {
3593
3618
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
3594
3619
  };
3595
3620
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
3596
- if (!us[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3597
- if (!ps[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3621
+ if (!ls[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3622
+ if (!cs[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3598
3623
  else "function" == typeof e[a] && t(e, a, e[a]);
3599
3624
  }
3600
3625
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -3611,8 +3636,8 @@ let ds = {}, hs = class ro {
3611
3636
  }
3612
3637
  if (this.prepareVisitors(), this.hasListener) {
3613
3638
  let e = this.result.root;
3614
- for (; !e[is]; ) {
3615
- e[is] = true;
3639
+ for (; !e[os]; ) {
3640
+ e[os] = true;
3616
3641
  let a = [Gn(e)];
3617
3642
  for (; a.length > 0; ) {
3618
3643
  let e2 = this.visitTick(a);
@@ -3657,9 +3682,9 @@ let ds = {}, hs = class ro {
3657
3682
  if (this.error) throw this.error;
3658
3683
  if (this.stringified) return this.result;
3659
3684
  this.stringified = true, this.sync();
3660
- let e = this.result.opts, a = ss;
3685
+ let e = this.result.opts, a = rs;
3661
3686
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
3662
- let u = new ts(a, this.result.root, this.result.opts).generate();
3687
+ let u = new Qo(a, this.result.root, this.result.opts).generate();
3663
3688
  return this.result.css = u[0], this.result.map = u[1], this.result;
3664
3689
  }
3665
3690
  sync() {
@@ -3671,14 +3696,14 @@ let ds = {}, hs = class ro {
3671
3696
  }
3672
3697
  if (this.prepareVisitors(), this.hasListener) {
3673
3698
  let e = this.result.root;
3674
- for (; !e[is]; ) e[is] = true, this.walkSync(e);
3699
+ for (; !e[os]; ) e[os] = true, this.walkSync(e);
3675
3700
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
3676
3701
  else this.visitSync(this.listeners.OnceExit, e);
3677
3702
  }
3678
3703
  return this.result;
3679
3704
  }
3680
3705
  then(e, a) {
3681
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || ls("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3706
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || is("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3682
3707
  }
3683
3708
  toString() {
3684
3709
  return this.css;
@@ -3710,22 +3735,22 @@ let ds = {}, hs = class ro {
3710
3735
  }
3711
3736
  if (0 !== a.iterator) {
3712
3737
  let m3, w3 = a.iterator;
3713
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[is]) return m3[is] = true, void e.push(Gn(m3));
3738
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[os]) return m3[os] = true, void e.push(Gn(m3));
3714
3739
  a.iterator = 0, delete u.indexes[w3];
3715
3740
  }
3716
3741
  let w2 = a.events;
3717
3742
  for (; a.eventIndex < w2.length; ) {
3718
3743
  let e2 = w2[a.eventIndex];
3719
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[is] = true, a.iterator = u.getIterator()));
3744
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[os] = true, a.iterator = u.getIterator()));
3720
3745
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
3721
3746
  }
3722
3747
  e.pop();
3723
3748
  }
3724
3749
  walkSync(e) {
3725
- e[is] = true;
3750
+ e[os] = true;
3726
3751
  let a = no(e);
3727
3752
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
3728
- e2[is] || this.walkSync(e2);
3753
+ e2[os] || this.walkSync(e2);
3729
3754
  });
3730
3755
  else {
3731
3756
  let a2 = this.listeners[u];
@@ -3736,14 +3761,14 @@ let ds = {}, hs = class ro {
3736
3761
  return this.sync().warnings();
3737
3762
  }
3738
3763
  };
3739
- hs.registerPostcss = (e) => {
3740
- ds = e;
3764
+ ps.registerPostcss = (e) => {
3765
+ us = e;
3741
3766
  };
3742
- var ms = hs;
3743
- hs.default = hs, os.registerLazyResult(hs), es.registerLazyResult(hs);
3744
- let gs = co, ys = qo;
3745
- const ws = Yo;
3746
- let Ss = tn, bs = so, vs = class {
3767
+ var ds = ps;
3768
+ ps.default = ps, ns.registerLazyResult(ps), Xo.registerLazyResult(ps);
3769
+ let hs = ao, ms = Go;
3770
+ const gs = Ko;
3771
+ let ys = Qt, ws = so, Ss = class {
3747
3772
  get content() {
3748
3773
  return this.result.css;
3749
3774
  }
@@ -3764,7 +3789,7 @@ let Ss = tn, bs = so, vs = class {
3764
3789
  }
3765
3790
  get root() {
3766
3791
  if (this._root) return this._root;
3767
- let e, a = ys;
3792
+ let e, a = ms;
3768
3793
  try {
3769
3794
  e = a(this._css, this._opts);
3770
3795
  } catch (e2) {
@@ -3778,11 +3803,11 @@ let Ss = tn, bs = so, vs = class {
3778
3803
  }
3779
3804
  constructor(e, a, u) {
3780
3805
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
3781
- let m2, w2 = Ss;
3782
- this.result = new ws(this._processor, m2, this._opts), this.result.css = a;
3806
+ let m2, w2 = ys;
3807
+ this.result = new gs(this._processor, m2, this._opts), this.result.css = a;
3783
3808
  let b2 = this;
3784
3809
  Object.defineProperty(this.result, "root", { get: () => b2.root });
3785
- let C2 = new gs(w2, m2, this._opts, a);
3810
+ let C2 = new hs(w2, m2, this._opts, a);
3786
3811
  if (C2.isMap()) {
3787
3812
  let [e2, a2] = C2.generate();
3788
3813
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -3802,7 +3827,7 @@ let Ss = tn, bs = so, vs = class {
3802
3827
  return this.result;
3803
3828
  }
3804
3829
  then(e, a) {
3805
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || bs("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3830
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || ws("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3806
3831
  }
3807
3832
  toString() {
3808
3833
  return this._css;
@@ -3811,9 +3836,9 @@ let Ss = tn, bs = so, vs = class {
3811
3836
  return [];
3812
3837
  }
3813
3838
  };
3814
- var xs = vs;
3815
- vs.default = vs;
3816
- let Ms = Bn, Is = ms, _s = xs, Os = Tr, Es = class {
3839
+ var bs = Ss;
3840
+ Ss.default = Ss;
3841
+ let vs = Fn, xs = ds, Ms = bs, Is = Cr, _s = class {
3817
3842
  constructor(e = []) {
3818
3843
  this.version = "8.5.3", this.plugins = this.normalize(e);
3819
3844
  }
@@ -3829,43 +3854,43 @@ let Ms = Bn, Is = ms, _s = xs, Os = Tr, Es = class {
3829
3854
  return a;
3830
3855
  }
3831
3856
  process(e, a = {}) {
3832
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new Is(this, e, a) : new _s(this, e, a);
3857
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new xs(this, e, a) : new Ms(this, e, a);
3833
3858
  }
3834
3859
  use(e) {
3835
3860
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
3836
3861
  }
3837
3862
  };
3838
- var Ls = Es;
3839
- Es.default = Es, Os.registerProcessor(Es), Ms.registerProcessor(Es);
3840
- let Rs = Nn, As = hn, Ts = Rn, Ns = Kt, $s = gn, Ws = Bn, js = Kr, Gs = yr, Vs = ms, qs = Pr, Hs = un, Zs = qo, Ks = Ls, Ys = Yo, Xs = Tr, Qs = Br, ei = tn, ti = Zo;
3863
+ var Os = _s;
3864
+ _s.default = _s, Is.registerProcessor(_s), vs.registerProcessor(_s);
3865
+ let Es = An, Ls = pn, Rs = En, As = Vt, Ts = fn, Ns = Fn, $s = Hr, Ws = mr, js = ds, Gs = Tr, Vs = ln, qs = Go, Hs = Os, Zs = Ko, Ks = Cr, Ys = Fr, Xs = Qt, Qs = qo;
3841
3866
  function L$1(...e) {
3842
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Ks(e);
3867
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Hs(e);
3843
3868
  }
3844
3869
  L$1.plugin = function(e, a) {
3845
3870
  let u, m2 = false;
3846
3871
  function n(...u2) {
3847
3872
  console && console.warn && !m2 && (m2 = true, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
3848
3873
  let w2 = a(...u2);
3849
- return w2.postcssPlugin = e, w2.postcssVersion = new Ks().version, w2;
3874
+ return w2.postcssPlugin = e, w2.postcssVersion = new Hs().version, w2;
3850
3875
  }
3851
3876
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
3852
3877
  return L$1([n(u2)]).process(e2, a2);
3853
3878
  }, n;
3854
- }, L$1.stringify = ei, L$1.parse = Zs, L$1.fromJSON = js, L$1.list = qs, L$1.comment = (e) => new As(e), L$1.atRule = (e) => new Rs(e), L$1.decl = (e) => new $s(e), L$1.rule = (e) => new Qs(e), L$1.root = (e) => new Xs(e), L$1.document = (e) => new Ws(e), L$1.CssSyntaxError = Ns, L$1.Declaration = $s, L$1.Container = Ts, L$1.Processor = Ks, L$1.Document = Ws, L$1.Comment = As, L$1.Warning = ti, L$1.AtRule = Rs, L$1.Result = Ys, L$1.Input = Gs, L$1.Rule = Qs, L$1.Root = Xs, L$1.Node = Hs, Vs.registerPostcss(L$1);
3855
- var si = L$1;
3879
+ }, L$1.stringify = Xs, L$1.parse = qs, L$1.fromJSON = $s, L$1.list = Gs, L$1.comment = (e) => new Ls(e), L$1.atRule = (e) => new Es(e), L$1.decl = (e) => new Ts(e), L$1.rule = (e) => new Ys(e), L$1.root = (e) => new Ks(e), L$1.document = (e) => new Ns(e), L$1.CssSyntaxError = As, L$1.Declaration = Ts, L$1.Container = Rs, L$1.Processor = Hs, L$1.Document = Ns, L$1.Comment = Ls, L$1.Warning = Qs, L$1.AtRule = Es, L$1.Result = Zs, L$1.Input = Ws, L$1.Rule = Ys, L$1.Root = Ks, L$1.Node = Vs, js.registerPostcss(L$1);
3880
+ var ei = L$1;
3856
3881
  L$1.default = L$1;
3857
- const ii = Yi(si);
3858
- ii.stringify, ii.fromJSON, ii.plugin, ii.parse, ii.list, ii.document, ii.comment, ii.atRule, ii.rule, ii.decl, ii.root, ii.CssSyntaxError, ii.Declaration, ii.Container, ii.Processor, ii.Document, ii.Comment, ii.Warning, ii.AtRule, ii.Result, ii.Input, ii.Rule, ii.Root, ii.Node;
3859
- var ai = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(ai || {}), li = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e[e.Typing = 17] = "Typing", e))(li || {}), ci = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(ci || {}), ui = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(ui || {}), pi = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(pi || {}), di = ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(di || {});
3882
+ const ti = Yi(ei);
3883
+ ti.stringify, ti.fromJSON, ti.plugin, ti.parse, ti.list, ti.document, ti.comment, ti.atRule, ti.rule, ti.decl, ti.root, ti.CssSyntaxError, ti.Declaration, ti.Container, ti.Processor, ti.Document, ti.Comment, ti.Warning, ti.AtRule, ti.Result, ti.Input, ti.Rule, ti.Root, ti.Node;
3884
+ var si = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(si || {}), ii = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e[e.Typing = 17] = "Typing", e))(ii || {}), ai = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(ai || {}), li = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(li || {}), ci = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(ci || {}), ui = ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(ui || {});
3860
3885
  function G(e, a, u = document) {
3861
3886
  const m2 = { capture: true, passive: true };
3862
3887
  return u.addEventListener(e, a, m2), () => u.removeEventListener(e, a, m2);
3863
3888
  }
3864
- const hi = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
3865
- let fi = { map: {}, getId: () => (console.error(hi), -1), getNode: () => (console.error(hi), null), removeNodeFromMap() {
3866
- console.error(hi);
3867
- }, has: () => (console.error(hi), false), reset() {
3868
- console.error(hi);
3889
+ const pi = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
3890
+ let di = { map: {}, getId: () => (console.error(pi), -1), getNode: () => (console.error(pi), null), removeNodeFromMap() {
3891
+ console.error(pi);
3892
+ }, has: () => (console.error(pi), false), reset() {
3893
+ console.error(pi);
3869
3894
  } };
3870
3895
  function $e(e, a, u = {}) {
3871
3896
  let m2 = null, w2 = 0;
@@ -3899,8 +3924,8 @@ function Re(e, a, u) {
3899
3924
  };
3900
3925
  }
3901
3926
  }
3902
- typeof window < "u" && window.Proxy && window.Reflect && (fi = new Proxy(fi, { get: (e, a, u) => ("map" === a && console.error(hi), Reflect.get(e, a, u)) }));
3903
- let mi, gi = Date.now;
3927
+ typeof window < "u" && window.Proxy && window.Reflect && (di = new Proxy(di, { get: (e, a, u) => ("map" === a && console.error(pi), Reflect.get(e, a, u)) }));
3928
+ let hi, fi = Date.now;
3904
3929
  function po(e) {
3905
3930
  var a, u, m2, w2, b2, C2;
3906
3931
  const x2 = e.document;
@@ -3947,7 +3972,7 @@ function bo(e, a) {
3947
3972
  function Fs(e) {
3948
3973
  return !(null == e || !e.shadowRoot);
3949
3974
  }
3950
- /[1-9][0-9]{12}/.test(Date.now().toString()) || (gi = () => (/* @__PURE__ */ new Date()).getTime());
3975
+ /[1-9][0-9]{12}/.test(Date.now().toString()) || (fi = () => (/* @__PURE__ */ new Date()).getTime());
3951
3976
  class _l {
3952
3977
  constructor() {
3953
3978
  b$1(this, "id", 1), b$1(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), b$1(this, "idStyleMap", /* @__PURE__ */ new Map());
@@ -3992,11 +4017,11 @@ function vo(e) {
3992
4017
  const a = e.ownerDocument;
3993
4018
  return !!a && (a.contains(e) || zl(e));
3994
4019
  }
3995
- const M = (e) => mi ? (...a) => {
4020
+ const M = (e) => hi ? (...a) => {
3996
4021
  try {
3997
4022
  return e(...a);
3998
4023
  } catch (e2) {
3999
- if (mi && true === mi(e2)) return;
4024
+ if (hi && true === hi(e2)) return;
4000
4025
  throw e2;
4001
4026
  }
4002
4027
  } : e;
@@ -4055,22 +4080,22 @@ class Vl {
4055
4080
  transformCrossOriginEvent(e, a) {
4056
4081
  var u;
4057
4082
  switch (a.type) {
4058
- case ai.FullSnapshot: {
4083
+ case si.FullSnapshot: {
4059
4084
  this.crossOriginIframeMirror.reset(e), this.crossOriginIframeStyleMirror.reset(e), this.replaceIdOnNode(a.data.node, e);
4060
4085
  const u2 = a.data.node.id;
4061
- return this.crossOriginIframeRootIdMap.set(e, u2), this.patchRootIdOnNode(a.data.node, u2), { timestamp: a.timestamp, type: ai.IncrementalSnapshot, data: { source: li.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, node: a.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4086
+ return this.crossOriginIframeRootIdMap.set(e, u2), this.patchRootIdOnNode(a.data.node, u2), { timestamp: a.timestamp, type: si.IncrementalSnapshot, data: { source: ii.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, node: a.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4062
4087
  }
4063
- case ai.Meta:
4064
- case ai.Load:
4065
- case ai.DomContentLoaded:
4088
+ case si.Meta:
4089
+ case si.Load:
4090
+ case si.DomContentLoaded:
4066
4091
  return false;
4067
- case ai.Plugin:
4092
+ case si.Plugin:
4068
4093
  return a;
4069
- case ai.Custom:
4094
+ case si.Custom:
4070
4095
  return this.replaceIds(a.data.payload, e, ["id", "parentId", "previousId", "nextId"]), a;
4071
- case ai.IncrementalSnapshot:
4096
+ case si.IncrementalSnapshot:
4072
4097
  switch (a.data.source) {
4073
- case li.Mutation:
4098
+ case ii.Mutation:
4074
4099
  return a.data.adds.forEach((a2) => {
4075
4100
  this.replaceIds(a2, e, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(a2.node, e);
4076
4101
  const u2 = this.crossOriginIframeRootIdMap.get(e);
@@ -4082,30 +4107,30 @@ class Vl {
4082
4107
  }), a.data.texts.forEach((a2) => {
4083
4108
  this.replaceIds(a2, e, ["id"]);
4084
4109
  }), a;
4085
- case li.Drag:
4086
- case li.TouchMove:
4087
- case li.MouseMove:
4110
+ case ii.Drag:
4111
+ case ii.TouchMove:
4112
+ case ii.MouseMove:
4088
4113
  return a.data.positions.forEach((a2) => {
4089
4114
  this.replaceIds(a2, e, ["id"]);
4090
4115
  }), a;
4091
- case li.ViewportResize:
4116
+ case ii.ViewportResize:
4092
4117
  return false;
4093
- case li.MediaInteraction:
4094
- case li.MouseInteraction:
4095
- case li.Scroll:
4096
- case li.CanvasMutation:
4097
- case li.Input:
4118
+ case ii.MediaInteraction:
4119
+ case ii.MouseInteraction:
4120
+ case ii.Scroll:
4121
+ case ii.CanvasMutation:
4122
+ case ii.Input:
4098
4123
  return this.replaceIds(a.data, e, ["id"]), a;
4099
- case li.StyleSheetRule:
4100
- case li.StyleDeclaration:
4124
+ case ii.StyleSheetRule:
4125
+ case ii.StyleDeclaration:
4101
4126
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleId"]), a;
4102
- case li.Font:
4127
+ case ii.Font:
4103
4128
  return a;
4104
- case li.Selection:
4129
+ case ii.Selection:
4105
4130
  return a.data.ranges.forEach((a2) => {
4106
4131
  this.replaceIds(a2, e, ["start", "end"]);
4107
4132
  }), a;
4108
- case li.AdoptedStyleSheet:
4133
+ case ii.AdoptedStyleSheet:
4109
4134
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleIds"]), null == (u = a.data.styles) || u.forEach((a2) => {
4110
4135
  this.replaceStyleIds(a2, e, ["styleId"]);
4111
4136
  }), a;
@@ -4129,7 +4154,7 @@ class Vl {
4129
4154
  });
4130
4155
  }
4131
4156
  patchRootIdOnNode(e, a) {
4132
- e.type !== yt.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4157
+ e.type !== ht.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4133
4158
  this.patchRootIdOnNode(e2, a);
4134
4159
  });
4135
4160
  }
@@ -4347,7 +4372,7 @@ function ko(e, a) {
4347
4372
  const { parentNode: u } = a;
4348
4373
  return !!u && (!!e.has(u) || ko(e, u));
4349
4374
  }
4350
- const yi = [];
4375
+ const mi = [];
4351
4376
  function tt(e) {
4352
4377
  try {
4353
4378
  if ("composedPath" in e) {
@@ -4361,7 +4386,7 @@ function tt(e) {
4361
4386
  function Co(e, a) {
4362
4387
  var u, m2;
4363
4388
  const w2 = new Zl();
4364
- yi.push(w2), w2.init(e);
4389
+ mi.push(w2), w2.init(e);
4365
4390
  let b2 = window.MutationObserver || window.__rrMutationObserver;
4366
4391
  const C2 = null == (m2 = null == (u = null == window ? void 0 : window.Zone) ? void 0 : u.__symbol__) ? void 0 : m2.call(u, "MutationObserver");
4367
4392
  C2 && window[C2] && (b2 = window[C2]);
@@ -4373,7 +4398,7 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4373
4398
  };
4374
4399
  const C2 = true === b2.mouseInteraction || void 0 === b2.mouseInteraction ? {} : b2.mouseInteraction, x2 = [];
4375
4400
  let I2 = null;
4376
- return Object.keys(ci).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4401
+ return Object.keys(ai).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4377
4402
  let C3 = fe(b3);
4378
4403
  const _2 = /* @__PURE__ */ ((a2) => (b4) => {
4379
4404
  const C4 = tt(b4);
@@ -4382,29 +4407,29 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4382
4407
  if ("pointerType" in b4) {
4383
4408
  switch (b4.pointerType) {
4384
4409
  case "mouse":
4385
- x3 = ui.Mouse;
4410
+ x3 = li.Mouse;
4386
4411
  break;
4387
4412
  case "touch":
4388
- x3 = ui.Touch;
4413
+ x3 = li.Touch;
4389
4414
  break;
4390
4415
  case "pen":
4391
- x3 = ui.Pen;
4416
+ x3 = li.Pen;
4392
4417
  }
4393
- x3 === ui.Touch ? ci[a2] === ci.MouseDown ? _3 = "TouchStart" : ci[a2] === ci.MouseUp && (_3 = "TouchEnd") : ui.Pen;
4394
- } else Ds(b4) && (x3 = ui.Touch);
4395
- null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === ui.Touch || _3.startsWith("Mouse") && x3 === ui.Mouse) && (x3 = null)) : ci[a2] === ci.Click && (x3 = I2, I2 = null);
4418
+ x3 === li.Touch ? ai[a2] === ai.MouseDown ? _3 = "TouchStart" : ai[a2] === ai.MouseUp && (_3 = "TouchEnd") : li.Pen;
4419
+ } else Ds(b4) && (x3 = li.Touch);
4420
+ null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === li.Touch || _3.startsWith("Mouse") && x3 === li.Mouse) && (x3 = null)) : ai[a2] === ai.Click && (x3 = I2, I2 = null);
4396
4421
  const O2 = Ds(b4) ? b4.changedTouches[0] : b4;
4397
4422
  if (!O2) return;
4398
4423
  const E2 = u.getId(C4), { clientX: D2, clientY: F2 } = O2;
4399
- M(e)({ type: ci[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4424
+ M(e)({ type: ai[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4400
4425
  })(b3);
4401
- if (window.PointerEvent) switch (ci[b3]) {
4402
- case ci.MouseDown:
4403
- case ci.MouseUp:
4426
+ if (window.PointerEvent) switch (ai[b3]) {
4427
+ case ai.MouseDown:
4428
+ case ai.MouseUp:
4404
4429
  C3 = C3.replace("mouse", "pointer");
4405
4430
  break;
4406
- case ci.TouchStart:
4407
- case ci.TouchEnd:
4431
+ case ai.TouchStart:
4432
+ case ai.TouchEnd:
4408
4433
  return;
4409
4434
  }
4410
4435
  x2.push(G(C3, _2, a));
@@ -4423,7 +4448,7 @@ function xo({ scrollCb: e, doc: a, mirror: u, blockClass: m2, blockSelector: w2,
4423
4448
  } else e({ id: x2, x: C2.scrollLeft, y: C2.scrollTop });
4424
4449
  }), b2.scroll || 100)), a);
4425
4450
  }
4426
- const Mi = ["INPUT", "TEXTAREA", "SELECT"], Ii = /* @__PURE__ */ new WeakMap();
4451
+ const gi = ["INPUT", "TEXTAREA", "SELECT"], yi = /* @__PURE__ */ new WeakMap();
4427
4452
  function ql({ deviceChangeCb: e }) {
4428
4453
  const t = (a2, u2) => {
4429
4454
  const m2 = a2.device.productName ? [a2.device.productName] : ["Unknown USB Device"];
@@ -4543,7 +4568,7 @@ function au(e, a = {}) {
4543
4568
  e2(x3.map((e3) => (e3.timeOffset -= u3, e3)), a3), x3 = [], C3 = null;
4544
4569
  }), b3), _3 = M($e(M((e3) => {
4545
4570
  const a3 = tt(e3), { clientX: u3, clientY: w4 } = Ds(e3) ? e3.changedTouches[0] : e3;
4546
- C3 || (C3 = gi()), x3.push({ x: u3, y: w4, id: m3.getId(a3), timeOffset: gi() - C3 }), I3(typeof DragEvent < "u" && e3 instanceof DragEvent ? li.Drag : e3 instanceof MouseEvent ? li.MouseMove : li.TouchMove);
4571
+ C3 || (C3 = fi()), x3.push({ x: u3, y: w4, id: m3.getId(a3), timeOffset: fi() - C3 }), I3(typeof DragEvent < "u" && e3 instanceof DragEvent ? ii.Drag : e3 instanceof MouseEvent ? ii.MouseMove : ii.TouchMove);
4547
4572
  }), w3, { trailing: false })), O3 = [G("mousemove", _3, u2), G("touchmove", _3, u2), G("drag", _3, u2)];
4548
4573
  return M(() => {
4549
4574
  O3.forEach((e3) => e3());
@@ -4559,7 +4584,7 @@ function au(e, a = {}) {
4559
4584
  function p(e3) {
4560
4585
  let u3 = tt(e3);
4561
4586
  const _4 = e3.isTrusted, E4 = u3 && u3.tagName;
4562
- if (u3 && "OPTION" === E4 && (u3 = u3.parentElement), !u3 || !E4 || Mi.indexOf(E4) < 0 || Z(u3, m3, w3, true) || u3.classList.contains(b3) || C3 && u3.matches(C3)) return;
4587
+ if (u3 && "OPTION" === E4 && (u3 = u3.parentElement), !u3 || !E4 || gi.indexOf(E4) < 0 || Z(u3, m3, w3, true) || u3.classList.contains(b3) || C3 && u3.matches(C3)) return;
4563
4588
  let D4 = u3.value, F4 = false;
4564
4589
  const U4 = Yt(u3) || "", { value: B2, masked: $2 } = Zt({ element: u3, maskInputOptions: x3, tagName: E4, type: U4, value: D4, maskInputFn: I3 });
4565
4590
  D4 = B2, ("radio" === U4 || "checkbox" === U4) && (F4 = u3.checked), f2(u3, O3 ? { text: D4, isChecked: F4, masked: $2, userTriggered: _4 } : { text: D4, isChecked: F4, masked: $2 });
@@ -4572,9 +4597,9 @@ function au(e, a = {}) {
4572
4597
  });
4573
4598
  }
4574
4599
  function f2(a3, m4) {
4575
- const w4 = Ii.get(a3);
4600
+ const w4 = yi.get(a3);
4576
4601
  if (!w4 || w4.text !== m4.text || w4.isChecked !== m4.isChecked || w4.masked !== m4.masked) {
4577
- Ii.set(a3, m4);
4602
+ yi.set(a3, m4);
4578
4603
  const w5 = u2.getId(a3);
4579
4604
  M(e2)({ ...m4, id: w5 });
4580
4605
  }
@@ -4599,7 +4624,7 @@ function au(e, a = {}) {
4599
4624
  const { value: e3, masked: a4 } = Zt({ element: w4, maskInputOptions: u2, tagName: x3, type: I3, value: _3, maskInputFn: m3 });
4600
4625
  _3 = e3, b3 = a4;
4601
4626
  }
4602
- e2({ source: li.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4627
+ e2({ source: ii.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4603
4628
  var a4;
4604
4629
  const u3 = [];
4605
4630
  for (; e3; ) {
@@ -4627,7 +4652,7 @@ function au(e, a = {}) {
4627
4652
  if (!C4 || Z(C4, a2, u2, true)) return;
4628
4653
  const { currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 } = C4;
4629
4654
  e2({ type: b4, id: m3.getId(C4), currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 });
4630
- }), w3.media || 500)), x3 = [G("play", C3(di.Play), b3), G("pause", C3(di.Pause), b3), G("seeked", C3(di.Seeked), b3), G("volumechange", C3(di.VolumeChange), b3), G("ratechange", C3(di.RateChange), b3)];
4655
+ }), w3.media || 500)), x3 = [G("play", C3(ui.Play), b3), G("pause", C3(ui.Pause), b3), G("seeked", C3(ui.Seeked), b3), G("volumechange", C3(ui.VolumeChange), b3), G("ratechange", C3(ui.RateChange), b3)];
4631
4656
  return M(() => {
4632
4657
  x3.forEach((e3) => e3());
4633
4658
  });
@@ -4748,7 +4773,7 @@ function au(e, a = {}) {
4748
4773
  })(e), U2 = [];
4749
4774
  for (const a2 of e.plugins) U2.push(a2.observer(a2.callback, u, a2.options));
4750
4775
  return M(() => {
4751
- yi.forEach((e2) => e2.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d2(), g2(), h(), D2(), F2(), O2(), U2.forEach((e2) => e2());
4776
+ mi.forEach((e2) => e2.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d2(), g2(), h(), D2(), F2(), O2(), U2.forEach((e2) => e2());
4752
4777
  });
4753
4778
  }
4754
4779
  function ft(e) {
@@ -4757,29 +4782,29 @@ function ft(e) {
4757
4782
  function mt(e) {
4758
4783
  return !!(typeof window[e] < "u" && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype);
4759
4784
  }
4760
- const Li = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Ri = typeof self < "u" && self.Blob && new Blob([(Ai = Li, Uint8Array.from(atob(Ai), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4761
- var Ai;
4785
+ const Mi = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Ii = typeof self < "u" && self.Blob && new Blob([(Li = Mi, Uint8Array.from(atob(Li), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4786
+ var Li;
4762
4787
  function uu(e) {
4763
4788
  let a;
4764
4789
  try {
4765
- if (a = Ri && (self.URL || self.webkitURL).createObjectURL(Ri), !a) throw "";
4790
+ if (a = Ii && (self.URL || self.webkitURL).createObjectURL(Ii), !a) throw "";
4766
4791
  const u = new Worker(a, { name: null == e ? void 0 : e.name });
4767
4792
  return u.addEventListener("error", () => {
4768
4793
  (self.URL || self.webkitURL).revokeObjectURL(a);
4769
4794
  }), u;
4770
4795
  } catch {
4771
- return new Worker("data:text/javascript;base64," + Li, { name: null == e ? void 0 : e.name });
4796
+ return new Worker("data:text/javascript;base64," + Mi, { name: null == e ? void 0 : e.name });
4772
4797
  } finally {
4773
4798
  a && (self.URL || self.webkitURL).revokeObjectURL(a);
4774
4799
  }
4775
4800
  }
4776
- for (var Ti = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ni = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Pi = 0; Pi < 64; Pi++) Ni[Ti.charCodeAt(Pi)] = Pi;
4777
- const qi = /* @__PURE__ */ new Map();
4801
+ for (var Ri = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ai = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Ti = 0; Ti < 64; Ti++) Ai[Ri.charCodeAt(Ti)] = Ti;
4802
+ const Ni = /* @__PURE__ */ new Map();
4778
4803
  const Oo = (e, a, u) => {
4779
4804
  if (!e || !Ro(e, a) && "object" != typeof e) return;
4780
4805
  const m2 = (function pu(e2, a2) {
4781
- let u2 = qi.get(e2);
4782
- return u2 || (u2 = /* @__PURE__ */ new Map(), qi.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4806
+ let u2 = Ni.get(e2);
4807
+ return u2 || (u2 = /* @__PURE__ */ new Map(), Ni.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4783
4808
  })(u, e.constructor.name);
4784
4809
  let w2 = m2.indexOf(e);
4785
4810
  return -1 === w2 && (w2 = m2.length, m2.push(e)), w2;
@@ -4791,7 +4816,7 @@ function Ot(e, a, u) {
4791
4816
  if (e instanceof ArrayBuffer) {
4792
4817
  const a2 = e.constructor.name, u2 = (function(e2) {
4793
4818
  var a3, u3 = new Uint8Array(e2), m2 = u3.length, w2 = "";
4794
- for (a3 = 0; a3 < m2; a3 += 3) w2 += Ti[u3[a3] >> 2], w2 += Ti[(3 & u3[a3]) << 4 | u3[a3 + 1] >> 4], w2 += Ti[(15 & u3[a3 + 1]) << 2 | u3[a3 + 2] >> 6], w2 += Ti[63 & u3[a3 + 2]];
4819
+ for (a3 = 0; a3 < m2; a3 += 3) w2 += Ri[u3[a3] >> 2], w2 += Ri[(3 & u3[a3]) << 4 | u3[a3 + 1] >> 4], w2 += Ri[(15 & u3[a3 + 1]) << 2 | u3[a3 + 2] >> 6], w2 += Ri[63 & u3[a3 + 2]];
4795
4820
  return m2 % 3 == 2 ? w2 = w2.substring(0, w2.length - 1) + "=" : m2 % 3 == 1 && (w2 = w2.substring(0, w2.length - 2) + "=="), w2;
4796
4821
  })(e);
4797
4822
  return { rr_type: a2, base64: u2 };
@@ -4888,7 +4913,7 @@ class gu {
4888
4913
  const { id: a2 } = e2.data;
4889
4914
  if (C2.set(a2, false), !("base64" in e2.data)) return;
4890
4915
  const { base64: u2, type: m3, width: w3, height: b3 } = e2.data;
4891
- this.mutationCb({ id: a2, type: pi["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u2 }], type: m3 }] }, 0, 0] }] });
4916
+ this.mutationCb({ id: a2, type: ci["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u2 }], type: m3 }] }, 0, 0] }] });
4892
4917
  };
4893
4918
  const I2 = 1e3 / e;
4894
4919
  let _2, O2 = 0;
@@ -4924,14 +4949,14 @@ class gu {
4924
4949
  return function(...b5) {
4925
4950
  return Z(this.canvas, u2, m3, true) || setTimeout(() => {
4926
4951
  const u3 = Eo(b5, a2, this);
4927
- e2(this.canvas, { type: pi["2D"], property: C2, args: u3 });
4952
+ e2(this.canvas, { type: ci["2D"], property: C2, args: u3 });
4928
4953
  }, 0), w4.apply(this, b5);
4929
4954
  };
4930
4955
  });
4931
4956
  w3.push(b4);
4932
4957
  } catch {
4933
4958
  const u3 = qt(a2.CanvasRenderingContext2D.prototype, C2, { set(a3) {
4934
- e2(this.canvas, { type: pi["2D"], property: C2, args: [a3], setter: true });
4959
+ e2(this.canvas, { type: ci["2D"], property: C2, args: [a3], setter: true });
4935
4960
  } });
4936
4961
  w3.push(u3);
4937
4962
  }
@@ -4940,7 +4965,7 @@ class gu {
4940
4965
  };
4941
4966
  })(this.processMutation.bind(this), e, a, u), b2 = (function mu(e2, a2, u2, m3) {
4942
4967
  const w3 = [];
4943
- return w3.push(...tr(a2.WebGLRenderingContext.prototype, pi.WebGL, e2, u2, m3, a2)), typeof a2.WebGL2RenderingContext < "u" && w3.push(...tr(a2.WebGL2RenderingContext.prototype, pi.WebGL2, e2, u2, m3, a2)), () => {
4968
+ return w3.push(...tr(a2.WebGLRenderingContext.prototype, ci.WebGL, e2, u2, m3, a2)), typeof a2.WebGL2RenderingContext < "u" && w3.push(...tr(a2.WebGL2RenderingContext.prototype, ci.WebGL2, e2, u2, m3, a2)), () => {
4944
4969
  w3.forEach((e3) => e3());
4945
4970
  };
4946
4971
  })(this.processMutation.bind(this), e, a, u);
@@ -5051,23 +5076,23 @@ class bu {
5051
5076
  trackStylesheetInLinkElement(e) {
5052
5077
  }
5053
5078
  }
5054
- let Hi, Ji, Xi, Qi = false;
5055
- var ea;
5079
+ let Pi, qi, Hi, Ji = false;
5080
+ var Xi;
5056
5081
  try {
5057
5082
  if (2 !== Array.from([1], (e) => 2 * e)[0]) {
5058
5083
  const e = document.createElement("iframe");
5059
- document.body.appendChild(e), Array.from = (null == (ea = e.contentWindow) ? void 0 : ea.Array.from) || Array.from, document.body.removeChild(e);
5084
+ document.body.appendChild(e), Array.from = (null == (Xi = e.contentWindow) ? void 0 : Xi.Array.from) || Array.from, document.body.removeChild(e);
5060
5085
  }
5061
- } catch (Ai2) {
5062
- console.debug("Unable to override Array.from", Ai2);
5086
+ } catch (Li2) {
5087
+ console.debug("Unable to override Array.from", Li2);
5063
5088
  }
5064
- const ta = (function Ci() {
5065
- return new wt();
5089
+ const Qi = (function Ci() {
5090
+ return new gt();
5066
5091
  })();
5067
5092
  function ae(e = {}) {
5068
5093
  const { emit: a, checkoutEveryNms: u, checkoutEveryNth: m2, blockClass: w2 = "rr-block", blockSelector: b2 = null, ignoreClass: C2 = "rr-ignore", ignoreSelector: x2 = null, maskTextClass: I2 = "rr-mask", maskTextSelector: _2 = null, inlineStylesheet: O2 = true, maskAllInputs: E2, maskInputOptions: D2, slimDOMOptions: F2, maskInputFn: U2, maskTextFn: B2, hooks: $2, packFn: z2, sampling: j2 = {}, dataURLOptions: V2 = {}, mousemoveWait: q2, recordDOM: H2 = true, recordCanvas: J2 = false, recordCrossOriginIframes: Y2 = false, recordAfter: X2 = "DOMContentLoaded" === e.recordAfter ? e.recordAfter : "load", userTriggeredOnInput: Q2 = false, collectFonts: ee2 = false, inlineImages: te2 = false, plugins: ne2, keepIframeSrcFn: re2 = () => false, ignoreCSSAttributes: oe2 = /* @__PURE__ */ new Set([]), errorHandler: se2 } = e;
5069
5094
  !(function Bl(e2) {
5070
- mi = e2;
5095
+ hi = e2;
5071
5096
  })(se2);
5072
5097
  const ie2 = !Y2 || window.parent === window;
5073
5098
  let le2 = false;
@@ -5079,7 +5104,7 @@ function ae(e = {}) {
5079
5104
  if (ie2 && !a) throw new Error("emit function is required");
5080
5105
  if (!ie2 && !le2) return () => {
5081
5106
  };
5082
- void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), ta.reset();
5107
+ void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), Qi.reset();
5083
5108
  const ce2 = true === E2 ? { color: true, date: true, "datetime-local": true, email: true, month: true, number: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true, textarea: true, select: true, password: true } : void 0 !== D2 ? D2 : { password: true }, pe2 = true === F2 || "all" === F2 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaVerification: true, headMetaAuthorship: "all" === F2, headMetaDescKeywords: "all" === F2, headTitleMutations: "all" === F2 } : F2 || {};
5084
5109
  !(function Ul(e2 = window) {
5085
5110
  "NodeList" in e2 && !e2.NodeList.prototype.forEach && (e2.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in e2 && !e2.DOMTokenList.prototype.forEach && (e2.DOMTokenList.prototype.forEach = Array.prototype.forEach), Node.prototype.contains || (Node.prototype.contains = (...e3) => {
@@ -5096,57 +5121,57 @@ function ae(e = {}) {
5096
5121
  for (const a2 of ne2 || []) a2.eventProcessor && (e2 = a2.eventProcessor(e2));
5097
5122
  return z2 && !le2 && (e2 = z2(e2)), e2;
5098
5123
  };
5099
- Hi = (e2, w3) => {
5124
+ Pi = (e2, w3) => {
5100
5125
  var b3;
5101
5126
  const C3 = e2;
5102
- if (C3.timestamp = gi(), null != (b3 = yi[0]) && b3.isFrozen() && C3.type !== ai.FullSnapshot && !(C3.type === ai.IncrementalSnapshot && C3.data.source === li.Mutation) && yi.forEach((e3) => e3.unfreeze()), ie2) null == a || a(vn(C3), w3);
5127
+ if (C3.timestamp = fi(), null != (b3 = mi[0]) && b3.isFrozen() && C3.type !== si.FullSnapshot && !(C3.type === si.IncrementalSnapshot && C3.data.source === ii.Mutation) && mi.forEach((e3) => e3.unfreeze()), ie2) null == a || a(vn(C3), w3);
5103
5128
  else if (le2) {
5104
5129
  const e3 = { type: "@sailfish-rrweb/rrweb", event: vn(C3), origin: window.location.origin, isCheckout: w3 };
5105
5130
  window.parent.postMessage(e3, "*");
5106
5131
  }
5107
- if (C3.type === ai.FullSnapshot) de2 = C3, he2 = 0;
5108
- else if (C3.type === ai.IncrementalSnapshot) {
5109
- if (C3.data.source === li.Mutation && C3.data.isAttachIframe) return;
5132
+ if (C3.type === si.FullSnapshot) de2 = C3, he2 = 0;
5133
+ else if (C3.type === si.IncrementalSnapshot) {
5134
+ if (C3.data.source === ii.Mutation && C3.data.isAttachIframe) return;
5110
5135
  he2++;
5111
5136
  const e3 = m2 && he2 >= m2, a2 = u && C3.timestamp - de2.timestamp > u;
5112
- (e3 || a2) && Ji(true);
5137
+ (e3 || a2) && qi(true);
5113
5138
  }
5114
5139
  };
5115
5140
  const rt = (e2) => {
5116
- Hi({ type: ai.IncrementalSnapshot, data: { source: li.Mutation, ...e2 } });
5117
- }, kn = (e2) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.Scroll, ...e2 } }), Cn = (e2) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.CanvasMutation, ...e2 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e2) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.AdoptedStyleSheet, ...e2 } }) }), ge2 = new Vl({ mirror: ta, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Hi });
5118
- for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: ta, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5141
+ Pi({ type: si.IncrementalSnapshot, data: { source: ii.Mutation, ...e2 } });
5142
+ }, kn = (e2) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Scroll, ...e2 } }), Cn = (e2) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.CanvasMutation, ...e2 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e2) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.AdoptedStyleSheet, ...e2 } }) }), ge2 = new Vl({ mirror: Qi, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Pi });
5143
+ for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: Qi, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5119
5144
  const ye2 = new yu();
5120
- Xi = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: ta, sampling: j2.canvas, dataURLOptions: V2 });
5121
- const we2 = new wu({ mutationCb: rt, scrollCb: kn, bypassOptions: { blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskInputOptions: ce2, dataURLOptions: V2, maskTextFn: B2, maskInputFn: U2, recordCanvas: J2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: Xi, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: ta });
5122
- Ji = (e2 = false) => {
5145
+ Hi = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: Qi, sampling: j2.canvas, dataURLOptions: V2 });
5146
+ const we2 = new wu({ mutationCb: rt, scrollCb: kn, bypassOptions: { blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskInputOptions: ce2, dataURLOptions: V2, maskTextFn: B2, maskInputFn: U2, recordCanvas: J2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: Hi, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: Qi });
5147
+ qi = (e2 = false) => {
5123
5148
  if (!H2) return;
5124
- Hi({ type: ai.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), yi.forEach((e3) => e3.lock());
5149
+ Pi({ type: si.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), mi.forEach((e3) => e3.lock());
5125
5150
  const a2 = (function Zi(e3, a3) {
5126
- const { mirror: u2 = new wt(), blockClass: m3 = "rr-block", blockSelector: w3 = null, maskTextClass: b3 = "rr-mask", maskTextSelector: C3 = null, inlineStylesheet: x3 = true, inlineImages: I3 = false, recordCanvas: _3 = false, maskAllInputs: O3 = false, maskTextFn: E3, maskInputFn: D3, slimDOM: F3 = false, dataURLOptions: U3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3 = () => false } = a3 || {};
5151
+ const { mirror: u2 = new gt(), blockClass: m3 = "rr-block", blockSelector: w3 = null, maskTextClass: b3 = "rr-mask", maskTextSelector: C3 = null, inlineStylesheet: x3 = true, inlineImages: I3 = false, recordCanvas: _3 = false, maskAllInputs: O3 = false, maskTextFn: E3, maskInputFn: D3, slimDOM: F3 = false, dataURLOptions: U3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3 = () => false } = a3 || {};
5127
5152
  return Se(e3, { doc: e3, mirror: u2, blockClass: m3, blockSelector: w3, maskTextClass: b3, maskTextSelector: C3, skipChild: false, inlineStylesheet: x3, maskInputOptions: true === O3 ? { color: true, date: true, "datetime-local": true, email: true, month: true, number: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true, textarea: true, select: true, password: true } : false === O3 ? { password: true } : O3, maskTextFn: E3, maskInputFn: D3, slimDOMOptions: true === F3 || "all" === F3 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaDescKeywords: "all" === F3, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaAuthorship: true, headMetaVerification: true } : false === F3 ? {} : F3, dataURLOptions: U3, inlineImages: I3, recordCanvas: _3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3, newlyAddedElement: false });
5128
- })(document, { mirror: ta, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: J2, inlineImages: te2, onSerialize: (e3) => {
5129
- wo(e3, ta) && ge2.addIframe(e3), bo(e3, ta) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5153
+ })(document, { mirror: Qi, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: J2, inlineImages: te2, onSerialize: (e3) => {
5154
+ wo(e3, Qi) && ge2.addIframe(e3), bo(e3, Qi) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5130
5155
  }, onIframeLoad: (e3, a3) => {
5131
5156
  ge2.attachIframe(e3, a3), we2.observeAttachShadow(e3);
5132
5157
  }, onStylesheetLoad: (e3, a3) => {
5133
5158
  me2.attachLinkElement(e3, a3);
5134
5159
  }, keepIframeSrcFn: re2 });
5135
5160
  if (!a2) return console.warn("Failed to snapshot the document");
5136
- Hi({ type: ai.FullSnapshot, data: { node: a2, initialOffset: po(window) } }, e2), yi.forEach((e3) => e3.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, ta.getId(document));
5161
+ Pi({ type: si.FullSnapshot, data: { node: a2, initialOffset: po(window) } }, e2), mi.forEach((e3) => e3.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, Qi.getId(document));
5137
5162
  };
5138
5163
  try {
5139
5164
  const e2 = [], K = (e3) => {
5140
5165
  var a2;
5141
- return M(au)({ mutationCb: rt, mousemoveCb: (e4, a3) => Hi({ type: ai.IncrementalSnapshot, data: { source: a3, positions: e4 } }), mouseInteractionCb: (e4) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.MouseInteraction, ...e4 } }), scrollCb: kn, viewportResizeCb: (e4) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.ViewportResize, ...e4 } }), inputCb: (e4) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.Input, ...e4 } }), mediaInteractionCb: (e4) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.MediaInteraction, ...e4 } }), styleSheetRuleCb: (e4) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.StyleSheetRule, ...e4 } }), styleDeclarationCb: (e4) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.StyleDeclaration, ...e4 } }), canvasMutationCb: Cn, fontCb: (e4) => Hi({ type: ai.IncrementalSnapshot, data: { source: li.Font, ...e4 } }), selectionCb: (e4) => {
5142
- Hi({ type: ai.IncrementalSnapshot, data: { source: li.Selection, ...e4 } });
5166
+ return M(au)({ mutationCb: rt, mousemoveCb: (e4, a3) => Pi({ type: si.IncrementalSnapshot, data: { source: a3, positions: e4 } }), mouseInteractionCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.MouseInteraction, ...e4 } }), scrollCb: kn, viewportResizeCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.ViewportResize, ...e4 } }), inputCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Input, ...e4 } }), mediaInteractionCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.MediaInteraction, ...e4 } }), styleSheetRuleCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.StyleSheetRule, ...e4 } }), styleDeclarationCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.StyleDeclaration, ...e4 } }), canvasMutationCb: Cn, fontCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Font, ...e4 } }), selectionCb: (e4) => {
5167
+ Pi({ type: si.IncrementalSnapshot, data: { source: ii.Selection, ...e4 } });
5143
5168
  }, customElementCb: (e4) => {
5144
- Hi({ type: ai.IncrementalSnapshot, data: { source: li.CustomElement, ...e4 } });
5169
+ Pi({ type: si.IncrementalSnapshot, data: { source: ii.CustomElement, ...e4 } });
5145
5170
  }, typingCb: (e4) => {
5146
- Hi({ type: ai.IncrementalSnapshot, data: { ...e4 } });
5171
+ Pi({ type: si.IncrementalSnapshot, data: { ...e4 } });
5147
5172
  }, deviceChangeCb: (e4) => {
5148
- Hi({ type: ai.Device, data: { ...e4 } });
5149
- }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: J2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e3, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: ta, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Xi, ignoreCSSAttributes: oe2, plugins: (null == (a2 = null == ne2 ? void 0 : ne2.filter((e4) => e4.observer)) ? void 0 : a2.map((e4) => ({ observer: e4.observer, options: e4.options, callback: (a3) => Hi({ type: ai.Plugin, data: { plugin: e4.name, payload: a3 } }) }))) || [] }, $2);
5173
+ Pi({ type: si.Device, data: { ...e4 } });
5174
+ }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: J2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e3, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: Qi, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Hi, ignoreCSSAttributes: oe2, plugins: (null == (a2 = null == ne2 ? void 0 : ne2.filter((e4) => e4.observer)) ? void 0 : a2.map((e4) => ({ observer: e4.observer, options: e4.options, callback: (a3) => Pi({ type: si.Plugin, data: { plugin: e4.name, payload: a3 } }) }))) || [] }, $2);
5150
5175
  };
5151
5176
  ge2.addLoadListener((a2) => {
5152
5177
  try {
@@ -5156,15 +5181,15 @@ function ae(e = {}) {
5156
5181
  }
5157
5182
  });
5158
5183
  const W = () => {
5159
- Ji(), e2.push(K(document)), Qi = true;
5184
+ qi(), e2.push(K(document)), Ji = true;
5160
5185
  };
5161
5186
  return "interactive" === document.readyState || "complete" === document.readyState ? W() : (e2.push(G("DOMContentLoaded", () => {
5162
- Hi({ type: ai.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5187
+ Pi({ type: si.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5163
5188
  })), e2.push(G("load", () => {
5164
- Hi({ type: ai.Load, data: {} }), "load" === X2 && W();
5189
+ Pi({ type: si.Load, data: {} }), "load" === X2 && W();
5165
5190
  }, window))), () => {
5166
- e2.forEach((e3) => e3()), ye2.destroy(), Qi = false, (function jl() {
5167
- mi = void 0;
5191
+ e2.forEach((e3) => e3()), ye2.destroy(), Ji = false, (function jl() {
5192
+ hi = void 0;
5168
5193
  })();
5169
5194
  };
5170
5195
  } catch (e2) {
@@ -5191,24 +5216,24 @@ function vu(e) {
5191
5216
  }), u;
5192
5217
  }
5193
5218
  ae.addCustomEvent = (e, a) => {
5194
- if (!Qi) throw new Error("please add custom event after start recording");
5195
- Hi({ type: ai.Custom, data: { tag: e, payload: a } });
5219
+ if (!Ji) throw new Error("please add custom event after start recording");
5220
+ Pi({ type: si.Custom, data: { tag: e, payload: a } });
5196
5221
  }, ae.addSailfishEvent = (e, a) => {
5197
- if (!Qi) throw new Error("please add Sailfish event after start recording");
5198
- Hi({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5222
+ if (!Ji) throw new Error("please add Sailfish event after start recording");
5223
+ Pi({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5199
5224
  }, ae.freezePage = () => {
5200
- yi.forEach((e) => e.freeze());
5225
+ mi.forEach((e) => e.freeze());
5201
5226
  }, ae.takeFullSnapshot = (e) => {
5202
- if (!Qi) throw new Error("please take full snapshot after start recording");
5203
- Ji(e);
5204
- }, ae.mirror = ta;
5205
- var na = { exports: {} }, ra = String, Lo = function() {
5206
- return { isColorSupported: false, reset: ra, bold: ra, dim: ra, italic: ra, underline: ra, inverse: ra, hidden: ra, strikethrough: ra, black: ra, red: ra, green: ra, yellow: ra, blue: ra, magenta: ra, cyan: ra, white: ra, gray: ra, bgBlack: ra, bgRed: ra, bgGreen: ra, bgYellow: ra, bgBlue: ra, bgMagenta: ra, bgCyan: ra, bgWhite: ra, blackBright: ra, redBright: ra, greenBright: ra, yellowBright: ra, blueBright: ra, magentaBright: ra, cyanBright: ra, whiteBright: ra, bgBlackBright: ra, bgRedBright: ra, bgGreenBright: ra, bgYellowBright: ra, bgBlueBright: ra, bgMagentaBright: ra, bgCyanBright: ra, bgWhiteBright: ra };
5227
+ if (!Ji) throw new Error("please take full snapshot after start recording");
5228
+ qi(e);
5229
+ }, ae.mirror = Qi;
5230
+ var ea = { exports: {} }, ta = String, Lo = function() {
5231
+ return { isColorSupported: false, reset: ta, bold: ta, dim: ta, italic: ta, underline: ta, inverse: ta, hidden: ta, strikethrough: ta, black: ta, red: ta, green: ta, yellow: ta, blue: ta, magenta: ta, cyan: ta, white: ta, gray: ta, bgBlack: ta, bgRed: ta, bgGreen: ta, bgYellow: ta, bgBlue: ta, bgMagenta: ta, bgCyan: ta, bgWhite: ta, blackBright: ta, redBright: ta, greenBright: ta, yellowBright: ta, blueBright: ta, magentaBright: ta, cyanBright: ta, whiteBright: ta, bgBlackBright: ta, bgRedBright: ta, bgGreenBright: ta, bgYellowBright: ta, bgBlueBright: ta, bgMagentaBright: ta, bgCyanBright: ta, bgWhiteBright: ta };
5207
5232
  };
5208
- na.exports = Lo(), na.exports.createColors = Lo;
5209
- var oa = na.exports;
5210
- const sa = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5211
- let ia = oa, aa = sa, la = class To extends Error {
5233
+ ea.exports = Lo(), ea.exports.createColors = Lo;
5234
+ var na = ea.exports;
5235
+ const ra = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5236
+ let oa = na, sa = ra, ia = class To extends Error {
5212
5237
  constructor(e, a, u, m2, w2, b2) {
5213
5238
  super(e), this.name = "CssSyntaxError", this.reason = e, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a < "u" && typeof u < "u" && ("number" == typeof a ? (this.line = a, this.column = u) : (this.line = a.line, this.column = a.column, this.endLine = u.line, this.endColumn = u.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, To);
5214
5239
  }
@@ -5218,11 +5243,11 @@ let ia = oa, aa = sa, la = class To extends Error {
5218
5243
  showSourceCode(e) {
5219
5244
  if (!this.source) return "";
5220
5245
  let a = this.source;
5221
- null == e && (e = ia.isColorSupported);
5246
+ null == e && (e = oa.isColorSupported);
5222
5247
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
5223
5248
  if (e) {
5224
- let { bold: e2, gray: a2, red: u2 } = ia.createColors(true);
5225
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), aa && (i = (e3) => aa(e3));
5249
+ let { bold: e2, gray: a2, red: u2 } = oa.createColors(true);
5250
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), sa && (i = (e3) => sa(e3));
5226
5251
  }
5227
5252
  let u = a.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u.length), b2 = String(w2).length;
5228
5253
  return u.slice(m2, w2).map((e2, a2) => {
@@ -5243,10 +5268,10 @@ let ia = oa, aa = sa, la = class To extends Error {
5243
5268
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
5244
5269
  }
5245
5270
  };
5246
- var ca = la;
5247
- la.default = la;
5248
- const ua = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5249
- let pa = class {
5271
+ var aa = ia;
5272
+ ia.default = ia;
5273
+ const la = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5274
+ let ca = class {
5250
5275
  constructor(e) {
5251
5276
  this.builder = e;
5252
5277
  }
@@ -5298,7 +5323,7 @@ let pa = class {
5298
5323
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
5299
5324
  let w2 = e.parent;
5300
5325
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
5301
- if (!w2) return ua[u];
5326
+ if (!w2) return la[u];
5302
5327
  let b2 = e.root();
5303
5328
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
5304
5329
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -5310,7 +5335,7 @@ let pa = class {
5310
5335
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
5311
5336
  });
5312
5337
  }
5313
- return typeof m2 > "u" && (m2 = ua[u]), b2.rawCache[u] = m2, m2;
5338
+ return typeof m2 > "u" && (m2 = la[u]), b2.rawCache[u] = m2, m2;
5314
5339
  }
5315
5340
  rawBeforeClose(e) {
5316
5341
  let a;
@@ -5386,17 +5411,17 @@ let pa = class {
5386
5411
  this[e.type](e, a);
5387
5412
  }
5388
5413
  };
5389
- var ha = pa;
5390
- pa.default = pa;
5391
- let fa = ha;
5414
+ var ua = ca;
5415
+ ca.default = ca;
5416
+ let pa = ua;
5392
5417
  function zs(e, a) {
5393
- new fa(a).stringify(e);
5418
+ new pa(a).stringify(e);
5394
5419
  }
5395
- var ma = zs;
5420
+ var ha = zs;
5396
5421
  zs.default = zs;
5397
- var ga = {};
5398
- ga.isClean = Symbol("isClean"), ga.my = Symbol("my");
5399
- let ya = ca, wa = ha, Sa = ma, { isClean: ba, my: va } = ga;
5422
+ var fa = {};
5423
+ fa.isClean = Symbol("isClean"), fa.my = Symbol("my");
5424
+ let ma = aa, ga = ua, ya = ha, { isClean: wa, my: Sa } = fa;
5400
5425
  function Bs(e, a) {
5401
5426
  let u = new e.constructor();
5402
5427
  for (let m2 in e) {
@@ -5418,12 +5443,12 @@ function Fe(e, a) {
5418
5443
  }
5419
5444
  return w2;
5420
5445
  }
5421
- let Ca = class {
5446
+ let ba = class {
5422
5447
  get proxyOf() {
5423
5448
  return this;
5424
5449
  }
5425
5450
  constructor(e = {}) {
5426
- this.raws = {}, this[ba] = false, this[va] = true;
5451
+ this.raws = {}, this[wa] = false, this[Sa] = true;
5427
5452
  for (let a in e) if ("nodes" === a) {
5428
5453
  this.nodes = [];
5429
5454
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -5467,19 +5492,19 @@ let Ca = class {
5467
5492
  let { end: u, start: m2 } = this.rangeBy(a);
5468
5493
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
5469
5494
  }
5470
- return new ya(e);
5495
+ return new ma(e);
5471
5496
  }
5472
5497
  getProxyProcessor() {
5473
5498
  return { get: (e, a) => "proxyOf" === a ? e : "root" === a ? () => e.root().toProxy() : e[a], set: (e, a, u) => (e[a] === u || (e[a] = u, ("prop" === a || "value" === a || "name" === a || "params" === a || "important" === a || "text" === a) && e.markDirty()), true) };
5474
5499
  }
5475
5500
  markClean() {
5476
- this[ba] = true;
5501
+ this[wa] = true;
5477
5502
  }
5478
5503
  markDirty() {
5479
- if (this[ba]) {
5480
- this[ba] = false;
5504
+ if (this[wa]) {
5505
+ this[wa] = false;
5481
5506
  let e = this;
5482
- for (; e = e.parent; ) e[ba] = false;
5507
+ for (; e = e.parent; ) e[wa] = false;
5483
5508
  }
5484
5509
  }
5485
5510
  next() {
@@ -5515,7 +5540,7 @@ let Ca = class {
5515
5540
  return (u.line < a.line || u.line === a.line && u.column <= a.column) && (u = { column: a.column + 1, line: a.line }), { end: u, start: a };
5516
5541
  }
5517
5542
  raw(e, a) {
5518
- return new wa().raw(this, e, a);
5543
+ return new ga().raw(this, e, a);
5519
5544
  }
5520
5545
  remove() {
5521
5546
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -5552,7 +5577,7 @@ let Ca = class {
5552
5577
  toProxy() {
5553
5578
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
5554
5579
  }
5555
- toString(e = Sa) {
5580
+ toString(e = ya) {
5556
5581
  e.stringify && (e = e.stringify);
5557
5582
  let a = "";
5558
5583
  return e(this, (e2) => {
@@ -5565,16 +5590,16 @@ let Ca = class {
5565
5590
  return e.warn(a, m2);
5566
5591
  }
5567
5592
  };
5568
- var ka = Ca;
5569
- Ca.default = Ca;
5570
- let xa = ka, Ma = class extends xa {
5593
+ var va = ba;
5594
+ ba.default = ba;
5595
+ let Ca = va, ka = class extends Ca {
5571
5596
  constructor(e) {
5572
5597
  super(e), this.type = "comment";
5573
5598
  }
5574
5599
  };
5575
- var Ia = Ma;
5576
- Ma.default = Ma;
5577
- let _a = ka, Oa = class extends _a {
5600
+ var xa = ka;
5601
+ ka.default = ka;
5602
+ let Ma = va, Ia = class extends Ma {
5578
5603
  get variable() {
5579
5604
  return this.prop.startsWith("--") || "$" === this.prop[0];
5580
5605
  }
@@ -5582,16 +5607,16 @@ let _a = ka, Oa = class extends _a {
5582
5607
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
5583
5608
  }
5584
5609
  };
5585
- var Ea = Oa;
5586
- Oa.default = Oa;
5587
- let La, Ra, Aa, Ta, Na = Ia, Pa = Ea, Da = ka, { isClean: Fa, my: Ua } = ga;
5610
+ var _a = Ia;
5611
+ Ia.default = Ia;
5612
+ let Oa, Ea, La, Ra, Aa = xa, Ta = _a, Na = va, { isClean: Pa, my: Da } = fa;
5588
5613
  function Wo(e) {
5589
5614
  return e.map((e2) => (e2.nodes && (e2.nodes = Wo(e2.nodes)), delete e2.source, e2));
5590
5615
  }
5591
5616
  function zo(e) {
5592
- if (e[Fa] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5617
+ if (e[Pa] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5593
5618
  }
5594
- let Ba = class Bo extends Da {
5619
+ let Fa = class Bo extends Na {
5595
5620
  get first() {
5596
5621
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
5597
5622
  }
@@ -5643,7 +5668,7 @@ let Ba = class Bo extends Da {
5643
5668
  return this.markDirty(), this;
5644
5669
  }
5645
5670
  normalize(e, a) {
5646
- if ("string" == typeof e) e = Wo(Ra(e).nodes);
5671
+ if ("string" == typeof e) e = Wo(Ea(e).nodes);
5647
5672
  else if (typeof e > "u") e = [];
5648
5673
  else if (Array.isArray(e)) {
5649
5674
  e = e.slice(0);
@@ -5654,14 +5679,14 @@ let Ba = class Bo extends Da {
5654
5679
  } else if (e.type) e = [e];
5655
5680
  else if (e.prop) {
5656
5681
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
5657
- "string" != typeof e.value && (e.value = String(e.value)), e = [new Pa(e)];
5658
- } else if (e.selector || e.selectors) e = [new Ta(e)];
5659
- else if (e.name) e = [new La(e)];
5682
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new Ta(e)];
5683
+ } else if (e.selector || e.selectors) e = [new Ra(e)];
5684
+ else if (e.name) e = [new Oa(e)];
5660
5685
  else {
5661
5686
  if (!e.text) throw new Error("Unknown node type in node creation");
5662
- e = [new Na(e)];
5687
+ e = [new Aa(e)];
5663
5688
  }
5664
- return e.map((e2) => (e2[Ua] || Bo.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[Fa] && zo(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
5689
+ return e.map((e2) => (e2[Da] || Bo.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[Pa] && zo(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
5665
5690
  }
5666
5691
  prepend(...e) {
5667
5692
  e = e.reverse();
@@ -5737,22 +5762,22 @@ let Ba = class Bo extends Da {
5737
5762
  }));
5738
5763
  }
5739
5764
  };
5740
- Ba.registerParse = (e) => {
5765
+ Fa.registerParse = (e) => {
5766
+ Ea = e;
5767
+ }, Fa.registerRule = (e) => {
5741
5768
  Ra = e;
5742
- }, Ba.registerRule = (e) => {
5743
- Ta = e;
5744
- }, Ba.registerAtRule = (e) => {
5769
+ }, Fa.registerAtRule = (e) => {
5770
+ Oa = e;
5771
+ }, Fa.registerRoot = (e) => {
5745
5772
  La = e;
5746
- }, Ba.registerRoot = (e) => {
5747
- Aa = e;
5748
5773
  };
5749
- var $a = Ba;
5750
- Ba.default = Ba, Ba.rebuild = (e) => {
5751
- "atrule" === e.type ? Object.setPrototypeOf(e, La.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, Ta.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, Pa.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Na.prototype) : "root" === e.type && Object.setPrototypeOf(e, Aa.prototype), e[Ua] = true, e.nodes && e.nodes.forEach((e2) => {
5752
- Ba.rebuild(e2);
5774
+ var Ua = Fa;
5775
+ Fa.default = Fa, Fa.rebuild = (e) => {
5776
+ "atrule" === e.type ? Object.setPrototypeOf(e, Oa.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, Ra.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, Ta.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Aa.prototype) : "root" === e.type && Object.setPrototypeOf(e, La.prototype), e[Da] = true, e.nodes && e.nodes.forEach((e2) => {
5777
+ Fa.rebuild(e2);
5753
5778
  });
5754
5779
  };
5755
- let Wa = $a, za = class extends Wa {
5780
+ let Ba = Ua, $a = class extends Ba {
5756
5781
  constructor(e) {
5757
5782
  super(e), this.type = "atrule";
5758
5783
  }
@@ -5763,38 +5788,38 @@ let Wa = $a, za = class extends Wa {
5763
5788
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
5764
5789
  }
5765
5790
  };
5766
- var ja = za;
5767
- za.default = za, Wa.registerAtRule(za);
5768
- let Ga, Va, qa = $a, Za = class extends qa {
5791
+ var Wa = $a;
5792
+ $a.default = $a, Ba.registerAtRule($a);
5793
+ let za, ja, Ga = Ua, Va = class extends Ga {
5769
5794
  constructor(e) {
5770
5795
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
5771
5796
  }
5772
5797
  toResult(e = {}) {
5773
- return new Ga(new Va(), this, e).stringify();
5798
+ return new za(new ja(), this, e).stringify();
5774
5799
  }
5775
5800
  };
5776
- Za.registerLazyResult = (e) => {
5777
- Ga = e;
5778
- }, Za.registerProcessor = (e) => {
5779
- Va = e;
5801
+ Va.registerLazyResult = (e) => {
5802
+ za = e;
5803
+ }, Va.registerProcessor = (e) => {
5804
+ ja = e;
5780
5805
  };
5781
- var Ka = Za;
5782
- Za.default = Za;
5783
- var Ja = { nanoid: (e = 21) => {
5806
+ var qa = Va;
5807
+ Va.default = Va;
5808
+ var Za = { nanoid: (e = 21) => {
5784
5809
  let a = "", u = 0 | e;
5785
5810
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
5786
5811
  return a;
5787
5812
  } };
5788
- let { existsSync: Ya, readFileSync: Qa } = sa, { dirname: el, join: tl } = sa, { SourceMapConsumer: nl, SourceMapGenerator: rl } = sa;
5789
- let ol = class {
5813
+ let { existsSync: Ka, readFileSync: Ja } = ra, { dirname: Ya, join: Qa } = ra, { SourceMapConsumer: el, SourceMapGenerator: tl } = ra;
5814
+ let nl = class {
5790
5815
  constructor(e, a) {
5791
5816
  if (false === a.map) return;
5792
5817
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
5793
5818
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
5794
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = el(this.mapFile)), m2 && (this.text = m2);
5819
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Ya(this.mapFile)), m2 && (this.text = m2);
5795
5820
  }
5796
5821
  consumer() {
5797
- return this.consumerCache || (this.consumerCache = new nl(this.text)), this.consumerCache;
5822
+ return this.consumerCache || (this.consumerCache = new el(this.text)), this.consumerCache;
5798
5823
  }
5799
5824
  decodeInline(e) {
5800
5825
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -5819,15 +5844,15 @@ let ol = class {
5819
5844
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
5820
5845
  }
5821
5846
  loadFile(e) {
5822
- if (this.root = el(e), Ya(e)) return this.mapFile = e, Qa(e, "utf-8").toString().trim();
5847
+ if (this.root = Ya(e), Ka(e)) return this.mapFile = e, Ja(e, "utf-8").toString().trim();
5823
5848
  }
5824
5849
  loadMap(e, a) {
5825
5850
  if (false === a) return false;
5826
5851
  if (a) {
5827
5852
  if ("string" == typeof a) return a;
5828
5853
  if ("function" != typeof a) {
5829
- if (a instanceof nl) return rl.fromSourceMap(a).toString();
5830
- if (a instanceof rl) return a.toString();
5854
+ if (a instanceof el) return tl.fromSourceMap(a).toString();
5855
+ if (a instanceof tl) return a.toString();
5831
5856
  if (this.isMap(a)) return JSON.stringify(a);
5832
5857
  throw new Error("Unsupported previous source map format: " + a.toString());
5833
5858
  }
@@ -5843,7 +5868,7 @@ let ol = class {
5843
5868
  if (this.inline) return this.decodeInline(this.annotation);
5844
5869
  if (this.annotation) {
5845
5870
  let a2 = this.annotation;
5846
- return e && (a2 = tl(el(e), a2)), this.loadFile(a2);
5871
+ return e && (a2 = Qa(Ya(e), a2)), this.loadFile(a2);
5847
5872
  }
5848
5873
  }
5849
5874
  }
@@ -5854,23 +5879,23 @@ let ol = class {
5854
5879
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
5855
5880
  }
5856
5881
  };
5857
- var sl = ol;
5858
- ol.default = ol;
5859
- let { nanoid: il } = Ja, { isAbsolute: al, resolve: ll } = sa, { SourceMapConsumer: cl, SourceMapGenerator: ul } = sa, { fileURLToPath: pl, pathToFileURL: dl } = sa, hl = ca, fl = sl, ml = sa, gl = Symbol("fromOffsetCache"), yl = !(!cl || !ul), wl = !(!ll || !al), Sl = class {
5882
+ var rl = nl;
5883
+ nl.default = nl;
5884
+ let { nanoid: ol } = Za, { isAbsolute: sl, resolve: il } = ra, { SourceMapConsumer: al, SourceMapGenerator: ll } = ra, { fileURLToPath: cl, pathToFileURL: ul } = ra, pl = aa, dl = rl, hl = ra, fl = Symbol("fromOffsetCache"), ml = !(!al || !ll), gl = !(!il || !sl), yl = class {
5860
5885
  get from() {
5861
5886
  return this.file || this.id;
5862
5887
  }
5863
5888
  constructor(e, a = {}) {
5864
5889
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
5865
- if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!wl || /^\w+:\/\//.test(a.from) || al(a.from) ? this.file = a.from : this.file = ll(a.from)), wl && yl) {
5866
- let e2 = new fl(this.css, a);
5890
+ if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!gl || /^\w+:\/\//.test(a.from) || sl(a.from) ? this.file = a.from : this.file = il(a.from)), gl && ml) {
5891
+ let e2 = new dl(this.css, a);
5867
5892
  if (e2.text) {
5868
5893
  this.map = e2;
5869
5894
  let a2 = e2.consumer().file;
5870
5895
  !this.file && a2 && (this.file = this.mapResolve(a2));
5871
5896
  }
5872
5897
  }
5873
- this.file || (this.id = "<input css " + il(6) + ">"), this.map && (this.map.file = this.from);
5898
+ this.file || (this.id = "<input css " + ol(6) + ">"), this.map && (this.map.file = this.from);
5874
5899
  }
5875
5900
  error(e, a, u, m2 = {}) {
5876
5901
  let w2, b2, C2;
@@ -5889,17 +5914,17 @@ let { nanoid: il } = Ja, { isAbsolute: al, resolve: ll } = sa, { SourceMapConsum
5889
5914
  a = e2.line, u = e2.col;
5890
5915
  }
5891
5916
  let x2 = this.origin(a, u, b2, w2);
5892
- return C2 = x2 ? new hl(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new hl(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (dl && (C2.input.url = dl(this.file).toString()), C2.input.file = this.file), C2;
5917
+ return C2 = x2 ? new pl(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new pl(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (ul && (C2.input.url = ul(this.file).toString()), C2.input.file = this.file), C2;
5893
5918
  }
5894
5919
  fromOffset(e) {
5895
5920
  let a, u;
5896
- if (this[gl]) u = this[gl];
5921
+ if (this[fl]) u = this[fl];
5897
5922
  else {
5898
5923
  let e2 = this.css.split("\n");
5899
5924
  u = new Array(e2.length);
5900
5925
  let a2 = 0;
5901
5926
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
5902
- this[gl] = u;
5927
+ this[fl] = u;
5903
5928
  }
5904
5929
  a = u[u.length - 1];
5905
5930
  let m2 = 0;
@@ -5918,17 +5943,17 @@ let { nanoid: il } = Ja, { isAbsolute: al, resolve: ll } = sa, { SourceMapConsum
5918
5943
  return { col: e - u[m2] + 1, line: m2 + 1 };
5919
5944
  }
5920
5945
  mapResolve(e) {
5921
- return /^\w+:\/\//.test(e) ? e : ll(this.map.consumer().sourceRoot || this.map.root || ".", e);
5946
+ return /^\w+:\/\//.test(e) ? e : il(this.map.consumer().sourceRoot || this.map.root || ".", e);
5922
5947
  }
5923
5948
  origin(e, a, u, m2) {
5924
5949
  if (!this.map) return false;
5925
5950
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
5926
5951
  if (!x2.source) return false;
5927
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = al(x2.source) ? dl(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || dl(this.map.mapFile));
5952
+ "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = sl(x2.source) ? ul(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ul(this.map.mapFile));
5928
5953
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
5929
5954
  if ("file:" === b2.protocol) {
5930
- if (!pl) throw new Error("file: protocol is not available in this PostCSS build");
5931
- I2.file = pl(b2);
5955
+ if (!cl) throw new Error("file: protocol is not available in this PostCSS build");
5956
+ I2.file = cl(b2);
5932
5957
  }
5933
5958
  let _2 = C2.sourceContentFor(x2.source);
5934
5959
  return _2 && (I2.source = _2), I2;
@@ -5939,9 +5964,9 @@ let { nanoid: il } = Ja, { isAbsolute: al, resolve: ll } = sa, { SourceMapConsum
5939
5964
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
5940
5965
  }
5941
5966
  };
5942
- var bl = Sl;
5943
- Sl.default = Sl, ml && ml.registerInput && ml.registerInput(Sl);
5944
- let vl, Cl, kl = $a, xl = class extends kl {
5967
+ var wl = yl;
5968
+ yl.default = yl, hl && hl.registerInput && hl.registerInput(yl);
5969
+ let Sl, bl, vl = Ua, Cl = class extends vl {
5945
5970
  constructor(e) {
5946
5971
  super(e), this.type = "root", this.nodes || (this.nodes = []);
5947
5972
  }
@@ -5958,29 +5983,29 @@ let vl, Cl, kl = $a, xl = class extends kl {
5958
5983
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
5959
5984
  }
5960
5985
  toResult(e = {}) {
5961
- return new vl(new Cl(), this, e).stringify();
5986
+ return new Sl(new bl(), this, e).stringify();
5962
5987
  }
5963
5988
  };
5964
- xl.registerLazyResult = (e) => {
5965
- vl = e;
5966
- }, xl.registerProcessor = (e) => {
5967
- Cl = e;
5989
+ Cl.registerLazyResult = (e) => {
5990
+ Sl = e;
5991
+ }, Cl.registerProcessor = (e) => {
5992
+ bl = e;
5968
5993
  };
5969
- var Ml = xl;
5970
- xl.default = xl, kl.registerRoot(xl);
5971
- let Il = { comma: (e) => Il.split(e, [","], true), space(e) {
5994
+ var kl = Cl;
5995
+ Cl.default = Cl, vl.registerRoot(Cl);
5996
+ let xl = { comma: (e) => xl.split(e, [","], true), space(e) {
5972
5997
  let a = [" ", "\n", " "];
5973
- return Il.split(e, a);
5998
+ return xl.split(e, a);
5974
5999
  }, split(e, a, u) {
5975
6000
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
5976
6001
  for (let u2 of e) _2 ? _2 = false : "\\" === u2 ? _2 = true : x2 ? u2 === I2 && (x2 = false) : '"' === u2 || "'" === u2 ? (x2 = true, I2 = u2) : "(" === u2 ? C2 += 1 : ")" === u2 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a.includes(u2) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u2;
5977
6002
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
5978
6003
  } };
5979
- var Ol = Il;
5980
- Il.default = Il;
5981
- let El = $a, Ll = Ol, Rl = class extends El {
6004
+ var Ml = xl;
6005
+ xl.default = xl;
6006
+ let Il = Ua, Ol = Ml, El = class extends Il {
5982
6007
  get selectors() {
5983
- return Ll.comma(this.selector);
6008
+ return Ol.comma(this.selector);
5984
6009
  }
5985
6010
  set selectors(e) {
5986
6011
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -5990,34 +6015,34 @@ let El = $a, Ll = Ol, Rl = class extends El {
5990
6015
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
5991
6016
  }
5992
6017
  };
5993
- var Al = Rl;
5994
- Rl.default = Rl, El.registerRule(Rl);
5995
- let Tl = ja, Nl = Ia, Pl = Ea, Dl = bl, Jl = sl, ec = Ml, tc = Al;
6018
+ var Ll = El;
6019
+ El.default = El, Il.registerRule(El);
6020
+ let Rl = Wa, Al = xa, Tl = _a, Nl = wl, Pl = rl, Dl = kl, Jl = Ll;
5996
6021
  function Ke(e, a) {
5997
6022
  if (Array.isArray(e)) return e.map((e2) => Ke(e2));
5998
6023
  let { inputs: u, ...m2 } = e;
5999
6024
  if (u) {
6000
6025
  a = [];
6001
6026
  for (let e2 of u) {
6002
- let u2 = { ...e2, __proto__: Dl.prototype };
6003
- u2.map && (u2.map = { ...u2.map, __proto__: Jl.prototype }), a.push(u2);
6027
+ let u2 = { ...e2, __proto__: Nl.prototype };
6028
+ u2.map && (u2.map = { ...u2.map, __proto__: Pl.prototype }), a.push(u2);
6004
6029
  }
6005
6030
  }
6006
6031
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ke(e2, a))), m2.source) {
6007
6032
  let { inputId: e2, ...u2 } = m2.source;
6008
6033
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
6009
6034
  }
6010
- if ("root" === m2.type) return new ec(m2);
6011
- if ("decl" === m2.type) return new Pl(m2);
6012
- if ("rule" === m2.type) return new tc(m2);
6013
- if ("comment" === m2.type) return new Nl(m2);
6014
- if ("atrule" === m2.type) return new Tl(m2);
6035
+ if ("root" === m2.type) return new Dl(m2);
6036
+ if ("decl" === m2.type) return new Tl(m2);
6037
+ if ("rule" === m2.type) return new Jl(m2);
6038
+ if ("comment" === m2.type) return new Al(m2);
6039
+ if ("atrule" === m2.type) return new Rl(m2);
6015
6040
  throw new Error("Unknown node type: " + e.type);
6016
6041
  }
6017
- var nc = Ke;
6042
+ var ec = Ke;
6018
6043
  Ke.default = Ke;
6019
- let { dirname: rc, relative: oc, resolve: sc, sep: ic } = sa, { SourceMapConsumer: ac, SourceMapGenerator: lc } = sa, { pathToFileURL: cc } = sa, uc = bl, pc = !(!ac || !lc), dc = !!(rc && sc && oc && ic);
6020
- var hc = class {
6044
+ let { dirname: tc, relative: nc, resolve: rc, sep: oc } = ra, { SourceMapConsumer: sc, SourceMapGenerator: ic } = ra, { pathToFileURL: ac } = ra, lc = wl, cc = !(!sc || !ic), uc = !!(tc && rc && nc && oc);
6045
+ var pc = class {
6021
6046
  constructor(e, a, u, m2) {
6022
6047
  this.stringify = e, this.mapOpts = u.map || {}, this.root = a, this.opts = u, this.css = m2, this.originalCSS = m2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
6023
6048
  }
@@ -6029,8 +6054,8 @@ var hc = class {
6029
6054
  }
6030
6055
  applyPrevMaps() {
6031
6056
  for (let e of this.previous()) {
6032
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || rc(e.file);
6033
- false === this.mapOpts.sourcesContent ? (a = new ac(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
6057
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || tc(e.file);
6058
+ false === this.mapOpts.sourcesContent ? (a = new sc(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
6034
6059
  }
6035
6060
  }
6036
6061
  clearAnnotation() {
@@ -6040,7 +6065,7 @@ var hc = class {
6040
6065
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
6041
6066
  }
6042
6067
  generate() {
6043
- if (this.clearAnnotation(), dc && pc && this.isMap()) return this.generateMap();
6068
+ if (this.clearAnnotation(), uc && cc && this.isMap()) return this.generateMap();
6044
6069
  {
6045
6070
  let e = "";
6046
6071
  return this.stringify(this.root, (a) => {
@@ -6052,12 +6077,12 @@ var hc = class {
6052
6077
  if (this.root) this.generateString();
6053
6078
  else if (1 === this.previous().length) {
6054
6079
  let e = this.previous()[0].consumer();
6055
- e.file = this.outputFile(), this.map = lc.fromSourceMap(e, { ignoreInvalidMapping: true });
6056
- } else this.map = new lc({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
6080
+ e.file = this.outputFile(), this.map = ic.fromSourceMap(e, { ignoreInvalidMapping: true });
6081
+ } else this.map = new ic({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
6057
6082
  return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
6058
6083
  }
6059
6084
  generateString() {
6060
- this.css = "", this.map = new lc({ file: this.outputFile(), ignoreInvalidMapping: true });
6085
+ this.css = "", this.map = new ic({ file: this.outputFile(), ignoreInvalidMapping: true });
6061
6086
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
6062
6087
  this.stringify(this.root, (C2, x2, I2) => {
6063
6088
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u, b2.generated.column = m2 - 1, x2.source && x2.source.start ? (b2.source = this.sourcePath(x2), b2.original.line = x2.source.start.line, b2.original.column = x2.source.start.column - 1, this.map.addMapping(b2)) : (b2.source = w2, b2.original.line = 1, b2.original.column = 0, this.map.addMapping(b2))), a = C2.match(/\n/g), a ? (u += a.length, e = C2.lastIndexOf("\n"), m2 = C2.length - e) : m2 += C2.length, x2 && "start" !== I2) {
@@ -6087,9 +6112,9 @@ var hc = class {
6087
6112
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
6088
6113
  let a = this.memoizedPaths.get(e);
6089
6114
  if (a) return a;
6090
- let u = this.opts.to ? rc(this.opts.to) : ".";
6091
- "string" == typeof this.mapOpts.annotation && (u = rc(sc(u, this.mapOpts.annotation)));
6092
- let m2 = oc(u, e);
6115
+ let u = this.opts.to ? tc(this.opts.to) : ".";
6116
+ "string" == typeof this.mapOpts.annotation && (u = tc(rc(u, this.mapOpts.annotation)));
6117
+ let m2 = nc(u, e);
6093
6118
  return this.memoizedPaths.set(e, m2), m2;
6094
6119
  }
6095
6120
  previous() {
@@ -6100,7 +6125,7 @@ var hc = class {
6100
6125
  }
6101
6126
  });
6102
6127
  else {
6103
- let e = new uc(this.originalCSS, this.opts);
6128
+ let e = new lc(this.originalCSS, this.opts);
6104
6129
  e.map && this.previousMaps.push(e.map);
6105
6130
  }
6106
6131
  return this.previousMaps;
@@ -6131,8 +6156,8 @@ var hc = class {
6131
6156
  toFileUrl(e) {
6132
6157
  let a = this.memoizedFileURLs.get(e);
6133
6158
  if (a) return a;
6134
- if (cc) {
6135
- let a2 = cc(e).toString();
6159
+ if (ac) {
6160
+ let a2 = ac(e).toString();
6136
6161
  return this.memoizedFileURLs.set(e, a2), a2;
6137
6162
  }
6138
6163
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -6140,13 +6165,13 @@ var hc = class {
6140
6165
  toUrl(e) {
6141
6166
  let a = this.memoizedURLs.get(e);
6142
6167
  if (a) return a;
6143
- "\\" === ic && (e = e.replace(/\\/g, "/"));
6168
+ "\\" === oc && (e = e.replace(/\\/g, "/"));
6144
6169
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
6145
6170
  return this.memoizedURLs.set(e, u), u;
6146
6171
  }
6147
6172
  };
6148
- const fc = /[\t\n\f\r "#'()/;[\\\]{}]/g, mc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, gc = /.[\r\n"'(/\\]/, yc = /[\da-f]/i;
6149
- let wc = ja, Sc = Ia, bc = Ea, vc = Ml, xc = Al, kc = function(e, a = {}) {
6173
+ const dc = /[\t\n\f\r "#'()/;[\\\]{}]/g, hc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, fc = /.[\r\n"'(/\\]/, mc = /[\da-f]/i;
6174
+ let gc = Wa, yc = xa, wc = _a, Sc = kl, bc = Ll, kc = function(e, a = {}) {
6150
6175
  let u, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e.css.valueOf(), F2 = a.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
6151
6176
  function y2(a2) {
6152
6177
  throw e.error("Unclosed " + a2, B2);
@@ -6196,7 +6221,7 @@ let wc = ja, Sc = Ia, bc = Ea, vc = Ml, xc = Al, kc = function(e, a = {}) {
6196
6221
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
6197
6222
  } while (I2);
6198
6223
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6199
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || gc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6224
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || fc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6200
6225
  break;
6201
6226
  case 39:
6202
6227
  case 34:
@@ -6214,31 +6239,31 @@ let wc = ja, Sc = Ia, bc = Ea, vc = Ml, xc = Al, kc = function(e, a = {}) {
6214
6239
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6215
6240
  break;
6216
6241
  case 64:
6217
- fc.lastIndex = B2 + 1, fc.test(D2), b2 = 0 === fc.lastIndex ? D2.length - 1 : fc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6242
+ dc.lastIndex = B2 + 1, dc.test(D2), b2 = 0 === dc.lastIndex ? D2.length - 1 : dc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6218
6243
  break;
6219
6244
  case 92:
6220
6245
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
6221
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, yc.test(D2.charAt(b2)))) {
6222
- for (; yc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6246
+ if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, mc.test(D2.charAt(b2)))) {
6247
+ for (; mc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6223
6248
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
6224
6249
  }
6225
6250
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6226
6251
  break;
6227
6252
  default:
6228
- 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (mc.lastIndex = B2 + 1, mc.test(D2), b2 = 0 === mc.lastIndex ? D2.length - 1 : mc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6253
+ 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (hc.lastIndex = B2 + 1, hc.test(D2), b2 = 0 === hc.lastIndex ? D2.length - 1 : hc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6229
6254
  }
6230
6255
  return B2++, x2;
6231
6256
  }, position: function S() {
6232
6257
  return B2;
6233
6258
  } };
6234
6259
  };
6235
- const Mc = { empty: true, space: true };
6236
- var Ic = class {
6260
+ const vc = { empty: true, space: true };
6261
+ var xc = class {
6237
6262
  constructor(e) {
6238
- this.input = e, this.root = new vc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
6263
+ this.input = e, this.root = new Sc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
6239
6264
  }
6240
6265
  atrule(e) {
6241
- let a = new wc();
6266
+ let a = new gc();
6242
6267
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
6243
6268
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
6244
6269
  for (; !this.tokenizer.endOfFile(); ) {
@@ -6290,7 +6315,7 @@ var Ic = class {
6290
6315
  return false;
6291
6316
  }
6292
6317
  comment(e) {
6293
- let a = new Sc();
6318
+ let a = new yc();
6294
6319
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
6295
6320
  let u = e[1].slice(2, -2);
6296
6321
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -6303,7 +6328,7 @@ var Ic = class {
6303
6328
  this.tokenizer = kc(this.input);
6304
6329
  }
6305
6330
  decl(e, a) {
6306
- let u = new bc();
6331
+ let u = new wc();
6307
6332
  this.init(u, e[0][2]);
6308
6333
  let m2, w2 = e[e.length - 1];
6309
6334
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Cc(e2) {
@@ -6352,7 +6377,7 @@ var Ic = class {
6352
6377
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
6353
6378
  }
6354
6379
  emptyRule(e) {
6355
- let a = new xc();
6380
+ let a = new bc();
6356
6381
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
6357
6382
  }
6358
6383
  end(e) {
@@ -6428,7 +6453,7 @@ var Ic = class {
6428
6453
  }
6429
6454
  raw(e, a, u, m2) {
6430
6455
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
6431
- for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", Mc[x2] || Mc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6456
+ for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", vc[x2] || vc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6432
6457
  if (!O2) {
6433
6458
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
6434
6459
  e.raws[a] = { raw: m3, value: _2 };
@@ -6437,7 +6462,7 @@ var Ic = class {
6437
6462
  }
6438
6463
  rule(e) {
6439
6464
  e.pop();
6440
- let a = new xc();
6465
+ let a = new bc();
6441
6466
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
6442
6467
  }
6443
6468
  spacesAndCommentsFromEnd(e) {
@@ -6477,9 +6502,9 @@ var Ic = class {
6477
6502
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
6478
6503
  }
6479
6504
  };
6480
- let _c = $a, Oc = bl, Ec = Ic;
6505
+ let Mc = Ua, Ic = wl, _c = xc;
6481
6506
  function Gt(e, a) {
6482
- let u = new Oc(e, a), m2 = new Ec(u);
6507
+ let u = new Ic(e, a), m2 = new _c(u);
6483
6508
  try {
6484
6509
  m2.parse();
6485
6510
  } catch (e2) {
@@ -6487,9 +6512,9 @@ function Gt(e, a) {
6487
6512
  }
6488
6513
  return m2.root;
6489
6514
  }
6490
- var Lc = Gt;
6491
- Gt.default = Gt, _c.registerParse(Gt);
6492
- let Rc = class {
6515
+ var Oc = Gt;
6516
+ Gt.default = Gt, Mc.registerParse(Gt);
6517
+ let Ec = class {
6493
6518
  constructor(e, a = {}) {
6494
6519
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
6495
6520
  let e2 = a.node.rangeBy(a);
@@ -6501,9 +6526,9 @@ let Rc = class {
6501
6526
  return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
6502
6527
  }
6503
6528
  };
6504
- var Ac = Rc;
6505
- Rc.default = Rc;
6506
- let Tc = Ac, Nc = class {
6529
+ var Lc = Ec;
6530
+ Ec.default = Ec;
6531
+ let Rc = Lc, Ac = class {
6507
6532
  get content() {
6508
6533
  return this.css;
6509
6534
  }
@@ -6515,26 +6540,26 @@ let Tc = Ac, Nc = class {
6515
6540
  }
6516
6541
  warn(e, a = {}) {
6517
6542
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
6518
- let u = new Tc(e, a);
6543
+ let u = new Rc(e, a);
6519
6544
  return this.messages.push(u), u;
6520
6545
  }
6521
6546
  warnings() {
6522
6547
  return this.messages.filter((e) => "warning" === e.type);
6523
6548
  }
6524
6549
  };
6525
- var Pc = Nc;
6526
- Nc.default = Nc;
6527
- let Dc = {};
6550
+ var Tc = Ac;
6551
+ Ac.default = Ac;
6552
+ let Nc = {};
6528
6553
  var ni = function(e) {
6529
- Dc[e] || (Dc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6554
+ Nc[e] || (Nc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6530
6555
  };
6531
- let Fc = $a, Uc = Ka, Bc = hc, $c = Lc, Wc = Pc, zc = Ml, jc = ma, { isClean: Gc, my: Vc } = ga, qc = ni;
6532
- const Hc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Zc = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, Kc = { Once: true, postcssPlugin: true, prepare: true };
6556
+ let Pc = Ua, Dc = qa, Fc = pc, Uc = Oc, Bc = Tc, $c = kl, Wc = ha, { isClean: zc, my: jc } = fa, Gc = ni;
6557
+ const Vc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, qc = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, Hc = { Once: true, postcssPlugin: true, prepare: true };
6533
6558
  function _e(e) {
6534
6559
  return "object" == typeof e && "function" == typeof e.then;
6535
6560
  }
6536
6561
  function ri(e) {
6537
- let a = false, u = Hc[e.type];
6562
+ let a = false, u = Vc[e.type];
6538
6563
  return "decl" === e.type ? a = e.prop.toLowerCase() : "atrule" === e.type && (a = e.name.toLowerCase()), a && e.append ? [u, u + "-" + a, 0, u + "Exit", u + "Exit-" + a] : a ? [u, u + "-" + a, u + "Exit", u + "Exit-" + a] : e.append ? [u, 0, u + "Exit"] : [u, u + "Exit"];
6539
6564
  }
6540
6565
  function br(e) {
@@ -6542,9 +6567,9 @@ function br(e) {
6542
6567
  return a = "document" === e.type ? ["Document", 0, "DocumentExit"] : "root" === e.type ? ["Root", 0, "RootExit"] : ri(e), { eventIndex: 0, events: a, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
6543
6568
  }
6544
6569
  function Js(e) {
6545
- return e[Gc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6570
+ return e[zc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6546
6571
  }
6547
- let Jc = {}, Yc = class oi {
6572
+ let Zc = {}, Kc = class oi {
6548
6573
  get content() {
6549
6574
  return this.stringify().content;
6550
6575
  }
@@ -6571,19 +6596,19 @@ let Jc = {}, Yc = class oi {
6571
6596
  }
6572
6597
  constructor(e, a, u) {
6573
6598
  let m2;
6574
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof oi || a instanceof Wc) m2 = Js(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
6599
+ if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof oi || a instanceof Bc) m2 = Js(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
6575
6600
  else {
6576
- let e2 = $c;
6601
+ let e2 = Uc;
6577
6602
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
6578
6603
  try {
6579
6604
  m2 = e2(a, u);
6580
6605
  } catch (e3) {
6581
6606
  this.processed = true, this.error = e3;
6582
6607
  }
6583
- m2 && !m2[Vc] && Fc.rebuild(m2);
6608
+ m2 && !m2[jc] && Pc.rebuild(m2);
6584
6609
  }
6585
6610
  else m2 = Js(a);
6586
- this.result = new Wc(e, m2, u), this.helpers = { ...Jc, postcss: Jc, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
6611
+ this.result = new Bc(e, m2, u), this.helpers = { ...Zc, postcss: Zc, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
6587
6612
  }
6588
6613
  async() {
6589
6614
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -6617,8 +6642,8 @@ let Jc = {}, Yc = class oi {
6617
6642
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
6618
6643
  };
6619
6644
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
6620
- if (!Zc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6621
- if (!Kc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6645
+ if (!qc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6646
+ if (!Hc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6622
6647
  else "function" == typeof e[a] && t(e, a, e[a]);
6623
6648
  }
6624
6649
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -6635,8 +6660,8 @@ let Jc = {}, Yc = class oi {
6635
6660
  }
6636
6661
  if (this.prepareVisitors(), this.hasListener) {
6637
6662
  let e = this.result.root;
6638
- for (; !e[Gc]; ) {
6639
- e[Gc] = true;
6663
+ for (; !e[zc]; ) {
6664
+ e[zc] = true;
6640
6665
  let a = [br(e)];
6641
6666
  for (; a.length > 0; ) {
6642
6667
  let e2 = this.visitTick(a);
@@ -6681,9 +6706,9 @@ let Jc = {}, Yc = class oi {
6681
6706
  if (this.error) throw this.error;
6682
6707
  if (this.stringified) return this.result;
6683
6708
  this.stringified = true, this.sync();
6684
- let e = this.result.opts, a = jc;
6709
+ let e = this.result.opts, a = Wc;
6685
6710
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
6686
- let u = new Bc(a, this.result.root, this.result.opts).generate();
6711
+ let u = new Fc(a, this.result.root, this.result.opts).generate();
6687
6712
  return this.result.css = u[0], this.result.map = u[1], this.result;
6688
6713
  }
6689
6714
  sync() {
@@ -6695,14 +6720,14 @@ let Jc = {}, Yc = class oi {
6695
6720
  }
6696
6721
  if (this.prepareVisitors(), this.hasListener) {
6697
6722
  let e = this.result.root;
6698
- for (; !e[Gc]; ) e[Gc] = true, this.walkSync(e);
6723
+ for (; !e[zc]; ) e[zc] = true, this.walkSync(e);
6699
6724
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
6700
6725
  else this.visitSync(this.listeners.OnceExit, e);
6701
6726
  }
6702
6727
  return this.result;
6703
6728
  }
6704
6729
  then(e, a) {
6705
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || qc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6730
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || Gc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6706
6731
  }
6707
6732
  toString() {
6708
6733
  return this.css;
@@ -6734,22 +6759,22 @@ let Jc = {}, Yc = class oi {
6734
6759
  }
6735
6760
  if (0 !== a.iterator) {
6736
6761
  let m3, w3 = a.iterator;
6737
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[Gc]) return m3[Gc] = true, void e.push(br(m3));
6762
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[zc]) return m3[zc] = true, void e.push(br(m3));
6738
6763
  a.iterator = 0, delete u.indexes[w3];
6739
6764
  }
6740
6765
  let w2 = a.events;
6741
6766
  for (; a.eventIndex < w2.length; ) {
6742
6767
  let e2 = w2[a.eventIndex];
6743
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[Gc] = true, a.iterator = u.getIterator()));
6768
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[zc] = true, a.iterator = u.getIterator()));
6744
6769
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
6745
6770
  }
6746
6771
  e.pop();
6747
6772
  }
6748
6773
  walkSync(e) {
6749
- e[Gc] = true;
6774
+ e[zc] = true;
6750
6775
  let a = ri(e);
6751
6776
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
6752
- e2[Gc] || this.walkSync(e2);
6777
+ e2[zc] || this.walkSync(e2);
6753
6778
  });
6754
6779
  else {
6755
6780
  let a2 = this.listeners[u];
@@ -6760,14 +6785,14 @@ let Jc = {}, Yc = class oi {
6760
6785
  return this.sync().warnings();
6761
6786
  }
6762
6787
  };
6763
- Yc.registerPostcss = (e) => {
6764
- Jc = e;
6788
+ Kc.registerPostcss = (e) => {
6789
+ Zc = e;
6765
6790
  };
6766
- var Xc = Yc;
6767
- Yc.default = Yc, zc.registerLazyResult(Yc), Uc.registerLazyResult(Yc);
6768
- let Qc = hc, lu = Lc;
6769
- const cu = Pc;
6770
- let hu = ma, Cu = ni, ku = class {
6791
+ var Jc = Kc;
6792
+ Kc.default = Kc, $c.registerLazyResult(Kc), Dc.registerLazyResult(Kc);
6793
+ let Yc = pc, Xc = Oc;
6794
+ const Qc = Tc;
6795
+ let lu = ha, cu = ni, hu = class {
6771
6796
  get content() {
6772
6797
  return this.result.css;
6773
6798
  }
@@ -6788,7 +6813,7 @@ let hu = ma, Cu = ni, ku = class {
6788
6813
  }
6789
6814
  get root() {
6790
6815
  if (this._root) return this._root;
6791
- let e, a = lu;
6816
+ let e, a = Xc;
6792
6817
  try {
6793
6818
  e = a(this._css, this._opts);
6794
6819
  } catch (e2) {
@@ -6802,11 +6827,11 @@ let hu = ma, Cu = ni, ku = class {
6802
6827
  }
6803
6828
  constructor(e, a, u) {
6804
6829
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
6805
- let m2, w2 = hu;
6806
- this.result = new cu(this._processor, m2, this._opts), this.result.css = a;
6830
+ let m2, w2 = lu;
6831
+ this.result = new Qc(this._processor, m2, this._opts), this.result.css = a;
6807
6832
  let b2 = this;
6808
6833
  Object.defineProperty(this.result, "root", { get: () => b2.root });
6809
- let C2 = new Qc(w2, m2, this._opts, a);
6834
+ let C2 = new Yc(w2, m2, this._opts, a);
6810
6835
  if (C2.isMap()) {
6811
6836
  let [e2, a2] = C2.generate();
6812
6837
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -6826,7 +6851,7 @@ let hu = ma, Cu = ni, ku = class {
6826
6851
  return this.result;
6827
6852
  }
6828
6853
  then(e, a) {
6829
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || Cu("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6854
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || cu("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6830
6855
  }
6831
6856
  toString() {
6832
6857
  return this._css;
@@ -6835,9 +6860,9 @@ let hu = ma, Cu = ni, ku = class {
6835
6860
  return [];
6836
6861
  }
6837
6862
  };
6838
- var xu = ku;
6839
- ku.default = ku;
6840
- let Mu = Ka, _u = Xc, Ou = xu, Eu = Ml, Lu = class {
6863
+ var Cu = hu;
6864
+ hu.default = hu;
6865
+ let ku = qa, xu = Jc, Mu = Cu, _u = kl, Ou = class {
6841
6866
  constructor(e = []) {
6842
6867
  this.version = "8.5.3", this.plugins = this.normalize(e);
6843
6868
  }
@@ -6853,39 +6878,39 @@ let Mu = Ka, _u = Xc, Ou = xu, Eu = Ml, Lu = class {
6853
6878
  return a;
6854
6879
  }
6855
6880
  process(e, a = {}) {
6856
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new _u(this, e, a) : new Ou(this, e, a);
6881
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new xu(this, e, a) : new Mu(this, e, a);
6857
6882
  }
6858
6883
  use(e) {
6859
6884
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
6860
6885
  }
6861
6886
  };
6862
- var Ru = Lu;
6863
- Lu.default = Lu, Eu.registerProcessor(Lu), Mu.registerProcessor(Lu);
6864
- let Au = ja, Tu = Ia, Nu = $a, Pu = ca, Du = Ea, Fu = Ka, Uu = nc, $u = bl, Wu = Xc, zu = Ol, ju = ka, Gu = Lc, Vu = Ru, qu = Pc, Hu = Ml, Zu = Al, Ku = ma, Ju = Ac;
6887
+ var Eu = Ou;
6888
+ Ou.default = Ou, _u.registerProcessor(Ou), ku.registerProcessor(Ou);
6889
+ let Lu = Wa, Ru = xa, Au = Ua, Tu = aa, Nu = _a, Pu = qa, Du = ec, Fu = wl, Uu = Jc, $u = Ml, Wu = va, zu = Oc, ju = Eu, Gu = Tc, Vu = kl, qu = Ll, Hu = ha, Zu = Lc;
6865
6890
  function T$1(...e) {
6866
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Vu(e);
6891
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new ju(e);
6867
6892
  }
6868
6893
  T$1.plugin = function(e, a) {
6869
6894
  let u, m2 = false;
6870
6895
  function n(...u2) {
6871
6896
  console && console.warn && !m2 && (m2 = true, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
6872
6897
  let w2 = a(...u2);
6873
- return w2.postcssPlugin = e, w2.postcssVersion = new Vu().version, w2;
6898
+ return w2.postcssPlugin = e, w2.postcssVersion = new ju().version, w2;
6874
6899
  }
6875
6900
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
6876
6901
  return T$1([n(u2)]).process(e2, a2);
6877
6902
  }, n;
6878
- }, T$1.stringify = Ku, T$1.parse = Gu, T$1.fromJSON = Uu, T$1.list = zu, T$1.comment = (e) => new Tu(e), T$1.atRule = (e) => new Au(e), T$1.decl = (e) => new Du(e), T$1.rule = (e) => new Zu(e), T$1.root = (e) => new Hu(e), T$1.document = (e) => new Fu(e), T$1.CssSyntaxError = Pu, T$1.Declaration = Du, T$1.Container = Nu, T$1.Processor = Vu, T$1.Document = Fu, T$1.Comment = Tu, T$1.Warning = Ju, T$1.AtRule = Au, T$1.Result = qu, T$1.Input = $u, T$1.Rule = Zu, T$1.Root = Hu, T$1.Node = ju, Wu.registerPostcss(T$1);
6879
- var Yu = T$1;
6903
+ }, T$1.stringify = Hu, T$1.parse = zu, T$1.fromJSON = Du, T$1.list = $u, T$1.comment = (e) => new Ru(e), T$1.atRule = (e) => new Lu(e), T$1.decl = (e) => new Nu(e), T$1.rule = (e) => new qu(e), T$1.root = (e) => new Vu(e), T$1.document = (e) => new Pu(e), T$1.CssSyntaxError = Tu, T$1.Declaration = Nu, T$1.Container = Au, T$1.Processor = ju, T$1.Document = Pu, T$1.Comment = Ru, T$1.Warning = Zu, T$1.AtRule = Lu, T$1.Result = Gu, T$1.Input = Fu, T$1.Rule = qu, T$1.Root = Vu, T$1.Node = Wu, Uu.registerPostcss(T$1);
6904
+ var Ku = T$1;
6880
6905
  T$1.default = T$1;
6881
- const Xu = Su(Yu);
6882
- var Qu;
6883
- Xu.stringify, Xu.fromJSON, Xu.plugin, Xu.parse, Xu.list, Xu.document, Xu.comment, Xu.atRule, Xu.rule, Xu.decl, Xu.root, Xu.CssSyntaxError, Xu.Declaration, Xu.Container, Xu.Processor, Xu.Document, Xu.Comment, Xu.Warning, Xu.AtRule, Xu.Result, Xu.Input, Xu.Rule, Xu.Root, Xu.Node, (function(e) {
6906
+ const Ju = Su(Ku);
6907
+ var Yu;
6908
+ Ju.stringify, Ju.fromJSON, Ju.plugin, Ju.parse, Ju.list, Ju.document, Ju.comment, Ju.atRule, Ju.rule, Ju.decl, Ju.root, Ju.CssSyntaxError, Ju.Declaration, Ju.Container, Ju.Processor, Ju.Document, Ju.Comment, Ju.Warning, Ju.AtRule, Ju.Result, Ju.Input, Ju.Rule, Ju.Root, Ju.Node, (function(e) {
6884
6909
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
6885
- })(Qu || (Qu = {}));
6886
- const { addCustomEvent: ep } = ae, { addSailfishEvent: tp } = ae, { freezePage: np } = ae, { takeFullSnapshot: rp } = ae;
6887
- var op = Object.defineProperty, y = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? op(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u);
6888
- let sp = class d {
6910
+ })(Yu || (Yu = {}));
6911
+ const { addCustomEvent: Xu } = ae, { addSailfishEvent: Qu } = ae, { freezePage: ep } = ae, { takeFullSnapshot: tp } = ae;
6912
+ var np = Object.defineProperty, y = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? np(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u);
6913
+ let rp = class d {
6889
6914
  constructor(e) {
6890
6915
  y(this, "fileName"), y(this, "functionName"), y(this, "lineNumber"), y(this, "columnNumber"), this.fileName = e.fileName || "", this.functionName = e.functionName || "", this.lineNumber = e.lineNumber, this.columnNumber = e.columnNumber;
6891
6916
  }
@@ -6894,8 +6919,8 @@ let sp = class d {
6894
6919
  return this.functionName ? `${this.functionName} (${this.fileName}:${e}:${a})` : `${this.fileName}:${e}:${a}`;
6895
6920
  }
6896
6921
  };
6897
- const ip = /(^|@)\S+:\d+/, ap = /^\s*at .*(\S+:\d+|\(native\))/m, lp = /^(eval@)?(\[native code])?$/, cp = { parse: function(e) {
6898
- return e ? typeof e.stacktrace < "u" || typeof e["opera#sourceloc"] < "u" ? this.parseOpera(e) : e.stack && e.stack.match(ap) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
6922
+ const op = /(^|@)\S+:\d+/, sp = /^\s*at .*(\S+:\d+|\(native\))/m, ip = /^(eval@)?(\[native code])?$/, ap = { parse: function(e) {
6923
+ return e ? typeof e.stacktrace < "u" || typeof e["opera#sourceloc"] < "u" ? this.parseOpera(e) : e.stack && e.stack.match(sp) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
6899
6924
  }, extractLocation: function(e) {
6900
6925
  if (-1 === e.indexOf(":")) return [e];
6901
6926
  const a = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g, ""));
@@ -6903,23 +6928,23 @@ const ip = /(^|@)\S+:\d+/, ap = /^\s*at .*(\S+:\d+|\(native\))/m, lp = /^(eval@)
6903
6928
  return [a[1], a[2] || void 0, a[3] || void 0];
6904
6929
  }, parseV8OrIE: function(e) {
6905
6930
  return e.stack.split("\n").filter(function(e2) {
6906
- return !!e2.match(ap);
6931
+ return !!e2.match(sp);
6907
6932
  }, this).map(function(e2) {
6908
6933
  e2.indexOf("(eval ") > -1 && (e2 = e2.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
6909
6934
  let a = e2.replace(/^\s+/, "").replace(/\(eval code/g, "(");
6910
6935
  const u = a.match(/ (\((.+):(\d+):(\d+)\)$)/);
6911
6936
  a = u ? a.replace(u[0], "") : a;
6912
6937
  const m2 = a.split(/\s+/).slice(1), w2 = this.extractLocation(u ? u[1] : m2.pop()), b2 = m2.join(" ") || void 0, C2 = ["eval", "<anonymous>"].indexOf(w2[0]) > -1 ? void 0 : w2[0];
6913
- return new sp({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6938
+ return new rp({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6914
6939
  }, this);
6915
6940
  }, parseFFOrSafari: function(e) {
6916
6941
  return e.stack.split("\n").filter(function(e2) {
6917
- return !e2.match(lp);
6942
+ return !e2.match(ip);
6918
6943
  }, this).map(function(e2) {
6919
- if (e2.indexOf(" > eval") > -1 && (e2 = e2.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e2.indexOf("@") && -1 === e2.indexOf(":")) return new sp({ functionName: e2 });
6944
+ if (e2.indexOf(" > eval") > -1 && (e2 = e2.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e2.indexOf("@") && -1 === e2.indexOf(":")) return new rp({ functionName: e2 });
6920
6945
  {
6921
6946
  const a = /((.*".+"[^@]*)?[^@]*)(?:@)/, u = e2.match(a), m2 = u && u[1] ? u[1] : void 0, w2 = this.extractLocation(e2.replace(a, ""));
6922
- return new sp({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6947
+ return new rp({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6923
6948
  }
6924
6949
  }, this);
6925
6950
  }, parseOpera: function(e) {
@@ -6928,22 +6953,22 @@ const ip = /(^|@)\S+:\d+/, ap = /^\s*at .*(\S+:\d+|\(native\))/m, lp = /^(eval@)
6928
6953
  const a = /Line (\d+).*script (?:in )?(\S+)/i, u = e.message.split("\n"), m2 = [];
6929
6954
  for (let e2 = 2, w2 = u.length; e2 < w2; e2 += 2) {
6930
6955
  const w3 = a.exec(u[e2]);
6931
- w3 && m2.push(new sp({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6956
+ w3 && m2.push(new rp({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6932
6957
  }
6933
6958
  return m2;
6934
6959
  }, parseOpera10: function(e) {
6935
6960
  const a = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, u = e.stacktrace.split("\n"), m2 = [];
6936
6961
  for (let e2 = 0, w2 = u.length; e2 < w2; e2 += 2) {
6937
6962
  const w3 = a.exec(u[e2]);
6938
- w3 && m2.push(new sp({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6963
+ w3 && m2.push(new rp({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6939
6964
  }
6940
6965
  return m2;
6941
6966
  }, parseOpera11: function(e) {
6942
6967
  return e.stack.split("\n").filter(function(e2) {
6943
- return !!e2.match(ip) && !e2.match(/^Error created at/);
6968
+ return !!e2.match(op) && !e2.match(/^Error created at/);
6944
6969
  }, this).map(function(e2) {
6945
6970
  const a = e2.split("@"), u = this.extractLocation(a.pop()), m2 = (a.shift() || "").replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0;
6946
- return new sp({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6971
+ return new rp({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6947
6972
  }, this);
6948
6973
  } };
6949
6974
  function T(e) {
@@ -7000,9 +7025,9 @@ function g(e, a) {
7000
7025
  return a2 instanceof Node ? a2 instanceof HTMLElement ? a2 ? a2.outerHTML : "" : a2.nodeName : a2 instanceof Error ? a2.stack ? a2.stack + "\nEnd of stack for Error object" : a2.name + ": " + a2.message : a2;
7001
7026
  });
7002
7027
  }
7003
- const up = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
7028
+ const lp = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
7004
7029
  function R(e, a, u) {
7005
- const m2 = u ? Object.assign({}, up, u) : up, w2 = m2.logger;
7030
+ const m2 = u ? Object.assign({}, lp, u) : lp, w2 = m2.logger;
7006
7031
  if (!w2) return () => {
7007
7032
  };
7008
7033
  let b2;
@@ -7011,7 +7036,7 @@ function R(e, a, u) {
7011
7036
  const I2 = [];
7012
7037
  if (m2.level.includes("error")) {
7013
7038
  const l = (a2) => {
7014
- const u2 = a2.message, w3 = a2.error, b3 = cp.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
7039
+ const u2 = a2.message, w3 = a2.error, b3 = ap.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
7015
7040
  e({ level: "error", trace: b3, payload: C3 });
7016
7041
  };
7017
7042
  a.addEventListener("error", l), I2.push(() => {
@@ -7020,7 +7045,7 @@ function R(e, a, u) {
7020
7045
  const f = (a2) => {
7021
7046
  let u2, w3;
7022
7047
  a2.reason instanceof Error ? (u2 = a2.reason, w3 = [g(`Uncaught (in promise) ${u2.name}: ${u2.message}`, m2.stringifyOptions)]) : (u2 = new Error(), w3 = [g("Uncaught (in promise)", m2.stringifyOptions), g(a2.reason, m2.stringifyOptions)]);
7023
- const b3 = cp.parse(u2).map((e2) => e2.toString());
7048
+ const b3 = ap.parse(u2).map((e2) => e2.toString());
7024
7049
  e({ level: "error", trace: b3, payload: w3 });
7025
7050
  };
7026
7051
  a.addEventListener("unhandledrejection", f), I2.push(() => {
@@ -7048,7 +7073,7 @@ function R(e, a, u) {
7048
7073
  if (a3.apply(this, w3), !("assert" === u2 && w3[0] || x2)) {
7049
7074
  x2 = true;
7050
7075
  try {
7051
- const a4 = cp.parse(new Error()).map((e2) => e2.toString()).splice(1), b3 = ("assert" === u2 ? w3.slice(1) : w3).map((e2) => g(e2, m2.stringifyOptions));
7076
+ const a4 = ap.parse(new Error()).map((e2) => e2.toString()).splice(1), b3 = ("assert" === u2 ? w3.slice(1) : w3).map((e2) => g(e2, m2.stringifyOptions));
7052
7077
  C2++, C2 < m2.lengthThreshold ? e({ level: u2, trace: a4, payload: b3 }) : C2 === m2.lengthThreshold && e({ level: "warn", trace: [], payload: [g("The number of log records reached the threshold.")] });
7053
7078
  } catch (e2) {
7054
7079
  a3("@sailfish-rrweb/rrweb logger error:", e2, ...w3);
@@ -7060,7 +7085,7 @@ function R(e, a, u) {
7060
7085
  };
7061
7086
  }
7062
7087
  }
7063
- var pp = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(pp || {});
7088
+ var cp = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(cp || {});
7064
7089
  function suppressConsoleLogsDuringCall(e) {
7065
7090
  const a = console.log, u = console.warn, m2 = console.error;
7066
7091
  console.log = () => {
@@ -7073,7 +7098,7 @@ function suppressConsoleLogsDuringCall(e) {
7073
7098
  console.log = a, console.warn = u, console.error = m2;
7074
7099
  }
7075
7100
  }
7076
- const dp = "zendesk_chat", hp = "Zendesk";
7101
+ const up = "zendesk_chat", pp = "Zendesk";
7077
7102
  function zE_safe(...e) {
7078
7103
  try {
7079
7104
  if ((function hasZendesk() {
@@ -7112,7 +7137,7 @@ function initializeDomContentEvents(e) {
7112
7137
  function initializeConsolePlugin(e, a) {
7113
7138
  const { name: u, observer: m2 } = /* @__PURE__ */ ((e2) => ({ name: "@sailfish-rrweb/rrweb/console@1", observer: R, options: e2 }))(e);
7114
7139
  m2((e2) => {
7115
- sendEvent({ type: pp.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
7140
+ sendEvent({ type: cp.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
7116
7141
  }, window, e);
7117
7142
  }
7118
7143
  async function initializeRecording(e, a, u, m2, w2) {
@@ -7132,11 +7157,11 @@ async function initializeRecording(e, a, u, m2, w2) {
7132
7157
  zE_safe("messenger:set", "conversationTags", [`sailfish-session-${m2}`]);
7133
7158
  });
7134
7159
  const handleWidgetOpen = () => {
7135
- ae.addSailfishEvent(pp.SailfishCustom, { action: "customer support chat opened", element_id: dp, provider: hp });
7160
+ ae.addSailfishEvent(cp.SailfishCustom, { action: "customer support chat opened", element_id: up, provider: pp });
7136
7161
  }, handleWidgetClose = () => {
7137
- ae.addSailfishEvent(pp.SailfishCustom, { action: "customer support chat closed", element_id: dp, provider: hp });
7162
+ ae.addSailfishEvent(cp.SailfishCustom, { action: "customer support chat closed", element_id: up, provider: pp });
7138
7163
  }, handleUnreadMessages = (e2) => {
7139
- ae.addSailfishEvent(pp.SailfishCustom, { action: "zendesk unreadmessages", element_id: dp, provider: hp });
7164
+ ae.addSailfishEvent(cp.SailfishCustom, { action: "zendesk unreadmessages", element_id: up, provider: pp });
7140
7165
  };
7141
7166
  suppressConsoleLogsDuringCall(() => {
7142
7167
  zE_safe("messenger:on", "open", handleWidgetOpen), zE_safe("messenger:on", "close", handleWidgetClose), zE_safe("messenger:on", "unreadMessages", handleUnreadMessages);
@@ -7147,8 +7172,8 @@ async function initializeRecording(e, a, u, m2, w2) {
7147
7172
  }
7148
7173
  return b2;
7149
7174
  }
7150
- let fp = null, mp = null;
7151
- const gp = readDebugFlag(), yp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], wp = [400, 403], Sp = "CORS", bp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, vp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7175
+ let dp = null, hp = null;
7176
+ const fp = readDebugFlag(), mp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], gp = [400, 403], yp = "CORS", wp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, Sp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7152
7177
  function trackDomainChangesOnce() {
7153
7178
  const e = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7154
7179
  if (e.routeWatcherIntervalId) return;
@@ -7215,7 +7240,7 @@ function shouldSkipHeadersPropagation(e, a = []) {
7215
7240
  return true;
7216
7241
  }
7217
7242
  for (const e2 of E) if (u.pathname.toLowerCase().endsWith(e2)) return true;
7218
- return !!matchUrlWithWildcard(e, [...yp, ...a]);
7243
+ return !!matchUrlWithWildcard(e, [...mp, ...a]);
7219
7244
  }
7220
7245
  function setupFetchInterceptor(e = []) {
7221
7246
  const a = window.fetch, u = getOrSetSessionId();
@@ -7250,7 +7275,7 @@ function setupFetchInterceptor(e = []) {
7250
7275
  F2[e3] = a4;
7251
7276
  }) : F2 = { ...w3.headers }), D2 = w3.body;
7252
7277
  } catch (e3) {
7253
- gp && console.warn("[Sailfish] Failed to capture request data:", e3);
7278
+ fp && console.warn("[Sailfish] Failed to capture request data:", e3);
7254
7279
  }
7255
7280
  delete F2[b];
7256
7281
  const U2 = (_a2 = getFuncSpanHeader()) == null ? void 0 : _a2.name;
@@ -7260,16 +7285,16 @@ function setupFetchInterceptor(e = []) {
7260
7285
  const I4 = getFuncSpanHeader();
7261
7286
  if (u3 instanceof Request) {
7262
7287
  const _3 = u3.clone(), O3 = new Headers(_3.headers);
7263
- O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), gp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u3.url, header: I4.name }));
7288
+ O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), fp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u3.url, header: I4.name }));
7264
7289
  const E3 = new Request(_3, { headers: O3 });
7265
7290
  return await e3.call(a4, E3, m4);
7266
7291
  }
7267
7292
  {
7268
7293
  const _3 = { ...m4 }, O3 = new Headers(m4.headers || {});
7269
- return O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), gp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u3 ? u3 : u3.href, header: I4.name })), _3.headers = O3, await e3.call(a4, u3, _3);
7294
+ return O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), fp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u3 ? u3 : u3.href, header: I4.name })), _3.headers = O3, await e3.call(a4, u3, _3);
7270
7295
  }
7271
7296
  })(e2, a3, m3, w3, C3, _2.page_visit_uuid, I3), B2 = false;
7272
- wp.includes(U3.status) && (gp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e3, a4, u3, m4) {
7297
+ gp.includes(U3.status) && (fp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e3, a4, u3, m4) {
7273
7298
  try {
7274
7299
  let m5 = u3[0], w4 = u3[1] || {};
7275
7300
  if ("string" == typeof m5 || m5 instanceof URL) {
@@ -7285,7 +7310,7 @@ function setupFetchInterceptor(e = []) {
7285
7310
  }
7286
7311
  return e3.apply(a4, u3);
7287
7312
  } catch (e4) {
7288
- throw gp && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7313
+ throw fp && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7289
7314
  }
7290
7315
  })(e2, a3, u2, x3), B2 = true);
7291
7316
  const $2 = Date.now(), z2 = U3.status, j2 = U3.ok, V2 = j2 ? "" : `Request Error: ${U3.statusText}`;
@@ -7294,7 +7319,7 @@ function setupFetchInterceptor(e = []) {
7294
7319
  const e3 = U3.clone();
7295
7320
  q2 = await e3.text();
7296
7321
  } catch (e3) {
7297
- gp && console.warn("[Sailfish] Failed to capture response data:", e3), q2 = null;
7322
+ fp && console.warn("[Sailfish] Failed to capture response data:", e3), q2 = null;
7298
7323
  }
7299
7324
  let H2 = null;
7300
7325
  try {
@@ -7302,12 +7327,12 @@ function setupFetchInterceptor(e = []) {
7302
7327
  H2[a4] = e3;
7303
7328
  });
7304
7329
  } catch (e3) {
7305
- gp && console.warn("[Sailfish] Failed to capture response headers:", e3), H2 = null;
7330
+ fp && console.warn("[Sailfish] Failed to capture response headers:", e3), H2 = null;
7306
7331
  }
7307
7332
  return sendEvent({ type: 27, timestamp: $2, sessionId: C3, data: { request_id: I3, session_id: C3, timestamp_start: E2, timestamp_end: $2, response_code: z2, success: j2, error: V2, method: O2, url: x3, retry_without_trace_id: B2, request_headers: F2, request_body: D2, response_headers: H2, response_body: q2 }, ..._2 }), U3;
7308
7333
  } catch (m4) {
7309
7334
  const w4 = Date.now(), b2 = false, U3 = ((_b = m4.response) == null ? void 0 : _b.status) || 500, B2 = m4.message || "Fetch request failed";
7310
- if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(Sp.toLowerCase()))) return e2.apply(a3, u2);
7335
+ if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(yp.toLowerCase()))) return e2.apply(a3, u2);
7311
7336
  throw sendEvent({ type: 27, timestamp: w4, sessionId: C3, data: { request_id: I3, session_id: C3, timestamp_start: E2, timestamp_end: w4, response_code: U3, success: b2, error: B2, method: O2, url: x3, request_headers: F2, request_body: D2, response_body: null }, ..._2 }), m4;
7312
7337
  }
7313
7338
  })(a2, m2, w2, x2, I2, u, C2);
@@ -7341,7 +7366,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7341
7366
  })(), F2 = getOrSetSessionId(), U2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7342
7367
  if (U2.sessionId = F2, U2.apiKey = e, U2.backendApi = a, U2.serviceAdditionalMetadata = I2, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7343
7368
  else {
7344
- U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(vp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7369
+ U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(Sp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7345
7370
  window.addEventListener("error", (e2) => {
7346
7371
  captureError(e2.error || e2.message);
7347
7372
  }), window.addEventListener("unhandledrejection", (e2) => {
@@ -7349,7 +7374,12 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7349
7374
  });
7350
7375
  })(), U2.errorInit = true), (function storeCredentialsAndConnection({ apiKey: e2, backendApi: a2 }) {
7351
7376
  X && (sessionStorage.setItem("sailfishApiKey", e2), sessionStorage.setItem("sailfishBackendApi", a2));
7352
- })({ apiKey: e, backendApi: a }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e), sessionStorage.setItem("sailfishBackendApi", a), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e, [...m2, ...yp], a).catch((e2) => console.error("Failed to send domains to not propagate header to:", e2)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e2 = []) {
7377
+ })({ apiKey: e, backendApi: a }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e), sessionStorage.setItem("sailfishBackendApi", a), !isFunctionSpanTrackingEnabled() || U2.ws && 1 === U2.ws.readyState || fetchFunctionSpanTrackingEnabled(e, a).then((e2) => {
7378
+ var _a3;
7379
+ ((_a3 = e2.data) == null ? void 0 : _a3.isFunctionSpanTrackingEnabledFromApiKey) ?? false ? fp && console.log("[Sailfish] Function span tracking state validated with backend: ACTIVE") : (clearStaleFuncSpanState(), fp && console.log("[Sailfish] Cleared stale function span tracking state - backend validation shows tracking is not active"));
7380
+ }).catch((e2) => {
7381
+ fp && console.warn("[Sailfish] Failed to validate function span tracking status with backend:", e2);
7382
+ }), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e, [...m2, ...mp], a).catch((e2) => console.error("Failed to send domains to not propagate header to:", e2)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e2 = []) {
7353
7383
  const a2 = XMLHttpRequest.prototype.open, u2 = XMLHttpRequest.prototype.send, m3 = XMLHttpRequest.prototype.setRequestHeader, w3 = getOrSetSessionId();
7354
7384
  XMLHttpRequest.prototype.setRequestHeader = function(e3, a3) {
7355
7385
  return this._capturedRequestHeaders || (this._capturedRequestHeaders = {}), this._capturedRequestHeaders[e3] = a3, m3.call(this, e3, a3);
@@ -7367,9 +7397,9 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7367
7397
  }
7368
7398
  const _3 = getFuncSpanHeader();
7369
7399
  if (_3) try {
7370
- this.setRequestHeader(_3.name, _3.value), gp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7400
+ this.setRequestHeader(_3.name, _3.value), fp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7371
7401
  } catch (e3) {
7372
- gp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e3);
7402
+ fp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e3);
7373
7403
  }
7374
7404
  const O3 = Date.now();
7375
7405
  let E3 = false;
@@ -7397,7 +7427,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7397
7427
  2 === a5.length && (u3[a5[0]] = a5[1]);
7398
7428
  });
7399
7429
  } catch (e4) {
7400
- gp && console.warn("[Sailfish] Failed to capture XHR response headers:", e4), u3 = null;
7430
+ fp && console.warn("[Sailfish] Failed to capture XHR response headers:", e4), u3 = null;
7401
7431
  }
7402
7432
  if (e3 >= 200 && e3 < 300) emitFinished(true, e3, "", a4, u3);
7403
7433
  else {
@@ -7413,7 +7443,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7413
7443
  sendMessage({ type: "deviceInfo", data: { deviceInfo: { language: navigator.language, userAgent: navigator.userAgent } } });
7414
7444
  })();
7415
7445
  try {
7416
- const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || bp;
7446
+ const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || wp;
7417
7447
  if (U2.ws && 1 === U2.ws.readyState) return;
7418
7448
  const b2 = withAppUrlMetadata(I2), x3 = await startRecordingSession(e, F2, a, O2, E2, D2, _2, "JS/TS", b2);
7419
7449
  if ((_b = x3.data) == null ? void 0 : _b.startRecordingSession) {
@@ -7449,7 +7479,7 @@ H && (!(function sendUserDeviceUuid() {
7449
7479
  const e = document.visibilityState, a = Date.now();
7450
7480
  "visible" === e && getOrSetSessionId();
7451
7481
  try {
7452
- sendMessage({ type: "visibilityChange", data: { state: e, url: window.location.href.split("?")[0], timestamp: a, ...getUrlAndStoredUuids() } }), gp && console.log(`[Sailfish] Tab became ${e}, sent visibility change event`);
7482
+ sendMessage({ type: "visibilityChange", data: { state: e, url: window.location.href.split("?")[0], timestamp: a, ...getUrlAndStoredUuids() } }), fp && console.log(`[Sailfish] Tab became ${e}, sent visibility change event`);
7453
7483
  } catch (e2) {
7454
7484
  console.warn("[Sailfish] Failed to send visibility change event:", e2);
7455
7485
  }
@@ -7457,12 +7487,12 @@ H && (!(function sendUserDeviceUuid() {
7457
7487
  }), H && window.addEventListener("beforeunload", () => {
7458
7488
  clearPageVisitDataFromSessionStorage();
7459
7489
  });
7460
- exports.DEFAULT_CAPTURE_SETTINGS = bp, exports.DEFAULT_CONSOLE_RECORDING_SETTINGS = vp, exports.STORAGE_VERSION = 1, exports.addOrUpdateMetadata = function addOrUpdateMetadata(e) {
7490
+ exports.DEFAULT_CAPTURE_SETTINGS = wp, exports.DEFAULT_CONSOLE_RECORDING_SETTINGS = Sp, exports.STORAGE_VERSION = 1, exports.addOrUpdateMetadata = function addOrUpdateMetadata(e) {
7461
7491
  const a = { type: "addOrUpdateMetadata", metadata: e };
7462
- mp && JSON.stringify(mp) === JSON.stringify(e) || (mp = e, sendMessage(a));
7463
- }, exports.buildBatches = buildBatches, exports.createTriageFromRecorder = createTriageFromRecorder, exports.disableFunctionSpanTracking = disableFunctionSpanTracking, exports.enableFunctionSpanTracking = enableFunctionSpanTracking, exports.eventSize = eventSize, exports.fetchCaptureSettings = fetchCaptureSettings, exports.flushBufferedEvents = flushBufferedEvents, exports.getFuncSpanHeader = getFuncSpanHeader, exports.getOrSetSessionId = getOrSetSessionId, exports.getUrlAndStoredUuids = getUrlAndStoredUuids, exports.identify = function identify(e, a = {}, u = false) {
7492
+ hp && JSON.stringify(hp) === JSON.stringify(e) || (hp = e, sendMessage(a));
7493
+ }, exports.buildBatches = buildBatches, exports.clearStaleFuncSpanState = clearStaleFuncSpanState, exports.createTriageFromRecorder = createTriageFromRecorder, exports.disableFunctionSpanTracking = disableFunctionSpanTracking, exports.enableFunctionSpanTracking = enableFunctionSpanTracking, exports.eventSize = eventSize, exports.fetchCaptureSettings = fetchCaptureSettings, exports.fetchFunctionSpanTrackingEnabled = fetchFunctionSpanTrackingEnabled, exports.flushBufferedEvents = flushBufferedEvents, exports.getFuncSpanHeader = getFuncSpanHeader, exports.getOrSetSessionId = getOrSetSessionId, exports.getUrlAndStoredUuids = getUrlAndStoredUuids, exports.identify = function identify(e, a = {}, u = false) {
7464
7494
  const m2 = { type: "identify", userId: e, traits: a };
7465
- fp && fp.userId === e && JSON.stringify(fp.traits) === JSON.stringify(a) || (fp = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7495
+ dp && dp.userId === e && JSON.stringify(dp.traits) === JSON.stringify(a) || (dp = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7466
7496
  }, exports.initRecorder = async (e) => {
7467
7497
  if ("undefined" == typeof window) return;
7468
7498
  const a = window.__sailfish_recorder || (window.__sailfish_recorder = {}), u = getOrSetSessionId();
@@ -7471,8 +7501,8 @@ exports.DEFAULT_CAPTURE_SETTINGS = bp, exports.DEFAULT_CONSOLE_RECORDING_SETTING
7471
7501
  })().finally(() => {
7472
7502
  delete a.initPromise;
7473
7503
  })), a.initPromise);
7474
- }, exports.initializeConsolePlugin = initializeConsolePlugin, exports.initializeDomContentEvents = initializeDomContentEvents, exports.initializeRecording = initializeRecording, exports.initializeWebSocket = initializeWebSocket, exports.isFunctionSpanTrackingEnabled = isFunctionSpanTrackingEnabled, exports.matchUrlWithWildcard = matchUrlWithWildcard, exports.openReportIssueModal = function openReportIssueModal() {
7475
- dt ? stopRecording() : (injectModalHTML(), at && document.body.appendChild(at));
7504
+ }, exports.initializeConsolePlugin = initializeConsolePlugin, exports.initializeDomContentEvents = initializeDomContentEvents, exports.initializeFunctionSpanTrackingFromApi = initializeFunctionSpanTrackingFromApi, exports.initializeRecording = initializeRecording, exports.initializeWebSocket = initializeWebSocket, exports.isFunctionSpanTrackingEnabled = isFunctionSpanTrackingEnabled, exports.matchUrlWithWildcard = matchUrlWithWildcard, exports.openReportIssueModal = function openReportIssueModal() {
7505
+ ut ? stopRecording() : (injectModalHTML(), st && document.body.appendChild(st));
7476
7506
  }, exports.sendDomainsToNotPropagateHeaderTo = sendDomainsToNotPropagateHeaderTo, exports.sendEvent = sendEvent, exports.sendGraphQLRequest = sendGraphQLRequest, exports.sendMessage = sendMessage, exports.startRecording = startRecording, exports.startRecordingSession = startRecordingSession, exports.trackingEvent = function trackingEvent(e) {
7477
7507
  sendMessage({ type: "trackingEvent", trackingData: e, timestamp: exports.nowTimestamp() });
7478
7508
  }, exports.withAppUrlMetadata = withAppUrlMetadata;