@sailfish-ai/recorder 1.8.2 → 1.8.7

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,7 +327,7 @@ async function deleteNotifyMessageById(e) {
327
327
  a.delete(e);
328
328
  });
329
329
  }
330
- const H = "undefined" != typeof globalThis && void 0 !== globalThis.window, Y = "undefined" != typeof globalThis && void 0 !== globalThis.document, J = "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;
331
331
  function getOrSetSessionId() {
332
332
  return H ? (window.name || (window.name = v4()), window.name) : v4();
333
333
  }
@@ -357,8 +357,8 @@ function withAppUrlMetadata(e) {
357
357
  return { ...e ?? {}, appUrl: (e == null ? void 0 : e.appUrl) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
358
358
  }
359
359
  exports.nowTimestamp = Date.now, /[1-9][0-9]{12}/.test(Date.now().toString()) || (exports.nowTimestamp = () => (/* @__PURE__ */ new Date()).getTime());
360
- const Q = readDebugFlag();
361
- let ee = null, te = false, ne = null, re = null;
360
+ const Q = readDebugFlag(), ee = "per_session";
361
+ let te = null, ne = false, re = null, oe = null, se = false, ie = null, le = null, ce = false;
362
362
  function isWebSocketOpen(e) {
363
363
  return (e == null ? void 0 : e.readyState) === WebSocket.OPEN;
364
364
  }
@@ -369,15 +369,15 @@ async function flushNotifyQueue() {
369
369
  u.onsuccess = () => a(u.result), u.onerror = () => a([]);
370
370
  })) ?? [];
371
371
  })();
372
- if (isWebSocketOpen(ee)) try {
373
- for (const a of e) ee.send(a.value), await deleteNotifyMessageById(a.id);
372
+ if (isWebSocketOpen(te)) try {
373
+ for (const a of e) te.send(a.value), await deleteNotifyMessageById(a.id);
374
374
  } catch (e2) {
375
375
  }
376
376
  }
377
377
  async function flushBufferedEvents() {
378
- if (isWebSocketOpen(ee)) if (ne) await ne;
378
+ if (isWebSocketOpen(te)) if (re) await re;
379
379
  else {
380
- ne = (async () => {
380
+ re = (async () => {
381
381
  var _a2, _b;
382
382
  const e = await (async function getAllIndexedEvents() {
383
383
  return await withStore$1("readonly", (e2) => new Promise((a2) => {
@@ -392,33 +392,33 @@ async function flushBufferedEvents() {
392
392
  for (const e2 of Object.values(a)) {
393
393
  const a2 = buildBatches(e2, (e3) => eventSize(e3.data), 52428800);
394
394
  for (const e3 of a2) {
395
- if (!isWebSocketOpen(ee)) break;
395
+ if (!isWebSocketOpen(te)) break;
396
396
  const a3 = e3.map((e4) => {
397
397
  var _a3, _b2;
398
398
  return { ...e4.data, appUrl: ((_a3 = e4.data) == null ? void 0 : _a3.appUrl) ?? ((_b2 = window == null ? void 0 : window.location) == null ? void 0 : _b2.href) };
399
399
  }), u = e3.map((e4) => e4.id).filter((e4) => null != e4);
400
400
  try {
401
401
  const e4 = JSON.stringify({ type: "events", events: a3, mapUuid: window.sfMapUuid });
402
- ee.send(e4), await deleteEventsByIds(u);
402
+ te.send(e4), await deleteEventsByIds(u);
403
403
  } catch (e4) {
404
404
  }
405
405
  }
406
406
  }
407
407
  })();
408
408
  try {
409
- await ne;
409
+ await re;
410
410
  } finally {
411
- ne = null;
411
+ re = null;
412
412
  }
413
413
  }
414
414
  }
415
415
  function sendEvent(e) {
416
416
  var _a2;
417
417
  const a = { ...e, app_url: (e == null ? void 0 : e.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
418
- if (te || !isWebSocketOpen(ee)) return void saveEventToIDB(a);
418
+ if (ne || !isWebSocketOpen(te)) return void saveEventToIDB(a);
419
419
  const u = JSON.stringify({ type: "event", event: a, mapUuid: window.sfMapUuid });
420
420
  try {
421
- ee.send(u);
421
+ te.send(u);
422
422
  } catch (e2) {
423
423
  saveEventToIDB(a);
424
424
  }
@@ -428,49 +428,104 @@ function initializeWebSocket(e, a, u) {
428
428
  const a2 = document.createElement("a");
429
429
  return a2.href = e2, `${a2.hostname}${a2.port ? `:${a2.port}` : ""}`;
430
430
  })(e), w2 = new URL(e).protocol;
431
- return ee = new $(`${"https:" === w2 ? "wss" : "ws"}://${m2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.2`, [], { connectionTimeout: 3e4 }), ee.addEventListener("open", () => {
432
- Q && console.log("WebSocket opened."), (async () => {
431
+ return te = new $(`${"https:" === w2 ? "wss" : "ws"}://${m2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.7`, [], { connectionTimeout: 3e4 }), te.addEventListener("open", () => {
432
+ Q && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (se ? "ENABLED" : "DISABLED"))), (async () => {
433
433
  try {
434
- te = true, await flushNotifyQueue(), await flushBufferedEvents();
434
+ ne = true, await flushNotifyQueue(), await flushBufferedEvents();
435
435
  } finally {
436
- te = false;
436
+ ne = false;
437
437
  }
438
- null != re && clearInterval(re), re = window.setInterval(() => {
438
+ null != oe && clearInterval(oe), oe = window.setInterval(() => {
439
439
  flushBufferedEvents();
440
440
  }, 2e3);
441
441
  })();
442
- }), ee.addEventListener("close", () => {
443
- console.log("WebSocket closed.");
444
- }), ee;
442
+ }), te.addEventListener("close", () => {
443
+ Q && console.log("[Sailfish] WebSocket closed");
444
+ }), te.addEventListener("message", (e2) => {
445
+ try {
446
+ const a2 = JSON.parse(e2.data);
447
+ if ("funcSpanTrackingControl" === a2.type) if (Q && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a2.enabled, timeoutSeconds: a2.timeoutSeconds, expirationTimestampMs: a2.expirationTimestampMs }), null !== ie && (window.clearTimeout(ie), ie = null), se = a2.enabled, ce = false, Q && console.log("[Sailfish] Function span tracking " + (a2.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a2.enabled) {
448
+ if (a2.expirationTimestampMs) {
449
+ le = a2.expirationTimestampMs;
450
+ const e3 = Date.now(), u2 = le - e3;
451
+ Q && console.log(`[Sailfish] Server expiration timestamp: ${le}, ms until expiration: ${u2}`), u2 > 0 ? ie = window.setTimeout(() => {
452
+ ce || (se = false, le = null, Q && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
453
+ }, u2) : (se = false, le = null, Q && console.log("[Sailfish] Tracking already expired, not enabling"));
454
+ } else {
455
+ const e3 = a2.timeoutSeconds || 3600;
456
+ e3 > 0 && (le = Date.now() + 1e3 * e3, ie = window.setTimeout(() => {
457
+ ce || (se = false, le = null, Q && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e3}s (legacy)`));
458
+ }, 1e3 * e3));
459
+ }
460
+ try {
461
+ const e3 = getOrSetSessionId();
462
+ te.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e3, enabled: true, configurationType: "global" })), Q && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e3}`);
463
+ } catch (e3) {
464
+ Q && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e3);
465
+ }
466
+ } else le = null;
467
+ } catch (e3) {
468
+ }
469
+ }), te;
445
470
  }
446
471
  function sendMessage(e) {
447
472
  var _a2;
448
473
  "sessionId" in e || (e.sessionId = getOrSetSessionId());
449
474
  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) });
450
- if (isWebSocketOpen(ee)) try {
451
- ee.send(a);
475
+ if (isWebSocketOpen(te)) try {
476
+ te.send(a);
452
477
  } catch (e2) {
453
478
  saveNotifyMessageToIDB(a);
454
479
  }
455
480
  else saveNotifyMessageToIDB(a);
456
481
  }
457
- var oe, se, ie = {}, le = {}, ce = {}, pe = {};
482
+ function enableFunctionSpanTracking() {
483
+ if (Q && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), se = true, ce = true, le = null, null !== ie && (window.clearTimeout(ie), ie = null), isWebSocketOpen(te)) try {
484
+ const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: ee };
485
+ te.send(JSON.stringify(e));
486
+ } catch (e) {
487
+ console.error("[FUNCSPAN START] ✗ Failed to send tracking session report:", e);
488
+ }
489
+ else Q && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
490
+ }
491
+ function disableFunctionSpanTracking() {
492
+ if (Q && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(te)) try {
493
+ const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: ee };
494
+ te.send(JSON.stringify(e));
495
+ } catch (e) {
496
+ console.error("[FUNCSPAN STOP] ✗ Failed to send tracking stop report:", e);
497
+ }
498
+ else console.warn("[FUNCSPAN STOP] ✗ WebSocket not open, cannot notify tracking end");
499
+ ce && (se = false, ce = false, le = null, Q && console.log("[Sailfish] LOCAL tracking mode disabled")), null !== ie && (window.clearTimeout(ie), ie = null);
500
+ }
501
+ function isFunctionSpanTrackingEnabled() {
502
+ return se;
503
+ }
504
+ function getFuncSpanHeader() {
505
+ if (!se) return null;
506
+ if (null !== le) {
507
+ if (Date.now() >= le) return se = false, le = null, Q && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
508
+ }
509
+ return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-0-5-5-0-1.0" };
510
+ }
511
+ const pe = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
512
+ var de, he, me = {}, ge = {}, ye = {}, we = {};
458
513
  function requireBase64() {
459
- if (oe) return pe;
460
- oe = 1;
514
+ if (de) return we;
515
+ de = 1;
461
516
  var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
462
- return pe.encode = function(a) {
517
+ return we.encode = function(a) {
463
518
  if (0 <= a && a < e.length) return e[a];
464
519
  throw new TypeError("Must be between 0 and 63: " + a);
465
- }, pe.decode = function(e2) {
520
+ }, we.decode = function(e2) {
466
521
  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;
467
- }, pe;
522
+ }, we;
468
523
  }
469
524
  function requireBase64Vlq() {
470
- if (se) return ce;
471
- se = 1;
525
+ if (he) return ye;
526
+ he = 1;
472
527
  var e = requireBase64();
473
- return ce.encode = function base64VLQ_encode(a) {
528
+ return ye.encode = function base64VLQ_encode(a) {
474
529
  var u, m2 = "", w2 = (function toVLQSigned(e2) {
475
530
  return e2 < 0 ? 1 + (-e2 << 1) : 0 + (e2 << 1);
476
531
  })(a);
@@ -478,7 +533,7 @@ function requireBase64Vlq() {
478
533
  u = 31 & w2, (w2 >>>= 5) > 0 && (u |= 32), m2 += e.encode(u);
479
534
  } while (w2 > 0);
480
535
  return m2;
481
- }, ce.decode = function base64VLQ_decode(a, u, m2) {
536
+ }, ye.decode = function base64VLQ_decode(a, u, m2) {
482
537
  var w2, b2, C2 = a.length, x2 = 0, I2 = 0;
483
538
  do {
484
539
  if (u >= C2) throw new Error("Expected more digits in base 64 VLQ value.");
@@ -489,11 +544,11 @@ function requireBase64Vlq() {
489
544
  var a2 = e2 >> 1;
490
545
  return 1 & ~e2 ? a2 : -a2;
491
546
  })(x2), m2.rest = u;
492
- }, ce;
547
+ }, ye;
493
548
  }
494
- var de, he = {};
549
+ var be, ve = {};
495
550
  function requireUtil() {
496
- return de || (de = 1, (function(e) {
551
+ return be || (be = 1, (function(e) {
497
552
  e.getArg = function getArg(e2, a2, u2) {
498
553
  if (a2 in e2) return e2[a2];
499
554
  if (3 === arguments.length) return u2;
@@ -605,12 +660,12 @@ function requireUtil() {
605
660
  }
606
661
  return m2(a2);
607
662
  };
608
- })(he)), he;
663
+ })(ve)), ve;
609
664
  }
610
- var me, ge = {};
665
+ var Ce, ke = {};
611
666
  function requireArraySet() {
612
- if (me) return ge;
613
- me = 1;
667
+ if (Ce) return ke;
668
+ Ce = 1;
614
669
  var e = requireUtil(), a = Object.prototype.hasOwnProperty, u = "undefined" != typeof Map;
615
670
  function ArraySet() {
616
671
  this._array = [], this._set = u ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
@@ -641,12 +696,12 @@ function requireArraySet() {
641
696
  throw new Error("No element indexed by " + e2);
642
697
  }, ArraySet.prototype.toArray = function ArraySet_toArray() {
643
698
  return this._array.slice();
644
- }, ge.ArraySet = ArraySet, ge;
699
+ }, ke.ArraySet = ArraySet, ke;
645
700
  }
646
- var ye, we, be = {};
701
+ var xe, Me, Ie = {};
647
702
  function requireMappingList() {
648
- if (ye) return be;
649
- ye = 1;
703
+ if (xe) return Ie;
704
+ xe = 1;
650
705
  var e = requireUtil();
651
706
  function MappingList() {
652
707
  this._array = [], this._sorted = true, this._last = { generatedLine: -1, generatedColumn: 0 };
@@ -660,11 +715,11 @@ function requireMappingList() {
660
715
  })(this._last, a) ? (this._sorted = false, this._array.push(a)) : (this._last = a, this._array.push(a));
661
716
  }, MappingList.prototype.toArray = function MappingList_toArray() {
662
717
  return this._sorted || (this._array.sort(e.compareByGeneratedPositionsInflated), this._sorted = true), this._array;
663
- }, be.MappingList = MappingList, be;
718
+ }, Ie.MappingList = MappingList, Ie;
664
719
  }
665
720
  function requireSourceMapGenerator() {
666
- if (we) return le;
667
- we = 1;
721
+ if (Me) return ge;
722
+ Me = 1;
668
723
  var e = requireBase64Vlq(), a = requireUtil(), u = requireArraySet().ArraySet, m2 = requireMappingList().MappingList;
669
724
  function SourceMapGenerator(e2) {
670
725
  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;
@@ -741,11 +796,11 @@ function requireSourceMapGenerator() {
741
796
  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;
742
797
  }, SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
743
798
  return JSON.stringify(this.toJSON());
744
- }, le.SourceMapGenerator = SourceMapGenerator, le;
799
+ }, ge.SourceMapGenerator = SourceMapGenerator, ge;
745
800
  }
746
- var ve, Ce = {}, xe = {};
801
+ var Oe, Ee = {}, Le = {};
747
802
  function requireBinarySearch() {
748
- return ve || (ve = 1, (function(e) {
803
+ return Oe || (Oe = 1, (function(e) {
749
804
  function recursiveSearch(a, u, m2, w2, b2, C2) {
750
805
  var x2 = Math.floor((u - a) / 2) + a, I2 = b2(m2, w2[x2], true);
751
806
  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;
@@ -757,11 +812,11 @@ function requireBinarySearch() {
757
812
  for (; b2 - 1 >= 0 && 0 === m2(u[b2], u[b2 - 1], true); ) --b2;
758
813
  return b2;
759
814
  };
760
- })(xe)), xe;
815
+ })(Le)), Le;
761
816
  }
762
- var ke, Me, Ie = {};
817
+ var Ae, Te, De = {};
763
818
  function requireQuickSort() {
764
- if (ke) return Ie;
819
+ if (Ae) return De;
765
820
  function SortTemplate(e2) {
766
821
  function swap(e3, a, u) {
767
822
  var m2 = e3[a];
@@ -780,21 +835,21 @@ function requireQuickSort() {
780
835
  }
781
836
  };
782
837
  }
783
- ke = 1;
838
+ Ae = 1;
784
839
  let e = /* @__PURE__ */ new WeakMap();
785
- return Ie.quickSort = function(a, u, m2 = 0) {
840
+ return De.quickSort = function(a, u, m2 = 0) {
786
841
  let w2 = e.get(u);
787
842
  void 0 === w2 && (w2 = (function cloneSort(e2) {
788
843
  let a2 = SortTemplate.toString();
789
844
  return new Function(`return ${a2}`)()(e2);
790
845
  })(u), e.set(u, w2)), w2(a, u, m2, a.length - 1);
791
- }, Ie;
846
+ }, De;
792
847
  }
793
- var Oe, Ee, Le = {};
794
- var Ae = (function requireSourceMap() {
795
- return Ee || (Ee = 1, ie.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, ie.SourceMapConsumer = (function requireSourceMapConsumer() {
796
- if (Me) return Ce;
797
- Me = 1;
848
+ var Ue, Be, je = {};
849
+ var Ge = (function requireSourceMap() {
850
+ return Be || (Be = 1, me.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, me.SourceMapConsumer = (function requireSourceMapConsumer() {
851
+ if (Te) return Ee;
852
+ Te = 1;
798
853
  var e = requireUtil(), a = requireBinarySearch(), u = requireArraySet().ArraySet, m2 = requireBase64Vlq(), w2 = requireQuickSort().quickSort;
799
854
  function SourceMapConsumer(a2, u2) {
800
855
  var m3 = a2;
@@ -851,7 +906,7 @@ var Ae = (function requireSourceMap() {
851
906
  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];
852
907
  }
853
908
  return b3;
854
- }, Ce.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
909
+ }, Ee.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
855
910
  var u2, m3 = a2;
856
911
  if (null != this.sourceRoot && (m3 = e.relative(this.sourceRoot, m3)), this._sources.has(m3)) return this._sources.indexOf(m3);
857
912
  for (u2 = 0; u2 < this._absoluteSources.length; ++u2) if (this._absoluteSources[u2] == a2) return u2;
@@ -968,7 +1023,7 @@ var Ae = (function requireSourceMap() {
968
1023
  if (b3.source === m3.source) return { line: e.getArg(b3, "generatedLine", null), column: e.getArg(b3, "generatedColumn", null), lastColumn: e.getArg(b3, "lastGeneratedColumn", null) };
969
1024
  }
970
1025
  return { line: null, column: null, lastColumn: null };
971
- }, Ce.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1026
+ }, Ee.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
972
1027
  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]);
973
1028
  return e2;
974
1029
  } }), IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(u2) {
@@ -1007,10 +1062,10 @@ var Ae = (function requireSourceMap() {
1007
1062
  this.__generatedMappings.push(E2), "number" == typeof E2.originalLine && this.__originalMappings.push(E2);
1008
1063
  }
1009
1064
  w2(this.__generatedMappings, e.compareByGeneratedPositionsDeflated), w2(this.__originalMappings, e.compareByOriginalPositions);
1010
- }, Ce.IndexedSourceMapConsumer = IndexedSourceMapConsumer, Ce;
1011
- })().SourceMapConsumer, ie.SourceNode = (function requireSourceNode() {
1012
- if (Oe) return Le;
1013
- Oe = 1;
1065
+ }, Ee.IndexedSourceMapConsumer = IndexedSourceMapConsumer, Ee;
1066
+ })().SourceMapConsumer, me.SourceNode = (function requireSourceNode() {
1067
+ if (Ue) return je;
1068
+ Ue = 1;
1014
1069
  var e = requireSourceMapGenerator().SourceMapGenerator, a = requireUtil(), u = /(\r?\n)/, m2 = "$$$isSourceNode$$$";
1015
1070
  function SourceNode(e2, a2, u2, w2, b2) {
1016
1071
  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);
@@ -1094,9 +1149,24 @@ var Ae = (function requireSourceMap() {
1094
1149
  }), this.walkSourceContents(function(e2, a3) {
1095
1150
  m3.setSourceContent(e2, a3);
1096
1151
  }), { code: u2.code, map: m3 };
1097
- }, Le.SourceNode = SourceNode, Le;
1098
- })().SourceNode), ie;
1152
+ }, je.SourceNode = SourceNode, je;
1153
+ })().SourceNode), me;
1099
1154
  })();
1155
+ const Ve = /* @__PURE__ */ new Map(), qe = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1156
+ async function getConsumerFor(e, a) {
1157
+ const u = (e || `/assets/${a}`).split("?")[0], m2 = [`${u}.map`, u.replace(/\.js$/, ".js.map"), `/assets/${a}.map`];
1158
+ for (const e2 of m2) try {
1159
+ if (Ve.has(e2)) return Ve.get(e2);
1160
+ const a2 = await fetch(e2);
1161
+ if (!a2.ok) continue;
1162
+ const u2 = await a2.json();
1163
+ if (!u2 || !u2.mappings || !u2.sources) continue;
1164
+ const m3 = await new Ge.SourceMapConsumer(u2);
1165
+ return Ve.set(e2, m3), m3;
1166
+ } catch {
1167
+ }
1168
+ return null;
1169
+ }
1100
1170
  async function captureError(e, a = false) {
1101
1171
  let u, m2;
1102
1172
  e instanceof Error ? (u = e.message, m2 = e.stack || "No stack trace") : "string" == typeof e ? (u = e, m2 = "No stack trace available") : (u = "Unknown error occurred", m2 = "No stack trace available");
@@ -1104,46 +1174,37 @@ async function captureError(e, a = false) {
1104
1174
  if (!e2) return ["No stack trace available"];
1105
1175
  const a2 = Array.isArray(e2) ? e2 : e2.split("\n"), u2 = [];
1106
1176
  for (const e3 of a2) {
1107
- const a3 = e3.match(/\/assets\/([^\/]+\.js):(\d+):(\d+)/);
1177
+ const a3 = e3.match(qe);
1108
1178
  if (!a3) {
1109
1179
  u2.push(e3);
1110
1180
  continue;
1111
1181
  }
1112
- const [, m3, w3, b2] = a3, C2 = `/assets/${m3.split("/").pop()}.map`;
1113
- try {
1114
- const a4 = await fetch(C2);
1115
- if (!a4.ok) break;
1116
- const m4 = await a4.json();
1117
- if (!m4.sources || !Array.isArray(m4.sources)) {
1118
- u2.push(e3);
1119
- continue;
1120
- }
1121
- const x2 = (await new Ae.SourceMapConsumer(m4)).originalPositionFor({ line: parseInt(w3, 10) - 1, column: parseInt(b2, 10) });
1122
- if (x2.source && x2.line) {
1123
- const e4 = m4.sources.indexOf(x2.source);
1124
- let a5 = [];
1125
- if (-1 !== e4 && m4.sourcesContent && m4.sourcesContent[e4]) {
1126
- const u3 = m4.sourcesContent[e4].split("\n"), w4 = x2.line || 1, b3 = Math.max(w4 - 6, 0), C3 = Math.min(w4 + 4, u3.length);
1127
- a5 = u3.slice(b3, C3).map((e5, a6) => {
1128
- const u4 = b3 + a6 + 1;
1129
- return `${u4 === w4 ? "👉" : " "} ${u4.toString().padStart(4)} | ${e5.trim()}`;
1130
- });
1131
- }
1132
- u2.push(`${x2.source}:${x2.line}:${x2.column} (${x2.name || "anonymous"})`);
1133
- } else u2.push(e3);
1134
- } catch (a4) {
1135
- u2.push(e3);
1182
+ const [, m3, w3, b3, C2] = a3, x2 = parseInt(b3, 10), I2 = Math.max(0, parseInt(C2, 10) - 1);
1183
+ if (!Number.isFinite(x2) || !Number.isFinite(I2)) {
1184
+ u2.push(e3 + " [Invalid line/column]");
1185
+ continue;
1186
+ }
1187
+ const _2 = await getConsumerFor(m3, w3);
1188
+ if (!_2) {
1189
+ u2.push(`${e3} [No source map found for ${w3}]`);
1190
+ continue;
1136
1191
  }
1192
+ let O2 = _2.originalPositionFor({ line: x2, column: I2, bias: Ge.SourceMapConsumer.GREATEST_LOWER_BOUND });
1193
+ if (!O2.source || null == O2.line) for (let e4 = 1; e4 <= 20 && (O2 = _2.originalPositionFor({ line: x2, column: Math.max(0, I2 - e4), bias: Ge.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e4++) ;
1194
+ if (O2.source && null != O2.line) {
1195
+ const e4 = O2.name || "anonymous";
1196
+ u2.push(`${O2.source}:${O2.line}:${O2.column ?? 0} (${e4})`);
1197
+ } else u2.push(`${e3} [No mapping found in ${w3}]`);
1137
1198
  }
1138
1199
  return u2;
1139
- })(m2);
1140
- sendMessage({ type: "event", event: { type: 6, data: { payload: { message: u, stack: m2, filteredStack: w2.filter((e2) => !e2.includes("chunk-") && !e2.includes("react-dom")), userAgent: navigator.userAgent, url: window.location.href, timestamp: Date.now(), level: "error" } } } });
1200
+ })(m2), b2 = w2.filter((e2) => !e2.includes("chunk-") && !e2.includes("react-dom"));
1201
+ 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" } } } });
1141
1202
  }
1142
- const Te = readDebugFlag();
1143
- const De = readDebugFlag();
1203
+ const He = readDebugFlag();
1204
+ const Je = readDebugFlag();
1144
1205
  function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1145
1206
  const C2 = `${u.backendApi}/graphql/?apiKey=${u.apiKey}`;
1146
- return De && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1207
+ return Je && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1147
1208
  let b3 = 0;
1148
1209
  const attemptRequest = async () => {
1149
1210
  try {
@@ -1151,12 +1212,12 @@ function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1151
1212
  } catch (e3) {
1152
1213
  if (b3++, b3 > u2) throw e3;
1153
1214
  const C3 = m3 * Math.pow(w3, b3 - 1);
1154
- return Te && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1215
+ return He && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1155
1216
  }
1156
1217
  };
1157
1218
  return attemptRequest();
1158
1219
  })(() => fetch(C2, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ operationName: e, query: a, variables: u }) }).then((e2) => {
1159
- if (De && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1220
+ if (Je && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1160
1221
  return e2.json();
1161
1222
  }), "Sending GraphQL request to Sailfish AI", m2, w2, b2);
1162
1223
  }
@@ -1172,9 +1233,9 @@ function sendDomainsToNotPropagateHeaderTo(e, a, u) {
1172
1233
  function createTriageFromRecorder(e, a, u, m2, w2, b2) {
1173
1234
  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 });
1174
1235
  }
1175
- const Ue = { 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 } }, Be = { shortcuts: { ...Ue }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1236
+ const Ye = { 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 } }, Xe = { shortcuts: { ...Ye }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1176
1237
  } };
1177
- let je = null, Ge = { mode: "lookback", description: "" }, Ve = null, qe = null, He = null, Ye = false;
1238
+ let Qe = null, et = { mode: "lookback", description: "" }, nt = null, ot = null, st = null, it = false;
1178
1239
  function getShortcutKeyCmdCtrlLabel() {
1179
1240
  return (function isMacPlatform() {
1180
1241
  const e = navigator.userAgentData;
@@ -1187,11 +1248,11 @@ function getShortcutLabelFromContext(e) {
1187
1248
  return e2.requireCmdCtrl && a.push(getShortcutKeyCmdCtrlLabel()), a.push((function formatShortcutKeyLabel(e3) {
1188
1249
  return ({ escape: "esc" }[e3.toLowerCase()] || e3).toUpperCase();
1189
1250
  })(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 ? " + " : "");
1190
- })(Be.shortcuts[e]);
1251
+ })(Xe.shortcuts[e]);
1191
1252
  }
