@sailfish-ai/recorder 1.8.9 → 1.8.11

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
@@ -327,9 +327,23 @@ async function deleteNotifyMessageById(e) {
327
327
  a.delete(e);
328
328
  });
329
329
  }
330
- const H = "undefined" != typeof globalThis && void 0 !== globalThis.window, J = "undefined" != typeof globalThis && void 0 !== globalThis.document, Y = "undefined" != typeof globalThis && "localStorage" in globalThis, X = "undefined" != typeof globalThis && "sessionStorage" in globalThis;
330
+ const H = "undefined" != typeof globalThis && void 0 !== globalThis.window, J = "undefined" != typeof globalThis && void 0 !== globalThis.document, Y = "undefined" != typeof globalThis && "localStorage" in globalThis, X = "undefined" != typeof globalThis && "sessionStorage" in globalThis, Q = "sailfishSessionId", ee = "__sailfish_refresh__";
331
+ let te = null;
331
332
  function getOrSetSessionId() {
332
- return H ? (window.name || (window.name = v4()), window.name) : v4();
333
+ if (!H) return v4();
334
+ if (te) return te;
335
+ const e = window.name.startsWith(ee);
336
+ if (e && (window.name = window.name.substring(20)), e) {
337
+ const e2 = window.sessionStorage.getItem(Q);
338
+ if (e2) return te = e2, e2;
339
+ }
340
+ const a = v4();
341
+ te = a;
342
+ try {
343
+ window.sessionStorage.setItem(Q, a);
344
+ } catch (e2) {
345
+ }
346
+ return a;
333
347
  }
334
348
  function buildBatches(e, a, u) {
335
349
  const m2 = {};
@@ -356,27 +370,29 @@ function withAppUrlMetadata(e) {
356
370
  var _a2;
357
371
  return { ...e ?? {}, appUrl: (e == null ? void 0 : e.appUrl) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
358
372
  }
359
- exports.nowTimestamp = Date.now, /[1-9][0-9]{12}/.test(Date.now().toString()) || (exports.nowTimestamp = () => (/* @__PURE__ */ new Date()).getTime());
360
- const Q = readDebugFlag(), ee = "per_session", te = "sailfish_funcspan_global_state";
361
- let ne = null, re = false, oe = null, se = null;
373
+ H && window.addEventListener("beforeunload", () => {
374
+ window.name = ee + window.name;
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;
362
378
  function saveGlobalFuncSpanState(e, a) {
363
379
  try {
364
380
  if ("undefined" == typeof localStorage) return;
365
381
  const u = { enabled: e, expirationTimestampMs: a };
366
- localStorage.setItem(te, JSON.stringify(u)), Q && console.log("[Sailfish] Saved global function span state to localStorage:", u);
382
+ localStorage.setItem(oe, JSON.stringify(u)), ne && console.log("[Sailfish] Saved global function span state to localStorage:", u);
367
383
  } catch (e2) {
368
- Q && console.warn("[Sailfish] Failed to save global function span state to localStorage:", e2);
384
+ ne && console.warn("[Sailfish] Failed to save global function span state to localStorage:", e2);
369
385
  }
370
386
  }
371
387
  function clearGlobalFuncSpanState() {
372
388
  try {
373
389
  if ("undefined" == typeof localStorage) return;
374
- localStorage.removeItem(te), Q && console.log("[Sailfish] Cleared global function span state from localStorage");
390
+ localStorage.removeItem(oe), ne && console.log("[Sailfish] Cleared global function span state from localStorage");
375
391
  } catch (e) {
376
- Q && console.warn("[Sailfish] Failed to clear global function span state from localStorage:", e);
392
+ ne && console.warn("[Sailfish] Failed to clear global function span state from localStorage:", e);
377
393
  }
378
394
  }
379
- let ie = false, le = null, ce = null, pe = false, de = null, he = null;
395
+ let pe = false, de = null, he = null, me = false, ge = null, ye = null;
380
396
  function isWebSocketOpen(e) {
381
397
  return (e == null ? void 0 : e.readyState) === WebSocket.OPEN;
382
398
  }
@@ -387,15 +403,15 @@ async function flushNotifyQueue() {
387
403
  u.onsuccess = () => a(u.result), u.onerror = () => a([]);
388
404
  })) ?? [];
389
405
  })();
390
- if (isWebSocketOpen(ne)) try {
391
- for (const a of e) ne.send(a.value), await deleteNotifyMessageById(a.id);
406
+ if (isWebSocketOpen(se)) try {
407
+ for (const a of e) se.send(a.value), await deleteNotifyMessageById(a.id);
392
408
  } catch (e2) {
393
409
  }
394
410
  }
395
411
  async function flushBufferedEvents() {
396
- if (isWebSocketOpen(ne)) if (oe) await oe;
412
+ if (isWebSocketOpen(se)) if (le) await le;
397
413
  else {
398
- oe = (async () => {
414
+ le = (async () => {
399
415
  var _a2, _b;
400
416
  const e = await (async function getAllIndexedEvents() {
401
417
  return await withStore$1("readonly", (e2) => new Promise((a2) => {
@@ -410,33 +426,33 @@ async function flushBufferedEvents() {
410
426
  for (const e2 of Object.values(a)) {
411
427
  const a2 = buildBatches(e2, (e3) => eventSize(e3.data), 52428800);
412
428
  for (const e3 of a2) {
413
- if (!isWebSocketOpen(ne)) break;
429
+ if (!isWebSocketOpen(se)) break;
414
430
  const a3 = e3.map((e4) => {
415
431
  var _a3, _b2;
416
432
  return { ...e4.data, appUrl: ((_a3 = e4.data) == null ? void 0 : _a3.appUrl) ?? ((_b2 = window == null ? void 0 : window.location) == null ? void 0 : _b2.href) };
417
433
  }), u = e3.map((e4) => e4.id).filter((e4) => null != e4);
418
434
  try {
419
435
  const e4 = JSON.stringify({ type: "events", events: a3, mapUuid: window.sfMapUuid });
420
- ne.send(e4), await deleteEventsByIds(u);
436
+ se.send(e4), await deleteEventsByIds(u);
421
437
  } catch (e4) {
422
438
  }
423
439
  }
424
440
  }
425
441
  })();
426
442
  try {
427
- await oe;
443
+ await le;
428
444
  } finally {
429
- oe = null;
445
+ le = null;
430
446
  }
431
447
  }
432
448
  }
433
449
  function sendEvent(e) {
434
450
  var _a2;
435
451
  const a = { ...e, app_url: (e == null ? void 0 : e.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
436
- if (re || !isWebSocketOpen(ne)) return void saveEventToIDB(a);
452
+ if (ie || !isWebSocketOpen(se)) return void saveEventToIDB(a);
437
453
  const u = JSON.stringify({ type: "event", event: a, mapUuid: window.sfMapUuid });
438
454
  try {
439
- ne.send(u);
455
+ se.send(u);
440
456
  } catch (e2) {
441
457
  saveEventToIDB(a);
442
458
  }
@@ -446,83 +462,83 @@ function initializeWebSocket(e, a, u) {
446
462
  const a2 = document.createElement("a");
447
463
  return a2.href = e2, `${a2.hostname}${a2.port ? `:${a2.port}` : ""}`;
448
464
  })(e), w2 = new URL(e).protocol;
449
- return ne = new $(`${"https:" === w2 ? "wss" : "ws"}://${m2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.9`, [], { connectionTimeout: 3e4 }), ne.addEventListener("open", () => {
450
- Q && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (ie ? "ENABLED" : "DISABLED"))), (async () => {
465
+ return se = new $(`${"https:" === w2 ? "wss" : "ws"}://${m2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.11`, [], { connectionTimeout: 3e4 }), se.addEventListener("open", () => {
466
+ ne && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (pe ? "ENABLED" : "DISABLED"))), (async () => {
451
467
  try {
452
- re = true, await flushNotifyQueue(), await flushBufferedEvents();
468
+ ie = true, await flushNotifyQueue(), await flushBufferedEvents();
453
469
  } finally {
454
- re = false;
470
+ ie = false;
455
471
  }
456
- null != se && clearInterval(se), se = window.setInterval(() => {
472
+ null != ce && clearInterval(ce), ce = window.setInterval(() => {
457
473
  flushBufferedEvents();
458
474
  }, 2e3);
459
475
  })();
460
- }), ne.addEventListener("close", () => {
461
- Q && console.log("[Sailfish] WebSocket closed");
462
- }), ne.addEventListener("message", (e2) => {
476
+ }), se.addEventListener("close", () => {
477
+ ne && console.log("[Sailfish] WebSocket closed");
478
+ }), se.addEventListener("message", (e2) => {
463
479
  try {
464
480
  const a2 = JSON.parse(e2.data);
465
- if ("funcSpanTrackingControl" === a2.type) if (Q && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a2.enabled, timeoutSeconds: a2.timeoutSeconds, expirationTimestampMs: a2.expirationTimestampMs }), null !== le && (window.clearTimeout(le), le = null), ie = a2.enabled, pe = false, Q && console.log("[Sailfish] Function span tracking " + (a2.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a2.enabled) {
481
+ 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) {
466
482
  if (a2.expirationTimestampMs) {
467
- ce = a2.expirationTimestampMs;
468
- const e3 = Date.now(), u2 = ce - e3;
469
- Q && console.log(`[Sailfish] Server expiration timestamp: ${ce}, ms until expiration: ${u2}`), u2 > 0 ? (saveGlobalFuncSpanState(true, ce), le = window.setTimeout(() => {
470
- pe || (ie = false, ce = null, clearGlobalFuncSpanState(), Q && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
471
- }, u2)) : (ie = false, ce = null, clearGlobalFuncSpanState(), Q && console.log("[Sailfish] Tracking already expired, not enabling"));
483
+ he = a2.expirationTimestampMs;
484
+ const e3 = Date.now(), u2 = he - e3;
485
+ ne && console.log(`[Sailfish] Server expiration timestamp: ${he}, ms until expiration: ${u2}`), u2 > 0 ? (saveGlobalFuncSpanState(true, he), de = window.setTimeout(() => {
486
+ me || (pe = false, he = null, clearGlobalFuncSpanState(), ne && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
487
+ }, u2)) : (pe = false, he = null, clearGlobalFuncSpanState(), ne && console.log("[Sailfish] Tracking already expired, not enabling"));
472
488
  } else {
473
489
  const e3 = a2.timeoutSeconds || 3600;
474
- e3 > 0 && (ce = Date.now() + 1e3 * e3, saveGlobalFuncSpanState(true, ce), le = window.setTimeout(() => {
475
- pe || (ie = false, ce = null, clearGlobalFuncSpanState(), Q && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e3}s (legacy)`));
490
+ e3 > 0 && (he = Date.now() + 1e3 * e3, saveGlobalFuncSpanState(true, he), de = window.setTimeout(() => {
491
+ me || (pe = false, he = null, clearGlobalFuncSpanState(), ne && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e3}s (legacy)`));
476
492
  }, 1e3 * e3));
477
493
  }
478
494
  try {
479
495
  const e3 = getOrSetSessionId();
480
- ne.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e3, enabled: true, configurationType: "global" })), Q && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e3}`);
496
+ se.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e3, enabled: true, configurationType: "global" })), ne && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e3}`);
481
497
  } catch (e3) {
482
- Q && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e3);
498
+ ne && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e3);
483
499
  }
484
- } else ce = null, clearGlobalFuncSpanState();
500
+ } else he = null, clearGlobalFuncSpanState();
485
501
  } catch (e3) {
486
502
  }
487
- }), ne;
503
+ }), se;
488
504
  }
489
505
  function sendMessage(e) {
490
506
  var _a2;
491
507
  "sessionId" in e || (e.sessionId = getOrSetSessionId());
492
508
  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) });
493
- if (isWebSocketOpen(ne)) try {
494
- ne.send(a);
509
+ if (ie || !isWebSocketOpen(se)) saveNotifyMessageToIDB(a);
510
+ else try {
511
+ se.send(a);
495
512
  } catch (e2) {
496
513
  saveNotifyMessageToIDB(a);
497
514
  }
498
- else saveNotifyMessageToIDB(a);
499
515
  }
500
516
  function enableFunctionSpanTracking() {
501
- if (Q && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), ie && !pe && (de = le, he = ce, Q && console.log("[Sailfish] Saved global tracking state while switching to local mode")), ie = true, pe = true, ce = null, le = null, isWebSocketOpen(ne)) try {
502
- const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: ee };
503
- ne.send(JSON.stringify(e));
517
+ 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 {
518
+ const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: re };
519
+ se.send(JSON.stringify(e));
504
520
  } catch (e) {
505
521
  console.error("[FUNCSPAN START] ✗ Failed to send tracking session report:", e);
506
522
  }
507
- else Q && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
523
+ else ne && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
508
524
  }
509
525
  function disableFunctionSpanTracking() {
510
- if (Q && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(ne)) try {
511
- const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: ee };
512
- ne.send(JSON.stringify(e));
526
+ if (ne && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(se)) try {
527
+ const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: re };
528
+ se.send(JSON.stringify(e));
513
529
  } catch (e) {
514
530
  console.error("[FUNCSPAN STOP] ✗ Failed to send tracking stop report:", e);
515
531
  }
516
532
  else console.warn("[FUNCSPAN STOP] ✗ WebSocket not open, cannot notify tracking end");
517
- pe && (pe = false, null !== de || null !== he ? (ie = true, ce = he, le = de, Q && console.log("[Sailfish] LOCAL tracking mode disabled, restored GLOBAL tracking state"), de = null, he = null) : (ie = false, ce = null, le = null, Q && console.log("[Sailfish] LOCAL tracking mode disabled, no global tracking to restore")));
533
+ 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")));
518
534
  }
519
535
  function isFunctionSpanTrackingEnabled() {
520
- return ie;
536
+ return pe;
521
537
  }
522
538
  function getFuncSpanHeader() {
523
- if (!ie) return null;
524
- if (null !== ce) {
525
- if (Date.now() >= ce) return ie = false, ce = null, Q && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
539
+ if (!pe) return null;
540
+ if (null !== he) {
541
+ if (Date.now() >= he) return pe = false, he = null, ne && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
526
542
  }
527
543
  return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-0-5-5-0-1.0" };
528
544
  }
@@ -530,34 +546,34 @@ function getFuncSpanHeader() {
530
546
  const e = (function loadGlobalFuncSpanState() {
531
547
  try {
532
548
  if ("undefined" == typeof localStorage) return null;
533
- const e2 = localStorage.getItem(te);
549
+ const e2 = localStorage.getItem(oe);
534
550
  if (!e2) return null;
535
551
  const a = JSON.parse(e2);
536
- return a.enabled && a.expirationTimestampMs && Date.now() >= a.expirationTimestampMs ? (Q && console.log("[Sailfish] Stored global function span state has expired, clearing"), localStorage.removeItem(te), null) : (Q && console.log("[Sailfish] Loaded global function span state from localStorage:", a), a);
552
+ 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);
537
553
  } catch (e2) {
538
- return Q && console.warn("[Sailfish] Failed to load global function span state from localStorage:", e2), null;
554
+ return ne && console.warn("[Sailfish] Failed to load global function span state from localStorage:", e2), null;
539
555
  }
540
556
  })();
541
- e && e.enabled && (ie = true, ce = e.expirationTimestampMs, pe = false, Q && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTimestampMs: ce }));
557
+ 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 }));
542
558
  })();
543
- const me = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
544
- var ge, ye, we = {}, be = {}, ve = {}, Ce = {};
559
+ const we = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
560
+ var be, ve, Ce = {}, ke = {}, xe = {}, Me = {};
545
561
  function requireBase64() {
546
- if (ge) return Ce;
547
- ge = 1;
562
+ if (be) return Me;
563
+ be = 1;
548
564
  var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
549
- return Ce.encode = function(a) {
565
+ return Me.encode = function(a) {
550
566
  if (0 <= a && a < e.length) return e[a];
551
567
  throw new TypeError("Must be between 0 and 63: " + a);
552
- }, Ce.decode = function(e2) {
568
+ }, Me.decode = function(e2) {
553
569
  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;
554
- }, Ce;
570
+ }, Me;
555
571
  }
556
572
  function requireBase64Vlq() {
557
- if (ye) return ve;
558
- ye = 1;
573
+ if (ve) return xe;
574
+ ve = 1;
559
575
  var e = requireBase64();
560
- return ve.encode = function base64VLQ_encode(a) {
576
+ return xe.encode = function base64VLQ_encode(a) {
561
577
  var u, m2 = "", w2 = (function toVLQSigned(e2) {
562
578
  return e2 < 0 ? 1 + (-e2 << 1) : 0 + (e2 << 1);
563
579
  })(a);
@@ -565,7 +581,7 @@ function requireBase64Vlq() {
565
581
  u = 31 & w2, (w2 >>>= 5) > 0 && (u |= 32), m2 += e.encode(u);
566
582
  } while (w2 > 0);
567
583
  return m2;
568
- }, ve.decode = function base64VLQ_decode(a, u, m2) {
584
+ }, xe.decode = function base64VLQ_decode(a, u, m2) {
569
585
  var w2, b2, C2 = a.length, x2 = 0, I2 = 0;
570
586
  do {
571
587
  if (u >= C2) throw new Error("Expected more digits in base 64 VLQ value.");
@@ -576,11 +592,11 @@ function requireBase64Vlq() {
576
592
  var a2 = e2 >> 1;
577
593
  return 1 & ~e2 ? a2 : -a2;
578
594
  })(x2), m2.rest = u;
579
- }, ve;
595
+ }, xe;
580
596
  }
581
- var ke, xe = {};
597
+ var Ie, Oe = {};
582
598
  function requireUtil() {
583
- return ke || (ke = 1, (function(e) {
599
+ return Ie || (Ie = 1, (function(e) {
584
600
  e.getArg = function getArg(e2, a2, u2) {
585
601
  if (a2 in e2) return e2[a2];
586
602
  if (3 === arguments.length) return u2;
@@ -692,12 +708,12 @@ function requireUtil() {
692
708
  }
693
709
  return m2(a2);
694
710
  };
695
- })(xe)), xe;
711
+ })(Oe)), Oe;
696
712
  }
697
- var Me, Ie = {};
713
+ var Ee, Le = {};
698
714
  function requireArraySet() {
699
- if (Me) return Ie;
700
- Me = 1;
715
+ if (Ee) return Le;
716
+ Ee = 1;
701
717
  var e = requireUtil(), a = Object.prototype.hasOwnProperty, u = "undefined" != typeof Map;
702
718
  function ArraySet() {
703
719
  this._array = [], this._set = u ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
@@ -728,12 +744,12 @@ function requireArraySet() {
728
744
  throw new Error("No element indexed by " + e2);
729
745
  }, ArraySet.prototype.toArray = function ArraySet_toArray() {
730
746
  return this._array.slice();
731
- }, Ie.ArraySet = ArraySet, Ie;
747
+ }, Le.ArraySet = ArraySet, Le;
732
748
  }
733
- var Oe, Ee, Le = {};
749
+ var Ae, Te, De = {};
734
750
  function requireMappingList() {
735
- if (Oe) return Le;
736
- Oe = 1;
751
+ if (Ae) return De;
752
+ Ae = 1;
737
753
  var e = requireUtil();
738
754
  function MappingList() {
739
755
  this._array = [], this._sorted = true, this._last = { generatedLine: -1, generatedColumn: 0 };
@@ -747,11 +763,11 @@ function requireMappingList() {
747
763
  })(this._last, a) ? (this._sorted = false, this._array.push(a)) : (this._last = a, this._array.push(a));
748
764
  }, MappingList.prototype.toArray = function MappingList_toArray() {
749
765
  return this._sorted || (this._array.sort(e.compareByGeneratedPositionsInflated), this._sorted = true), this._array;
750
- }, Le.MappingList = MappingList, Le;
766
+ }, De.MappingList = MappingList, De;
751
767
  }
752
768
  function requireSourceMapGenerator() {
753
- if (Ee) return be;
754
- Ee = 1;
769
+ if (Te) return ke;
770
+ Te = 1;
755
771
  var e = requireBase64Vlq(), a = requireUtil(), u = requireArraySet().ArraySet, m2 = requireMappingList().MappingList;
756
772
  function SourceMapGenerator(e2) {
757
773
  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;
@@ -828,11 +844,11 @@ function requireSourceMapGenerator() {
828
844
  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;
829
845
  }, SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
830
846
  return JSON.stringify(this.toJSON());
831
- }, be.SourceMapGenerator = SourceMapGenerator, be;
847
+ }, ke.SourceMapGenerator = SourceMapGenerator, ke;
832
848
  }
833
- var Ae, Te = {}, De = {};
849
+ var Ue, Be = {}, je = {};
834
850
  function requireBinarySearch() {
835
- return Ae || (Ae = 1, (function(e) {
851
+ return Ue || (Ue = 1, (function(e) {
836
852
  function recursiveSearch(a, u, m2, w2, b2, C2) {
837
853
  var x2 = Math.floor((u - a) / 2) + a, I2 = b2(m2, w2[x2], true);
838
854
  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;
@@ -844,11 +860,11 @@ function requireBinarySearch() {
844
860
  for (; b2 - 1 >= 0 && 0 === m2(u[b2], u[b2 - 1], true); ) --b2;
845
861
  return b2;
846
862
  };
847
- })(De)), De;
863
+ })(je)), je;
848
864
  }
849
- var Ue, Be, je = {};
865
+ var Ge, Ve, qe = {};
850
866
  function requireQuickSort() {
851
- if (Ue) return je;
867
+ if (Ge) return qe;
852
868
  function SortTemplate(e2) {
853
869
  function swap(e3, a, u) {
854
870
  var m2 = e3[a];
@@ -867,21 +883,21 @@ function requireQuickSort() {
867
883
  }
868
884
  };
869
885
  }
870
- Ue = 1;
886
+ Ge = 1;
871
887
  let e = /* @__PURE__ */ new WeakMap();
872
- return je.quickSort = function(a, u, m2 = 0) {
888
+ return qe.quickSort = function(a, u, m2 = 0) {
873
889
  let w2 = e.get(u);
874
890
  void 0 === w2 && (w2 = (function cloneSort(e2) {
875
891
  let a2 = SortTemplate.toString();
876
892
  return new Function(`return ${a2}`)()(e2);
877
893
  })(u), e.set(u, w2)), w2(a, u, m2, a.length - 1);
878
- }, je;
894
+ }, qe;
879
895
  }
880
- var Ge, Ve, qe = {};
881
- var He = (function requireSourceMap() {
882
- return Ve || (Ve = 1, we.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, we.SourceMapConsumer = (function requireSourceMapConsumer() {
883
- if (Be) return Te;
884
- Be = 1;
896
+ var He, Je, Ye = {};
897
+ var Xe = (function requireSourceMap() {
898
+ return Je || (Je = 1, Ce.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, Ce.SourceMapConsumer = (function requireSourceMapConsumer() {
899
+ if (Ve) return Be;
900
+ Ve = 1;
885
901
  var e = requireUtil(), a = requireBinarySearch(), u = requireArraySet().ArraySet, m2 = requireBase64Vlq(), w2 = requireQuickSort().quickSort;
886
902
  function SourceMapConsumer(a2, u2) {
887
903
  var m3 = a2;
@@ -938,7 +954,7 @@ var He = (function requireSourceMap() {
938
954
  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];
939
955
  }
940
956
  return b3;
941
- }, Te.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
957
+ }, Be.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
942
958
  var u2, m3 = a2;
943
959
  if (null != this.sourceRoot && (m3 = e.relative(this.sourceRoot, m3)), this._sources.has(m3)) return this._sources.indexOf(m3);
944
960
  for (u2 = 0; u2 < this._absoluteSources.length; ++u2) if (this._absoluteSources[u2] == a2) return u2;
@@ -1055,7 +1071,7 @@ var He = (function requireSourceMap() {
1055
1071
  if (b3.source === m3.source) return { line: e.getArg(b3, "generatedLine", null), column: e.getArg(b3, "generatedColumn", null), lastColumn: e.getArg(b3, "lastGeneratedColumn", null) };
1056
1072
  }
1057
1073
  return { line: null, column: null, lastColumn: null };
1058
- }, Te.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1074
+ }, Be.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1059
1075
  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]);
1060
1076
  return e2;
1061
1077
  } }), IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(u2) {
@@ -1094,10 +1110,10 @@ var He = (function requireSourceMap() {
1094
1110
  this.__generatedMappings.push(E2), "number" == typeof E2.originalLine && this.__originalMappings.push(E2);
1095
1111
  }
1096
1112
  w2(this.__generatedMappings, e.compareByGeneratedPositionsDeflated), w2(this.__originalMappings, e.compareByOriginalPositions);
1097
- }, Te.IndexedSourceMapConsumer = IndexedSourceMapConsumer, Te;
1098
- })().SourceMapConsumer, we.SourceNode = (function requireSourceNode() {
1099
- if (Ge) return qe;
1100
- Ge = 1;
1113
+ }, Be.IndexedSourceMapConsumer = IndexedSourceMapConsumer, Be;
1114
+ })().SourceMapConsumer, Ce.SourceNode = (function requireSourceNode() {
1115
+ if (He) return Ye;
1116
+ He = 1;
1101
1117
  var e = requireSourceMapGenerator().SourceMapGenerator, a = requireUtil(), u = /(\r?\n)/, m2 = "$$$isSourceNode$$$";
1102
1118
  function SourceNode(e2, a2, u2, w2, b2) {
1103
1119
  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);
@@ -1181,20 +1197,20 @@ var He = (function requireSourceMap() {
1181
1197
  }), this.walkSourceContents(function(e2, a3) {
1182
1198
  m3.setSourceContent(e2, a3);
1183
1199
  }), { code: u2.code, map: m3 };
1184
- }, qe.SourceNode = SourceNode, qe;
1185
- })().SourceNode), we;
1200
+ }, Ye.SourceNode = SourceNode, Ye;
1201
+ })().SourceNode), Ce;
1186
1202
  })();