1192
1253
  function setupIssueReporting(e) {
1193
- Be.apiKey = e.apiKey, Be.backendApi = e.backendApi, Be.resolveSessionId = e.getSessionId, e.customBaseUrl && (Be.triageBaseUrl = e.customBaseUrl), Be.shortcuts = (function mergeShortcutsConfig(e2) {
1194
- const a2 = { ...Ue };
1254
+ Xe.apiKey = e.apiKey, Xe.backendApi = e.backendApi, Xe.resolveSessionId = e.getSessionId, e.customBaseUrl && (Xe.triageBaseUrl = e.customBaseUrl), Xe.shortcuts = (function mergeShortcutsConfig(e2) {
1255
+ const a2 = { ...Ye };
1195
1256
  if (!e2) return a2;
1196
1257
  "boolean" == typeof e2.enabled && (a2.enabled = e2.enabled);
1197
1258
  const u = ["openModalExistingMode", "openModalCaptureNewMode", "closeModal", "submitReport", "startRecording", "stopRecording"];
@@ -1201,7 +1262,7 @@ function setupIssueReporting(e) {
1201
1262
  }
1202
1263
  return a2;
1203
1264
  })(e.shortcuts);
1204
- const { shortcuts: a } = Be;
1265
+ const { shortcuts: a } = Xe;
1205
1266
  window.addEventListener("keydown", (e2) => {
1206
1267
  const u = (function isTypingInInput() {
1207
1268
  const e3 = document.activeElement;
@@ -1211,20 +1272,20 @@ function setupIssueReporting(e) {
1211
1272
  } : injectModalHTML;
1212
1273
  if (C2 && shortcutUsed("openModalExistingMode")) return e2.preventDefault(), void x2("lookback");
1213
1274
  if (C2 && shortcutUsed("openModalCaptureNewMode")) return e2.preventDefault(), void x2("startnow");
1214
- if (b2 && !Ye && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1275
+ if (b2 && !it && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1215
1276
  if (b2 && shortcutUsed("submitReport")) {
1216
1277
  const a2 = document.getElementById("sf-issue-submit-btn");
1217
1278
  return void (a2 && !a2.disabled && (e2.preventDefault(), a2.click()));
1218
1279
  }
1219
- if (Ye && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1220
- if (b2 && "startnow" === Ge.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1280
+ if (it && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1281
+ if (b2 && "startnow" === et.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1221
1282
  const a2 = document.getElementById("sf-start-recording-btn");
1222
1283
  return void (a2 && (e2.preventDefault(), a2.click()));
1223
1284
  }
1224
1285
  });
1225
1286
  }
1226
1287
  function closeModal() {
1227
- Be.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (je == null ? void 0 : je.parentNode) && je.parentNode.removeChild(je), je = null, Ye || (Ge = { mode: "lookback", description: "", occurredInThisTab: true }, Ve = null, qe = null), He && clearInterval(He);
1288
+ Xe.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (Qe == null ? void 0 : Qe.parentNode) && Qe.parentNode.removeChild(Qe), Qe = null, it || (et = { mode: "lookback", description: "", occurredInThisTab: true }, nt = null, ot = null), st && clearInterval(st);
1228
1289
  }
1229
1290
  function activateModalIsolation(e) {
1230
1291
  e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1");
@@ -1283,9 +1344,9 @@ function activateModalIsolation(e) {
1283
1344
  };
1284
1345
  }
1285
1346
  function injectModalHTML(e = "lookback") {
1286
- je && (je.remove(), je = null), je = document.createElement("div"), je.id = "sf-report-issue-modal";
1347
+ Qe && (Qe.remove(), Qe = null), Qe = document.createElement("div"), Qe.id = "sf-report-issue-modal";
1287
1348
  const a = "startnow" === e;
1288
- je.innerHTML = `
1349
+ Qe.innerHTML = `
1289
1350
  <div style="position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9998;"></div>
1290
1351
  <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
1291
1352
  background:#fff; padding:24px; border-radius:12px;
@@ -1333,7 +1394,7 @@ function injectModalHTML(e = "lookback") {
1333
1394
  <textarea id="sf-issue-description" placeholder="Add description here"
1334
1395
  style="width:100%; height:80px; padding:8px 12px; font-size:14px;
1335
1396
  border:1px solid #cbd5e1; border-radius:6px; margin-bottom:20px;
1336
- resize:none; outline:none;">${Ge.description}</textarea>
1397
+ resize:none; outline:none;">${et.description}</textarea>
1337
1398
 
1338
1399
  <div id="sf-lookback-container" style="display:${a ? "none" : "block"}; margin-bottom:20px;">
1339
1400
  <label for="sf-lookback-minutes" style="display:block; font-size:14px; font-weight:500; margin-bottom:6px;">
@@ -1421,8 +1482,8 @@ function injectModalHTML(e = "lookback") {
1421
1482
  <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>
1422
1483
  </div>
1423
1484
  </div>
1424
- `, Ge.mode = e, document.body.appendChild(je), (function bindListeners() {
1425
- const e2 = je == null ? void 0 : je.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");
1485
+ `, et.mode = e, document.body.appendChild(Qe), (function bindListeners() {
1486
+ const e2 = Qe == null ? void 0 : Qe.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");
1426
1487
  e2 == null ? void 0 : e2.forEach((e3) => {
1427
1488
  e3.addEventListener("click", (e4) => {
1428
1489
  const a3 = e4.currentTarget.dataset.mode;
@@ -1430,20 +1491,29 @@ function injectModalHTML(e = "lookback") {
1430
1491
  });
1431
1492
  }), u && (u.onclick = closeModal);
1432
1493
  w2 && w2.addEventListener("change", () => {
1433
- "lookback" === Ge.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1494
+ "lookback" === et.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1434
1495
  });
1435
1496
  a2 && (a2.onclick = () => {
1436
1497
  const e3 = document.getElementById("sf-issue-description");
1437
- e3 && (Ge.description = e3.value), (function startCountdownThenRecord() {
1498
+ e3 && (et.description = e3.value), (function startCountdownThenRecord() {
1438
1499
  if (document.getElementById("sf-countdown-overlay")) return;
1439
1500
  const e4 = document.createElement("div");
1440
1501
  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 ";
1441
1502
  let a3 = 3;
1442
1503
  e4.textContent = a3.toString(), document.body.appendChild(e4);
1443
- const u2 = setInterval(() => {
1444
- a3--, a3 > 0 ? e4.textContent = a3.toString() : (clearInterval(u2), document.body.removeChild(e4), Ve = Date.now(), Ye = true, closeModal(), (function showFloatingTimer() {
1445
- const e5 = document.createElement("div");
1446
- e5.id = "sf-recording-indicator", e5.style.cssText = "\n position: fixed;\n bottom: 20px;\n right: 20px;\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 20px rgba(0,0,0,0.15);\n padding: 8px 12px;\n font-family: sans-serif;\n font-size: 14px;\n display: flex;\n align-items: start;\n gap: 24px;\n z-index: 10000;\n cursor: pointer;\n ", e5.innerHTML = `
1504
+ const u2 = setInterval(async () => {
1505
+ if (a3--, a3 > 0) e4.textContent = a3.toString();
1506
+ else {
1507
+ clearInterval(u2), document.body.removeChild(e4), nt = Date.now(), it = true;
1508
+ try {
1509
+ const { enableFunctionSpanTracking: e5 } = await Promise.resolve().then(() => pe);
1510
+ e5();
1511
+ } catch (e5) {
1512
+ console.error("[Report Issue] Failed to enable function span tracking:", e5);
1513
+ }
1514
+ closeModal(), (function showFloatingTimer() {
1515
+ const e5 = document.createElement("div");
1516
+ e5.id = "sf-recording-indicator", e5.style.cssText = "\n position: fixed;\n bottom: 20px;\n right: 20px;\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 20px rgba(0,0,0,0.15);\n padding: 8px 12px;\n font-family: sans-serif;\n font-size: 14px;\n display: flex;\n align-items: start;\n gap: 24px;\n z-index: 10000;\n cursor: pointer;\n ", e5.innerHTML = `
1447
1517
  <div style="display:flex; align-items:center; gap:8px;">
1448
1518
  <div style="width:32px; height:32px; background:#FC5555; border-radius:6px; border:1px solid #991b1b; display:flex; align-items:center; justify-content:center;">
1449
1519
  <div style="width:10px; height:10px; background:white; border-radius:2px;"></div>
@@ -1460,22 +1530,23 @@ function injectModalHTML(e = "lookback") {
1460
1530
  </span>
1461
1531
  </div>
1462
1532
  `, e5.addEventListener("click", () => stopRecording()), document.body.appendChild(e5);
1463
- const a4 = e5.querySelector("#sf-recording-timer");
1464
- if (!a4) return;
1465
- He = setInterval(() => {
1466
- const e6 = Date.now() - (Ve ?? Date.now()), u3 = Math.floor(e6 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e6 % 6e4 / 1e3).toString().padStart(2, "0");
1467
- a4.textContent = `${u3}:${m3}`;
1468
- }, 1e3);
1469
- })());
1533
+ const a4 = e5.querySelector("#sf-recording-timer");
1534
+ if (!a4) return;
1535
+ st = setInterval(() => {
1536
+ const e6 = Date.now() - (nt ?? Date.now()), u3 = Math.floor(e6 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e6 % 6e4 / 1e3).toString().padStart(2, "0");
1537
+ a4.textContent = `${u3}:${m3}`;
1538
+ }, 1e3);
1539
+ })();
1540
+ }
1470
1541
  }, 1e3);
1471
1542
  })();
1472
1543
  });
1473
- je == null ? void 0 : je.addEventListener("click", (e3) => {
1544
+ Qe == null ? void 0 : Qe.addEventListener("click", (e3) => {
1474
1545
  var _a2;
1475
1546
  if (e3.target.closest("#sf-issue-submit-btn")) {
1476
- const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = Ge.mode;
1547
+ const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = et.mode;
1477
1548
  let u2, m3;
1478
- if (Ge.description = e4, "startnow" === a3) u2 = Ve ?? Date.now() - 3e5, m3 = qe ?? Date.now();
1549
+ if (et.description = e4, "startnow" === a3) u2 = nt ?? Date.now() - 3e5, m3 = ot ?? Date.now();
1479
1550
  else {
1480
1551
  const e5 = 60 * Number((w2 == null ? void 0 : w2.value) || "2") * 1e3;
1481
1552
  m3 = Date.now(), u2 = m3 - e5;
@@ -1484,9 +1555,9 @@ function injectModalHTML(e = "lookback") {
1484
1555
  var _a3, _b;
1485
1556
  try {
1486
1557
  showTriageStatusModal(true);
1487
- const m4 = await createTriageFromRecorder(Be.apiKey, Be.backendApi, (function getSessionIdSafely() {
1488
- if (!Be.resolveSessionId) throw new Error("getSessionId not defined");
1489
- return Be.resolveSessionId();
1558
+ const m4 = await createTriageFromRecorder(Xe.apiKey, Xe.backendApi, (function getSessionIdSafely() {
1559
+ if (!Xe.resolveSessionId) throw new Error("getSessionId not defined");
1560
+ return Xe.resolveSessionId();
1490
1561
  })(), e5, a4, u3), w3 = (_b = (_a3 = m4 == null ? void 0 : m4.data) == null ? void 0 : _a3.createTriageFromRecorder) == null ? void 0 : _b.id;
1491
1562
  w3 ? showTriageStatusModal(false, w3) : (console.error("No Triage ID returned from backend."), showTriageStatusModal(false, null));
1492
1563
  } catch (e6) {
@@ -1495,27 +1566,34 @@ function injectModalHTML(e = "lookback") {
1495
1566
  })(`${u2}`, `${m3}`, e4);
1496
1567
  }
1497
1568
  });
1498
- })(), Be.deactivateIsolation = activateModalIsolation(je);
1569
+ })(), Xe.deactivateIsolation = activateModalIsolation(Qe);
1499
1570
  }
1500
1571
  function setActiveTab(e) {
1501
- Ge.mode = e;
1502
- const a = je == null ? void 0 : je.querySelector("#sf-tab-lookback"), u = je == null ? void 0 : je.querySelector("#sf-tab-startnow");
1572
+ et.mode = e;
1573
+ const a = Qe == null ? void 0 : Qe.querySelector("#sf-tab-lookback"), u = Qe == null ? void 0 : Qe.querySelector("#sf-tab-startnow");
1503
1574
  "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");
1504
1575
  }
1505
1576
  function updateModeSpecificUI(e) {
1506
1577
  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");
1507
1578
  if (a && u && m2 && w2 && b2 && C2 && x2) if ("startnow" === e) {
1508
1579
  m2.style.display = "block", x2.style.display = "none", C2.style.justifyContent = "space-between", a.textContent = "I want to reproduce the issue right now.";
1509
- const e2 = null !== Ve && null !== qe;
1510
- if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", Ve && qe) {
1511
- const e3 = Math.floor((qe - Ve) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1580
+ const e2 = null !== nt && null !== ot;
1581
+ if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", nt && ot) {
1582
+ const e3 = Math.floor((ot - nt) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1512
1583
  w2.style.display = "block", b2.textContent = `${a2}:${u2}`;
1513
1584
  } else w2.style.display = "none";
1514
1585
  } 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";
1515
1586
  }
1516
- function stopRecording() {
1587
+ async function stopRecording() {
1517
1588
  var _a2;
1518
- qe = Date.now(), Ye = false, He && clearInterval(He), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove(), (function reopenModalAfterStop() {
1589
+ ot = Date.now(), it = false, st && clearInterval(st), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1590
+ try {
1591
+ const { disableFunctionSpanTracking: e } = await Promise.resolve().then(() => pe);
1592
+ e();
1593
+ } catch (e) {
1594
+ console.error("[Report Issue] Failed to disable function span tracking:", e);
1595
+ }
1596
+ !(function reopenModalAfterStop() {
1519
1597
  injectModalHTML("startnow");
1520
1598
  const e = document.getElementById("sf-start-recording-btn");
1521
1599
  if (e) {
@@ -1523,17 +1601,17 @@ function stopRecording() {
1523
1601
  a2 && (a2.textContent = "Re-record");
1524
1602
  }
1525
1603
  const a = document.getElementById("sf-recording-timer-label"), u = document.getElementById("sf-recording-timer-display");
1526
- if (a && u && Ve && qe) {
1527
- const e2 = Math.floor((qe - Ve) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1604
+ if (a && u && nt && ot) {
1605
+ const e2 = Math.floor((ot - nt) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1528
1606
  u.textContent = `${m3}:${w3}`, a.style.display = "block";
1529
1607
  }
1530
1608
  const m2 = document.getElementById("sf-issue-description");
1531
- m2 && (m2.value = Ge.description);
1609
+ m2 && (m2.value = et.description);
1532
1610
  const w2 = document.querySelector('input[value="startnow"]');
1533
1611
  w2 && (w2.checked = true);
1534
1612
  const b2 = document.getElementById("sf-inline-record-chip"), C2 = document.getElementById("sf-inline-record-timer");
1535
1613
  if (b2 && C2) {
1536
- const e2 = Math.floor(((qe ?? 0) - (Ve ?? 0)) / 1e3), a2 = Math.floor(e2 / 60).toString().padStart(2, "0"), u2 = Math.floor(e2 % 60).toString().padStart(2, "0");
1614
+ const e2 = Math.floor(((ot ?? 0) - (nt ?? 0)) / 1e3), a2 = Math.floor(e2 / 60).toString().padStart(2, "0"), u2 = Math.floor(e2 % 60).toString().padStart(2, "0");
1537
1615
  C2.textContent = `${a2}:${u2}`, C2.style.color = "black", b2.style.display = "flex";
1538
1616
  }
1539
1617
  const x2 = document.getElementById("sf-issue-submit-btn");
@@ -1546,7 +1624,7 @@ function showTriageStatusModal(e, a) {
1546
1624
  var _a3, _b;
1547
1625
  (_a3 = document.getElementById("sf-report-issue-modal")) == null ? void 0 : _a3.remove(), (_b = document.getElementById("sf-triage-status-modal")) == null ? void 0 : _b.remove();
1548
1626
  })();
1549
- const u = a ? `${Be.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1627
+ const u = a ? `${Xe.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1550
1628
  m2.id = "sf-triage-status-modal", Object.assign(m2.style, { position: "fixed", inset: "0", zIndex: "9998", display: "flex", alignItems: "center", justifyContent: "center" });
1551
1629
  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>';
1552
1630
  m2.innerHTML = `
@@ -1608,7 +1686,7 @@ function showTriageStatusModal(e, a) {
1608
1686
  function fadeCardAndRemove(e, a, u = 300) {
1609
1687
  a.style.opacity = "0", a.addEventListener("transitionend", () => e.remove(), { once: true }), setTimeout(() => e.remove(), u + 100);
1610
1688
  }
1611
- var Je = Object.defineProperty, b$1 = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? Je(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), Xe = Object.defineProperty, xn = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? Xe(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), Qe = ((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))(Qe || {});
1689
+ var at = Object.defineProperty, b$1 = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? at(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), lt = Object.defineProperty, xn = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? lt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), ct = ((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))(ct || {});
1612
1690
  function vr(e) {
1613
1691
  return e.nodeType === e.ELEMENT_NODE;
1614
1692
  }
@@ -1650,7 +1728,7 @@ function kr(e) {
1650
1728
  })(e.cssText);
1651
1729
  return a || e.cssText;
1652
1730
  }
1653
- let et = class {
1731
+ let ut = class {
1654
1732
  constructor() {
1655
1733
  xn(this, "idNodeMap", /* @__PURE__ */ new Map()), xn(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
1656
1734
  }
@@ -1702,7 +1780,7 @@ function Zt({ element: e, maskInputOptions: a, tagName: u, type: m2, value: w2,
1702
1780
  function fe(e) {
1703
1781
  return e.toLowerCase();
1704
1782
  }
1705
- const nt = "__rrweb_original__";
1783
+ const pt = "__rrweb_original__";
1706
1784
  function Yt(e) {
1707
1785
  const a = e.type;
1708
1786
  return e.hasAttribute("data-rr-is-password") ? "password" : a ? fe(a) : null;
@@ -1717,19 +1795,19 @@ function xr(e, a) {
1717
1795
  const m2 = u.pathname.match(/\.([0-9a-z]+)(?:$)/i);
1718
1796
  return (null == m2 ? void 0 : m2[1]) ?? null;
1719
1797
  }
1720
- let ot = 1;
1721
- const st = new RegExp("[^a-z0-9-_:]");
1798
+ let dt = 1;
1799
+ const ht = new RegExp("[^a-z0-9-_:]");
1722
1800
  function Ir() {
1723
- return ot++;
1801
+ return dt++;
1724
1802
  }
1725
- let it, at;
1726
- const lt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, ct = /^(?:[a-z+]+:)?\/\//i, ut = /^www\..*/i, pt = /^(data:)([^,]*),(.*)/i;
1803
+ let gt, yt;
1804
+ const wt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, St = /^(?:[a-z+]+:)?\/\//i, bt = /^www\..*/i, vt = /^(data:)([^,]*),(.*)/i;
1727
1805
  function Pt(e, a) {
1728
- return (e || "").replace(lt, (e2, u, m2, w2, b2, C2) => {
1806
+ return (e || "").replace(wt, (e2, u, m2, w2, b2, C2) => {
1729
1807
  const x2 = m2 || b2 || C2, I2 = u || w2 || "";
1730
1808
  if (!x2) return e2;
1731
- if (ct.test(x2) || ut.test(x2)) return `url(${I2}${x2}${I2})`;
1732
- if (pt.test(x2)) return `url(${I2}${x2}${I2})`;
1809
+ if (St.test(x2) || bt.test(x2)) return `url(${I2}${x2}${I2})`;
1810
+ if (vt.test(x2)) return `url(${I2}${x2}${I2})`;
1733
1811
  if ("/" === x2[0]) return `url(${I2}${(function Ei(e3) {
1734
1812
  let a2 = "";
1735
1813
  return a2 = e3.indexOf("//") > -1 ? e3.split("/").slice(0, 3).join("/") : e3.split("/")[0], a2 = a2.split("?")[0], a2;
@@ -1740,8 +1818,8 @@ function Pt(e, a) {
1740
1818
  return `url(${I2}${_2.join("/")}${I2})`;
1741
1819
  });
1742
1820
  }
1743
- const dt = /^[^ \t\n\r\u000c]+/, ht = /^[, \t\n\r\u000c]+/;
1744
- const gt = /* @__PURE__ */ new WeakMap();
1821
+ const Ct = /^[^ \t\n\r\u000c]+/, kt = /^[, \t\n\r\u000c]+/;
1822
+ const xt = /* @__PURE__ */ new WeakMap();
1745
1823
  function At(e, a) {
1746
1824
  return a && "" !== a.trim() ? $t(e, a) : a;
1747
1825
  }
@@ -1749,8 +1827,8 @@ function Fi(e) {
1749
1827
  return !("svg" !== e.tagName && !e.ownerSVGElement);
1750
1828
  }
1751
1829
  function $t(e, a) {
1752
- let u = gt.get(e);
1753
- if (u || (u = e.createElement("a"), gt.set(e, u)), a) {
1830
+ let u = xt.get(e);
1831
+ if (u || (u = e.createElement("a"), xt.set(e, u)), a) {
1754
1832
  if (a.startsWith("blob:") || a.startsWith("data:")) return a;
1755
1833
  } else a = "";
1756
1834
  return u.setAttribute("href", a), u.href;
@@ -1765,8 +1843,8 @@ function Mr(e, a, u, m2) {
1765
1843
  return w2 ? (m4 = w2[0], u2 += m4.length, m4) : "";
1766
1844
  }
1767
1845
  const m3 = [];
1768
- for (; n(ht), !(u2 >= a2.length); ) {
1769
- let w2 = n(dt);
1846
+ for (; n(kt), !(u2 >= a2.length); ) {
1847
+ let w2 = n(Ct);
1770
1848
  if ("," === w2.slice(-1)) w2 = At(e2, w2.substring(0, w2.length - 1)), m3.push(w2);
1771
1849
  else {
1772
1850
  let b2 = "";
@@ -1836,9 +1914,9 @@ function zi(e, a) {
1836
1914
  })(u, m2);
1837
1915
  switch (e.nodeType) {
1838
1916
  case e.DOCUMENT_NODE:
1839
- return "CSS1Compat" !== e.compatMode ? { type: Qe.Document, childNodes: [], compatMode: e.compatMode } : { type: Qe.Document, childNodes: [] };
1917
+ return "CSS1Compat" !== e.compatMode ? { type: ct.Document, childNodes: [], compatMode: e.compatMode } : { type: ct.Document, childNodes: [] };
1840
1918
  case e.DOCUMENT_TYPE_NODE:
1841
- return { type: Qe.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1919
+ return { type: ct.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1842
1920
  case e.ELEMENT_NODE:
1843
1921
  return (function Vi(e2, a2) {
1844
1922
  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) {
@@ -1856,7 +1934,7 @@ function zi(e, a) {
1856
1934
  })(e2, m3, w3), B3 = (function Oi(e3) {
1857
1935
  if (e3 instanceof HTMLFormElement) return "form";
1858
1936
  const a3 = fe(e3.tagName);
1859
- return st.test(a3) ? "div" : a3;
1937
+ return ht.test(a3) ? "div" : a3;
1860
1938
  })(e2);
1861
1939
  let $3 = {};
1862
1940
  const z2 = e2.attributes.length;
@@ -1885,7 +1963,7 @@ function zi(e, a) {
1885
1963
  const a3 = e3.getContext("2d");
1886
1964
  if (!a3) return true;
1887
1965
  for (let u3 = 0; u3 < e3.width; u3 += 50) for (let m4 = 0; m4 < e3.height; m4 += 50) {
1888
- const w4 = a3.getImageData, b4 = nt in w4 ? w4[nt] : w4;
1966
+ const w4 = a3.getImageData, b4 = pt in w4 ? w4[pt] : w4;
1889
1967
  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;
1890
1968
  }
1891
1969
  return true;
@@ -1897,11 +1975,11 @@ function zi(e, a) {
1897
1975
  }
1898
1976
  }
1899
1977
  if ("img" === B3 && _3) {
1900
- it || (it = u2.createElement("canvas"), at = it.getContext("2d"));
1978
+ gt || (gt = u2.createElement("canvas"), yt = gt.getContext("2d"));
1901
1979
  const a3 = e2, m4 = a3.currentSrc || a3.getAttribute("src") || "<unknown-src>", w4 = a3.crossOrigin, A = () => {
1902
1980
  a3.removeEventListener("load", A);
1903
1981
  try {
1904
- it.width = a3.naturalWidth, it.height = a3.naturalHeight, at.drawImage(a3, 0, 0), $3.rr_dataURL = it.toDataURL(I3.type, I3.quality);
1982
+ gt.width = a3.naturalWidth, gt.height = a3.naturalHeight, yt.drawImage(a3, 0, 0), $3.rr_dataURL = gt.toDataURL(I3.type, I3.quality);
1905
1983
  } catch (e3) {
1906
1984
  if ("anonymous" !== a3.crossOrigin) return a3.crossOrigin = "anonymous", void (a3.complete && 0 !== a3.naturalWidth ? A() : a3.addEventListener("load", A));
1907
1985
  console.warn(`Cannot inline img src=${m4}! Error: ${e3}`);
@@ -1924,7 +2002,7 @@ function zi(e, a) {
1924
2002
  customElements.get(B3) && (j2 = true);
1925
2003
  } catch {
1926
2004
  }
1927
- return { type: Qe.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2005
+ return { type: ct.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
1928
2006
  })(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 });
1929
2007
  case e.TEXT_NODE:
1930
2008
  return (function ji(e2, a2) {
@@ -1940,12 +2018,12 @@ function zi(e, a) {
1940
2018
  }
1941
2019
  x3 = Pt(x3, $t(a2.doc));
1942
2020
  }
1943
- return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e2.parentElement) : x3.replace(/[\S]/g, "*")), { type: Qe.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2021
+ return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e2.parentElement) : x3.replace(/[\S]/g, "*")), { type: ct.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
1944
2022
  })(e, { doc: u, needsMask: C2, maskTextFn: _2, rootId: $2 });
1945
2023
  case e.CDATA_SECTION_NODE:
1946
- return { type: Qe.CDATA, textContent: "", rootId: $2 };
2024
+ return { type: ct.CDATA, textContent: "", rootId: $2 };
1947
2025
  case e.COMMENT_NODE:
1948
- return { type: Qe.Comment, textContent: e.textContent || "", rootId: $2 };
2026
+ return { type: ct.Comment, textContent: e.textContent || "", rootId: $2 };
1949
2027
  default:
1950
2028
  return false;
1951
2029
  }
@@ -1954,28 +2032,28 @@ function N(e) {
1954
2032
  return null == e ? "" : e.toLowerCase();
1955
2033
  }
1956
2034
  function Se(e, a) {
1957
- const { doc: u, mirror: m2, blockClass: w2, blockSelector: b2, maskTextClass: C2, maskTextSelector: x2, skipChild: I2 = false, inlineStylesheet: _2 = true, maskInputOptions: O2 = {}, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2 = {}, inlineImages: B2 = false, recordCanvas: $2 = false, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2 = 5e3, onStylesheetLoad: q2, stylesheetLoadTimeout: H2 = 5e3, keepIframeSrcFn: Y2 = () => false, newlyAddedElement: J2 = false } = a;
2035
+ const { doc: u, mirror: m2, blockClass: w2, blockSelector: b2, maskTextClass: C2, maskTextSelector: x2, skipChild: I2 = false, inlineStylesheet: _2 = true, maskInputOptions: O2 = {}, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2 = {}, inlineImages: B2 = false, recordCanvas: $2 = false, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2 = 5e3, onStylesheetLoad: q2, stylesheetLoadTimeout: H2 = 5e3, keepIframeSrcFn: J2 = () => false, newlyAddedElement: Y2 = false } = a;
1958
2036
  let { needsMask: X2 } = a, { preserveWhiteSpace: Q2 = true } = a;
1959
2037
  X2 || (X2 = Er(e, C2, x2, void 0 === X2));
1960
- const ee2 = zi(e, { doc: u, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, keepIframeSrcFn: Y2, newlyAddedElement: J2 });
2038
+ const ee2 = zi(e, { doc: u, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, keepIframeSrcFn: J2, newlyAddedElement: Y2 });
1961
2039
  if (!ee2) return console.warn(e, "not serialized"), null;
1962
2040
  let te2;
1963
2041
  te2 = m2.hasNode(e) ? m2.getId(e) : (function Gi(e2, a2) {
1964
- return !!(a2.comment && e2.type === Qe.Comment || e2.type === Qe.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)))));
1965
- })(ee2, F2) || !Q2 && ee2.type === Qe.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2042
+ return !!(a2.comment && e2.type === ct.Comment || e2.type === ct.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)))));
2043
+ })(ee2, F2) || !Q2 && ee2.type === ct.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
1966
2044
  const ne2 = Object.assign(ee2, { id: te2 });
1967
2045
  if (m2.add(e, ne2), -2 === te2) return null;
1968
2046
  z2 && z2(e);
1969
2047
  let re2 = !I2;
1970
- if (ne2.type === Qe.Element) {
2048
+ if (ne2.type === ct.Element) {
1971
2049
  re2 = re2 && !ne2.needBlock, delete ne2.needBlock;
1972
2050
  const a2 = e.shadowRoot;
1973
2051
  a2 && ze(a2) && (ne2.isShadowHost = true);
1974
2052
  }
1975
- if ((ne2.type === Qe.Document || ne2.type === Qe.Element) && re2) {
1976
- F2.headWhitespace && ne2.type === Qe.Element && "head" === ne2.tagName && (Q2 = false);
1977
- 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: Y2 };
1978
- if (ne2.type !== Qe.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
2053
+ if ((ne2.type === ct.Document || ne2.type === ct.Element) && re2) {
2054
+ F2.headWhitespace && ne2.type === ct.Element && "head" === ne2.tagName && (Q2 = false);
2055
+ 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 };
2056
+ if (ne2.type !== ct.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
1979
2057
  const e2 = Se(u2, a2);
1980
2058
  e2 && ne2.childNodes.push(e2);
1981
2059
  }
@@ -1984,7 +2062,7 @@ function Se(e, a) {
1984
2062
  m3 && (ze(e.shadowRoot) && (m3.isShadow = true), ne2.childNodes.push(m3));
1985
2063
  }
1986
2064
  }
1987
- return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === Qe.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
2065
+ return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === ct.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
1988
2066
  const m3 = e2.contentWindow;
1989
2067
  if (!m3) return;
1990
2068
  let w3, b3 = false;
@@ -2007,10 +2085,10 @@ function Se(e, a) {
2007
2085
  })(e, () => {
2008
2086
  const a2 = e.contentDocument;
2009
2087
  if (a2 && j2) {
2010
- 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: Y2 });
2088
+ 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 });
2011
2089
  u2 && j2(e, u2);
2012
2090
  }
2013
- }, V2), ne2.type === Qe.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) {
2091
+ }, V2), ne2.type === ct.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) {
2014
2092
  let m3, w3 = false;
2015
2093
  try {
2016
2094
  m3 = e2.sheet;
@@ -2026,7 +2104,7 @@ function Se(e, a) {
2026
2104
  });
2027
2105
  })(e, () => {
2028
2106
  if (q2) {
2029
- const a2 = Se(e, { doc: u, 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: Y2 });
2107
+ const a2 = Se(e, { doc: u, 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 });
2030
2108
  a2 && q2(e, a2);
2031
2109
  }
2032
2110
  }, H2), ne2;
@@ -2050,13 +2128,13 @@ function $i(e) {
2050
2128
  } });
2051
2129
  }), u;
2052
2130
  }
2053
- var yt = { exports: {} }, wt = String, Rr = function() {
2054
- return { isColorSupported: false, reset: wt, bold: wt, dim: wt, italic: wt, underline: wt, inverse: wt, hidden: wt, strikethrough: wt, black: wt, red: wt, green: wt, yellow: wt, blue: wt, magenta: wt, cyan: wt, white: wt, gray: wt, bgBlack: wt, bgRed: wt, bgGreen: wt, bgYellow: wt, bgBlue: wt, bgMagenta: wt, bgCyan: wt, bgWhite: wt, blackBright: wt, redBright: wt, greenBright: wt, yellowBright: wt, blueBright: wt, magentaBright: wt, cyanBright: wt, whiteBright: wt, bgBlackBright: wt, bgRedBright: wt, bgGreenBright: wt, bgYellowBright: wt, bgBlueBright: wt, bgMagentaBright: wt, bgCyanBright: wt, bgWhiteBright: wt };
2131
+ var Mt = { exports: {} }, It = String, Rr = function() {
2132
+ return { isColorSupported: false, reset: It, bold: It, dim: It, italic: It, underline: It, inverse: It, hidden: It, strikethrough: It, black: It, red: It, green: It, yellow: It, blue: It, magenta: It, cyan: It, white: It, gray: It, bgBlack: It, bgRed: It, bgGreen: It, bgYellow: It, bgBlue: It, bgMagenta: It, bgCyan: It, bgWhite: It, blackBright: It, redBright: It, greenBright: It, yellowBright: It, blueBright: It, magentaBright: It, cyanBright: It, whiteBright: It, bgBlackBright: It, bgRedBright: It, bgGreenBright: It, bgYellowBright: It, bgBlueBright: It, bgMagentaBright: It, bgCyanBright: It, bgWhiteBright: It };
2055
2133
  };
2056
- yt.exports = Rr(), yt.exports.createColors = Rr;
2057
- var bt = yt.exports;
2058
- const St = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2059
- let vt = bt, Ct = St, xt = class Lr extends Error {
2134
+ Mt.exports = Rr(), Mt.exports.createColors = Rr;
2135
+ var Et = Mt.exports;
2136
+ const Lt = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2137
+ let Rt = Et, Dt = Lt, Ft = class Lr extends Error {
2060
2138
  constructor(e, a, u, m2, w2, b2) {
2061
2139
  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);
2062
2140
  }
@@ -2066,11 +2144,11 @@ let vt = bt, Ct = St, xt = class Lr extends Error {
2066
2144
  showSourceCode(e) {
2067
2145
  if (!this.source) return "";
2068
2146
  let a = this.source;
2069
- null == e && (e = vt.isColorSupported);
2147
+ null == e && (e = Rt.isColorSupported);
2070
2148
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
2071
2149
  if (e) {
2072
- let { bold: e2, gray: a2, red: u2 } = vt.createColors(true);
2073
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Ct && (i = (e3) => Ct(e3));
2150
+ let { bold: e2, gray: a2, red: u2 } = Rt.createColors(true);
2151
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Dt && (i = (e3) => Dt(e3));
2074
2152
  }
2075
2153
  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;
2076
2154
  return u.slice(m2, w2).map((e2, a2) => {
@@ -2091,10 +2169,10 @@ let vt = bt, Ct = St, xt = class Lr extends Error {
2091
2169
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
2092
2170
  }
2093
2171
  };
2094
- var kt = xt;
2095
- xt.default = xt;
2096
- const Mt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2097
- let It = class {
2172
+ var Ut = Ft;
2173
+ Ft.default = Ft;
2174
+ const Bt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2175
+ let Wt = class {
2098
2176
  constructor(e) {
2099
2177
  this.builder = e;
2100
2178
  }
@@ -2146,7 +2224,7 @@ let It = class {
2146
2224
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
2147
2225
  let w2 = e.parent;
2148
2226
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
2149
- if (!w2) return Mt[u];
2227
+ if (!w2) return Bt[u];
2150
2228
  let b2 = e.root();
2151
2229
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
2152
2230
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -2158,7 +2236,7 @@ let It = class {
2158
2236
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
2159
2237
  });
2160
2238
  }
2161
- return typeof m2 > "u" && (m2 = Mt[u]), b2.rawCache[u] = m2, m2;
2239
+ return typeof m2 > "u" && (m2 = Bt[u]), b2.rawCache[u] = m2, m2;
2162
2240
  }
2163
2241
  rawBeforeClose(e) {
2164
2242
  let a;
@@ -2234,17 +2312,17 @@ let It = class {
2234
2312
  this[e.type](e, a);
2235
2313
  }
2236
2314
  };
2237
- var Et = It;
2238
- It.default = It;
2239
- let Lt = Et;
2315
+ var jt = Wt;
2316
+ Wt.default = Wt;
2317
+ let Vt = jt;
2240
2318
  function ks(e, a) {
2241
- new Lt(a).stringify(e);
2319
+ new Vt(a).stringify(e);
2242
2320
  }
2243
- var Rt = ks;
2321
+ var Ht = ks;
2244
2322
  ks.default = ks;
2245
- var Dt = {};
2246
- Dt.isClean = Symbol("isClean"), Dt.my = Symbol("my");
2247
- let Ft = kt, Ut = Et, Bt = Rt, { isClean: Wt, my: jt } = Dt;
2323
+ var Kt = {};
2324
+ Kt.isClean = Symbol("isClean"), Kt.my = Symbol("my");
2325
+ let Jt = Ut, Xt = jt, Qt = Ht, { isClean: en, my: tn } = Kt;
2248
2326
  function Cs(e, a) {
2249
2327
  let u = new e.constructor();
2250
2328
  for (let m2 in e) {
@@ -2266,12 +2344,12 @@ function Pe(e, a) {
2266
2344
  }
2267
2345
  return w2;
2268
2346
  }
2269
- let Vt = class {
2347
+ let nn = class {
2270
2348
  get proxyOf() {
2271
2349
  return this;
2272
2350
  }
2273
2351
  constructor(e = {}) {
2274
- this.raws = {}, this[Wt] = false, this[jt] = true;
2352
+ this.raws = {}, this[en] = false, this[tn] = true;
2275
2353
  for (let a in e) if ("nodes" === a) {
2276
2354
  this.nodes = [];
2277
2355
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -2315,19 +2393,19 @@ let Vt = class {
2315
2393
  let { end: u, start: m2 } = this.rangeBy(a);
2316
2394
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
2317
2395
  }
2318
- return new Ft(e);
2396
+ return new Jt(e);
2319
2397
  }
2320
2398
  getProxyProcessor() {
2321
2399
  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) };
2322
2400
  }
2323
2401
  markClean() {
2324
- this[Wt] = true;
2402
+ this[en] = true;
2325
2403
  }
2326
2404
  markDirty() {
2327
- if (this[Wt]) {
2328
- this[Wt] = false;
2405
+ if (this[en]) {
2406
+ this[en] = false;
2329
2407
  let e = this;
2330
- for (; e = e.parent; ) e[Wt] = false;
2408
+ for (; e = e.parent; ) e[en] = false;
2331
2409
  }
2332
2410
  }
2333
2411
  next() {
@@ -2363,7 +2441,7 @@ let Vt = class {
2363
2441
  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 };
2364
2442
  }
2365
2443
  raw(e, a) {
2366
- return new Ut().raw(this, e, a);
2444
+ return new Xt().raw(this, e, a);
2367
2445
  }
2368
2446
  remove() {
2369
2447
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -2400,7 +2478,7 @@ let Vt = class {
2400
2478
  toProxy() {
2401
2479
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
2402
2480
  }
2403
- toString(e = Bt) {
2481
+ toString(e = Qt) {
2404
2482
  e.stringify && (e = e.stringify);
2405
2483
  let a = "";
2406
2484
  return e(this, (e2) => {
@@ -2413,16 +2491,16 @@ let Vt = class {
2413
2491
  return e.warn(a, m2);
2414
2492
  }
2415
2493
  };
2416
- var Ht = Vt;
2417
- Vt.default = Vt;
2418
- let Kt = Ht, Jt = class extends Kt {
2494
+ var rn = nn;
2495
+ nn.default = nn;
2496
+ let on = rn, sn = class extends on {
2419
2497
  constructor(e) {
2420
2498
  super(e), this.type = "comment";
2421
2499
  }
2422
2500
  };
2423
- var Xt = Jt;
2424
- Jt.default = Jt;
2425
- let Qt = Ht, en = class extends Qt {
2501
+ var an = sn;
2502
+ sn.default = sn;
2503
+ let ln = rn, cn = class extends ln {
2426
2504
  get variable() {
2427
2505
  return this.prop.startsWith("--") || "$" === this.prop[0];
2428
2506
  }
@@ -2430,16 +2508,16 @@ let Qt = Ht, en = class extends Qt {
2430
2508
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
2431
2509
  }
2432
2510
  };
2433
- var tn = en;
2434
- en.default = en;
2435
- let nn, rn, on, sn, an = Xt, ln = tn, cn = Ht, { isClean: un, my: pn } = Dt;
2511
+ var un = cn;
2512
+ cn.default = cn;
2513
+ let pn, dn, hn, fn, mn = an, gn = un, yn = rn, { isClean: wn, my: Sn } = Kt;
2436
2514
  function _r(e) {
2437
2515
  return e.map((e2) => (e2.nodes && (e2.nodes = _r(e2.nodes)), delete e2.source, e2));
2438
2516
  }
2439
2517
  function Wr(e) {
2440
- if (e[un] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2518
+ if (e[wn] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2441
2519
  }
2442
- let dn = class zr extends cn {
2520
+ let bn = class zr extends yn {
2443
2521
  get first() {
2444
2522
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
2445
2523
  }
@@ -2491,7 +2569,7 @@ let dn = class zr extends cn {
2491
2569
  return this.markDirty(), this;
2492
2570
  }
2493
2571
  normalize(e, a) {
2494
- if ("string" == typeof e) e = _r(rn(e).nodes);
2572
+ if ("string" == typeof e) e = _r(dn(e).nodes);
2495
2573
  else if (typeof e > "u") e = [];
2496
2574
  else if (Array.isArray(e)) {
2497
2575
  e = e.slice(0);
@@ -2502,14 +2580,14 @@ let dn = class zr extends cn {
2502
2580
  } else if (e.type) e = [e];
2503
2581
  else if (e.prop) {
2504
2582
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
2505
- "string" != typeof e.value && (e.value = String(e.value)), e = [new ln(e)];
2506
- } else if (e.selector || e.selectors) e = [new sn(e)];
2507
- else if (e.name) e = [new nn(e)];
2583
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new gn(e)];
2584
+ } else if (e.selector || e.selectors) e = [new fn(e)];
2585
+ else if (e.name) e = [new pn(e)];
2508
2586
  else {
2509
2587
  if (!e.text) throw new Error("Unknown node type in node creation");
2510
- e = [new an(e)];
2588
+ e = [new mn(e)];
2511
2589
  }
2512
- return e.map((e2) => (e2[pn] || zr.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[un] && 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));
2590
+ return e.map((e2) => (e2[Sn] || zr.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[wn] && 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));
2513
2591
  }
2514
2592
  prepend(...e) {
2515
2593
  e = e.reverse();
@@ -2585,22 +2663,22 @@ let dn = class zr extends cn {
2585
2663
  }));
2586
2664
  }
2587
2665
  };
2588
- dn.registerParse = (e) => {
2589
- rn = e;
2590
- }, dn.registerRule = (e) => {
2591
- sn = e;
2592
- }, dn.registerAtRule = (e) => {
2593
- nn = e;
2594
- }, dn.registerRoot = (e) => {
2595
- on = e;
2666
+ bn.registerParse = (e) => {
2667
+ dn = e;
2668
+ }, bn.registerRule = (e) => {
2669
+ fn = e;
2670
+ }, bn.registerAtRule = (e) => {
2671
+ pn = e;
2672
+ }, bn.registerRoot = (e) => {
2673
+ hn = e;
2596
2674
  };
2597
- var hn = dn;
2598
- dn.default = dn, dn.rebuild = (e) => {
2599
- "atrule" === e.type ? Object.setPrototypeOf(e, nn.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, sn.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, ln.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, an.prototype) : "root" === e.type && Object.setPrototypeOf(e, on.prototype), e[pn] = true, e.nodes && e.nodes.forEach((e2) => {
2600
- dn.rebuild(e2);
2675
+ var Mn = bn;
2676
+ bn.default = bn, bn.rebuild = (e) => {
2677
+ "atrule" === e.type ? Object.setPrototypeOf(e, pn.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, fn.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, gn.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, mn.prototype) : "root" === e.type && Object.setPrototypeOf(e, hn.prototype), e[Sn] = true, e.nodes && e.nodes.forEach((e2) => {
2678
+ bn.rebuild(e2);
2601
2679
  });
2602
2680
  };
2603
- let fn = hn, mn = class extends fn {
2681
+ let In = Mn, _n = class extends In {
2604
2682
  constructor(e) {
2605
2683
  super(e), this.type = "atrule";
2606
2684
  }
@@ -2611,38 +2689,38 @@ let fn = hn, mn = class extends fn {
2611
2689
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
2612
2690
  }
2613
2691
  };
2614
- var gn = mn;
2615
- mn.default = mn, fn.registerAtRule(mn);
2616
- let yn, wn, bn = hn, Sn = class extends bn {
2692
+ var On = _n;
2693
+ _n.default = _n, In.registerAtRule(_n);
2694
+ let En, Ln, Rn = Mn, An = class extends Rn {
2617
2695
  constructor(e) {
2618
2696
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
2619
2697
  }
2620
2698
  toResult(e = {}) {
2621
- return new yn(new wn(), this, e).stringify();
2699
+ return new En(new Ln(), this, e).stringify();
2622
2700
  }
2623
2701
  };
2624
- Sn.registerLazyResult = (e) => {
2625
- yn = e;
2626
- }, Sn.registerProcessor = (e) => {
2627
- wn = e;
2702
+ An.registerLazyResult = (e) => {
2703
+ En = e;
2704
+ }, An.registerProcessor = (e) => {
2705
+ Ln = e;
2628
2706
  };
2629
- var Mn = Sn;
2630
- Sn.default = Sn;
2631
- var In = { nanoid: (e = 21) => {
2707
+ var Tn = An;
2708
+ An.default = An;
2709
+ var Nn = { nanoid: (e = 21) => {
2632
2710
  let a = "", u = 0 | e;
2633
2711
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
2634
2712
  return a;
2635
2713
  } };
2636
- let { existsSync: _n, readFileSync: On } = St, { dirname: En, join: Ln } = St, { SourceMapConsumer: Rn, SourceMapGenerator: An } = St;
2637
- let Tn = class {
2714
+ let { existsSync: Pn, readFileSync: Dn } = Lt, { dirname: Fn, join: Un } = Lt, { SourceMapConsumer: Bn, SourceMapGenerator: Wn } = Lt;
2715
+ let zn = class {
2638
2716
  constructor(e, a) {
2639
2717
  if (false === a.map) return;
2640
2718
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
2641
2719
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
2642
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = En(this.mapFile)), m2 && (this.text = m2);
2720
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Fn(this.mapFile)), m2 && (this.text = m2);
2643
2721
  }
2644
2722
  consumer() {
2645
- return this.consumerCache || (this.consumerCache = new Rn(this.text)), this.consumerCache;
2723
+ return this.consumerCache || (this.consumerCache = new Bn(this.text)), this.consumerCache;
2646
2724
  }
2647
2725
  decodeInline(e) {
2648
2726
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -2667,15 +2745,15 @@ let Tn = class {
2667
2745
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
2668
2746
  }
2669
2747
  loadFile(e) {
2670
- if (this.root = En(e), _n(e)) return this.mapFile = e, On(e, "utf-8").toString().trim();
2748
+ if (this.root = Fn(e), Pn(e)) return this.mapFile = e, Dn(e, "utf-8").toString().trim();
2671
2749
  }
2672
2750
  loadMap(e, a) {
2673
2751
  if (false === a) return false;
2674
2752
  if (a) {
2675
2753
  if ("string" == typeof a) return a;
2676
2754
  if ("function" != typeof a) {
2677
- if (a instanceof Rn) return An.fromSourceMap(a).toString();
2678
- if (a instanceof An) return a.toString();
2755
+ if (a instanceof Bn) return Wn.fromSourceMap(a).toString();
2756
+ if (a instanceof Wn) return a.toString();
2679
2757
  if (this.isMap(a)) return JSON.stringify(a);
2680
2758
  throw new Error("Unsupported previous source map format: " + a.toString());
2681
2759
  }
@@ -2691,7 +2769,7 @@ let Tn = class {
2691
2769
  if (this.inline) return this.decodeInline(this.annotation);
2692
2770
  if (this.annotation) {
2693
2771
  let a2 = this.annotation;
2694
- return e && (a2 = Ln(En(e), a2)), this.loadFile(a2);
2772
+ return e && (a2 = Un(Fn(e), a2)), this.loadFile(a2);
2695
2773
  }
2696
2774
  }
2697
2775
  }
@@ -2702,23 +2780,23 @@ let Tn = class {
2702
2780
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
2703
2781
  }
2704
2782
  };
2705
- var Nn = Tn;
2706
- Tn.default = Tn;
2707
- let { nanoid: Pn } = In, { isAbsolute: Dn, resolve: Fn } = St, { SourceMapConsumer: Un, SourceMapGenerator: Bn } = St, { fileURLToPath: Wn, pathToFileURL: zn } = St, jn = kt, Vn = Nn, qn = St, Zn = Symbol("fromOffsetCache"), Kn = !(!Un || !Bn), Qn = !(!Fn || !Dn), nr = class {
2783
+ var jn = zn;
2784
+ zn.default = zn;
2785
+ let { nanoid: Vn } = Nn, { isAbsolute: qn, resolve: Zn } = Lt, { SourceMapConsumer: Kn, SourceMapGenerator: Qn } = Lt, { fileURLToPath: nr, pathToFileURL: rr } = Lt, or = Ut, sr = jn, ir = Lt, ar = Symbol("fromOffsetCache"), lr = !(!Kn || !Qn), cr = !(!Zn || !qn), ur = class {
2708
2786
  get from() {
2709
2787
  return this.file || this.id;
2710
2788
  }
2711
2789
  constructor(e, a = {}) {
2712
2790
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
2713
- 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 && (!Qn || /^\w+:\/\//.test(a.from) || Dn(a.from) ? this.file = a.from : this.file = Fn(a.from)), Qn && Kn) {
2714
- let e2 = new Vn(this.css, a);
2791
+ 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 && (!cr || /^\w+:\/\//.test(a.from) || qn(a.from) ? this.file = a.from : this.file = Zn(a.from)), cr && lr) {
2792
+ let e2 = new sr(this.css, a);
2715
2793
  if (e2.text) {
2716
2794
  this.map = e2;
2717
2795
  let a2 = e2.consumer().file;
2718
2796
  !this.file && a2 && (this.file = this.mapResolve(a2));
2719
2797
  }
2720
2798
  }
2721
- this.file || (this.id = "<input css " + Pn(6) + ">"), this.map && (this.map.file = this.from);
2799
+ this.file || (this.id = "<input css " + Vn(6) + ">"), this.map && (this.map.file = this.from);
2722
2800
  }
2723
2801
  error(e, a, u, m2 = {}) {
2724
2802
  let w2, b2, C2;
@@ -2737,17 +2815,17 @@ let { nanoid: Pn } = In, { isAbsolute: Dn, resolve: Fn } = St, { SourceMapConsum
2737
2815
  a = e2.line, u = e2.col;
2738
2816
  }
2739
2817
  let x2 = this.origin(a, u, b2, w2);
2740
- return C2 = x2 ? new jn(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 jn(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 && (zn && (C2.input.url = zn(this.file).toString()), C2.input.file = this.file), C2;
2818
+ return C2 = x2 ? new or(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 or(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 && (rr && (C2.input.url = rr(this.file).toString()), C2.input.file = this.file), C2;
2741
2819
  }
2742
2820
  fromOffset(e) {
2743
2821
  let a, u;
2744
- if (this[Zn]) u = this[Zn];
2822
+ if (this[ar]) u = this[ar];
2745
2823
  else {
2746
2824
  let e2 = this.css.split("\n");
2747
2825
  u = new Array(e2.length);
2748
2826
  let a2 = 0;
2749
2827
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
2750
- this[Zn] = u;
2828
+ this[ar] = u;
2751
2829
  }
2752
2830
  a = u[u.length - 1];
2753
2831
  let m2 = 0;
@@ -2766,17 +2844,17 @@ let { nanoid: Pn } = In, { isAbsolute: Dn, resolve: Fn } = St, { SourceMapConsum
2766
2844
  return { col: e - u[m2] + 1, line: m2 + 1 };
2767
2845
  }
2768
2846
  mapResolve(e) {
2769
- return /^\w+:\/\//.test(e) ? e : Fn(this.map.consumer().sourceRoot || this.map.root || ".", e);
2847
+ return /^\w+:\/\//.test(e) ? e : Zn(this.map.consumer().sourceRoot || this.map.root || ".", e);
2770
2848
  }
2771
2849
  origin(e, a, u, m2) {
2772
2850
  if (!this.map) return false;
2773
2851
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
2774
2852
  if (!x2.source) return false;
2775
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = Dn(x2.source) ? zn(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || zn(this.map.mapFile));
2853
+ "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = qn(x2.source) ? rr(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || rr(this.map.mapFile));
2776
2854
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
2777
2855
  if ("file:" === b2.protocol) {
2778
- if (!Wn) throw new Error("file: protocol is not available in this PostCSS build");
2779
- I2.file = Wn(b2);
2856
+ if (!nr) throw new Error("file: protocol is not available in this PostCSS build");
2857
+ I2.file = nr(b2);
2780
2858
  }
2781
2859
  let _2 = C2.sourceContentFor(x2.source);
2782
2860
  return _2 && (I2.source = _2), I2;
@@ -2787,9 +2865,9 @@ let { nanoid: Pn } = In, { isAbsolute: Dn, resolve: Fn } = St, { SourceMapConsum
2787
2865
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
2788
2866
  }
2789
2867
  };
2790
- var rr = nr;
2791
- nr.default = nr, qn && qn.registerInput && qn.registerInput(nr);
2792
- let or, sr, ir = hn, ar = class extends ir {
2868
+ var pr = ur;
2869
+ ur.default = ur, ir && ir.registerInput && ir.registerInput(ur);
2870
+ let dr, hr, fr = Mn, mr = class extends fr {
2793
2871
  constructor(e) {
2794
2872
  super(e), this.type = "root", this.nodes || (this.nodes = []);
2795
2873
  }
@@ -2806,29 +2884,29 @@ let or, sr, ir = hn, ar = class extends ir {
2806
2884
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
2807
2885
  }
2808
2886
  toResult(e = {}) {
2809
- return new or(new sr(), this, e).stringify();
2887
+ return new dr(new hr(), this, e).stringify();
2810
2888
  }
2811
2889
  };
2812
- ar.registerLazyResult = (e) => {
2813
- or = e;
2814
- }, ar.registerProcessor = (e) => {
2815
- sr = e;
2890
+ mr.registerLazyResult = (e) => {
2891
+ dr = e;
2892
+ }, mr.registerProcessor = (e) => {
2893
+ hr = e;
2816
2894
  };
2817
- var lr = ar;
2818
- ar.default = ar, ir.registerRoot(ar);
2819
- let cr = { comma: (e) => cr.split(e, [","], true), space(e) {
2895
+ var gr = mr;
2896
+ mr.default = mr, fr.registerRoot(mr);
2897
+ let yr = { comma: (e) => yr.split(e, [","], true), space(e) {
2820
2898
  let a = [" ", "\n", " "];
2821
- return cr.split(e, a);
2899
+ return yr.split(e, a);
2822
2900
  }, split(e, a, u) {
2823
2901
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
2824
2902
  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;
2825
2903
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
2826
2904
  } };
2827
- var ur = cr;
2828
- cr.default = cr;
2829
- let pr = hn, dr = ur, hr = class extends pr {
2905
+ var wr = yr;
2906
+ yr.default = yr;
2907
+ let Sr = Mn, Cr = wr, Ar = class extends Sr {
2830
2908
  get selectors() {
2831
- return dr.comma(this.selector);
2909
+ return Cr.comma(this.selector);
2832
2910
  }
2833
2911
  set selectors(e) {
2834
2912
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -2838,34 +2916,34 @@ let pr = hn, dr = ur, hr = class extends pr {
2838
2916
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
2839
2917
  }
2840
2918
  };
2841
- var fr = hr;
2842
- hr.default = hr, pr.registerRule(hr);
2843
- let mr = gn, gr = Xt, yr = tn, wr = rr, Sr = Nn, Cr = lr, Ar = fr;
2919
+ var Tr = Ar;
2920
+ Ar.default = Ar, Sr.registerRule(Ar);
2921
+ let Nr = On, Pr = an, Dr = un, Fr = pr, Ur = jn, Br = gr, $r = Tr;
2844
2922
  function Ze(e, a) {
2845
2923
  if (Array.isArray(e)) return e.map((e2) => Ze(e2));
2846
2924
  let { inputs: u, ...m2 } = e;
2847
2925
  if (u) {
2848
2926
  a = [];
2849
2927
  for (let e2 of u) {
2850
- let u2 = { ...e2, __proto__: wr.prototype };
2851
- u2.map && (u2.map = { ...u2.map, __proto__: Sr.prototype }), a.push(u2);
2928
+ let u2 = { ...e2, __proto__: Fr.prototype };
2929
+ u2.map && (u2.map = { ...u2.map, __proto__: Ur.prototype }), a.push(u2);
2852
2930
  }
2853
2931
  }
2854
2932
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ze(e2, a))), m2.source) {
2855
2933
  let { inputId: e2, ...u2 } = m2.source;
2856
2934
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
2857
2935
  }
2858
- if ("root" === m2.type) return new Cr(m2);
2859
- if ("decl" === m2.type) return new yr(m2);
2860
- if ("rule" === m2.type) return new Ar(m2);
2861
- if ("comment" === m2.type) return new gr(m2);
2862
- if ("atrule" === m2.type) return new mr(m2);
2936
+ if ("root" === m2.type) return new Br(m2);
2937
+ if ("decl" === m2.type) return new Dr(m2);
2938
+ if ("rule" === m2.type) return new $r(m2);
2939
+ if ("comment" === m2.type) return new Pr(m2);
2940
+ if ("atrule" === m2.type) return new Nr(m2);
2863
2941
  throw new Error("Unknown node type: " + e.type);
2864
2942
  }
2865
- var Tr = Ze;
2943
+ var jr = Ze;
2866
2944
  Ze.default = Ze;
2867
- let { dirname: Nr, relative: Pr, resolve: Dr, sep: Fr } = St, { SourceMapConsumer: Ur, SourceMapGenerator: Br } = St, { pathToFileURL: $r } = St, jr = rr, Gr = !(!Ur || !Br), Vr = !!(Nr && Dr && Pr && Fr);
2868
- var qr = class {
2945
+ let { dirname: Gr, relative: Vr, resolve: qr, sep: Hr } = Lt, { SourceMapConsumer: Zr, SourceMapGenerator: Kr } = Lt, { pathToFileURL: Jr } = Lt, Yr = pr, Xr = !(!Zr || !Kr), Qr = !!(Gr && qr && Vr && Hr);
2946
+ var eo = class {
2869
2947
  constructor(e, a, u, m2) {
2870
2948
  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();
2871
2949
  }
@@ -2877,8 +2955,8 @@ var qr = class {
2877
2955
  }
2878
2956
  applyPrevMaps() {
2879
2957
  for (let e of this.previous()) {
2880
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Nr(e.file);
2881
- false === this.mapOpts.sourcesContent ? (a = new Ur(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
2958
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Gr(e.file);
2959
+ false === this.mapOpts.sourcesContent ? (a = new Zr(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
2882
2960
  }
2883
2961
  }
2884
2962
  clearAnnotation() {
@@ -2888,7 +2966,7 @@ var qr = class {
2888
2966
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
2889
2967
  }
2890
2968
  generate() {
2891
- if (this.clearAnnotation(), Vr && Gr && this.isMap()) return this.generateMap();
2969
+ if (this.clearAnnotation(), Qr && Xr && this.isMap()) return this.generateMap();
2892
2970
  {
2893
2971
  let e = "";
2894
2972
  return this.stringify(this.root, (a) => {
@@ -2900,12 +2978,12 @@ var qr = class {
2900
2978
  if (this.root) this.generateString();
2901
2979
  else if (1 === this.previous().length) {
2902
2980
  let e = this.previous()[0].consumer();
2903
- e.file = this.outputFile(), this.map = Br.fromSourceMap(e, { ignoreInvalidMapping: true });
2904
- } else this.map = new Br({ 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>" });
2981
+ e.file = this.outputFile(), this.map = Kr.fromSourceMap(e, { ignoreInvalidMapping: true });
2982
+ } else this.map = new Kr({ 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>" });
2905
2983
  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];
2906
2984
  }
2907
2985
  generateString() {
2908
- this.css = "", this.map = new Br({ file: this.outputFile(), ignoreInvalidMapping: true });
2986
+ this.css = "", this.map = new Kr({ file: this.outputFile(), ignoreInvalidMapping: true });
2909
2987
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
2910
2988
  this.stringify(this.root, (C2, x2, I2) => {
2911
2989
  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) {
@@ -2935,9 +3013,9 @@ var qr = class {
2935
3013
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
2936
3014
  let a = this.memoizedPaths.get(e);
2937
3015
  if (a) return a;
2938
- let u = this.opts.to ? Nr(this.opts.to) : ".";
2939
- "string" == typeof this.mapOpts.annotation && (u = Nr(Dr(u, this.mapOpts.annotation)));
2940
- let m2 = Pr(u, e);
3016
+ let u = this.opts.to ? Gr(this.opts.to) : ".";
3017
+ "string" == typeof this.mapOpts.annotation && (u = Gr(qr(u, this.mapOpts.annotation)));
3018
+ let m2 = Vr(u, e);
2941
3019
  return this.memoizedPaths.set(e, m2), m2;
2942
3020
  }
2943
3021
  previous() {
@@ -2948,7 +3026,7 @@ var qr = class {
2948
3026
  }
2949
3027
  });
2950
3028
  else {
2951
- let e = new jr(this.originalCSS, this.opts);
3029
+ let e = new Yr(this.originalCSS, this.opts);
2952
3030
  e.map && this.previousMaps.push(e.map);
2953
3031
  }
2954
3032
  return this.previousMaps;
@@ -2979,8 +3057,8 @@ var qr = class {
2979
3057
  toFileUrl(e) {
2980
3058
  let a = this.memoizedFileURLs.get(e);
2981
3059
  if (a) return a;
2982
- if ($r) {
2983
- let a2 = $r(e).toString();
3060
+ if (Jr) {
3061
+ let a2 = Jr(e).toString();
2984
3062
  return this.memoizedFileURLs.set(e, a2), a2;
2985
3063
  }
2986
3064
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -2988,13 +3066,13 @@ var qr = class {
2988
3066
  toUrl(e) {
2989
3067
  let a = this.memoizedURLs.get(e);
2990
3068
  if (a) return a;
2991
- "\\" === Fr && (e = e.replace(/\\/g, "/"));
3069
+ "\\" === Hr && (e = e.replace(/\\/g, "/"));
2992
3070
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
2993
3071
  return this.memoizedURLs.set(e, u), u;
2994
3072
  }
2995
3073
  };
2996
- const Hr = /[\t\n\f\r "#'()/;[\\\]{}]/g, Zr = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Kr = /.[\r\n"'(/\\]/, Yr = /[\da-f]/i;
2997
- let Jr = gn, Xr = Xt, Qr = tn, eo = lr, to = fr, Xa = function(e, a = {}) {
3074
+ const to = /[\t\n\f\r "#'()/;[\\\]{}]/g, oo = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, io = /.[\r\n"'(/\\]/, ao = /[\da-f]/i;
3075
+ let lo = On, co = an, uo = un, ho = gr, Mo = Tr, Xa = function(e, a = {}) {
2998
3076
  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 = [];
2999
3077
  function y2(a2) {
3000
3078
  throw e.error("Unclosed " + a2, B2);
@@ -3044,7 +3122,7 @@ let Jr = gn, Xr = Xt, Qr = tn, eo = lr, to = fr, Xa = function(e, a = {}) {
3044
3122
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
3045
3123
  } while (I2);
3046
3124
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3047
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || Kr.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3125
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || io.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3048
3126
  break;
3049
3127
  case 39:
3050
3128
  case 34:
@@ -3062,31 +3140,31 @@ let Jr = gn, Xr = Xt, Qr = tn, eo = lr, to = fr, Xa = function(e, a = {}) {
3062
3140
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3063
3141
  break;
3064
3142
  case 64:
3065
- Hr.lastIndex = B2 + 1, Hr.test(D2), b2 = 0 === Hr.lastIndex ? D2.length - 1 : Hr.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3143
+ to.lastIndex = B2 + 1, to.test(D2), b2 = 0 === to.lastIndex ? D2.length - 1 : to.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3066
3144
  break;
3067
3145
  case 92:
3068
3146
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
3069
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, Yr.test(D2.charAt(b2)))) {
3070
- for (; Yr.test(D2.charAt(b2 + 1)); ) b2 += 1;
3147
+ if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, ao.test(D2.charAt(b2)))) {
3148
+ for (; ao.test(D2.charAt(b2 + 1)); ) b2 += 1;
3071
3149
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
3072
3150
  }
3073
3151
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3074
3152
  break;
3075
3153
  default:
3076
- 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) : (Zr.lastIndex = B2 + 1, Zr.test(D2), b2 = 0 === Zr.lastIndex ? D2.length - 1 : Zr.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3154
+ 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) : (oo.lastIndex = B2 + 1, oo.test(D2), b2 = 0 === oo.lastIndex ? D2.length - 1 : oo.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3077
3155
  }
3078
3156
  return B2++, x2;
3079
3157
  }, position: function S() {
3080
3158
  return B2;
3081
3159
  } };
3082
3160
  };
3083
- const oo = { empty: true, space: true };
3084
- var io = class {
3161
+ const _o = { empty: true, space: true };
3162
+ var Ao = class {
3085
3163
  constructor(e) {
3086
- this.input = e, this.root = new eo(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
3164
+ this.input = e, this.root = new ho(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
3087
3165
  }
3088
3166
  atrule(e) {
3089
- let a = new Jr();
3167
+ let a = new lo();
3090
3168
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
3091
3169
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
3092
3170
  for (; !this.tokenizer.endOfFile(); ) {
@@ -3138,7 +3216,7 @@ var io = class {
3138
3216
  return false;
3139
3217
  }
3140
3218
  comment(e) {
3141
- let a = new Xr();
3219
+ let a = new co();
3142
3220
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
3143
3221
  let u = e[1].slice(2, -2);
3144
3222
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -3151,7 +3229,7 @@ var io = class {
3151
3229
  this.tokenizer = Xa(this.input);
3152
3230
  }
3153
3231
  decl(e, a) {
3154
- let u = new Qr();
3232
+ let u = new uo();
3155
3233
  this.init(u, e[0][2]);
3156
3234
  let m2, w2 = e[e.length - 1];
3157
3235
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Ha(e2) {
@@ -3200,7 +3278,7 @@ var io = class {
3200
3278
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
3201
3279
  }
3202
3280
  emptyRule(e) {
3203
- let a = new to();
3281
+ let a = new Mo();
3204
3282
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
3205
3283
  }
3206
3284
  end(e) {
@@ -3276,7 +3354,7 @@ var io = class {
3276
3354
  }
3277
3355
  raw(e, a, u, m2) {
3278
3356
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
3279
- 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", oo[x2] || oo[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3357
+ 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", _o[x2] || _o[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3280
3358
  if (!O2) {
3281
3359
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
3282
3360
  e.raws[a] = { raw: m3, value: _2 };
@@ -3285,7 +3363,7 @@ var io = class {
3285
3363
  }
3286
3364
  rule(e) {
3287
3365
  e.pop();
3288
- let a = new to();
3366
+ let a = new Mo();
3289
3367
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
3290
3368
  }
3291
3369
  spacesAndCommentsFromEnd(e) {
@@ -3325,9 +3403,9 @@ var io = class {
3325
3403
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
3326
3404
  }
3327
3405
  };
3328
- let ao = hn, lo = rr, co = io;
3406
+ let No = Mn, Po = pr, Do = Ao;
3329
3407
  function _t(e, a) {
3330
- let u = new lo(e, a), m2 = new co(u);
3408
+ let u = new Po(e, a), m2 = new Do(u);
3331
3409
  try {
3332
3410
  m2.parse();
3333
3411
  } catch (e2) {
@@ -3335,9 +3413,9 @@ function _t(e, a) {
3335
3413
  }
3336
3414
  return m2.root;
3337
3415
  }
3338
- var uo = _t;
3339
- _t.default = _t, ao.registerParse(_t);
3340
- let ho = class {
3416
+ var Fo = _t;
3417
+ _t.default = _t, No.registerParse(_t);
3418
+ let Uo = class {
3341
3419
  constructor(e, a = {}) {
3342
3420
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
3343
3421
  let e2 = a.node.rangeBy(a);
@@ -3349,9 +3427,9 @@ let ho = class {
3349
3427
  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;
3350
3428
  }
3351
3429
  };
3352
- var Mo = ho;
3353
- ho.default = ho;
3354
- let _o = Mo, Ao = class {
3430
+ var $o = Uo;
3431
+ Uo.default = Uo;
3432
+ let jo = $o, Go = class {
3355
3433
  get content() {
3356
3434
  return this.css;
3357
3435
  }
@@ -3363,26 +3441,26 @@ let _o = Mo, Ao = class {
3363
3441
  }
3364
3442
  warn(e, a = {}) {
3365
3443
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
3366
- let u = new _o(e, a);
3444
+ let u = new jo(e, a);
3367
3445
  return this.messages.push(u), u;
3368
3446
  }
3369
3447
  warnings() {
3370
3448
  return this.messages.filter((e) => "warning" === e.type);
3371
3449
  }
3372
3450
  };
3373
- var No = Ao;
3374
- Ao.default = Ao;
3375
- let Po = {};
3451
+ var Vo = Go;
3452
+ Go.default = Go;
3453
+ let qo = {};
3376
3454
  var so = function(e) {
3377
- Po[e] || (Po[e] = true, typeof console < "u" && console.warn && console.warn(e));
3455
+ qo[e] || (qo[e] = true, typeof console < "u" && console.warn && console.warn(e));
3378
3456
  };
3379
- let Do = hn, Fo = Mn, Uo = qr, $o = uo, jo = No, Go = lr, Vo = Rt, { isClean: qo, my: Ho } = Dt, Zo = so;
3380
- const Ko = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Yo = { 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 }, Jo = { Once: true, postcssPlugin: true, prepare: true };
3457
+ let Ho = Mn, Zo = Tn, Ko = eo, Jo = Fo, Yo = Vo, Xo = gr, Qo = Ht, { isClean: es, my: ts } = Kt, ns = so;
3458
+ const rs = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, os = { 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 }, ss = { Once: true, postcssPlugin: true, prepare: true };
3381
3459
  function Ne(e) {
3382
3460
  return "object" == typeof e && "function" == typeof e.then;
3383
3461
  }
3384
3462
  function no(e) {
3385
- let a = false, u = Ko[e.type];
3463
+ let a = false, u = rs[e.type];
3386
3464
  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"];
3387
3465
  }
3388
3466
  function Gn(e) {
@@ -3390,9 +3468,9 @@ function Gn(e) {
3390
3468
  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: [] };
3391
3469
  }
3392
3470
  function Ps(e) {
3393
- return e[qo] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3471
+ return e[es] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3394
3472
  }
3395
- let Xo = {}, Qo = class ro {
3473
+ let is = {}, as = class ro {
3396
3474
  get content() {
3397
3475
  return this.stringify().content;
3398
3476
  }
@@ -3419,19 +3497,19 @@ let Xo = {}, Qo = class ro {
3419
3497
  }
3420
3498
  constructor(e, a, u) {
3421
3499
  let m2;
3422
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof ro || a instanceof jo) m2 = Ps(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
3500
+ if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof ro || a instanceof Yo) m2 = Ps(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
3423
3501
  else {
3424
- let e2 = $o;
3502
+ let e2 = Jo;
3425
3503
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
3426
3504
  try {
3427
3505
  m2 = e2(a, u);
3428
3506
  } catch (e3) {
3429
3507
  this.processed = true, this.error = e3;
3430
3508
  }
3431
- m2 && !m2[Ho] && Do.rebuild(m2);
3509
+ m2 && !m2[ts] && Ho.rebuild(m2);
3432
3510
  }
3433
3511
  else m2 = Ps(a);
3434
- this.result = new jo(e, m2, u), this.helpers = { ...Xo, postcss: Xo, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
3512
+ this.result = new Yo(e, m2, u), this.helpers = { ...is, postcss: is, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
3435
3513
  }
3436
3514
  async() {
3437
3515
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -3465,8 +3543,8 @@ let Xo = {}, Qo = class ro {
3465
3543
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
3466
3544
  };
3467
3545
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
3468
- if (!Yo[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3469
- if (!Jo[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3546
+ if (!os[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3547
+ if (!ss[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3470
3548
  else "function" == typeof e[a] && t(e, a, e[a]);
3471
3549
  }
3472
3550
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -3483,8 +3561,8 @@ let Xo = {}, Qo = class ro {
3483
3561
  }
3484
3562
  if (this.prepareVisitors(), this.hasListener) {
3485
3563
  let e = this.result.root;
3486
- for (; !e[qo]; ) {
3487
- e[qo] = true;
3564
+ for (; !e[es]; ) {
3565
+ e[es] = true;
3488
3566
  let a = [Gn(e)];
3489
3567
  for (; a.length > 0; ) {
3490
3568
  let e2 = this.visitTick(a);
@@ -3529,9 +3607,9 @@ let Xo = {}, Qo = class ro {
3529
3607
  if (this.error) throw this.error;
3530
3608
  if (this.stringified) return this.result;
3531
3609
  this.stringified = true, this.sync();
3532
- let e = this.result.opts, a = Vo;
3610
+ let e = this.result.opts, a = Qo;
3533
3611
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
3534
- let u = new Uo(a, this.result.root, this.result.opts).generate();
3612
+ let u = new Ko(a, this.result.root, this.result.opts).generate();
3535
3613
  return this.result.css = u[0], this.result.map = u[1], this.result;
3536
3614
  }
3537
3615
  sync() {
@@ -3543,14 +3621,14 @@ let Xo = {}, Qo = class ro {
3543
3621
  }
3544
3622
  if (this.prepareVisitors(), this.hasListener) {
3545
3623
  let e = this.result.root;
3546
- for (; !e[qo]; ) e[qo] = true, this.walkSync(e);
3624
+ for (; !e[es]; ) e[es] = true, this.walkSync(e);
3547
3625
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
3548
3626
  else this.visitSync(this.listeners.OnceExit, e);
3549
3627
  }
3550
3628
  return this.result;
3551
3629
  }
3552
3630
  then(e, a) {
3553
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || Zo("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);
3631
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || ns("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);
3554
3632
  }
3555
3633
  toString() {
3556
3634
  return this.css;
@@ -3582,22 +3660,22 @@ let Xo = {}, Qo = class ro {
3582
3660
  }
3583
3661
  if (0 !== a.iterator) {
3584
3662
  let m3, w3 = a.iterator;
3585
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[qo]) return m3[qo] = true, void e.push(Gn(m3));
3663
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[es]) return m3[es] = true, void e.push(Gn(m3));
3586
3664
  a.iterator = 0, delete u.indexes[w3];
3587
3665
  }
3588
3666
  let w2 = a.events;
3589
3667
  for (; a.eventIndex < w2.length; ) {
3590
3668
  let e2 = w2[a.eventIndex];
3591
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[qo] = true, a.iterator = u.getIterator()));
3669
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[es] = true, a.iterator = u.getIterator()));
3592
3670
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
3593
3671
  }
3594
3672
  e.pop();
3595
3673
  }
3596
3674
  walkSync(e) {
3597
- e[qo] = true;
3675
+ e[es] = true;
3598
3676
  let a = no(e);
3599
3677
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
3600
- e2[qo] || this.walkSync(e2);
3678
+ e2[es] || this.walkSync(e2);
3601
3679
  });
3602
3680
  else {
3603
3681
  let a2 = this.listeners[u];
@@ -3608,14 +3686,14 @@ let Xo = {}, Qo = class ro {
3608
3686
  return this.sync().warnings();
3609
3687
  }
3610
3688
  };
3611
- Qo.registerPostcss = (e) => {
3612
- Xo = e;
3689
+ as.registerPostcss = (e) => {
3690
+ is = e;
3613
3691
  };
3614
- var es = Qo;
3615
- Qo.default = Qo, Go.registerLazyResult(Qo), Fo.registerLazyResult(Qo);
3616
- let ts = qr, ns = uo;
3617
- const rs = No;
3618
- let os = Rt, ss = so, is = class {
3692
+ var ls = as;
3693
+ as.default = as, Xo.registerLazyResult(as), Zo.registerLazyResult(as);
3694
+ let cs = eo, us = Fo;
3695
+ const ps = Vo;
3696
+ let ds = Ht, hs = so, ms = class {
3619
3697
  get content() {
3620
3698
  return this.result.css;
3621
3699
  }
@@ -3636,7 +3714,7 @@ let os = Rt, ss = so, is = class {
3636
3714
  }
3637
3715
  get root() {
3638
3716
  if (this._root) return this._root;
3639
- let e, a = ns;
3717
+ let e, a = us;
3640
3718
  try {
3641
3719
  e = a(this._css, this._opts);
3642
3720
  } catch (e2) {
@@ -3650,11 +3728,11 @@ let os = Rt, ss = so, is = class {
3650
3728
  }
3651
3729
  constructor(e, a, u) {
3652
3730
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
3653
- let m2, w2 = os;
3654
- this.result = new rs(this._processor, m2, this._opts), this.result.css = a;
3731
+ let m2, w2 = ds;
3732
+ this.result = new ps(this._processor, m2, this._opts), this.result.css = a;
3655
3733
  let b2 = this;
3656
3734
  Object.defineProperty(this.result, "root", { get: () => b2.root });
3657
- let C2 = new ts(w2, m2, this._opts, a);
3735
+ let C2 = new cs(w2, m2, this._opts, a);
3658
3736
  if (C2.isMap()) {
3659
3737
  let [e2, a2] = C2.generate();
3660
3738
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -3674,7 +3752,7 @@ let os = Rt, ss = so, is = class {
3674
3752
  return this.result;
3675
3753
  }
3676
3754
  then(e, a) {
3677
- 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);
3755
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || hs("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);
3678
3756
  }
3679
3757
  toString() {
3680
3758
  return this._css;
@@ -3683,9 +3761,9 @@ let os = Rt, ss = so, is = class {
3683
3761
  return [];
3684
3762
  }
3685
3763
  };
3686
- var as = is;
3687
- is.default = is;
3688
- let ls = Mn, cs = es, us = as, ps = lr, ds = class {
3764
+ var gs = ms;
3765
+ ms.default = ms;
3766
+ let ys = Tn, ws = ls, Ss = gs, bs = gr, vs = class {
3689
3767
  constructor(e = []) {
3690
3768
  this.version = "8.5.3", this.plugins = this.normalize(e);
3691
3769
  }
@@ -3701,43 +3779,43 @@ let ls = Mn, cs = es, us = as, ps = lr, ds = class {
3701
3779
  return a;
3702
3780
  }
3703
3781
  process(e, a = {}) {
3704
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new cs(this, e, a) : new us(this, e, a);
3782
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new ws(this, e, a) : new Ss(this, e, a);
3705
3783
  }
3706
3784
  use(e) {
3707
3785
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
3708
3786
  }
3709
3787
  };
3710
- var hs = ds;
3711
- ds.default = ds, ps.registerProcessor(ds), ls.registerProcessor(ds);
3712
- let ms = gn, gs = Xt, ys = hn, ws = kt, bs = tn, Ss = Mn, vs = Tr, xs = rr, Ms = es, Is = ur, _s = Ht, Os = uo, Es = hs, Ls = No, Rs = lr, As = fr, Ts = Rt, Ns = Mo;
3788
+ var xs = vs;
3789
+ vs.default = vs, bs.registerProcessor(vs), ys.registerProcessor(vs);
3790
+ let Ms = On, Is = an, _s = Mn, Os = Ut, Es = un, Ls = Tn, Rs = jr, As = pr, Ts = ls, Ns = wr, $s = rn, Ws = Fo, js = xs, Gs = Vo, Vs = gr, qs = Tr, Hs = Ht, Zs = $o;
3713
3791
  function L$1(...e) {
3714
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Es(e);
3792
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new js(e);
3715
3793
  }
3716
3794
  L$1.plugin = function(e, a) {
3717
3795
  let u, m2 = false;
3718
3796
  function n(...u2) {
3719
3797
  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"));
3720
3798
  let w2 = a(...u2);
3721
- return w2.postcssPlugin = e, w2.postcssVersion = new Es().version, w2;
3799
+ return w2.postcssPlugin = e, w2.postcssVersion = new js().version, w2;
3722
3800
  }
3723
3801
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
3724
3802
  return L$1([n(u2)]).process(e2, a2);
3725
3803
  }, n;
3726
- }, L$1.stringify = Ts, L$1.parse = Os, L$1.fromJSON = vs, L$1.list = Is, L$1.comment = (e) => new gs(e), L$1.atRule = (e) => new ms(e), L$1.decl = (e) => new bs(e), L$1.rule = (e) => new As(e), L$1.root = (e) => new Rs(e), L$1.document = (e) => new Ss(e), L$1.CssSyntaxError = ws, L$1.Declaration = bs, L$1.Container = ys, L$1.Processor = Es, L$1.Document = Ss, L$1.Comment = gs, L$1.Warning = Ns, L$1.AtRule = ms, L$1.Result = Ls, L$1.Input = xs, L$1.Rule = As, L$1.Root = Rs, L$1.Node = _s, Ms.registerPostcss(L$1);
3727
- var $s = L$1;
3804
+ }, L$1.stringify = Hs, L$1.parse = Ws, L$1.fromJSON = Rs, L$1.list = Ns, L$1.comment = (e) => new Is(e), L$1.atRule = (e) => new Ms(e), L$1.decl = (e) => new Es(e), L$1.rule = (e) => new qs(e), L$1.root = (e) => new Vs(e), L$1.document = (e) => new Ls(e), L$1.CssSyntaxError = Os, L$1.Declaration = Es, L$1.Container = _s, L$1.Processor = js, L$1.Document = Ls, L$1.Comment = Is, L$1.Warning = Zs, L$1.AtRule = Ms, L$1.Result = Gs, L$1.Input = As, L$1.Rule = qs, L$1.Root = Vs, L$1.Node = $s, Ts.registerPostcss(L$1);
3805
+ var Ks = L$1;
3728
3806
  L$1.default = L$1;
3729
- const Ws = Yi($s);
3730
- Ws.stringify, Ws.fromJSON, Ws.plugin, Ws.parse, Ws.list, Ws.document, Ws.comment, Ws.atRule, Ws.rule, Ws.decl, Ws.root, Ws.CssSyntaxError, Ws.Declaration, Ws.Container, Ws.Processor, Ws.Document, Ws.Comment, Ws.Warning, Ws.AtRule, Ws.Result, Ws.Input, Ws.Rule, Ws.Root, Ws.Node;
3731
- var js = ((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))(js || {}), Gs = ((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))(Gs || {}), Vs = ((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))(Vs || {}), qs = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(qs || {}), Hs = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(Hs || {}), Zs = ((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))(Zs || {});
3807
+ const Ys = Yi(Ks);
3808
+ Ys.stringify, Ys.fromJSON, Ys.plugin, Ys.parse, Ys.list, Ys.document, Ys.comment, Ys.atRule, Ys.rule, Ys.decl, Ys.root, Ys.CssSyntaxError, Ys.Declaration, Ys.Container, Ys.Processor, Ys.Document, Ys.Comment, Ys.Warning, Ys.AtRule, Ys.Result, Ys.Input, Ys.Rule, Ys.Root, Ys.Node;
3809
+ var Xs = ((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))(Xs || {}), Qs = ((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))(Qs || {}), ei = ((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))(ei || {}), ti = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(ti || {}), si = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(si || {}), ii = ((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))(ii || {});
3732
3810
  function G(e, a, u = document) {
3733
3811
  const m2 = { capture: true, passive: true };
3734
3812
  return u.addEventListener(e, a, m2), () => u.removeEventListener(e, a, m2);
3735
3813
  }
3736
- const Ks = "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.";
3737
- let Ys = { map: {}, getId: () => (console.error(Ks), -1), getNode: () => (console.error(Ks), null), removeNodeFromMap() {
3738
- console.error(Ks);
3739
- }, has: () => (console.error(Ks), false), reset() {
3740
- console.error(Ks);
3814
+ const ai = "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.";
3815
+ let li = { map: {}, getId: () => (console.error(ai), -1), getNode: () => (console.error(ai), null), removeNodeFromMap() {
3816
+ console.error(ai);
3817
+ }, has: () => (console.error(ai), false), reset() {
3818
+ console.error(ai);
3741
3819
  } };
3742
3820
  function $e(e, a, u = {}) {
3743
3821
  let m2 = null, w2 = 0;
@@ -3771,8 +3849,8 @@ function Re(e, a, u) {
3771
3849
  };
3772
3850
  }
3773
3851
  }
3774
- typeof window < "u" && window.Proxy && window.Reflect && (Ys = new Proxy(Ys, { get: (e, a, u) => ("map" === a && console.error(Ks), Reflect.get(e, a, u)) }));
3775
- let Xs, Qs = Date.now;
3852
+ typeof window < "u" && window.Proxy && window.Reflect && (li = new Proxy(li, { get: (e, a, u) => ("map" === a && console.error(ai), Reflect.get(e, a, u)) }));
3853
+ let ci, ui = Date.now;
3776
3854
  function po(e) {
3777
3855
  var a, u, m2, w2, b2, C2;
3778
3856
  const x2 = e.document;
@@ -3819,7 +3897,7 @@ function bo(e, a) {
3819
3897
  function Fs(e) {
3820
3898
  return !(null == e || !e.shadowRoot);
3821
3899
  }
3822
- /[1-9][0-9]{12}/.test(Date.now().toString()) || (Qs = () => (/* @__PURE__ */ new Date()).getTime());
3900
+ /[1-9][0-9]{12}/.test(Date.now().toString()) || (ui = () => (/* @__PURE__ */ new Date()).getTime());
3823
3901
  class _l {
3824
3902
  constructor() {
3825
3903
  b$1(this, "id", 1), b$1(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), b$1(this, "idStyleMap", /* @__PURE__ */ new Map());
@@ -3864,11 +3942,11 @@ function vo(e) {
3864
3942
  const a = e.ownerDocument;
3865
3943
  return !!a && (a.contains(e) || zl(e));
3866
3944
  }
3867
- const M = (e) => Xs ? (...a) => {
3945
+ const M = (e) => ci ? (...a) => {
3868
3946
  try {
3869
3947
  return e(...a);
3870
3948
  } catch (e2) {
3871
- if (Xs && true === Xs(e2)) return;
3949
+ if (ci && true === ci(e2)) return;
3872
3950
  throw e2;
3873
3951
  }
3874
3952
  } : e;
@@ -3927,22 +4005,22 @@ class Vl {
3927
4005
  transformCrossOriginEvent(e, a) {
3928
4006
  var u;
3929
4007
  switch (a.type) {
3930
- case js.FullSnapshot: {
4008
+ case Xs.FullSnapshot: {
3931
4009
  this.crossOriginIframeMirror.reset(e), this.crossOriginIframeStyleMirror.reset(e), this.replaceIdOnNode(a.data.node, e);
3932
4010
  const u2 = a.data.node.id;
3933
- return this.crossOriginIframeRootIdMap.set(e, u2), this.patchRootIdOnNode(a.data.node, u2), { timestamp: a.timestamp, type: js.IncrementalSnapshot, data: { source: Gs.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, node: a.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4011
+ return this.crossOriginIframeRootIdMap.set(e, u2), this.patchRootIdOnNode(a.data.node, u2), { timestamp: a.timestamp, type: Xs.IncrementalSnapshot, data: { source: Qs.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, node: a.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
3934
4012
  }
3935
- case js.Meta:
3936
- case js.Load:
3937
- case js.DomContentLoaded:
4013
+ case Xs.Meta:
4014
+ case Xs.Load:
4015
+ case Xs.DomContentLoaded:
3938
4016
  return false;
3939
- case js.Plugin:
4017
+ case Xs.Plugin:
3940
4018
  return a;
3941
- case js.Custom:
4019
+ case Xs.Custom:
3942
4020
  return this.replaceIds(a.data.payload, e, ["id", "parentId", "previousId", "nextId"]), a;
3943
- case js.IncrementalSnapshot:
4021
+ case Xs.IncrementalSnapshot:
3944
4022
  switch (a.data.source) {
3945
- case Gs.Mutation:
4023
+ case Qs.Mutation:
3946
4024
  return a.data.adds.forEach((a2) => {
3947
4025
  this.replaceIds(a2, e, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(a2.node, e);
3948
4026
  const u2 = this.crossOriginIframeRootIdMap.get(e);
@@ -3954,30 +4032,30 @@ class Vl {
3954
4032
  }), a.data.texts.forEach((a2) => {
3955
4033
  this.replaceIds(a2, e, ["id"]);
3956
4034
  }), a;
3957
- case Gs.Drag:
3958
- case Gs.TouchMove:
3959
- case Gs.MouseMove:
4035
+ case Qs.Drag:
4036
+ case Qs.TouchMove:
4037
+ case Qs.MouseMove:
3960
4038
  return a.data.positions.forEach((a2) => {
3961
4039
  this.replaceIds(a2, e, ["id"]);
3962
4040
  }), a;
3963
- case Gs.ViewportResize:
4041
+ case Qs.ViewportResize:
3964
4042
  return false;
3965
- case Gs.MediaInteraction:
3966
- case Gs.MouseInteraction:
3967
- case Gs.Scroll:
3968
- case Gs.CanvasMutation:
3969
- case Gs.Input:
4043
+ case Qs.MediaInteraction:
4044
+ case Qs.MouseInteraction:
4045
+ case Qs.Scroll:
4046
+ case Qs.CanvasMutation:
4047
+ case Qs.Input:
3970
4048
  return this.replaceIds(a.data, e, ["id"]), a;
3971
- case Gs.StyleSheetRule:
3972
- case Gs.StyleDeclaration:
4049
+ case Qs.StyleSheetRule:
4050
+ case Qs.StyleDeclaration:
3973
4051
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleId"]), a;
3974
- case Gs.Font:
4052
+ case Qs.Font:
3975
4053
  return a;
3976
- case Gs.Selection:
4054
+ case Qs.Selection:
3977
4055
  return a.data.ranges.forEach((a2) => {
3978
4056
  this.replaceIds(a2, e, ["start", "end"]);
3979
4057
  }), a;
3980
- case Gs.AdoptedStyleSheet:
4058
+ case Qs.AdoptedStyleSheet:
3981
4059
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleIds"]), null == (u = a.data.styles) || u.forEach((a2) => {
3982
4060
  this.replaceStyleIds(a2, e, ["styleId"]);
3983
4061
  }), a;
@@ -4001,7 +4079,7 @@ class Vl {
4001
4079
  });
4002
4080
  }
4003
4081
  patchRootIdOnNode(e, a) {
4004
- e.type !== Qe.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4082
+ e.type !== ct.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4005
4083
  this.patchRootIdOnNode(e2, a);
4006
4084
  });
4007
4085
  }
@@ -4219,7 +4297,7 @@ function ko(e, a) {
4219
4297
  const { parentNode: u } = a;
4220
4298
  return !!u && (!!e.has(u) || ko(e, u));
4221
4299
  }
4222
- const ei = [];
4300
+ const pi = [];
4223
4301
  function tt(e) {
4224
4302
  try {
4225
4303
  if ("composedPath" in e) {
@@ -4233,7 +4311,7 @@ function tt(e) {
4233
4311
  function Co(e, a) {
4234
4312
  var u, m2;
4235
4313
  const w2 = new Zl();
4236
- ei.push(w2), w2.init(e);
4314
+ pi.push(w2), w2.init(e);
4237
4315
  let b2 = window.MutationObserver || window.__rrMutationObserver;
4238
4316
  const C2 = null == (m2 = null == (u = null == window ? void 0 : window.Zone) ? void 0 : u.__symbol__) ? void 0 : m2.call(u, "MutationObserver");
4239
4317
  C2 && window[C2] && (b2 = window[C2]);
@@ -4245,7 +4323,7 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4245
4323
  };
4246
4324
  const C2 = true === b2.mouseInteraction || void 0 === b2.mouseInteraction ? {} : b2.mouseInteraction, x2 = [];
4247
4325
  let I2 = null;
4248
- return Object.keys(Vs).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4326
+ return Object.keys(ei).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4249
4327
  let C3 = fe(b3);
4250
4328
  const _2 = /* @__PURE__ */ ((a2) => (b4) => {
4251
4329
  const C4 = tt(b4);
@@ -4254,29 +4332,29 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4254
4332
  if ("pointerType" in b4) {
4255
4333
  switch (b4.pointerType) {
4256
4334
  case "mouse":
4257
- x3 = qs.Mouse;
4335
+ x3 = ti.Mouse;
4258
4336
  break;
4259
4337
  case "touch":
4260
- x3 = qs.Touch;
4338
+ x3 = ti.Touch;
4261
4339
  break;
4262
4340
  case "pen":
4263
- x3 = qs.Pen;
4341
+ x3 = ti.Pen;
4264
4342
  }
4265
- x3 === qs.Touch ? Vs[a2] === Vs.MouseDown ? _3 = "TouchStart" : Vs[a2] === Vs.MouseUp && (_3 = "TouchEnd") : qs.Pen;
4266
- } else Ds(b4) && (x3 = qs.Touch);
4267
- null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === qs.Touch || _3.startsWith("Mouse") && x3 === qs.Mouse) && (x3 = null)) : Vs[a2] === Vs.Click && (x3 = I2, I2 = null);
4343
+ x3 === ti.Touch ? ei[a2] === ei.MouseDown ? _3 = "TouchStart" : ei[a2] === ei.MouseUp && (_3 = "TouchEnd") : ti.Pen;
4344
+ } else Ds(b4) && (x3 = ti.Touch);
4345
+ null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === ti.Touch || _3.startsWith("Mouse") && x3 === ti.Mouse) && (x3 = null)) : ei[a2] === ei.Click && (x3 = I2, I2 = null);
4268
4346
  const O2 = Ds(b4) ? b4.changedTouches[0] : b4;
4269
4347
  if (!O2) return;
4270
4348
  const E2 = u.getId(C4), { clientX: D2, clientY: F2 } = O2;
4271
- M(e)({ type: Vs[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4349
+ M(e)({ type: ei[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4272
4350
  })(b3);
4273
- if (window.PointerEvent) switch (Vs[b3]) {
4274
- case Vs.MouseDown:
4275
- case Vs.MouseUp:
4351
+ if (window.PointerEvent) switch (ei[b3]) {
4352
+ case ei.MouseDown:
4353
+ case ei.MouseUp:
4276
4354
  C3 = C3.replace("mouse", "pointer");
4277
4355
  break;
4278
- case Vs.TouchStart:
4279
- case Vs.TouchEnd:
4356
+ case ei.TouchStart:
4357
+ case ei.TouchEnd:
4280
4358
  return;
4281
4359
  }
4282
4360
  x2.push(G(C3, _2, a));
@@ -4295,7 +4373,7 @@ function xo({ scrollCb: e, doc: a, mirror: u, blockClass: m2, blockSelector: w2,
4295
4373
  } else e({ id: x2, x: C2.scrollLeft, y: C2.scrollTop });
4296
4374
  }), b2.scroll || 100)), a);
4297
4375
  }
4298
- const ti = ["INPUT", "TEXTAREA", "SELECT"], si = /* @__PURE__ */ new WeakMap();
4376
+ const di = ["INPUT", "TEXTAREA", "SELECT"], hi = /* @__PURE__ */ new WeakMap();
4299
4377
  function ql({ deviceChangeCb: e }) {
4300
4378
  const t = (a2, u2) => {
4301
4379
  const m2 = a2.device.productName ? [a2.device.productName] : ["Unknown USB Device"];
@@ -4415,7 +4493,7 @@ function au(e, a = {}) {
4415
4493
  e2(x3.map((e3) => (e3.timeOffset -= u3, e3)), a3), x3 = [], C3 = null;
4416
4494
  }), b3), _3 = M($e(M((e3) => {
4417
4495
  const a3 = tt(e3), { clientX: u3, clientY: w4 } = Ds(e3) ? e3.changedTouches[0] : e3;
4418
- C3 || (C3 = Qs()), x3.push({ x: u3, y: w4, id: m3.getId(a3), timeOffset: Qs() - C3 }), I3(typeof DragEvent < "u" && e3 instanceof DragEvent ? Gs.Drag : e3 instanceof MouseEvent ? Gs.MouseMove : Gs.TouchMove);
4496
+ C3 || (C3 = ui()), x3.push({ x: u3, y: w4, id: m3.getId(a3), timeOffset: ui() - C3 }), I3(typeof DragEvent < "u" && e3 instanceof DragEvent ? Qs.Drag : e3 instanceof MouseEvent ? Qs.MouseMove : Qs.TouchMove);
4419
4497
  }), w3, { trailing: false })), O3 = [G("mousemove", _3, u2), G("touchmove", _3, u2), G("drag", _3, u2)];
4420
4498
  return M(() => {
4421
4499
  O3.forEach((e3) => e3());
@@ -4431,7 +4509,7 @@ function au(e, a = {}) {
4431
4509
  function p(e3) {
4432
4510
  let u3 = tt(e3);
4433
4511
  const _4 = e3.isTrusted, E4 = u3 && u3.tagName;
4434
- if (u3 && "OPTION" === E4 && (u3 = u3.parentElement), !u3 || !E4 || ti.indexOf(E4) < 0 || Z(u3, m3, w3, true) || u3.classList.contains(b3) || C3 && u3.matches(C3)) return;
4512
+ if (u3 && "OPTION" === E4 && (u3 = u3.parentElement), !u3 || !E4 || di.indexOf(E4) < 0 || Z(u3, m3, w3, true) || u3.classList.contains(b3) || C3 && u3.matches(C3)) return;
4435
4513
  let D4 = u3.value, F4 = false;
4436
4514
  const U4 = Yt(u3) || "", { value: B2, masked: $2 } = Zt({ element: u3, maskInputOptions: x3, tagName: E4, type: U4, value: D4, maskInputFn: I3 });
4437
4515
  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 });
@@ -4444,9 +4522,9 @@ function au(e, a = {}) {
4444
4522
  });
4445
4523
  }
4446
4524
  function f2(a3, m4) {
4447
- const w4 = si.get(a3);
4525
+ const w4 = hi.get(a3);
4448
4526
  if (!w4 || w4.text !== m4.text || w4.isChecked !== m4.isChecked || w4.masked !== m4.masked) {
4449
- si.set(a3, m4);
4527
+ hi.set(a3, m4);
4450
4528
  const w5 = u2.getId(a3);
4451
4529
  M(e2)({ ...m4, id: w5 });
4452
4530
  }
@@ -4471,7 +4549,7 @@ function au(e, a = {}) {
4471
4549
  const { value: e3, masked: a4 } = Zt({ element: w4, maskInputOptions: u2, tagName: x3, type: I3, value: _3, maskInputFn: m3 });
4472
4550
  _3 = e3, b3 = a4;
4473
4551
  }
4474
- e2({ source: Gs.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4552
+ e2({ source: Qs.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4475
4553
  var a4;
4476
4554
  const u3 = [];
4477
4555
  for (; e3; ) {
@@ -4499,7 +4577,7 @@ function au(e, a = {}) {
4499
4577
  if (!C4 || Z(C4, a2, u2, true)) return;
4500
4578
  const { currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 } = C4;
4501
4579
  e2({ type: b4, id: m3.getId(C4), currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 });
4502
- }), w3.media || 500)), x3 = [G("play", C3(Zs.Play), b3), G("pause", C3(Zs.Pause), b3), G("seeked", C3(Zs.Seeked), b3), G("volumechange", C3(Zs.VolumeChange), b3), G("ratechange", C3(Zs.RateChange), b3)];
4580
+ }), w3.media || 500)), x3 = [G("play", C3(ii.Play), b3), G("pause", C3(ii.Pause), b3), G("seeked", C3(ii.Seeked), b3), G("volumechange", C3(ii.VolumeChange), b3), G("ratechange", C3(ii.RateChange), b3)];
4503
4581
  return M(() => {
4504
4582
  x3.forEach((e3) => e3());
4505
4583
  });
@@ -4620,7 +4698,7 @@ function au(e, a = {}) {
4620
4698
  })(e), U2 = [];
4621
4699
  for (const a2 of e.plugins) U2.push(a2.observer(a2.callback, u, a2.options));
4622
4700
  return M(() => {
4623
- ei.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());
4701
+ pi.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());
4624
4702
  });
4625
4703
  }
4626
4704
  function ft(e) {
@@ -4629,29 +4707,29 @@ function ft(e) {
4629
4707
  function mt(e) {
4630
4708
  return !!(typeof window[e] < "u" && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype);
4631
4709
  }
4632
- const ii = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", ai = typeof self < "u" && self.Blob && new Blob([(li = ii, Uint8Array.from(atob(li), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4633
- var li;
4710
+ const fi = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", mi = typeof self < "u" && self.Blob && new Blob([(gi = fi, Uint8Array.from(atob(gi), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4711
+ var gi;
4634
4712
  function uu(e) {
4635
4713
  let a;
4636
4714
  try {
4637
- if (a = ai && (self.URL || self.webkitURL).createObjectURL(ai), !a) throw "";
4715
+ if (a = mi && (self.URL || self.webkitURL).createObjectURL(mi), !a) throw "";
4638
4716
  const u = new Worker(a, { name: null == e ? void 0 : e.name });
4639
4717
  return u.addEventListener("error", () => {
4640
4718
  (self.URL || self.webkitURL).revokeObjectURL(a);
4641
4719
  }), u;
4642
4720
  } catch {
4643
- return new Worker("data:text/javascript;base64," + ii, { name: null == e ? void 0 : e.name });
4721
+ return new Worker("data:text/javascript;base64," + fi, { name: null == e ? void 0 : e.name });
4644
4722
  } finally {
4645
4723
  a && (self.URL || self.webkitURL).revokeObjectURL(a);
4646
4724
  }
4647
4725
  }
4648
- for (var ci = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ui = typeof Uint8Array > "u" ? [] : new Uint8Array(256), pi = 0; pi < 64; pi++) ui[ci.charCodeAt(pi)] = pi;
4649
- const di = /* @__PURE__ */ new Map();
4726
+ for (var yi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Mi = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Ii = 0; Ii < 64; Ii++) Mi[yi.charCodeAt(Ii)] = Ii;
4727
+ const Li = /* @__PURE__ */ new Map();
4650
4728
  const Oo = (e, a, u) => {
4651
4729
  if (!e || !Ro(e, a) && "object" != typeof e) return;
4652
4730
  const m2 = (function pu(e2, a2) {
4653
- let u2 = di.get(e2);
4654
- return u2 || (u2 = /* @__PURE__ */ new Map(), di.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4731
+ let u2 = Li.get(e2);
4732
+ return u2 || (u2 = /* @__PURE__ */ new Map(), Li.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4655
4733
  })(u, e.constructor.name);
4656
4734
  let w2 = m2.indexOf(e);
4657
4735
  return -1 === w2 && (w2 = m2.length, m2.push(e)), w2;
@@ -4663,7 +4741,7 @@ function Ot(e, a, u) {
4663
4741
  if (e instanceof ArrayBuffer) {
4664
4742
  const a2 = e.constructor.name, u2 = (function(e2) {
4665
4743
  var a3, u3 = new Uint8Array(e2), m2 = u3.length, w2 = "";
4666
- for (a3 = 0; a3 < m2; a3 += 3) w2 += ci[u3[a3] >> 2], w2 += ci[(3 & u3[a3]) << 4 | u3[a3 + 1] >> 4], w2 += ci[(15 & u3[a3 + 1]) << 2 | u3[a3 + 2] >> 6], w2 += ci[63 & u3[a3 + 2]];
4744
+ for (a3 = 0; a3 < m2; a3 += 3) w2 += yi[u3[a3] >> 2], w2 += yi[(3 & u3[a3]) << 4 | u3[a3 + 1] >> 4], w2 += yi[(15 & u3[a3 + 1]) << 2 | u3[a3 + 2] >> 6], w2 += yi[63 & u3[a3 + 2]];
4667
4745
  return m2 % 3 == 2 ? w2 = w2.substring(0, w2.length - 1) + "=" : m2 % 3 == 1 && (w2 = w2.substring(0, w2.length - 2) + "=="), w2;
4668
4746
  })(e);
4669
4747
  return { rr_type: a2, base64: u2 };
@@ -4760,7 +4838,7 @@ class gu {
4760
4838
  const { id: a2 } = e2.data;
4761
4839
  if (C2.set(a2, false), !("base64" in e2.data)) return;
4762
4840
  const { base64: u2, type: m3, width: w3, height: b3 } = e2.data;
4763
- this.mutationCb({ id: a2, type: Hs["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] }] });
4841
+ this.mutationCb({ id: a2, type: si["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] }] });
4764
4842
  };
4765
4843
  const I2 = 1e3 / e;
4766
4844
  let _2, O2 = 0;
@@ -4796,14 +4874,14 @@ class gu {
4796
4874
  return function(...b5) {
4797
4875
  return Z(this.canvas, u2, m3, true) || setTimeout(() => {
4798
4876
  const u3 = Eo(b5, a2, this);
4799
- e2(this.canvas, { type: Hs["2D"], property: C2, args: u3 });
4877
+ e2(this.canvas, { type: si["2D"], property: C2, args: u3 });
4800
4878
  }, 0), w4.apply(this, b5);
4801
4879
  };
4802
4880
  });
4803
4881
  w3.push(b4);
4804
4882
  } catch {
4805
4883
  const u3 = qt(a2.CanvasRenderingContext2D.prototype, C2, { set(a3) {
4806
- e2(this.canvas, { type: Hs["2D"], property: C2, args: [a3], setter: true });
4884
+ e2(this.canvas, { type: si["2D"], property: C2, args: [a3], setter: true });
4807
4885
  } });
4808
4886
  w3.push(u3);
4809
4887
  }
@@ -4812,7 +4890,7 @@ class gu {
4812
4890
  };
4813
4891
  })(this.processMutation.bind(this), e, a, u), b2 = (function mu(e2, a2, u2, m3) {
4814
4892
  const w3 = [];
4815
- return w3.push(...tr(a2.WebGLRenderingContext.prototype, Hs.WebGL, e2, u2, m3, a2)), typeof a2.WebGL2RenderingContext < "u" && w3.push(...tr(a2.WebGL2RenderingContext.prototype, Hs.WebGL2, e2, u2, m3, a2)), () => {
4893
+ return w3.push(...tr(a2.WebGLRenderingContext.prototype, si.WebGL, e2, u2, m3, a2)), typeof a2.WebGL2RenderingContext < "u" && w3.push(...tr(a2.WebGL2RenderingContext.prototype, si.WebGL2, e2, u2, m3, a2)), () => {
4816
4894
  w3.forEach((e3) => e3());
4817
4895
  };
4818
4896
  })(this.processMutation.bind(this), e, a, u);
@@ -4923,25 +5001,25 @@ class bu {
4923
5001
  trackStylesheetInLinkElement(e) {
4924
5002
  }
4925
5003
  }
4926
- let hi, fi, mi, gi = false;
4927
- var yi;
5004
+ let Ri, Ai, Ti, Ni = false;
5005
+ var Pi;
4928
5006
  try {
4929
5007
  if (2 !== Array.from([1], (e) => 2 * e)[0]) {
4930
5008
  const e = document.createElement("iframe");
4931
- document.body.appendChild(e), Array.from = (null == (yi = e.contentWindow) ? void 0 : yi.Array.from) || Array.from, document.body.removeChild(e);
5009
+ document.body.appendChild(e), Array.from = (null == (Pi = e.contentWindow) ? void 0 : Pi.Array.from) || Array.from, document.body.removeChild(e);
4932
5010
  }
4933
- } catch (li2) {
4934
- console.debug("Unable to override Array.from", li2);
5011
+ } catch (gi2) {
5012
+ console.debug("Unable to override Array.from", gi2);
4935
5013
  }
4936
- const Mi = (function Ci() {
4937
- return new et();
5014
+ const qi = (function Ci() {
5015
+ return new ut();
4938
5016
  })();
4939
5017
  function ae(e = {}) {
4940
- 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: Y2 = false, recordCrossOriginIframes: J2 = 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;
5018
+ 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;
4941
5019
  !(function Bl(e2) {
4942
- Xs = e2;
5020
+ ci = e2;
4943
5021
  })(se2);
4944
- const ie2 = !J2 || window.parent === window;
5022
+ const ie2 = !Y2 || window.parent === window;
4945
5023
  let le2 = false;
4946
5024
  if (!ie2) try {
4947
5025
  window.parent.document && (le2 = false);
@@ -4951,7 +5029,7 @@ function ae(e = {}) {
4951
5029
  if (ie2 && !a) throw new Error("emit function is required");
4952
5030
  if (!ie2 && !le2) return () => {
4953
5031
  };
4954
- void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), Mi.reset();
5032
+ void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), qi.reset();
4955
5033
  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 || {};
4956
5034
  !(function Ul(e2 = window) {
4957
5035
  "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) => {
@@ -4968,57 +5046,57 @@ function ae(e = {}) {
4968
5046
  for (const a2 of ne2 || []) a2.eventProcessor && (e2 = a2.eventProcessor(e2));
4969
5047
  return z2 && !le2 && (e2 = z2(e2)), e2;
4970
5048
  };
4971
- hi = (e2, w3) => {
5049
+ Ri = (e2, w3) => {
4972
5050
  var b3;
4973
5051
  const C3 = e2;
4974
- if (C3.timestamp = Qs(), null != (b3 = ei[0]) && b3.isFrozen() && C3.type !== js.FullSnapshot && !(C3.type === js.IncrementalSnapshot && C3.data.source === Gs.Mutation) && ei.forEach((e3) => e3.unfreeze()), ie2) null == a || a(vn(C3), w3);
5052
+ if (C3.timestamp = ui(), null != (b3 = pi[0]) && b3.isFrozen() && C3.type !== Xs.FullSnapshot && !(C3.type === Xs.IncrementalSnapshot && C3.data.source === Qs.Mutation) && pi.forEach((e3) => e3.unfreeze()), ie2) null == a || a(vn(C3), w3);
4975
5053
  else if (le2) {
4976
5054
  const e3 = { type: "@sailfish-rrweb/rrweb", event: vn(C3), origin: window.location.origin, isCheckout: w3 };
4977
5055
  window.parent.postMessage(e3, "*");
4978
5056
  }
4979
- if (C3.type === js.FullSnapshot) de2 = C3, he2 = 0;
4980
- else if (C3.type === js.IncrementalSnapshot) {
4981
- if (C3.data.source === Gs.Mutation && C3.data.isAttachIframe) return;
5057
+ if (C3.type === Xs.FullSnapshot) de2 = C3, he2 = 0;
5058
+ else if (C3.type === Xs.IncrementalSnapshot) {
5059
+ if (C3.data.source === Qs.Mutation && C3.data.isAttachIframe) return;
4982
5060
  he2++;
4983
5061
  const e3 = m2 && he2 >= m2, a2 = u && C3.timestamp - de2.timestamp > u;
4984
- (e3 || a2) && fi(true);
5062
+ (e3 || a2) && Ai(true);
4985
5063
  }
4986
5064
  };
4987
5065
  const rt = (e2) => {
4988
- hi({ type: js.IncrementalSnapshot, data: { source: Gs.Mutation, ...e2 } });
4989
- }, kn = (e2) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.Scroll, ...e2 } }), Cn = (e2) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.CanvasMutation, ...e2 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e2) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.AdoptedStyleSheet, ...e2 } }) }), ge2 = new Vl({ mirror: Mi, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: J2, wrappedEmit: hi });
4990
- for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: Mi, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5066
+ Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.Mutation, ...e2 } });
5067
+ }, kn = (e2) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.Scroll, ...e2 } }), Cn = (e2) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.CanvasMutation, ...e2 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e2) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.AdoptedStyleSheet, ...e2 } }) }), ge2 = new Vl({ mirror: qi, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Ri });
5068
+ for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: qi, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
4991
5069
  const ye2 = new yu();
4992
- mi = new gu({ recordCanvas: Y2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: Mi, sampling: j2.canvas, dataURLOptions: V2 });
4993
- 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: Y2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: mi, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: Mi });
4994
- fi = (e2 = false) => {
5070
+ Ti = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: qi, sampling: j2.canvas, dataURLOptions: V2 });
5071
+ 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: Ti, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: qi });
5072
+ Ai = (e2 = false) => {
4995
5073
  if (!H2) return;
4996
- hi({ type: js.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), ei.forEach((e3) => e3.lock());
5074
+ Ri({ type: Xs.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), pi.forEach((e3) => e3.lock());
4997
5075
  const a2 = (function Zi(e3, a3) {
4998
- const { mirror: u2 = new et(), 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 || {};
5076
+ const { mirror: u2 = new ut(), 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 || {};
4999
5077
  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 });
5000
- })(document, { mirror: Mi, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: Y2, inlineImages: te2, onSerialize: (e3) => {
5001
- wo(e3, Mi) && ge2.addIframe(e3), bo(e3, Mi) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5078
+ })(document, { mirror: qi, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: J2, inlineImages: te2, onSerialize: (e3) => {
5079
+ wo(e3, qi) && ge2.addIframe(e3), bo(e3, qi) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5002
5080
  }, onIframeLoad: (e3, a3) => {
5003
5081
  ge2.attachIframe(e3, a3), we2.observeAttachShadow(e3);
5004
5082
  }, onStylesheetLoad: (e3, a3) => {
5005
5083
  me2.attachLinkElement(e3, a3);
5006
5084
  }, keepIframeSrcFn: re2 });
5007
5085
  if (!a2) return console.warn("Failed to snapshot the document");
5008
- hi({ type: js.FullSnapshot, data: { node: a2, initialOffset: po(window) } }, e2), ei.forEach((e3) => e3.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, Mi.getId(document));
5086
+ Ri({ type: Xs.FullSnapshot, data: { node: a2, initialOffset: po(window) } }, e2), pi.forEach((e3) => e3.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, qi.getId(document));
5009
5087
  };
5010
5088
  try {
5011
5089
  const e2 = [], K = (e3) => {
5012
5090
  var a2;
5013
- return M(au)({ mutationCb: rt, mousemoveCb: (e4, a3) => hi({ type: js.IncrementalSnapshot, data: { source: a3, positions: e4 } }), mouseInteractionCb: (e4) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.MouseInteraction, ...e4 } }), scrollCb: kn, viewportResizeCb: (e4) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.ViewportResize, ...e4 } }), inputCb: (e4) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.Input, ...e4 } }), mediaInteractionCb: (e4) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.MediaInteraction, ...e4 } }), styleSheetRuleCb: (e4) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.StyleSheetRule, ...e4 } }), styleDeclarationCb: (e4) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.StyleDeclaration, ...e4 } }), canvasMutationCb: Cn, fontCb: (e4) => hi({ type: js.IncrementalSnapshot, data: { source: Gs.Font, ...e4 } }), selectionCb: (e4) => {
5014
- hi({ type: js.IncrementalSnapshot, data: { source: Gs.Selection, ...e4 } });
5091
+ return M(au)({ mutationCb: rt, mousemoveCb: (e4, a3) => Ri({ type: Xs.IncrementalSnapshot, data: { source: a3, positions: e4 } }), mouseInteractionCb: (e4) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.MouseInteraction, ...e4 } }), scrollCb: kn, viewportResizeCb: (e4) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.ViewportResize, ...e4 } }), inputCb: (e4) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.Input, ...e4 } }), mediaInteractionCb: (e4) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.MediaInteraction, ...e4 } }), styleSheetRuleCb: (e4) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.StyleSheetRule, ...e4 } }), styleDeclarationCb: (e4) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.StyleDeclaration, ...e4 } }), canvasMutationCb: Cn, fontCb: (e4) => Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.Font, ...e4 } }), selectionCb: (e4) => {
5092
+ Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.Selection, ...e4 } });
5015
5093
  }, customElementCb: (e4) => {
5016
- hi({ type: js.IncrementalSnapshot, data: { source: Gs.CustomElement, ...e4 } });
5094
+ Ri({ type: Xs.IncrementalSnapshot, data: { source: Qs.CustomElement, ...e4 } });
5017
5095
  }, typingCb: (e4) => {
5018
- hi({ type: js.IncrementalSnapshot, data: { ...e4 } });
5096
+ Ri({ type: Xs.IncrementalSnapshot, data: { ...e4 } });
5019
5097
  }, deviceChangeCb: (e4) => {
5020
- hi({ type: js.Device, data: { ...e4 } });
5021
- }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: Y2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e3, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: Mi, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: mi, 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: js.Plugin, data: { plugin: e4.name, payload: a3 } }) }))) || [] }, $2);
5098
+ Ri({ type: Xs.Device, data: { ...e4 } });
5099
+ }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: J2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e3, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: qi, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Ti, 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) => Ri({ type: Xs.Plugin, data: { plugin: e4.name, payload: a3 } }) }))) || [] }, $2);
5022
5100
  };
5023
5101
  ge2.addLoadListener((a2) => {
5024
5102
  try {
@@ -5028,15 +5106,15 @@ function ae(e = {}) {
5028
5106
  }
5029
5107
  });
5030
5108
  const W = () => {
5031
- fi(), e2.push(K(document)), gi = true;
5109
+ Ai(), e2.push(K(document)), Ni = true;
5032
5110
  };
5033
5111
  return "interactive" === document.readyState || "complete" === document.readyState ? W() : (e2.push(G("DOMContentLoaded", () => {
5034
- hi({ type: js.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5112
+ Ri({ type: Xs.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5035
5113
  })), e2.push(G("load", () => {
5036
- hi({ type: js.Load, data: {} }), "load" === X2 && W();
5114
+ Ri({ type: Xs.Load, data: {} }), "load" === X2 && W();
5037
5115
  }, window))), () => {
5038
- e2.forEach((e3) => e3()), ye2.destroy(), gi = false, (function jl() {
5039
- Xs = void 0;
5116
+ e2.forEach((e3) => e3()), ye2.destroy(), Ni = false, (function jl() {
5117
+ ci = void 0;
5040
5118
  })();
5041
5119
  };
5042
5120
  } catch (e2) {
@@ -5063,24 +5141,24 @@ function vu(e) {
5063
5141
  }), u;
5064
5142
  }
5065
5143
  ae.addCustomEvent = (e, a) => {
5066
- if (!gi) throw new Error("please add custom event after start recording");
5067
- hi({ type: js.Custom, data: { tag: e, payload: a } });
5144
+ if (!Ni) throw new Error("please add custom event after start recording");
5145
+ Ri({ type: Xs.Custom, data: { tag: e, payload: a } });
5068
5146
  }, ae.addSailfishEvent = (e, a) => {
5069
- if (!gi) throw new Error("please add Sailfish event after start recording");
5070
- hi({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5147
+ if (!Ni) throw new Error("please add Sailfish event after start recording");
5148
+ Ri({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5071
5149
  }, ae.freezePage = () => {
5072
- ei.forEach((e) => e.freeze());
5150
+ pi.forEach((e) => e.freeze());
5073
5151
  }, ae.takeFullSnapshot = (e) => {
5074
- if (!gi) throw new Error("please take full snapshot after start recording");
5075
- fi(e);
5076
- }, ae.mirror = Mi;
5077
- var Ii = { exports: {} }, Li = String, Lo = function() {
5078
- return { isColorSupported: false, reset: Li, bold: Li, dim: Li, italic: Li, underline: Li, inverse: Li, hidden: Li, strikethrough: Li, black: Li, red: Li, green: Li, yellow: Li, blue: Li, magenta: Li, cyan: Li, white: Li, gray: Li, bgBlack: Li, bgRed: Li, bgGreen: Li, bgYellow: Li, bgBlue: Li, bgMagenta: Li, bgCyan: Li, bgWhite: Li, blackBright: Li, redBright: Li, greenBright: Li, yellowBright: Li, blueBright: Li, magentaBright: Li, cyanBright: Li, whiteBright: Li, bgBlackBright: Li, bgRedBright: Li, bgGreenBright: Li, bgYellowBright: Li, bgBlueBright: Li, bgMagentaBright: Li, bgCyanBright: Li, bgWhiteBright: Li };
5152
+ if (!Ni) throw new Error("please take full snapshot after start recording");
5153
+ Ai(e);
5154
+ }, ae.mirror = qi;
5155
+ var Hi = { exports: {} }, Ji = String, Lo = function() {
5156
+ return { isColorSupported: false, reset: Ji, bold: Ji, dim: Ji, italic: Ji, underline: Ji, inverse: Ji, hidden: Ji, strikethrough: Ji, black: Ji, red: Ji, green: Ji, yellow: Ji, blue: Ji, magenta: Ji, cyan: Ji, white: Ji, gray: Ji, bgBlack: Ji, bgRed: Ji, bgGreen: Ji, bgYellow: Ji, bgBlue: Ji, bgMagenta: Ji, bgCyan: Ji, bgWhite: Ji, blackBright: Ji, redBright: Ji, greenBright: Ji, yellowBright: Ji, blueBright: Ji, magentaBright: Ji, cyanBright: Ji, whiteBright: Ji, bgBlackBright: Ji, bgRedBright: Ji, bgGreenBright: Ji, bgYellowBright: Ji, bgBlueBright: Ji, bgMagentaBright: Ji, bgCyanBright: Ji, bgWhiteBright: Ji };
5079
5157
  };
5080
- Ii.exports = Lo(), Ii.exports.createColors = Lo;
5081
- var Ri = Ii.exports;
5082
- const Ai = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5083
- let Ti = Ri, Ni = Ai, Pi = class To extends Error {
5158
+ Hi.exports = Lo(), Hi.exports.createColors = Lo;
5159
+ var Xi = Hi.exports;
5160
+ const Qi = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5161
+ let ea = Xi, ta = Qi, na = class To extends Error {
5084
5162
  constructor(e, a, u, m2, w2, b2) {
5085
5163
  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);
5086
5164
  }
@@ -5090,11 +5168,11 @@ let Ti = Ri, Ni = Ai, Pi = class To extends Error {
5090
5168
  showSourceCode(e) {
5091
5169
  if (!this.source) return "";
5092
5170
  let a = this.source;
5093
- null == e && (e = Ti.isColorSupported);
5171
+ null == e && (e = ea.isColorSupported);
5094
5172
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
5095
5173
  if (e) {
5096
- let { bold: e2, gray: a2, red: u2 } = Ti.createColors(true);
5097
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Ni && (i = (e3) => Ni(e3));
5174
+ let { bold: e2, gray: a2, red: u2 } = ea.createColors(true);
5175
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), ta && (i = (e3) => ta(e3));
5098
5176
  }
5099
5177
  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;
5100
5178
  return u.slice(m2, w2).map((e2, a2) => {
@@ -5115,10 +5193,10 @@ let Ti = Ri, Ni = Ai, Pi = class To extends Error {
5115
5193
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
5116
5194
  }
5117
5195
  };
5118
- var qi = Pi;
5119
- Pi.default = Pi;
5120
- const Hi = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5121
- let Ji = class {
5196
+ var ra = na;
5197
+ na.default = na;
5198
+ const oa = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5199
+ let sa = class {
5122
5200
  constructor(e) {
5123
5201
  this.builder = e;
5124
5202
  }
@@ -5170,7 +5248,7 @@ let Ji = class {
5170
5248
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
5171
5249
  let w2 = e.parent;
5172
5250
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
5173
- if (!w2) return Hi[u];
5251
+ if (!w2) return oa[u];
5174
5252
  let b2 = e.root();
5175
5253
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
5176
5254
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -5182,7 +5260,7 @@ let Ji = class {
5182
5260
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
5183
5261
  });
5184
5262
  }
5185
- return typeof m2 > "u" && (m2 = Hi[u]), b2.rawCache[u] = m2, m2;
5263
+ return typeof m2 > "u" && (m2 = oa[u]), b2.rawCache[u] = m2, m2;
5186
5264
  }
5187
5265
  rawBeforeClose(e) {
5188
5266
  let a;
@@ -5258,17 +5336,17 @@ let Ji = class {
5258
5336
  this[e.type](e, a);
5259
5337
  }
5260
5338
  };
5261
- var Xi = Ji;
5262
- Ji.default = Ji;
5263
- let Qi = Xi;
5339
+ var ia = sa;
5340
+ sa.default = sa;
5341
+ let aa = ia;
5264
5342
  function zs(e, a) {
5265
- new Qi(a).stringify(e);
5343
+ new aa(a).stringify(e);
5266
5344
  }
5267
- var ea = zs;
5345
+ var la = zs;
5268
5346
  zs.default = zs;
5269
- var ta = {};
5270
- ta.isClean = Symbol("isClean"), ta.my = Symbol("my");
5271
- let na = qi, ra = Xi, oa = ea, { isClean: sa, my: ia } = ta;
5347
+ var ca = {};
5348
+ ca.isClean = Symbol("isClean"), ca.my = Symbol("my");
5349
+ let ua = ra, pa = ia, ha = la, { isClean: fa, my: ma } = ca;
5272
5350
  function Bs(e, a) {
5273
5351
  let u = new e.constructor();
5274
5352
  for (let m2 in e) {
@@ -5290,12 +5368,12 @@ function Fe(e, a) {
5290
5368
  }
5291
5369
  return w2;
5292
5370
  }
5293
- let aa = class {
5371
+ let ga = class {
5294
5372
  get proxyOf() {
5295
5373
  return this;
5296
5374
  }
5297
5375
  constructor(e = {}) {
5298
- this.raws = {}, this[sa] = false, this[ia] = true;
5376
+ this.raws = {}, this[fa] = false, this[ma] = true;
5299
5377
  for (let a in e) if ("nodes" === a) {
5300
5378
  this.nodes = [];
5301
5379
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -5339,19 +5417,19 @@ let aa = class {
5339
5417
  let { end: u, start: m2 } = this.rangeBy(a);
5340
5418
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
5341
5419
  }
5342
- return new na(e);
5420
+ return new ua(e);
5343
5421
  }
5344
5422
  getProxyProcessor() {
5345
5423
  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) };
5346
5424
  }
5347
5425
  markClean() {
5348
- this[sa] = true;
5426
+ this[fa] = true;
5349
5427
  }
5350
5428
  markDirty() {
5351
- if (this[sa]) {
5352
- this[sa] = false;
5429
+ if (this[fa]) {
5430
+ this[fa] = false;
5353
5431
  let e = this;
5354
- for (; e = e.parent; ) e[sa] = false;
5432
+ for (; e = e.parent; ) e[fa] = false;
5355
5433
  }
5356
5434
  }
5357
5435
  next() {
@@ -5387,7 +5465,7 @@ let aa = class {
5387
5465
  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 };
5388
5466
  }
5389
5467
  raw(e, a) {
5390
- return new ra().raw(this, e, a);
5468
+ return new pa().raw(this, e, a);
5391
5469
  }
5392
5470
  remove() {
5393
5471
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -5424,7 +5502,7 @@ let aa = class {
5424
5502
  toProxy() {
5425
5503
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
5426
5504
  }
5427
- toString(e = oa) {
5505
+ toString(e = ha) {
5428
5506
  e.stringify && (e = e.stringify);
5429
5507
  let a = "";
5430
5508
  return e(this, (e2) => {
@@ -5437,16 +5515,16 @@ let aa = class {
5437
5515
  return e.warn(a, m2);
5438
5516
  }
5439
5517
  };
5440
- var la = aa;
5441
- aa.default = aa;
5442
- let ca = la, ua = class extends ca {
5518
+ var ya = ga;
5519
+ ga.default = ga;
5520
+ let wa = ya, Sa = class extends wa {
5443
5521
  constructor(e) {
5444
5522
  super(e), this.type = "comment";
5445
5523
  }
5446
5524
  };
5447
- var pa = ua;
5448
- ua.default = ua;
5449
- let ha = la, fa = class extends ha {
5525
+ var ba = Sa;
5526
+ Sa.default = Sa;
5527
+ let va = ya, Ca = class extends va {
5450
5528
  get variable() {
5451
5529
  return this.prop.startsWith("--") || "$" === this.prop[0];
5452
5530
  }
@@ -5454,16 +5532,16 @@ let ha = la, fa = class extends ha {
5454
5532
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
5455
5533
  }
5456
5534
  };
5457
- var ma = fa;
5458
- fa.default = fa;
5459
- let ga, ya, wa, ba, Sa = pa, va = ma, Ca = la, { isClean: xa, my: ka } = ta;
5535
+ var ka = Ca;
5536
+ Ca.default = Ca;
5537
+ let xa, Ma, Ia, _a, Oa = ba, Ea = ka, La = ya, { isClean: Ra, my: Aa } = ca;
5460
5538
  function Wo(e) {
5461
5539
  return e.map((e2) => (e2.nodes && (e2.nodes = Wo(e2.nodes)), delete e2.source, e2));
5462
5540
  }
5463
5541
  function zo(e) {
5464
- if (e[xa] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5542
+ if (e[Ra] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5465
5543
  }
5466
- let Ma = class Bo extends Ca {
5544
+ let Ta = class Bo extends La {
5467
5545
  get first() {
5468
5546
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
5469
5547
  }
@@ -5515,7 +5593,7 @@ let Ma = class Bo extends Ca {
5515
5593
  return this.markDirty(), this;
5516
5594
  }
5517
5595
  normalize(e, a) {
5518
- if ("string" == typeof e) e = Wo(ya(e).nodes);
5596
+ if ("string" == typeof e) e = Wo(Ma(e).nodes);
5519
5597
  else if (typeof e > "u") e = [];
5520
5598
  else if (Array.isArray(e)) {
5521
5599
  e = e.slice(0);
@@ -5526,14 +5604,14 @@ let Ma = class Bo extends Ca {
5526
5604
  } else if (e.type) e = [e];
5527
5605
  else if (e.prop) {
5528
5606
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
5529
- "string" != typeof e.value && (e.value = String(e.value)), e = [new va(e)];
5530
- } else if (e.selector || e.selectors) e = [new ba(e)];
5531
- else if (e.name) e = [new ga(e)];
5607
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new Ea(e)];
5608
+ } else if (e.selector || e.selectors) e = [new _a(e)];
5609
+ else if (e.name) e = [new xa(e)];
5532
5610
  else {
5533
5611
  if (!e.text) throw new Error("Unknown node type in node creation");
5534
- e = [new Sa(e)];
5612
+ e = [new Oa(e)];
5535
5613
  }
5536
- return e.map((e2) => (e2[ka] || Bo.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[xa] && 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));
5614
+ return e.map((e2) => (e2[Aa] || Bo.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[Ra] && 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));
5537
5615
  }
5538
5616
  prepend(...e) {
5539
5617
  e = e.reverse();
@@ -5609,22 +5687,22 @@ let Ma = class Bo extends Ca {
5609
5687
  }));
5610
5688
  }
5611
5689
  };
5612
- Ma.registerParse = (e) => {
5613
- ya = e;
5614
- }, Ma.registerRule = (e) => {
5615
- ba = e;
5616
- }, Ma.registerAtRule = (e) => {
5617
- ga = e;
5618
- }, Ma.registerRoot = (e) => {
5619
- wa = e;
5690
+ Ta.registerParse = (e) => {
5691
+ Ma = e;
5692
+ }, Ta.registerRule = (e) => {
5693
+ _a = e;
5694
+ }, Ta.registerAtRule = (e) => {
5695
+ xa = e;
5696
+ }, Ta.registerRoot = (e) => {
5697
+ Ia = e;
5620
5698
  };
5621
- var Ia = Ma;
5622
- Ma.default = Ma, Ma.rebuild = (e) => {
5623
- "atrule" === e.type ? Object.setPrototypeOf(e, ga.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, ba.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, va.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Sa.prototype) : "root" === e.type && Object.setPrototypeOf(e, wa.prototype), e[ka] = true, e.nodes && e.nodes.forEach((e2) => {
5624
- Ma.rebuild(e2);
5699
+ var Na = Ta;
5700
+ Ta.default = Ta, Ta.rebuild = (e) => {
5701
+ "atrule" === e.type ? Object.setPrototypeOf(e, xa.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, _a.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, Ea.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Oa.prototype) : "root" === e.type && Object.setPrototypeOf(e, Ia.prototype), e[Aa] = true, e.nodes && e.nodes.forEach((e2) => {
5702
+ Ta.rebuild(e2);
5625
5703
  });
5626
5704
  };
5627
- let _a = Ia, Oa = class extends _a {
5705
+ let Pa = Na, Da = class extends Pa {
5628
5706
  constructor(e) {
5629
5707
  super(e), this.type = "atrule";
5630
5708
  }
@@ -5635,38 +5713,38 @@ let _a = Ia, Oa = class extends _a {
5635
5713
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
5636
5714
  }
5637
5715
  };
5638
- var Ea = Oa;
5639
- Oa.default = Oa, _a.registerAtRule(Oa);
5640
- let La, Ra, Aa = Ia, Ta = class extends Aa {
5716
+ var Fa = Da;
5717
+ Da.default = Da, Pa.registerAtRule(Da);
5718
+ let Ua, Ba, $a = Na, Wa = class extends $a {
5641
5719
  constructor(e) {
5642
5720
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
5643
5721
  }
5644
5722
  toResult(e = {}) {
5645
- return new La(new Ra(), this, e).stringify();
5723
+ return new Ua(new Ba(), this, e).stringify();
5646
5724
  }
5647
5725
  };
5648
- Ta.registerLazyResult = (e) => {
5649
- La = e;
5650
- }, Ta.registerProcessor = (e) => {
5651
- Ra = e;
5726
+ Wa.registerLazyResult = (e) => {
5727
+ Ua = e;
5728
+ }, Wa.registerProcessor = (e) => {
5729
+ Ba = e;
5652
5730
  };
5653
- var Na = Ta;
5654
- Ta.default = Ta;
5655
- var Pa = { nanoid: (e = 21) => {
5731
+ var za = Wa;
5732
+ Wa.default = Wa;
5733
+ var ja = { nanoid: (e = 21) => {
5656
5734
  let a = "", u = 0 | e;
5657
5735
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
5658
5736
  return a;
5659
5737
  } };
5660
- let { existsSync: Da, readFileSync: Fa } = Ai, { dirname: Ua, join: Ba } = Ai, { SourceMapConsumer: $a, SourceMapGenerator: Wa } = Ai;
5661
- let za = class {
5738
+ let { existsSync: Ga, readFileSync: Va } = Qi, { dirname: qa, join: Za } = Qi, { SourceMapConsumer: Ka, SourceMapGenerator: Ja } = Qi;
5739
+ let Ya = class {
5662
5740
  constructor(e, a) {
5663
5741
  if (false === a.map) return;
5664
5742
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
5665
5743
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
5666
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Ua(this.mapFile)), m2 && (this.text = m2);
5744
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = qa(this.mapFile)), m2 && (this.text = m2);
5667
5745
  }
5668
5746
  consumer() {
5669
- return this.consumerCache || (this.consumerCache = new $a(this.text)), this.consumerCache;
5747
+ return this.consumerCache || (this.consumerCache = new Ka(this.text)), this.consumerCache;
5670
5748
  }
5671
5749
  decodeInline(e) {
5672
5750
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -5691,15 +5769,15 @@ let za = class {
5691
5769
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
5692
5770
  }
5693
5771
  loadFile(e) {
5694
- if (this.root = Ua(e), Da(e)) return this.mapFile = e, Fa(e, "utf-8").toString().trim();
5772
+ if (this.root = qa(e), Ga(e)) return this.mapFile = e, Va(e, "utf-8").toString().trim();
5695
5773
  }
5696
5774
  loadMap(e, a) {
5697
5775
  if (false === a) return false;
5698
5776
  if (a) {
5699
5777
  if ("string" == typeof a) return a;
5700
5778
  if ("function" != typeof a) {
5701
- if (a instanceof $a) return Wa.fromSourceMap(a).toString();
5702
- if (a instanceof Wa) return a.toString();
5779
+ if (a instanceof Ka) return Ja.fromSourceMap(a).toString();
5780
+ if (a instanceof Ja) return a.toString();
5703
5781
  if (this.isMap(a)) return JSON.stringify(a);
5704
5782
  throw new Error("Unsupported previous source map format: " + a.toString());
5705
5783
  }
@@ -5715,7 +5793,7 @@ let za = class {
5715
5793
  if (this.inline) return this.decodeInline(this.annotation);
5716
5794
  if (this.annotation) {
5717
5795
  let a2 = this.annotation;
5718
- return e && (a2 = Ba(Ua(e), a2)), this.loadFile(a2);
5796
+ return e && (a2 = Za(qa(e), a2)), this.loadFile(a2);
5719
5797
  }
5720
5798
  }
5721
5799
  }
@@ -5726,23 +5804,23 @@ let za = class {
5726
5804
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
5727
5805
  }
5728
5806
  };
5729
- var ja = za;
5730
- za.default = za;
5731
- let { nanoid: Ga } = Pa, { isAbsolute: Va, resolve: qa } = Ai, { SourceMapConsumer: Za, SourceMapGenerator: Ka } = Ai, { fileURLToPath: Ya, pathToFileURL: Ja } = Ai, Qa = qi, el = ja, tl = Ai, nl = Symbol("fromOffsetCache"), rl = !(!Za || !Ka), ol = !(!qa || !Va), sl = class {
5807
+ var Qa = Ya;
5808
+ Ya.default = Ya;
5809
+ let { nanoid: el } = ja, { isAbsolute: tl, resolve: nl } = Qi, { SourceMapConsumer: rl, SourceMapGenerator: ol } = Qi, { fileURLToPath: sl, pathToFileURL: il } = Qi, al = ra, ll = Qa, cl = Qi, ul = Symbol("fromOffsetCache"), pl = !(!rl || !ol), dl = !(!nl || !tl), hl = class {
5732
5810
  get from() {
5733
5811
  return this.file || this.id;
5734
5812
  }
5735
5813
  constructor(e, a = {}) {
5736
5814
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
5737
- 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 && (!ol || /^\w+:\/\//.test(a.from) || Va(a.from) ? this.file = a.from : this.file = qa(a.from)), ol && rl) {
5738
- let e2 = new el(this.css, a);
5815
+ 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 && (!dl || /^\w+:\/\//.test(a.from) || tl(a.from) ? this.file = a.from : this.file = nl(a.from)), dl && pl) {
5816
+ let e2 = new ll(this.css, a);
5739
5817
  if (e2.text) {
5740
5818
  this.map = e2;
5741
5819
  let a2 = e2.consumer().file;
5742
5820
  !this.file && a2 && (this.file = this.mapResolve(a2));
5743
5821
  }
5744
5822
  }
5745
- this.file || (this.id = "<input css " + Ga(6) + ">"), this.map && (this.map.file = this.from);
5823
+ this.file || (this.id = "<input css " + el(6) + ">"), this.map && (this.map.file = this.from);
5746
5824
  }
5747
5825
  error(e, a, u, m2 = {}) {
5748
5826
  let w2, b2, C2;
@@ -5761,17 +5839,17 @@ let { nanoid: Ga } = Pa, { isAbsolute: Va, resolve: qa } = Ai, { SourceMapConsum
5761
5839
  a = e2.line, u = e2.col;
5762
5840
  }
5763
5841
  let x2 = this.origin(a, u, b2, w2);
5764
- return C2 = x2 ? new Qa(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 Qa(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 && (Ja && (C2.input.url = Ja(this.file).toString()), C2.input.file = this.file), C2;
5842
+ return C2 = x2 ? new al(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 al(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 && (il && (C2.input.url = il(this.file).toString()), C2.input.file = this.file), C2;
5765
5843
  }
5766
5844
  fromOffset(e) {
5767
5845
  let a, u;
5768
- if (this[nl]) u = this[nl];
5846
+ if (this[ul]) u = this[ul];
5769
5847
  else {
5770
5848
  let e2 = this.css.split("\n");
5771
5849
  u = new Array(e2.length);
5772
5850
  let a2 = 0;
5773
5851
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
5774
- this[nl] = u;
5852
+ this[ul] = u;
5775
5853
  }
5776
5854
  a = u[u.length - 1];
5777
5855
  let m2 = 0;
@@ -5790,17 +5868,17 @@ let { nanoid: Ga } = Pa, { isAbsolute: Va, resolve: qa } = Ai, { SourceMapConsum
5790
5868
  return { col: e - u[m2] + 1, line: m2 + 1 };
5791
5869
  }
5792
5870
  mapResolve(e) {
5793
- return /^\w+:\/\//.test(e) ? e : qa(this.map.consumer().sourceRoot || this.map.root || ".", e);
5871
+ return /^\w+:\/\//.test(e) ? e : nl(this.map.consumer().sourceRoot || this.map.root || ".", e);
5794
5872
  }
5795
5873
  origin(e, a, u, m2) {
5796
5874
  if (!this.map) return false;
5797
5875
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
5798
5876
  if (!x2.source) return false;
5799
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = Va(x2.source) ? Ja(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || Ja(this.map.mapFile));
5877
+ "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = tl(x2.source) ? il(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || il(this.map.mapFile));
5800
5878
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
5801
5879
  if ("file:" === b2.protocol) {
5802
- if (!Ya) throw new Error("file: protocol is not available in this PostCSS build");
5803
- I2.file = Ya(b2);
5880
+ if (!sl) throw new Error("file: protocol is not available in this PostCSS build");
5881
+ I2.file = sl(b2);
5804
5882
  }
5805
5883
  let _2 = C2.sourceContentFor(x2.source);
5806
5884
  return _2 && (I2.source = _2), I2;
@@ -5811,9 +5889,9 @@ let { nanoid: Ga } = Pa, { isAbsolute: Va, resolve: qa } = Ai, { SourceMapConsum
5811
5889
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
5812
5890
  }
5813
5891
  };
5814
- var il = sl;
5815
- sl.default = sl, tl && tl.registerInput && tl.registerInput(sl);
5816
- let al, ll, cl = Ia, ul = class extends cl {
5892
+ var fl = hl;
5893
+ hl.default = hl, cl && cl.registerInput && cl.registerInput(hl);
5894
+ let ml, gl, yl = Na, wl = class extends yl {
5817
5895
  constructor(e) {
5818
5896
  super(e), this.type = "root", this.nodes || (this.nodes = []);
5819
5897
  }
@@ -5830,29 +5908,29 @@ let al, ll, cl = Ia, ul = class extends cl {
5830
5908
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
5831
5909
  }
5832
5910
  toResult(e = {}) {
5833
- return new al(new ll(), this, e).stringify();
5911
+ return new ml(new gl(), this, e).stringify();
5834
5912
  }
5835
5913
  };
5836
- ul.registerLazyResult = (e) => {
5837
- al = e;
5838
- }, ul.registerProcessor = (e) => {
5839
- ll = e;
5914
+ wl.registerLazyResult = (e) => {
5915
+ ml = e;
5916
+ }, wl.registerProcessor = (e) => {
5917
+ gl = e;
5840
5918
  };
5841
- var pl = ul;
5842
- ul.default = ul, cl.registerRoot(ul);
5843
- let dl = { comma: (e) => dl.split(e, [","], true), space(e) {
5919
+ var Sl = wl;
5920
+ wl.default = wl, yl.registerRoot(wl);
5921
+ let bl = { comma: (e) => bl.split(e, [","], true), space(e) {
5844
5922
  let a = [" ", "\n", " "];
5845
- return dl.split(e, a);
5923
+ return bl.split(e, a);
5846
5924
  }, split(e, a, u) {
5847
5925
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
5848
5926
  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;
5849
5927
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
5850
5928
  } };
5851
- var hl = dl;
5852
- dl.default = dl;
5853
- let fl = Ia, ml = hl, gl = class extends fl {
5929
+ var vl = bl;
5930
+ bl.default = bl;
5931
+ let Cl = Na, kl = vl, xl = class extends Cl {
5854
5932
  get selectors() {
5855
- return ml.comma(this.selector);
5933
+ return kl.comma(this.selector);
5856
5934
  }
5857
5935
  set selectors(e) {
5858
5936
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -5862,34 +5940,34 @@ let fl = Ia, ml = hl, gl = class extends fl {
5862
5940
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
5863
5941
  }
5864
5942
  };
5865
- var yl = gl;
5866
- gl.default = gl, fl.registerRule(gl);
5867
- let wl = Ea, bl = pa, Sl = ma, vl = il, Cl = ja, xl = pl, kl = yl;
5943
+ var Ml = xl;
5944
+ xl.default = xl, Cl.registerRule(xl);
5945
+ let Il = Fa, Ol = ba, El = ka, Ll = fl, Rl = Qa, Al = Sl, Tl = Ml;
5868
5946
  function Ke(e, a) {
5869
5947
  if (Array.isArray(e)) return e.map((e2) => Ke(e2));
5870
5948
  let { inputs: u, ...m2 } = e;
5871
5949
  if (u) {
5872
5950
  a = [];
5873
5951
  for (let e2 of u) {
5874
- let u2 = { ...e2, __proto__: vl.prototype };
5875
- u2.map && (u2.map = { ...u2.map, __proto__: Cl.prototype }), a.push(u2);
5952
+ let u2 = { ...e2, __proto__: Ll.prototype };
5953
+ u2.map && (u2.map = { ...u2.map, __proto__: Rl.prototype }), a.push(u2);
5876
5954
  }
5877
5955
  }
5878
5956
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ke(e2, a))), m2.source) {
5879
5957
  let { inputId: e2, ...u2 } = m2.source;
5880
5958
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
5881
5959
  }
5882
- if ("root" === m2.type) return new xl(m2);
5883
- if ("decl" === m2.type) return new Sl(m2);
5884
- if ("rule" === m2.type) return new kl(m2);
5885
- if ("comment" === m2.type) return new bl(m2);
5886
- if ("atrule" === m2.type) return new wl(m2);
5960
+ if ("root" === m2.type) return new Al(m2);
5961
+ if ("decl" === m2.type) return new El(m2);
5962
+ if ("rule" === m2.type) return new Tl(m2);
5963
+ if ("comment" === m2.type) return new Ol(m2);
5964
+ if ("atrule" === m2.type) return new Il(m2);
5887
5965
  throw new Error("Unknown node type: " + e.type);
5888
5966
  }
5889
- var Ml = Ke;
5967
+ var Nl = Ke;
5890
5968
  Ke.default = Ke;
5891
- let { dirname: Il, relative: Ol, resolve: El, sep: Ll } = Ai, { SourceMapConsumer: Rl, SourceMapGenerator: Al } = Ai, { pathToFileURL: Tl } = Ai, Nl = il, Pl = !(!Rl || !Al), Dl = !!(Il && El && Ol && Ll);
5892
- var Jl = class {
5969
+ let { dirname: Pl, relative: Dl, resolve: Jl, sep: ec } = Qi, { SourceMapConsumer: tc, SourceMapGenerator: nc } = Qi, { pathToFileURL: rc } = Qi, oc = fl, sc = !(!tc || !nc), ic = !!(Pl && Jl && Dl && ec);
5970
+ var ac = class {
5893
5971
  constructor(e, a, u, m2) {
5894
5972
  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();
5895
5973
  }
@@ -5901,8 +5979,8 @@ var Jl = class {
5901
5979
  }
5902
5980
  applyPrevMaps() {
5903
5981
  for (let e of this.previous()) {
5904
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Il(e.file);
5905
- false === this.mapOpts.sourcesContent ? (a = new Rl(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
5982
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Pl(e.file);
5983
+ false === this.mapOpts.sourcesContent ? (a = new tc(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
5906
5984
  }
5907
5985
  }
5908
5986
  clearAnnotation() {
@@ -5912,7 +5990,7 @@ var Jl = class {
5912
5990
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
5913
5991
  }
5914
5992
  generate() {
5915
- if (this.clearAnnotation(), Dl && Pl && this.isMap()) return this.generateMap();
5993
+ if (this.clearAnnotation(), ic && sc && this.isMap()) return this.generateMap();
5916
5994
  {
5917
5995
  let e = "";
5918
5996
  return this.stringify(this.root, (a) => {
@@ -5924,12 +6002,12 @@ var Jl = class {
5924
6002
  if (this.root) this.generateString();
5925
6003
  else if (1 === this.previous().length) {
5926
6004
  let e = this.previous()[0].consumer();
5927
- e.file = this.outputFile(), this.map = Al.fromSourceMap(e, { ignoreInvalidMapping: true });
5928
- } else this.map = new Al({ 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>" });
6005
+ e.file = this.outputFile(), this.map = nc.fromSourceMap(e, { ignoreInvalidMapping: true });
6006
+ } else this.map = new nc({ 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>" });
5929
6007
  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];
5930
6008
  }
5931
6009
  generateString() {
5932
- this.css = "", this.map = new Al({ file: this.outputFile(), ignoreInvalidMapping: true });
6010
+ this.css = "", this.map = new nc({ file: this.outputFile(), ignoreInvalidMapping: true });
5933
6011
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
5934
6012
  this.stringify(this.root, (C2, x2, I2) => {
5935
6013
  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) {
@@ -5959,9 +6037,9 @@ var Jl = class {
5959
6037
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
5960
6038
  let a = this.memoizedPaths.get(e);
5961
6039
  if (a) return a;
5962
- let u = this.opts.to ? Il(this.opts.to) : ".";
5963
- "string" == typeof this.mapOpts.annotation && (u = Il(El(u, this.mapOpts.annotation)));
5964
- let m2 = Ol(u, e);
6040
+ let u = this.opts.to ? Pl(this.opts.to) : ".";
6041
+ "string" == typeof this.mapOpts.annotation && (u = Pl(Jl(u, this.mapOpts.annotation)));
6042
+ let m2 = Dl(u, e);
5965
6043
  return this.memoizedPaths.set(e, m2), m2;
5966
6044
  }
5967
6045
  previous() {
@@ -5972,7 +6050,7 @@ var Jl = class {
5972
6050
  }
5973
6051
  });
5974
6052
  else {
5975
- let e = new Nl(this.originalCSS, this.opts);
6053
+ let e = new oc(this.originalCSS, this.opts);
5976
6054
  e.map && this.previousMaps.push(e.map);
5977
6055
  }
5978
6056
  return this.previousMaps;
@@ -6003,8 +6081,8 @@ var Jl = class {
6003
6081
  toFileUrl(e) {
6004
6082
  let a = this.memoizedFileURLs.get(e);
6005
6083
  if (a) return a;
6006
- if (Tl) {
6007
- let a2 = Tl(e).toString();
6084
+ if (rc) {
6085
+ let a2 = rc(e).toString();
6008
6086
  return this.memoizedFileURLs.set(e, a2), a2;
6009
6087
  }
6010
6088
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -6012,13 +6090,13 @@ var Jl = class {
6012
6090
  toUrl(e) {
6013
6091
  let a = this.memoizedURLs.get(e);
6014
6092
  if (a) return a;
6015
- "\\" === Ll && (e = e.replace(/\\/g, "/"));
6093
+ "\\" === ec && (e = e.replace(/\\/g, "/"));
6016
6094
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
6017
6095
  return this.memoizedURLs.set(e, u), u;
6018
6096
  }
6019
6097
  };
6020
- const ec = /[\t\n\f\r "#'()/;[\\\]{}]/g, tc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, nc = /.[\r\n"'(/\\]/, rc = /[\da-f]/i;
6021
- let oc = Ea, sc = pa, ic = ma, ac = pl, lc = yl, kc = function(e, a = {}) {
6098
+ const lc = /[\t\n\f\r "#'()/;[\\\]{}]/g, cc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, uc = /.[\r\n"'(/\\]/, pc = /[\da-f]/i;
6099
+ let dc = Fa, hc = ba, fc = ka, mc = Sl, gc = Ml, kc = function(e, a = {}) {
6022
6100
  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 = [];
6023
6101
  function y2(a2) {
6024
6102
  throw e.error("Unclosed " + a2, B2);
@@ -6068,7 +6146,7 @@ let oc = Ea, sc = pa, ic = ma, ac = pl, lc = yl, kc = function(e, a = {}) {
6068
6146
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
6069
6147
  } while (I2);
6070
6148
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6071
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || nc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6149
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || uc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6072
6150
  break;
6073
6151
  case 39:
6074
6152
  case 34:
@@ -6086,31 +6164,31 @@ let oc = Ea, sc = pa, ic = ma, ac = pl, lc = yl, kc = function(e, a = {}) {
6086
6164
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6087
6165
  break;
6088
6166
  case 64:
6089
- ec.lastIndex = B2 + 1, ec.test(D2), b2 = 0 === ec.lastIndex ? D2.length - 1 : ec.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6167
+ lc.lastIndex = B2 + 1, lc.test(D2), b2 = 0 === lc.lastIndex ? D2.length - 1 : lc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6090
6168
  break;
6091
6169
  case 92:
6092
6170
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
6093
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, rc.test(D2.charAt(b2)))) {
6094
- for (; rc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6171
+ if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, pc.test(D2.charAt(b2)))) {
6172
+ for (; pc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6095
6173
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
6096
6174
  }
6097
6175
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6098
6176
  break;
6099
6177
  default:
6100
- 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) : (tc.lastIndex = B2 + 1, tc.test(D2), b2 = 0 === tc.lastIndex ? D2.length - 1 : tc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6178
+ 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) : (cc.lastIndex = B2 + 1, cc.test(D2), b2 = 0 === cc.lastIndex ? D2.length - 1 : cc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6101
6179
  }
6102
6180
  return B2++, x2;
6103
6181
  }, position: function S() {
6104
6182
  return B2;
6105
6183
  } };
6106
6184
  };
6107
- const cc = { empty: true, space: true };
6108
- var uc = class {
6185
+ const yc = { empty: true, space: true };
6186
+ var wc = class {
6109
6187
  constructor(e) {
6110
- this.input = e, this.root = new ac(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
6188
+ this.input = e, this.root = new mc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
6111
6189
  }
6112
6190
  atrule(e) {
6113
- let a = new oc();
6191
+ let a = new dc();
6114
6192
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
6115
6193
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
6116
6194
  for (; !this.tokenizer.endOfFile(); ) {
@@ -6162,7 +6240,7 @@ var uc = class {
6162
6240
  return false;
6163
6241
  }
6164
6242
  comment(e) {
6165
- let a = new sc();
6243
+ let a = new hc();
6166
6244
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
6167
6245
  let u = e[1].slice(2, -2);
6168
6246
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -6175,7 +6253,7 @@ var uc = class {
6175
6253
  this.tokenizer = kc(this.input);
6176
6254
  }
6177
6255
  decl(e, a) {
6178
- let u = new ic();
6256
+ let u = new fc();
6179
6257
  this.init(u, e[0][2]);
6180
6258
  let m2, w2 = e[e.length - 1];
6181
6259
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Cc(e2) {
@@ -6224,7 +6302,7 @@ var uc = class {
6224
6302
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
6225
6303
  }
6226
6304
  emptyRule(e) {
6227
- let a = new lc();
6305
+ let a = new gc();
6228
6306
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
6229
6307
  }
6230
6308
  end(e) {
@@ -6300,7 +6378,7 @@ var uc = class {
6300
6378
  }
6301
6379
  raw(e, a, u, m2) {
6302
6380
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
6303
- 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", cc[x2] || cc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6381
+ 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", yc[x2] || yc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6304
6382
  if (!O2) {
6305
6383
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
6306
6384
  e.raws[a] = { raw: m3, value: _2 };
@@ -6309,7 +6387,7 @@ var uc = class {
6309
6387
  }
6310
6388
  rule(e) {
6311
6389
  e.pop();
6312
- let a = new lc();
6390
+ let a = new gc();
6313
6391
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
6314
6392
  }
6315
6393
  spacesAndCommentsFromEnd(e) {
@@ -6349,9 +6427,9 @@ var uc = class {
6349
6427
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
6350
6428
  }
6351
6429
  };
6352
- let pc = Ia, dc = il, hc = uc;
6430
+ let Sc = Na, bc = fl, vc = wc;
6353
6431
  function Gt(e, a) {
6354
- let u = new dc(e, a), m2 = new hc(u);
6432
+ let u = new bc(e, a), m2 = new vc(u);
6355
6433
  try {
6356
6434
  m2.parse();
6357
6435
  } catch (e2) {
@@ -6359,9 +6437,9 @@ function Gt(e, a) {
6359
6437
  }
6360
6438
  return m2.root;
6361
6439
  }
6362
- var fc = Gt;
6363
- Gt.default = Gt, pc.registerParse(Gt);
6364
- let mc = class {
6440
+ var xc = Gt;
6441
+ Gt.default = Gt, Sc.registerParse(Gt);
6442
+ let Mc = class {
6365
6443
  constructor(e, a = {}) {
6366
6444
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
6367
6445
  let e2 = a.node.rangeBy(a);
@@ -6373,9 +6451,9 @@ let mc = class {
6373
6451
  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;
6374
6452
  }
6375
6453
  };
6376
- var gc = mc;
6377
- mc.default = mc;
6378
- let yc = gc, wc = class {
6454
+ var Ic = Mc;
6455
+ Mc.default = Mc;
6456
+ let _c = Ic, Oc = class {
6379
6457
  get content() {
6380
6458
  return this.css;
6381
6459
  }
@@ -6387,26 +6465,26 @@ let yc = gc, wc = class {
6387
6465
  }
6388
6466
  warn(e, a = {}) {
6389
6467
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
6390
- let u = new yc(e, a);
6468
+ let u = new _c(e, a);
6391
6469
  return this.messages.push(u), u;
6392
6470
  }
6393
6471
  warnings() {
6394
6472
  return this.messages.filter((e) => "warning" === e.type);
6395
6473
  }
6396
6474
  };
6397
- var bc = wc;
6398
- wc.default = wc;
6399
- let Sc = {};
6475
+ var Ec = Oc;
6476
+ Oc.default = Oc;
6477
+ let Lc = {};
6400
6478
  var ni = function(e) {
6401
- Sc[e] || (Sc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6479
+ Lc[e] || (Lc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6402
6480
  };
6403
- let vc = Ia, xc = Na, Mc = Jl, Ic = fc, _c = bc, Oc = pl, Ec = ea, { isClean: Lc, my: Rc } = ta, Ac = ni;
6404
- const Tc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Nc = { 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 }, Pc = { Once: true, postcssPlugin: true, prepare: true };
6481
+ let Rc = Na, Ac = za, Tc = ac, Nc = xc, Pc = Ec, Dc = Sl, Fc = la, { isClean: Uc, my: Bc } = ca, $c = ni;
6482
+ const Wc = { 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 }, jc = { Once: true, postcssPlugin: true, prepare: true };
6405
6483
  function _e(e) {
6406
6484
  return "object" == typeof e && "function" == typeof e.then;
6407
6485
  }
6408
6486
  function ri(e) {
6409
- let a = false, u = Tc[e.type];
6487
+ let a = false, u = Wc[e.type];
6410
6488
  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"];
6411
6489
  }
6412
6490
  function br(e) {
@@ -6414,9 +6492,9 @@ function br(e) {
6414
6492
  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: [] };
6415
6493
  }
6416
6494
  function Js(e) {
6417
- return e[Lc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6495
+ return e[Uc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6418
6496
  }
6419
- let Dc = {}, Fc = class oi {
6497
+ let Gc = {}, Vc = class oi {
6420
6498
  get content() {
6421
6499
  return this.stringify().content;
6422
6500
  }
@@ -6443,19 +6521,19 @@ let Dc = {}, Fc = class oi {
6443
6521
  }
6444
6522
  constructor(e, a, u) {
6445
6523
  let m2;
6446
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof oi || a instanceof _c) m2 = Js(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
6524
+ if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof oi || a instanceof Pc) m2 = Js(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
6447
6525
  else {
6448
- let e2 = Ic;
6526
+ let e2 = Nc;
6449
6527
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
6450
6528
  try {
6451
6529
  m2 = e2(a, u);
6452
6530
  } catch (e3) {
6453
6531
  this.processed = true, this.error = e3;
6454
6532
  }
6455
- m2 && !m2[Rc] && vc.rebuild(m2);
6533
+ m2 && !m2[Bc] && Rc.rebuild(m2);
6456
6534
  }
6457
6535
  else m2 = Js(a);
6458
- this.result = new _c(e, m2, u), this.helpers = { ...Dc, postcss: Dc, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
6536
+ this.result = new Pc(e, m2, u), this.helpers = { ...Gc, postcss: Gc, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
6459
6537
  }
6460
6538
  async() {
6461
6539
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -6489,8 +6567,8 @@ let Dc = {}, Fc = class oi {
6489
6567
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
6490
6568
  };
6491
6569
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
6492
- if (!Nc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6493
- if (!Pc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6570
+ if (!zc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6571
+ if (!jc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6494
6572
  else "function" == typeof e[a] && t(e, a, e[a]);
6495
6573
  }
6496
6574
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -6507,8 +6585,8 @@ let Dc = {}, Fc = class oi {
6507
6585
  }
6508
6586
  if (this.prepareVisitors(), this.hasListener) {
6509
6587
  let e = this.result.root;
6510
- for (; !e[Lc]; ) {
6511
- e[Lc] = true;
6588
+ for (; !e[Uc]; ) {
6589
+ e[Uc] = true;
6512
6590
  let a = [br(e)];
6513
6591
  for (; a.length > 0; ) {
6514
6592
  let e2 = this.visitTick(a);
@@ -6553,9 +6631,9 @@ let Dc = {}, Fc = class oi {
6553
6631
  if (this.error) throw this.error;
6554
6632
  if (this.stringified) return this.result;
6555
6633
  this.stringified = true, this.sync();
6556
- let e = this.result.opts, a = Ec;
6634
+ let e = this.result.opts, a = Fc;
6557
6635
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
6558
- let u = new Mc(a, this.result.root, this.result.opts).generate();
6636
+ let u = new Tc(a, this.result.root, this.result.opts).generate();
6559
6637
  return this.result.css = u[0], this.result.map = u[1], this.result;
6560
6638
  }
6561
6639
  sync() {
@@ -6567,14 +6645,14 @@ let Dc = {}, Fc = class oi {
6567
6645
  }
6568
6646
  if (this.prepareVisitors(), this.hasListener) {
6569
6647
  let e = this.result.root;
6570
- for (; !e[Lc]; ) e[Lc] = true, this.walkSync(e);
6648
+ for (; !e[Uc]; ) e[Uc] = true, this.walkSync(e);
6571
6649
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
6572
6650
  else this.visitSync(this.listeners.OnceExit, e);
6573
6651
  }
6574
6652
  return this.result;
6575
6653
  }
6576
6654
  then(e, a) {
6577
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || Ac("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);
6655
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || $c("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);
6578
6656
  }
6579
6657
  toString() {
6580
6658
  return this.css;
@@ -6606,22 +6684,22 @@ let Dc = {}, Fc = class oi {
6606
6684
  }
6607
6685
  if (0 !== a.iterator) {
6608
6686
  let m3, w3 = a.iterator;
6609
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[Lc]) return m3[Lc] = true, void e.push(br(m3));
6687
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[Uc]) return m3[Uc] = true, void e.push(br(m3));
6610
6688
  a.iterator = 0, delete u.indexes[w3];
6611
6689
  }
6612
6690
  let w2 = a.events;
6613
6691
  for (; a.eventIndex < w2.length; ) {
6614
6692
  let e2 = w2[a.eventIndex];
6615
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[Lc] = true, a.iterator = u.getIterator()));
6693
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[Uc] = true, a.iterator = u.getIterator()));
6616
6694
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
6617
6695
  }
6618
6696
  e.pop();
6619
6697
  }
6620
6698
  walkSync(e) {
6621
- e[Lc] = true;
6699
+ e[Uc] = true;
6622
6700
  let a = ri(e);
6623
6701
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
6624
- e2[Lc] || this.walkSync(e2);
6702
+ e2[Uc] || this.walkSync(e2);
6625
6703
  });
6626
6704
  else {
6627
6705
  let a2 = this.listeners[u];
@@ -6632,14 +6710,14 @@ let Dc = {}, Fc = class oi {
6632
6710
  return this.sync().warnings();
6633
6711
  }
6634
6712
  };
6635
- Fc.registerPostcss = (e) => {
6636
- Dc = e;
6713
+ Vc.registerPostcss = (e) => {
6714
+ Gc = e;
6637
6715
  };
6638
- var Uc = Fc;
6639
- Fc.default = Fc, Oc.registerLazyResult(Fc), xc.registerLazyResult(Fc);
6640
- let Bc = Jl, $c = fc;
6641
- const Wc = bc;
6642
- let zc = ea, jc = ni, Gc = class {
6716
+ var qc = Vc;
6717
+ Vc.default = Vc, Dc.registerLazyResult(Vc), Ac.registerLazyResult(Vc);
6718
+ let Hc = ac, Zc = xc;
6719
+ const Kc = Ec;
6720
+ let Jc = la, Yc = ni, Xc = class {
6643
6721
  get content() {
6644
6722
  return this.result.css;
6645
6723
  }
@@ -6660,7 +6738,7 @@ let zc = ea, jc = ni, Gc = class {
6660
6738
  }
6661
6739
  get root() {
6662
6740
  if (this._root) return this._root;
6663
- let e, a = $c;
6741
+ let e, a = Zc;
6664
6742
  try {
6665
6743
  e = a(this._css, this._opts);
6666
6744
  } catch (e2) {
@@ -6674,11 +6752,11 @@ let zc = ea, jc = ni, Gc = class {
6674
6752
  }
6675
6753
  constructor(e, a, u) {
6676
6754
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
6677
- let m2, w2 = zc;
6678
- this.result = new Wc(this._processor, m2, this._opts), this.result.css = a;
6755
+ let m2, w2 = Jc;
6756
+ this.result = new Kc(this._processor, m2, this._opts), this.result.css = a;
6679
6757
  let b2 = this;
6680
6758
  Object.defineProperty(this.result, "root", { get: () => b2.root });
6681
- let C2 = new Bc(w2, m2, this._opts, a);
6759
+ let C2 = new Hc(w2, m2, this._opts, a);
6682
6760
  if (C2.isMap()) {
6683
6761
  let [e2, a2] = C2.generate();
6684
6762
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -6698,7 +6776,7 @@ let zc = ea, jc = ni, Gc = class {
6698
6776
  return this.result;
6699
6777
  }
6700
6778
  then(e, a) {
6701
- 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);
6779
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || Yc("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);
6702
6780
  }
6703
6781
  toString() {
6704
6782
  return this._css;
@@ -6707,9 +6785,9 @@ let zc = ea, jc = ni, Gc = class {
6707
6785
  return [];
6708
6786
  }
6709
6787
  };
6710
- var Vc = Gc;
6711
- Gc.default = Gc;
6712
- let qc = Na, Hc = Uc, Zc = Vc, Kc = pl, Yc = class {
6788
+ var Qc = Xc;
6789
+ Xc.default = Xc;
6790
+ let lu = za, cu = qc, hu = Qc, Cu = Sl, ku = class {
6713
6791
  constructor(e = []) {
6714
6792
  this.version = "8.5.3", this.plugins = this.normalize(e);
6715
6793
  }
@@ -6725,39 +6803,39 @@ let qc = Na, Hc = Uc, Zc = Vc, Kc = pl, Yc = class {
6725
6803
  return a;
6726
6804
  }
6727
6805
  process(e, a = {}) {
6728
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new Hc(this, e, a) : new Zc(this, e, a);
6806
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new cu(this, e, a) : new hu(this, e, a);
6729
6807
  }
6730
6808
  use(e) {
6731
6809
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
6732
6810
  }
6733
6811
  };
6734
- var Jc = Yc;
6735
- Yc.default = Yc, Kc.registerProcessor(Yc), qc.registerProcessor(Yc);
6736
- let Xc = Ea, Qc = pa, lu = Ia, cu = qi, hu = ma, Cu = Na, xu = Ml, ku = il, Mu = Uc, _u = hl, Ou = la, Eu = fc, Lu = Jc, Ru = bc, Au = pl, Tu = yl, Nu = ea, Pu = gc;
6812
+ var xu = ku;
6813
+ ku.default = ku, Cu.registerProcessor(ku), lu.registerProcessor(ku);
6814
+ let Mu = Fa, _u = ba, Ou = Na, Eu = ra, Lu = ka, Ru = za, Au = Nl, Tu = fl, Nu = qc, Pu = vl, Du = ya, Fu = xc, Uu = xu, $u = Ec, Wu = Sl, zu = Ml, ju = la, Gu = Ic;
6737
6815
  function T$1(...e) {
6738
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Lu(e);
6816
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Uu(e);
6739
6817
  }
6740
6818
  T$1.plugin = function(e, a) {
6741
6819
  let u, m2 = false;
6742
6820
  function n(...u2) {
6743
6821
  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"));
6744
6822
  let w2 = a(...u2);
6745
- return w2.postcssPlugin = e, w2.postcssVersion = new Lu().version, w2;
6823
+ return w2.postcssPlugin = e, w2.postcssVersion = new Uu().version, w2;
6746
6824
  }
6747
6825
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
6748
6826
  return T$1([n(u2)]).process(e2, a2);
6749
6827
  }, n;
6750
- }, T$1.stringify = Nu, T$1.parse = Eu, T$1.fromJSON = xu, T$1.list = _u, T$1.comment = (e) => new Qc(e), T$1.atRule = (e) => new Xc(e), T$1.decl = (e) => new hu(e), T$1.rule = (e) => new Tu(e), T$1.root = (e) => new Au(e), T$1.document = (e) => new Cu(e), T$1.CssSyntaxError = cu, T$1.Declaration = hu, T$1.Container = lu, T$1.Processor = Lu, T$1.Document = Cu, T$1.Comment = Qc, T$1.Warning = Pu, T$1.AtRule = Xc, T$1.Result = Ru, T$1.Input = ku, T$1.Rule = Tu, T$1.Root = Au, T$1.Node = Ou, Mu.registerPostcss(T$1);
6751
- var Du = T$1;
6828
+ }, T$1.stringify = ju, T$1.parse = Fu, T$1.fromJSON = Au, T$1.list = Pu, T$1.comment = (e) => new _u(e), T$1.atRule = (e) => new Mu(e), T$1.decl = (e) => new Lu(e), T$1.rule = (e) => new zu(e), T$1.root = (e) => new Wu(e), T$1.document = (e) => new Ru(e), T$1.CssSyntaxError = Eu, T$1.Declaration = Lu, T$1.Container = Ou, T$1.Processor = Uu, T$1.Document = Ru, T$1.Comment = _u, T$1.Warning = Gu, T$1.AtRule = Mu, T$1.Result = $u, T$1.Input = Tu, T$1.Rule = zu, T$1.Root = Wu, T$1.Node = Du, Nu.registerPostcss(T$1);
6829
+ var Vu = T$1;
6752
6830
  T$1.default = T$1;
6753
- const Fu = Su(Du);
6754
- var Uu;
6755
- Fu.stringify, Fu.fromJSON, Fu.plugin, Fu.parse, Fu.list, Fu.document, Fu.comment, Fu.atRule, Fu.rule, Fu.decl, Fu.root, Fu.CssSyntaxError, Fu.Declaration, Fu.Container, Fu.Processor, Fu.Document, Fu.Comment, Fu.Warning, Fu.AtRule, Fu.Result, Fu.Input, Fu.Rule, Fu.Root, Fu.Node, (function(e) {
6831
+ const qu = Su(Vu);
6832
+ var Hu;
6833
+ qu.stringify, qu.fromJSON, qu.plugin, qu.parse, qu.list, qu.document, qu.comment, qu.atRule, qu.rule, qu.decl, qu.root, qu.CssSyntaxError, qu.Declaration, qu.Container, qu.Processor, qu.Document, qu.Comment, qu.Warning, qu.AtRule, qu.Result, qu.Input, qu.Rule, qu.Root, qu.Node, (function(e) {
6756
6834
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
6757
- })(Uu || (Uu = {}));
6758
- const { addCustomEvent: $u } = ae, { addSailfishEvent: Wu } = ae, { freezePage: zu } = ae, { takeFullSnapshot: ju } = ae;
6759
- var Gu = Object.defineProperty, y = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? Gu(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u);
6760
- let Vu = class d {
6835
+ })(Hu || (Hu = {}));
6836
+ const { addCustomEvent: Zu } = ae, { addSailfishEvent: Ku } = ae, { freezePage: Ju } = ae, { takeFullSnapshot: Yu } = ae;
6837
+ var Xu = Object.defineProperty, y = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? Xu(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u);
6838
+ let Qu = class d {
6761
6839
  constructor(e) {
6762
6840
  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;
6763
6841
  }
@@ -6766,8 +6844,8 @@ let Vu = class d {
6766
6844
  return this.functionName ? `${this.functionName} (${this.fileName}:${e}:${a})` : `${this.fileName}:${e}:${a}`;
6767
6845
  }
6768
6846
  };
6769
- const qu = /(^|@)\S+:\d+/, Hu = /^\s*at .*(\S+:\d+|\(native\))/m, Zu = /^(eval@)?(\[native code])?$/, Ku = { parse: function(e) {
6770
- return e ? typeof e.stacktrace < "u" || typeof e["opera#sourceloc"] < "u" ? this.parseOpera(e) : e.stack && e.stack.match(Hu) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
6847
+ const ep = /(^|@)\S+:\d+/, tp = /^\s*at .*(\S+:\d+|\(native\))/m, np = /^(eval@)?(\[native code])?$/, rp = { parse: function(e) {
6848
+ return e ? typeof e.stacktrace < "u" || typeof e["opera#sourceloc"] < "u" ? this.parseOpera(e) : e.stack && e.stack.match(tp) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
6771
6849
  }, extractLocation: function(e) {
6772
6850
  if (-1 === e.indexOf(":")) return [e];
6773
6851
  const a = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g, ""));
@@ -6775,23 +6853,23 @@ const qu = /(^|@)\S+:\d+/, Hu = /^\s*at .*(\S+:\d+|\(native\))/m, Zu = /^(eval@)
6775
6853
  return [a[1], a[2] || void 0, a[3] || void 0];
6776
6854
  }, parseV8OrIE: function(e) {
6777
6855
  return e.stack.split("\n").filter(function(e2) {
6778
- return !!e2.match(Hu);
6856
+ return !!e2.match(tp);
6779
6857
  }, this).map(function(e2) {
6780
6858
  e2.indexOf("(eval ") > -1 && (e2 = e2.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
6781
6859
  let a = e2.replace(/^\s+/, "").replace(/\(eval code/g, "(");
6782
6860
  const u = a.match(/ (\((.+):(\d+):(\d+)\)$)/);
6783
6861
  a = u ? a.replace(u[0], "") : a;
6784
6862
  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];
6785
- return new Vu({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6863
+ return new Qu({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6786
6864
  }, this);
6787
6865
  }, parseFFOrSafari: function(e) {
6788
6866
  return e.stack.split("\n").filter(function(e2) {
6789
- return !e2.match(Zu);
6867
+ return !e2.match(np);
6790
6868
  }, this).map(function(e2) {
6791
- 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 Vu({ functionName: e2 });
6869
+ 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 Qu({ functionName: e2 });
6792
6870
  {
6793
6871
  const a = /((.*".+"[^@]*)?[^@]*)(?:@)/, u = e2.match(a), m2 = u && u[1] ? u[1] : void 0, w2 = this.extractLocation(e2.replace(a, ""));
6794
- return new Vu({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6872
+ return new Qu({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6795
6873
  }
6796
6874
  }, this);
6797
6875
  }, parseOpera: function(e) {
@@ -6800,22 +6878,22 @@ const qu = /(^|@)\S+:\d+/, Hu = /^\s*at .*(\S+:\d+|\(native\))/m, Zu = /^(eval@)
6800
6878
  const a = /Line (\d+).*script (?:in )?(\S+)/i, u = e.message.split("\n"), m2 = [];
6801
6879
  for (let e2 = 2, w2 = u.length; e2 < w2; e2 += 2) {
6802
6880
  const w3 = a.exec(u[e2]);
6803
- w3 && m2.push(new Vu({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6881
+ w3 && m2.push(new Qu({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6804
6882
  }
6805
6883
  return m2;
6806
6884
  }, parseOpera10: function(e) {
6807
6885
  const a = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, u = e.stacktrace.split("\n"), m2 = [];
6808
6886
  for (let e2 = 0, w2 = u.length; e2 < w2; e2 += 2) {
6809
6887
  const w3 = a.exec(u[e2]);
6810
- w3 && m2.push(new Vu({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6888
+ w3 && m2.push(new Qu({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6811
6889
  }
6812
6890
  return m2;
6813
6891
  }, parseOpera11: function(e) {
6814
6892
  return e.stack.split("\n").filter(function(e2) {
6815
- return !!e2.match(qu) && !e2.match(/^Error created at/);
6893
+ return !!e2.match(ep) && !e2.match(/^Error created at/);
6816
6894
  }, this).map(function(e2) {
6817
6895
  const a = e2.split("@"), u = this.extractLocation(a.pop()), m2 = (a.shift() || "").replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0;
6818
- return new Vu({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6896
+ return new Qu({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6819
6897
  }, this);
6820
6898
  } };
6821
6899
  function T(e) {
@@ -6872,9 +6950,9 @@ function g(e, a) {
6872
6950
  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;
6873
6951
  });
6874
6952
  }
6875
- const Yu = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
6953
+ const op = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
6876
6954
  function R(e, a, u) {
6877
- const m2 = u ? Object.assign({}, Yu, u) : Yu, w2 = m2.logger;
6955
+ const m2 = u ? Object.assign({}, op, u) : op, w2 = m2.logger;
6878
6956
  if (!w2) return () => {
6879
6957
  };
6880
6958
  let b2;
@@ -6883,7 +6961,7 @@ function R(e, a, u) {
6883
6961
  const I2 = [];
6884
6962
  if (m2.level.includes("error")) {
6885
6963
  const l = (a2) => {
6886
- const u2 = a2.message, w3 = a2.error, b3 = Ku.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
6964
+ const u2 = a2.message, w3 = a2.error, b3 = rp.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
6887
6965
  e({ level: "error", trace: b3, payload: C3 });
6888
6966
  };
6889
6967
  a.addEventListener("error", l), I2.push(() => {
@@ -6892,7 +6970,7 @@ function R(e, a, u) {
6892
6970
  const f = (a2) => {
6893
6971
  let u2, w3;
6894
6972
  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)]);
6895
- const b3 = Ku.parse(u2).map((e2) => e2.toString());
6973
+ const b3 = rp.parse(u2).map((e2) => e2.toString());
6896
6974
  e({ level: "error", trace: b3, payload: w3 });
6897
6975
  };
6898
6976
  a.addEventListener("unhandledrejection", f), I2.push(() => {
@@ -6920,7 +6998,7 @@ function R(e, a, u) {
6920
6998
  if (a3.apply(this, w3), !("assert" === u2 && w3[0] || x2)) {
6921
6999
  x2 = true;
6922
7000
  try {
6923
- const a4 = Ku.parse(new Error()).map((e2) => e2.toString()).splice(1), b3 = ("assert" === u2 ? w3.slice(1) : w3).map((e2) => g(e2, m2.stringifyOptions));
7001
+ const a4 = rp.parse(new Error()).map((e2) => e2.toString()).splice(1), b3 = ("assert" === u2 ? w3.slice(1) : w3).map((e2) => g(e2, m2.stringifyOptions));
6924
7002
  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.")] });
6925
7003
  } catch (e2) {
6926
7004
  a3("@sailfish-rrweb/rrweb logger error:", e2, ...w3);
@@ -6932,7 +7010,7 @@ function R(e, a, u) {
6932
7010
  };
6933
7011
  }
6934
7012
  }
6935
- var Ju = ((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))(Ju || {});
7013
+ var sp = ((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))(sp || {});
6936
7014
  function suppressConsoleLogsDuringCall(e) {
6937
7015
  const a = console.log, u = console.warn, m2 = console.error;
6938
7016
  console.log = () => {
@@ -6945,7 +7023,7 @@ function suppressConsoleLogsDuringCall(e) {
6945
7023
  console.log = a, console.warn = u, console.error = m2;
6946
7024
  }
6947
7025
  }
6948
- const Xu = "zendesk_chat", Qu = "Zendesk";
7026
+ const ip = "zendesk_chat", ap = "Zendesk";
6949
7027
  function zE_safe(...e) {
6950
7028
  try {
6951
7029
  if ((function hasZendesk() {
@@ -6961,7 +7039,7 @@ function maskInputFn(e, a) {
6961
7039
  const u = { creditCard: /\b(?:\d[ -]*?){13,16}\b/, ssn: /\b\d{3}-\d{2}-\d{4}\b/ };
6962
7040
  return a.closest(".mask") ? "*".repeat(e.length) : a.hasAttribute("data-cc") || ((_a2 = a.getAttribute("autocomplete")) == null ? void 0 : _a2.startsWith("cc-")) || u.creditCard.test(e) ? "**** **** **** " + e.slice(-4) : a.hasAttribute("data-ssn") || u.ssn.test(e) ? "***-**-" + e.slice(-4) : a.hasAttribute("data-dob") ? "**/**/" + e.slice(-4) : e;
6963
7041
  }
6964
- const getUrlAndStoredUuids = () => ({ page_visit_uuid: sessionStorage.getItem("pageVisitUUID"), prev_page_visit_uuid: sessionStorage.getItem("prevPageVisitUUID"), href: location.origin + location.pathname });
7042
+ const getUrlAndStoredUuids = () => ({ page_visit_uuid: sessionStorage.getItem("pageVisitUUID"), prev_page_visit_uuid: sessionStorage.getItem("prevPageVisitUUID"), href: location.origin + location.pathname, tabVisibilityChanged: sessionStorage.getItem("tabVisibilityChanged"), tabVisibilityState: sessionStorage.getItem("tabVisibilityState") });
6965
7043
  function initializeDomContentEvents(e) {
6966
7044
  document.addEventListener("readystatechange", () => {
6967
7045
  const a = { type: 24, data: { source: 0, info: "" }, timestamp: Date.now(), sessionId: e, ...getUrlAndStoredUuids() };
@@ -6984,7 +7062,7 @@ function initializeDomContentEvents(e) {
6984
7062
  function initializeConsolePlugin(e, a) {
6985
7063
  const { name: u, observer: m2 } = /* @__PURE__ */ ((e2) => ({ name: "@sailfish-rrweb/rrweb/console@1", observer: R, options: e2 }))(e);
6986
7064
  m2((e2) => {
6987
- sendEvent({ type: Ju.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
7065
+ sendEvent({ type: sp.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
6988
7066
  }, window, e);
6989
7067
  }
6990
7068
  async function initializeRecording(e, a, u, m2) {
@@ -7004,11 +7082,11 @@ async function initializeRecording(e, a, u, m2) {
7004
7082
  zE_safe("messenger:set", "conversationTags", [`sailfish-session-${m2}`]);
7005
7083
  });
7006
7084
  const handleWidgetOpen = () => {
7007
- ae.addSailfishEvent(Ju.SailfishCustom, { action: "customer support chat opened", element_id: Xu, provider: Qu });
7085
+ ae.addSailfishEvent(sp.SailfishCustom, { action: "customer support chat opened", element_id: ip, provider: ap });
7008
7086
  }, handleWidgetClose = () => {
7009
- ae.addSailfishEvent(Ju.SailfishCustom, { action: "customer support chat closed", element_id: Xu, provider: Qu });
7087
+ ae.addSailfishEvent(sp.SailfishCustom, { action: "customer support chat closed", element_id: ip, provider: ap });
7010
7088
  }, handleUnreadMessages = (e2) => {
7011
- ae.addSailfishEvent(Ju.SailfishCustom, { action: "zendesk unreadmessages", element_id: Xu, provider: Qu });
7089
+ ae.addSailfishEvent(sp.SailfishCustom, { action: "zendesk unreadmessages", element_id: ip, provider: ap });
7012
7090
  };
7013
7091
  suppressConsoleLogsDuringCall(() => {
7014
7092
  zE_safe("messenger:on", "open", handleWidgetOpen), zE_safe("messenger:on", "close", handleWidgetClose), zE_safe("messenger:on", "unreadMessages", handleUnreadMessages);
@@ -7019,8 +7097,8 @@ async function initializeRecording(e, a, u, m2) {
7019
7097
  }
7020
7098
  return w2;
7021
7099
  }
7022
- let ep = null, tp = null;
7023
- const np = readDebugFlag(), rp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], op = [400, 403], sp = "CORS", ip = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, ap = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7100
+ let lp = null, cp = null;
7101
+ const up = readDebugFlag(), pp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], dp = [400, 403], hp = "CORS", fp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, mp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7024
7102
  function trackDomainChangesOnce() {
7025
7103
  const e = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7026
7104
  if (e.routeWatcherIntervalId) return;
@@ -7041,6 +7119,9 @@ function trackDomainChangesOnce() {
7041
7119
  })(() => checkDomainChange(), 500);
7042
7120
  checkDomainChange(true), e.routeWatcherIntervalId = window.setInterval(u, 1e3);
7043
7121
  }
7122
+ function clearPageVisitDataFromSessionStorage() {
7123
+ X && (sessionStorage.removeItem("pageVisitUUID"), sessionStorage.removeItem("prevPageVisitUUID"), sessionStorage.removeItem("tabVisibilityChanged"), sessionStorage.removeItem("tabVisibilityState"));
7124
+ }
7044
7125
  function matchUrlWithWildcard(e, a) {
7045
7126
  let u, m2;
7046
7127
  if ("string" == typeof e ? u = e : "undefined" != typeof URL && e instanceof URL ? u = e.href : "undefined" != typeof Request && e instanceof Request ? u = e.url : null != e && "function" == typeof e.toString && (u = e.toString()), !u) return false;
@@ -7084,7 +7165,7 @@ function shouldSkipHeadersPropagation(e, a = []) {
7084
7165
  return true;
7085
7166
  }
7086
7167
  for (const e2 of E) if (u.pathname.toLowerCase().endsWith(e2)) return true;
7087
- return !!matchUrlWithWildcard(e, [...rp, ...a]);
7168
+ return !!matchUrlWithWildcard(e, [...pp, ...a]);
7088
7169
  }
7089
7170
  function setupFetchInterceptor(e = []) {
7090
7171
  const a = window.fetch, u = getOrSetSessionId();
@@ -7100,20 +7181,41 @@ function setupFetchInterceptor(e = []) {
7100
7181
  var _a2, _b;
7101
7182
  if (!C3) return e2.apply(a3, u2);
7102
7183
  const I3 = v4(), _2 = getUrlAndStoredUuids(), O2 = w3.method || "GET", E2 = Date.now();
7184
+ let D2, F2 = {};
7103
7185
  try {
7104
- let D2 = await (async function injectHeader(e3, a4, u3, m4, w4, C4, x4) {
7186
+ if (m3 instanceof Request) {
7187
+ m3.headers.forEach((e3, a4) => {
7188
+ F2[a4] = e3;
7189
+ });
7190
+ try {
7191
+ const e3 = m3.clone();
7192
+ D2 = await e3.text();
7193
+ } catch (e3) {
7194
+ D2 = null;
7195
+ }
7196
+ } else w3.headers && (w3.headers instanceof Headers ? w3.headers.forEach((e3, a4) => {
7197
+ F2[a4] = e3;
7198
+ }) : Array.isArray(w3.headers) ? w3.headers.forEach(([e3, a4]) => {
7199
+ F2[e3] = a4;
7200
+ }) : F2 = { ...w3.headers }), D2 = w3.body;
7201
+ } catch (e3) {
7202
+ up && console.warn("[Sailfish] Failed to capture request data:", e3);
7203
+ }
7204
+ try {
7205
+ let U2 = await (async function injectHeader(e3, a4, u3, m4, w4, C4, x4) {
7206
+ const I4 = getFuncSpanHeader();
7105
7207
  if (u3 instanceof Request) {
7106
- const I4 = u3.clone(), _3 = new Headers(I4.headers);
7107
- _3.set(b, `${w4}/${C4}/${x4}`);
7108
- const O3 = new Request(I4, { headers: _3 });
7109
- return await e3.call(a4, O3, m4);
7208
+ const _3 = u3.clone(), O3 = new Headers(_3.headers);
7209
+ O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), up && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u3.url, header: I4.name }));
7210
+ const E3 = new Request(_3, { headers: O3 });
7211
+ return await e3.call(a4, E3, m4);
7110
7212
  }
7111
7213
  {
7112
- const I4 = { ...m4 }, _3 = new Headers(m4.headers || {});
7113
- return _3.set(b, `${w4}/${C4}/${x4}`), I4.headers = _3, await e3.call(a4, u3, I4);
7214
+ const _3 = { ...m4 }, O3 = new Headers(m4.headers || {});
7215
+ return O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), up && 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);
7114
7216
  }
7115
- })(e2, a3, m3, w3, C3, _2.page_visit_uuid, I3), F2 = false;
7116
- op.includes(D2.status) && (np && console.log("Perform retry as status was fail:", D2), D2 = await (async function retryWithoutPropagateHeaders(e3, a4, u3, m4) {
7217
+ })(e2, a3, m3, w3, C3, _2.page_visit_uuid, I3), B2 = false;
7218
+ dp.includes(U2.status) && (up && console.log("Perform retry as status was fail:", U2), U2 = await (async function retryWithoutPropagateHeaders(e3, a4, u3, m4) {
7117
7219
  try {
7118
7220
  let m5 = u3[0], w4 = u3[1] || {};
7119
7221
  if ("string" == typeof m5 || m5 instanceof URL) {
@@ -7129,15 +7231,30 @@ function setupFetchInterceptor(e = []) {
7129
7231
  }
7130
7232
  return e3.apply(a4, u3);
7131
7233
  } catch (e4) {
7132
- throw np && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7234
+ throw up && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7133
7235
  }
7134
- })(e2, a3, u2, x3), F2 = true);
7135
- const U2 = Date.now(), B2 = D2.status, $2 = D2.ok, z2 = $2 ? "" : `Request Error: ${D2.statusText}`;
7136
- return sendEvent({ type: 27, timestamp: U2, sessionId: C3, data: { request_id: I3, session_id: C3, timestamp_start: E2, timestamp_end: U2, response_code: B2, success: $2, error: z2, method: O2, url: x3, retry_without_trace_id: F2 }, ..._2 }), D2;
7236
+ })(e2, a3, u2, x3), B2 = true);
7237
+ const $2 = Date.now(), z2 = U2.status, j2 = U2.ok, V2 = j2 ? "" : `Request Error: ${U2.statusText}`;
7238
+ let q2;
7239
+ try {
7240
+ const e3 = U2.clone();
7241
+ q2 = await e3.text();
7242
+ } catch (e3) {
7243
+ up && console.warn("[Sailfish] Failed to capture response data:", e3), q2 = null;
7244
+ }
7245
+ let H2 = null;
7246
+ try {
7247
+ H2 = {}, U2.headers.forEach((e3, a4) => {
7248
+ H2[a4] = e3;
7249
+ });
7250
+ } catch (e3) {
7251
+ up && console.warn("[Sailfish] Failed to capture response headers:", e3), H2 = null;
7252
+ }
7253
+ 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 }), U2;
7137
7254
  } catch (m4) {
7138
- const w4 = Date.now(), b2 = false, D2 = ((_a2 = m4.response) == null ? void 0 : _a2.status) || 500, F2 = m4.message || "Fetch request failed";
7139
- if (m4 instanceof TypeError && ((_b = m4 == null ? void 0 : m4.message) == null ? void 0 : _b.toLowerCase().includes(sp.toLowerCase()))) return e2.apply(a3, u2);
7140
- throw sendEvent({ type: 27, timestamp: w4, sessionId: C3, data: { request_id: I3, session_id: C3, timestamp_start: E2, timestamp_end: w4, response_code: D2, success: b2, error: F2, method: O2, url: x3 }, ..._2 }), m4;
7255
+ const w4 = Date.now(), b2 = false, U2 = ((_a2 = m4.response) == null ? void 0 : _a2.status) || 500, B2 = m4.message || "Fetch request failed";
7256
+ if (m4 instanceof TypeError && ((_b = m4 == null ? void 0 : m4.message) == null ? void 0 : _b.toLowerCase().includes(hp.toLowerCase()))) return e2.apply(a3, u2);
7257
+ throw sendEvent({ type: 27, timestamp: w4, sessionId: C3, data: { request_id: I3, session_id: C3, timestamp_start: E2, timestamp_end: w4, response_code: U2, success: b2, error: B2, method: O2, url: x3, request_headers: F2, request_body: D2, response_body: null }, ..._2 }), m4;
7141
7258
  }
7142
7259
  })(a2, m2, w2, x2, I2, u, C2);
7143
7260
  } });
@@ -7170,7 +7287,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7170
7287
  })(), F2 = getOrSetSessionId(), U2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7171
7288
  if (U2.sessionId = F2, U2.apiKey = e, U2.backendApi = a, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7172
7289
  else {
7173
- U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(ap, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7290
+ U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(mp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7174
7291
  window.addEventListener("error", (e2) => {
7175
7292
  captureError(e2.error || e2.message);
7176
7293
  }), window.addEventListener("unhandledrejection", (e2) => {
@@ -7178,7 +7295,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7178
7295
  });
7179
7296
  })(), U2.errorInit = true), (function storeCredentialsAndConnection({ apiKey: e2, backendApi: a2 }) {
7180
7297
  X && (sessionStorage.setItem("sailfishApiKey", e2), sessionStorage.setItem("sailfishBackendApi", a2));
7181
- })({ apiKey: e, backendApi: a }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e), sessionStorage.setItem("sailfishBackendApi", a), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e, [...m2, ...rp], a).catch((e2) => console.error("Failed to send domains to not propagate header to:", e2)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e2 = []) {
7298
+ })({ apiKey: e, backendApi: a }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e), sessionStorage.setItem("sailfishBackendApi", a), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e, [...m2, ...pp], a).catch((e2) => console.error("Failed to send domains to not propagate header to:", e2)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e2 = []) {
7182
7299
  const a2 = XMLHttpRequest.prototype.open, u2 = XMLHttpRequest.prototype.send, m3 = XMLHttpRequest.prototype.setRequestHeader, w3 = getOrSetSessionId();
7183
7300
  XMLHttpRequest.prototype.setRequestHeader = function(e3, a3) {
7184
7301
  return this._capturedRequestHeaders || (this._capturedRequestHeaders = {}), this._capturedRequestHeaders[e3] = a3, m3.call(this, e3, a3);
@@ -7194,20 +7311,42 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7194
7311
  } catch (e3) {
7195
7312
  console.warn(`Could not set X-Sf3-Rid for ${m4}`, e3);
7196
7313
  }
7197
- const _3 = Date.now();
7198
- let O3 = false;
7199
- const emitFinished = (e3, a4, u3) => {
7200
- if (O3) return;
7201
- O3 = true;
7202
- const b2 = Date.now();
7203
- sendEvent({ type: 27, timestamp: b2, sessionId: w3, data: { request_id: x3, session_id: w3, timestamp_start: _3, timestamp_end: b2, response_code: a4, success: e3, error: u3, method: this._requestMethod, url: m4 }, ...getUrlAndStoredUuids() });
7314
+ const _3 = getFuncSpanHeader();
7315
+ if (_3) try {
7316
+ this.setRequestHeader(_3.name, _3.value), up && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7317
+ } catch (e3) {
7318
+ up && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e3);
7319
+ }
7320
+ const O3 = Date.now();
7321
+ let E3 = false;
7322
+ const D3 = a3[0], F3 = { ...this._capturedRequestHeaders }, emitFinished = (e3, a4, u3, b2, C4) => {
7323
+ if (E3) return;
7324
+ E3 = true;
7325
+ const I4 = Date.now();
7326
+ sendEvent({ type: 27, timestamp: I4, sessionId: w3, data: { request_id: x3, session_id: w3, timestamp_start: O3, timestamp_end: I4, response_code: a4, success: e3, error: u3, method: this._requestMethod, url: m4, request_headers: F3, request_body: D3, response_headers: C4, response_body: b2 }, ...getUrlAndStoredUuids() });
7204
7327
  };
7205
7328
  return this.addEventListener("load", () => {
7206
7329
  const e3 = this.status || 0;
7207
- if (e3 >= 200 && e3 < 300) emitFinished(true, e3, "");
7330
+ let a4, u3 = null;
7331
+ try {
7332
+ a4 = this.responseText || this.response;
7333
+ } catch (e4) {
7334
+ a4 = null;
7335
+ }
7336
+ try {
7337
+ u3 = {};
7338
+ const e4 = this.getAllResponseHeaders();
7339
+ e4 && e4.split("\r\n").forEach((e5) => {
7340
+ const a5 = e5.split(": ");
7341
+ 2 === a5.length && (u3[a5[0]] = a5[1]);
7342
+ });
7343
+ } catch (e4) {
7344
+ up && console.warn("[Sailfish] Failed to capture XHR response headers:", e4), u3 = null;
7345
+ }
7346
+ if (e3 >= 200 && e3 < 300) emitFinished(true, e3, "", a4, u3);
7208
7347
  else {
7209
- const a4 = this.statusText || `HTTP ${e3}`;
7210
- emitFinished(false, e3, a4);
7348
+ const m5 = this.statusText || `HTTP ${e3}`;
7349
+ emitFinished(false, e3, m5, a4, u3);
7211
7350
  }
7212
7351
  }, { once: true }), this.addEventListener("error", () => {
7213
7352
  const e3 = this.status || 0, a4 = 0 === e3 ? "Network or CORS failure" : this.statusText || `Error ${e3}`;
@@ -7218,7 +7357,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7218
7357
  sendMessage({ type: "deviceInfo", data: { deviceInfo: { language: navigator.language, userAgent: navigator.userAgent } } });
7219
7358
  })();
7220
7359
  try {
7221
- const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || ip;
7360
+ const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || fp;
7222
7361
  if (U2.ws && 1 === U2.ws.readyState) return;
7223
7362
  const b2 = withAppUrlMetadata(I2), x3 = await startRecordingSession(e, F2, a, O2, E2, D2, _2, "JS/TS", b2);
7224
7363
  if ((_b = x3.data) == null ? void 0 : _b.startRecordingSession) {
@@ -7235,14 +7374,14 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7235
7374
  H && (!(function sendUserDeviceUuid() {
7236
7375
  sendMessage({ type: "userDeviceUuid", userDeviceUuid: (function getOrSetUserDeviceUuid() {
7237
7376
  let e = null;
7238
- if (J) try {
7377
+ if (Y) try {
7239
7378
  e = localStorage.getItem("sailfishUserDeviceUuid");
7240
7379
  } catch {
7241
7380
  }
7242
7381
  if (!e) {
7243
7382
  e = v4();
7244
7383
  try {
7245
- J && localStorage.setItem("sailfishUserDeviceUuid", e);
7384
+ Y && localStorage.setItem("sailfishUserDeviceUuid", e);
7246
7385
  } catch {
7247
7386
  }
7248
7387
  }
@@ -7250,29 +7389,34 @@ H && (!(function sendUserDeviceUuid() {
7250
7389
  })() });
7251
7390
  })(), (function sendTimeZone() {
7252
7391
  sendMessage({ type: "timeZone", timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
7253
- })()), Y && document.addEventListener("visibilitychange", function handleVisibilityChange() {
7254
- "visible" === document.visibilityState && getOrSetSessionId();
7392
+ })()), J && document.addEventListener("visibilitychange", function handleVisibilityChange() {
7393
+ const e = document.visibilityState, a = Date.now();
7394
+ "visible" === e && getOrSetSessionId();
7395
+ try {
7396
+ sendMessage({ type: "visibilityChange", data: { state: e, url: window.location.href.split("?")[0], timestamp: a, ...getUrlAndStoredUuids() } }), up && console.log(`[Sailfish] Tab became ${e}, sent visibility change event`);
7397
+ } catch (e2) {
7398
+ console.warn("[Sailfish] Failed to send visibility change event:", e2);
7399
+ }
7400
+ sessionStorage.setItem("tabVisibilityChanged", a.toString()), sessionStorage.setItem("tabVisibilityState", e);
7255
7401
  }), H && window.addEventListener("beforeunload", () => {
7256
- window.name = "", (function clearPageVisitUuid() {
7257
- X && (sessionStorage.removeItem("pageVisitUUID"), sessionStorage.removeItem("prevPageVisitUUID"));
7258
- })();
7402
+ clearPageVisitDataFromSessionStorage();
7259
7403
  });
7260
- exports.DEFAULT_CAPTURE_SETTINGS = ip, exports.DEFAULT_CONSOLE_RECORDING_SETTINGS = ap, exports.STORAGE_VERSION = 1, exports.addOrUpdateMetadata = function addOrUpdateMetadata(e) {
7404
+ exports.DEFAULT_CAPTURE_SETTINGS = fp, exports.DEFAULT_CONSOLE_RECORDING_SETTINGS = mp, exports.STORAGE_VERSION = 1, exports.addOrUpdateMetadata = function addOrUpdateMetadata(e) {
7261
7405
  const a = { type: "addOrUpdateMetadata", metadata: e };
7262
- tp && JSON.stringify(tp) === JSON.stringify(e) || (tp = e, sendMessage(a));
7263
- }, exports.buildBatches = buildBatches, exports.createTriageFromRecorder = createTriageFromRecorder, exports.eventSize = eventSize, exports.fetchCaptureSettings = fetchCaptureSettings, exports.flushBufferedEvents = flushBufferedEvents, exports.getUrlAndStoredUuids = getUrlAndStoredUuids, exports.identify = function identify(e, a = {}, u = false) {
7406
+ cp && JSON.stringify(cp) === JSON.stringify(e) || (cp = e, sendMessage(a));
7407
+ }, 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) {
7264
7408
  const m2 = { type: "identify", userId: e, traits: a };
7265
- ep && ep.userId === e && JSON.stringify(ep.traits) === JSON.stringify(a) || (ep = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7409
+ lp && lp.userId === e && JSON.stringify(lp.traits) === JSON.stringify(a) || (lp = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7266
7410
  }, exports.initRecorder = async (e) => {
7267
7411
  if ("undefined" == typeof window) return;
7268
7412
  const a = window.__sailfish_recorder || (window.__sailfish_recorder = {}), u = getOrSetSessionId();
7269
- return a.initialized && a.sessionId === u && a.ws && 1 === a.ws.readyState ? void 0 : (a.initPromise || (a.initPromise = (async () => {
7413
+ return clearPageVisitDataFromSessionStorage(), a.initialized && a.sessionId === u && a.ws && 1 === a.ws.readyState ? void 0 : (a.initPromise || (a.initPromise = (async () => {
7270
7414
  a.hasLoggedInitOnce || (console.log("Initializing Sailfish Recorder (first run) …"), a.hasLoggedInitOnce = true), await startRecording(e), a.issueReportingInit || (setupIssueReporting({ apiKey: e.apiKey, backendApi: e.backendApi ?? "https://api-service.sailfishqa.com", getSessionId: () => getOrSetSessionId(), shortcuts: e.reportIssueShortcuts, customBaseUrl: e.customBaseUrl }), a.issueReportingInit = true);
7271
7415
  })().finally(() => {
7272
7416
  delete a.initPromise;
7273
7417
  })), a.initPromise);
7274
- }, exports.initializeConsolePlugin = initializeConsolePlugin, exports.initializeDomContentEvents = initializeDomContentEvents, exports.initializeRecording = initializeRecording, exports.initializeWebSocket = initializeWebSocket, exports.matchUrlWithWildcard = matchUrlWithWildcard, exports.openReportIssueModal = function openReportIssueModal() {
7275
- Ye ? stopRecording() : (injectModalHTML(), je && document.body.appendChild(je));
7418
+ }, exports.initializeConsolePlugin = initializeConsolePlugin, exports.initializeDomContentEvents = initializeDomContentEvents, exports.initializeRecording = initializeRecording, exports.initializeWebSocket = initializeWebSocket, exports.isFunctionSpanTrackingEnabled = isFunctionSpanTrackingEnabled, exports.matchUrlWithWildcard = matchUrlWithWildcard, exports.openReportIssueModal = function openReportIssueModal() {
7419
+ it ? stopRecording() : (injectModalHTML(), Qe && document.body.appendChild(Qe));
7276
7420
  }, exports.sendDomainsToNotPropagateHeaderTo = sendDomainsToNotPropagateHeaderTo, exports.sendEvent = sendEvent, exports.sendGraphQLRequest = sendGraphQLRequest, exports.sendMessage = sendMessage, exports.startRecording = startRecording, exports.startRecordingSession = startRecordingSession, exports.trackingEvent = function trackingEvent(e) {
7277
7421
  sendMessage({ type: "trackingEvent", trackingData: e, timestamp: exports.nowTimestamp() });
7278
7422
  }, exports.withAppUrlMetadata = withAppUrlMetadata;