1187
- const Je = /* @__PURE__ */ new Map(), Ye = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1203
+ const Qe = /* @__PURE__ */ new Map(), et = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1188
1204
  async function getConsumerFor(e, a) {
1189
1205
  const u = (e || `/assets/${a}`).split("?")[0], m2 = [`${u}.map`, u.replace(/\.js$/, ".js.map"), `/assets/${a}.map`];
1190
1206
  for (const e2 of m2) try {
1191
- if (Je.has(e2)) return Je.get(e2);
1207
+ if (Qe.has(e2)) return Qe.get(e2);
1192
1208
  const a2 = await fetch(e2);
1193
1209
  if (!a2.ok) continue;
1194
1210
  const u2 = await a2.json();
1195
1211
  if (!u2 || !u2.mappings || !u2.sources) continue;
1196
- const m3 = await new He.SourceMapConsumer(u2);
1197
- return Je.set(e2, m3), m3;
1212
+ const m3 = await new Xe.SourceMapConsumer(u2);
1213
+ return Qe.set(e2, m3), m3;
1198
1214
  } catch {
1199
1215
  }
1200
1216
  return null;
@@ -1206,13 +1222,13 @@ async function captureError(e, a = false) {
1206
1222
  if (!e2) return ["No stack trace available"];
1207
1223
  const a2 = Array.isArray(e2) ? e2 : e2.split("\n"), u2 = [];
1208
1224
  for (const e3 of a2) {
1209
- const a3 = e3.match(Ye);
1225
+ const a3 = e3.match(et);
1210
1226
  if (!a3) {
1211
1227
  u2.push(e3);
1212
1228
  continue;
1213
1229
  }
1214
- const [, m3, w3, b3, C2] = a3, x2 = parseInt(b3, 10), I2 = Math.max(0, parseInt(C2, 10) - 1);
1215
- if (!Number.isFinite(x2) || !Number.isFinite(I2)) {
1230
+ const [, m3, w3, b3, C3] = a3, x3 = parseInt(b3, 10), I2 = Math.max(0, parseInt(C3, 10) - 1);
1231
+ if (!Number.isFinite(x3) || !Number.isFinite(I2)) {
1216
1232
  u2.push(e3 + " [Invalid line/column]");
1217
1233
  continue;
1218
1234
  }
@@ -1221,22 +1237,22 @@ async function captureError(e, a = false) {
1221
1237
  u2.push(`${e3} [No source map found for ${w3}]`);
1222
1238
  continue;
1223
1239
  }
1224
- let O2 = _2.originalPositionFor({ line: x2, column: I2, bias: He.SourceMapConsumer.GREATEST_LOWER_BOUND });
1225
- if (!O2.source || null == O2.line) for (let e4 = 1; e4 <= 20 && (O2 = _2.originalPositionFor({ line: x2, column: Math.max(0, I2 - e4), bias: He.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e4++) ;
1240
+ let O2 = _2.originalPositionFor({ line: x3, column: I2, bias: Xe.SourceMapConsumer.GREATEST_LOWER_BOUND });
1241
+ 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++) ;
1226
1242
  if (O2.source && null != O2.line) {
1227
1243
  const e4 = O2.name || "anonymous";
1228
1244
  u2.push(`${O2.source}:${O2.line}:${O2.column ?? 0} (${e4})`);
1229
1245
  } else u2.push(`${e3} [No mapping found in ${w3}]`);
1230
1246
  }
1231
1247
  return u2;
1232
- })(m2), b2 = w2.filter((e2) => !e2.includes("chunk-") && !e2.includes("react-dom"));
1233
- sendMessage({ type: "event", event: { type: 6, data: { payload: { message: u, stack: m2, trace: b2.length > 0 ? b2 : w2, filteredStack: b2, userAgent: navigator.userAgent, url: window.location.href, timestamp: Date.now(), level: "error" } } } });
1248
+ })(m2), b2 = w2.filter((e2) => !e2.includes("chunk-") && !e2.includes("react-dom")), C2 = b2.length > 0 ? b2 : w2, x2 = Date.now();
1249
+ 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" } } } });
1234
1250
  }
1235
- const Xe = readDebugFlag();
1236
- const Qe = readDebugFlag();
1251
+ const nt = readDebugFlag();
1252
+ const ot = readDebugFlag();
1237
1253
  function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1238
1254
  const C2 = `${u.backendApi}/graphql/?apiKey=${u.apiKey}`;
1239
- return Qe && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1255
+ return ot && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1240
1256
  let b3 = 0;
1241
1257
  const attemptRequest = async () => {
1242
1258
  try {
@@ -1244,12 +1260,12 @@ function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1244
1260
  } catch (e3) {
1245
1261
  if (b3++, b3 > u2) throw e3;
1246
1262
  const C3 = m3 * Math.pow(w3, b3 - 1);
1247
- return Xe && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1263
+ return nt && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1248
1264
  }
1249
1265
  };
1250
1266
  return attemptRequest();
1251
1267
  })(() => fetch(C2, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ operationName: e, query: a, variables: u }) }).then((e2) => {
1252
- if (Qe && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1268
+ if (ot && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1253
1269
  return e2.json();
1254
1270
  }), "Sending GraphQL request to Sailfish AI", m2, w2, b2);
1255
1271
  }
@@ -1265,9 +1281,9 @@ function sendDomainsToNotPropagateHeaderTo(e, a, u) {
1265
1281
  function createTriageFromRecorder(e, a, u, m2, w2, b2) {
1266
1282
  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 });
1267
1283
  }
1268
- const et = { 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 } }, nt = { shortcuts: { ...et }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1284
+ 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: () => {
1269
1285
  } };
1270
- let ot = null, st = { mode: "lookback", description: "" }, it = null, at = null, lt = null, ct = false;
1286
+ let at = null, lt = { mode: "lookback", description: "" }, ct = null, ut = null, pt = null, dt = false;
1271
1287
  function getShortcutKeyCmdCtrlLabel() {
1272
1288
  return (function isMacPlatform() {
1273
1289
  const e = navigator.userAgentData;
@@ -1280,11 +1296,11 @@ function getShortcutLabelFromContext(e) {
1280
1296
  return e2.requireCmdCtrl && a.push(getShortcutKeyCmdCtrlLabel()), a.push((function formatShortcutKeyLabel(e3) {
1281
1297
  return ({ escape: "esc" }[e3.toLowerCase()] || e3).toUpperCase();
1282
1298
  })(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 ? " + " : "");
1283
- })(nt.shortcuts[e]);
1299
+ })(it.shortcuts[e]);
1284
1300
  }
1285
1301
  function setupIssueReporting(e) {
1286
- nt.apiKey = e.apiKey, nt.backendApi = e.backendApi, nt.resolveSessionId = e.getSessionId, e.customBaseUrl && (nt.triageBaseUrl = e.customBaseUrl), nt.shortcuts = (function mergeShortcutsConfig(e2) {
1287
- const a2 = { ...et };
1302
+ it.apiKey = e.apiKey, it.backendApi = e.backendApi, it.resolveSessionId = e.getSessionId, e.customBaseUrl && (it.triageBaseUrl = e.customBaseUrl), it.shortcuts = (function mergeShortcutsConfig(e2) {
1303
+ const a2 = { ...st };
1288
1304
  if (!e2) return a2;
1289
1305
  "boolean" == typeof e2.enabled && (a2.enabled = e2.enabled);
1290
1306
  const u = ["openModalExistingMode", "openModalCaptureNewMode", "closeModal", "submitReport", "startRecording", "stopRecording"];
@@ -1294,7 +1310,7 @@ function setupIssueReporting(e) {
1294
1310
  }
1295
1311
  return a2;
1296
1312
  })(e.shortcuts);
1297
- const { shortcuts: a } = nt;
1313
+ const { shortcuts: a } = it;
1298
1314
  window.addEventListener("keydown", (e2) => {
1299
1315
  const u = (function isTypingInInput() {
1300
1316
  const e3 = document.activeElement;
@@ -1304,20 +1320,20 @@ function setupIssueReporting(e) {
1304
1320
  } : injectModalHTML;
1305
1321
  if (C2 && shortcutUsed("openModalExistingMode")) return e2.preventDefault(), void x2("lookback");
1306
1322
  if (C2 && shortcutUsed("openModalCaptureNewMode")) return e2.preventDefault(), void x2("startnow");
1307
- if (b2 && !ct && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1323
+ if (b2 && !dt && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1308
1324
  if (b2 && shortcutUsed("submitReport")) {
1309
1325
  const a2 = document.getElementById("sf-issue-submit-btn");
1310
1326
  return void (a2 && !a2.disabled && (e2.preventDefault(), a2.click()));
1311
1327
  }
1312
- if (ct && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1313
- if (b2 && "startnow" === st.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1328
+ if (dt && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1329
+ if (b2 && "startnow" === lt.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1314
1330
  const a2 = document.getElementById("sf-start-recording-btn");
1315
1331
  return void (a2 && (e2.preventDefault(), a2.click()));
1316
1332
  }
1317
1333
  });
1318
1334
  }
1319
1335
  function closeModal() {
1320
- nt.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (ot == null ? void 0 : ot.parentNode) && ot.parentNode.removeChild(ot), ot = null, ct || (st = { mode: "lookback", description: "", occurredInThisTab: true }, it = null, at = null), lt && clearInterval(lt);
1336
+ 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);
1321
1337
  }
1322
1338
  function activateModalIsolation(e) {
1323
1339
  e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1");
@@ -1376,9 +1392,9 @@ function activateModalIsolation(e) {
1376
1392
  };
1377
1393
  }
1378
1394
  function injectModalHTML(e = "lookback") {
1379
- ot && (ot.remove(), ot = null), ot = document.createElement("div"), ot.id = "sf-report-issue-modal";
1395
+ at && (at.remove(), at = null), at = document.createElement("div"), at.id = "sf-report-issue-modal";
1380
1396
  const a = "startnow" === e;
1381
- ot.innerHTML = `
1397
+ at.innerHTML = `
1382
1398
  <div style="position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9998;"></div>
1383
1399
  <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
1384
1400
  background:#fff; padding:24px; border-radius:12px;
@@ -1426,7 +1442,7 @@ function injectModalHTML(e = "lookback") {
1426
1442
  <textarea id="sf-issue-description" placeholder="Add description here"
1427
1443
  style="width:100%; height:80px; padding:8px 12px; font-size:14px;
1428
1444
  border:1px solid #cbd5e1; border-radius:6px; margin-bottom:20px;
1429
- resize:none; outline:none;">${st.description}</textarea>
1445
+ resize:none; outline:none;">${lt.description}</textarea>
1430
1446
 
1431
1447
  <div id="sf-lookback-container" style="display:${a ? "none" : "block"}; margin-bottom:20px;">
1432
1448
  <label for="sf-lookback-minutes" style="display:block; font-size:14px; font-weight:500; margin-bottom:6px;">
@@ -1514,8 +1530,8 @@ function injectModalHTML(e = "lookback") {
1514
1530
  <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>
1515
1531
  </div>
1516
1532
  </div>
1517
- `, st.mode = e, document.body.appendChild(ot), (function bindListeners() {
1518
- const e2 = ot == null ? void 0 : ot.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");
1533
+ `, lt.mode = e, document.body.appendChild(at), (function bindListeners() {
1534
+ 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");
1519
1535
  e2 == null ? void 0 : e2.forEach((e3) => {
1520
1536
  e3.addEventListener("click", (e4) => {
1521
1537
  const a3 = e4.currentTarget.dataset.mode;
@@ -1523,11 +1539,11 @@ function injectModalHTML(e = "lookback") {
1523
1539
  });
1524
1540
  }), u && (u.onclick = closeModal);
1525
1541
  w2 && w2.addEventListener("change", () => {
1526
- "lookback" === st.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1542
+ "lookback" === lt.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1527
1543
  });
1528
1544
  a2 && (a2.onclick = () => {
1529
1545
  const e3 = document.getElementById("sf-issue-description");
1530
- e3 && (st.description = e3.value), (function startCountdownThenRecord() {
1546
+ e3 && (lt.description = e3.value), (function startCountdownThenRecord() {
1531
1547
  if (document.getElementById("sf-countdown-overlay")) return;
1532
1548
  const e4 = document.createElement("div");
1533
1549
  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 ";
@@ -1536,9 +1552,9 @@ function injectModalHTML(e = "lookback") {
1536
1552
  const u2 = setInterval(async () => {
1537
1553
  if (a3--, a3 > 0) e4.textContent = a3.toString();
1538
1554
  else {
1539
- clearInterval(u2), document.body.removeChild(e4), it = Date.now(), ct = true;
1555
+ clearInterval(u2), document.body.removeChild(e4), ct = Date.now(), dt = true;
1540
1556
  try {
1541
- const { enableFunctionSpanTracking: e5 } = await Promise.resolve().then(() => me);
1557
+ const { enableFunctionSpanTracking: e5 } = await Promise.resolve().then(() => we);
1542
1558
  e5();
1543
1559
  } catch (e5) {
1544
1560
  console.error("[Report Issue] Failed to enable function span tracking:", e5);
@@ -1564,8 +1580,8 @@ function injectModalHTML(e = "lookback") {
1564
1580
  `, e5.addEventListener("click", () => stopRecording()), document.body.appendChild(e5);
1565
1581
  const a4 = e5.querySelector("#sf-recording-timer");
1566
1582
  if (!a4) return;
1567
- lt = setInterval(() => {
1568
- const e6 = Date.now() - (it ?? Date.now()), u3 = Math.floor(e6 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e6 % 6e4 / 1e3).toString().padStart(2, "0");
1583
+ pt = setInterval(() => {
1584
+ 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");
1569
1585
  a4.textContent = `${u3}:${m3}`;
1570
1586
  }, 1e3);
1571
1587
  })();
@@ -1573,12 +1589,12 @@ function injectModalHTML(e = "lookback") {
1573
1589
  }, 1e3);
1574
1590
  })();
1575
1591
  });
1576
- ot == null ? void 0 : ot.addEventListener("click", (e3) => {
1592
+ at == null ? void 0 : at.addEventListener("click", (e3) => {
1577
1593
  var _a2;
1578
1594
  if (e3.target.closest("#sf-issue-submit-btn")) {
1579
- const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = st.mode;
1595
+ const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = lt.mode;
1580
1596
  let u2, m3;
1581
- if (st.description = e4, "startnow" === a3) u2 = it ?? Date.now() - 3e5, m3 = at ?? Date.now();
1597
+ if (lt.description = e4, "startnow" === a3) u2 = ct ?? Date.now() - 3e5, m3 = ut ?? Date.now();
1582
1598
  else {
1583
1599
  const e5 = 60 * Number((w2 == null ? void 0 : w2.value) || "2") * 1e3;
1584
1600
  m3 = Date.now(), u2 = m3 - e5;
@@ -1587,9 +1603,9 @@ function injectModalHTML(e = "lookback") {
1587
1603
  var _a3, _b;
1588
1604
  try {
1589
1605
  showTriageStatusModal(true);
1590
- const m4 = await createTriageFromRecorder(nt.apiKey, nt.backendApi, (function getSessionIdSafely() {
1591
- if (!nt.resolveSessionId) throw new Error("getSessionId not defined");
1592
- return nt.resolveSessionId();
1606
+ const m4 = await createTriageFromRecorder(it.apiKey, it.backendApi, (function getSessionIdSafely() {
1607
+ if (!it.resolveSessionId) throw new Error("getSessionId not defined");
1608
+ return it.resolveSessionId();
1593
1609
  })(), e5, a4, u3), w3 = (_b = (_a3 = m4 == null ? void 0 : m4.data) == null ? void 0 : _a3.createTriageFromRecorder) == null ? void 0 : _b.id;
1594
1610
  w3 ? showTriageStatusModal(false, w3) : (console.error("No Triage ID returned from backend."), showTriageStatusModal(false, null));
1595
1611
  } catch (e6) {
@@ -1598,29 +1614,29 @@ function injectModalHTML(e = "lookback") {
1598
1614
  })(`${u2}`, `${m3}`, e4);
1599
1615
  }
1600
1616
  });
1601
- })(), nt.deactivateIsolation = activateModalIsolation(ot);
1617
+ })(), it.deactivateIsolation = activateModalIsolation(at);
1602
1618
  }
1603
1619
  function setActiveTab(e) {
1604
- st.mode = e;
1605
- const a = ot == null ? void 0 : ot.querySelector("#sf-tab-lookback"), u = ot == null ? void 0 : ot.querySelector("#sf-tab-startnow");
1620
+ lt.mode = e;
1621
+ const a = at == null ? void 0 : at.querySelector("#sf-tab-lookback"), u = at == null ? void 0 : at.querySelector("#sf-tab-startnow");
1606
1622
  "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");
1607
1623
  }
1608
1624
  function updateModeSpecificUI(e) {
1609
1625
  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");
1610
1626
  if (a && u && m2 && w2 && b2 && C2 && x2) if ("startnow" === e) {
1611
1627
  m2.style.display = "block", x2.style.display = "none", C2.style.justifyContent = "space-between", a.textContent = "I want to reproduce the issue right now.";
1612
- const e2 = null !== it && null !== at;
1613
- if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", it && at) {
1614
- const e3 = Math.floor((at - it) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1628
+ const e2 = null !== ct && null !== ut;
1629
+ if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", ct && ut) {
1630
+ const e3 = Math.floor((ut - ct) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1615
1631
  w2.style.display = "block", b2.textContent = `${a2}:${u2}`;
1616
1632
  } else w2.style.display = "none";
1617
1633
  } 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";
1618
1634
  }
1619
1635
  async function stopRecording() {
1620
1636
  var _a2;
1621
- at = Date.now(), ct = false, lt && clearInterval(lt), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1637
+ ut = Date.now(), dt = false, pt && clearInterval(pt), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1622
1638
  try {
1623
- const { disableFunctionSpanTracking: e } = await Promise.resolve().then(() => me);
1639
+ const { disableFunctionSpanTracking: e } = await Promise.resolve().then(() => we);
1624
1640
  e();
1625
1641
  } catch (e) {
1626
1642
  console.error("[Report Issue] Failed to disable function span tracking:", e);
@@ -1633,17 +1649,17 @@ async function stopRecording() {
1633
1649
  a2 && (a2.textContent = "Re-record");
1634
1650
  }
1635
1651
  const a = document.getElementById("sf-recording-timer-label"), u = document.getElementById("sf-recording-timer-display");
1636
- if (a && u && it && at) {
1637
- const e2 = Math.floor((at - it) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1652
+ if (a && u && ct && ut) {
1653
+ const e2 = Math.floor((ut - ct) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1638
1654
  u.textContent = `${m3}:${w3}`, a.style.display = "block";
1639
1655
  }
1640
1656
  const m2 = document.getElementById("sf-issue-description");
1641
- m2 && (m2.value = st.description);
1657
+ m2 && (m2.value = lt.description);
1642
1658
  const w2 = document.querySelector('input[value="startnow"]');
1643
1659
  w2 && (w2.checked = true);
1644
1660
  const b2 = document.getElementById("sf-inline-record-chip"), C2 = document.getElementById("sf-inline-record-timer");
1645
1661
  if (b2 && C2) {
1646
- const e2 = Math.floor(((at ?? 0) - (it ?? 0)) / 1e3), a2 = Math.floor(e2 / 60).toString().padStart(2, "0"), u2 = Math.floor(e2 % 60).toString().padStart(2, "0");
1662
+ 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");
1647
1663
  C2.textContent = `${a2}:${u2}`, C2.style.color = "black", b2.style.display = "flex";
1648
1664
  }
1649
1665
  const x2 = document.getElementById("sf-issue-submit-btn");
@@ -1656,7 +1672,7 @@ function showTriageStatusModal(e, a) {
1656
1672
  var _a3, _b;
1657
1673
  (_a3 = document.getElementById("sf-report-issue-modal")) == null ? void 0 : _a3.remove(), (_b = document.getElementById("sf-triage-status-modal")) == null ? void 0 : _b.remove();
1658
1674
  })();
1659
- const u = a ? `${nt.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1675
+ const u = a ? `${it.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1660
1676
  m2.id = "sf-triage-status-modal", Object.assign(m2.style, { position: "fixed", inset: "0", zIndex: "9998", display: "flex", alignItems: "center", justifyContent: "center" });
1661
1677
  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>';
1662
1678
  m2.innerHTML = `
@@ -1718,7 +1734,7 @@ function showTriageStatusModal(e, a) {
1718
1734
  function fadeCardAndRemove(e, a, u = 300) {
1719
1735
  a.style.opacity = "0", a.addEventListener("transitionend", () => e.remove(), { once: true }), setTimeout(() => e.remove(), u + 100);
1720
1736
  }
1721
- var ut = Object.defineProperty, b$1 = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? ut(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), pt = Object.defineProperty, xn = (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 = ((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))(dt || {});
1737
+ 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 || {});
1722
1738
  function vr(e) {
1723
1739
  return e.nodeType === e.ELEMENT_NODE;
1724
1740
  }
@@ -1760,7 +1776,7 @@ function kr(e) {
1760
1776
  })(e.cssText);
1761
1777
  return a || e.cssText;
1762
1778
  }
1763
- let ht = class {
1779
+ let wt = class {
1764
1780
  constructor() {
1765
1781
  xn(this, "idNodeMap", /* @__PURE__ */ new Map()), xn(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
1766
1782
  }
@@ -1812,7 +1828,7 @@ function Zt({ element: e, maskInputOptions: a, tagName: u, type: m2, value: w2,
1812
1828
  function fe(e) {
1813
1829
  return e.toLowerCase();
1814
1830
  }
1815
- const gt = "__rrweb_original__";
1831
+ const St = "__rrweb_original__";
1816
1832
  function Yt(e) {
1817
1833
  const a = e.type;
1818
1834
  return e.hasAttribute("data-rr-is-password") ? "password" : a ? fe(a) : null;
@@ -1827,19 +1843,19 @@ function xr(e, a) {
1827
1843
  const m2 = u.pathname.match(/\.([0-9a-z]+)(?:$)/i);
1828
1844
  return (null == m2 ? void 0 : m2[1]) ?? null;
1829
1845
  }
1830
- let yt = 1;
1831
- const wt = new RegExp("[^a-z0-9-_:]");
1846
+ let bt = 1;
1847
+ const vt = new RegExp("[^a-z0-9-_:]");
1832
1848
  function Ir() {
1833
- return yt++;
1849
+ return bt++;
1834
1850
  }
1835
- let St, bt;
1836
- const vt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Ct = /^(?:[a-z+]+:)?\/\//i, kt = /^www\..*/i, xt = /^(data:)([^,]*),(.*)/i;
1851
+ let Ct, kt;
1852
+ const xt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Mt = /^(?:[a-z+]+:)?\/\//i, It = /^www\..*/i, Et = /^(data:)([^,]*),(.*)/i;
1837
1853
  function Pt(e, a) {
1838
- return (e || "").replace(vt, (e2, u, m2, w2, b2, C2) => {
1854
+ return (e || "").replace(xt, (e2, u, m2, w2, b2, C2) => {
1839
1855
  const x2 = m2 || b2 || C2, I2 = u || w2 || "";
1840
1856
  if (!x2) return e2;
1841
- if (Ct.test(x2) || kt.test(x2)) return `url(${I2}${x2}${I2})`;
1842
- if (xt.test(x2)) return `url(${I2}${x2}${I2})`;
1857
+ if (Mt.test(x2) || It.test(x2)) return `url(${I2}${x2}${I2})`;
1858
+ if (Et.test(x2)) return `url(${I2}${x2}${I2})`;
1843
1859
  if ("/" === x2[0]) return `url(${I2}${(function Ei(e3) {
1844
1860
  let a2 = "";
1845
1861
  return a2 = e3.indexOf("//") > -1 ? e3.split("/").slice(0, 3).join("/") : e3.split("/")[0], a2 = a2.split("?")[0], a2;
@@ -1850,8 +1866,8 @@ function Pt(e, a) {
1850
1866
  return `url(${I2}${_2.join("/")}${I2})`;
1851
1867
  });
1852
1868
  }
1853
- const Mt = /^[^ \t\n\r\u000c]+/, It = /^[, \t\n\r\u000c]+/;
1854
- const Et = /* @__PURE__ */ new WeakMap();
1869
+ const Lt = /^[^ \t\n\r\u000c]+/, Rt = /^[, \t\n\r\u000c]+/;
1870
+ const Dt = /* @__PURE__ */ new WeakMap();
1855
1871
  function At(e, a) {
1856
1872
  return a && "" !== a.trim() ? $t(e, a) : a;
1857
1873
  }
@@ -1859,8 +1875,8 @@ function Fi(e) {
1859
1875
  return !("svg" !== e.tagName && !e.ownerSVGElement);
1860
1876
  }
1861
1877
  function $t(e, a) {
1862
- let u = Et.get(e);
1863
- if (u || (u = e.createElement("a"), Et.set(e, u)), a) {
1878
+ let u = Dt.get(e);
1879
+ if (u || (u = e.createElement("a"), Dt.set(e, u)), a) {
1864
1880
  if (a.startsWith("blob:") || a.startsWith("data:")) return a;
1865
1881
  } else a = "";
1866
1882
  return u.setAttribute("href", a), u.href;
@@ -1875,8 +1891,8 @@ function Mr(e, a, u, m2) {
1875
1891
  return w2 ? (m4 = w2[0], u2 += m4.length, m4) : "";
1876
1892
  }
1877
1893
  const m3 = [];
1878
- for (; n(It), !(u2 >= a2.length); ) {
1879
- let w2 = n(Mt);
1894
+ for (; n(Rt), !(u2 >= a2.length); ) {
1895
+ let w2 = n(Lt);
1880
1896
  if ("," === w2.slice(-1)) w2 = At(e2, w2.substring(0, w2.length - 1)), m3.push(w2);
1881
1897
  else {
1882
1898
  let b2 = "";
@@ -1946,9 +1962,9 @@ function zi(e, a) {
1946
1962
  })(u, m2);
1947
1963
  switch (e.nodeType) {
1948
1964
  case e.DOCUMENT_NODE:
1949
- return "CSS1Compat" !== e.compatMode ? { type: dt.Document, childNodes: [], compatMode: e.compatMode } : { type: dt.Document, childNodes: [] };
1965
+ return "CSS1Compat" !== e.compatMode ? { type: yt.Document, childNodes: [], compatMode: e.compatMode } : { type: yt.Document, childNodes: [] };
1950
1966
  case e.DOCUMENT_TYPE_NODE:
1951
- return { type: dt.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1967
+ return { type: yt.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1952
1968
  case e.ELEMENT_NODE:
1953
1969
  return (function Vi(e2, a2) {
1954
1970
  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) {
@@ -1966,7 +1982,7 @@ function zi(e, a) {
1966
1982
  })(e2, m3, w3), B3 = (function Oi(e3) {
1967
1983
  if (e3 instanceof HTMLFormElement) return "form";
1968
1984
  const a3 = fe(e3.tagName);
1969
- return wt.test(a3) ? "div" : a3;
1985
+ return vt.test(a3) ? "div" : a3;
1970
1986
  })(e2);
1971
1987
  let $3 = {};
1972
1988
  const z2 = e2.attributes.length;
@@ -1995,7 +2011,7 @@ function zi(e, a) {
1995
2011
  const a3 = e3.getContext("2d");
1996
2012
  if (!a3) return true;
1997
2013
  for (let u3 = 0; u3 < e3.width; u3 += 50) for (let m4 = 0; m4 < e3.height; m4 += 50) {
1998
- const w4 = a3.getImageData, b4 = gt in w4 ? w4[gt] : w4;
2014
+ const w4 = a3.getImageData, b4 = St in w4 ? w4[St] : w4;
1999
2015
  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;
2000
2016
  }
2001
2017
  return true;
@@ -2007,11 +2023,11 @@ function zi(e, a) {
2007
2023
  }
2008
2024
  }
2009
2025
  if ("img" === B3 && _3) {
2010
- St || (St = u2.createElement("canvas"), bt = St.getContext("2d"));
2026
+ Ct || (Ct = u2.createElement("canvas"), kt = Ct.getContext("2d"));
2011
2027
  const a3 = e2, m4 = a3.currentSrc || a3.getAttribute("src") || "<unknown-src>", w4 = a3.crossOrigin, A = () => {
2012
2028
  a3.removeEventListener("load", A);
2013
2029
  try {
2014
- St.width = a3.naturalWidth, St.height = a3.naturalHeight, bt.drawImage(a3, 0, 0), $3.rr_dataURL = St.toDataURL(I3.type, I3.quality);
2030
+ Ct.width = a3.naturalWidth, Ct.height = a3.naturalHeight, kt.drawImage(a3, 0, 0), $3.rr_dataURL = Ct.toDataURL(I3.type, I3.quality);
2015
2031
  } catch (e3) {
2016
2032
  if ("anonymous" !== a3.crossOrigin) return a3.crossOrigin = "anonymous", void (a3.complete && 0 !== a3.naturalWidth ? A() : a3.addEventListener("load", A));
2017
2033
  console.warn(`Cannot inline img src=${m4}! Error: ${e3}`);
@@ -2034,7 +2050,7 @@ function zi(e, a) {
2034
2050
  customElements.get(B3) && (j2 = true);
2035
2051
  } catch {
2036
2052
  }
2037
- return { type: dt.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2053
+ return { type: yt.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2038
2054
  })(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 });
2039
2055
  case e.TEXT_NODE:
2040
2056
  return (function ji(e2, a2) {
@@ -2050,12 +2066,12 @@ function zi(e, a) {
2050
2066
  }
2051
2067
  x3 = Pt(x3, $t(a2.doc));
2052
2068
  }
2053
- return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e2.parentElement) : x3.replace(/[\S]/g, "*")), { type: dt.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2069
+ 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 };
2054
2070
  })(e, { doc: u, needsMask: C2, maskTextFn: _2, rootId: $2 });
2055
2071
  case e.CDATA_SECTION_NODE:
2056
- return { type: dt.CDATA, textContent: "", rootId: $2 };
2072
+ return { type: yt.CDATA, textContent: "", rootId: $2 };
2057
2073
  case e.COMMENT_NODE:
2058
- return { type: dt.Comment, textContent: e.textContent || "", rootId: $2 };
2074
+ return { type: yt.Comment, textContent: e.textContent || "", rootId: $2 };
2059
2075
  default:
2060
2076
  return false;
2061
2077
  }
@@ -2071,21 +2087,21 @@ function Se(e, a) {
2071
2087
  if (!ee2) return console.warn(e, "not serialized"), null;
2072
2088
  let te2;
2073
2089
  te2 = m2.hasNode(e) ? m2.getId(e) : (function Gi(e2, a2) {
2074
- return !!(a2.comment && e2.type === dt.Comment || e2.type === dt.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)))));
2075
- })(ee2, F2) || !Q2 && ee2.type === dt.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2090
+ 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)))));
2091
+ })(ee2, F2) || !Q2 && ee2.type === yt.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2076
2092
  const ne2 = Object.assign(ee2, { id: te2 });
2077
2093
  if (m2.add(e, ne2), -2 === te2) return null;
2078
2094
  z2 && z2(e);
2079
2095
  let re2 = !I2;
2080
- if (ne2.type === dt.Element) {
2096
+ if (ne2.type === yt.Element) {
2081
2097
  re2 = re2 && !ne2.needBlock, delete ne2.needBlock;
2082
2098
  const a2 = e.shadowRoot;
2083
2099
  a2 && ze(a2) && (ne2.isShadowHost = true);
2084
2100
  }
2085
- if ((ne2.type === dt.Document || ne2.type === dt.Element) && re2) {
2086
- F2.headWhitespace && ne2.type === dt.Element && "head" === ne2.tagName && (Q2 = false);
2101
+ if ((ne2.type === yt.Document || ne2.type === yt.Element) && re2) {
2102
+ F2.headWhitespace && ne2.type === yt.Element && "head" === ne2.tagName && (Q2 = false);
2087
2103
  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 };
2088
- if (ne2.type !== dt.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
2104
+ if (ne2.type !== yt.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
2089
2105
  const e2 = Se(u2, a2);
2090
2106
  e2 && ne2.childNodes.push(e2);
2091
2107
  }
@@ -2094,7 +2110,7 @@ function Se(e, a) {
2094
2110
  m3 && (ze(e.shadowRoot) && (m3.isShadow = true), ne2.childNodes.push(m3));
2095
2111
  }
2096
2112
  }
2097
- return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === dt.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
2113
+ return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === yt.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
2098
2114
  const m3 = e2.contentWindow;
2099
2115
  if (!m3) return;
2100
2116
  let w3, b3 = false;
@@ -2120,7 +2136,7 @@ function Se(e, a) {
2120
2136
  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 });
2121
2137
  u2 && j2(e, u2);
2122
2138
  }
2123
- }, V2), ne2.type === dt.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) {
2139
+ }, 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) {
2124
2140
  let m3, w3 = false;
2125
2141
  try {
2126
2142
  m3 = e2.sheet;
@@ -2160,13 +2176,13 @@ function $i(e) {
2160
2176
  } });
2161
2177
  }), u;
2162
2178
  }
2163
- var Lt = { exports: {} }, Rt = String, Rr = function() {
2164
- return { isColorSupported: false, reset: Rt, bold: Rt, dim: Rt, italic: Rt, underline: Rt, inverse: Rt, hidden: Rt, strikethrough: Rt, black: Rt, red: Rt, green: Rt, yellow: Rt, blue: Rt, magenta: Rt, cyan: Rt, white: Rt, gray: Rt, bgBlack: Rt, bgRed: Rt, bgGreen: Rt, bgYellow: Rt, bgBlue: Rt, bgMagenta: Rt, bgCyan: Rt, bgWhite: Rt, blackBright: Rt, redBright: Rt, greenBright: Rt, yellowBright: Rt, blueBright: Rt, magentaBright: Rt, cyanBright: Rt, whiteBright: Rt, bgBlackBright: Rt, bgRedBright: Rt, bgGreenBright: Rt, bgYellowBright: Rt, bgBlueBright: Rt, bgMagentaBright: Rt, bgCyanBright: Rt, bgWhiteBright: Rt };
2179
+ var Ft = { exports: {} }, Ut = String, Rr = function() {
2180
+ 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 };
2165
2181
  };
2166
- Lt.exports = Rr(), Lt.exports.createColors = Rr;
2167
- var Dt = Lt.exports;
2168
- const Ft = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2169
- let Ut = Dt, Bt = Ft, Wt = class Lr extends Error {
2182
+ Ft.exports = Rr(), Ft.exports.createColors = Rr;
2183
+ var Bt = Ft.exports;
2184
+ const Wt = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2185
+ let jt = Bt, Vt = Wt, Ht = class Lr extends Error {
2170
2186
  constructor(e, a, u, m2, w2, b2) {
2171
2187
  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);
2172
2188
  }
@@ -2176,11 +2192,11 @@ let Ut = Dt, Bt = Ft, Wt = class Lr extends Error {
2176
2192
  showSourceCode(e) {
2177
2193
  if (!this.source) return "";
2178
2194
  let a = this.source;
2179
- null == e && (e = Ut.isColorSupported);
2195
+ null == e && (e = jt.isColorSupported);
2180
2196
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
2181
2197
  if (e) {
2182
- let { bold: e2, gray: a2, red: u2 } = Ut.createColors(true);
2183
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Bt && (i = (e3) => Bt(e3));
2198
+ let { bold: e2, gray: a2, red: u2 } = jt.createColors(true);
2199
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Vt && (i = (e3) => Vt(e3));
2184
2200
  }
2185
2201
  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;
2186
2202
  return u.slice(m2, w2).map((e2, a2) => {
@@ -2201,10 +2217,10 @@ let Ut = Dt, Bt = Ft, Wt = class Lr extends Error {
2201
2217
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
2202
2218
  }
2203
2219
  };
2204
- var jt = Wt;
2205
- Wt.default = Wt;
2206
- const Vt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2207
- let Ht = class {
2220
+ var Kt = Ht;
2221
+ Ht.default = Ht;
2222
+ const Jt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2223
+ let Xt = class {
2208
2224
  constructor(e) {
2209
2225
  this.builder = e;
2210
2226
  }
@@ -2256,7 +2272,7 @@ let Ht = class {
2256
2272
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
2257
2273
  let w2 = e.parent;
2258
2274
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
2259
- if (!w2) return Vt[u];
2275
+ if (!w2) return Jt[u];
2260
2276
  let b2 = e.root();
2261
2277
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
2262
2278
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -2268,7 +2284,7 @@ let Ht = class {
2268
2284
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
2269
2285
  });
2270
2286
  }
2271
- return typeof m2 > "u" && (m2 = Vt[u]), b2.rawCache[u] = m2, m2;
2287
+ return typeof m2 > "u" && (m2 = Jt[u]), b2.rawCache[u] = m2, m2;
2272
2288
  }
2273
2289
  rawBeforeClose(e) {
2274
2290
  let a;
@@ -2344,17 +2360,17 @@ let Ht = class {
2344
2360
  this[e.type](e, a);
2345
2361
  }
2346
2362
  };
2347
- var Kt = Ht;
2348
- Ht.default = Ht;
2349
- let Jt = Kt;
2363
+ var Qt = Xt;
2364
+ Xt.default = Xt;
2365
+ let en = Qt;
2350
2366
  function ks(e, a) {
2351
- new Jt(a).stringify(e);
2367
+ new en(a).stringify(e);
2352
2368
  }
2353
- var Xt = ks;
2369
+ var tn = ks;
2354
2370
  ks.default = ks;
2355
- var Qt = {};
2356
- Qt.isClean = Symbol("isClean"), Qt.my = Symbol("my");
2357
- let en = jt, tn = Kt, nn = Xt, { isClean: rn, my: on } = Qt;
2371
+ var nn = {};
2372
+ nn.isClean = Symbol("isClean"), nn.my = Symbol("my");
2373
+ let rn = Kt, on = Qt, sn = tn, { isClean: an, my: ln } = nn;
2358
2374
  function Cs(e, a) {
2359
2375
  let u = new e.constructor();
2360
2376
  for (let m2 in e) {
@@ -2376,12 +2392,12 @@ function Pe(e, a) {
2376
2392
  }
2377
2393
  return w2;
2378
2394
  }
2379
- let sn = class {
2395
+ let cn = class {
2380
2396
  get proxyOf() {
2381
2397
  return this;
2382
2398
  }
2383
2399
  constructor(e = {}) {
2384
- this.raws = {}, this[rn] = false, this[on] = true;
2400
+ this.raws = {}, this[an] = false, this[ln] = true;
2385
2401
  for (let a in e) if ("nodes" === a) {
2386
2402
  this.nodes = [];
2387
2403
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -2425,19 +2441,19 @@ let sn = class {
2425
2441
  let { end: u, start: m2 } = this.rangeBy(a);
2426
2442
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
2427
2443
  }
2428
- return new en(e);
2444
+ return new rn(e);
2429
2445
  }
2430
2446
  getProxyProcessor() {
2431
2447
  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) };
2432
2448
  }
2433
2449
  markClean() {
2434
- this[rn] = true;
2450
+ this[an] = true;
2435
2451
  }
2436
2452
  markDirty() {
2437
- if (this[rn]) {
2438
- this[rn] = false;
2453
+ if (this[an]) {
2454
+ this[an] = false;
2439
2455
  let e = this;
2440
- for (; e = e.parent; ) e[rn] = false;
2456
+ for (; e = e.parent; ) e[an] = false;
2441
2457
  }
2442
2458
  }
2443
2459
  next() {
@@ -2473,7 +2489,7 @@ let sn = class {
2473
2489
  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 };
2474
2490
  }
2475
2491
  raw(e, a) {
2476
- return new tn().raw(this, e, a);
2492
+ return new on().raw(this, e, a);
2477
2493
  }
2478
2494
  remove() {
2479
2495
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -2510,7 +2526,7 @@ let sn = class {
2510
2526
  toProxy() {
2511
2527
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
2512
2528
  }
2513
- toString(e = nn) {
2529
+ toString(e = sn) {
2514
2530
  e.stringify && (e = e.stringify);
2515
2531
  let a = "";
2516
2532
  return e(this, (e2) => {
@@ -2523,16 +2539,16 @@ let sn = class {
2523
2539
  return e.warn(a, m2);
2524
2540
  }
2525
2541
  };
2526
- var an = sn;
2527
- sn.default = sn;
2528
- let ln = an, cn = class extends ln {
2542
+ var un = cn;
2543
+ cn.default = cn;
2544
+ let pn = un, dn = class extends pn {
2529
2545
  constructor(e) {
2530
2546
  super(e), this.type = "comment";
2531
2547
  }
2532
2548
  };
2533
- var un = cn;
2534
- cn.default = cn;
2535
- let pn = an, dn = class extends pn {
2549
+ var hn = dn;
2550
+ dn.default = dn;
2551
+ let fn = un, mn = class extends fn {
2536
2552
  get variable() {
2537
2553
  return this.prop.startsWith("--") || "$" === this.prop[0];
2538
2554
  }
@@ -2540,16 +2556,16 @@ let pn = an, dn = class extends pn {
2540
2556
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
2541
2557
  }
2542
2558
  };
2543
- var hn = dn;
2544
- dn.default = dn;
2545
- let fn, mn, gn, yn, wn = un, Sn = hn, bn = an, { isClean: Mn, my: In } = Qt;
2559
+ var gn = mn;
2560
+ mn.default = mn;
2561
+ let yn, wn, Sn, bn, Mn = hn, In = gn, _n = un, { isClean: On, my: En } = nn;
2546
2562
  function _r(e) {
2547
2563
  return e.map((e2) => (e2.nodes && (e2.nodes = _r(e2.nodes)), delete e2.source, e2));
2548
2564
  }
2549
2565
  function Wr(e) {
2550
- if (e[Mn] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2566
+ if (e[On] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2551
2567
  }
2552
- let _n = class zr extends bn {
2568
+ let Ln = class zr extends _n {
2553
2569
  get first() {
2554
2570
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
2555
2571
  }
@@ -2601,7 +2617,7 @@ let _n = class zr extends bn {
2601
2617
  return this.markDirty(), this;
2602
2618
  }
2603
2619
  normalize(e, a) {
2604
- if ("string" == typeof e) e = _r(mn(e).nodes);
2620
+ if ("string" == typeof e) e = _r(wn(e).nodes);
2605
2621
  else if (typeof e > "u") e = [];
2606
2622
  else if (Array.isArray(e)) {
2607
2623
  e = e.slice(0);
@@ -2612,14 +2628,14 @@ let _n = class zr extends bn {
2612
2628
  } else if (e.type) e = [e];
2613
2629
  else if (e.prop) {
2614
2630
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
2615
- "string" != typeof e.value && (e.value = String(e.value)), e = [new Sn(e)];
2616
- } else if (e.selector || e.selectors) e = [new yn(e)];
2617
- else if (e.name) e = [new fn(e)];
2631
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new In(e)];
2632
+ } else if (e.selector || e.selectors) e = [new bn(e)];
2633
+ else if (e.name) e = [new yn(e)];
2618
2634
  else {
2619
2635
  if (!e.text) throw new Error("Unknown node type in node creation");
2620
- e = [new wn(e)];
2636
+ e = [new Mn(e)];
2621
2637
  }
2622
- return e.map((e2) => (e2[In] || zr.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[Mn] && 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));
2638
+ 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));
2623
2639
  }
2624
2640
  prepend(...e) {
2625
2641
  e = e.reverse();
@@ -2695,22 +2711,22 @@ let _n = class zr extends bn {
2695
2711
  }));
2696
2712
  }
2697
2713
  };
2698
- _n.registerParse = (e) => {
2699
- mn = e;
2700
- }, _n.registerRule = (e) => {
2714
+ Ln.registerParse = (e) => {
2715
+ wn = e;
2716
+ }, Ln.registerRule = (e) => {
2717
+ bn = e;
2718
+ }, Ln.registerAtRule = (e) => {
2701
2719
  yn = e;
2702
- }, _n.registerAtRule = (e) => {
2703
- fn = e;
2704
- }, _n.registerRoot = (e) => {
2705
- gn = e;
2720
+ }, Ln.registerRoot = (e) => {
2721
+ Sn = e;
2706
2722
  };
2707
- var On = _n;
2708
- _n.default = _n, _n.rebuild = (e) => {
2709
- "atrule" === e.type ? Object.setPrototypeOf(e, fn.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, yn.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, Sn.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, wn.prototype) : "root" === e.type && Object.setPrototypeOf(e, gn.prototype), e[In] = true, e.nodes && e.nodes.forEach((e2) => {
2710
- _n.rebuild(e2);
2723
+ var Rn = Ln;
2724
+ Ln.default = Ln, Ln.rebuild = (e) => {
2725
+ "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) => {
2726
+ Ln.rebuild(e2);
2711
2727
  });
2712
2728
  };
2713
- let En = On, Ln = class extends En {
2729
+ let An = Rn, Tn = class extends An {
2714
2730
  constructor(e) {
2715
2731
  super(e), this.type = "atrule";
2716
2732
  }
@@ -2721,38 +2737,38 @@ let En = On, Ln = class extends En {
2721
2737
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
2722
2738
  }
2723
2739
  };
2724
- var Rn = Ln;
2725
- Ln.default = Ln, En.registerAtRule(Ln);
2726
- let An, Tn, Nn = On, Pn = class extends Nn {
2740
+ var Nn = Tn;
2741
+ Tn.default = Tn, An.registerAtRule(Tn);
2742
+ let Pn, Dn, Fn = Rn, Un = class extends Fn {
2727
2743
  constructor(e) {
2728
2744
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
2729
2745
  }
2730
2746
  toResult(e = {}) {
2731
- return new An(new Tn(), this, e).stringify();
2747
+ return new Pn(new Dn(), this, e).stringify();
2732
2748
  }
2733
2749
  };
2734
- Pn.registerLazyResult = (e) => {
2735
- An = e;
2736
- }, Pn.registerProcessor = (e) => {
2737
- Tn = e;
2750
+ Un.registerLazyResult = (e) => {
2751
+ Pn = e;
2752
+ }, Un.registerProcessor = (e) => {
2753
+ Dn = e;
2738
2754
  };
2739
- var Dn = Pn;
2740
- Pn.default = Pn;
2741
- var Fn = { nanoid: (e = 21) => {
2755
+ var Bn = Un;
2756
+ Un.default = Un;
2757
+ var Wn = { nanoid: (e = 21) => {
2742
2758
  let a = "", u = 0 | e;
2743
2759
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
2744
2760
  return a;
2745
2761
  } };
2746
- let { existsSync: Un, readFileSync: Bn } = Ft, { dirname: Wn, join: zn } = Ft, { SourceMapConsumer: jn, SourceMapGenerator: Vn } = Ft;
2747
- let qn = class {
2762
+ let { existsSync: zn, readFileSync: jn } = Wt, { dirname: Vn, join: qn } = Wt, { SourceMapConsumer: Zn, SourceMapGenerator: Kn } = Wt;
2763
+ let Qn = class {
2748
2764
  constructor(e, a) {
2749
2765
  if (false === a.map) return;
2750
2766
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
2751
2767
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
2752
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Wn(this.mapFile)), m2 && (this.text = m2);
2768
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Vn(this.mapFile)), m2 && (this.text = m2);
2753
2769
  }
2754
2770
  consumer() {
2755
- return this.consumerCache || (this.consumerCache = new jn(this.text)), this.consumerCache;
2771
+ return this.consumerCache || (this.consumerCache = new Zn(this.text)), this.consumerCache;
2756
2772
  }
2757
2773
  decodeInline(e) {
2758
2774
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -2777,15 +2793,15 @@ let qn = class {
2777
2793
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
2778
2794
  }
2779
2795
  loadFile(e) {
2780
- if (this.root = Wn(e), Un(e)) return this.mapFile = e, Bn(e, "utf-8").toString().trim();
2796
+ if (this.root = Vn(e), zn(e)) return this.mapFile = e, jn(e, "utf-8").toString().trim();
2781
2797
  }
2782
2798
  loadMap(e, a) {
2783
2799
  if (false === a) return false;
2784
2800
  if (a) {
2785
2801
  if ("string" == typeof a) return a;
2786
2802
  if ("function" != typeof a) {
2787
- if (a instanceof jn) return Vn.fromSourceMap(a).toString();
2788
- if (a instanceof Vn) return a.toString();
2803
+ if (a instanceof Zn) return Kn.fromSourceMap(a).toString();
2804
+ if (a instanceof Kn) return a.toString();
2789
2805
  if (this.isMap(a)) return JSON.stringify(a);
2790
2806
  throw new Error("Unsupported previous source map format: " + a.toString());
2791
2807
  }
@@ -2801,7 +2817,7 @@ let qn = class {
2801
2817
  if (this.inline) return this.decodeInline(this.annotation);
2802
2818
  if (this.annotation) {
2803
2819
  let a2 = this.annotation;
2804
- return e && (a2 = zn(Wn(e), a2)), this.loadFile(a2);
2820
+ return e && (a2 = qn(Vn(e), a2)), this.loadFile(a2);
2805
2821
  }
2806
2822
  }
2807
2823
  }
@@ -2812,23 +2828,23 @@ let qn = class {
2812
2828
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
2813
2829
  }
2814
2830
  };
2815
- var Zn = qn;
2816
- qn.default = qn;
2817
- let { nanoid: Kn } = Fn, { isAbsolute: Qn, resolve: nr } = Ft, { SourceMapConsumer: rr, SourceMapGenerator: or } = Ft, { fileURLToPath: sr, pathToFileURL: ir } = Ft, ar = jt, lr = Zn, cr = Ft, ur = Symbol("fromOffsetCache"), pr = !(!rr || !or), dr = !(!nr || !Qn), hr = class {
2831
+ var nr = Qn;
2832
+ Qn.default = Qn;
2833
+ 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 {
2818
2834
  get from() {
2819
2835
  return this.file || this.id;
2820
2836
  }
2821
2837
  constructor(e, a = {}) {
2822
2838
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
2823
- 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 && (!dr || /^\w+:\/\//.test(a.from) || Qn(a.from) ? this.file = a.from : this.file = nr(a.from)), dr && pr) {
2824
- let e2 = new lr(this.css, a);
2839
+ 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) {
2840
+ let e2 = new pr(this.css, a);
2825
2841
  if (e2.text) {
2826
2842
  this.map = e2;
2827
2843
  let a2 = e2.consumer().file;
2828
2844
  !this.file && a2 && (this.file = this.mapResolve(a2));
2829
2845
  }
2830
2846
  }
2831
- this.file || (this.id = "<input css " + Kn(6) + ">"), this.map && (this.map.file = this.from);
2847
+ this.file || (this.id = "<input css " + rr(6) + ">"), this.map && (this.map.file = this.from);
2832
2848
  }
2833
2849
  error(e, a, u, m2 = {}) {
2834
2850
  let w2, b2, C2;
@@ -2847,17 +2863,17 @@ let { nanoid: Kn } = Fn, { isAbsolute: Qn, resolve: nr } = Ft, { SourceMapConsum
2847
2863
  a = e2.line, u = e2.col;
2848
2864
  }
2849
2865
  let x2 = this.origin(a, u, b2, w2);
2850
- return C2 = x2 ? new ar(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 ar(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 && (ir && (C2.input.url = ir(this.file).toString()), C2.input.file = this.file), C2;
2866
+ 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;
2851
2867
  }
2852
2868
  fromOffset(e) {
2853
2869
  let a, u;
2854
- if (this[ur]) u = this[ur];
2870
+ if (this[hr]) u = this[hr];
2855
2871
  else {
2856
2872
  let e2 = this.css.split("\n");
2857
2873
  u = new Array(e2.length);
2858
2874
  let a2 = 0;
2859
2875
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
2860
- this[ur] = u;
2876
+ this[hr] = u;
2861
2877
  }
2862
2878
  a = u[u.length - 1];
2863
2879
  let m2 = 0;
@@ -2876,17 +2892,17 @@ let { nanoid: Kn } = Fn, { isAbsolute: Qn, resolve: nr } = Ft, { SourceMapConsum
2876
2892
  return { col: e - u[m2] + 1, line: m2 + 1 };
2877
2893
  }
2878
2894
  mapResolve(e) {
2879
- return /^\w+:\/\//.test(e) ? e : nr(this.map.consumer().sourceRoot || this.map.root || ".", e);
2895
+ return /^\w+:\/\//.test(e) ? e : sr(this.map.consumer().sourceRoot || this.map.root || ".", e);
2880
2896
  }
2881
2897
  origin(e, a, u, m2) {
2882
2898
  if (!this.map) return false;
2883
2899
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
2884
2900
  if (!x2.source) return false;
2885
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = Qn(x2.source) ? ir(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ir(this.map.mapFile));
2901
+ "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));
2886
2902
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
2887
2903
  if ("file:" === b2.protocol) {
2888
- if (!sr) throw new Error("file: protocol is not available in this PostCSS build");
2889
- I2.file = sr(b2);
2904
+ if (!lr) throw new Error("file: protocol is not available in this PostCSS build");
2905
+ I2.file = lr(b2);
2890
2906
  }
2891
2907
  let _2 = C2.sourceContentFor(x2.source);
2892
2908
  return _2 && (I2.source = _2), I2;
@@ -2897,9 +2913,9 @@ let { nanoid: Kn } = Fn, { isAbsolute: Qn, resolve: nr } = Ft, { SourceMapConsum
2897
2913
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
2898
2914
  }
2899
2915
  };
2900
- var fr = hr;
2901
- hr.default = hr, cr && cr.registerInput && cr.registerInput(hr);
2902
- let mr, gr, yr = On, wr = class extends yr {
2916
+ var yr = gr;
2917
+ gr.default = gr, dr && dr.registerInput && dr.registerInput(gr);
2918
+ let wr, Sr, Cr = Rn, Ar = class extends Cr {
2903
2919
  constructor(e) {
2904
2920
  super(e), this.type = "root", this.nodes || (this.nodes = []);
2905
2921
  }
@@ -2916,29 +2932,29 @@ let mr, gr, yr = On, wr = class extends yr {
2916
2932
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
2917
2933
  }
2918
2934
  toResult(e = {}) {
2919
- return new mr(new gr(), this, e).stringify();
2935
+ return new wr(new Sr(), this, e).stringify();
2920
2936
  }
2921
2937
  };
2922
- wr.registerLazyResult = (e) => {
2923
- mr = e;
2924
- }, wr.registerProcessor = (e) => {
2925
- gr = e;
2938
+ Ar.registerLazyResult = (e) => {
2939
+ wr = e;
2940
+ }, Ar.registerProcessor = (e) => {
2941
+ Sr = e;
2926
2942
  };
2927
- var Sr = wr;
2928
- wr.default = wr, yr.registerRoot(wr);
2929
- let Cr = { comma: (e) => Cr.split(e, [","], true), space(e) {
2943
+ var Tr = Ar;
2944
+ Ar.default = Ar, Cr.registerRoot(Ar);
2945
+ let Nr = { comma: (e) => Nr.split(e, [","], true), space(e) {
2930
2946
  let a = [" ", "\n", " "];
2931
- return Cr.split(e, a);
2947
+ return Nr.split(e, a);
2932
2948
  }, split(e, a, u) {
2933
2949
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
2934
2950
  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;
2935
2951
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
2936
2952
  } };
2937
- var Ar = Cr;
2938
- Cr.default = Cr;
2939
- let Tr = On, Nr = Ar, Pr = class extends Tr {
2953
+ var Pr = Nr;
2954
+ Nr.default = Nr;
2955
+ let Dr = Rn, Fr = Pr, Ur = class extends Dr {
2940
2956
  get selectors() {
2941
- return Nr.comma(this.selector);
2957
+ return Fr.comma(this.selector);
2942
2958
  }
2943
2959
  set selectors(e) {
2944
2960
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -2948,34 +2964,34 @@ let Tr = On, Nr = Ar, Pr = class extends Tr {
2948
2964
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
2949
2965
  }
2950
2966
  };
2951
- var Dr = Pr;
2952
- Pr.default = Pr, Tr.registerRule(Pr);
2953
- let Fr = Rn, Ur = un, Br = hn, $r = fr, jr = Zn, Gr = Sr, Vr = Dr;
2967
+ var Br = Ur;
2968
+ Ur.default = Ur, Dr.registerRule(Ur);
2969
+ let $r = Nn, jr = hn, Gr = gn, Vr = yr, qr = nr, Hr = Tr, Zr = Br;
2954
2970
  function Ze(e, a) {
2955
2971
  if (Array.isArray(e)) return e.map((e2) => Ze(e2));
2956
2972
  let { inputs: u, ...m2 } = e;
2957
2973
  if (u) {
2958
2974
  a = [];
2959
2975
  for (let e2 of u) {
2960
- let u2 = { ...e2, __proto__: $r.prototype };
2961
- u2.map && (u2.map = { ...u2.map, __proto__: jr.prototype }), a.push(u2);
2976
+ let u2 = { ...e2, __proto__: Vr.prototype };
2977
+ u2.map && (u2.map = { ...u2.map, __proto__: qr.prototype }), a.push(u2);
2962
2978
  }
2963
2979
  }
2964
2980
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ze(e2, a))), m2.source) {
2965
2981
  let { inputId: e2, ...u2 } = m2.source;
2966
2982
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
2967
2983
  }
2968
- if ("root" === m2.type) return new Gr(m2);
2969
- if ("decl" === m2.type) return new Br(m2);
2970
- if ("rule" === m2.type) return new Vr(m2);
2971
- if ("comment" === m2.type) return new Ur(m2);
2972
- if ("atrule" === m2.type) return new Fr(m2);
2984
+ if ("root" === m2.type) return new Hr(m2);
2985
+ if ("decl" === m2.type) return new Gr(m2);
2986
+ if ("rule" === m2.type) return new Zr(m2);
2987
+ if ("comment" === m2.type) return new jr(m2);
2988
+ if ("atrule" === m2.type) return new $r(m2);
2973
2989
  throw new Error("Unknown node type: " + e.type);
2974
2990
  }
2975
- var qr = Ze;
2991
+ var Kr = Ze;
2976
2992
  Ze.default = Ze;
2977
- let { dirname: Hr, relative: Zr, resolve: Kr, sep: Jr } = Ft, { SourceMapConsumer: Yr, SourceMapGenerator: Xr } = Ft, { pathToFileURL: Qr } = Ft, eo = fr, to = !(!Yr || !Xr), oo = !!(Hr && Kr && Zr && Jr);
2978
- var io = class {
2993
+ 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);
2994
+ var co = class {
2979
2995
  constructor(e, a, u, m2) {
2980
2996
  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();
2981
2997
  }
@@ -2987,8 +3003,8 @@ var io = class {
2987
3003
  }
2988
3004
  applyPrevMaps() {
2989
3005
  for (let e of this.previous()) {
2990
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Hr(e.file);
2991
- false === this.mapOpts.sourcesContent ? (a = new Yr(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
3006
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Jr(e.file);
3007
+ 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)));
2992
3008
  }
2993
3009
  }
2994
3010
  clearAnnotation() {
@@ -2998,7 +3014,7 @@ var io = class {
2998
3014
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
2999
3015
  }
3000
3016
  generate() {
3001
- if (this.clearAnnotation(), oo && to && this.isMap()) return this.generateMap();
3017
+ if (this.clearAnnotation(), lo && ao && this.isMap()) return this.generateMap();
3002
3018
  {
3003
3019
  let e = "";
3004
3020
  return this.stringify(this.root, (a) => {
@@ -3010,12 +3026,12 @@ var io = class {
3010
3026
  if (this.root) this.generateString();
3011
3027
  else if (1 === this.previous().length) {
3012
3028
  let e = this.previous()[0].consumer();
3013
- e.file = this.outputFile(), this.map = Xr.fromSourceMap(e, { ignoreInvalidMapping: true });
3014
- } else this.map = new Xr({ 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>" });
3029
+ e.file = this.outputFile(), this.map = to.fromSourceMap(e, { ignoreInvalidMapping: true });
3030
+ } 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>" });
3015
3031
  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];
3016
3032
  }
3017
3033
  generateString() {
3018
- this.css = "", this.map = new Xr({ file: this.outputFile(), ignoreInvalidMapping: true });
3034
+ this.css = "", this.map = new to({ file: this.outputFile(), ignoreInvalidMapping: true });
3019
3035
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
3020
3036
  this.stringify(this.root, (C2, x2, I2) => {
3021
3037
  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) {
@@ -3045,9 +3061,9 @@ var io = class {
3045
3061
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
3046
3062
  let a = this.memoizedPaths.get(e);
3047
3063
  if (a) return a;
3048
- let u = this.opts.to ? Hr(this.opts.to) : ".";
3049
- "string" == typeof this.mapOpts.annotation && (u = Hr(Kr(u, this.mapOpts.annotation)));
3050
- let m2 = Zr(u, e);
3064
+ let u = this.opts.to ? Jr(this.opts.to) : ".";
3065
+ "string" == typeof this.mapOpts.annotation && (u = Jr(Xr(u, this.mapOpts.annotation)));
3066
+ let m2 = Yr(u, e);
3051
3067
  return this.memoizedPaths.set(e, m2), m2;
3052
3068
  }
3053
3069
  previous() {
@@ -3058,7 +3074,7 @@ var io = class {
3058
3074
  }
3059
3075
  });
3060
3076
  else {
3061
- let e = new eo(this.originalCSS, this.opts);
3077
+ let e = new io(this.originalCSS, this.opts);
3062
3078
  e.map && this.previousMaps.push(e.map);
3063
3079
  }
3064
3080
  return this.previousMaps;
@@ -3089,8 +3105,8 @@ var io = class {
3089
3105
  toFileUrl(e) {
3090
3106
  let a = this.memoizedFileURLs.get(e);
3091
3107
  if (a) return a;
3092
- if (Qr) {
3093
- let a2 = Qr(e).toString();
3108
+ if (oo) {
3109
+ let a2 = oo(e).toString();
3094
3110
  return this.memoizedFileURLs.set(e, a2), a2;
3095
3111
  }
3096
3112
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -3098,13 +3114,13 @@ var io = class {
3098
3114
  toUrl(e) {
3099
3115
  let a = this.memoizedURLs.get(e);
3100
3116
  if (a) return a;
3101
- "\\" === Jr && (e = e.replace(/\\/g, "/"));
3117
+ "\\" === Qr && (e = e.replace(/\\/g, "/"));
3102
3118
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
3103
3119
  return this.memoizedURLs.set(e, u), u;
3104
3120
  }
3105
3121
  };
3106
- const ao = /[\t\n\f\r "#'()/;[\\\]{}]/g, lo = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, co = /.[\r\n"'(/\\]/, uo = /[\da-f]/i;
3107
- let ho = Rn, Mo = un, _o = hn, Ao = Sr, No = Dr, Xa = function(e, a = {}) {
3122
+ const uo = /[\t\n\f\r "#'()/;[\\\]{}]/g, ho = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Mo = /.[\r\n"'(/\\]/, _o = /[\da-f]/i;
3123
+ let Ao = Nn, No = hn, Po = gn, Do = Tr, Fo = Br, Xa = function(e, a = {}) {
3108
3124
  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 = [];
3109
3125
  function y2(a2) {
3110
3126
  throw e.error("Unclosed " + a2, B2);
@@ -3154,7 +3170,7 @@ let ho = Rn, Mo = un, _o = hn, Ao = Sr, No = Dr, Xa = function(e, a = {}) {
3154
3170
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
3155
3171
  } while (I2);
3156
3172
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3157
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || co.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3173
+ } 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);
3158
3174
  break;
3159
3175
  case 39:
3160
3176
  case 34:
@@ -3172,31 +3188,31 @@ let ho = Rn, Mo = un, _o = hn, Ao = Sr, No = Dr, Xa = function(e, a = {}) {
3172
3188
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3173
3189
  break;
3174
3190
  case 64:
3175
- ao.lastIndex = B2 + 1, ao.test(D2), b2 = 0 === ao.lastIndex ? D2.length - 1 : ao.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3191
+ 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;
3176
3192
  break;
3177
3193
  case 92:
3178
3194
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
3179
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, uo.test(D2.charAt(b2)))) {
3180
- for (; uo.test(D2.charAt(b2 + 1)); ) b2 += 1;
3195
+ 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)))) {
3196
+ for (; _o.test(D2.charAt(b2 + 1)); ) b2 += 1;
3181
3197
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
3182
3198
  }
3183
3199
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3184
3200
  break;
3185
3201
  default:
3186
- 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) : (lo.lastIndex = B2 + 1, lo.test(D2), b2 = 0 === lo.lastIndex ? D2.length - 1 : lo.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3202
+ 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);
3187
3203
  }
3188
3204
  return B2++, x2;
3189
3205
  }, position: function S() {
3190
3206
  return B2;
3191
3207
  } };
3192
3208
  };
3193
- const Po = { empty: true, space: true };
3194
- var Do = class {
3209
+ const Uo = { empty: true, space: true };
3210
+ var $o = class {
3195
3211
  constructor(e) {
3196
- this.input = e, this.root = new Ao(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
3212
+ 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 } };
3197
3213
  }
3198
3214
  atrule(e) {
3199
- let a = new ho();
3215
+ let a = new Ao();
3200
3216
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
3201
3217
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
3202
3218
  for (; !this.tokenizer.endOfFile(); ) {
@@ -3248,7 +3264,7 @@ var Do = class {
3248
3264
  return false;
3249
3265
  }
3250
3266
  comment(e) {
3251
- let a = new Mo();
3267
+ let a = new No();
3252
3268
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
3253
3269
  let u = e[1].slice(2, -2);
3254
3270
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -3261,7 +3277,7 @@ var Do = class {
3261
3277
  this.tokenizer = Xa(this.input);
3262
3278
  }
3263
3279
  decl(e, a) {
3264
- let u = new _o();
3280
+ let u = new Po();
3265
3281
  this.init(u, e[0][2]);
3266
3282
  let m2, w2 = e[e.length - 1];
3267
3283
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Ha(e2) {
@@ -3310,7 +3326,7 @@ var Do = class {
3310
3326
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
3311
3327
  }
3312
3328
  emptyRule(e) {
3313
- let a = new No();
3329
+ let a = new Fo();
3314
3330
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
3315
3331
  }
3316
3332
  end(e) {
@@ -3386,7 +3402,7 @@ var Do = class {
3386
3402
  }
3387
3403
  raw(e, a, u, m2) {
3388
3404
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
3389
- 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", Po[x2] || Po[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3405
+ 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;
3390
3406
  if (!O2) {
3391
3407
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
3392
3408
  e.raws[a] = { raw: m3, value: _2 };
@@ -3395,7 +3411,7 @@ var Do = class {
3395
3411
  }
3396
3412
  rule(e) {
3397
3413
  e.pop();
3398
- let a = new No();
3414
+ let a = new Fo();
3399
3415
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
3400
3416
  }
3401
3417
  spacesAndCommentsFromEnd(e) {
@@ -3435,9 +3451,9 @@ var Do = class {
3435
3451
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
3436
3452
  }
3437
3453
  };
3438
- let Fo = On, Uo = fr, $o = Do;
3454
+ let jo = Rn, Go = yr, Vo = $o;
3439
3455
  function _t(e, a) {
3440
- let u = new Uo(e, a), m2 = new $o(u);
3456
+ let u = new Go(e, a), m2 = new Vo(u);
3441
3457
  try {
3442
3458
  m2.parse();
3443
3459
  } catch (e2) {
@@ -3445,9 +3461,9 @@ function _t(e, a) {
3445
3461
  }
3446
3462
  return m2.root;
3447
3463
  }
3448
- var jo = _t;
3449
- _t.default = _t, Fo.registerParse(_t);
3450
- let Go = class {
3464
+ var qo = _t;
3465
+ _t.default = _t, jo.registerParse(_t);
3466
+ let Ho = class {
3451
3467
  constructor(e, a = {}) {
3452
3468
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
3453
3469
  let e2 = a.node.rangeBy(a);
@@ -3459,9 +3475,9 @@ let Go = class {
3459
3475
  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;
3460
3476
  }
3461
3477
  };
3462
- var Vo = Go;
3463
- Go.default = Go;
3464
- let qo = Vo, Ho = class {
3478
+ var Zo = Ho;
3479
+ Ho.default = Ho;
3480
+ let Ko = Zo, Jo = class {
3465
3481
  get content() {
3466
3482
  return this.css;
3467
3483
  }
@@ -3473,26 +3489,26 @@ let qo = Vo, Ho = class {
3473
3489
  }
3474
3490
  warn(e, a = {}) {
3475
3491
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
3476
- let u = new qo(e, a);
3492
+ let u = new Ko(e, a);
3477
3493
  return this.messages.push(u), u;
3478
3494
  }
3479
3495
  warnings() {
3480
3496
  return this.messages.filter((e) => "warning" === e.type);
3481
3497
  }
3482
3498
  };
3483
- var Zo = Ho;
3484
- Ho.default = Ho;
3485
- let Ko = {};
3499
+ var Yo = Jo;
3500
+ Jo.default = Jo;
3501
+ let Xo = {};
3486
3502
  var so = function(e) {
3487
- Ko[e] || (Ko[e] = true, typeof console < "u" && console.warn && console.warn(e));
3503
+ Xo[e] || (Xo[e] = true, typeof console < "u" && console.warn && console.warn(e));
3488
3504
  };
3489
- let Jo = On, Yo = Dn, Xo = io, Qo = jo, es = Zo, ts = Sr, ns = Xt, { isClean: rs, my: os } = Qt, ss = so;
3490
- const is = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, as = { 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 }, ls = { Once: true, postcssPlugin: true, prepare: true };
3505
+ let Qo = Rn, es = Bn, ts = co, ns = qo, rs = Yo, os = Tr, ss = tn, { isClean: is, my: as } = nn, ls = so;
3506
+ 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 };
3491
3507
  function Ne(e) {
3492
3508
  return "object" == typeof e && "function" == typeof e.then;
3493
3509
  }
3494
3510
  function no(e) {
3495
- let a = false, u = is[e.type];
3511
+ let a = false, u = cs[e.type];
3496
3512
  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"];
3497
3513
  }
3498
3514
  function Gn(e) {
@@ -3500,9 +3516,9 @@ function Gn(e) {
3500
3516
  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: [] };
3501
3517
  }
3502
3518
  function Ps(e) {
3503
- return e[rs] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3519
+ return e[is] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3504
3520
  }
3505
- let cs = {}, us = class ro {
3521
+ let ds = {}, hs = class ro {
3506
3522
  get content() {
3507
3523
  return this.stringify().content;
3508
3524
  }
@@ -3529,19 +3545,19 @@ let cs = {}, us = class ro {
3529
3545
  }
3530
3546
  constructor(e, a, u) {
3531
3547
  let m2;
3532
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof ro || a instanceof es) m2 = Ps(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
3548
+ 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);
3533
3549
  else {
3534
- let e2 = Qo;
3550
+ let e2 = ns;
3535
3551
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
3536
3552
  try {
3537
3553
  m2 = e2(a, u);
3538
3554
  } catch (e3) {
3539
3555
  this.processed = true, this.error = e3;
3540
3556
  }
3541
- m2 && !m2[os] && Jo.rebuild(m2);
3557
+ m2 && !m2[as] && Qo.rebuild(m2);
3542
3558
  }
3543
3559
  else m2 = Ps(a);
3544
- this.result = new es(e, m2, u), this.helpers = { ...cs, postcss: cs, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
3560
+ 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);
3545
3561
  }
3546
3562
  async() {
3547
3563
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -3575,8 +3591,8 @@ let cs = {}, us = class ro {
3575
3591
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
3576
3592
  };
3577
3593
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
3578
- if (!as[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3579
- if (!ls[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3594
+ if (!us[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3595
+ if (!ps[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3580
3596
  else "function" == typeof e[a] && t(e, a, e[a]);
3581
3597
  }
3582
3598
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -3593,8 +3609,8 @@ let cs = {}, us = class ro {
3593
3609
  }
3594
3610
  if (this.prepareVisitors(), this.hasListener) {
3595
3611
  let e = this.result.root;
3596
- for (; !e[rs]; ) {
3597
- e[rs] = true;
3612
+ for (; !e[is]; ) {
3613
+ e[is] = true;
3598
3614
  let a = [Gn(e)];
3599
3615
  for (; a.length > 0; ) {
3600
3616
  let e2 = this.visitTick(a);
@@ -3639,9 +3655,9 @@ let cs = {}, us = class ro {
3639
3655
  if (this.error) throw this.error;
3640
3656
  if (this.stringified) return this.result;
3641
3657
  this.stringified = true, this.sync();
3642
- let e = this.result.opts, a = ns;
3658
+ let e = this.result.opts, a = ss;
3643
3659
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
3644
- let u = new Xo(a, this.result.root, this.result.opts).generate();
3660
+ let u = new ts(a, this.result.root, this.result.opts).generate();
3645
3661
  return this.result.css = u[0], this.result.map = u[1], this.result;
3646
3662
  }
3647
3663
  sync() {
@@ -3653,14 +3669,14 @@ let cs = {}, us = class ro {
3653
3669
  }
3654
3670
  if (this.prepareVisitors(), this.hasListener) {
3655
3671
  let e = this.result.root;
3656
- for (; !e[rs]; ) e[rs] = true, this.walkSync(e);
3672
+ for (; !e[is]; ) e[is] = true, this.walkSync(e);
3657
3673
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
3658
3674
  else this.visitSync(this.listeners.OnceExit, e);
3659
3675
  }
3660
3676
  return this.result;
3661
3677
  }
3662
3678
  then(e, a) {
3663
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || ss("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);
3679
+ 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);
3664
3680
  }
3665
3681
  toString() {
3666
3682
  return this.css;
@@ -3692,22 +3708,22 @@ let cs = {}, us = class ro {
3692
3708
  }
3693
3709
  if (0 !== a.iterator) {
3694
3710
  let m3, w3 = a.iterator;
3695
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[rs]) return m3[rs] = true, void e.push(Gn(m3));
3711
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[is]) return m3[is] = true, void e.push(Gn(m3));
3696
3712
  a.iterator = 0, delete u.indexes[w3];
3697
3713
  }
3698
3714
  let w2 = a.events;
3699
3715
  for (; a.eventIndex < w2.length; ) {
3700
3716
  let e2 = w2[a.eventIndex];
3701
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[rs] = true, a.iterator = u.getIterator()));
3717
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[is] = true, a.iterator = u.getIterator()));
3702
3718
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
3703
3719
  }
3704
3720
  e.pop();
3705
3721
  }
3706
3722
  walkSync(e) {
3707
- e[rs] = true;
3723
+ e[is] = true;
3708
3724
  let a = no(e);
3709
3725
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
3710
- e2[rs] || this.walkSync(e2);
3726
+ e2[is] || this.walkSync(e2);
3711
3727
  });
3712
3728
  else {
3713
3729
  let a2 = this.listeners[u];
@@ -3718,14 +3734,14 @@ let cs = {}, us = class ro {
3718
3734
  return this.sync().warnings();
3719
3735
  }
3720
3736
  };
3721
- us.registerPostcss = (e) => {
3722
- cs = e;
3737
+ hs.registerPostcss = (e) => {
3738
+ ds = e;
3723
3739
  };
3724
- var ps = us;
3725
- us.default = us, ts.registerLazyResult(us), Yo.registerLazyResult(us);
3726
- let ds = io, hs = jo;
3727
- const ms = Zo;
3728
- let gs = Xt, ys = so, ws = class {
3740
+ var ms = hs;
3741
+ hs.default = hs, os.registerLazyResult(hs), es.registerLazyResult(hs);
3742
+ let gs = co, ys = qo;
3743
+ const ws = Yo;
3744
+ let Ss = tn, bs = so, vs = class {
3729
3745
  get content() {
3730
3746
  return this.result.css;
3731
3747
  }
@@ -3746,7 +3762,7 @@ let gs = Xt, ys = so, ws = class {
3746
3762
  }
3747
3763
  get root() {
3748
3764
  if (this._root) return this._root;
3749
- let e, a = hs;
3765
+ let e, a = ys;
3750
3766
  try {
3751
3767
  e = a(this._css, this._opts);
3752
3768
  } catch (e2) {
@@ -3760,11 +3776,11 @@ let gs = Xt, ys = so, ws = class {
3760
3776
  }
3761
3777
  constructor(e, a, u) {
3762
3778
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
3763
- let m2, w2 = gs;
3764
- this.result = new ms(this._processor, m2, this._opts), this.result.css = a;
3779
+ let m2, w2 = Ss;
3780
+ this.result = new ws(this._processor, m2, this._opts), this.result.css = a;
3765
3781
  let b2 = this;
3766
3782
  Object.defineProperty(this.result, "root", { get: () => b2.root });
3767
- let C2 = new ds(w2, m2, this._opts, a);
3783
+ let C2 = new gs(w2, m2, this._opts, a);
3768
3784
  if (C2.isMap()) {
3769
3785
  let [e2, a2] = C2.generate();
3770
3786
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -3784,7 +3800,7 @@ let gs = Xt, ys = so, ws = class {
3784
3800
  return this.result;
3785
3801
  }
3786
3802
  then(e, a) {
3787
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || ys("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);
3803
+ 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);
3788
3804
  }
3789
3805
  toString() {
3790
3806
  return this._css;
@@ -3793,9 +3809,9 @@ let gs = Xt, ys = so, ws = class {
3793
3809
  return [];
3794
3810
  }
3795
3811
  };
3796
- var Ss = ws;
3797
- ws.default = ws;
3798
- let bs = Dn, vs = ps, xs = Ss, Ms = Sr, Is = class {
3812
+ var xs = vs;
3813
+ vs.default = vs;
3814
+ let Ms = Bn, Is = ms, _s = xs, Os = Tr, Es = class {
3799
3815
  constructor(e = []) {
3800
3816
  this.version = "8.5.3", this.plugins = this.normalize(e);
3801
3817
  }
@@ -3811,43 +3827,43 @@ let bs = Dn, vs = ps, xs = Ss, Ms = Sr, Is = class {
3811
3827
  return a;
3812
3828
  }
3813
3829
  process(e, a = {}) {
3814
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new vs(this, e, a) : new xs(this, e, a);
3830
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new Is(this, e, a) : new _s(this, e, a);
3815
3831
  }
3816
3832
  use(e) {
3817
3833
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
3818
3834
  }
3819
3835
  };
3820
- var _s = Is;
3821
- Is.default = Is, Ms.registerProcessor(Is), bs.registerProcessor(Is);
3822
- let Os = Rn, Es = un, Ls = On, Rs = jt, As = hn, Ts = Dn, Ns = qr, $s = fr, Ws = ps, js = Ar, Gs = an, Vs = jo, qs = _s, Hs = Zo, Zs = Sr, Ks = Dr, Ys = Xt, Xs = Vo;
3836
+ var Ls = Es;
3837
+ Es.default = Es, Os.registerProcessor(Es), Ms.registerProcessor(Es);
3838
+ 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;
3823
3839
  function L$1(...e) {
3824
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new qs(e);
3840
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Ks(e);
3825
3841
  }
3826
3842
  L$1.plugin = function(e, a) {
3827
3843
  let u, m2 = false;
3828
3844
  function n(...u2) {
3829
3845
  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"));
3830
3846
  let w2 = a(...u2);
3831
- return w2.postcssPlugin = e, w2.postcssVersion = new qs().version, w2;
3847
+ return w2.postcssPlugin = e, w2.postcssVersion = new Ks().version, w2;
3832
3848
  }
3833
3849
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
3834
3850
  return L$1([n(u2)]).process(e2, a2);
3835
3851
  }, n;
3836
- }, L$1.stringify = Ys, L$1.parse = Vs, L$1.fromJSON = Ns, L$1.list = js, L$1.comment = (e) => new Es(e), L$1.atRule = (e) => new Os(e), L$1.decl = (e) => new As(e), L$1.rule = (e) => new Ks(e), L$1.root = (e) => new Zs(e), L$1.document = (e) => new Ts(e), L$1.CssSyntaxError = Rs, L$1.Declaration = As, L$1.Container = Ls, L$1.Processor = qs, L$1.Document = Ts, L$1.Comment = Es, L$1.Warning = Xs, L$1.AtRule = Os, L$1.Result = Hs, L$1.Input = $s, L$1.Rule = Ks, L$1.Root = Zs, L$1.Node = Gs, Ws.registerPostcss(L$1);
3837
- var Qs = L$1;
3852
+ }, 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);
3853
+ var si = L$1;
3838
3854
  L$1.default = L$1;
3839
- const ei = Yi(Qs);
3840
- ei.stringify, ei.fromJSON, ei.plugin, ei.parse, ei.list, ei.document, ei.comment, ei.atRule, ei.rule, ei.decl, ei.root, ei.CssSyntaxError, ei.Declaration, ei.Container, ei.Processor, ei.Document, ei.Comment, ei.Warning, ei.AtRule, ei.Result, ei.Input, ei.Rule, ei.Root, ei.Node;
3841
- var ti = ((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))(ti || {}), si = ((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))(si || {}), ii = ((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))(ii || {}), ai = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(ai || {}), li = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(li || {}), ci = ((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))(ci || {});
3855
+ const ii = Yi(si);
3856
+ 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;
3857
+ 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 || {});
3842
3858
  function G(e, a, u = document) {
3843
3859
  const m2 = { capture: true, passive: true };
3844
3860
  return u.addEventListener(e, a, m2), () => u.removeEventListener(e, a, m2);
3845
3861
  }
3846
- const ui = "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.";
3847
- let pi = { map: {}, getId: () => (console.error(ui), -1), getNode: () => (console.error(ui), null), removeNodeFromMap() {
3848
- console.error(ui);
3849
- }, has: () => (console.error(ui), false), reset() {
3850
- console.error(ui);
3862
+ 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.";
3863
+ let fi = { map: {}, getId: () => (console.error(hi), -1), getNode: () => (console.error(hi), null), removeNodeFromMap() {
3864
+ console.error(hi);
3865
+ }, has: () => (console.error(hi), false), reset() {
3866
+ console.error(hi);
3851
3867
  } };
3852
3868
  function $e(e, a, u = {}) {
3853
3869
  let m2 = null, w2 = 0;
@@ -3881,8 +3897,8 @@ function Re(e, a, u) {
3881
3897
  };
3882
3898
  }
3883
3899
  }
3884
- typeof window < "u" && window.Proxy && window.Reflect && (pi = new Proxy(pi, { get: (e, a, u) => ("map" === a && console.error(ui), Reflect.get(e, a, u)) }));
3885
- let di, hi = Date.now;
3900
+ 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)) }));
3901
+ let mi, gi = Date.now;
3886
3902
  function po(e) {
3887
3903
  var a, u, m2, w2, b2, C2;
3888
3904
  const x2 = e.document;
@@ -3929,7 +3945,7 @@ function bo(e, a) {
3929
3945
  function Fs(e) {
3930
3946
  return !(null == e || !e.shadowRoot);
3931
3947
  }
3932
- /[1-9][0-9]{12}/.test(Date.now().toString()) || (hi = () => (/* @__PURE__ */ new Date()).getTime());
3948
+ /[1-9][0-9]{12}/.test(Date.now().toString()) || (gi = () => (/* @__PURE__ */ new Date()).getTime());
3933
3949
  class _l {
3934
3950
  constructor() {
3935
3951
  b$1(this, "id", 1), b$1(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), b$1(this, "idStyleMap", /* @__PURE__ */ new Map());
@@ -3974,11 +3990,11 @@ function vo(e) {
3974
3990
  const a = e.ownerDocument;
3975
3991
  return !!a && (a.contains(e) || zl(e));
3976
3992
  }
3977
- const M = (e) => di ? (...a) => {
3993
+ const M = (e) => mi ? (...a) => {
3978
3994
  try {
3979
3995
  return e(...a);
3980
3996
  } catch (e2) {
3981
- if (di && true === di(e2)) return;
3997
+ if (mi && true === mi(e2)) return;
3982
3998
  throw e2;
3983
3999
  }
3984
4000
  } : e;
@@ -4037,22 +4053,22 @@ class Vl {
4037
4053
  transformCrossOriginEvent(e, a) {
4038
4054
  var u;
4039
4055
  switch (a.type) {
4040
- case ti.FullSnapshot: {
4056
+ case ai.FullSnapshot: {
4041
4057
  this.crossOriginIframeMirror.reset(e), this.crossOriginIframeStyleMirror.reset(e), this.replaceIdOnNode(a.data.node, e);
4042
4058
  const u2 = a.data.node.id;
4043
- return this.crossOriginIframeRootIdMap.set(e, u2), this.patchRootIdOnNode(a.data.node, u2), { timestamp: a.timestamp, type: ti.IncrementalSnapshot, data: { source: si.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, node: a.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4059
+ 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 } };
4044
4060
  }
4045
- case ti.Meta:
4046
- case ti.Load:
4047
- case ti.DomContentLoaded:
4061
+ case ai.Meta:
4062
+ case ai.Load:
4063
+ case ai.DomContentLoaded:
4048
4064
  return false;
4049
- case ti.Plugin:
4065
+ case ai.Plugin:
4050
4066
  return a;
4051
- case ti.Custom:
4067
+ case ai.Custom:
4052
4068
  return this.replaceIds(a.data.payload, e, ["id", "parentId", "previousId", "nextId"]), a;
4053
- case ti.IncrementalSnapshot:
4069
+ case ai.IncrementalSnapshot:
4054
4070
  switch (a.data.source) {
4055
- case si.Mutation:
4071
+ case li.Mutation:
4056
4072
  return a.data.adds.forEach((a2) => {
4057
4073
  this.replaceIds(a2, e, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(a2.node, e);
4058
4074
  const u2 = this.crossOriginIframeRootIdMap.get(e);
@@ -4064,30 +4080,30 @@ class Vl {
4064
4080
  }), a.data.texts.forEach((a2) => {
4065
4081
  this.replaceIds(a2, e, ["id"]);
4066
4082
  }), a;
4067
- case si.Drag:
4068
- case si.TouchMove:
4069
- case si.MouseMove:
4083
+ case li.Drag:
4084
+ case li.TouchMove:
4085
+ case li.MouseMove:
4070
4086
  return a.data.positions.forEach((a2) => {
4071
4087
  this.replaceIds(a2, e, ["id"]);
4072
4088
  }), a;
4073
- case si.ViewportResize:
4089
+ case li.ViewportResize:
4074
4090
  return false;
4075
- case si.MediaInteraction:
4076
- case si.MouseInteraction:
4077
- case si.Scroll:
4078
- case si.CanvasMutation:
4079
- case si.Input:
4091
+ case li.MediaInteraction:
4092
+ case li.MouseInteraction:
4093
+ case li.Scroll:
4094
+ case li.CanvasMutation:
4095
+ case li.Input:
4080
4096
  return this.replaceIds(a.data, e, ["id"]), a;
4081
- case si.StyleSheetRule:
4082
- case si.StyleDeclaration:
4097
+ case li.StyleSheetRule:
4098
+ case li.StyleDeclaration:
4083
4099
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleId"]), a;
4084
- case si.Font:
4100
+ case li.Font:
4085
4101
  return a;
4086
- case si.Selection:
4102
+ case li.Selection:
4087
4103
  return a.data.ranges.forEach((a2) => {
4088
4104
  this.replaceIds(a2, e, ["start", "end"]);
4089
4105
  }), a;
4090
- case si.AdoptedStyleSheet:
4106
+ case li.AdoptedStyleSheet:
4091
4107
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleIds"]), null == (u = a.data.styles) || u.forEach((a2) => {
4092
4108
  this.replaceStyleIds(a2, e, ["styleId"]);
4093
4109
  }), a;
@@ -4111,7 +4127,7 @@ class Vl {
4111
4127
  });
4112
4128
  }
4113
4129
  patchRootIdOnNode(e, a) {
4114
- e.type !== dt.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4130
+ e.type !== yt.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4115
4131
  this.patchRootIdOnNode(e2, a);
4116
4132
  });
4117
4133
  }
@@ -4329,7 +4345,7 @@ function ko(e, a) {
4329
4345
  const { parentNode: u } = a;
4330
4346
  return !!u && (!!e.has(u) || ko(e, u));
4331
4347
  }
4332
- const fi = [];
4348
+ const yi = [];
4333
4349
  function tt(e) {
4334
4350
  try {
4335
4351
  if ("composedPath" in e) {
@@ -4343,7 +4359,7 @@ function tt(e) {
4343
4359
  function Co(e, a) {
4344
4360
  var u, m2;
4345
4361
  const w2 = new Zl();
4346
- fi.push(w2), w2.init(e);
4362
+ yi.push(w2), w2.init(e);
4347
4363
  let b2 = window.MutationObserver || window.__rrMutationObserver;
4348
4364
  const C2 = null == (m2 = null == (u = null == window ? void 0 : window.Zone) ? void 0 : u.__symbol__) ? void 0 : m2.call(u, "MutationObserver");
4349
4365
  C2 && window[C2] && (b2 = window[C2]);
@@ -4355,7 +4371,7 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4355
4371
  };
4356
4372
  const C2 = true === b2.mouseInteraction || void 0 === b2.mouseInteraction ? {} : b2.mouseInteraction, x2 = [];
4357
4373
  let I2 = null;
4358
- return Object.keys(ii).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4374
+ return Object.keys(ci).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4359
4375
  let C3 = fe(b3);
4360
4376
  const _2 = /* @__PURE__ */ ((a2) => (b4) => {
4361
4377
  const C4 = tt(b4);
@@ -4364,29 +4380,29 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4364
4380
  if ("pointerType" in b4) {
4365
4381
  switch (b4.pointerType) {
4366
4382
  case "mouse":
4367
- x3 = ai.Mouse;
4383
+ x3 = ui.Mouse;
4368
4384
  break;
4369
4385
  case "touch":
4370
- x3 = ai.Touch;
4386
+ x3 = ui.Touch;
4371
4387
  break;
4372
4388
  case "pen":
4373
- x3 = ai.Pen;
4389
+ x3 = ui.Pen;
4374
4390
  }
4375
- x3 === ai.Touch ? ii[a2] === ii.MouseDown ? _3 = "TouchStart" : ii[a2] === ii.MouseUp && (_3 = "TouchEnd") : ai.Pen;
4376
- } else Ds(b4) && (x3 = ai.Touch);
4377
- null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === ai.Touch || _3.startsWith("Mouse") && x3 === ai.Mouse) && (x3 = null)) : ii[a2] === ii.Click && (x3 = I2, I2 = null);
4391
+ x3 === ui.Touch ? ci[a2] === ci.MouseDown ? _3 = "TouchStart" : ci[a2] === ci.MouseUp && (_3 = "TouchEnd") : ui.Pen;
4392
+ } else Ds(b4) && (x3 = ui.Touch);
4393
+ 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);
4378
4394
  const O2 = Ds(b4) ? b4.changedTouches[0] : b4;
4379
4395
  if (!O2) return;
4380
4396
  const E2 = u.getId(C4), { clientX: D2, clientY: F2 } = O2;
4381
- M(e)({ type: ii[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4397
+ M(e)({ type: ci[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4382
4398
  })(b3);
4383
- if (window.PointerEvent) switch (ii[b3]) {
4384
- case ii.MouseDown:
4385
- case ii.MouseUp:
4399
+ if (window.PointerEvent) switch (ci[b3]) {
4400
+ case ci.MouseDown:
4401
+ case ci.MouseUp:
4386
4402
  C3 = C3.replace("mouse", "pointer");
4387
4403
  break;
4388
- case ii.TouchStart:
4389
- case ii.TouchEnd:
4404
+ case ci.TouchStart:
4405
+ case ci.TouchEnd:
4390
4406
  return;
4391
4407
  }
4392
4408
  x2.push(G(C3, _2, a));
@@ -4405,7 +4421,7 @@ function xo({ scrollCb: e, doc: a, mirror: u, blockClass: m2, blockSelector: w2,
4405
4421
  } else e({ id: x2, x: C2.scrollLeft, y: C2.scrollTop });
4406
4422
  }), b2.scroll || 100)), a);
4407
4423
  }
4408
- const mi = ["INPUT", "TEXTAREA", "SELECT"], gi = /* @__PURE__ */ new WeakMap();
4424
+ const Mi = ["INPUT", "TEXTAREA", "SELECT"], Ii = /* @__PURE__ */ new WeakMap();
4409
4425
  function ql({ deviceChangeCb: e }) {
4410
4426
  const t = (a2, u2) => {
4411
4427
  const m2 = a2.device.productName ? [a2.device.productName] : ["Unknown USB Device"];
@@ -4525,7 +4541,7 @@ function au(e, a = {}) {
4525
4541
  e2(x3.map((e3) => (e3.timeOffset -= u3, e3)), a3), x3 = [], C3 = null;
4526
4542
  }), b3), _3 = M($e(M((e3) => {
4527
4543
  const a3 = tt(e3), { clientX: u3, clientY: w4 } = Ds(e3) ? e3.changedTouches[0] : e3;
4528
- C3 || (C3 = hi()), x3.push({ x: u3, y: w4, id: m3.getId(a3), timeOffset: hi() - C3 }), I3(typeof DragEvent < "u" && e3 instanceof DragEvent ? si.Drag : e3 instanceof MouseEvent ? si.MouseMove : si.TouchMove);
4544
+ 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);
4529
4545
  }), w3, { trailing: false })), O3 = [G("mousemove", _3, u2), G("touchmove", _3, u2), G("drag", _3, u2)];
4530
4546
  return M(() => {
4531
4547
  O3.forEach((e3) => e3());
@@ -4541,7 +4557,7 @@ function au(e, a = {}) {
4541
4557
  function p(e3) {
4542
4558
  let u3 = tt(e3);
4543
4559
  const _4 = e3.isTrusted, E4 = u3 && u3.tagName;
4544
- 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;
4560
+ 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;
4545
4561
  let D4 = u3.value, F4 = false;
4546
4562
  const U4 = Yt(u3) || "", { value: B2, masked: $2 } = Zt({ element: u3, maskInputOptions: x3, tagName: E4, type: U4, value: D4, maskInputFn: I3 });
4547
4563
  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 });
@@ -4554,9 +4570,9 @@ function au(e, a = {}) {
4554
4570
  });
4555
4571
  }
4556
4572
  function f2(a3, m4) {
4557
- const w4 = gi.get(a3);
4573
+ const w4 = Ii.get(a3);
4558
4574
  if (!w4 || w4.text !== m4.text || w4.isChecked !== m4.isChecked || w4.masked !== m4.masked) {
4559
- gi.set(a3, m4);
4575
+ Ii.set(a3, m4);
4560
4576
  const w5 = u2.getId(a3);
4561
4577
  M(e2)({ ...m4, id: w5 });
4562
4578
  }
@@ -4581,7 +4597,7 @@ function au(e, a = {}) {
4581
4597
  const { value: e3, masked: a4 } = Zt({ element: w4, maskInputOptions: u2, tagName: x3, type: I3, value: _3, maskInputFn: m3 });
4582
4598
  _3 = e3, b3 = a4;
4583
4599
  }
4584
- e2({ source: si.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4600
+ e2({ source: li.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4585
4601
  var a4;
4586
4602
  const u3 = [];
4587
4603
  for (; e3; ) {
@@ -4609,7 +4625,7 @@ function au(e, a = {}) {
4609
4625
  if (!C4 || Z(C4, a2, u2, true)) return;
4610
4626
  const { currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 } = C4;
4611
4627
  e2({ type: b4, id: m3.getId(C4), currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 });
4612
- }), w3.media || 500)), x3 = [G("play", C3(ci.Play), b3), G("pause", C3(ci.Pause), b3), G("seeked", C3(ci.Seeked), b3), G("volumechange", C3(ci.VolumeChange), b3), G("ratechange", C3(ci.RateChange), b3)];
4628
+ }), 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)];
4613
4629
  return M(() => {
4614
4630
  x3.forEach((e3) => e3());
4615
4631
  });
@@ -4730,7 +4746,7 @@ function au(e, a = {}) {
4730
4746
  })(e), U2 = [];
4731
4747
  for (const a2 of e.plugins) U2.push(a2.observer(a2.callback, u, a2.options));
4732
4748
  return M(() => {
4733
- fi.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());
4749
+ 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());
4734
4750
  });
4735
4751
  }
4736
4752
  function ft(e) {
@@ -4739,29 +4755,29 @@ function ft(e) {
4739
4755
  function mt(e) {
4740
4756
  return !!(typeof window[e] < "u" && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype);
4741
4757
  }
4742
- const yi = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Mi = typeof self < "u" && self.Blob && new Blob([(Ii = yi, Uint8Array.from(atob(Ii), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4743
- var Ii;
4758
+ 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" });
4759
+ var Ai;
4744
4760
  function uu(e) {
4745
4761
  let a;
4746
4762
  try {
4747
- if (a = Mi && (self.URL || self.webkitURL).createObjectURL(Mi), !a) throw "";
4763
+ if (a = Ri && (self.URL || self.webkitURL).createObjectURL(Ri), !a) throw "";
4748
4764
  const u = new Worker(a, { name: null == e ? void 0 : e.name });
4749
4765
  return u.addEventListener("error", () => {
4750
4766
  (self.URL || self.webkitURL).revokeObjectURL(a);
4751
4767
  }), u;
4752
4768
  } catch {
4753
- return new Worker("data:text/javascript;base64," + yi, { name: null == e ? void 0 : e.name });
4769
+ return new Worker("data:text/javascript;base64," + Li, { name: null == e ? void 0 : e.name });
4754
4770
  } finally {
4755
4771
  a && (self.URL || self.webkitURL).revokeObjectURL(a);
4756
4772
  }
4757
4773
  }
4758
- for (var Li = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ri = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Ai = 0; Ai < 64; Ai++) Ri[Li.charCodeAt(Ai)] = Ai;
4759
- const Ti = /* @__PURE__ */ new Map();
4774
+ for (var Ti = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ni = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Pi = 0; Pi < 64; Pi++) Ni[Ti.charCodeAt(Pi)] = Pi;
4775
+ const qi = /* @__PURE__ */ new Map();
4760
4776
  const Oo = (e, a, u) => {
4761
4777
  if (!e || !Ro(e, a) && "object" != typeof e) return;
4762
4778
  const m2 = (function pu(e2, a2) {
4763
- let u2 = Ti.get(e2);
4764
- return u2 || (u2 = /* @__PURE__ */ new Map(), Ti.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4779
+ let u2 = qi.get(e2);
4780
+ return u2 || (u2 = /* @__PURE__ */ new Map(), qi.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4765
4781
  })(u, e.constructor.name);
4766
4782
  let w2 = m2.indexOf(e);
4767
4783
  return -1 === w2 && (w2 = m2.length, m2.push(e)), w2;
@@ -4773,7 +4789,7 @@ function Ot(e, a, u) {
4773
4789
  if (e instanceof ArrayBuffer) {
4774
4790
  const a2 = e.constructor.name, u2 = (function(e2) {
4775
4791
  var a3, u3 = new Uint8Array(e2), m2 = u3.length, w2 = "";
4776
- for (a3 = 0; a3 < m2; a3 += 3) w2 += Li[u3[a3] >> 2], w2 += Li[(3 & u3[a3]) << 4 | u3[a3 + 1] >> 4], w2 += Li[(15 & u3[a3 + 1]) << 2 | u3[a3 + 2] >> 6], w2 += Li[63 & u3[a3 + 2]];
4792
+ 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]];
4777
4793
  return m2 % 3 == 2 ? w2 = w2.substring(0, w2.length - 1) + "=" : m2 % 3 == 1 && (w2 = w2.substring(0, w2.length - 2) + "=="), w2;
4778
4794
  })(e);
4779
4795
  return { rr_type: a2, base64: u2 };
@@ -4870,7 +4886,7 @@ class gu {
4870
4886
  const { id: a2 } = e2.data;
4871
4887
  if (C2.set(a2, false), !("base64" in e2.data)) return;
4872
4888
  const { base64: u2, type: m3, width: w3, height: b3 } = e2.data;
4873
- this.mutationCb({ id: a2, type: li["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] }] });
4889
+ 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] }] });
4874
4890
  };
4875
4891
  const I2 = 1e3 / e;
4876
4892
  let _2, O2 = 0;
@@ -4906,14 +4922,14 @@ class gu {
4906
4922
  return function(...b5) {
4907
4923
  return Z(this.canvas, u2, m3, true) || setTimeout(() => {
4908
4924
  const u3 = Eo(b5, a2, this);
4909
- e2(this.canvas, { type: li["2D"], property: C2, args: u3 });
4925
+ e2(this.canvas, { type: pi["2D"], property: C2, args: u3 });
4910
4926
  }, 0), w4.apply(this, b5);
4911
4927
  };
4912
4928
  });
4913
4929
  w3.push(b4);
4914
4930
  } catch {
4915
4931
  const u3 = qt(a2.CanvasRenderingContext2D.prototype, C2, { set(a3) {
4916
- e2(this.canvas, { type: li["2D"], property: C2, args: [a3], setter: true });
4932
+ e2(this.canvas, { type: pi["2D"], property: C2, args: [a3], setter: true });
4917
4933
  } });
4918
4934
  w3.push(u3);
4919
4935
  }
@@ -4922,7 +4938,7 @@ class gu {
4922
4938
  };
4923
4939
  })(this.processMutation.bind(this), e, a, u), b2 = (function mu(e2, a2, u2, m3) {
4924
4940
  const w3 = [];
4925
- return w3.push(...tr(a2.WebGLRenderingContext.prototype, li.WebGL, e2, u2, m3, a2)), typeof a2.WebGL2RenderingContext < "u" && w3.push(...tr(a2.WebGL2RenderingContext.prototype, li.WebGL2, e2, u2, m3, a2)), () => {
4941
+ 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)), () => {
4926
4942
  w3.forEach((e3) => e3());
4927
4943
  };
4928
4944
  })(this.processMutation.bind(this), e, a, u);
@@ -5033,23 +5049,23 @@ class bu {
5033
5049
  trackStylesheetInLinkElement(e) {
5034
5050
  }
5035
5051
  }
5036
- let Ni, Pi, qi, Hi = false;
5037
- var Ji;
5052
+ let Hi, Ji, Xi, Qi = false;
5053
+ var ea;
5038
5054
  try {
5039
5055
  if (2 !== Array.from([1], (e) => 2 * e)[0]) {
5040
5056
  const e = document.createElement("iframe");
5041
- document.body.appendChild(e), Array.from = (null == (Ji = e.contentWindow) ? void 0 : Ji.Array.from) || Array.from, document.body.removeChild(e);
5057
+ document.body.appendChild(e), Array.from = (null == (ea = e.contentWindow) ? void 0 : ea.Array.from) || Array.from, document.body.removeChild(e);
5042
5058
  }
5043
- } catch (Ii2) {
5044
- console.debug("Unable to override Array.from", Ii2);
5059
+ } catch (Ai2) {
5060
+ console.debug("Unable to override Array.from", Ai2);
5045
5061
  }
5046
- const Xi = (function Ci() {
5047
- return new ht();
5062
+ const ta = (function Ci() {
5063
+ return new wt();
5048
5064
  })();
5049
5065
  function ae(e = {}) {
5050
5066
  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;
5051
5067
  !(function Bl(e2) {
5052
- di = e2;
5068
+ mi = e2;
5053
5069
  })(se2);
5054
5070
  const ie2 = !Y2 || window.parent === window;
5055
5071
  let le2 = false;
@@ -5061,7 +5077,7 @@ function ae(e = {}) {
5061
5077
  if (ie2 && !a) throw new Error("emit function is required");
5062
5078
  if (!ie2 && !le2) return () => {
5063
5079
  };
5064
- void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), Xi.reset();
5080
+ void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), ta.reset();
5065
5081
  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 || {};
5066
5082
  !(function Ul(e2 = window) {
5067
5083
  "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) => {
@@ -5078,57 +5094,57 @@ function ae(e = {}) {
5078
5094
  for (const a2 of ne2 || []) a2.eventProcessor && (e2 = a2.eventProcessor(e2));
5079
5095
  return z2 && !le2 && (e2 = z2(e2)), e2;
5080
5096
  };
5081
- Ni = (e2, w3) => {
5097
+ Hi = (e2, w3) => {
5082
5098
  var b3;
5083
5099
  const C3 = e2;
5084
- if (C3.timestamp = hi(), null != (b3 = fi[0]) && b3.isFrozen() && C3.type !== ti.FullSnapshot && !(C3.type === ti.IncrementalSnapshot && C3.data.source === si.Mutation) && fi.forEach((e3) => e3.unfreeze()), ie2) null == a || a(vn(C3), w3);
5100
+ 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);
5085
5101
  else if (le2) {
5086
5102
  const e3 = { type: "@sailfish-rrweb/rrweb", event: vn(C3), origin: window.location.origin, isCheckout: w3 };
5087
5103
  window.parent.postMessage(e3, "*");
5088
5104
  }
5089
- if (C3.type === ti.FullSnapshot) de2 = C3, he2 = 0;
5090
- else if (C3.type === ti.IncrementalSnapshot) {
5091
- if (C3.data.source === si.Mutation && C3.data.isAttachIframe) return;
5105
+ if (C3.type === ai.FullSnapshot) de2 = C3, he2 = 0;
5106
+ else if (C3.type === ai.IncrementalSnapshot) {
5107
+ if (C3.data.source === li.Mutation && C3.data.isAttachIframe) return;
5092
5108
  he2++;
5093
5109
  const e3 = m2 && he2 >= m2, a2 = u && C3.timestamp - de2.timestamp > u;
5094
- (e3 || a2) && Pi(true);
5110
+ (e3 || a2) && Ji(true);
5095
5111
  }
5096
5112
  };
5097
5113
  const rt = (e2) => {
5098
- Ni({ type: ti.IncrementalSnapshot, data: { source: si.Mutation, ...e2 } });
5099
- }, kn = (e2) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.Scroll, ...e2 } }), Cn = (e2) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.CanvasMutation, ...e2 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e2) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.AdoptedStyleSheet, ...e2 } }) }), ge2 = new Vl({ mirror: Xi, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Ni });
5100
- for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: Xi, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5114
+ Hi({ type: ai.IncrementalSnapshot, data: { source: li.Mutation, ...e2 } });
5115
+ }, 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 });
5116
+ for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: ta, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5101
5117
  const ye2 = new yu();
5102
- qi = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: Xi, sampling: j2.canvas, dataURLOptions: V2 });
5103
- 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: qi, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: Xi });
5104
- Pi = (e2 = false) => {
5118
+ Xi = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: ta, sampling: j2.canvas, dataURLOptions: V2 });
5119
+ 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 });
5120
+ Ji = (e2 = false) => {
5105
5121
  if (!H2) return;
5106
- Ni({ type: ti.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), fi.forEach((e3) => e3.lock());
5122
+ Hi({ type: ai.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), yi.forEach((e3) => e3.lock());
5107
5123
  const a2 = (function Zi(e3, a3) {
5108
- const { mirror: u2 = new ht(), 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 || {};
5124
+ 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 || {};
5109
5125
  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 });
5110
- })(document, { mirror: Xi, 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) => {
5111
- wo(e3, Xi) && ge2.addIframe(e3), bo(e3, Xi) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5126
+ })(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) => {
5127
+ wo(e3, ta) && ge2.addIframe(e3), bo(e3, ta) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5112
5128
  }, onIframeLoad: (e3, a3) => {
5113
5129
  ge2.attachIframe(e3, a3), we2.observeAttachShadow(e3);
5114
5130
  }, onStylesheetLoad: (e3, a3) => {
5115
5131
  me2.attachLinkElement(e3, a3);
5116
5132
  }, keepIframeSrcFn: re2 });
5117
5133
  if (!a2) return console.warn("Failed to snapshot the document");
5118
- Ni({ type: ti.FullSnapshot, data: { node: a2, initialOffset: po(window) } }, e2), fi.forEach((e3) => e3.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, Xi.getId(document));
5134
+ 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));
5119
5135
  };
5120
5136
  try {
5121
5137
  const e2 = [], K = (e3) => {
5122
5138
  var a2;
5123
- return M(au)({ mutationCb: rt, mousemoveCb: (e4, a3) => Ni({ type: ti.IncrementalSnapshot, data: { source: a3, positions: e4 } }), mouseInteractionCb: (e4) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.MouseInteraction, ...e4 } }), scrollCb: kn, viewportResizeCb: (e4) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.ViewportResize, ...e4 } }), inputCb: (e4) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.Input, ...e4 } }), mediaInteractionCb: (e4) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.MediaInteraction, ...e4 } }), styleSheetRuleCb: (e4) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.StyleSheetRule, ...e4 } }), styleDeclarationCb: (e4) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.StyleDeclaration, ...e4 } }), canvasMutationCb: Cn, fontCb: (e4) => Ni({ type: ti.IncrementalSnapshot, data: { source: si.Font, ...e4 } }), selectionCb: (e4) => {
5124
- Ni({ type: ti.IncrementalSnapshot, data: { source: si.Selection, ...e4 } });
5139
+ 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) => {
5140
+ Hi({ type: ai.IncrementalSnapshot, data: { source: li.Selection, ...e4 } });
5125
5141
  }, customElementCb: (e4) => {
5126
- Ni({ type: ti.IncrementalSnapshot, data: { source: si.CustomElement, ...e4 } });
5142
+ Hi({ type: ai.IncrementalSnapshot, data: { source: li.CustomElement, ...e4 } });
5127
5143
  }, typingCb: (e4) => {
5128
- Ni({ type: ti.IncrementalSnapshot, data: { ...e4 } });
5144
+ Hi({ type: ai.IncrementalSnapshot, data: { ...e4 } });
5129
5145
  }, deviceChangeCb: (e4) => {
5130
- Ni({ type: ti.Device, data: { ...e4 } });
5131
- }, 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: Xi, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: qi, 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) => Ni({ type: ti.Plugin, data: { plugin: e4.name, payload: a3 } }) }))) || [] }, $2);
5146
+ Hi({ type: ai.Device, data: { ...e4 } });
5147
+ }, 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);
5132
5148
  };
5133
5149
  ge2.addLoadListener((a2) => {
5134
5150
  try {
@@ -5138,15 +5154,15 @@ function ae(e = {}) {
5138
5154
  }
5139
5155
  });
5140
5156
  const W = () => {
5141
- Pi(), e2.push(K(document)), Hi = true;
5157
+ Ji(), e2.push(K(document)), Qi = true;
5142
5158
  };
5143
5159
  return "interactive" === document.readyState || "complete" === document.readyState ? W() : (e2.push(G("DOMContentLoaded", () => {
5144
- Ni({ type: ti.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5160
+ Hi({ type: ai.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5145
5161
  })), e2.push(G("load", () => {
5146
- Ni({ type: ti.Load, data: {} }), "load" === X2 && W();
5162
+ Hi({ type: ai.Load, data: {} }), "load" === X2 && W();
5147
5163
  }, window))), () => {
5148
- e2.forEach((e3) => e3()), ye2.destroy(), Hi = false, (function jl() {
5149
- di = void 0;
5164
+ e2.forEach((e3) => e3()), ye2.destroy(), Qi = false, (function jl() {
5165
+ mi = void 0;
5150
5166
  })();
5151
5167
  };
5152
5168
  } catch (e2) {
@@ -5173,24 +5189,24 @@ function vu(e) {
5173
5189
  }), u;
5174
5190
  }
5175
5191
  ae.addCustomEvent = (e, a) => {
5176
- if (!Hi) throw new Error("please add custom event after start recording");
5177
- Ni({ type: ti.Custom, data: { tag: e, payload: a } });
5192
+ if (!Qi) throw new Error("please add custom event after start recording");
5193
+ Hi({ type: ai.Custom, data: { tag: e, payload: a } });
5178
5194
  }, ae.addSailfishEvent = (e, a) => {
5179
- if (!Hi) throw new Error("please add Sailfish event after start recording");
5180
- Ni({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5195
+ if (!Qi) throw new Error("please add Sailfish event after start recording");
5196
+ Hi({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5181
5197
  }, ae.freezePage = () => {
5182
- fi.forEach((e) => e.freeze());
5198
+ yi.forEach((e) => e.freeze());
5183
5199
  }, ae.takeFullSnapshot = (e) => {
5184
- if (!Hi) throw new Error("please take full snapshot after start recording");
5185
- Pi(e);
5186
- }, ae.mirror = Xi;
5187
- var Qi = { exports: {} }, ea = String, Lo = function() {
5188
- return { isColorSupported: false, reset: ea, bold: ea, dim: ea, italic: ea, underline: ea, inverse: ea, hidden: ea, strikethrough: ea, black: ea, red: ea, green: ea, yellow: ea, blue: ea, magenta: ea, cyan: ea, white: ea, gray: ea, bgBlack: ea, bgRed: ea, bgGreen: ea, bgYellow: ea, bgBlue: ea, bgMagenta: ea, bgCyan: ea, bgWhite: ea, blackBright: ea, redBright: ea, greenBright: ea, yellowBright: ea, blueBright: ea, magentaBright: ea, cyanBright: ea, whiteBright: ea, bgBlackBright: ea, bgRedBright: ea, bgGreenBright: ea, bgYellowBright: ea, bgBlueBright: ea, bgMagentaBright: ea, bgCyanBright: ea, bgWhiteBright: ea };
5200
+ if (!Qi) throw new Error("please take full snapshot after start recording");
5201
+ Ji(e);
5202
+ }, ae.mirror = ta;
5203
+ var na = { exports: {} }, ra = String, Lo = function() {
5204
+ 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 };
5189
5205
  };
5190
- Qi.exports = Lo(), Qi.exports.createColors = Lo;
5191
- var ta = Qi.exports;
5192
- const na = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5193
- let ra = ta, oa = na, sa = class To extends Error {
5206
+ na.exports = Lo(), na.exports.createColors = Lo;
5207
+ var oa = na.exports;
5208
+ const sa = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5209
+ let ia = oa, aa = sa, la = class To extends Error {
5194
5210
  constructor(e, a, u, m2, w2, b2) {
5195
5211
  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);
5196
5212
  }
@@ -5200,11 +5216,11 @@ let ra = ta, oa = na, sa = class To extends Error {
5200
5216
  showSourceCode(e) {
5201
5217
  if (!this.source) return "";
5202
5218
  let a = this.source;
5203
- null == e && (e = ra.isColorSupported);
5219
+ null == e && (e = ia.isColorSupported);
5204
5220
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
5205
5221
  if (e) {
5206
- let { bold: e2, gray: a2, red: u2 } = ra.createColors(true);
5207
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), oa && (i = (e3) => oa(e3));
5222
+ let { bold: e2, gray: a2, red: u2 } = ia.createColors(true);
5223
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), aa && (i = (e3) => aa(e3));
5208
5224
  }
5209
5225
  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;
5210
5226
  return u.slice(m2, w2).map((e2, a2) => {
@@ -5225,10 +5241,10 @@ let ra = ta, oa = na, sa = class To extends Error {
5225
5241
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
5226
5242
  }
5227
5243
  };
5228
- var ia = sa;
5229
- sa.default = sa;
5230
- const aa = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5231
- let la = class {
5244
+ var ca = la;
5245
+ la.default = la;
5246
+ const ua = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5247
+ let pa = class {
5232
5248
  constructor(e) {
5233
5249
  this.builder = e;
5234
5250
  }
@@ -5280,7 +5296,7 @@ let la = class {
5280
5296
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
5281
5297
  let w2 = e.parent;
5282
5298
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
5283
- if (!w2) return aa[u];
5299
+ if (!w2) return ua[u];
5284
5300
  let b2 = e.root();
5285
5301
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
5286
5302
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -5292,7 +5308,7 @@ let la = class {
5292
5308
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
5293
5309
  });
5294
5310
  }
5295
- return typeof m2 > "u" && (m2 = aa[u]), b2.rawCache[u] = m2, m2;
5311
+ return typeof m2 > "u" && (m2 = ua[u]), b2.rawCache[u] = m2, m2;
5296
5312
  }
5297
5313
  rawBeforeClose(e) {
5298
5314
  let a;
@@ -5368,17 +5384,17 @@ let la = class {
5368
5384
  this[e.type](e, a);
5369
5385
  }
5370
5386
  };
5371
- var ca = la;
5372
- la.default = la;
5373
- let ua = ca;
5387
+ var ha = pa;
5388
+ pa.default = pa;
5389
+ let fa = ha;
5374
5390
  function zs(e, a) {
5375
- new ua(a).stringify(e);
5391
+ new fa(a).stringify(e);
5376
5392
  }
5377
- var pa = zs;
5393
+ var ma = zs;
5378
5394
  zs.default = zs;
5379
- var ha = {};
5380
- ha.isClean = Symbol("isClean"), ha.my = Symbol("my");
5381
- let fa = ia, ma = ca, ga = pa, { isClean: ya, my: wa } = ha;
5395
+ var ga = {};
5396
+ ga.isClean = Symbol("isClean"), ga.my = Symbol("my");
5397
+ let ya = ca, wa = ha, Sa = ma, { isClean: ba, my: va } = ga;
5382
5398
  function Bs(e, a) {
5383
5399
  let u = new e.constructor();
5384
5400
  for (let m2 in e) {
@@ -5400,12 +5416,12 @@ function Fe(e, a) {
5400
5416
  }
5401
5417
  return w2;
5402
5418
  }
5403
- let Sa = class {
5419
+ let Ca = class {
5404
5420
  get proxyOf() {
5405
5421
  return this;
5406
5422
  }
5407
5423
  constructor(e = {}) {
5408
- this.raws = {}, this[ya] = false, this[wa] = true;
5424
+ this.raws = {}, this[ba] = false, this[va] = true;
5409
5425
  for (let a in e) if ("nodes" === a) {
5410
5426
  this.nodes = [];
5411
5427
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -5449,19 +5465,19 @@ let Sa = class {
5449
5465
  let { end: u, start: m2 } = this.rangeBy(a);
5450
5466
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
5451
5467
  }
5452
- return new fa(e);
5468
+ return new ya(e);
5453
5469
  }
5454
5470
  getProxyProcessor() {
5455
5471
  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) };
5456
5472
  }
5457
5473
  markClean() {
5458
- this[ya] = true;
5474
+ this[ba] = true;
5459
5475
  }
5460
5476
  markDirty() {
5461
- if (this[ya]) {
5462
- this[ya] = false;
5477
+ if (this[ba]) {
5478
+ this[ba] = false;
5463
5479
  let e = this;
5464
- for (; e = e.parent; ) e[ya] = false;
5480
+ for (; e = e.parent; ) e[ba] = false;
5465
5481
  }
5466
5482
  }
5467
5483
  next() {
@@ -5497,7 +5513,7 @@ let Sa = class {
5497
5513
  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 };
5498
5514
  }
5499
5515
  raw(e, a) {
5500
- return new ma().raw(this, e, a);
5516
+ return new wa().raw(this, e, a);
5501
5517
  }
5502
5518
  remove() {
5503
5519
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -5534,7 +5550,7 @@ let Sa = class {
5534
5550
  toProxy() {
5535
5551
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
5536
5552
  }
5537
- toString(e = ga) {
5553
+ toString(e = Sa) {
5538
5554
  e.stringify && (e = e.stringify);
5539
5555
  let a = "";
5540
5556
  return e(this, (e2) => {
@@ -5547,16 +5563,16 @@ let Sa = class {
5547
5563
  return e.warn(a, m2);
5548
5564
  }
5549
5565
  };
5550
- var ba = Sa;
5551
- Sa.default = Sa;
5552
- let va = ba, Ca = class extends va {
5566
+ var ka = Ca;
5567
+ Ca.default = Ca;
5568
+ let xa = ka, Ma = class extends xa {
5553
5569
  constructor(e) {
5554
5570
  super(e), this.type = "comment";
5555
5571
  }
5556
5572
  };
5557
- var ka = Ca;
5558
- Ca.default = Ca;
5559
- let xa = ba, Ma = class extends xa {
5573
+ var Ia = Ma;
5574
+ Ma.default = Ma;
5575
+ let _a = ka, Oa = class extends _a {
5560
5576
  get variable() {
5561
5577
  return this.prop.startsWith("--") || "$" === this.prop[0];
5562
5578
  }
@@ -5564,16 +5580,16 @@ let xa = ba, Ma = class extends xa {
5564
5580
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
5565
5581
  }
5566
5582
  };
5567
- var Ia = Ma;
5568
- Ma.default = Ma;
5569
- let _a, Oa, Ea, La, Ra = ka, Aa = Ia, Ta = ba, { isClean: Na, my: Pa } = ha;
5583
+ var Ea = Oa;
5584
+ Oa.default = Oa;
5585
+ let La, Ra, Aa, Ta, Na = Ia, Pa = Ea, Da = ka, { isClean: Fa, my: Ua } = ga;
5570
5586
  function Wo(e) {
5571
5587
  return e.map((e2) => (e2.nodes && (e2.nodes = Wo(e2.nodes)), delete e2.source, e2));
5572
5588
  }
5573
5589
  function zo(e) {
5574
- if (e[Na] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5590
+ if (e[Fa] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5575
5591
  }
5576
- let Da = class Bo extends Ta {
5592
+ let Ba = class Bo extends Da {
5577
5593
  get first() {
5578
5594
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
5579
5595
  }
@@ -5625,7 +5641,7 @@ let Da = class Bo extends Ta {
5625
5641
  return this.markDirty(), this;
5626
5642
  }
5627
5643
  normalize(e, a) {
5628
- if ("string" == typeof e) e = Wo(Oa(e).nodes);
5644
+ if ("string" == typeof e) e = Wo(Ra(e).nodes);
5629
5645
  else if (typeof e > "u") e = [];
5630
5646
  else if (Array.isArray(e)) {
5631
5647
  e = e.slice(0);
@@ -5636,14 +5652,14 @@ let Da = class Bo extends Ta {
5636
5652
  } else if (e.type) e = [e];
5637
5653
  else if (e.prop) {
5638
5654
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
5639
- "string" != typeof e.value && (e.value = String(e.value)), e = [new Aa(e)];
5640
- } else if (e.selector || e.selectors) e = [new La(e)];
5641
- else if (e.name) e = [new _a(e)];
5655
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new Pa(e)];
5656
+ } else if (e.selector || e.selectors) e = [new Ta(e)];
5657
+ else if (e.name) e = [new La(e)];
5642
5658
  else {
5643
5659
  if (!e.text) throw new Error("Unknown node type in node creation");
5644
- e = [new Ra(e)];
5660
+ e = [new Na(e)];
5645
5661
  }
5646
- return e.map((e2) => (e2[Pa] || Bo.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[Na] && 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));
5662
+ 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));
5647
5663
  }
5648
5664
  prepend(...e) {
5649
5665
  e = e.reverse();
@@ -5719,22 +5735,22 @@ let Da = class Bo extends Ta {
5719
5735
  }));
5720
5736
  }
5721
5737
  };
5722
- Da.registerParse = (e) => {
5723
- Oa = e;
5724
- }, Da.registerRule = (e) => {
5738
+ Ba.registerParse = (e) => {
5739
+ Ra = e;
5740
+ }, Ba.registerRule = (e) => {
5741
+ Ta = e;
5742
+ }, Ba.registerAtRule = (e) => {
5725
5743
  La = e;
5726
- }, Da.registerAtRule = (e) => {
5727
- _a = e;
5728
- }, Da.registerRoot = (e) => {
5729
- Ea = e;
5744
+ }, Ba.registerRoot = (e) => {
5745
+ Aa = e;
5730
5746
  };
5731
- var Fa = Da;
5732
- Da.default = Da, Da.rebuild = (e) => {
5733
- "atrule" === e.type ? Object.setPrototypeOf(e, _a.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, La.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, Aa.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Ra.prototype) : "root" === e.type && Object.setPrototypeOf(e, Ea.prototype), e[Pa] = true, e.nodes && e.nodes.forEach((e2) => {
5734
- Da.rebuild(e2);
5747
+ var $a = Ba;
5748
+ Ba.default = Ba, Ba.rebuild = (e) => {
5749
+ "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) => {
5750
+ Ba.rebuild(e2);
5735
5751
  });
5736
5752
  };
5737
- let Ua = Fa, Ba = class extends Ua {
5753
+ let Wa = $a, za = class extends Wa {
5738
5754
  constructor(e) {
5739
5755
  super(e), this.type = "atrule";
5740
5756
  }
@@ -5745,38 +5761,38 @@ let Ua = Fa, Ba = class extends Ua {
5745
5761
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
5746
5762
  }
5747
5763
  };
5748
- var $a = Ba;
5749
- Ba.default = Ba, Ua.registerAtRule(Ba);
5750
- let Wa, za, ja = Fa, Ga = class extends ja {
5764
+ var ja = za;
5765
+ za.default = za, Wa.registerAtRule(za);
5766
+ let Ga, Va, qa = $a, Za = class extends qa {
5751
5767
  constructor(e) {
5752
5768
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
5753
5769
  }
5754
5770
  toResult(e = {}) {
5755
- return new Wa(new za(), this, e).stringify();
5771
+ return new Ga(new Va(), this, e).stringify();
5756
5772
  }
5757
5773
  };
5758
- Ga.registerLazyResult = (e) => {
5759
- Wa = e;
5760
- }, Ga.registerProcessor = (e) => {
5761
- za = e;
5774
+ Za.registerLazyResult = (e) => {
5775
+ Ga = e;
5776
+ }, Za.registerProcessor = (e) => {
5777
+ Va = e;
5762
5778
  };
5763
- var Va = Ga;
5764
- Ga.default = Ga;
5765
- var qa = { nanoid: (e = 21) => {
5779
+ var Ka = Za;
5780
+ Za.default = Za;
5781
+ var Ja = { nanoid: (e = 21) => {
5766
5782
  let a = "", u = 0 | e;
5767
5783
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
5768
5784
  return a;
5769
5785
  } };
5770
- let { existsSync: Za, readFileSync: Ka } = na, { dirname: Ja, join: Ya } = na, { SourceMapConsumer: Qa, SourceMapGenerator: el } = na;
5771
- let tl = class {
5786
+ let { existsSync: Ya, readFileSync: Qa } = sa, { dirname: el, join: tl } = sa, { SourceMapConsumer: nl, SourceMapGenerator: rl } = sa;
5787
+ let ol = class {
5772
5788
  constructor(e, a) {
5773
5789
  if (false === a.map) return;
5774
5790
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
5775
5791
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
5776
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Ja(this.mapFile)), m2 && (this.text = m2);
5792
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = el(this.mapFile)), m2 && (this.text = m2);
5777
5793
  }
5778
5794
  consumer() {
5779
- return this.consumerCache || (this.consumerCache = new Qa(this.text)), this.consumerCache;
5795
+ return this.consumerCache || (this.consumerCache = new nl(this.text)), this.consumerCache;
5780
5796
  }
5781
5797
  decodeInline(e) {
5782
5798
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -5801,15 +5817,15 @@ let tl = class {
5801
5817
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
5802
5818
  }
5803
5819
  loadFile(e) {
5804
- if (this.root = Ja(e), Za(e)) return this.mapFile = e, Ka(e, "utf-8").toString().trim();
5820
+ if (this.root = el(e), Ya(e)) return this.mapFile = e, Qa(e, "utf-8").toString().trim();
5805
5821
  }
5806
5822
  loadMap(e, a) {
5807
5823
  if (false === a) return false;
5808
5824
  if (a) {
5809
5825
  if ("string" == typeof a) return a;
5810
5826
  if ("function" != typeof a) {
5811
- if (a instanceof Qa) return el.fromSourceMap(a).toString();
5812
- if (a instanceof el) return a.toString();
5827
+ if (a instanceof nl) return rl.fromSourceMap(a).toString();
5828
+ if (a instanceof rl) return a.toString();
5813
5829
  if (this.isMap(a)) return JSON.stringify(a);
5814
5830
  throw new Error("Unsupported previous source map format: " + a.toString());
5815
5831
  }
@@ -5825,7 +5841,7 @@ let tl = class {
5825
5841
  if (this.inline) return this.decodeInline(this.annotation);
5826
5842
  if (this.annotation) {
5827
5843
  let a2 = this.annotation;
5828
- return e && (a2 = Ya(Ja(e), a2)), this.loadFile(a2);
5844
+ return e && (a2 = tl(el(e), a2)), this.loadFile(a2);
5829
5845
  }
5830
5846
  }
5831
5847
  }
@@ -5836,23 +5852,23 @@ let tl = class {
5836
5852
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
5837
5853
  }
5838
5854
  };
5839
- var nl = tl;
5840
- tl.default = tl;
5841
- let { nanoid: rl } = qa, { isAbsolute: ol, resolve: sl } = na, { SourceMapConsumer: il, SourceMapGenerator: al } = na, { fileURLToPath: ll, pathToFileURL: cl } = na, ul = ia, pl = nl, dl = na, hl = Symbol("fromOffsetCache"), fl = !(!il || !al), ml = !(!sl || !ol), gl = class {
5855
+ var sl = ol;
5856
+ ol.default = ol;
5857
+ 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 {
5842
5858
  get from() {
5843
5859
  return this.file || this.id;
5844
5860
  }
5845
5861
  constructor(e, a = {}) {
5846
5862
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
5847
- 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 && (!ml || /^\w+:\/\//.test(a.from) || ol(a.from) ? this.file = a.from : this.file = sl(a.from)), ml && fl) {
5848
- let e2 = new pl(this.css, a);
5863
+ 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) {
5864
+ let e2 = new fl(this.css, a);
5849
5865
  if (e2.text) {
5850
5866
  this.map = e2;
5851
5867
  let a2 = e2.consumer().file;
5852
5868
  !this.file && a2 && (this.file = this.mapResolve(a2));
5853
5869
  }
5854
5870
  }
5855
- this.file || (this.id = "<input css " + rl(6) + ">"), this.map && (this.map.file = this.from);
5871
+ this.file || (this.id = "<input css " + il(6) + ">"), this.map && (this.map.file = this.from);
5856
5872
  }
5857
5873
  error(e, a, u, m2 = {}) {
5858
5874
  let w2, b2, C2;
@@ -5871,17 +5887,17 @@ let { nanoid: rl } = qa, { isAbsolute: ol, resolve: sl } = na, { SourceMapConsum
5871
5887
  a = e2.line, u = e2.col;
5872
5888
  }
5873
5889
  let x2 = this.origin(a, u, b2, w2);
5874
- return C2 = x2 ? new ul(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 ul(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 && (cl && (C2.input.url = cl(this.file).toString()), C2.input.file = this.file), C2;
5890
+ 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;
5875
5891
  }
5876
5892
  fromOffset(e) {
5877
5893
  let a, u;
5878
- if (this[hl]) u = this[hl];
5894
+ if (this[gl]) u = this[gl];
5879
5895
  else {
5880
5896
  let e2 = this.css.split("\n");
5881
5897
  u = new Array(e2.length);
5882
5898
  let a2 = 0;
5883
5899
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
5884
- this[hl] = u;
5900
+ this[gl] = u;
5885
5901
  }
5886
5902
  a = u[u.length - 1];
5887
5903
  let m2 = 0;
@@ -5900,17 +5916,17 @@ let { nanoid: rl } = qa, { isAbsolute: ol, resolve: sl } = na, { SourceMapConsum
5900
5916
  return { col: e - u[m2] + 1, line: m2 + 1 };
5901
5917
  }
5902
5918
  mapResolve(e) {
5903
- return /^\w+:\/\//.test(e) ? e : sl(this.map.consumer().sourceRoot || this.map.root || ".", e);
5919
+ return /^\w+:\/\//.test(e) ? e : ll(this.map.consumer().sourceRoot || this.map.root || ".", e);
5904
5920
  }
5905
5921
  origin(e, a, u, m2) {
5906
5922
  if (!this.map) return false;
5907
5923
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
5908
5924
  if (!x2.source) return false;
5909
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = ol(x2.source) ? cl(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || cl(this.map.mapFile));
5925
+ "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));
5910
5926
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
5911
5927
  if ("file:" === b2.protocol) {
5912
- if (!ll) throw new Error("file: protocol is not available in this PostCSS build");
5913
- I2.file = ll(b2);
5928
+ if (!pl) throw new Error("file: protocol is not available in this PostCSS build");
5929
+ I2.file = pl(b2);
5914
5930
  }
5915
5931
  let _2 = C2.sourceContentFor(x2.source);
5916
5932
  return _2 && (I2.source = _2), I2;
@@ -5921,9 +5937,9 @@ let { nanoid: rl } = qa, { isAbsolute: ol, resolve: sl } = na, { SourceMapConsum
5921
5937
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
5922
5938
  }
5923
5939
  };
5924
- var yl = gl;
5925
- gl.default = gl, dl && dl.registerInput && dl.registerInput(gl);
5926
- let wl, Sl, bl = Fa, vl = class extends bl {
5940
+ var bl = Sl;
5941
+ Sl.default = Sl, ml && ml.registerInput && ml.registerInput(Sl);
5942
+ let vl, Cl, kl = $a, xl = class extends kl {
5927
5943
  constructor(e) {
5928
5944
  super(e), this.type = "root", this.nodes || (this.nodes = []);
5929
5945
  }
@@ -5940,29 +5956,29 @@ let wl, Sl, bl = Fa, vl = class extends bl {
5940
5956
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
5941
5957
  }
5942
5958
  toResult(e = {}) {
5943
- return new wl(new Sl(), this, e).stringify();
5959
+ return new vl(new Cl(), this, e).stringify();
5944
5960
  }
5945
5961
  };
5946
- vl.registerLazyResult = (e) => {
5947
- wl = e;
5948
- }, vl.registerProcessor = (e) => {
5949
- Sl = e;
5962
+ xl.registerLazyResult = (e) => {
5963
+ vl = e;
5964
+ }, xl.registerProcessor = (e) => {
5965
+ Cl = e;
5950
5966
  };
5951
- var Cl = vl;
5952
- vl.default = vl, bl.registerRoot(vl);
5953
- let kl = { comma: (e) => kl.split(e, [","], true), space(e) {
5967
+ var Ml = xl;
5968
+ xl.default = xl, kl.registerRoot(xl);
5969
+ let Il = { comma: (e) => Il.split(e, [","], true), space(e) {
5954
5970
  let a = [" ", "\n", " "];
5955
- return kl.split(e, a);
5971
+ return Il.split(e, a);
5956
5972
  }, split(e, a, u) {
5957
5973
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
5958
5974
  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;
5959
5975
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
5960
5976
  } };
5961
- var xl = kl;
5962
- kl.default = kl;
5963
- let Ml = Fa, Il = xl, Ol = class extends Ml {
5977
+ var Ol = Il;
5978
+ Il.default = Il;
5979
+ let El = $a, Ll = Ol, Rl = class extends El {
5964
5980
  get selectors() {
5965
- return Il.comma(this.selector);
5981
+ return Ll.comma(this.selector);
5966
5982
  }
5967
5983
  set selectors(e) {
5968
5984
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -5972,34 +5988,34 @@ let Ml = Fa, Il = xl, Ol = class extends Ml {
5972
5988
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
5973
5989
  }
5974
5990
  };
5975
- var El = Ol;
5976
- Ol.default = Ol, Ml.registerRule(Ol);
5977
- let Ll = $a, Rl = ka, Al = Ia, Tl = yl, Nl = nl, Pl = Cl, Dl = El;
5991
+ var Al = Rl;
5992
+ Rl.default = Rl, El.registerRule(Rl);
5993
+ let Tl = ja, Nl = Ia, Pl = Ea, Dl = bl, Jl = sl, ec = Ml, tc = Al;
5978
5994
  function Ke(e, a) {
5979
5995
  if (Array.isArray(e)) return e.map((e2) => Ke(e2));
5980
5996
  let { inputs: u, ...m2 } = e;
5981
5997
  if (u) {
5982
5998
  a = [];
5983
5999
  for (let e2 of u) {
5984
- let u2 = { ...e2, __proto__: Tl.prototype };
5985
- u2.map && (u2.map = { ...u2.map, __proto__: Nl.prototype }), a.push(u2);
6000
+ let u2 = { ...e2, __proto__: Dl.prototype };
6001
+ u2.map && (u2.map = { ...u2.map, __proto__: Jl.prototype }), a.push(u2);
5986
6002
  }
5987
6003
  }
5988
6004
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ke(e2, a))), m2.source) {
5989
6005
  let { inputId: e2, ...u2 } = m2.source;
5990
6006
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
5991
6007
  }
5992
- if ("root" === m2.type) return new Pl(m2);
5993
- if ("decl" === m2.type) return new Al(m2);
5994
- if ("rule" === m2.type) return new Dl(m2);
5995
- if ("comment" === m2.type) return new Rl(m2);
5996
- if ("atrule" === m2.type) return new Ll(m2);
6008
+ if ("root" === m2.type) return new ec(m2);
6009
+ if ("decl" === m2.type) return new Pl(m2);
6010
+ if ("rule" === m2.type) return new tc(m2);
6011
+ if ("comment" === m2.type) return new Nl(m2);
6012
+ if ("atrule" === m2.type) return new Tl(m2);
5997
6013
  throw new Error("Unknown node type: " + e.type);
5998
6014
  }
5999
- var Jl = Ke;
6015
+ var nc = Ke;
6000
6016
  Ke.default = Ke;
6001
- let { dirname: ec, relative: tc, resolve: nc, sep: rc } = na, { SourceMapConsumer: oc, SourceMapGenerator: sc } = na, { pathToFileURL: ic } = na, ac = yl, lc = !(!oc || !sc), cc = !!(ec && nc && tc && rc);
6002
- var uc = class {
6017
+ 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);
6018
+ var hc = class {
6003
6019
  constructor(e, a, u, m2) {
6004
6020
  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();
6005
6021
  }
@@ -6011,8 +6027,8 @@ var uc = class {
6011
6027
  }
6012
6028
  applyPrevMaps() {
6013
6029
  for (let e of this.previous()) {
6014
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || ec(e.file);
6015
- false === this.mapOpts.sourcesContent ? (a = new oc(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
6030
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || rc(e.file);
6031
+ 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)));
6016
6032
  }
6017
6033
  }
6018
6034
  clearAnnotation() {
@@ -6022,7 +6038,7 @@ var uc = class {
6022
6038
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
6023
6039
  }
6024
6040
  generate() {
6025
- if (this.clearAnnotation(), cc && lc && this.isMap()) return this.generateMap();
6041
+ if (this.clearAnnotation(), dc && pc && this.isMap()) return this.generateMap();
6026
6042
  {
6027
6043
  let e = "";
6028
6044
  return this.stringify(this.root, (a) => {
@@ -6034,12 +6050,12 @@ var uc = class {
6034
6050
  if (this.root) this.generateString();
6035
6051
  else if (1 === this.previous().length) {
6036
6052
  let e = this.previous()[0].consumer();
6037
- e.file = this.outputFile(), this.map = sc.fromSourceMap(e, { ignoreInvalidMapping: true });
6038
- } else this.map = new sc({ 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>" });
6053
+ e.file = this.outputFile(), this.map = lc.fromSourceMap(e, { ignoreInvalidMapping: true });
6054
+ } 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>" });
6039
6055
  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];
6040
6056
  }
6041
6057
  generateString() {
6042
- this.css = "", this.map = new sc({ file: this.outputFile(), ignoreInvalidMapping: true });
6058
+ this.css = "", this.map = new lc({ file: this.outputFile(), ignoreInvalidMapping: true });
6043
6059
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
6044
6060
  this.stringify(this.root, (C2, x2, I2) => {
6045
6061
  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) {
@@ -6069,9 +6085,9 @@ var uc = class {
6069
6085
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
6070
6086
  let a = this.memoizedPaths.get(e);
6071
6087
  if (a) return a;
6072
- let u = this.opts.to ? ec(this.opts.to) : ".";
6073
- "string" == typeof this.mapOpts.annotation && (u = ec(nc(u, this.mapOpts.annotation)));
6074
- let m2 = tc(u, e);
6088
+ let u = this.opts.to ? rc(this.opts.to) : ".";
6089
+ "string" == typeof this.mapOpts.annotation && (u = rc(sc(u, this.mapOpts.annotation)));
6090
+ let m2 = oc(u, e);
6075
6091
  return this.memoizedPaths.set(e, m2), m2;
6076
6092
  }
6077
6093
  previous() {
@@ -6082,7 +6098,7 @@ var uc = class {
6082
6098
  }
6083
6099
  });
6084
6100
  else {
6085
- let e = new ac(this.originalCSS, this.opts);
6101
+ let e = new uc(this.originalCSS, this.opts);
6086
6102
  e.map && this.previousMaps.push(e.map);
6087
6103
  }
6088
6104
  return this.previousMaps;
@@ -6113,8 +6129,8 @@ var uc = class {
6113
6129
  toFileUrl(e) {
6114
6130
  let a = this.memoizedFileURLs.get(e);
6115
6131
  if (a) return a;
6116
- if (ic) {
6117
- let a2 = ic(e).toString();
6132
+ if (cc) {
6133
+ let a2 = cc(e).toString();
6118
6134
  return this.memoizedFileURLs.set(e, a2), a2;
6119
6135
  }
6120
6136
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -6122,13 +6138,13 @@ var uc = class {
6122
6138
  toUrl(e) {
6123
6139
  let a = this.memoizedURLs.get(e);
6124
6140
  if (a) return a;
6125
- "\\" === rc && (e = e.replace(/\\/g, "/"));
6141
+ "\\" === ic && (e = e.replace(/\\/g, "/"));
6126
6142
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
6127
6143
  return this.memoizedURLs.set(e, u), u;
6128
6144
  }
6129
6145
  };
6130
- const pc = /[\t\n\f\r "#'()/;[\\\]{}]/g, dc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, hc = /.[\r\n"'(/\\]/, fc = /[\da-f]/i;
6131
- let mc = $a, gc = ka, yc = Ia, wc = Cl, Sc = El, kc = function(e, a = {}) {
6146
+ const fc = /[\t\n\f\r "#'()/;[\\\]{}]/g, mc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, gc = /.[\r\n"'(/\\]/, yc = /[\da-f]/i;
6147
+ let wc = ja, Sc = Ia, bc = Ea, vc = Ml, xc = Al, kc = function(e, a = {}) {
6132
6148
  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 = [];
6133
6149
  function y2(a2) {
6134
6150
  throw e.error("Unclosed " + a2, B2);
@@ -6178,7 +6194,7 @@ let mc = $a, gc = ka, yc = Ia, wc = Cl, Sc = El, kc = function(e, a = {}) {
6178
6194
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
6179
6195
  } while (I2);
6180
6196
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6181
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || hc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6197
+ } 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);
6182
6198
  break;
6183
6199
  case 39:
6184
6200
  case 34:
@@ -6196,31 +6212,31 @@ let mc = $a, gc = ka, yc = Ia, wc = Cl, Sc = El, kc = function(e, a = {}) {
6196
6212
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6197
6213
  break;
6198
6214
  case 64:
6199
- pc.lastIndex = B2 + 1, pc.test(D2), b2 = 0 === pc.lastIndex ? D2.length - 1 : pc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6215
+ 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;
6200
6216
  break;
6201
6217
  case 92:
6202
6218
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
6203
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, fc.test(D2.charAt(b2)))) {
6204
- for (; fc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6219
+ 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)))) {
6220
+ for (; yc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6205
6221
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
6206
6222
  }
6207
6223
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6208
6224
  break;
6209
6225
  default:
6210
- 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) : (dc.lastIndex = B2 + 1, dc.test(D2), b2 = 0 === dc.lastIndex ? D2.length - 1 : dc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6226
+ 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);
6211
6227
  }
6212
6228
  return B2++, x2;
6213
6229
  }, position: function S() {
6214
6230
  return B2;
6215
6231
  } };
6216
6232
  };
6217
- const bc = { empty: true, space: true };
6218
- var vc = class {
6233
+ const Mc = { empty: true, space: true };
6234
+ var Ic = class {
6219
6235
  constructor(e) {
6220
- this.input = e, this.root = new wc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
6236
+ 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 } };
6221
6237
  }
6222
6238
  atrule(e) {
6223
- let a = new mc();
6239
+ let a = new wc();
6224
6240
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
6225
6241
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
6226
6242
  for (; !this.tokenizer.endOfFile(); ) {
@@ -6272,7 +6288,7 @@ var vc = class {
6272
6288
  return false;
6273
6289
  }
6274
6290
  comment(e) {
6275
- let a = new gc();
6291
+ let a = new Sc();
6276
6292
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
6277
6293
  let u = e[1].slice(2, -2);
6278
6294
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -6285,7 +6301,7 @@ var vc = class {
6285
6301
  this.tokenizer = kc(this.input);
6286
6302
  }
6287
6303
  decl(e, a) {
6288
- let u = new yc();
6304
+ let u = new bc();
6289
6305
  this.init(u, e[0][2]);
6290
6306
  let m2, w2 = e[e.length - 1];
6291
6307
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Cc(e2) {
@@ -6334,7 +6350,7 @@ var vc = class {
6334
6350
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
6335
6351
  }
6336
6352
  emptyRule(e) {
6337
- let a = new Sc();
6353
+ let a = new xc();
6338
6354
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
6339
6355
  }
6340
6356
  end(e) {
@@ -6410,7 +6426,7 @@ var vc = class {
6410
6426
  }
6411
6427
  raw(e, a, u, m2) {
6412
6428
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
6413
- 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", bc[x2] || bc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6429
+ 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;
6414
6430
  if (!O2) {
6415
6431
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
6416
6432
  e.raws[a] = { raw: m3, value: _2 };
@@ -6419,7 +6435,7 @@ var vc = class {
6419
6435
  }
6420
6436
  rule(e) {
6421
6437
  e.pop();
6422
- let a = new Sc();
6438
+ let a = new xc();
6423
6439
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
6424
6440
  }
6425
6441
  spacesAndCommentsFromEnd(e) {
@@ -6459,9 +6475,9 @@ var vc = class {
6459
6475
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
6460
6476
  }
6461
6477
  };
6462
- let xc = Fa, Mc = yl, Ic = vc;
6478
+ let _c = $a, Oc = bl, Ec = Ic;
6463
6479
  function Gt(e, a) {
6464
- let u = new Mc(e, a), m2 = new Ic(u);
6480
+ let u = new Oc(e, a), m2 = new Ec(u);
6465
6481
  try {
6466
6482
  m2.parse();
6467
6483
  } catch (e2) {
@@ -6469,9 +6485,9 @@ function Gt(e, a) {
6469
6485
  }
6470
6486
  return m2.root;
6471
6487
  }
6472
- var _c = Gt;
6473
- Gt.default = Gt, xc.registerParse(Gt);
6474
- let Oc = class {
6488
+ var Lc = Gt;
6489
+ Gt.default = Gt, _c.registerParse(Gt);
6490
+ let Rc = class {
6475
6491
  constructor(e, a = {}) {
6476
6492
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
6477
6493
  let e2 = a.node.rangeBy(a);
@@ -6483,9 +6499,9 @@ let Oc = class {
6483
6499
  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;
6484
6500
  }
6485
6501
  };
6486
- var Ec = Oc;
6487
- Oc.default = Oc;
6488
- let Lc = Ec, Rc = class {
6502
+ var Ac = Rc;
6503
+ Rc.default = Rc;
6504
+ let Tc = Ac, Nc = class {
6489
6505
  get content() {
6490
6506
  return this.css;
6491
6507
  }
@@ -6497,26 +6513,26 @@ let Lc = Ec, Rc = class {
6497
6513
  }
6498
6514
  warn(e, a = {}) {
6499
6515
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
6500
- let u = new Lc(e, a);
6516
+ let u = new Tc(e, a);
6501
6517
  return this.messages.push(u), u;
6502
6518
  }
6503
6519
  warnings() {
6504
6520
  return this.messages.filter((e) => "warning" === e.type);
6505
6521
  }
6506
6522
  };
6507
- var Ac = Rc;
6508
- Rc.default = Rc;
6509
- let Tc = {};
6523
+ var Pc = Nc;
6524
+ Nc.default = Nc;
6525
+ let Dc = {};
6510
6526
  var ni = function(e) {
6511
- Tc[e] || (Tc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6527
+ Dc[e] || (Dc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6512
6528
  };
6513
- let Nc = Fa, Pc = Va, Dc = uc, Fc = _c, Uc = Ac, Bc = Cl, $c = pa, { isClean: Wc, my: zc } = ha, jc = ni;
6514
- const Gc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Vc = { 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 }, qc = { Once: true, postcssPlugin: true, prepare: true };
6529
+ let Fc = $a, Uc = Ka, Bc = hc, $c = Lc, Wc = Pc, zc = Ml, jc = ma, { isClean: Gc, my: Vc } = ga, qc = ni;
6530
+ 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 };
6515
6531
  function _e(e) {
6516
6532
  return "object" == typeof e && "function" == typeof e.then;
6517
6533
  }
6518
6534
  function ri(e) {
6519
- let a = false, u = Gc[e.type];
6535
+ let a = false, u = Hc[e.type];
6520
6536
  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"];
6521
6537
  }
6522
6538
  function br(e) {
@@ -6524,9 +6540,9 @@ function br(e) {
6524
6540
  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: [] };
6525
6541
  }
6526
6542
  function Js(e) {
6527
- return e[Wc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6543
+ return e[Gc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6528
6544
  }
6529
- let Hc = {}, Zc = class oi {
6545
+ let Jc = {}, Yc = class oi {
6530
6546
  get content() {
6531
6547
  return this.stringify().content;
6532
6548
  }
@@ -6553,19 +6569,19 @@ let Hc = {}, Zc = class oi {
6553
6569
  }
6554
6570
  constructor(e, a, u) {
6555
6571
  let m2;
6556
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof oi || a instanceof Uc) m2 = Js(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
6572
+ 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);
6557
6573
  else {
6558
- let e2 = Fc;
6574
+ let e2 = $c;
6559
6575
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
6560
6576
  try {
6561
6577
  m2 = e2(a, u);
6562
6578
  } catch (e3) {
6563
6579
  this.processed = true, this.error = e3;
6564
6580
  }
6565
- m2 && !m2[zc] && Nc.rebuild(m2);
6581
+ m2 && !m2[Vc] && Fc.rebuild(m2);
6566
6582
  }
6567
6583
  else m2 = Js(a);
6568
- this.result = new Uc(e, m2, u), this.helpers = { ...Hc, postcss: Hc, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
6584
+ 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);
6569
6585
  }
6570
6586
  async() {
6571
6587
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -6599,8 +6615,8 @@ let Hc = {}, Zc = class oi {
6599
6615
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
6600
6616
  };
6601
6617
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
6602
- if (!Vc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6603
- if (!qc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6618
+ if (!Zc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6619
+ if (!Kc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6604
6620
  else "function" == typeof e[a] && t(e, a, e[a]);
6605
6621
  }
6606
6622
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -6617,8 +6633,8 @@ let Hc = {}, Zc = class oi {
6617
6633
  }
6618
6634
  if (this.prepareVisitors(), this.hasListener) {
6619
6635
  let e = this.result.root;
6620
- for (; !e[Wc]; ) {
6621
- e[Wc] = true;
6636
+ for (; !e[Gc]; ) {
6637
+ e[Gc] = true;
6622
6638
  let a = [br(e)];
6623
6639
  for (; a.length > 0; ) {
6624
6640
  let e2 = this.visitTick(a);
@@ -6663,9 +6679,9 @@ let Hc = {}, Zc = class oi {
6663
6679
  if (this.error) throw this.error;
6664
6680
  if (this.stringified) return this.result;
6665
6681
  this.stringified = true, this.sync();
6666
- let e = this.result.opts, a = $c;
6682
+ let e = this.result.opts, a = jc;
6667
6683
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
6668
- let u = new Dc(a, this.result.root, this.result.opts).generate();
6684
+ let u = new Bc(a, this.result.root, this.result.opts).generate();
6669
6685
  return this.result.css = u[0], this.result.map = u[1], this.result;
6670
6686
  }
6671
6687
  sync() {
@@ -6677,14 +6693,14 @@ let Hc = {}, Zc = class oi {
6677
6693
  }
6678
6694
  if (this.prepareVisitors(), this.hasListener) {
6679
6695
  let e = this.result.root;
6680
- for (; !e[Wc]; ) e[Wc] = true, this.walkSync(e);
6696
+ for (; !e[Gc]; ) e[Gc] = true, this.walkSync(e);
6681
6697
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
6682
6698
  else this.visitSync(this.listeners.OnceExit, e);
6683
6699
  }
6684
6700
  return this.result;
6685
6701
  }
6686
6702
  then(e, a) {
6687
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || jc("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);
6703
+ 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);
6688
6704
  }
6689
6705
  toString() {
6690
6706
  return this.css;
@@ -6716,22 +6732,22 @@ let Hc = {}, Zc = class oi {
6716
6732
  }
6717
6733
  if (0 !== a.iterator) {
6718
6734
  let m3, w3 = a.iterator;
6719
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[Wc]) return m3[Wc] = true, void e.push(br(m3));
6735
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[Gc]) return m3[Gc] = true, void e.push(br(m3));
6720
6736
  a.iterator = 0, delete u.indexes[w3];
6721
6737
  }
6722
6738
  let w2 = a.events;
6723
6739
  for (; a.eventIndex < w2.length; ) {
6724
6740
  let e2 = w2[a.eventIndex];
6725
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[Wc] = true, a.iterator = u.getIterator()));
6741
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[Gc] = true, a.iterator = u.getIterator()));
6726
6742
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
6727
6743
  }
6728
6744
  e.pop();
6729
6745
  }
6730
6746
  walkSync(e) {
6731
- e[Wc] = true;
6747
+ e[Gc] = true;
6732
6748
  let a = ri(e);
6733
6749
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
6734
- e2[Wc] || this.walkSync(e2);
6750
+ e2[Gc] || this.walkSync(e2);
6735
6751
  });
6736
6752
  else {
6737
6753
  let a2 = this.listeners[u];
@@ -6742,14 +6758,14 @@ let Hc = {}, Zc = class oi {
6742
6758
  return this.sync().warnings();
6743
6759
  }
6744
6760
  };
6745
- Zc.registerPostcss = (e) => {
6746
- Hc = e;
6761
+ Yc.registerPostcss = (e) => {
6762
+ Jc = e;
6747
6763
  };
6748
- var Kc = Zc;
6749
- Zc.default = Zc, Bc.registerLazyResult(Zc), Pc.registerLazyResult(Zc);
6750
- let Jc = uc, Yc = _c;
6751
- const Xc = Ac;
6752
- let Qc = pa, lu = ni, cu = class {
6764
+ var Xc = Yc;
6765
+ Yc.default = Yc, zc.registerLazyResult(Yc), Uc.registerLazyResult(Yc);
6766
+ let Qc = hc, lu = Lc;
6767
+ const cu = Pc;
6768
+ let hu = ma, Cu = ni, ku = class {
6753
6769
  get content() {
6754
6770
  return this.result.css;
6755
6771
  }
@@ -6770,7 +6786,7 @@ let Qc = pa, lu = ni, cu = class {
6770
6786
  }
6771
6787
  get root() {
6772
6788
  if (this._root) return this._root;
6773
- let e, a = Yc;
6789
+ let e, a = lu;
6774
6790
  try {
6775
6791
  e = a(this._css, this._opts);
6776
6792
  } catch (e2) {
@@ -6784,11 +6800,11 @@ let Qc = pa, lu = ni, cu = class {
6784
6800
  }
6785
6801
  constructor(e, a, u) {
6786
6802
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
6787
- let m2, w2 = Qc;
6788
- this.result = new Xc(this._processor, m2, this._opts), this.result.css = a;
6803
+ let m2, w2 = hu;
6804
+ this.result = new cu(this._processor, m2, this._opts), this.result.css = a;
6789
6805
  let b2 = this;
6790
6806
  Object.defineProperty(this.result, "root", { get: () => b2.root });
6791
- let C2 = new Jc(w2, m2, this._opts, a);
6807
+ let C2 = new Qc(w2, m2, this._opts, a);
6792
6808
  if (C2.isMap()) {
6793
6809
  let [e2, a2] = C2.generate();
6794
6810
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -6808,7 +6824,7 @@ let Qc = pa, lu = ni, cu = class {
6808
6824
  return this.result;
6809
6825
  }
6810
6826
  then(e, a) {
6811
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || lu("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);
6827
+ 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);
6812
6828
  }
6813
6829
  toString() {
6814
6830
  return this._css;
@@ -6817,9 +6833,9 @@ let Qc = pa, lu = ni, cu = class {
6817
6833
  return [];
6818
6834
  }
6819
6835
  };
6820
- var hu = cu;
6821
- cu.default = cu;
6822
- let Cu = Va, ku = Kc, xu = hu, Mu = Cl, _u = class {
6836
+ var xu = ku;
6837
+ ku.default = ku;
6838
+ let Mu = Ka, _u = Xc, Ou = xu, Eu = Ml, Lu = class {
6823
6839
  constructor(e = []) {
6824
6840
  this.version = "8.5.3", this.plugins = this.normalize(e);
6825
6841
  }
@@ -6835,39 +6851,39 @@ let Cu = Va, ku = Kc, xu = hu, Mu = Cl, _u = class {
6835
6851
  return a;
6836
6852
  }
6837
6853
  process(e, a = {}) {
6838
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new ku(this, e, a) : new xu(this, e, a);
6854
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new _u(this, e, a) : new Ou(this, e, a);
6839
6855
  }
6840
6856
  use(e) {
6841
6857
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
6842
6858
  }
6843
6859
  };
6844
- var Ou = _u;
6845
- _u.default = _u, Mu.registerProcessor(_u), Cu.registerProcessor(_u);
6846
- let Eu = $a, Lu = ka, Ru = Fa, Au = ia, Tu = Ia, Nu = Va, Pu = Jl, Du = yl, Fu = Kc, Uu = xl, $u = ba, Wu = _c, zu = Ou, ju = Ac, Gu = Cl, Vu = El, qu = pa, Hu = Ec;
6860
+ var Ru = Lu;
6861
+ Lu.default = Lu, Eu.registerProcessor(Lu), Mu.registerProcessor(Lu);
6862
+ 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;
6847
6863
  function T$1(...e) {
6848
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new zu(e);
6864
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Vu(e);
6849
6865
  }
6850
6866
  T$1.plugin = function(e, a) {
6851
6867
  let u, m2 = false;
6852
6868
  function n(...u2) {
6853
6869
  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"));
6854
6870
  let w2 = a(...u2);
6855
- return w2.postcssPlugin = e, w2.postcssVersion = new zu().version, w2;
6871
+ return w2.postcssPlugin = e, w2.postcssVersion = new Vu().version, w2;
6856
6872
  }
6857
6873
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
6858
6874
  return T$1([n(u2)]).process(e2, a2);
6859
6875
  }, n;
6860
- }, T$1.stringify = qu, T$1.parse = Wu, T$1.fromJSON = Pu, T$1.list = Uu, T$1.comment = (e) => new Lu(e), T$1.atRule = (e) => new Eu(e), T$1.decl = (e) => new Tu(e), T$1.rule = (e) => new Vu(e), T$1.root = (e) => new Gu(e), T$1.document = (e) => new Nu(e), T$1.CssSyntaxError = Au, T$1.Declaration = Tu, T$1.Container = Ru, T$1.Processor = zu, T$1.Document = Nu, T$1.Comment = Lu, T$1.Warning = Hu, T$1.AtRule = Eu, T$1.Result = ju, T$1.Input = Du, T$1.Rule = Vu, T$1.Root = Gu, T$1.Node = $u, Fu.registerPostcss(T$1);
6861
- var Zu = T$1;
6876
+ }, 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);
6877
+ var Yu = T$1;
6862
6878
  T$1.default = T$1;
6863
- const Ku = Su(Zu);
6864
- var Ju;
6865
- Ku.stringify, Ku.fromJSON, Ku.plugin, Ku.parse, Ku.list, Ku.document, Ku.comment, Ku.atRule, Ku.rule, Ku.decl, Ku.root, Ku.CssSyntaxError, Ku.Declaration, Ku.Container, Ku.Processor, Ku.Document, Ku.Comment, Ku.Warning, Ku.AtRule, Ku.Result, Ku.Input, Ku.Rule, Ku.Root, Ku.Node, (function(e) {
6879
+ const Xu = Su(Yu);
6880
+ var Qu;
6881
+ 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) {
6866
6882
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
6867
- })(Ju || (Ju = {}));
6868
- const { addCustomEvent: Yu } = ae, { addSailfishEvent: Xu } = ae, { freezePage: Qu } = ae, { takeFullSnapshot: ep } = ae;
6869
- var tp = Object.defineProperty, y = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? tp(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u);
6870
- let np = class d {
6883
+ })(Qu || (Qu = {}));
6884
+ const { addCustomEvent: ep } = ae, { addSailfishEvent: tp } = ae, { freezePage: np } = ae, { takeFullSnapshot: rp } = ae;
6885
+ 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);
6886
+ let sp = class d {
6871
6887
  constructor(e) {
6872
6888
  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;
6873
6889
  }
@@ -6876,8 +6892,8 @@ let np = class d {
6876
6892
  return this.functionName ? `${this.functionName} (${this.fileName}:${e}:${a})` : `${this.fileName}:${e}:${a}`;
6877
6893
  }
6878
6894
  };
6879
- const rp = /(^|@)\S+:\d+/, op = /^\s*at .*(\S+:\d+|\(native\))/m, sp = /^(eval@)?(\[native code])?$/, ip = { parse: function(e) {
6880
- return e ? typeof e.stacktrace < "u" || typeof e["opera#sourceloc"] < "u" ? this.parseOpera(e) : e.stack && e.stack.match(op) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
6895
+ const ip = /(^|@)\S+:\d+/, ap = /^\s*at .*(\S+:\d+|\(native\))/m, lp = /^(eval@)?(\[native code])?$/, cp = { parse: function(e) {
6896
+ 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), []) : [];
6881
6897
  }, extractLocation: function(e) {
6882
6898
  if (-1 === e.indexOf(":")) return [e];
6883
6899
  const a = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g, ""));
@@ -6885,23 +6901,23 @@ const rp = /(^|@)\S+:\d+/, op = /^\s*at .*(\S+:\d+|\(native\))/m, sp = /^(eval@)
6885
6901
  return [a[1], a[2] || void 0, a[3] || void 0];
6886
6902
  }, parseV8OrIE: function(e) {
6887
6903
  return e.stack.split("\n").filter(function(e2) {
6888
- return !!e2.match(op);
6904
+ return !!e2.match(ap);
6889
6905
  }, this).map(function(e2) {
6890
6906
  e2.indexOf("(eval ") > -1 && (e2 = e2.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
6891
6907
  let a = e2.replace(/^\s+/, "").replace(/\(eval code/g, "(");
6892
6908
  const u = a.match(/ (\((.+):(\d+):(\d+)\)$)/);
6893
6909
  a = u ? a.replace(u[0], "") : a;
6894
6910
  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];
6895
- return new np({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6911
+ return new sp({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6896
6912
  }, this);
6897
6913
  }, parseFFOrSafari: function(e) {
6898
6914
  return e.stack.split("\n").filter(function(e2) {
6899
- return !e2.match(sp);
6915
+ return !e2.match(lp);
6900
6916
  }, this).map(function(e2) {
6901
- 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 np({ functionName: e2 });
6917
+ 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 });
6902
6918
  {
6903
6919
  const a = /((.*".+"[^@]*)?[^@]*)(?:@)/, u = e2.match(a), m2 = u && u[1] ? u[1] : void 0, w2 = this.extractLocation(e2.replace(a, ""));
6904
- return new np({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6920
+ return new sp({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6905
6921
  }
6906
6922
  }, this);
6907
6923
  }, parseOpera: function(e) {
@@ -6910,22 +6926,22 @@ const rp = /(^|@)\S+:\d+/, op = /^\s*at .*(\S+:\d+|\(native\))/m, sp = /^(eval@)
6910
6926
  const a = /Line (\d+).*script (?:in )?(\S+)/i, u = e.message.split("\n"), m2 = [];
6911
6927
  for (let e2 = 2, w2 = u.length; e2 < w2; e2 += 2) {
6912
6928
  const w3 = a.exec(u[e2]);
6913
- w3 && m2.push(new np({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6929
+ w3 && m2.push(new sp({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6914
6930
  }
6915
6931
  return m2;
6916
6932
  }, parseOpera10: function(e) {
6917
6933
  const a = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, u = e.stacktrace.split("\n"), m2 = [];
6918
6934
  for (let e2 = 0, w2 = u.length; e2 < w2; e2 += 2) {
6919
6935
  const w3 = a.exec(u[e2]);
6920
- w3 && m2.push(new np({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6936
+ w3 && m2.push(new sp({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6921
6937
  }
6922
6938
  return m2;
6923
6939
  }, parseOpera11: function(e) {
6924
6940
  return e.stack.split("\n").filter(function(e2) {
6925
- return !!e2.match(rp) && !e2.match(/^Error created at/);
6941
+ return !!e2.match(ip) && !e2.match(/^Error created at/);
6926
6942
  }, this).map(function(e2) {
6927
6943
  const a = e2.split("@"), u = this.extractLocation(a.pop()), m2 = (a.shift() || "").replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0;
6928
- return new np({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6944
+ return new sp({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6929
6945
  }, this);
6930
6946
  } };
6931
6947
  function T(e) {
@@ -6982,9 +6998,9 @@ function g(e, a) {
6982
6998
  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;
6983
6999
  });
6984
7000
  }
6985
- const ap = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
7001
+ 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" };
6986
7002
  function R(e, a, u) {
6987
- const m2 = u ? Object.assign({}, ap, u) : ap, w2 = m2.logger;
7003
+ const m2 = u ? Object.assign({}, up, u) : up, w2 = m2.logger;
6988
7004
  if (!w2) return () => {
6989
7005
  };
6990
7006
  let b2;
@@ -6993,7 +7009,7 @@ function R(e, a, u) {
6993
7009
  const I2 = [];
6994
7010
  if (m2.level.includes("error")) {
6995
7011
  const l = (a2) => {
6996
- const u2 = a2.message, w3 = a2.error, b3 = ip.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
7012
+ const u2 = a2.message, w3 = a2.error, b3 = cp.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
6997
7013
  e({ level: "error", trace: b3, payload: C3 });
6998
7014
  };
6999
7015
  a.addEventListener("error", l), I2.push(() => {
@@ -7002,7 +7018,7 @@ function R(e, a, u) {
7002
7018
  const f = (a2) => {
7003
7019
  let u2, w3;
7004
7020
  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)]);
7005
- const b3 = ip.parse(u2).map((e2) => e2.toString());
7021
+ const b3 = cp.parse(u2).map((e2) => e2.toString());
7006
7022
  e({ level: "error", trace: b3, payload: w3 });
7007
7023
  };
7008
7024
  a.addEventListener("unhandledrejection", f), I2.push(() => {
@@ -7030,7 +7046,7 @@ function R(e, a, u) {
7030
7046
  if (a3.apply(this, w3), !("assert" === u2 && w3[0] || x2)) {
7031
7047
  x2 = true;
7032
7048
  try {
7033
- const a4 = ip.parse(new Error()).map((e2) => e2.toString()).splice(1), b3 = ("assert" === u2 ? w3.slice(1) : w3).map((e2) => g(e2, m2.stringifyOptions));
7049
+ 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));
7034
7050
  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.")] });
7035
7051
  } catch (e2) {
7036
7052
  a3("@sailfish-rrweb/rrweb logger error:", e2, ...w3);
@@ -7042,7 +7058,7 @@ function R(e, a, u) {
7042
7058
  };
7043
7059
  }
7044
7060
  }
7045
- var lp = ((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))(lp || {});
7061
+ 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 || {});
7046
7062
  function suppressConsoleLogsDuringCall(e) {
7047
7063
  const a = console.log, u = console.warn, m2 = console.error;
7048
7064
  console.log = () => {
@@ -7055,7 +7071,7 @@ function suppressConsoleLogsDuringCall(e) {
7055
7071
  console.log = a, console.warn = u, console.error = m2;
7056
7072
  }
7057
7073
  }
7058
- const cp = "zendesk_chat", up = "Zendesk";
7074
+ const dp = "zendesk_chat", hp = "Zendesk";
7059
7075
  function zE_safe(...e) {
7060
7076
  try {
7061
7077
  if ((function hasZendesk() {
@@ -7094,7 +7110,7 @@ function initializeDomContentEvents(e) {
7094
7110
  function initializeConsolePlugin(e, a) {
7095
7111
  const { name: u, observer: m2 } = /* @__PURE__ */ ((e2) => ({ name: "@sailfish-rrweb/rrweb/console@1", observer: R, options: e2 }))(e);
7096
7112
  m2((e2) => {
7097
- sendEvent({ type: lp.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
7113
+ sendEvent({ type: pp.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
7098
7114
  }, window, e);
7099
7115
  }
7100
7116
  async function initializeRecording(e, a, u, m2) {
@@ -7114,11 +7130,11 @@ async function initializeRecording(e, a, u, m2) {
7114
7130
  zE_safe("messenger:set", "conversationTags", [`sailfish-session-${m2}`]);
7115
7131
  });
7116
7132
  const handleWidgetOpen = () => {
7117
- ae.addSailfishEvent(lp.SailfishCustom, { action: "customer support chat opened", element_id: cp, provider: up });
7133
+ ae.addSailfishEvent(pp.SailfishCustom, { action: "customer support chat opened", element_id: dp, provider: hp });
7118
7134
  }, handleWidgetClose = () => {
7119
- ae.addSailfishEvent(lp.SailfishCustom, { action: "customer support chat closed", element_id: cp, provider: up });
7135
+ ae.addSailfishEvent(pp.SailfishCustom, { action: "customer support chat closed", element_id: dp, provider: hp });
7120
7136
  }, handleUnreadMessages = (e2) => {
7121
- ae.addSailfishEvent(lp.SailfishCustom, { action: "zendesk unreadmessages", element_id: cp, provider: up });
7137
+ ae.addSailfishEvent(pp.SailfishCustom, { action: "zendesk unreadmessages", element_id: dp, provider: hp });
7122
7138
  };
7123
7139
  suppressConsoleLogsDuringCall(() => {
7124
7140
  zE_safe("messenger:on", "open", handleWidgetOpen), zE_safe("messenger:on", "close", handleWidgetClose), zE_safe("messenger:on", "unreadMessages", handleUnreadMessages);
@@ -7129,8 +7145,8 @@ async function initializeRecording(e, a, u, m2) {
7129
7145
  }
7130
7146
  return w2;
7131
7147
  }
7132
- let pp = null, dp = null;
7133
- const hp = readDebugFlag(), fp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], mp = [400, 403], gp = "CORS", yp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, wp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7148
+ let fp = null, mp = null;
7149
+ 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" };
7134
7150
  function trackDomainChangesOnce() {
7135
7151
  const e = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7136
7152
  if (e.routeWatcherIntervalId) return;
@@ -7197,7 +7213,7 @@ function shouldSkipHeadersPropagation(e, a = []) {
7197
7213
  return true;
7198
7214
  }
7199
7215
  for (const e2 of E) if (u.pathname.toLowerCase().endsWith(e2)) return true;
7200
- return !!matchUrlWithWildcard(e, [...fp, ...a]);
7216
+ return !!matchUrlWithWildcard(e, [...yp, ...a]);
7201
7217
  }
7202
7218
  function setupFetchInterceptor(e = []) {
7203
7219
  const a = window.fetch, u = getOrSetSessionId();
@@ -7232,7 +7248,7 @@ function setupFetchInterceptor(e = []) {
7232
7248
  F2[e3] = a4;
7233
7249
  }) : F2 = { ...w3.headers }), D2 = w3.body;
7234
7250
  } catch (e3) {
7235
- hp && console.warn("[Sailfish] Failed to capture request data:", e3);
7251
+ gp && console.warn("[Sailfish] Failed to capture request data:", e3);
7236
7252
  }
7237
7253
  delete F2[b];
7238
7254
  const U2 = (_a2 = getFuncSpanHeader()) == null ? void 0 : _a2.name;
@@ -7242,16 +7258,16 @@ function setupFetchInterceptor(e = []) {
7242
7258
  const I4 = getFuncSpanHeader();
7243
7259
  if (u3 instanceof Request) {
7244
7260
  const _3 = u3.clone(), O3 = new Headers(_3.headers);
7245
- O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), hp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u3.url, header: I4.name }));
7261
+ 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 }));
7246
7262
  const E3 = new Request(_3, { headers: O3 });
7247
7263
  return await e3.call(a4, E3, m4);
7248
7264
  }
7249
7265
  {
7250
7266
  const _3 = { ...m4 }, O3 = new Headers(m4.headers || {});
7251
- return O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), hp && 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);
7267
+ 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);
7252
7268
  }
7253
7269
  })(e2, a3, m3, w3, C3, _2.page_visit_uuid, I3), B2 = false;
7254
- mp.includes(U3.status) && (hp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e3, a4, u3, m4) {
7270
+ 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) {
7255
7271
  try {
7256
7272
  let m5 = u3[0], w4 = u3[1] || {};
7257
7273
  if ("string" == typeof m5 || m5 instanceof URL) {
@@ -7267,7 +7283,7 @@ function setupFetchInterceptor(e = []) {
7267
7283
  }
7268
7284
  return e3.apply(a4, u3);
7269
7285
  } catch (e4) {
7270
- throw hp && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7286
+ throw gp && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7271
7287
  }
7272
7288
  })(e2, a3, u2, x3), B2 = true);
7273
7289
  const $2 = Date.now(), z2 = U3.status, j2 = U3.ok, V2 = j2 ? "" : `Request Error: ${U3.statusText}`;
@@ -7276,7 +7292,7 @@ function setupFetchInterceptor(e = []) {
7276
7292
  const e3 = U3.clone();
7277
7293
  q2 = await e3.text();
7278
7294
  } catch (e3) {
7279
- hp && console.warn("[Sailfish] Failed to capture response data:", e3), q2 = null;
7295
+ gp && console.warn("[Sailfish] Failed to capture response data:", e3), q2 = null;
7280
7296
  }
7281
7297
  let H2 = null;
7282
7298
  try {
@@ -7284,12 +7300,12 @@ function setupFetchInterceptor(e = []) {
7284
7300
  H2[a4] = e3;
7285
7301
  });
7286
7302
  } catch (e3) {
7287
- hp && console.warn("[Sailfish] Failed to capture response headers:", e3), H2 = null;
7303
+ gp && console.warn("[Sailfish] Failed to capture response headers:", e3), H2 = null;
7288
7304
  }
7289
7305
  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;
7290
7306
  } catch (m4) {
7291
7307
  const w4 = Date.now(), b2 = false, U3 = ((_b = m4.response) == null ? void 0 : _b.status) || 500, B2 = m4.message || "Fetch request failed";
7292
- if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(gp.toLowerCase()))) return e2.apply(a3, u2);
7308
+ if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(Sp.toLowerCase()))) return e2.apply(a3, u2);
7293
7309
  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;
7294
7310
  }
7295
7311
  })(a2, m2, w2, x2, I2, u, C2);
@@ -7323,7 +7339,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7323
7339
  })(), F2 = getOrSetSessionId(), U2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7324
7340
  if (U2.sessionId = F2, U2.apiKey = e, U2.backendApi = a, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7325
7341
  else {
7326
- U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(wp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7342
+ U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(vp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7327
7343
  window.addEventListener("error", (e2) => {
7328
7344
  captureError(e2.error || e2.message);
7329
7345
  }), window.addEventListener("unhandledrejection", (e2) => {
@@ -7331,7 +7347,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7331
7347
  });
7332
7348
  })(), U2.errorInit = true), (function storeCredentialsAndConnection({ apiKey: e2, backendApi: a2 }) {
7333
7349
  X && (sessionStorage.setItem("sailfishApiKey", e2), sessionStorage.setItem("sailfishBackendApi", a2));
7334
- })({ apiKey: e, backendApi: a }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e), sessionStorage.setItem("sailfishBackendApi", a), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e, [...m2, ...fp], a).catch((e2) => console.error("Failed to send domains to not propagate header to:", e2)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e2 = []) {
7350
+ })({ 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 = []) {
7335
7351
  const a2 = XMLHttpRequest.prototype.open, u2 = XMLHttpRequest.prototype.send, m3 = XMLHttpRequest.prototype.setRequestHeader, w3 = getOrSetSessionId();
7336
7352
  XMLHttpRequest.prototype.setRequestHeader = function(e3, a3) {
7337
7353
  return this._capturedRequestHeaders || (this._capturedRequestHeaders = {}), this._capturedRequestHeaders[e3] = a3, m3.call(this, e3, a3);
@@ -7349,9 +7365,9 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7349
7365
  }
7350
7366
  const _3 = getFuncSpanHeader();
7351
7367
  if (_3) try {
7352
- this.setRequestHeader(_3.name, _3.value), hp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7368
+ this.setRequestHeader(_3.name, _3.value), gp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7353
7369
  } catch (e3) {
7354
- hp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e3);
7370
+ gp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e3);
7355
7371
  }
7356
7372
  const O3 = Date.now();
7357
7373
  let E3 = false;
@@ -7379,7 +7395,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7379
7395
  2 === a5.length && (u3[a5[0]] = a5[1]);
7380
7396
  });
7381
7397
  } catch (e4) {
7382
- hp && console.warn("[Sailfish] Failed to capture XHR response headers:", e4), u3 = null;
7398
+ gp && console.warn("[Sailfish] Failed to capture XHR response headers:", e4), u3 = null;
7383
7399
  }
7384
7400
  if (e3 >= 200 && e3 < 300) emitFinished(true, e3, "", a4, u3);
7385
7401
  else {
@@ -7395,7 +7411,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7395
7411
  sendMessage({ type: "deviceInfo", data: { deviceInfo: { language: navigator.language, userAgent: navigator.userAgent } } });
7396
7412
  })();
7397
7413
  try {
7398
- const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || yp;
7414
+ const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || bp;
7399
7415
  if (U2.ws && 1 === U2.ws.readyState) return;
7400
7416
  const b2 = withAppUrlMetadata(I2), x3 = await startRecordingSession(e, F2, a, O2, E2, D2, _2, "JS/TS", b2);
7401
7417
  if ((_b = x3.data) == null ? void 0 : _b.startRecordingSession) {
@@ -7431,7 +7447,7 @@ H && (!(function sendUserDeviceUuid() {
7431
7447
  const e = document.visibilityState, a = Date.now();
7432
7448
  "visible" === e && getOrSetSessionId();
7433
7449
  try {
7434
- sendMessage({ type: "visibilityChange", data: { state: e, url: window.location.href.split("?")[0], timestamp: a, ...getUrlAndStoredUuids() } }), hp && console.log(`[Sailfish] Tab became ${e}, sent visibility change event`);
7450
+ 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`);
7435
7451
  } catch (e2) {
7436
7452
  console.warn("[Sailfish] Failed to send visibility change event:", e2);
7437
7453
  }
@@ -7439,12 +7455,12 @@ H && (!(function sendUserDeviceUuid() {
7439
7455
  }), H && window.addEventListener("beforeunload", () => {
7440
7456
  clearPageVisitDataFromSessionStorage();
7441
7457
  });
7442
- exports.DEFAULT_CAPTURE_SETTINGS = yp, exports.DEFAULT_CONSOLE_RECORDING_SETTINGS = wp, exports.STORAGE_VERSION = 1, exports.addOrUpdateMetadata = function addOrUpdateMetadata(e) {
7458
+ exports.DEFAULT_CAPTURE_SETTINGS = bp, exports.DEFAULT_CONSOLE_RECORDING_SETTINGS = vp, exports.STORAGE_VERSION = 1, exports.addOrUpdateMetadata = function addOrUpdateMetadata(e) {
7443
7459
  const a = { type: "addOrUpdateMetadata", metadata: e };
7444
- dp && JSON.stringify(dp) === JSON.stringify(e) || (dp = e, sendMessage(a));
7445
- }, 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.getUrlAndStoredUuids = getUrlAndStoredUuids, exports.identify = function identify(e, a = {}, u = false) {
7460
+ mp && JSON.stringify(mp) === JSON.stringify(e) || (mp = e, sendMessage(a));
7461
+ }, 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) {
7446
7462
  const m2 = { type: "identify", userId: e, traits: a };
7447
- pp && pp.userId === e && JSON.stringify(pp.traits) === JSON.stringify(a) || (pp = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7463
+ fp && fp.userId === e && JSON.stringify(fp.traits) === JSON.stringify(a) || (fp = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7448
7464
  }, exports.initRecorder = async (e) => {
7449
7465
  if ("undefined" == typeof window) return;
7450
7466
  const a = window.__sailfish_recorder || (window.__sailfish_recorder = {}), u = getOrSetSessionId();
@@ -7454,7 +7470,7 @@ exports.DEFAULT_CAPTURE_SETTINGS = yp, exports.DEFAULT_CONSOLE_RECORDING_SETTING
7454
7470
  delete a.initPromise;
7455
7471
  })), a.initPromise);
7456
7472
  }, exports.initializeConsolePlugin = initializeConsolePlugin, exports.initializeDomContentEvents = initializeDomContentEvents, exports.initializeRecording = initializeRecording, exports.initializeWebSocket = initializeWebSocket, exports.isFunctionSpanTrackingEnabled = isFunctionSpanTrackingEnabled, exports.matchUrlWithWildcard = matchUrlWithWildcard, exports.openReportIssueModal = function openReportIssueModal() {
7457
- ct ? stopRecording() : (injectModalHTML(), ot && document.body.appendChild(ot));
7473
+ dt ? stopRecording() : (injectModalHTML(), at && document.body.appendChild(at));
7458
7474
  }, exports.sendDomainsToNotPropagateHeaderTo = sendDomainsToNotPropagateHeaderTo, exports.sendEvent = sendEvent, exports.sendGraphQLRequest = sendGraphQLRequest, exports.sendMessage = sendMessage, exports.startRecording = startRecording, exports.startRecordingSession = startRecordingSession, exports.trackingEvent = function trackingEvent(e) {
7459
7475
  sendMessage({ type: "trackingEvent", trackingData: e, timestamp: exports.nowTimestamp() });
7460
7476
  }, exports.withAppUrlMetadata = withAppUrlMetadata;