@sailfish-ai/recorder 1.8.10 → 1.8.12

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.
@@ -329,9 +329,23 @@
329
329
  a2.delete(e2);
330
330
  });
331
331
  }
332
- const J = "undefined" != typeof globalThis && void 0 !== globalThis.window, Y = "undefined" != typeof globalThis && void 0 !== globalThis.document, X = "undefined" != typeof globalThis && "localStorage" in globalThis, Q = "undefined" != typeof globalThis && "sessionStorage" in globalThis;
332
+ const J = "undefined" != typeof globalThis && void 0 !== globalThis.window, Y = "undefined" != typeof globalThis && void 0 !== globalThis.document, X = "undefined" != typeof globalThis && "localStorage" in globalThis, Q = "undefined" != typeof globalThis && "sessionStorage" in globalThis, ee = "sailfishSessionId", te = "__sailfish_refresh__";
333
+ let ne = null;
333
334
  function getOrSetSessionId() {
334
- return J ? (window.name || (window.name = v4()), window.name) : v4();
335
+ if (!J) return v4();
336
+ if (ne) return ne;
337
+ const e2 = window.name.startsWith(te);
338
+ if (e2 && (window.name = window.name.substring(20)), e2) {
339
+ const e3 = window.sessionStorage.getItem(ee);
340
+ if (e3) return ne = e3, e3;
341
+ }
342
+ const a2 = v4();
343
+ ne = a2;
344
+ try {
345
+ window.sessionStorage.setItem(ee, a2);
346
+ } catch (e3) {
347
+ }
348
+ return a2;
335
349
  }
336
350
  function buildBatches(e2, a2, u2) {
337
351
  const m2 = {};
@@ -358,27 +372,29 @@
358
372
  var _a2;
359
373
  return { ...e2 ?? {}, appUrl: (e2 == null ? void 0 : e2.appUrl) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
360
374
  }
361
- e.nowTimestamp = Date.now, /[1-9][0-9]{12}/.test(Date.now().toString()) || (e.nowTimestamp = () => (/* @__PURE__ */ new Date()).getTime());
362
- const ee = readDebugFlag(), te = "per_session", ne = "sailfish_funcspan_global_state";
363
- let re = null, oe = false, se = null, ie = null;
375
+ J && window.addEventListener("beforeunload", () => {
376
+ window.name = te + window.name;
377
+ }), e.nowTimestamp = Date.now, /[1-9][0-9]{12}/.test(Date.now().toString()) || (e.nowTimestamp = () => (/* @__PURE__ */ new Date()).getTime());
378
+ const re = readDebugFlag(), oe = "per_session", se = "sailfish_funcspan_global_state";
379
+ let ie = null, le = false, ce = null, pe = null;
364
380
  function saveGlobalFuncSpanState(e2, a2) {
365
381
  try {
366
382
  if ("undefined" == typeof localStorage) return;
367
383
  const u2 = { enabled: e2, expirationTimestampMs: a2 };
368
- localStorage.setItem(ne, JSON.stringify(u2)), ee && console.log("[Sailfish] Saved global function span state to localStorage:", u2);
384
+ localStorage.setItem(se, JSON.stringify(u2)), re && console.log("[Sailfish] Saved global function span state to localStorage:", u2);
369
385
  } catch (e3) {
370
- ee && console.warn("[Sailfish] Failed to save global function span state to localStorage:", e3);
386
+ re && console.warn("[Sailfish] Failed to save global function span state to localStorage:", e3);
371
387
  }
372
388
  }
373
389
  function clearGlobalFuncSpanState() {
374
390
  try {
375
391
  if ("undefined" == typeof localStorage) return;
376
- localStorage.removeItem(ne), ee && console.log("[Sailfish] Cleared global function span state from localStorage");
392
+ localStorage.removeItem(se), re && console.log("[Sailfish] Cleared global function span state from localStorage");
377
393
  } catch (e2) {
378
- ee && console.warn("[Sailfish] Failed to clear global function span state from localStorage:", e2);
394
+ re && console.warn("[Sailfish] Failed to clear global function span state from localStorage:", e2);
379
395
  }
380
396
  }
381
- let le = false, ce = null, pe = null, de = false, he = null, me = null;
397
+ let de = false, he = null, me = null, ge = false, ye = null, we = null;
382
398
  function isWebSocketOpen(e2) {
383
399
  return (e2 == null ? void 0 : e2.readyState) === WebSocket.OPEN;
384
400
  }
@@ -389,15 +405,15 @@
389
405
  u2.onsuccess = () => a2(u2.result), u2.onerror = () => a2([]);
390
406
  })) ?? [];
391
407
  })();
392
- if (isWebSocketOpen(re)) try {
393
- for (const a2 of e2) re.send(a2.value), await deleteNotifyMessageById(a2.id);
408
+ if (isWebSocketOpen(ie)) try {
409
+ for (const a2 of e2) ie.send(a2.value), await deleteNotifyMessageById(a2.id);
394
410
  } catch (e3) {
395
411
  }
396
412
  }
397
413
  async function flushBufferedEvents() {
398
- if (isWebSocketOpen(re)) if (se) await se;
414
+ if (isWebSocketOpen(ie)) if (ce) await ce;
399
415
  else {
400
- se = (async () => {
416
+ ce = (async () => {
401
417
  var _a2, _b;
402
418
  const e2 = await (async function getAllIndexedEvents() {
403
419
  return await withStore$1("readonly", (e3) => new Promise((a3) => {
@@ -412,119 +428,121 @@
412
428
  for (const e3 of Object.values(a2)) {
413
429
  const a3 = buildBatches(e3, (e4) => eventSize(e4.data), 52428800);
414
430
  for (const e4 of a3) {
415
- if (!isWebSocketOpen(re)) break;
431
+ if (!isWebSocketOpen(ie)) break;
416
432
  const a4 = e4.map((e5) => {
417
433
  var _a3, _b2;
418
434
  return { ...e5.data, appUrl: ((_a3 = e5.data) == null ? void 0 : _a3.appUrl) ?? ((_b2 = window == null ? void 0 : window.location) == null ? void 0 : _b2.href) };
419
435
  }), u2 = e4.map((e5) => e5.id).filter((e5) => null != e5);
420
436
  try {
421
437
  const e5 = JSON.stringify({ type: "events", events: a4, mapUuid: window.sfMapUuid });
422
- re.send(e5), await deleteEventsByIds(u2);
438
+ ie.send(e5), await deleteEventsByIds(u2);
423
439
  } catch (e5) {
424
440
  }
425
441
  }
426
442
  }
427
443
  })();
428
444
  try {
429
- await se;
445
+ await ce;
430
446
  } finally {
431
- se = null;
447
+ ce = null;
432
448
  }
433
449
  }
434
450
  }
435
451
  function sendEvent(e2) {
436
452
  var _a2;
437
453
  const a2 = { ...e2, app_url: (e2 == null ? void 0 : e2.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
438
- if (oe || !isWebSocketOpen(re)) return void saveEventToIDB(a2);
454
+ if (le || !isWebSocketOpen(ie)) return void saveEventToIDB(a2);
439
455
  const u2 = JSON.stringify({ type: "event", event: a2, mapUuid: window.sfMapUuid });
440
456
  try {
441
- re.send(u2);
457
+ ie.send(u2);
442
458
  } catch (e3) {
443
459
  saveEventToIDB(a2);
444
460
  }
445
461
  }
446
- function initializeWebSocket(e2, a2, u2) {
447
- const m2 = (function getWebSocketHost(e3) {
462
+ function initializeWebSocket(e2, a2, u2, m2) {
463
+ const w2 = (function getWebSocketHost(e3) {
448
464
  const a3 = document.createElement("a");
449
465
  return a3.href = e3, `${a3.hostname}${a3.port ? `:${a3.port}` : ""}`;
450
- })(e2), w2 = new URL(e2).protocol;
451
- return re = new z(`${"https:" === w2 ? "wss" : "ws"}://${m2}/ws/notify/?apiKey=${a2}&sessionId=${u2}&sender=JS%2FTS&version=1.8.10`, [], { connectionTimeout: 3e4 }), re.addEventListener("open", () => {
452
- ee && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (le ? "ENABLED" : "DISABLED"))), (async () => {
466
+ })(e2);
467
+ let b2 = `${"https:" === new URL(e2).protocol ? "wss" : "ws"}://${w2}/ws/notify/?apiKey=${a2}&sessionId=${u2}&sender=JS%2FTS&version=1.8.12`;
468
+ m2 && (b2 += `&envValue=${encodeURIComponent(m2)}`);
469
+ return ie = new z(b2, [], { connectionTimeout: 3e4 }), ie.addEventListener("open", () => {
470
+ re && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (de ? "ENABLED" : "DISABLED"))), (async () => {
453
471
  try {
454
- oe = true, await flushNotifyQueue(), await flushBufferedEvents();
472
+ le = true, await flushNotifyQueue(), await flushBufferedEvents();
455
473
  } finally {
456
- oe = false;
474
+ le = false;
457
475
  }
458
- null != ie && clearInterval(ie), ie = window.setInterval(() => {
476
+ null != pe && clearInterval(pe), pe = window.setInterval(() => {
459
477
  flushBufferedEvents();
460
478
  }, 2e3);
461
479
  })();
462
- }), re.addEventListener("close", () => {
463
- ee && console.log("[Sailfish] WebSocket closed");
464
- }), re.addEventListener("message", (e3) => {
480
+ }), ie.addEventListener("close", () => {
481
+ re && console.log("[Sailfish] WebSocket closed");
482
+ }), ie.addEventListener("message", (e3) => {
465
483
  try {
466
484
  const a3 = JSON.parse(e3.data);
467
- if ("funcSpanTrackingControl" === a3.type) if (ee && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a3.enabled, timeoutSeconds: a3.timeoutSeconds, expirationTimestampMs: a3.expirationTimestampMs }), null !== ce && (window.clearTimeout(ce), ce = null), le = a3.enabled, de = false, ee && console.log("[Sailfish] Function span tracking " + (a3.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a3.enabled) {
485
+ if ("funcSpanTrackingControl" === a3.type) if (re && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a3.enabled, timeoutSeconds: a3.timeoutSeconds, expirationTimestampMs: a3.expirationTimestampMs }), null !== he && (window.clearTimeout(he), he = null), de = a3.enabled, ge = false, re && console.log("[Sailfish] Function span tracking " + (a3.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a3.enabled) {
468
486
  if (a3.expirationTimestampMs) {
469
- pe = a3.expirationTimestampMs;
470
- const e4 = Date.now(), u3 = pe - e4;
471
- ee && console.log(`[Sailfish] Server expiration timestamp: ${pe}, ms until expiration: ${u3}`), u3 > 0 ? (saveGlobalFuncSpanState(true, pe), ce = window.setTimeout(() => {
472
- de || (le = false, pe = null, clearGlobalFuncSpanState(), ee && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
473
- }, u3)) : (le = false, pe = null, clearGlobalFuncSpanState(), ee && console.log("[Sailfish] Tracking already expired, not enabling"));
487
+ me = a3.expirationTimestampMs;
488
+ const e4 = Date.now(), u3 = me - e4;
489
+ re && console.log(`[Sailfish] Server expiration timestamp: ${me}, ms until expiration: ${u3}`), u3 > 0 ? (saveGlobalFuncSpanState(true, me), he = window.setTimeout(() => {
490
+ ge || (de = false, me = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
491
+ }, u3)) : (de = false, me = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Tracking already expired, not enabling"));
474
492
  } else {
475
493
  const e4 = a3.timeoutSeconds || 3600;
476
- e4 > 0 && (pe = Date.now() + 1e3 * e4, saveGlobalFuncSpanState(true, pe), ce = window.setTimeout(() => {
477
- de || (le = false, pe = null, clearGlobalFuncSpanState(), ee && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e4}s (legacy)`));
494
+ e4 > 0 && (me = Date.now() + 1e3 * e4, saveGlobalFuncSpanState(true, me), he = window.setTimeout(() => {
495
+ ge || (de = false, me = null, clearGlobalFuncSpanState(), re && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e4}s (legacy)`));
478
496
  }, 1e3 * e4));
479
497
  }
480
498
  try {
481
499
  const e4 = getOrSetSessionId();
482
- re.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e4, enabled: true, configurationType: "global" })), ee && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e4}`);
500
+ ie.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e4, enabled: true, configurationType: "global" })), re && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e4}`);
483
501
  } catch (e4) {
484
- ee && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e4);
502
+ re && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e4);
485
503
  }
486
- } else pe = null, clearGlobalFuncSpanState();
504
+ } else me = null, clearGlobalFuncSpanState();
487
505
  } catch (e4) {
488
506
  }
489
- }), re;
507
+ }), ie;
490
508
  }
491
509
  function sendMessage(e2) {
492
510
  var _a2;
493
511
  "sessionId" in e2 || (e2.sessionId = getOrSetSessionId());
494
512
  const a2 = JSON.stringify({ ...e2, app_url: (e2 == null ? void 0 : e2.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) });
495
- if (isWebSocketOpen(re)) try {
496
- re.send(a2);
513
+ if (le || !isWebSocketOpen(ie)) saveNotifyMessageToIDB(a2);
514
+ else try {
515
+ ie.send(a2);
497
516
  } catch (e3) {
498
517
  saveNotifyMessageToIDB(a2);
499
518
  }
500
- else saveNotifyMessageToIDB(a2);
501
519
  }
502
520
  function enableFunctionSpanTracking() {
503
- if (ee && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), le && !de && (he = ce, me = pe, ee && console.log("[Sailfish] Saved global tracking state while switching to local mode")), le = true, de = true, pe = null, ce = null, isWebSocketOpen(re)) try {
504
- const e2 = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: te };
505
- re.send(JSON.stringify(e2));
521
+ if (re && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), de && !ge && (ye = he, we = me, re && console.log("[Sailfish] Saved global tracking state while switching to local mode")), de = true, ge = true, me = null, he = null, isWebSocketOpen(ie)) try {
522
+ const e2 = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: oe };
523
+ ie.send(JSON.stringify(e2));
506
524
  } catch (e2) {
507
525
  console.error("[FUNCSPAN START] ✗ Failed to send tracking session report:", e2);
508
526
  }
509
- else ee && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
527
+ else re && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
510
528
  }
511
529
  function disableFunctionSpanTracking() {
512
- if (ee && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(re)) try {
513
- const e2 = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: te };
514
- re.send(JSON.stringify(e2));
530
+ if (re && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(ie)) try {
531
+ const e2 = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: oe };
532
+ ie.send(JSON.stringify(e2));
515
533
  } catch (e2) {
516
534
  console.error("[FUNCSPAN STOP] ✗ Failed to send tracking stop report:", e2);
517
535
  }
518
536
  else console.warn("[FUNCSPAN STOP] ✗ WebSocket not open, cannot notify tracking end");
519
- de && (de = false, null !== he || null !== me ? (le = true, pe = me, ce = he, ee && console.log("[Sailfish] LOCAL tracking mode disabled, restored GLOBAL tracking state"), he = null, me = null) : (le = false, pe = null, ce = null, ee && console.log("[Sailfish] LOCAL tracking mode disabled, no global tracking to restore")));
537
+ ge && (ge = false, null !== ye || null !== we ? (de = true, me = we, he = ye, re && console.log("[Sailfish] LOCAL tracking mode disabled, restored GLOBAL tracking state"), ye = null, we = null) : (de = false, me = null, he = null, re && console.log("[Sailfish] LOCAL tracking mode disabled, no global tracking to restore")));
520
538
  }
521
539
  function isFunctionSpanTrackingEnabled() {
522
- return le;
540
+ return de;
523
541
  }
524
542
  function getFuncSpanHeader() {
525
- if (!le) return null;
526
- if (null !== pe) {
527
- if (Date.now() >= pe) return le = false, pe = null, ee && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
543
+ if (!de) return null;
544
+ if (null !== me) {
545
+ if (Date.now() >= me) return de = false, me = null, re && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
528
546
  }
529
547
  return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-0-5-5-0-1.0" };
530
548
  }
@@ -532,34 +550,34 @@
532
550
  const e2 = (function loadGlobalFuncSpanState() {
533
551
  try {
534
552
  if ("undefined" == typeof localStorage) return null;
535
- const e3 = localStorage.getItem(ne);
553
+ const e3 = localStorage.getItem(se);
536
554
  if (!e3) return null;
537
555
  const a2 = JSON.parse(e3);
538
- return a2.enabled && a2.expirationTimestampMs && Date.now() >= a2.expirationTimestampMs ? (ee && console.log("[Sailfish] Stored global function span state has expired, clearing"), localStorage.removeItem(ne), null) : (ee && console.log("[Sailfish] Loaded global function span state from localStorage:", a2), a2);
556
+ return a2.enabled && a2.expirationTimestampMs && Date.now() >= a2.expirationTimestampMs ? (re && console.log("[Sailfish] Stored global function span state has expired, clearing"), localStorage.removeItem(se), null) : (re && console.log("[Sailfish] Loaded global function span state from localStorage:", a2), a2);
539
557
  } catch (e3) {
540
- return ee && console.warn("[Sailfish] Failed to load global function span state from localStorage:", e3), null;
558
+ return re && console.warn("[Sailfish] Failed to load global function span state from localStorage:", e3), null;
541
559
  }
542
560
  })();
543
- e2 && e2.enabled && (le = true, pe = e2.expirationTimestampMs, de = false, ee && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTimestampMs: pe }));
561
+ e2 && e2.enabled && (de = true, me = e2.expirationTimestampMs, ge = false, re && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTimestampMs: me }));
544
562
  })();
545
- const ge = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
546
- var ye, we, be = {}, ve = {}, Ce = {}, ke = {};
563
+ const be = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
564
+ var ve, Ce, ke = {}, xe = {}, Me = {}, Ie = {};
547
565
  function requireBase64() {
548
- if (ye) return ke;
549
- ye = 1;
566
+ if (ve) return Ie;
567
+ ve = 1;
550
568
  var e2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
551
- return ke.encode = function(a2) {
569
+ return Ie.encode = function(a2) {
552
570
  if (0 <= a2 && a2 < e2.length) return e2[a2];
553
571
  throw new TypeError("Must be between 0 and 63: " + a2);
554
- }, ke.decode = function(e3) {
572
+ }, Ie.decode = function(e3) {
555
573
  return 65 <= e3 && e3 <= 90 ? e3 - 65 : 97 <= e3 && e3 <= 122 ? e3 - 97 + 26 : 48 <= e3 && e3 <= 57 ? e3 - 48 + 52 : 43 == e3 ? 62 : 47 == e3 ? 63 : -1;
556
- }, ke;
574
+ }, Ie;
557
575
  }
558
576
  function requireBase64Vlq() {
559
- if (we) return Ce;
560
- we = 1;
577
+ if (Ce) return Me;
578
+ Ce = 1;
561
579
  var e2 = requireBase64();
562
- return Ce.encode = function base64VLQ_encode(a2) {
580
+ return Me.encode = function base64VLQ_encode(a2) {
563
581
  var u2, m2 = "", w2 = (function toVLQSigned(e3) {
564
582
  return e3 < 0 ? 1 + (-e3 << 1) : 0 + (e3 << 1);
565
583
  })(a2);
@@ -567,7 +585,7 @@
567
585
  u2 = 31 & w2, (w2 >>>= 5) > 0 && (u2 |= 32), m2 += e2.encode(u2);
568
586
  } while (w2 > 0);
569
587
  return m2;
570
- }, Ce.decode = function base64VLQ_decode(a2, u2, m2) {
588
+ }, Me.decode = function base64VLQ_decode(a2, u2, m2) {
571
589
  var w2, b2, C2 = a2.length, x2 = 0, I2 = 0;
572
590
  do {
573
591
  if (u2 >= C2) throw new Error("Expected more digits in base 64 VLQ value.");
@@ -578,11 +596,11 @@
578
596
  var a3 = e3 >> 1;
579
597
  return 1 & ~e3 ? a3 : -a3;
580
598
  })(x2), m2.rest = u2;
581
- }, Ce;
599
+ }, Me;
582
600
  }
583
- var xe, Me = {};
601
+ var Oe, Ee = {};
584
602
  function requireUtil() {
585
- return xe || (xe = 1, (function(e2) {
603
+ return Oe || (Oe = 1, (function(e2) {
586
604
  e2.getArg = function getArg(e3, a3, u3) {
587
605
  if (a3 in e3) return e3[a3];
588
606
  if (3 === arguments.length) return u3;
@@ -694,12 +712,12 @@
694
712
  }
695
713
  return m2(a3);
696
714
  };
697
- })(Me)), Me;
715
+ })(Ee)), Ee;
698
716
  }
699
- var Ie, Oe = {};
717
+ var Le, Ae = {};
700
718
  function requireArraySet() {
701
- if (Ie) return Oe;
702
- Ie = 1;
719
+ if (Le) return Ae;
720
+ Le = 1;
703
721
  var e2 = requireUtil(), a2 = Object.prototype.hasOwnProperty, u2 = "undefined" != typeof Map;
704
722
  function ArraySet() {
705
723
  this._array = [], this._set = u2 ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
@@ -730,12 +748,12 @@
730
748
  throw new Error("No element indexed by " + e3);
731
749
  }, ArraySet.prototype.toArray = function ArraySet_toArray() {
732
750
  return this._array.slice();
733
- }, Oe.ArraySet = ArraySet, Oe;
751
+ }, Ae.ArraySet = ArraySet, Ae;
734
752
  }
735
- var Ee, Le, Ae = {};
753
+ var Te, De, Ue = {};
736
754
  function requireMappingList() {
737
- if (Ee) return Ae;
738
- Ee = 1;
755
+ if (Te) return Ue;
756
+ Te = 1;
739
757
  var e2 = requireUtil();
740
758
  function MappingList() {
741
759
  this._array = [], this._sorted = true, this._last = { generatedLine: -1, generatedColumn: 0 };
@@ -749,11 +767,11 @@
749
767
  })(this._last, a2) ? (this._sorted = false, this._array.push(a2)) : (this._last = a2, this._array.push(a2));
750
768
  }, MappingList.prototype.toArray = function MappingList_toArray() {
751
769
  return this._sorted || (this._array.sort(e2.compareByGeneratedPositionsInflated), this._sorted = true), this._array;
752
- }, Ae.MappingList = MappingList, Ae;
770
+ }, Ue.MappingList = MappingList, Ue;
753
771
  }
754
772
  function requireSourceMapGenerator() {
755
- if (Le) return ve;
756
- Le = 1;
773
+ if (De) return xe;
774
+ De = 1;
757
775
  var e2 = requireBase64Vlq(), a2 = requireUtil(), u2 = requireArraySet().ArraySet, m2 = requireMappingList().MappingList;
758
776
  function SourceMapGenerator(e3) {
759
777
  e3 || (e3 = {}), this._file = a2.getArg(e3, "file", null), this._sourceRoot = a2.getArg(e3, "sourceRoot", null), this._skipValidation = a2.getArg(e3, "skipValidation", false), this._ignoreInvalidMapping = a2.getArg(e3, "ignoreInvalidMapping", false), this._sources = new u2(), this._names = new u2(), this._mappings = new m2(), this._sourcesContents = null;
@@ -830,11 +848,11 @@
830
848
  return null != this._file && (e3.file = this._file), null != this._sourceRoot && (e3.sourceRoot = this._sourceRoot), this._sourcesContents && (e3.sourcesContent = this._generateSourcesContent(e3.sources, e3.sourceRoot)), e3;
831
849
  }, SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
832
850
  return JSON.stringify(this.toJSON());
833
- }, ve.SourceMapGenerator = SourceMapGenerator, ve;
851
+ }, xe.SourceMapGenerator = SourceMapGenerator, xe;
834
852
  }
835
- var Te, De = {}, Ue = {};
853
+ var Be, je = {}, Ge = {};
836
854
  function requireBinarySearch() {
837
- return Te || (Te = 1, (function(e2) {
855
+ return Be || (Be = 1, (function(e2) {
838
856
  function recursiveSearch(a2, u2, m2, w2, b2, C2) {
839
857
  var x2 = Math.floor((u2 - a2) / 2) + a2, I2 = b2(m2, w2[x2], true);
840
858
  return 0 === I2 ? x2 : I2 > 0 ? u2 - x2 > 1 ? recursiveSearch(x2, u2, m2, w2, b2, C2) : C2 == e2.LEAST_UPPER_BOUND ? u2 < w2.length ? u2 : -1 : x2 : x2 - a2 > 1 ? recursiveSearch(a2, x2, m2, w2, b2, C2) : C2 == e2.LEAST_UPPER_BOUND ? x2 : a2 < 0 ? -1 : a2;
@@ -846,11 +864,11 @@
846
864
  for (; b2 - 1 >= 0 && 0 === m2(u2[b2], u2[b2 - 1], true); ) --b2;
847
865
  return b2;
848
866
  };
849
- })(Ue)), Ue;
867
+ })(Ge)), Ge;
850
868
  }
851
- var Be, je, Ge = {};
869
+ var Ve, qe, He = {};
852
870
  function requireQuickSort() {
853
- if (Be) return Ge;
871
+ if (Ve) return He;
854
872
  function SortTemplate(e3) {
855
873
  function swap(e4, a2, u2) {
856
874
  var m2 = e4[a2];
@@ -869,21 +887,21 @@
869
887
  }
870
888
  };
871
889
  }
872
- Be = 1;
890
+ Ve = 1;
873
891
  let e2 = /* @__PURE__ */ new WeakMap();
874
- return Ge.quickSort = function(a2, u2, m2 = 0) {
892
+ return He.quickSort = function(a2, u2, m2 = 0) {
875
893
  let w2 = e2.get(u2);
876
894
  void 0 === w2 && (w2 = (function cloneSort(e3) {
877
895
  let a3 = SortTemplate.toString();
878
896
  return new Function(`return ${a3}`)()(e3);
879
897
  })(u2), e2.set(u2, w2)), w2(a2, u2, m2, a2.length - 1);
880
- }, Ge;
898
+ }, He;
881
899
  }
882
- var Ve, qe, He = {};
883
- var Je = (function requireSourceMap() {
884
- return qe || (qe = 1, be.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, be.SourceMapConsumer = (function requireSourceMapConsumer() {
885
- if (je) return De;
886
- je = 1;
900
+ var Je, Ye, Xe = {};
901
+ var Qe = (function requireSourceMap() {
902
+ return Ye || (Ye = 1, ke.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, ke.SourceMapConsumer = (function requireSourceMapConsumer() {
903
+ if (qe) return je;
904
+ qe = 1;
887
905
  var e2 = requireUtil(), a2 = requireBinarySearch(), u2 = requireArraySet().ArraySet, m2 = requireBase64Vlq(), w2 = requireQuickSort().quickSort;
888
906
  function SourceMapConsumer(a3, u3) {
889
907
  var m3 = a3;
@@ -940,7 +958,7 @@
940
958
  else for (var _2 = x2.originalColumn; x2 && x2.originalLine === m3 && x2.originalColumn == _2; ) b3.push({ line: e2.getArg(x2, "generatedLine", null), column: e2.getArg(x2, "generatedColumn", null), lastColumn: e2.getArg(x2, "lastGeneratedColumn", null) }), x2 = this._originalMappings[++C2];
941
959
  }
942
960
  return b3;
943
- }, De.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a3) {
961
+ }, je.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a3) {
944
962
  var u3, m3 = a3;
945
963
  if (null != this.sourceRoot && (m3 = e2.relative(this.sourceRoot, m3)), this._sources.has(m3)) return this._sources.indexOf(m3);
946
964
  for (u3 = 0; u3 < this._absoluteSources.length; ++u3) if (this._absoluteSources[u3] == a3) return u3;
@@ -1057,7 +1075,7 @@
1057
1075
  if (b3.source === m3.source) return { line: e2.getArg(b3, "generatedLine", null), column: e2.getArg(b3, "generatedColumn", null), lastColumn: e2.getArg(b3, "lastGeneratedColumn", null) };
1058
1076
  }
1059
1077
  return { line: null, column: null, lastColumn: null };
1060
- }, De.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1078
+ }, je.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1061
1079
  for (var e3 = [], a3 = 0; a3 < this._sections.length; a3++) for (var u3 = 0; u3 < this._sections[a3].consumer.sources.length; u3++) e3.push(this._sections[a3].consumer.sources[u3]);
1062
1080
  return e3;
1063
1081
  } }), IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(u3) {
@@ -1096,10 +1114,10 @@
1096
1114
  this.__generatedMappings.push(E2), "number" == typeof E2.originalLine && this.__originalMappings.push(E2);
1097
1115
  }
1098
1116
  w2(this.__generatedMappings, e2.compareByGeneratedPositionsDeflated), w2(this.__originalMappings, e2.compareByOriginalPositions);
1099
- }, De.IndexedSourceMapConsumer = IndexedSourceMapConsumer, De;
1100
- })().SourceMapConsumer, be.SourceNode = (function requireSourceNode() {
1101
- if (Ve) return He;
1102
- Ve = 1;
1117
+ }, je.IndexedSourceMapConsumer = IndexedSourceMapConsumer, je;
1118
+ })().SourceMapConsumer, ke.SourceNode = (function requireSourceNode() {
1119
+ if (Je) return Xe;
1120
+ Je = 1;
1103
1121
  var e2 = requireSourceMapGenerator().SourceMapGenerator, a2 = requireUtil(), u2 = /(\r?\n)/, m2 = "$$$isSourceNode$$$";
1104
1122
  function SourceNode(e3, a3, u3, w2, b2) {
1105
1123
  this.children = [], this.sourceContents = {}, this.line = null == e3 ? null : e3, this.column = null == a3 ? null : a3, this.source = null == u3 ? null : u3, this.name = null == b2 ? null : b2, this[m2] = true, null != w2 && this.add(w2);
@@ -1183,20 +1201,20 @@
1183
1201
  }), this.walkSourceContents(function(e3, a4) {
1184
1202
  m3.setSourceContent(e3, a4);
1185
1203
  }), { code: u3.code, map: m3 };
1186
- }, He.SourceNode = SourceNode, He;
1187
- })().SourceNode), be;
1204
+ }, Xe.SourceNode = SourceNode, Xe;
1205
+ })().SourceNode), ke;
1188
1206
  })();
1189
- const Ye = /* @__PURE__ */ new Map(), Xe = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1207
+ const et = /* @__PURE__ */ new Map(), nt = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1190
1208
  async function getConsumerFor(e2, a2) {
1191
1209
  const u2 = (e2 || `/assets/${a2}`).split("?")[0], m2 = [`${u2}.map`, u2.replace(/\.js$/, ".js.map"), `/assets/${a2}.map`];
1192
1210
  for (const e3 of m2) try {
1193
- if (Ye.has(e3)) return Ye.get(e3);
1211
+ if (et.has(e3)) return et.get(e3);
1194
1212
  const a3 = await fetch(e3);
1195
1213
  if (!a3.ok) continue;
1196
1214
  const u3 = await a3.json();
1197
1215
  if (!u3 || !u3.mappings || !u3.sources) continue;
1198
- const m3 = await new Je.SourceMapConsumer(u3);
1199
- return Ye.set(e3, m3), m3;
1216
+ const m3 = await new Qe.SourceMapConsumer(u3);
1217
+ return et.set(e3, m3), m3;
1200
1218
  } catch {
1201
1219
  }
1202
1220
  return null;
@@ -1208,7 +1226,7 @@
1208
1226
  if (!e3) return ["No stack trace available"];
1209
1227
  const a3 = Array.isArray(e3) ? e3 : e3.split("\n"), u3 = [];
1210
1228
  for (const e4 of a3) {
1211
- const a4 = e4.match(Xe);
1229
+ const a4 = e4.match(nt);
1212
1230
  if (!a4) {
1213
1231
  u3.push(e4);
1214
1232
  continue;
@@ -1223,8 +1241,8 @@
1223
1241
  u3.push(`${e4} [No source map found for ${w3}]`);
1224
1242
  continue;
1225
1243
  }
1226
- let O2 = _2.originalPositionFor({ line: x3, column: I2, bias: Je.SourceMapConsumer.GREATEST_LOWER_BOUND });
1227
- if (!O2.source || null == O2.line) for (let e5 = 1; e5 <= 20 && (O2 = _2.originalPositionFor({ line: x3, column: Math.max(0, I2 - e5), bias: Je.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e5++) ;
1244
+ let O2 = _2.originalPositionFor({ line: x3, column: I2, bias: Qe.SourceMapConsumer.GREATEST_LOWER_BOUND });
1245
+ if (!O2.source || null == O2.line) for (let e5 = 1; e5 <= 20 && (O2 = _2.originalPositionFor({ line: x3, column: Math.max(0, I2 - e5), bias: Qe.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e5++) ;
1228
1246
  if (O2.source && null != O2.line) {
1229
1247
  const e5 = O2.name || "anonymous";
1230
1248
  u3.push(`${O2.source}:${O2.line}:${O2.column ?? 0} (${e5})`);
@@ -1234,11 +1252,11 @@
1234
1252
  })(m2), b2 = w2.filter((e3) => !e3.includes("chunk-") && !e3.includes("react-dom")), C2 = b2.length > 0 ? b2 : w2, x2 = Date.now();
1235
1253
  sendMessage({ type: "event", event: { type: 6, timestamp: x2, data: { payload: { message: u2, stack: m2, trace: C2, filteredStack: b2, userAgent: navigator.userAgent, url: window.location.href, timestamp: x2, level: "error" } } } });
1236
1254
  }
1237
- const Qe = readDebugFlag();
1238
- const et = readDebugFlag();
1255
+ const ot = readDebugFlag();
1256
+ const st = readDebugFlag();
1239
1257
  function sendGraphQLRequest(e2, a2, u2, m2 = 5, w2 = 2e3, b2 = 2) {
1240
1258
  const C2 = `${u2.backendApi}/graphql/?apiKey=${u2.apiKey}`;
1241
- return et && console.log(`Initial GraphQL request for ${e2} at ${C2}`), (function exponentialBackoff(e3, a3, u3 = 5, m3 = 2e3, w3 = 2) {
1259
+ return st && console.log(`Initial GraphQL request for ${e2} at ${C2}`), (function exponentialBackoff(e3, a3, u3 = 5, m3 = 2e3, w3 = 2) {
1242
1260
  let b3 = 0;
1243
1261
  const attemptRequest = async () => {
1244
1262
  try {
@@ -1246,12 +1264,12 @@
1246
1264
  } catch (e4) {
1247
1265
  if (b3++, b3 > u3) throw e4;
1248
1266
  const C3 = m3 * Math.pow(w3, b3 - 1);
1249
- return Qe && console.log(`Attempt ${b3} failed: ${a3}; Retrying in ${C3}ms...`), await new Promise((e5) => setTimeout(e5, C3)), attemptRequest();
1267
+ return ot && console.log(`Attempt ${b3} failed: ${a3}; Retrying in ${C3}ms...`), await new Promise((e5) => setTimeout(e5, C3)), attemptRequest();
1250
1268
  }
1251
1269
  };
1252
1270
  return attemptRequest();
1253
1271
  })(() => fetch(C2, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ operationName: e2, query: a2, variables: u2 }) }).then((e3) => {
1254
- if (et && console.log(`Received response with status: ${e3.status}`), !e3.ok) throw new Error(`GraphQL request failed with status ${e3.status}`);
1272
+ if (st && console.log(`Received response with status: ${e3.status}`), !e3.ok) throw new Error(`GraphQL request failed with status ${e3.status}`);
1255
1273
  return e3.json();
1256
1274
  }), "Sending GraphQL request to Sailfish AI", m2, w2, b2);
1257
1275
  }
@@ -1267,9 +1285,9 @@
1267
1285
  function createTriageFromRecorder(e2, a2, u2, m2, w2, b2) {
1268
1286
  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: e2, recordingSessionId: u2, timestampStart: m2, timestampEnd: w2, description: b2, backendApi: a2 });
1269
1287
  }
1270
- const nt = { enabled: false, openModalExistingMode: { key: "e", requireCmdCtrl: false }, openModalCaptureNewMode: { key: "n", requireCmdCtrl: false }, closeModal: { key: "escape", requireCmdCtrl: false }, submitReport: { key: "enter", requireCmdCtrl: true }, startRecording: { key: "r", requireCmdCtrl: false }, stopRecording: { key: "escape", requireCmdCtrl: true } }, ot = { shortcuts: { ...nt }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1288
+ const it = { 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 } }, at = { shortcuts: { ...it }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1271
1289
  } };
1272
- let st = null, it = { mode: "lookback", description: "" }, at = null, lt = null, ct = null, ut = false;
1290
+ let lt = null, ct = { mode: "lookback", description: "" }, ut = null, pt = null, dt = null, ht = false;
1273
1291
  function getShortcutKeyCmdCtrlLabel() {
1274
1292
  return (function isMacPlatform() {
1275
1293
  const e2 = navigator.userAgentData;
@@ -1282,11 +1300,11 @@
1282
1300
  return e3.requireCmdCtrl && a2.push(getShortcutKeyCmdCtrlLabel()), a2.push((function formatShortcutKeyLabel(e4) {
1283
1301
  return ({ escape: "esc" }[e4.toLowerCase()] || e4).toUpperCase();
1284
1302
  })(e3.key)), a2.map((e4) => `<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;">${e4}</span>`).join(e3.requireCmdCtrl ? " + " : "");
1285
- })(ot.shortcuts[e2]);
1303
+ })(at.shortcuts[e2]);
1286
1304
  }
1287
1305
  function setupIssueReporting(e2) {
1288
- ot.apiKey = e2.apiKey, ot.backendApi = e2.backendApi, ot.resolveSessionId = e2.getSessionId, e2.customBaseUrl && (ot.triageBaseUrl = e2.customBaseUrl), ot.shortcuts = (function mergeShortcutsConfig(e3) {
1289
- const a3 = { ...nt };
1306
+ at.apiKey = e2.apiKey, at.backendApi = e2.backendApi, at.resolveSessionId = e2.getSessionId, e2.customBaseUrl && (at.triageBaseUrl = e2.customBaseUrl), at.shortcuts = (function mergeShortcutsConfig(e3) {
1307
+ const a3 = { ...it };
1290
1308
  if (!e3) return a3;
1291
1309
  "boolean" == typeof e3.enabled && (a3.enabled = e3.enabled);
1292
1310
  const u2 = ["openModalExistingMode", "openModalCaptureNewMode", "closeModal", "submitReport", "startRecording", "stopRecording"];
@@ -1296,7 +1314,7 @@
1296
1314
  }
1297
1315
  return a3;
1298
1316
  })(e2.shortcuts);
1299
- const { shortcuts: a2 } = ot;
1317
+ const { shortcuts: a2 } = at;
1300
1318
  window.addEventListener("keydown", (e3) => {
1301
1319
  const u2 = (function isTypingInInput() {
1302
1320
  const e4 = document.activeElement;
@@ -1306,20 +1324,20 @@
1306
1324
  } : injectModalHTML;
1307
1325
  if (C2 && shortcutUsed("openModalExistingMode")) return e3.preventDefault(), void x2("lookback");
1308
1326
  if (C2 && shortcutUsed("openModalCaptureNewMode")) return e3.preventDefault(), void x2("startnow");
1309
- if (b2 && !ut && shortcutUsed("closeModal")) return e3.preventDefault(), void closeModal();
1327
+ if (b2 && !ht && shortcutUsed("closeModal")) return e3.preventDefault(), void closeModal();
1310
1328
  if (b2 && shortcutUsed("submitReport")) {
1311
1329
  const a3 = document.getElementById("sf-issue-submit-btn");
1312
1330
  return void (a3 && !a3.disabled && (e3.preventDefault(), a3.click()));
1313
1331
  }
1314
- if (ut && m2 === a2.stopRecording.key && w2 === a2.stopRecording.requireCmdCtrl) return e3.preventDefault(), void stopRecording();
1315
- if (b2 && "startnow" === it.mode && m2 === a2.startRecording.key && w2 === a2.startRecording.requireCmdCtrl && !u2) {
1332
+ if (ht && m2 === a2.stopRecording.key && w2 === a2.stopRecording.requireCmdCtrl) return e3.preventDefault(), void stopRecording();
1333
+ if (b2 && "startnow" === ct.mode && m2 === a2.startRecording.key && w2 === a2.startRecording.requireCmdCtrl && !u2) {
1316
1334
  const a3 = document.getElementById("sf-start-recording-btn");
1317
1335
  return void (a3 && (e3.preventDefault(), a3.click()));
1318
1336
  }
1319
1337
  });
1320
1338
  }
1321
1339
  function closeModal() {
1322
- ot.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (st == null ? void 0 : st.parentNode) && st.parentNode.removeChild(st), st = null, ut || (it = { mode: "lookback", description: "", occurredInThisTab: true }, at = null, lt = null), ct && clearInterval(ct);
1340
+ at.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (lt == null ? void 0 : lt.parentNode) && lt.parentNode.removeChild(lt), lt = null, ht || (ct = { mode: "lookback", description: "", occurredInThisTab: true }, ut = null, pt = null), dt && clearInterval(dt);
1323
1341
  }
1324
1342
  function activateModalIsolation(e2) {
1325
1343
  e2.setAttribute("role", "dialog"), e2.setAttribute("aria-modal", "true"), e2.hasAttribute("tabindex") || e2.setAttribute("tabindex", "-1");
@@ -1378,9 +1396,9 @@
1378
1396
  };
1379
1397
  }
1380
1398
  function injectModalHTML(e2 = "lookback") {
1381
- st && (st.remove(), st = null), st = document.createElement("div"), st.id = "sf-report-issue-modal";
1399
+ lt && (lt.remove(), lt = null), lt = document.createElement("div"), lt.id = "sf-report-issue-modal";
1382
1400
  const a2 = "startnow" === e2;
1383
- st.innerHTML = `
1401
+ lt.innerHTML = `
1384
1402
  <div style="position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9998;"></div>
1385
1403
  <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
1386
1404
  background:#fff; padding:24px; border-radius:12px;
@@ -1428,7 +1446,7 @@
1428
1446
  <textarea id="sf-issue-description" placeholder="Add description here"
1429
1447
  style="width:100%; height:80px; padding:8px 12px; font-size:14px;
1430
1448
  border:1px solid #cbd5e1; border-radius:6px; margin-bottom:20px;
1431
- resize:none; outline:none;">${it.description}</textarea>
1449
+ resize:none; outline:none;">${ct.description}</textarea>
1432
1450
 
1433
1451
  <div id="sf-lookback-container" style="display:${a2 ? "none" : "block"}; margin-bottom:20px;">
1434
1452
  <label for="sf-lookback-minutes" style="display:block; font-size:14px; font-weight:500; margin-bottom:6px;">
@@ -1516,8 +1534,8 @@
1516
1534
  <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>
1517
1535
  </div>
1518
1536
  </div>
1519
- `, it.mode = e2, document.body.appendChild(st), (function bindListeners() {
1520
- const e3 = st == null ? void 0 : st.querySelectorAll(".sf-issue-tab"), a3 = document.getElementById("sf-start-recording-btn"), u2 = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1537
+ `, ct.mode = e2, document.body.appendChild(lt), (function bindListeners() {
1538
+ const e3 = lt == null ? void 0 : lt.querySelectorAll(".sf-issue-tab"), a3 = document.getElementById("sf-start-recording-btn"), u2 = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1521
1539
  e3 == null ? void 0 : e3.forEach((e4) => {
1522
1540
  e4.addEventListener("click", (e5) => {
1523
1541
  const a4 = e5.currentTarget.dataset.mode;
@@ -1525,11 +1543,11 @@
1525
1543
  });
1526
1544
  }), u2 && (u2.onclick = closeModal);
1527
1545
  w2 && w2.addEventListener("change", () => {
1528
- "lookback" === it.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1546
+ "lookback" === ct.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1529
1547
  });
1530
1548
  a3 && (a3.onclick = () => {
1531
1549
  const e4 = document.getElementById("sf-issue-description");
1532
- e4 && (it.description = e4.value), (function startCountdownThenRecord() {
1550
+ e4 && (ct.description = e4.value), (function startCountdownThenRecord() {
1533
1551
  if (document.getElementById("sf-countdown-overlay")) return;
1534
1552
  const e5 = document.createElement("div");
1535
1553
  e5.id = "sf-countdown-overlay", e5.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 ";
@@ -1538,9 +1556,9 @@
1538
1556
  const u3 = setInterval(async () => {
1539
1557
  if (a4--, a4 > 0) e5.textContent = a4.toString();
1540
1558
  else {
1541
- clearInterval(u3), document.body.removeChild(e5), at = Date.now(), ut = true;
1559
+ clearInterval(u3), document.body.removeChild(e5), ut = Date.now(), ht = true;
1542
1560
  try {
1543
- const { enableFunctionSpanTracking: e6 } = await Promise.resolve().then(() => ge);
1561
+ const { enableFunctionSpanTracking: e6 } = await Promise.resolve().then(() => be);
1544
1562
  e6();
1545
1563
  } catch (e6) {
1546
1564
  console.error("[Report Issue] Failed to enable function span tracking:", e6);
@@ -1566,8 +1584,8 @@
1566
1584
  `, e6.addEventListener("click", () => stopRecording()), document.body.appendChild(e6);
1567
1585
  const a5 = e6.querySelector("#sf-recording-timer");
1568
1586
  if (!a5) return;
1569
- ct = setInterval(() => {
1570
- const e7 = Date.now() - (at ?? Date.now()), u4 = Math.floor(e7 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e7 % 6e4 / 1e3).toString().padStart(2, "0");
1587
+ dt = setInterval(() => {
1588
+ const e7 = Date.now() - (ut ?? Date.now()), u4 = Math.floor(e7 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e7 % 6e4 / 1e3).toString().padStart(2, "0");
1571
1589
  a5.textContent = `${u4}:${m3}`;
1572
1590
  }, 1e3);
1573
1591
  })();
@@ -1575,12 +1593,12 @@
1575
1593
  }, 1e3);
1576
1594
  })();
1577
1595
  });
1578
- st == null ? void 0 : st.addEventListener("click", (e4) => {
1596
+ lt == null ? void 0 : lt.addEventListener("click", (e4) => {
1579
1597
  var _a2;
1580
1598
  if (e4.target.closest("#sf-issue-submit-btn")) {
1581
- const e5 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a4 = it.mode;
1599
+ const e5 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a4 = ct.mode;
1582
1600
  let u3, m3;
1583
- if (it.description = e5, "startnow" === a4) u3 = at ?? Date.now() - 3e5, m3 = lt ?? Date.now();
1601
+ if (ct.description = e5, "startnow" === a4) u3 = ut ?? Date.now() - 3e5, m3 = pt ?? Date.now();
1584
1602
  else {
1585
1603
  const e6 = 60 * Number((w2 == null ? void 0 : w2.value) || "2") * 1e3;
1586
1604
  m3 = Date.now(), u3 = m3 - e6;
@@ -1589,9 +1607,9 @@
1589
1607
  var _a3, _b;
1590
1608
  try {
1591
1609
  showTriageStatusModal(true);
1592
- const m4 = await createTriageFromRecorder(ot.apiKey, ot.backendApi, (function getSessionIdSafely() {
1593
- if (!ot.resolveSessionId) throw new Error("getSessionId not defined");
1594
- return ot.resolveSessionId();
1610
+ const m4 = await createTriageFromRecorder(at.apiKey, at.backendApi, (function getSessionIdSafely() {
1611
+ if (!at.resolveSessionId) throw new Error("getSessionId not defined");
1612
+ return at.resolveSessionId();
1595
1613
  })(), e6, a5, u4), w3 = (_b = (_a3 = m4 == null ? void 0 : m4.data) == null ? void 0 : _a3.createTriageFromRecorder) == null ? void 0 : _b.id;
1596
1614
  w3 ? showTriageStatusModal(false, w3) : (console.error("No Triage ID returned from backend."), showTriageStatusModal(false, null));
1597
1615
  } catch (e7) {
@@ -1600,29 +1618,29 @@
1600
1618
  })(`${u3}`, `${m3}`, e5);
1601
1619
  }
1602
1620
  });
1603
- })(), ot.deactivateIsolation = activateModalIsolation(st);
1621
+ })(), at.deactivateIsolation = activateModalIsolation(lt);
1604
1622
  }
1605
1623
  function setActiveTab(e2) {
1606
- it.mode = e2;
1607
- const a2 = st == null ? void 0 : st.querySelector("#sf-tab-lookback"), u2 = st == null ? void 0 : st.querySelector("#sf-tab-startnow");
1624
+ ct.mode = e2;
1625
+ const a2 = lt == null ? void 0 : lt.querySelector("#sf-tab-lookback"), u2 = lt == null ? void 0 : lt.querySelector("#sf-tab-startnow");
1608
1626
  "lookback" === e2 ? (a2.style.background = "white", a2.style.color = "#0F172A", u2.style.background = "transparent", u2.style.color = "#64748B") : (u2.style.background = "white", u2.style.color = "#0F172A", a2.style.background = "transparent", a2.style.color = "#64748B");
1609
1627
  }
1610
1628
  function updateModeSpecificUI(e2) {
1611
1629
  const a2 = document.querySelector("#sf-issue-mode-info div"), u2 = 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");
1612
1630
  if (a2 && u2 && m2 && w2 && b2 && C2 && x2) if ("startnow" === e2) {
1613
1631
  m2.style.display = "block", x2.style.display = "none", C2.style.justifyContent = "space-between", a2.textContent = "I want to reproduce the issue right now.";
1614
- const e3 = null !== at && null !== lt;
1615
- if (u2.disabled = !e3, u2.style.opacity = e3 ? "1" : "0.4", u2.style.cursor = e3 ? "pointer" : "not-allowed", at && lt) {
1616
- const e4 = Math.floor((lt - at) / 1e3), a3 = String(Math.floor(e4 / 60)).padStart(2, "0"), u3 = String(e4 % 60).padStart(2, "0");
1632
+ const e3 = null !== ut && null !== pt;
1633
+ if (u2.disabled = !e3, u2.style.opacity = e3 ? "1" : "0.4", u2.style.cursor = e3 ? "pointer" : "not-allowed", ut && pt) {
1634
+ const e4 = Math.floor((pt - ut) / 1e3), a3 = String(Math.floor(e4 / 60)).padStart(2, "0"), u3 = String(e4 % 60).padStart(2, "0");
1617
1635
  w2.style.display = "block", b2.textContent = `${a3}:${u3}`;
1618
1636
  } else w2.style.display = "none";
1619
1637
  } else m2.style.display = "none", w2.style.display = "none", x2.style.display = "block", C2.style.justifyContent = "flex-end", a2.textContent = "Something already happened. Capture the past few minutes.", u2.disabled = false, u2.style.opacity = "1", u2.style.cursor = "pointer";
1620
1638
  }
1621
1639
  async function stopRecording() {
1622
1640
  var _a2;
1623
- lt = Date.now(), ut = false, ct && clearInterval(ct), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1641
+ pt = Date.now(), ht = false, dt && clearInterval(dt), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1624
1642
  try {
1625
- const { disableFunctionSpanTracking: e2 } = await Promise.resolve().then(() => ge);
1643
+ const { disableFunctionSpanTracking: e2 } = await Promise.resolve().then(() => be);
1626
1644
  e2();
1627
1645
  } catch (e2) {
1628
1646
  console.error("[Report Issue] Failed to disable function span tracking:", e2);
@@ -1635,17 +1653,17 @@
1635
1653
  a3 && (a3.textContent = "Re-record");
1636
1654
  }
1637
1655
  const a2 = document.getElementById("sf-recording-timer-label"), u2 = document.getElementById("sf-recording-timer-display");
1638
- if (a2 && u2 && at && lt) {
1639
- const e3 = Math.floor((lt - at) / 1e3), m3 = Math.floor(e3 / 60).toString().padStart(2, "0"), w3 = (e3 % 60).toString().padStart(2, "0");
1656
+ if (a2 && u2 && ut && pt) {
1657
+ const e3 = Math.floor((pt - ut) / 1e3), m3 = Math.floor(e3 / 60).toString().padStart(2, "0"), w3 = (e3 % 60).toString().padStart(2, "0");
1640
1658
  u2.textContent = `${m3}:${w3}`, a2.style.display = "block";
1641
1659
  }
1642
1660
  const m2 = document.getElementById("sf-issue-description");
1643
- m2 && (m2.value = it.description);
1661
+ m2 && (m2.value = ct.description);
1644
1662
  const w2 = document.querySelector('input[value="startnow"]');
1645
1663
  w2 && (w2.checked = true);
1646
1664
  const b2 = document.getElementById("sf-inline-record-chip"), C2 = document.getElementById("sf-inline-record-timer");
1647
1665
  if (b2 && C2) {
1648
- const e3 = Math.floor(((lt ?? 0) - (at ?? 0)) / 1e3), a3 = Math.floor(e3 / 60).toString().padStart(2, "0"), u3 = Math.floor(e3 % 60).toString().padStart(2, "0");
1666
+ const e3 = Math.floor(((pt ?? 0) - (ut ?? 0)) / 1e3), a3 = Math.floor(e3 / 60).toString().padStart(2, "0"), u3 = Math.floor(e3 % 60).toString().padStart(2, "0");
1649
1667
  C2.textContent = `${a3}:${u3}`, C2.style.color = "black", b2.style.display = "flex";
1650
1668
  }
1651
1669
  const x2 = document.getElementById("sf-issue-submit-btn");
@@ -1658,7 +1676,7 @@
1658
1676
  var _a3, _b;
1659
1677
  (_a3 = document.getElementById("sf-report-issue-modal")) == null ? void 0 : _a3.remove(), (_b = document.getElementById("sf-triage-status-modal")) == null ? void 0 : _b.remove();
1660
1678
  })();
1661
- const u2 = a2 ? `${ot.triageBaseUrl}/triage/${a2}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1679
+ const u2 = a2 ? `${at.triageBaseUrl}/triage/${a2}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1662
1680
  m2.id = "sf-triage-status-modal", Object.assign(m2.style, { position: "fixed", inset: "0", zIndex: "9998", display: "flex", alignItems: "center", justifyContent: "center" });
1663
1681
  const w2 = e2 ? "Reporting Issue..." : "Issue reported!", b2 = e2 ? '<p style="font-size:14px; color:#64748b; line-height:20px;">This may take ~10 seconds</p>' : "", C2 = e2 ? '<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 = e2 ? "" : '<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>';
1664
1682
  m2.innerHTML = `
@@ -1720,7 +1738,7 @@
1720
1738
  function fadeCardAndRemove(e2, a2, u2 = 300) {
1721
1739
  a2.style.opacity = "0", a2.addEventListener("transitionend", () => e2.remove(), { once: true }), setTimeout(() => e2.remove(), u2 + 100);
1722
1740
  }
1723
- var pt = Object.defineProperty, b$1 = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? pt(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2), dt = Object.defineProperty, xn = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? dt(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2), ht = ((e2) => (e2[e2.Document = 0] = "Document", e2[e2.DocumentType = 1] = "DocumentType", e2[e2.Element = 2] = "Element", e2[e2.Text = 3] = "Text", e2[e2.CDATA = 4] = "CDATA", e2[e2.Comment = 5] = "Comment", e2))(ht || {});
1741
+ var gt = Object.defineProperty, b$1 = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? gt(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2), yt = Object.defineProperty, xn = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? yt(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2), wt = ((e2) => (e2[e2.Document = 0] = "Document", e2[e2.DocumentType = 1] = "DocumentType", e2[e2.Element = 2] = "Element", e2[e2.Text = 3] = "Text", e2[e2.CDATA = 4] = "CDATA", e2[e2.Comment = 5] = "Comment", e2))(wt || {});
1724
1742
  function vr(e2) {
1725
1743
  return e2.nodeType === e2.ELEMENT_NODE;
1726
1744
  }
@@ -1762,7 +1780,7 @@
1762
1780
  })(e2.cssText);
1763
1781
  return a2 || e2.cssText;
1764
1782
  }
1765
- let gt = class {
1783
+ let St = class {
1766
1784
  constructor() {
1767
1785
  xn(this, "idNodeMap", /* @__PURE__ */ new Map()), xn(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
1768
1786
  }
@@ -1814,7 +1832,7 @@
1814
1832
  function fe(e2) {
1815
1833
  return e2.toLowerCase();
1816
1834
  }
1817
- const yt = "__rrweb_original__";
1835
+ const bt = "__rrweb_original__";
1818
1836
  function Yt(e2) {
1819
1837
  const a2 = e2.type;
1820
1838
  return e2.hasAttribute("data-rr-is-password") ? "password" : a2 ? fe(a2) : null;
@@ -1829,19 +1847,19 @@
1829
1847
  const m2 = u2.pathname.match(/\.([0-9a-z]+)(?:$)/i);
1830
1848
  return (null == m2 ? void 0 : m2[1]) ?? null;
1831
1849
  }
1832
- let wt = 1;
1833
- const St = new RegExp("[^a-z0-9-_:]");
1850
+ let vt = 1;
1851
+ const Ct = new RegExp("[^a-z0-9-_:]");
1834
1852
  function Ir() {
1835
- return wt++;
1853
+ return vt++;
1836
1854
  }
1837
- let bt, vt;
1838
- const Ct = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, kt = /^(?:[a-z+]+:)?\/\//i, xt = /^www\..*/i, Mt = /^(data:)([^,]*),(.*)/i;
1855
+ let kt, xt;
1856
+ const Mt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, It = /^(?:[a-z+]+:)?\/\//i, Et = /^www\..*/i, Lt = /^(data:)([^,]*),(.*)/i;
1839
1857
  function Pt(e2, a2) {
1840
- return (e2 || "").replace(Ct, (e3, u2, m2, w2, b2, C2) => {
1858
+ return (e2 || "").replace(Mt, (e3, u2, m2, w2, b2, C2) => {
1841
1859
  const x2 = m2 || b2 || C2, I2 = u2 || w2 || "";
1842
1860
  if (!x2) return e3;
1843
- if (kt.test(x2) || xt.test(x2)) return `url(${I2}${x2}${I2})`;
1844
- if (Mt.test(x2)) return `url(${I2}${x2}${I2})`;
1861
+ if (It.test(x2) || Et.test(x2)) return `url(${I2}${x2}${I2})`;
1862
+ if (Lt.test(x2)) return `url(${I2}${x2}${I2})`;
1845
1863
  if ("/" === x2[0]) return `url(${I2}${(function Ei(e4) {
1846
1864
  let a3 = "";
1847
1865
  return a3 = e4.indexOf("//") > -1 ? e4.split("/").slice(0, 3).join("/") : e4.split("/")[0], a3 = a3.split("?")[0], a3;
@@ -1852,8 +1870,8 @@
1852
1870
  return `url(${I2}${_2.join("/")}${I2})`;
1853
1871
  });
1854
1872
  }
1855
- const It = /^[^ \t\n\r\u000c]+/, Et = /^[, \t\n\r\u000c]+/;
1856
- const Lt = /* @__PURE__ */ new WeakMap();
1873
+ const Rt = /^[^ \t\n\r\u000c]+/, Dt = /^[, \t\n\r\u000c]+/;
1874
+ const Ft = /* @__PURE__ */ new WeakMap();
1857
1875
  function At(e2, a2) {
1858
1876
  return a2 && "" !== a2.trim() ? $t(e2, a2) : a2;
1859
1877
  }
@@ -1861,8 +1879,8 @@
1861
1879
  return !("svg" !== e2.tagName && !e2.ownerSVGElement);
1862
1880
  }
1863
1881
  function $t(e2, a2) {
1864
- let u2 = Lt.get(e2);
1865
- if (u2 || (u2 = e2.createElement("a"), Lt.set(e2, u2)), a2) {
1882
+ let u2 = Ft.get(e2);
1883
+ if (u2 || (u2 = e2.createElement("a"), Ft.set(e2, u2)), a2) {
1866
1884
  if (a2.startsWith("blob:") || a2.startsWith("data:")) return a2;
1867
1885
  } else a2 = "";
1868
1886
  return u2.setAttribute("href", a2), u2.href;
@@ -1877,8 +1895,8 @@
1877
1895
  return w2 ? (m4 = w2[0], u3 += m4.length, m4) : "";
1878
1896
  }
1879
1897
  const m3 = [];
1880
- for (; n(Et), !(u3 >= a3.length); ) {
1881
- let w2 = n(It);
1898
+ for (; n(Dt), !(u3 >= a3.length); ) {
1899
+ let w2 = n(Rt);
1882
1900
  if ("," === w2.slice(-1)) w2 = At(e3, w2.substring(0, w2.length - 1)), m3.push(w2);
1883
1901
  else {
1884
1902
  let b2 = "";
@@ -1948,9 +1966,9 @@
1948
1966
  })(u2, m2);
1949
1967
  switch (e2.nodeType) {
1950
1968
  case e2.DOCUMENT_NODE:
1951
- return "CSS1Compat" !== e2.compatMode ? { type: ht.Document, childNodes: [], compatMode: e2.compatMode } : { type: ht.Document, childNodes: [] };
1969
+ return "CSS1Compat" !== e2.compatMode ? { type: wt.Document, childNodes: [], compatMode: e2.compatMode } : { type: wt.Document, childNodes: [] };
1952
1970
  case e2.DOCUMENT_TYPE_NODE:
1953
- return { type: ht.DocumentType, name: e2.name, publicId: e2.publicId, systemId: e2.systemId, rootId: $2 };
1971
+ return { type: wt.DocumentType, name: e2.name, publicId: e2.publicId, systemId: e2.systemId, rootId: $2 };
1954
1972
  case e2.ELEMENT_NODE:
1955
1973
  return (function Vi(e3, a3) {
1956
1974
  const { doc: u3, blockClass: m3, blockSelector: w3, inlineStylesheet: b3, maskInputOptions: C3 = {}, maskInputFn: x3, dataURLOptions: I3 = {}, inlineImages: _3, recordCanvas: O3, keepIframeSrcFn: E3, newlyAddedElement: D3 = false, rootId: F3 } = a3, U3 = (function Ui(e4, a4, u4) {
@@ -1968,7 +1986,7 @@
1968
1986
  })(e3, m3, w3), B3 = (function Oi(e4) {
1969
1987
  if (e4 instanceof HTMLFormElement) return "form";
1970
1988
  const a4 = fe(e4.tagName);
1971
- return St.test(a4) ? "div" : a4;
1989
+ return Ct.test(a4) ? "div" : a4;
1972
1990
  })(e3);
1973
1991
  let $3 = {};
1974
1992
  const z2 = e3.attributes.length;
@@ -1997,7 +2015,7 @@
1997
2015
  const a4 = e4.getContext("2d");
1998
2016
  if (!a4) return true;
1999
2017
  for (let u4 = 0; u4 < e4.width; u4 += 50) for (let m4 = 0; m4 < e4.height; m4 += 50) {
2000
- const w4 = a4.getImageData, b4 = yt in w4 ? w4[yt] : w4;
2018
+ const w4 = a4.getImageData, b4 = bt in w4 ? w4[bt] : w4;
2001
2019
  if (new Uint32Array(b4.call(a4, u4, m4, Math.min(50, e4.width - u4), Math.min(50, e4.height - m4)).data.buffer).some((e5) => 0 !== e5)) return false;
2002
2020
  }
2003
2021
  return true;
@@ -2009,11 +2027,11 @@
2009
2027
  }
2010
2028
  }
2011
2029
  if ("img" === B3 && _3) {
2012
- bt || (bt = u3.createElement("canvas"), vt = bt.getContext("2d"));
2030
+ kt || (kt = u3.createElement("canvas"), xt = kt.getContext("2d"));
2013
2031
  const a4 = e3, m4 = a4.currentSrc || a4.getAttribute("src") || "<unknown-src>", w4 = a4.crossOrigin, A = () => {
2014
2032
  a4.removeEventListener("load", A);
2015
2033
  try {
2016
- bt.width = a4.naturalWidth, bt.height = a4.naturalHeight, vt.drawImage(a4, 0, 0), $3.rr_dataURL = bt.toDataURL(I3.type, I3.quality);
2034
+ kt.width = a4.naturalWidth, kt.height = a4.naturalHeight, xt.drawImage(a4, 0, 0), $3.rr_dataURL = kt.toDataURL(I3.type, I3.quality);
2017
2035
  } catch (e4) {
2018
2036
  if ("anonymous" !== a4.crossOrigin) return a4.crossOrigin = "anonymous", void (a4.complete && 0 !== a4.naturalWidth ? A() : a4.addEventListener("load", A));
2019
2037
  console.warn(`Cannot inline img src=${m4}! Error: ${e4}`);
@@ -2036,7 +2054,7 @@
2036
2054
  customElements.get(B3) && (j2 = true);
2037
2055
  } catch {
2038
2056
  }
2039
- return { type: ht.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e3) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2057
+ return { type: wt.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e3) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2040
2058
  })(e2, { doc: u2, blockClass: w2, blockSelector: b2, inlineStylesheet: x2, maskInputOptions: I2, maskInputFn: O2, dataURLOptions: E2, inlineImages: D2, recordCanvas: F2, keepIframeSrcFn: U2, newlyAddedElement: B2, rootId: $2 });
2041
2059
  case e2.TEXT_NODE:
2042
2060
  return (function ji(e3, a3) {
@@ -2052,12 +2070,12 @@
2052
2070
  }
2053
2071
  x3 = Pt(x3, $t(a3.doc));
2054
2072
  }
2055
- return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e3.parentElement) : x3.replace(/[\S]/g, "*")), { type: ht.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2073
+ return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e3.parentElement) : x3.replace(/[\S]/g, "*")), { type: wt.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2056
2074
  })(e2, { doc: u2, needsMask: C2, maskTextFn: _2, rootId: $2 });
2057
2075
  case e2.CDATA_SECTION_NODE:
2058
- return { type: ht.CDATA, textContent: "", rootId: $2 };
2076
+ return { type: wt.CDATA, textContent: "", rootId: $2 };
2059
2077
  case e2.COMMENT_NODE:
2060
- return { type: ht.Comment, textContent: e2.textContent || "", rootId: $2 };
2078
+ return { type: wt.Comment, textContent: e2.textContent || "", rootId: $2 };
2061
2079
  default:
2062
2080
  return false;
2063
2081
  }
@@ -2073,21 +2091,21 @@
2073
2091
  if (!ee2) return console.warn(e2, "not serialized"), null;
2074
2092
  let te2;
2075
2093
  te2 = m2.hasNode(e2) ? m2.getId(e2) : (function Gi(e3, a3) {
2076
- return !!(a3.comment && e3.type === ht.Comment || e3.type === ht.Element && (a3.script && ("script" === e3.tagName || "link" === e3.tagName && ("preload" === e3.attributes.rel || "modulepreload" === e3.attributes.rel) && "script" === e3.attributes.as || "link" === e3.tagName && "prefetch" === e3.attributes.rel && "string" == typeof e3.attributes.href && "js" === xr(e3.attributes.href)) || a3.headFavicon && ("link" === e3.tagName && "shortcut icon" === e3.attributes.rel || "meta" === e3.tagName && (N(e3.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e3.attributes.name) || "icon" === N(e3.attributes.rel) || "apple-touch-icon" === N(e3.attributes.rel) || "shortcut icon" === N(e3.attributes.rel))) || "meta" === e3.tagName && (a3.headMetaDescKeywords && N(e3.attributes.name).match(/^description|keywords$/) || a3.headMetaSocial && (N(e3.attributes.property).match(/^(og|twitter|fb):/) || N(e3.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e3.attributes.name)) || a3.headMetaRobots && ("robots" === N(e3.attributes.name) || "googlebot" === N(e3.attributes.name) || "bingbot" === N(e3.attributes.name)) || a3.headMetaHttpEquiv && void 0 !== e3.attributes["http-equiv"] || a3.headMetaAuthorship && ("author" === N(e3.attributes.name) || "generator" === N(e3.attributes.name) || "framework" === N(e3.attributes.name) || "publisher" === N(e3.attributes.name) || "progid" === N(e3.attributes.name) || N(e3.attributes.property).match(/^article:/) || N(e3.attributes.property).match(/^product:/)) || a3.headMetaVerification && ("google-site-verification" === N(e3.attributes.name) || "yandex-verification" === N(e3.attributes.name) || "csrf-token" === N(e3.attributes.name) || "p:domain_verify" === N(e3.attributes.name) || "verify-v1" === N(e3.attributes.name) || "verification" === N(e3.attributes.name) || "shopify-checkout-api-token" === N(e3.attributes.name)))));
2077
- })(ee2, F2) || !Q2 && ee2.type === ht.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2094
+ return !!(a3.comment && e3.type === wt.Comment || e3.type === wt.Element && (a3.script && ("script" === e3.tagName || "link" === e3.tagName && ("preload" === e3.attributes.rel || "modulepreload" === e3.attributes.rel) && "script" === e3.attributes.as || "link" === e3.tagName && "prefetch" === e3.attributes.rel && "string" == typeof e3.attributes.href && "js" === xr(e3.attributes.href)) || a3.headFavicon && ("link" === e3.tagName && "shortcut icon" === e3.attributes.rel || "meta" === e3.tagName && (N(e3.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e3.attributes.name) || "icon" === N(e3.attributes.rel) || "apple-touch-icon" === N(e3.attributes.rel) || "shortcut icon" === N(e3.attributes.rel))) || "meta" === e3.tagName && (a3.headMetaDescKeywords && N(e3.attributes.name).match(/^description|keywords$/) || a3.headMetaSocial && (N(e3.attributes.property).match(/^(og|twitter|fb):/) || N(e3.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e3.attributes.name)) || a3.headMetaRobots && ("robots" === N(e3.attributes.name) || "googlebot" === N(e3.attributes.name) || "bingbot" === N(e3.attributes.name)) || a3.headMetaHttpEquiv && void 0 !== e3.attributes["http-equiv"] || a3.headMetaAuthorship && ("author" === N(e3.attributes.name) || "generator" === N(e3.attributes.name) || "framework" === N(e3.attributes.name) || "publisher" === N(e3.attributes.name) || "progid" === N(e3.attributes.name) || N(e3.attributes.property).match(/^article:/) || N(e3.attributes.property).match(/^product:/)) || a3.headMetaVerification && ("google-site-verification" === N(e3.attributes.name) || "yandex-verification" === N(e3.attributes.name) || "csrf-token" === N(e3.attributes.name) || "p:domain_verify" === N(e3.attributes.name) || "verify-v1" === N(e3.attributes.name) || "verification" === N(e3.attributes.name) || "shopify-checkout-api-token" === N(e3.attributes.name)))));
2095
+ })(ee2, F2) || !Q2 && ee2.type === wt.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2078
2096
  const ne2 = Object.assign(ee2, { id: te2 });
2079
2097
  if (m2.add(e2, ne2), -2 === te2) return null;
2080
2098
  z2 && z2(e2);
2081
2099
  let re2 = !I2;
2082
- if (ne2.type === ht.Element) {
2100
+ if (ne2.type === wt.Element) {
2083
2101
  re2 = re2 && !ne2.needBlock, delete ne2.needBlock;
2084
2102
  const a3 = e2.shadowRoot;
2085
2103
  a3 && ze(a3) && (ne2.isShadowHost = true);
2086
2104
  }
2087
- if ((ne2.type === ht.Document || ne2.type === ht.Element) && re2) {
2088
- F2.headWhitespace && ne2.type === ht.Element && "head" === ne2.tagName && (Q2 = false);
2105
+ if ((ne2.type === wt.Document || ne2.type === wt.Element) && re2) {
2106
+ F2.headWhitespace && ne2.type === wt.Element && "head" === ne2.tagName && (Q2 = false);
2089
2107
  const a3 = { doc: u2, 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 };
2090
- if (ne2.type !== ht.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u3 of Array.from(e2.childNodes)) {
2108
+ if (ne2.type !== wt.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u3 of Array.from(e2.childNodes)) {
2091
2109
  const e3 = Se(u3, a3);
2092
2110
  e3 && ne2.childNodes.push(e3);
2093
2111
  }
@@ -2096,7 +2114,7 @@
2096
2114
  m3 && (ze(e2.shadowRoot) && (m3.isShadow = true), ne2.childNodes.push(m3));
2097
2115
  }
2098
2116
  }
2099
- return e2.parentNode && We(e2.parentNode) && ze(e2.parentNode) && (ne2.isShadow = true), ne2.type === ht.Element && "iframe" === ne2.tagName && (function _i(e3, a3, u3) {
2117
+ return e2.parentNode && We(e2.parentNode) && ze(e2.parentNode) && (ne2.isShadow = true), ne2.type === wt.Element && "iframe" === ne2.tagName && (function _i(e3, a3, u3) {
2100
2118
  const m3 = e3.contentWindow;
2101
2119
  if (!m3) return;
2102
2120
  let w3, b3 = false;
@@ -2122,7 +2140,7 @@
2122
2140
  const u3 = Se(a3, { doc: a3, 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 });
2123
2141
  u3 && j2(e2, u3);
2124
2142
  }
2125
- }, V2), ne2.type === ht.Element && "link" === ne2.tagName && "string" == typeof ne2.attributes.rel && ("stylesheet" === ne2.attributes.rel || "preload" === ne2.attributes.rel && "string" == typeof ne2.attributes.href && "css" === xr(ne2.attributes.href)) && (function Wi(e3, a3, u3) {
2143
+ }, V2), ne2.type === wt.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(e3, a3, u3) {
2126
2144
  let m3, w3 = false;
2127
2145
  try {
2128
2146
  m3 = e3.sheet;
@@ -2162,13 +2180,13 @@
2162
2180
  } });
2163
2181
  }), u2;
2164
2182
  }
2165
- var Rt = { exports: {} }, Dt = String, Rr = function() {
2166
- return { isColorSupported: false, reset: Dt, bold: Dt, dim: Dt, italic: Dt, underline: Dt, inverse: Dt, hidden: Dt, strikethrough: Dt, black: Dt, red: Dt, green: Dt, yellow: Dt, blue: Dt, magenta: Dt, cyan: Dt, white: Dt, gray: Dt, bgBlack: Dt, bgRed: Dt, bgGreen: Dt, bgYellow: Dt, bgBlue: Dt, bgMagenta: Dt, bgCyan: Dt, bgWhite: Dt, blackBright: Dt, redBright: Dt, greenBright: Dt, yellowBright: Dt, blueBright: Dt, magentaBright: Dt, cyanBright: Dt, whiteBright: Dt, bgBlackBright: Dt, bgRedBright: Dt, bgGreenBright: Dt, bgYellowBright: Dt, bgBlueBright: Dt, bgMagentaBright: Dt, bgCyanBright: Dt, bgWhiteBright: Dt };
2183
+ var Ut = { exports: {} }, Bt = String, Rr = function() {
2184
+ return { isColorSupported: false, reset: Bt, bold: Bt, dim: Bt, italic: Bt, underline: Bt, inverse: Bt, hidden: Bt, strikethrough: Bt, black: Bt, red: Bt, green: Bt, yellow: Bt, blue: Bt, magenta: Bt, cyan: Bt, white: Bt, gray: Bt, bgBlack: Bt, bgRed: Bt, bgGreen: Bt, bgYellow: Bt, bgBlue: Bt, bgMagenta: Bt, bgCyan: Bt, bgWhite: Bt, blackBright: Bt, redBright: Bt, greenBright: Bt, yellowBright: Bt, blueBright: Bt, magentaBright: Bt, cyanBright: Bt, whiteBright: Bt, bgBlackBright: Bt, bgRedBright: Bt, bgGreenBright: Bt, bgYellowBright: Bt, bgBlueBright: Bt, bgMagentaBright: Bt, bgCyanBright: Bt, bgWhiteBright: Bt };
2167
2185
  };
2168
- Rt.exports = Rr(), Rt.exports.createColors = Rr;
2169
- var Ft = Rt.exports;
2170
- const Ut = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2171
- let Bt = Ft, Wt = Ut, jt = class Lr extends Error {
2186
+ Ut.exports = Rr(), Ut.exports.createColors = Rr;
2187
+ var Wt = Ut.exports;
2188
+ const jt = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2189
+ let Vt = Wt, Ht = jt, Kt = class Lr extends Error {
2172
2190
  constructor(e2, a2, u2, m2, w2, b2) {
2173
2191
  super(e2), this.name = "CssSyntaxError", this.reason = e2, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a2 < "u" && typeof u2 < "u" && ("number" == typeof a2 ? (this.line = a2, this.column = u2) : (this.line = a2.line, this.column = a2.column, this.endLine = u2.line, this.endColumn = u2.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, Lr);
2174
2192
  }
@@ -2178,11 +2196,11 @@
2178
2196
  showSourceCode(e2) {
2179
2197
  if (!this.source) return "";
2180
2198
  let a2 = this.source;
2181
- null == e2 && (e2 = Bt.isColorSupported);
2199
+ null == e2 && (e2 = Vt.isColorSupported);
2182
2200
  let n = (e3) => e3, r = (e3) => e3, i = (e3) => e3;
2183
2201
  if (e2) {
2184
- let { bold: e3, gray: a3, red: u3 } = Bt.createColors(true);
2185
- r = (a4) => e3(u3(a4)), n = (e4) => a3(e4), Wt && (i = (e4) => Wt(e4));
2202
+ let { bold: e3, gray: a3, red: u3 } = Vt.createColors(true);
2203
+ r = (a4) => e3(u3(a4)), n = (e4) => a3(e4), Ht && (i = (e4) => Ht(e4));
2186
2204
  }
2187
2205
  let u2 = a2.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u2.length), b2 = String(w2).length;
2188
2206
  return u2.slice(m2, w2).map((e3, a3) => {
@@ -2203,10 +2221,10 @@
2203
2221
  return e2 && (e2 = "\n\n" + e2 + "\n"), this.name + ": " + this.message + e2;
2204
2222
  }
2205
2223
  };
2206
- var Vt = jt;
2207
- jt.default = jt;
2208
- const Ht = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2209
- let Kt = class {
2224
+ var Jt = Kt;
2225
+ Kt.default = Kt;
2226
+ const Xt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2227
+ let Qt = class {
2210
2228
  constructor(e2) {
2211
2229
  this.builder = e2;
2212
2230
  }
@@ -2258,7 +2276,7 @@
2258
2276
  if (u2 || (u2 = a2), a2 && (m2 = e2.raws[a2], typeof m2 < "u")) return m2;
2259
2277
  let w2 = e2.parent;
2260
2278
  if ("before" === u2 && (!w2 || "root" === w2.type && w2.first === e2 || w2 && "document" === w2.type)) return "";
2261
- if (!w2) return Ht[u2];
2279
+ if (!w2) return Xt[u2];
2262
2280
  let b2 = e2.root();
2263
2281
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u2] < "u") return b2.rawCache[u2];
2264
2282
  if ("before" === u2 || "after" === u2) return this.beforeAfter(e2, u2);
@@ -2270,7 +2288,7 @@
2270
2288
  if (m2 = e3.raws[a2], typeof m2 < "u") return false;
2271
2289
  });
2272
2290
  }
2273
- return typeof m2 > "u" && (m2 = Ht[u2]), b2.rawCache[u2] = m2, m2;
2291
+ return typeof m2 > "u" && (m2 = Xt[u2]), b2.rawCache[u2] = m2, m2;
2274
2292
  }
2275
2293
  rawBeforeClose(e2) {
2276
2294
  let a2;
@@ -2346,17 +2364,17 @@
2346
2364
  this[e2.type](e2, a2);
2347
2365
  }
2348
2366
  };
2349
- var Jt = Kt;
2350
- Kt.default = Kt;
2351
- let Xt = Jt;
2367
+ var en = Qt;
2368
+ Qt.default = Qt;
2369
+ let tn = en;
2352
2370
  function ks(e2, a2) {
2353
- new Xt(a2).stringify(e2);
2371
+ new tn(a2).stringify(e2);
2354
2372
  }
2355
- var Qt = ks;
2373
+ var nn = ks;
2356
2374
  ks.default = ks;
2357
- var en = {};
2358
- en.isClean = Symbol("isClean"), en.my = Symbol("my");
2359
- let tn = Vt, nn = Jt, rn = Qt, { isClean: on, my: sn } = en;
2375
+ var rn = {};
2376
+ rn.isClean = Symbol("isClean"), rn.my = Symbol("my");
2377
+ let on = Jt, sn = en, an = nn, { isClean: ln, my: cn } = rn;
2360
2378
  function Cs(e2, a2) {
2361
2379
  let u2 = new e2.constructor();
2362
2380
  for (let m2 in e2) {
@@ -2378,12 +2396,12 @@
2378
2396
  }
2379
2397
  return w2;
2380
2398
  }
2381
- let an = class {
2399
+ let un = class {
2382
2400
  get proxyOf() {
2383
2401
  return this;
2384
2402
  }
2385
2403
  constructor(e2 = {}) {
2386
- this.raws = {}, this[on] = false, this[sn] = true;
2404
+ this.raws = {}, this[ln] = false, this[cn] = true;
2387
2405
  for (let a2 in e2) if ("nodes" === a2) {
2388
2406
  this.nodes = [];
2389
2407
  for (let u2 of e2[a2]) "function" == typeof u2.clone ? this.append(u2.clone()) : this.append(u2);
@@ -2427,19 +2445,19 @@
2427
2445
  let { end: u2, start: m2 } = this.rangeBy(a2);
2428
2446
  return this.source.input.error(e2, { column: m2.column, line: m2.line }, { column: u2.column, line: u2.line }, a2);
2429
2447
  }
2430
- return new tn(e2);
2448
+ return new on(e2);
2431
2449
  }
2432
2450
  getProxyProcessor() {
2433
2451
  return { get: (e2, a2) => "proxyOf" === a2 ? e2 : "root" === a2 ? () => e2.root().toProxy() : e2[a2], set: (e2, a2, u2) => (e2[a2] === u2 || (e2[a2] = u2, ("prop" === a2 || "value" === a2 || "name" === a2 || "params" === a2 || "important" === a2 || "text" === a2) && e2.markDirty()), true) };
2434
2452
  }
2435
2453
  markClean() {
2436
- this[on] = true;
2454
+ this[ln] = true;
2437
2455
  }
2438
2456
  markDirty() {
2439
- if (this[on]) {
2440
- this[on] = false;
2457
+ if (this[ln]) {
2458
+ this[ln] = false;
2441
2459
  let e2 = this;
2442
- for (; e2 = e2.parent; ) e2[on] = false;
2460
+ for (; e2 = e2.parent; ) e2[ln] = false;
2443
2461
  }
2444
2462
  }
2445
2463
  next() {
@@ -2475,7 +2493,7 @@
2475
2493
  return (u2.line < a2.line || u2.line === a2.line && u2.column <= a2.column) && (u2 = { column: a2.column + 1, line: a2.line }), { end: u2, start: a2 };
2476
2494
  }
2477
2495
  raw(e2, a2) {
2478
- return new nn().raw(this, e2, a2);
2496
+ return new sn().raw(this, e2, a2);
2479
2497
  }
2480
2498
  remove() {
2481
2499
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -2512,7 +2530,7 @@
2512
2530
  toProxy() {
2513
2531
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
2514
2532
  }
2515
- toString(e2 = rn) {
2533
+ toString(e2 = an) {
2516
2534
  e2.stringify && (e2 = e2.stringify);
2517
2535
  let a2 = "";
2518
2536
  return e2(this, (e3) => {
@@ -2525,16 +2543,16 @@
2525
2543
  return e2.warn(a2, m2);
2526
2544
  }
2527
2545
  };
2528
- var ln = an;
2529
- an.default = an;
2530
- let cn = ln, un = class extends cn {
2546
+ var pn = un;
2547
+ un.default = un;
2548
+ let dn = pn, hn = class extends dn {
2531
2549
  constructor(e2) {
2532
2550
  super(e2), this.type = "comment";
2533
2551
  }
2534
2552
  };
2535
- var pn = un;
2536
- un.default = un;
2537
- let dn = ln, hn = class extends dn {
2553
+ var fn = hn;
2554
+ hn.default = hn;
2555
+ let mn = pn, gn = class extends mn {
2538
2556
  get variable() {
2539
2557
  return this.prop.startsWith("--") || "$" === this.prop[0];
2540
2558
  }
@@ -2542,16 +2560,16 @@
2542
2560
  e2 && typeof e2.value < "u" && "string" != typeof e2.value && (e2 = { ...e2, value: String(e2.value) }), super(e2), this.type = "decl";
2543
2561
  }
2544
2562
  };
2545
- var fn = hn;
2546
- hn.default = hn;
2547
- let mn, gn, yn, wn, Sn = pn, bn = fn, Mn = ln, { isClean: In, my: _n } = en;
2563
+ var yn = gn;
2564
+ gn.default = gn;
2565
+ let wn, Sn, bn, Mn, In = fn, _n = yn, On = pn, { isClean: En, my: Ln } = rn;
2548
2566
  function _r(e2) {
2549
2567
  return e2.map((e3) => (e3.nodes && (e3.nodes = _r(e3.nodes)), delete e3.source, e3));
2550
2568
  }
2551
2569
  function Wr(e2) {
2552
- if (e2[In] = false, e2.proxyOf.nodes) for (let a2 of e2.proxyOf.nodes) Wr(a2);
2570
+ if (e2[En] = false, e2.proxyOf.nodes) for (let a2 of e2.proxyOf.nodes) Wr(a2);
2553
2571
  }
2554
- let On = class zr extends Mn {
2572
+ let Rn = class zr extends On {
2555
2573
  get first() {
2556
2574
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
2557
2575
  }
@@ -2603,7 +2621,7 @@
2603
2621
  return this.markDirty(), this;
2604
2622
  }
2605
2623
  normalize(e2, a2) {
2606
- if ("string" == typeof e2) e2 = _r(gn(e2).nodes);
2624
+ if ("string" == typeof e2) e2 = _r(Sn(e2).nodes);
2607
2625
  else if (typeof e2 > "u") e2 = [];
2608
2626
  else if (Array.isArray(e2)) {
2609
2627
  e2 = e2.slice(0);
@@ -2614,14 +2632,14 @@
2614
2632
  } else if (e2.type) e2 = [e2];
2615
2633
  else if (e2.prop) {
2616
2634
  if (typeof e2.value > "u") throw new Error("Value field is missed in node creation");
2617
- "string" != typeof e2.value && (e2.value = String(e2.value)), e2 = [new bn(e2)];
2618
- } else if (e2.selector || e2.selectors) e2 = [new wn(e2)];
2619
- else if (e2.name) e2 = [new mn(e2)];
2635
+ "string" != typeof e2.value && (e2.value = String(e2.value)), e2 = [new _n(e2)];
2636
+ } else if (e2.selector || e2.selectors) e2 = [new Mn(e2)];
2637
+ else if (e2.name) e2 = [new wn(e2)];
2620
2638
  else {
2621
2639
  if (!e2.text) throw new Error("Unknown node type in node creation");
2622
- e2 = [new Sn(e2)];
2640
+ e2 = [new In(e2)];
2623
2641
  }
2624
- return e2.map((e3) => (e3[_n] || zr.rebuild(e3), (e3 = e3.proxyOf).parent && e3.parent.removeChild(e3), e3[In] && Wr(e3), e3.raws || (e3.raws = {}), typeof e3.raws.before > "u" && a2 && typeof a2.raws.before < "u" && (e3.raws.before = a2.raws.before.replace(/\S/g, "")), e3.parent = this.proxyOf, e3));
2642
+ return e2.map((e3) => (e3[Ln] || zr.rebuild(e3), (e3 = e3.proxyOf).parent && e3.parent.removeChild(e3), e3[En] && Wr(e3), e3.raws || (e3.raws = {}), typeof e3.raws.before > "u" && a2 && typeof a2.raws.before < "u" && (e3.raws.before = a2.raws.before.replace(/\S/g, "")), e3.parent = this.proxyOf, e3));
2625
2643
  }
2626
2644
  prepend(...e2) {
2627
2645
  e2 = e2.reverse();
@@ -2697,22 +2715,22 @@
2697
2715
  }));
2698
2716
  }
2699
2717
  };
2700
- On.registerParse = (e2) => {
2701
- gn = e2;
2702
- }, On.registerRule = (e2) => {
2718
+ Rn.registerParse = (e2) => {
2719
+ Sn = e2;
2720
+ }, Rn.registerRule = (e2) => {
2721
+ Mn = e2;
2722
+ }, Rn.registerAtRule = (e2) => {
2703
2723
  wn = e2;
2704
- }, On.registerAtRule = (e2) => {
2705
- mn = e2;
2706
- }, On.registerRoot = (e2) => {
2707
- yn = e2;
2724
+ }, Rn.registerRoot = (e2) => {
2725
+ bn = e2;
2708
2726
  };
2709
- var En = On;
2710
- On.default = On, On.rebuild = (e2) => {
2711
- "atrule" === e2.type ? Object.setPrototypeOf(e2, mn.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, wn.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, bn.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Sn.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, yn.prototype), e2[_n] = true, e2.nodes && e2.nodes.forEach((e3) => {
2712
- On.rebuild(e3);
2727
+ var An = Rn;
2728
+ Rn.default = Rn, Rn.rebuild = (e2) => {
2729
+ "atrule" === e2.type ? Object.setPrototypeOf(e2, wn.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Mn.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, _n.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, In.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, bn.prototype), e2[Ln] = true, e2.nodes && e2.nodes.forEach((e3) => {
2730
+ Rn.rebuild(e3);
2713
2731
  });
2714
2732
  };
2715
- let Ln = En, Rn = class extends Ln {
2733
+ let Tn = An, Nn = class extends Tn {
2716
2734
  constructor(e2) {
2717
2735
  super(e2), this.type = "atrule";
2718
2736
  }
@@ -2723,38 +2741,38 @@
2723
2741
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e2);
2724
2742
  }
2725
2743
  };
2726
- var An = Rn;
2727
- Rn.default = Rn, Ln.registerAtRule(Rn);
2728
- let Tn, Nn, Pn = En, Dn = class extends Pn {
2744
+ var Pn = Nn;
2745
+ Nn.default = Nn, Tn.registerAtRule(Nn);
2746
+ let Dn, Fn, Un = An, Bn = class extends Un {
2729
2747
  constructor(e2) {
2730
2748
  super({ type: "document", ...e2 }), this.nodes || (this.nodes = []);
2731
2749
  }
2732
2750
  toResult(e2 = {}) {
2733
- return new Tn(new Nn(), this, e2).stringify();
2751
+ return new Dn(new Fn(), this, e2).stringify();
2734
2752
  }
2735
2753
  };
2736
- Dn.registerLazyResult = (e2) => {
2737
- Tn = e2;
2738
- }, Dn.registerProcessor = (e2) => {
2739
- Nn = e2;
2754
+ Bn.registerLazyResult = (e2) => {
2755
+ Dn = e2;
2756
+ }, Bn.registerProcessor = (e2) => {
2757
+ Fn = e2;
2740
2758
  };
2741
- var Fn = Dn;
2742
- Dn.default = Dn;
2743
- var Un = { nanoid: (e2 = 21) => {
2759
+ var Wn = Bn;
2760
+ Bn.default = Bn;
2761
+ var zn = { nanoid: (e2 = 21) => {
2744
2762
  let a2 = "", u2 = 0 | e2;
2745
2763
  for (; u2--; ) a2 += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
2746
2764
  return a2;
2747
2765
  } };
2748
- let { existsSync: Bn, readFileSync: Wn } = Ut, { dirname: zn, join: jn } = Ut, { SourceMapConsumer: Vn, SourceMapGenerator: qn } = Ut;
2749
- let Zn = class {
2766
+ let { existsSync: jn, readFileSync: Vn } = jt, { dirname: qn, join: Zn } = jt, { SourceMapConsumer: Kn, SourceMapGenerator: Qn } = jt;
2767
+ let nr = class {
2750
2768
  constructor(e2, a2) {
2751
2769
  if (false === a2.map) return;
2752
2770
  this.loadAnnotation(e2), this.inline = this.startWith(this.annotation, "data:");
2753
2771
  let u2 = a2.map ? a2.map.prev : void 0, m2 = this.loadMap(a2.from, u2);
2754
- !this.mapFile && a2.from && (this.mapFile = a2.from), this.mapFile && (this.root = zn(this.mapFile)), m2 && (this.text = m2);
2772
+ !this.mapFile && a2.from && (this.mapFile = a2.from), this.mapFile && (this.root = qn(this.mapFile)), m2 && (this.text = m2);
2755
2773
  }
2756
2774
  consumer() {
2757
- return this.consumerCache || (this.consumerCache = new Vn(this.text)), this.consumerCache;
2775
+ return this.consumerCache || (this.consumerCache = new Kn(this.text)), this.consumerCache;
2758
2776
  }
2759
2777
  decodeInline(e2) {
2760
2778
  let a2 = e2.match(/^data:application\/json;charset=utf-?8,/) || e2.match(/^data:application\/json,/);
@@ -2779,15 +2797,15 @@
2779
2797
  u2 > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e2.substring(u2, m2)));
2780
2798
  }
2781
2799
  loadFile(e2) {
2782
- if (this.root = zn(e2), Bn(e2)) return this.mapFile = e2, Wn(e2, "utf-8").toString().trim();
2800
+ if (this.root = qn(e2), jn(e2)) return this.mapFile = e2, Vn(e2, "utf-8").toString().trim();
2783
2801
  }
2784
2802
  loadMap(e2, a2) {
2785
2803
  if (false === a2) return false;
2786
2804
  if (a2) {
2787
2805
  if ("string" == typeof a2) return a2;
2788
2806
  if ("function" != typeof a2) {
2789
- if (a2 instanceof Vn) return qn.fromSourceMap(a2).toString();
2790
- if (a2 instanceof qn) return a2.toString();
2807
+ if (a2 instanceof Kn) return Qn.fromSourceMap(a2).toString();
2808
+ if (a2 instanceof Qn) return a2.toString();
2791
2809
  if (this.isMap(a2)) return JSON.stringify(a2);
2792
2810
  throw new Error("Unsupported previous source map format: " + a2.toString());
2793
2811
  }
@@ -2803,7 +2821,7 @@
2803
2821
  if (this.inline) return this.decodeInline(this.annotation);
2804
2822
  if (this.annotation) {
2805
2823
  let a3 = this.annotation;
2806
- return e2 && (a3 = jn(zn(e2), a3)), this.loadFile(a3);
2824
+ return e2 && (a3 = Zn(qn(e2), a3)), this.loadFile(a3);
2807
2825
  }
2808
2826
  }
2809
2827
  }
@@ -2814,23 +2832,23 @@
2814
2832
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
2815
2833
  }
2816
2834
  };
2817
- var Kn = Zn;
2818
- Zn.default = Zn;
2819
- let { nanoid: Qn } = Un, { isAbsolute: nr, resolve: rr } = Ut, { SourceMapConsumer: or, SourceMapGenerator: sr } = Ut, { fileURLToPath: ir, pathToFileURL: ar } = Ut, lr = Vt, cr = Kn, ur = Ut, pr = Symbol("fromOffsetCache"), dr = !(!or || !sr), hr = !(!rr || !nr), fr = class {
2835
+ var rr = nr;
2836
+ nr.default = nr;
2837
+ let { nanoid: or } = zn, { isAbsolute: sr, resolve: ir } = jt, { SourceMapConsumer: ar, SourceMapGenerator: lr } = jt, { fileURLToPath: cr, pathToFileURL: ur } = jt, pr = Jt, dr = rr, hr = jt, fr = Symbol("fromOffsetCache"), mr = !(!ar || !lr), gr = !(!ir || !sr), yr = class {
2820
2838
  get from() {
2821
2839
  return this.file || this.id;
2822
2840
  }
2823
2841
  constructor(e2, a2 = {}) {
2824
2842
  if (null === e2 || typeof e2 > "u" || "object" == typeof e2 && !e2.toString) throw new Error(`PostCSS received ${e2} instead of CSS string`);
2825
- if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a2.document && (this.document = a2.document.toString()), a2.from && (!hr || /^\w+:\/\//.test(a2.from) || nr(a2.from) ? this.file = a2.from : this.file = rr(a2.from)), hr && dr) {
2826
- let e3 = new cr(this.css, a2);
2843
+ if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a2.document && (this.document = a2.document.toString()), a2.from && (!gr || /^\w+:\/\//.test(a2.from) || sr(a2.from) ? this.file = a2.from : this.file = ir(a2.from)), gr && mr) {
2844
+ let e3 = new dr(this.css, a2);
2827
2845
  if (e3.text) {
2828
2846
  this.map = e3;
2829
2847
  let a3 = e3.consumer().file;
2830
2848
  !this.file && a3 && (this.file = this.mapResolve(a3));
2831
2849
  }
2832
2850
  }
2833
- this.file || (this.id = "<input css " + Qn(6) + ">"), this.map && (this.map.file = this.from);
2851
+ this.file || (this.id = "<input css " + or(6) + ">"), this.map && (this.map.file = this.from);
2834
2852
  }
2835
2853
  error(e2, a2, u2, m2 = {}) {
2836
2854
  let w2, b2, C2;
@@ -2849,17 +2867,17 @@
2849
2867
  a2 = e3.line, u2 = e3.col;
2850
2868
  }
2851
2869
  let x2 = this.origin(a2, u2, b2, w2);
2852
- return C2 = x2 ? new lr(e2, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new lr(e2, void 0 === b2 ? a2 : { column: u2, line: a2 }, void 0 === b2 ? u2 : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u2, endColumn: w2, endLine: b2, line: a2, source: this.css }, this.file && (ar && (C2.input.url = ar(this.file).toString()), C2.input.file = this.file), C2;
2870
+ return C2 = x2 ? new pr(e2, 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 pr(e2, void 0 === b2 ? a2 : { column: u2, line: a2 }, void 0 === b2 ? u2 : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u2, endColumn: w2, endLine: b2, line: a2, source: this.css }, this.file && (ur && (C2.input.url = ur(this.file).toString()), C2.input.file = this.file), C2;
2853
2871
  }
2854
2872
  fromOffset(e2) {
2855
2873
  let a2, u2;
2856
- if (this[pr]) u2 = this[pr];
2874
+ if (this[fr]) u2 = this[fr];
2857
2875
  else {
2858
2876
  let e3 = this.css.split("\n");
2859
2877
  u2 = new Array(e3.length);
2860
2878
  let a3 = 0;
2861
2879
  for (let m3 = 0, w2 = e3.length; m3 < w2; m3++) u2[m3] = a3, a3 += e3[m3].length + 1;
2862
- this[pr] = u2;
2880
+ this[fr] = u2;
2863
2881
  }
2864
2882
  a2 = u2[u2.length - 1];
2865
2883
  let m2 = 0;
@@ -2878,17 +2896,17 @@
2878
2896
  return { col: e2 - u2[m2] + 1, line: m2 + 1 };
2879
2897
  }
2880
2898
  mapResolve(e2) {
2881
- return /^\w+:\/\//.test(e2) ? e2 : rr(this.map.consumer().sourceRoot || this.map.root || ".", e2);
2899
+ return /^\w+:\/\//.test(e2) ? e2 : ir(this.map.consumer().sourceRoot || this.map.root || ".", e2);
2882
2900
  }
2883
2901
  origin(e2, a2, u2, m2) {
2884
2902
  if (!this.map) return false;
2885
2903
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a2, line: e2 });
2886
2904
  if (!x2.source) return false;
2887
- "number" == typeof u2 && (w2 = C2.originalPositionFor({ column: m2, line: u2 })), b2 = nr(x2.source) ? ar(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ar(this.map.mapFile));
2905
+ "number" == typeof u2 && (w2 = C2.originalPositionFor({ column: m2, line: u2 })), b2 = sr(x2.source) ? ur(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ur(this.map.mapFile));
2888
2906
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
2889
2907
  if ("file:" === b2.protocol) {
2890
- if (!ir) throw new Error("file: protocol is not available in this PostCSS build");
2891
- I2.file = ir(b2);
2908
+ if (!cr) throw new Error("file: protocol is not available in this PostCSS build");
2909
+ I2.file = cr(b2);
2892
2910
  }
2893
2911
  let _2 = C2.sourceContentFor(x2.source);
2894
2912
  return _2 && (I2.source = _2), I2;
@@ -2899,9 +2917,9 @@
2899
2917
  return this.map && (e2.map = { ...this.map }, e2.map.consumerCache && (e2.map.consumerCache = void 0)), e2;
2900
2918
  }
2901
2919
  };
2902
- var mr = fr;
2903
- fr.default = fr, ur && ur.registerInput && ur.registerInput(fr);
2904
- let gr, yr, wr = En, Sr = class extends wr {
2920
+ var wr = yr;
2921
+ yr.default = yr, hr && hr.registerInput && hr.registerInput(yr);
2922
+ let Sr, Cr, Ar = An, Tr = class extends Ar {
2905
2923
  constructor(e2) {
2906
2924
  super(e2), this.type = "root", this.nodes || (this.nodes = []);
2907
2925
  }
@@ -2918,29 +2936,29 @@
2918
2936
  return !a2 && 0 === u2 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u2].raws.before), super.removeChild(e2);
2919
2937
  }
2920
2938
  toResult(e2 = {}) {
2921
- return new gr(new yr(), this, e2).stringify();
2939
+ return new Sr(new Cr(), this, e2).stringify();
2922
2940
  }
2923
2941
  };
2924
- Sr.registerLazyResult = (e2) => {
2925
- gr = e2;
2926
- }, Sr.registerProcessor = (e2) => {
2927
- yr = e2;
2942
+ Tr.registerLazyResult = (e2) => {
2943
+ Sr = e2;
2944
+ }, Tr.registerProcessor = (e2) => {
2945
+ Cr = e2;
2928
2946
  };
2929
- var Cr = Sr;
2930
- Sr.default = Sr, wr.registerRoot(Sr);
2931
- let Ar = { comma: (e2) => Ar.split(e2, [","], true), space(e2) {
2947
+ var Nr = Tr;
2948
+ Tr.default = Tr, Ar.registerRoot(Tr);
2949
+ let Pr = { comma: (e2) => Pr.split(e2, [","], true), space(e2) {
2932
2950
  let a2 = [" ", "\n", " "];
2933
- return Ar.split(e2, a2);
2951
+ return Pr.split(e2, a2);
2934
2952
  }, split(e2, a2, u2) {
2935
2953
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
2936
2954
  for (let u3 of e2) _2 ? _2 = false : "\\" === u3 ? _2 = true : x2 ? u3 === I2 && (x2 = false) : '"' === u3 || "'" === u3 ? (x2 = true, I2 = u3) : "(" === u3 ? C2 += 1 : ")" === u3 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a2.includes(u3) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u3;
2937
2955
  return (u2 || "" !== w2) && m2.push(w2.trim()), m2;
2938
2956
  } };
2939
- var Tr = Ar;
2940
- Ar.default = Ar;
2941
- let Nr = En, Pr = Tr, Dr = class extends Nr {
2957
+ var Dr = Pr;
2958
+ Pr.default = Pr;
2959
+ let Fr = An, Ur = Dr, Br = class extends Fr {
2942
2960
  get selectors() {
2943
- return Pr.comma(this.selector);
2961
+ return Ur.comma(this.selector);
2944
2962
  }
2945
2963
  set selectors(e2) {
2946
2964
  let a2 = this.selector ? this.selector.match(/,\s*/) : null, u2 = a2 ? a2[0] : "," + this.raw("between", "beforeOpen");
@@ -2950,34 +2968,34 @@
2950
2968
  super(e2), this.type = "rule", this.nodes || (this.nodes = []);
2951
2969
  }
2952
2970
  };
2953
- var Fr = Dr;
2954
- Dr.default = Dr, Nr.registerRule(Dr);
2955
- let Ur = An, Br = pn, $r = fn, jr = mr, Gr = Kn, Vr = Cr, qr = Fr;
2971
+ var $r = Br;
2972
+ Br.default = Br, Fr.registerRule(Br);
2973
+ let jr = Pn, Gr = fn, Vr = yn, qr = wr, Hr = rr, Zr = Nr, Kr = $r;
2956
2974
  function Ze(e2, a2) {
2957
2975
  if (Array.isArray(e2)) return e2.map((e3) => Ze(e3));
2958
2976
  let { inputs: u2, ...m2 } = e2;
2959
2977
  if (u2) {
2960
2978
  a2 = [];
2961
2979
  for (let e3 of u2) {
2962
- let u3 = { ...e3, __proto__: jr.prototype };
2963
- u3.map && (u3.map = { ...u3.map, __proto__: Gr.prototype }), a2.push(u3);
2980
+ let u3 = { ...e3, __proto__: qr.prototype };
2981
+ u3.map && (u3.map = { ...u3.map, __proto__: Hr.prototype }), a2.push(u3);
2964
2982
  }
2965
2983
  }
2966
2984
  if (m2.nodes && (m2.nodes = e2.nodes.map((e3) => Ze(e3, a2))), m2.source) {
2967
2985
  let { inputId: e3, ...u3 } = m2.source;
2968
2986
  m2.source = u3, null != e3 && (m2.source.input = a2[e3]);
2969
2987
  }
2970
- if ("root" === m2.type) return new Vr(m2);
2971
- if ("decl" === m2.type) return new $r(m2);
2972
- if ("rule" === m2.type) return new qr(m2);
2973
- if ("comment" === m2.type) return new Br(m2);
2974
- if ("atrule" === m2.type) return new Ur(m2);
2988
+ if ("root" === m2.type) return new Zr(m2);
2989
+ if ("decl" === m2.type) return new Vr(m2);
2990
+ if ("rule" === m2.type) return new Kr(m2);
2991
+ if ("comment" === m2.type) return new Gr(m2);
2992
+ if ("atrule" === m2.type) return new jr(m2);
2975
2993
  throw new Error("Unknown node type: " + e2.type);
2976
2994
  }
2977
- var Hr = Ze;
2995
+ var Jr = Ze;
2978
2996
  Ze.default = Ze;
2979
- let { dirname: Zr, relative: Kr, resolve: Jr, sep: Yr } = Ut, { SourceMapConsumer: Xr, SourceMapGenerator: Qr } = Ut, { pathToFileURL: eo } = Ut, to = mr, oo = !(!Xr || !Qr), io = !!(Zr && Jr && Kr && Yr);
2980
- var ao = class {
2997
+ let { dirname: Yr, relative: Xr, resolve: Qr, sep: eo } = jt, { SourceMapConsumer: to, SourceMapGenerator: oo } = jt, { pathToFileURL: io } = jt, ao = wr, lo = !(!to || !oo), co = !!(Yr && Qr && Xr && eo);
2998
+ var uo = class {
2981
2999
  constructor(e2, a2, u2, m2) {
2982
3000
  this.stringify = e2, this.mapOpts = u2.map || {}, this.root = a2, this.opts = u2, 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();
2983
3001
  }
@@ -2989,8 +3007,8 @@
2989
3007
  }
2990
3008
  applyPrevMaps() {
2991
3009
  for (let e2 of this.previous()) {
2992
- let a2, u2 = this.toUrl(this.path(e2.file)), m2 = e2.root || Zr(e2.file);
2993
- false === this.mapOpts.sourcesContent ? (a2 = new Xr(e2.text), a2.sourcesContent && (a2.sourcesContent = null)) : a2 = e2.consumer(), this.map.applySourceMap(a2, u2, this.toUrl(this.path(m2)));
3010
+ let a2, u2 = this.toUrl(this.path(e2.file)), m2 = e2.root || Yr(e2.file);
3011
+ false === this.mapOpts.sourcesContent ? (a2 = new to(e2.text), a2.sourcesContent && (a2.sourcesContent = null)) : a2 = e2.consumer(), this.map.applySourceMap(a2, u2, this.toUrl(this.path(m2)));
2994
3012
  }
2995
3013
  }
2996
3014
  clearAnnotation() {
@@ -3000,7 +3018,7 @@
3000
3018
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
3001
3019
  }
3002
3020
  generate() {
3003
- if (this.clearAnnotation(), io && oo && this.isMap()) return this.generateMap();
3021
+ if (this.clearAnnotation(), co && lo && this.isMap()) return this.generateMap();
3004
3022
  {
3005
3023
  let e2 = "";
3006
3024
  return this.stringify(this.root, (a2) => {
@@ -3012,12 +3030,12 @@
3012
3030
  if (this.root) this.generateString();
3013
3031
  else if (1 === this.previous().length) {
3014
3032
  let e2 = this.previous()[0].consumer();
3015
- e2.file = this.outputFile(), this.map = Qr.fromSourceMap(e2, { ignoreInvalidMapping: true });
3016
- } else this.map = new Qr({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
3033
+ e2.file = this.outputFile(), this.map = oo.fromSourceMap(e2, { ignoreInvalidMapping: true });
3034
+ } else this.map = new oo({ 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>" });
3017
3035
  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];
3018
3036
  }
3019
3037
  generateString() {
3020
- this.css = "", this.map = new Qr({ file: this.outputFile(), ignoreInvalidMapping: true });
3038
+ this.css = "", this.map = new oo({ file: this.outputFile(), ignoreInvalidMapping: true });
3021
3039
  let e2, a2, u2 = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
3022
3040
  this.stringify(this.root, (C2, x2, I2) => {
3023
3041
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u2, 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))), a2 = C2.match(/\n/g), a2 ? (u2 += a2.length, e2 = C2.lastIndexOf("\n"), m2 = C2.length - e2) : m2 += C2.length, x2 && "start" !== I2) {
@@ -3047,9 +3065,9 @@
3047
3065
  if (this.mapOpts.absolute || 60 === e2.charCodeAt(0) || /^\w+:\/\//.test(e2)) return e2;
3048
3066
  let a2 = this.memoizedPaths.get(e2);
3049
3067
  if (a2) return a2;
3050
- let u2 = this.opts.to ? Zr(this.opts.to) : ".";
3051
- "string" == typeof this.mapOpts.annotation && (u2 = Zr(Jr(u2, this.mapOpts.annotation)));
3052
- let m2 = Kr(u2, e2);
3068
+ let u2 = this.opts.to ? Yr(this.opts.to) : ".";
3069
+ "string" == typeof this.mapOpts.annotation && (u2 = Yr(Qr(u2, this.mapOpts.annotation)));
3070
+ let m2 = Xr(u2, e2);
3053
3071
  return this.memoizedPaths.set(e2, m2), m2;
3054
3072
  }
3055
3073
  previous() {
@@ -3060,7 +3078,7 @@
3060
3078
  }
3061
3079
  });
3062
3080
  else {
3063
- let e2 = new to(this.originalCSS, this.opts);
3081
+ let e2 = new ao(this.originalCSS, this.opts);
3064
3082
  e2.map && this.previousMaps.push(e2.map);
3065
3083
  }
3066
3084
  return this.previousMaps;
@@ -3091,8 +3109,8 @@
3091
3109
  toFileUrl(e2) {
3092
3110
  let a2 = this.memoizedFileURLs.get(e2);
3093
3111
  if (a2) return a2;
3094
- if (eo) {
3095
- let a3 = eo(e2).toString();
3112
+ if (io) {
3113
+ let a3 = io(e2).toString();
3096
3114
  return this.memoizedFileURLs.set(e2, a3), a3;
3097
3115
  }
3098
3116
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -3100,13 +3118,13 @@
3100
3118
  toUrl(e2) {
3101
3119
  let a2 = this.memoizedURLs.get(e2);
3102
3120
  if (a2) return a2;
3103
- "\\" === Yr && (e2 = e2.replace(/\\/g, "/"));
3121
+ "\\" === eo && (e2 = e2.replace(/\\/g, "/"));
3104
3122
  let u2 = encodeURI(e2).replace(/[#?]/g, encodeURIComponent);
3105
3123
  return this.memoizedURLs.set(e2, u2), u2;
3106
3124
  }
3107
3125
  };
3108
- const lo = /[\t\n\f\r "#'()/;[\\\]{}]/g, co = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, uo = /.[\r\n"'(/\\]/, ho = /[\da-f]/i;
3109
- let Mo = An, _o = pn, Ao = fn, No = Cr, Po = Fr, Xa = function(e2, a2 = {}) {
3126
+ const ho = /[\t\n\f\r "#'()/;[\\\]{}]/g, Mo = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, _o = /.[\r\n"'(/\\]/, Ao = /[\da-f]/i;
3127
+ let No = Pn, Po = fn, Do = yn, Fo = Nr, Uo = $r, Xa = function(e2, a2 = {}) {
3110
3128
  let u2, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e2.css.valueOf(), F2 = a2.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
3111
3129
  function y2(a3) {
3112
3130
  throw e2.error("Unclosed " + a3, B2);
@@ -3156,7 +3174,7 @@
3156
3174
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
3157
3175
  } while (I2);
3158
3176
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3159
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || uo.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3177
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || _o.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3160
3178
  break;
3161
3179
  case 39:
3162
3180
  case 34:
@@ -3174,31 +3192,31 @@
3174
3192
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3175
3193
  break;
3176
3194
  case 64:
3177
- lo.lastIndex = B2 + 1, lo.test(D2), b2 = 0 === lo.lastIndex ? D2.length - 1 : lo.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3195
+ ho.lastIndex = B2 + 1, ho.test(D2), b2 = 0 === ho.lastIndex ? D2.length - 1 : ho.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3178
3196
  break;
3179
3197
  case 92:
3180
3198
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
3181
- if (u2 = D2.charCodeAt(b2 + 1), w2 && 47 !== u2 && 32 !== u2 && 10 !== u2 && 9 !== u2 && 13 !== u2 && 12 !== u2 && (b2 += 1, ho.test(D2.charAt(b2)))) {
3182
- for (; ho.test(D2.charAt(b2 + 1)); ) b2 += 1;
3199
+ if (u2 = D2.charCodeAt(b2 + 1), w2 && 47 !== u2 && 32 !== u2 && 10 !== u2 && 9 !== u2 && 13 !== u2 && 12 !== u2 && (b2 += 1, Ao.test(D2.charAt(b2)))) {
3200
+ for (; Ao.test(D2.charAt(b2 + 1)); ) b2 += 1;
3183
3201
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
3184
3202
  }
3185
3203
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3186
3204
  break;
3187
3205
  default:
3188
- 47 === u2 && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a3 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (co.lastIndex = B2 + 1, co.test(D2), b2 = 0 === co.lastIndex ? D2.length - 1 : co.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3206
+ 47 === u2 && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a3 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (Mo.lastIndex = B2 + 1, Mo.test(D2), b2 = 0 === Mo.lastIndex ? D2.length - 1 : Mo.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3189
3207
  }
3190
3208
  return B2++, x2;
3191
3209
  }, position: function S() {
3192
3210
  return B2;
3193
3211
  } };
3194
3212
  };
3195
- const Do = { empty: true, space: true };
3196
- var Fo = class {
3213
+ const $o = { empty: true, space: true };
3214
+ var jo = class {
3197
3215
  constructor(e2) {
3198
- this.input = e2, this.root = new No(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e2, start: { column: 1, line: 1, offset: 0 } };
3216
+ this.input = e2, this.root = new Fo(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e2, start: { column: 1, line: 1, offset: 0 } };
3199
3217
  }
3200
3218
  atrule(e2) {
3201
- let a2 = new Mo();
3219
+ let a2 = new No();
3202
3220
  a2.name = e2[1].slice(1), "" === a2.name && this.unnamedAtrule(a2, e2), this.init(a2, e2[2]);
3203
3221
  let u2, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
3204
3222
  for (; !this.tokenizer.endOfFile(); ) {
@@ -3250,7 +3268,7 @@
3250
3268
  return false;
3251
3269
  }
3252
3270
  comment(e2) {
3253
- let a2 = new _o();
3271
+ let a2 = new Po();
3254
3272
  this.init(a2, e2[2]), a2.source.end = this.getPosition(e2[3] || e2[2]), a2.source.end.offset++;
3255
3273
  let u2 = e2[1].slice(2, -2);
3256
3274
  if (/^\s*$/.test(u2)) a2.text = "", a2.raws.left = u2, a2.raws.right = "";
@@ -3263,7 +3281,7 @@
3263
3281
  this.tokenizer = Xa(this.input);
3264
3282
  }
3265
3283
  decl(e2, a2) {
3266
- let u2 = new Ao();
3284
+ let u2 = new Do();
3267
3285
  this.init(u2, e2[0][2]);
3268
3286
  let m2, w2 = e2[e2.length - 1];
3269
3287
  for (";" === w2[0] && (this.semicolon = true, e2.pop()), u2.source.end = this.getPosition(w2[3] || w2[2] || (function Ha(e3) {
@@ -3312,7 +3330,7 @@
3312
3330
  throw this.input.error("Double colon", { offset: e2[2] }, { offset: e2[2] + e2[1].length });
3313
3331
  }
3314
3332
  emptyRule(e2) {
3315
- let a2 = new Po();
3333
+ let a2 = new Uo();
3316
3334
  this.init(a2, e2[2]), a2.selector = "", a2.raws.between = "", this.current = a2;
3317
3335
  }
3318
3336
  end(e2) {
@@ -3388,7 +3406,7 @@
3388
3406
  }
3389
3407
  raw(e2, a2, u2, m2) {
3390
3408
  let w2, b2, C2, x2, I2 = u2.length, _2 = "", O2 = true;
3391
- for (let e3 = 0; e3 < I2; e3 += 1) w2 = u2[e3], b2 = w2[0], "space" !== b2 || e3 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u2[e3 - 1] ? u2[e3 - 1][0] : "empty", C2 = u2[e3 + 1] ? u2[e3 + 1][0] : "empty", Do[x2] || Do[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3409
+ for (let e3 = 0; e3 < I2; e3 += 1) w2 = u2[e3], b2 = w2[0], "space" !== b2 || e3 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u2[e3 - 1] ? u2[e3 - 1][0] : "empty", C2 = u2[e3 + 1] ? u2[e3 + 1][0] : "empty", $o[x2] || $o[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3392
3410
  if (!O2) {
3393
3411
  let m3 = u2.reduce((e3, a3) => e3 + a3[1], "");
3394
3412
  e2.raws[a2] = { raw: m3, value: _2 };
@@ -3397,7 +3415,7 @@
3397
3415
  }
3398
3416
  rule(e2) {
3399
3417
  e2.pop();
3400
- let a2 = new Po();
3418
+ let a2 = new Uo();
3401
3419
  this.init(a2, e2[0][2]), a2.raws.between = this.spacesAndCommentsFromEnd(e2), this.raw(a2, "selector", e2), this.current = a2;
3402
3420
  }
3403
3421
  spacesAndCommentsFromEnd(e2) {
@@ -3437,9 +3455,9 @@
3437
3455
  throw this.input.error("At-rule without name", { offset: a2[2] }, { offset: a2[2] + a2[1].length });
3438
3456
  }
3439
3457
  };
3440
- let Uo = En, $o = mr, jo = Fo;
3458
+ let Go = An, Vo = wr, qo = jo;
3441
3459
  function _t(e2, a2) {
3442
- let u2 = new $o(e2, a2), m2 = new jo(u2);
3460
+ let u2 = new Vo(e2, a2), m2 = new qo(u2);
3443
3461
  try {
3444
3462
  m2.parse();
3445
3463
  } catch (e3) {
@@ -3447,9 +3465,9 @@
3447
3465
  }
3448
3466
  return m2.root;
3449
3467
  }
3450
- var Go = _t;
3451
- _t.default = _t, Uo.registerParse(_t);
3452
- let Vo = class {
3468
+ var Ho = _t;
3469
+ _t.default = _t, Go.registerParse(_t);
3470
+ let Zo = class {
3453
3471
  constructor(e2, a2 = {}) {
3454
3472
  if (this.type = "warning", this.text = e2, a2.node && a2.node.source) {
3455
3473
  let e3 = a2.node.rangeBy(a2);
@@ -3461,9 +3479,9 @@
3461
3479
  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;
3462
3480
  }
3463
3481
  };
3464
- var qo = Vo;
3465
- Vo.default = Vo;
3466
- let Ho = qo, Zo = class {
3482
+ var Ko = Zo;
3483
+ Zo.default = Zo;
3484
+ let Jo = Ko, Yo = class {
3467
3485
  get content() {
3468
3486
  return this.css;
3469
3487
  }
@@ -3475,26 +3493,26 @@
3475
3493
  }
3476
3494
  warn(e2, a2 = {}) {
3477
3495
  a2.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a2.plugin = this.lastPlugin.postcssPlugin);
3478
- let u2 = new Ho(e2, a2);
3496
+ let u2 = new Jo(e2, a2);
3479
3497
  return this.messages.push(u2), u2;
3480
3498
  }
3481
3499
  warnings() {
3482
3500
  return this.messages.filter((e2) => "warning" === e2.type);
3483
3501
  }
3484
3502
  };
3485
- var Ko = Zo;
3486
- Zo.default = Zo;
3487
- let Jo = {};
3503
+ var Xo = Yo;
3504
+ Yo.default = Yo;
3505
+ let Qo = {};
3488
3506
  var so = function(e2) {
3489
- Jo[e2] || (Jo[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
3507
+ Qo[e2] || (Qo[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
3490
3508
  };
3491
- let Yo = En, Xo = Fn, Qo = ao, es = Go, ts = Ko, ns = Cr, rs = Qt, { isClean: os, my: ss } = en, is = so;
3492
- const as = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, ls = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, cs = { Once: true, postcssPlugin: true, prepare: true };
3509
+ let es = An, ts = Wn, ns = uo, rs = Ho, os = Xo, ss = Nr, is = nn, { isClean: as, my: ls } = rn, cs = so;
3510
+ const us = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, ps = { 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 }, ds = { Once: true, postcssPlugin: true, prepare: true };
3493
3511
  function Ne(e2) {
3494
3512
  return "object" == typeof e2 && "function" == typeof e2.then;
3495
3513
  }
3496
3514
  function no(e2) {
3497
- let a2 = false, u2 = as[e2.type];
3515
+ let a2 = false, u2 = us[e2.type];
3498
3516
  return "decl" === e2.type ? a2 = e2.prop.toLowerCase() : "atrule" === e2.type && (a2 = e2.name.toLowerCase()), a2 && e2.append ? [u2, u2 + "-" + a2, 0, u2 + "Exit", u2 + "Exit-" + a2] : a2 ? [u2, u2 + "-" + a2, u2 + "Exit", u2 + "Exit-" + a2] : e2.append ? [u2, 0, u2 + "Exit"] : [u2, u2 + "Exit"];
3499
3517
  }
3500
3518
  function Gn(e2) {
@@ -3502,9 +3520,9 @@
3502
3520
  return a2 = "document" === e2.type ? ["Document", 0, "DocumentExit"] : "root" === e2.type ? ["Root", 0, "RootExit"] : no(e2), { eventIndex: 0, events: a2, iterator: 0, node: e2, visitorIndex: 0, visitors: [] };
3503
3521
  }
3504
3522
  function Ps(e2) {
3505
- return e2[os] = false, e2.nodes && e2.nodes.forEach((e3) => Ps(e3)), e2;
3523
+ return e2[as] = false, e2.nodes && e2.nodes.forEach((e3) => Ps(e3)), e2;
3506
3524
  }
3507
- let us = {}, ps = class ro {
3525
+ let hs = {}, ms = class ro {
3508
3526
  get content() {
3509
3527
  return this.stringify().content;
3510
3528
  }
@@ -3531,19 +3549,19 @@
3531
3549
  }
3532
3550
  constructor(e2, a2, u2) {
3533
3551
  let m2;
3534
- if (this.stringified = false, this.processed = false, "object" != typeof a2 || null === a2 || "root" !== a2.type && "document" !== a2.type) if (a2 instanceof ro || a2 instanceof ts) m2 = Ps(a2.root), a2.map && (typeof u2.map > "u" && (u2.map = {}), u2.map.inline || (u2.map.inline = false), u2.map.prev = a2.map);
3552
+ if (this.stringified = false, this.processed = false, "object" != typeof a2 || null === a2 || "root" !== a2.type && "document" !== a2.type) if (a2 instanceof ro || a2 instanceof os) m2 = Ps(a2.root), a2.map && (typeof u2.map > "u" && (u2.map = {}), u2.map.inline || (u2.map.inline = false), u2.map.prev = a2.map);
3535
3553
  else {
3536
- let e3 = es;
3554
+ let e3 = rs;
3537
3555
  u2.syntax && (e3 = u2.syntax.parse), u2.parser && (e3 = u2.parser), e3.parse && (e3 = e3.parse);
3538
3556
  try {
3539
3557
  m2 = e3(a2, u2);
3540
3558
  } catch (e4) {
3541
3559
  this.processed = true, this.error = e4;
3542
3560
  }
3543
- m2 && !m2[ss] && Yo.rebuild(m2);
3561
+ m2 && !m2[ls] && es.rebuild(m2);
3544
3562
  }
3545
3563
  else m2 = Ps(a2);
3546
- this.result = new ts(e2, m2, u2), this.helpers = { ...us, postcss: us, result: this.result }, this.plugins = this.processor.plugins.map((e3) => "object" == typeof e3 && e3.prepare ? { ...e3, ...e3.prepare(this.result) } : e3);
3564
+ this.result = new os(e2, m2, u2), this.helpers = { ...hs, postcss: hs, result: this.result }, this.plugins = this.processor.plugins.map((e3) => "object" == typeof e3 && e3.prepare ? { ...e3, ...e3.prepare(this.result) } : e3);
3547
3565
  }
3548
3566
  async() {
3549
3567
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -3577,8 +3595,8 @@
3577
3595
  this.listeners[a2] || (this.listeners[a2] = []), this.listeners[a2].push([e2, u2]);
3578
3596
  };
3579
3597
  for (let e2 of this.plugins) if ("object" == typeof e2) for (let a2 in e2) {
3580
- if (!ls[a2] && /^[A-Z]/.test(a2)) throw new Error(`Unknown event ${a2} in ${e2.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3581
- if (!cs[a2]) if ("object" == typeof e2[a2]) for (let u2 in e2[a2]) t(e2, "*" === u2 ? a2 : a2 + "-" + u2.toLowerCase(), e2[a2][u2]);
3598
+ if (!ps[a2] && /^[A-Z]/.test(a2)) throw new Error(`Unknown event ${a2} in ${e2.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3599
+ if (!ds[a2]) if ("object" == typeof e2[a2]) for (let u2 in e2[a2]) t(e2, "*" === u2 ? a2 : a2 + "-" + u2.toLowerCase(), e2[a2][u2]);
3582
3600
  else "function" == typeof e2[a2] && t(e2, a2, e2[a2]);
3583
3601
  }
3584
3602
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -3595,8 +3613,8 @@
3595
3613
  }
3596
3614
  if (this.prepareVisitors(), this.hasListener) {
3597
3615
  let e2 = this.result.root;
3598
- for (; !e2[os]; ) {
3599
- e2[os] = true;
3616
+ for (; !e2[as]; ) {
3617
+ e2[as] = true;
3600
3618
  let a2 = [Gn(e2)];
3601
3619
  for (; a2.length > 0; ) {
3602
3620
  let e3 = this.visitTick(a2);
@@ -3641,9 +3659,9 @@
3641
3659
  if (this.error) throw this.error;
3642
3660
  if (this.stringified) return this.result;
3643
3661
  this.stringified = true, this.sync();
3644
- let e2 = this.result.opts, a2 = rs;
3662
+ let e2 = this.result.opts, a2 = is;
3645
3663
  e2.syntax && (a2 = e2.syntax.stringify), e2.stringifier && (a2 = e2.stringifier), a2.stringify && (a2 = a2.stringify);
3646
- let u2 = new Qo(a2, this.result.root, this.result.opts).generate();
3664
+ let u2 = new ns(a2, this.result.root, this.result.opts).generate();
3647
3665
  return this.result.css = u2[0], this.result.map = u2[1], this.result;
3648
3666
  }
3649
3667
  sync() {
@@ -3655,14 +3673,14 @@
3655
3673
  }
3656
3674
  if (this.prepareVisitors(), this.hasListener) {
3657
3675
  let e2 = this.result.root;
3658
- for (; !e2[os]; ) e2[os] = true, this.walkSync(e2);
3676
+ for (; !e2[as]; ) e2[as] = true, this.walkSync(e2);
3659
3677
  if (this.listeners.OnceExit) if ("document" === e2.type) for (let a2 of e2.nodes) this.visitSync(this.listeners.OnceExit, a2);
3660
3678
  else this.visitSync(this.listeners.OnceExit, e2);
3661
3679
  }
3662
3680
  return this.result;
3663
3681
  }
3664
3682
  then(e2, a2) {
3665
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || is("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
3683
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || cs("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(e2, a2);
3666
3684
  }
3667
3685
  toString() {
3668
3686
  return this.css;
@@ -3694,22 +3712,22 @@
3694
3712
  }
3695
3713
  if (0 !== a2.iterator) {
3696
3714
  let m3, w3 = a2.iterator;
3697
- for (; m3 = u2.nodes[u2.indexes[w3]]; ) if (u2.indexes[w3] += 1, !m3[os]) return m3[os] = true, void e2.push(Gn(m3));
3715
+ for (; m3 = u2.nodes[u2.indexes[w3]]; ) if (u2.indexes[w3] += 1, !m3[as]) return m3[as] = true, void e2.push(Gn(m3));
3698
3716
  a2.iterator = 0, delete u2.indexes[w3];
3699
3717
  }
3700
3718
  let w2 = a2.events;
3701
3719
  for (; a2.eventIndex < w2.length; ) {
3702
3720
  let e3 = w2[a2.eventIndex];
3703
- if (a2.eventIndex += 1, 0 === e3) return void (u2.nodes && u2.nodes.length && (u2[os] = true, a2.iterator = u2.getIterator()));
3721
+ if (a2.eventIndex += 1, 0 === e3) return void (u2.nodes && u2.nodes.length && (u2[as] = true, a2.iterator = u2.getIterator()));
3704
3722
  if (this.listeners[e3]) return void (a2.visitors = this.listeners[e3]);
3705
3723
  }
3706
3724
  e2.pop();
3707
3725
  }
3708
3726
  walkSync(e2) {
3709
- e2[os] = true;
3727
+ e2[as] = true;
3710
3728
  let a2 = no(e2);
3711
3729
  for (let u2 of a2) if (0 === u2) e2.nodes && e2.each((e3) => {
3712
- e3[os] || this.walkSync(e3);
3730
+ e3[as] || this.walkSync(e3);
3713
3731
  });
3714
3732
  else {
3715
3733
  let a3 = this.listeners[u2];
@@ -3720,14 +3738,14 @@
3720
3738
  return this.sync().warnings();
3721
3739
  }
3722
3740
  };
3723
- ps.registerPostcss = (e2) => {
3724
- us = e2;
3741
+ ms.registerPostcss = (e2) => {
3742
+ hs = e2;
3725
3743
  };
3726
- var ds = ps;
3727
- ps.default = ps, ns.registerLazyResult(ps), Xo.registerLazyResult(ps);
3728
- let hs = ao, ms = Go;
3729
- const gs = Ko;
3730
- let ys = Qt, ws = so, Ss = class {
3744
+ var gs = ms;
3745
+ ms.default = ms, ss.registerLazyResult(ms), ts.registerLazyResult(ms);
3746
+ let ys = uo, ws = Ho;
3747
+ const Ss = Xo;
3748
+ let bs = nn, vs = so, xs = class {
3731
3749
  get content() {
3732
3750
  return this.result.css;
3733
3751
  }
@@ -3748,7 +3766,7 @@
3748
3766
  }
3749
3767
  get root() {
3750
3768
  if (this._root) return this._root;
3751
- let e2, a2 = ms;
3769
+ let e2, a2 = ws;
3752
3770
  try {
3753
3771
  e2 = a2(this._css, this._opts);
3754
3772
  } catch (e3) {
@@ -3762,11 +3780,11 @@
3762
3780
  }
3763
3781
  constructor(e2, a2, u2) {
3764
3782
  a2 = a2.toString(), this.stringified = false, this._processor = e2, this._css = a2, this._opts = u2, this._map = void 0;
3765
- let m2, w2 = ys;
3766
- this.result = new gs(this._processor, m2, this._opts), this.result.css = a2;
3783
+ let m2, w2 = bs;
3784
+ this.result = new Ss(this._processor, m2, this._opts), this.result.css = a2;
3767
3785
  let b2 = this;
3768
3786
  Object.defineProperty(this.result, "root", { get: () => b2.root });
3769
- let C2 = new hs(w2, m2, this._opts, a2);
3787
+ let C2 = new ys(w2, m2, this._opts, a2);
3770
3788
  if (C2.isMap()) {
3771
3789
  let [e3, a3] = C2.generate();
3772
3790
  e3 && (this.result.css = e3), a3 && (this.result.map = a3);
@@ -3786,7 +3804,7 @@
3786
3804
  return this.result;
3787
3805
  }
3788
3806
  then(e2, a2) {
3789
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || ws("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
3807
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || vs("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(e2, a2);
3790
3808
  }
3791
3809
  toString() {
3792
3810
  return this._css;
@@ -3795,9 +3813,9 @@
3795
3813
  return [];
3796
3814
  }
3797
3815
  };
3798
- var bs = Ss;
3799
- Ss.default = Ss;
3800
- let vs = Fn, xs = ds, Ms = bs, Is = Cr, _s = class {
3816
+ var Ms = xs;
3817
+ xs.default = xs;
3818
+ let Is = Wn, _s = gs, Os = Ms, Es = Nr, Ls = class {
3801
3819
  constructor(e2 = []) {
3802
3820
  this.version = "8.5.3", this.plugins = this.normalize(e2);
3803
3821
  }
@@ -3813,43 +3831,43 @@
3813
3831
  return a2;
3814
3832
  }
3815
3833
  process(e2, a2 = {}) {
3816
- return this.plugins.length || a2.parser || a2.stringifier || a2.syntax ? new xs(this, e2, a2) : new Ms(this, e2, a2);
3834
+ return this.plugins.length || a2.parser || a2.stringifier || a2.syntax ? new _s(this, e2, a2) : new Os(this, e2, a2);
3817
3835
  }
3818
3836
  use(e2) {
3819
3837
  return this.plugins = this.plugins.concat(this.normalize([e2])), this;
3820
3838
  }
3821
3839
  };
3822
- var Os = _s;
3823
- _s.default = _s, Is.registerProcessor(_s), vs.registerProcessor(_s);
3824
- let Es = An, Ls = pn, Rs = En, As = Vt, Ts = fn, Ns = Fn, $s = Hr, Ws = mr, js = ds, Gs = Tr, Vs = ln, qs = Go, Hs = Os, Zs = Ko, Ks = Cr, Ys = Fr, Xs = Qt, Qs = qo;
3840
+ var Rs = Ls;
3841
+ Ls.default = Ls, Es.registerProcessor(Ls), Is.registerProcessor(Ls);
3842
+ let As = Pn, Ts = fn, Ns = An, $s = Jt, Ws = yn, js = Wn, Gs = Jr, Vs = wr, qs = gs, Hs = Dr, Zs = pn, Ks = Ho, Ys = Rs, Xs = Xo, Qs = Nr, ei = $r, ti = nn, si = Ko;
3825
3843
  function L$1(...e2) {
3826
- return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new Hs(e2);
3844
+ return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new Ys(e2);
3827
3845
  }
3828
3846
  L$1.plugin = function(e2, a2) {
3829
3847
  let u2, m2 = false;
3830
3848
  function n(...u3) {
3831
3849
  console && console.warn && !m2 && (m2 = true, console.warn(e2 + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e2 + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
3832
3850
  let w2 = a2(...u3);
3833
- return w2.postcssPlugin = e2, w2.postcssVersion = new Hs().version, w2;
3851
+ return w2.postcssPlugin = e2, w2.postcssVersion = new Ys().version, w2;
3834
3852
  }
3835
3853
  return Object.defineProperty(n, "postcss", { get: () => (u2 || (u2 = n()), u2) }), n.process = function(e3, a3, u3) {
3836
3854
  return L$1([n(u3)]).process(e3, a3);
3837
3855
  }, n;
3838
- }, L$1.stringify = Xs, L$1.parse = qs, L$1.fromJSON = $s, L$1.list = Gs, L$1.comment = (e2) => new Ls(e2), L$1.atRule = (e2) => new Es(e2), L$1.decl = (e2) => new Ts(e2), L$1.rule = (e2) => new Ys(e2), L$1.root = (e2) => new Ks(e2), L$1.document = (e2) => new Ns(e2), L$1.CssSyntaxError = As, L$1.Declaration = Ts, L$1.Container = Rs, L$1.Processor = Hs, L$1.Document = Ns, L$1.Comment = Ls, L$1.Warning = Qs, L$1.AtRule = Es, L$1.Result = Zs, L$1.Input = Ws, L$1.Rule = Ys, L$1.Root = Ks, L$1.Node = Vs, js.registerPostcss(L$1);
3839
- var ei = L$1;
3856
+ }, L$1.stringify = ti, L$1.parse = Ks, L$1.fromJSON = Gs, L$1.list = Hs, L$1.comment = (e2) => new Ts(e2), L$1.atRule = (e2) => new As(e2), L$1.decl = (e2) => new Ws(e2), L$1.rule = (e2) => new ei(e2), L$1.root = (e2) => new Qs(e2), L$1.document = (e2) => new js(e2), L$1.CssSyntaxError = $s, L$1.Declaration = Ws, L$1.Container = Ns, L$1.Processor = Ys, L$1.Document = js, L$1.Comment = Ts, L$1.Warning = si, L$1.AtRule = As, L$1.Result = Xs, L$1.Input = Vs, L$1.Rule = ei, L$1.Root = Qs, L$1.Node = Zs, qs.registerPostcss(L$1);
3857
+ var ii = L$1;
3840
3858
  L$1.default = L$1;
3841
- const ti = Yi(ei);
3842
- ti.stringify, ti.fromJSON, ti.plugin, ti.parse, ti.list, ti.document, ti.comment, ti.atRule, ti.rule, ti.decl, ti.root, ti.CssSyntaxError, ti.Declaration, ti.Container, ti.Processor, ti.Document, ti.Comment, ti.Warning, ti.AtRule, ti.Result, ti.Input, ti.Rule, ti.Root, ti.Node;
3843
- var si = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(si || {}), ii = ((e2) => (e2[e2.Mutation = 0] = "Mutation", e2[e2.MouseMove = 1] = "MouseMove", e2[e2.MouseInteraction = 2] = "MouseInteraction", e2[e2.Scroll = 3] = "Scroll", e2[e2.ViewportResize = 4] = "ViewportResize", e2[e2.Input = 5] = "Input", e2[e2.TouchMove = 6] = "TouchMove", e2[e2.MediaInteraction = 7] = "MediaInteraction", e2[e2.StyleSheetRule = 8] = "StyleSheetRule", e2[e2.CanvasMutation = 9] = "CanvasMutation", e2[e2.Font = 10] = "Font", e2[e2.Log = 11] = "Log", e2[e2.Drag = 12] = "Drag", e2[e2.StyleDeclaration = 13] = "StyleDeclaration", e2[e2.Selection = 14] = "Selection", e2[e2.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e2[e2.CustomElement = 16] = "CustomElement", e2[e2.Typing = 17] = "Typing", e2))(ii || {}), ai = ((e2) => (e2[e2.MouseUp = 0] = "MouseUp", e2[e2.MouseDown = 1] = "MouseDown", e2[e2.Click = 2] = "Click", e2[e2.ContextMenu = 3] = "ContextMenu", e2[e2.DblClick = 4] = "DblClick", e2[e2.Focus = 5] = "Focus", e2[e2.Blur = 6] = "Blur", e2[e2.TouchStart = 7] = "TouchStart", e2[e2.TouchMove_Departed = 8] = "TouchMove_Departed", e2[e2.TouchEnd = 9] = "TouchEnd", e2[e2.TouchCancel = 10] = "TouchCancel", e2))(ai || {}), li = ((e2) => (e2[e2.Mouse = 0] = "Mouse", e2[e2.Pen = 1] = "Pen", e2[e2.Touch = 2] = "Touch", e2))(li || {}), ci = ((e2) => (e2[e2["2D"] = 0] = "2D", e2[e2.WebGL = 1] = "WebGL", e2[e2.WebGL2 = 2] = "WebGL2", e2))(ci || {}), ui = ((e2) => (e2[e2.Play = 0] = "Play", e2[e2.Pause = 1] = "Pause", e2[e2.Seeked = 2] = "Seeked", e2[e2.VolumeChange = 3] = "VolumeChange", e2[e2.RateChange = 4] = "RateChange", e2))(ui || {});
3859
+ const ai = Yi(ii);
3860
+ ai.stringify, ai.fromJSON, ai.plugin, ai.parse, ai.list, ai.document, ai.comment, ai.atRule, ai.rule, ai.decl, ai.root, ai.CssSyntaxError, ai.Declaration, ai.Container, ai.Processor, ai.Document, ai.Comment, ai.Warning, ai.AtRule, ai.Result, ai.Input, ai.Rule, ai.Root, ai.Node;
3861
+ var li = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(li || {}), ci = ((e2) => (e2[e2.Mutation = 0] = "Mutation", e2[e2.MouseMove = 1] = "MouseMove", e2[e2.MouseInteraction = 2] = "MouseInteraction", e2[e2.Scroll = 3] = "Scroll", e2[e2.ViewportResize = 4] = "ViewportResize", e2[e2.Input = 5] = "Input", e2[e2.TouchMove = 6] = "TouchMove", e2[e2.MediaInteraction = 7] = "MediaInteraction", e2[e2.StyleSheetRule = 8] = "StyleSheetRule", e2[e2.CanvasMutation = 9] = "CanvasMutation", e2[e2.Font = 10] = "Font", e2[e2.Log = 11] = "Log", e2[e2.Drag = 12] = "Drag", e2[e2.StyleDeclaration = 13] = "StyleDeclaration", e2[e2.Selection = 14] = "Selection", e2[e2.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e2[e2.CustomElement = 16] = "CustomElement", e2[e2.Typing = 17] = "Typing", e2))(ci || {}), ui = ((e2) => (e2[e2.MouseUp = 0] = "MouseUp", e2[e2.MouseDown = 1] = "MouseDown", e2[e2.Click = 2] = "Click", e2[e2.ContextMenu = 3] = "ContextMenu", e2[e2.DblClick = 4] = "DblClick", e2[e2.Focus = 5] = "Focus", e2[e2.Blur = 6] = "Blur", e2[e2.TouchStart = 7] = "TouchStart", e2[e2.TouchMove_Departed = 8] = "TouchMove_Departed", e2[e2.TouchEnd = 9] = "TouchEnd", e2[e2.TouchCancel = 10] = "TouchCancel", e2))(ui || {}), pi = ((e2) => (e2[e2.Mouse = 0] = "Mouse", e2[e2.Pen = 1] = "Pen", e2[e2.Touch = 2] = "Touch", e2))(pi || {}), di = ((e2) => (e2[e2["2D"] = 0] = "2D", e2[e2.WebGL = 1] = "WebGL", e2[e2.WebGL2 = 2] = "WebGL2", e2))(di || {}), hi = ((e2) => (e2[e2.Play = 0] = "Play", e2[e2.Pause = 1] = "Pause", e2[e2.Seeked = 2] = "Seeked", e2[e2.VolumeChange = 3] = "VolumeChange", e2[e2.RateChange = 4] = "RateChange", e2))(hi || {});
3844
3862
  function G(e2, a2, u2 = document) {
3845
3863
  const m2 = { capture: true, passive: true };
3846
3864
  return u2.addEventListener(e2, a2, m2), () => u2.removeEventListener(e2, a2, m2);
3847
3865
  }
3848
- const pi = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
3849
- let di = { map: {}, getId: () => (console.error(pi), -1), getNode: () => (console.error(pi), null), removeNodeFromMap() {
3850
- console.error(pi);
3851
- }, has: () => (console.error(pi), false), reset() {
3852
- console.error(pi);
3866
+ const fi = "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.";
3867
+ let mi = { map: {}, getId: () => (console.error(fi), -1), getNode: () => (console.error(fi), null), removeNodeFromMap() {
3868
+ console.error(fi);
3869
+ }, has: () => (console.error(fi), false), reset() {
3870
+ console.error(fi);
3853
3871
  } };
3854
3872
  function $e(e2, a2, u2 = {}) {
3855
3873
  let m2 = null, w2 = 0;
@@ -3883,8 +3901,8 @@
3883
3901
  };
3884
3902
  }
3885
3903
  }
3886
- typeof window < "u" && window.Proxy && window.Reflect && (di = new Proxy(di, { get: (e2, a2, u2) => ("map" === a2 && console.error(pi), Reflect.get(e2, a2, u2)) }));
3887
- let hi, fi = Date.now;
3904
+ typeof window < "u" && window.Proxy && window.Reflect && (mi = new Proxy(mi, { get: (e2, a2, u2) => ("map" === a2 && console.error(fi), Reflect.get(e2, a2, u2)) }));
3905
+ let gi, yi = Date.now;
3888
3906
  function po(e2) {
3889
3907
  var a2, u2, m2, w2, b2, C2;
3890
3908
  const x2 = e2.document;
@@ -3931,7 +3949,7 @@
3931
3949
  function Fs(e2) {
3932
3950
  return !(null == e2 || !e2.shadowRoot);
3933
3951
  }
3934
- /[1-9][0-9]{12}/.test(Date.now().toString()) || (fi = () => (/* @__PURE__ */ new Date()).getTime());
3952
+ /[1-9][0-9]{12}/.test(Date.now().toString()) || (yi = () => (/* @__PURE__ */ new Date()).getTime());
3935
3953
  class _l {
3936
3954
  constructor() {
3937
3955
  b$1(this, "id", 1), b$1(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), b$1(this, "idStyleMap", /* @__PURE__ */ new Map());
@@ -3976,11 +3994,11 @@
3976
3994
  const a2 = e2.ownerDocument;
3977
3995
  return !!a2 && (a2.contains(e2) || zl(e2));
3978
3996
  }
3979
- const M = (e2) => hi ? (...a2) => {
3997
+ const M = (e2) => gi ? (...a2) => {
3980
3998
  try {
3981
3999
  return e2(...a2);
3982
4000
  } catch (e3) {
3983
- if (hi && true === hi(e3)) return;
4001
+ if (gi && true === gi(e3)) return;
3984
4002
  throw e3;
3985
4003
  }
3986
4004
  } : e2;
@@ -4039,22 +4057,22 @@
4039
4057
  transformCrossOriginEvent(e2, a2) {
4040
4058
  var u2;
4041
4059
  switch (a2.type) {
4042
- case si.FullSnapshot: {
4060
+ case li.FullSnapshot: {
4043
4061
  this.crossOriginIframeMirror.reset(e2), this.crossOriginIframeStyleMirror.reset(e2), this.replaceIdOnNode(a2.data.node, e2);
4044
4062
  const u3 = a2.data.node.id;
4045
- return this.crossOriginIframeRootIdMap.set(e2, u3), this.patchRootIdOnNode(a2.data.node, u3), { timestamp: a2.timestamp, type: si.IncrementalSnapshot, data: { source: ii.Mutation, adds: [{ parentId: this.mirror.getId(e2), nextId: null, node: a2.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4063
+ return this.crossOriginIframeRootIdMap.set(e2, u3), this.patchRootIdOnNode(a2.data.node, u3), { timestamp: a2.timestamp, type: li.IncrementalSnapshot, data: { source: ci.Mutation, adds: [{ parentId: this.mirror.getId(e2), nextId: null, node: a2.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4046
4064
  }
4047
- case si.Meta:
4048
- case si.Load:
4049
- case si.DomContentLoaded:
4065
+ case li.Meta:
4066
+ case li.Load:
4067
+ case li.DomContentLoaded:
4050
4068
  return false;
4051
- case si.Plugin:
4069
+ case li.Plugin:
4052
4070
  return a2;
4053
- case si.Custom:
4071
+ case li.Custom:
4054
4072
  return this.replaceIds(a2.data.payload, e2, ["id", "parentId", "previousId", "nextId"]), a2;
4055
- case si.IncrementalSnapshot:
4073
+ case li.IncrementalSnapshot:
4056
4074
  switch (a2.data.source) {
4057
- case ii.Mutation:
4075
+ case ci.Mutation:
4058
4076
  return a2.data.adds.forEach((a3) => {
4059
4077
  this.replaceIds(a3, e2, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(a3.node, e2);
4060
4078
  const u3 = this.crossOriginIframeRootIdMap.get(e2);
@@ -4066,30 +4084,30 @@
4066
4084
  }), a2.data.texts.forEach((a3) => {
4067
4085
  this.replaceIds(a3, e2, ["id"]);
4068
4086
  }), a2;
4069
- case ii.Drag:
4070
- case ii.TouchMove:
4071
- case ii.MouseMove:
4087
+ case ci.Drag:
4088
+ case ci.TouchMove:
4089
+ case ci.MouseMove:
4072
4090
  return a2.data.positions.forEach((a3) => {
4073
4091
  this.replaceIds(a3, e2, ["id"]);
4074
4092
  }), a2;
4075
- case ii.ViewportResize:
4093
+ case ci.ViewportResize:
4076
4094
  return false;
4077
- case ii.MediaInteraction:
4078
- case ii.MouseInteraction:
4079
- case ii.Scroll:
4080
- case ii.CanvasMutation:
4081
- case ii.Input:
4095
+ case ci.MediaInteraction:
4096
+ case ci.MouseInteraction:
4097
+ case ci.Scroll:
4098
+ case ci.CanvasMutation:
4099
+ case ci.Input:
4082
4100
  return this.replaceIds(a2.data, e2, ["id"]), a2;
4083
- case ii.StyleSheetRule:
4084
- case ii.StyleDeclaration:
4101
+ case ci.StyleSheetRule:
4102
+ case ci.StyleDeclaration:
4085
4103
  return this.replaceIds(a2.data, e2, ["id"]), this.replaceStyleIds(a2.data, e2, ["styleId"]), a2;
4086
- case ii.Font:
4104
+ case ci.Font:
4087
4105
  return a2;
4088
- case ii.Selection:
4106
+ case ci.Selection:
4089
4107
  return a2.data.ranges.forEach((a3) => {
4090
4108
  this.replaceIds(a3, e2, ["start", "end"]);
4091
4109
  }), a2;
4092
- case ii.AdoptedStyleSheet:
4110
+ case ci.AdoptedStyleSheet:
4093
4111
  return this.replaceIds(a2.data, e2, ["id"]), this.replaceStyleIds(a2.data, e2, ["styleIds"]), null == (u2 = a2.data.styles) || u2.forEach((a3) => {
4094
4112
  this.replaceStyleIds(a3, e2, ["styleId"]);
4095
4113
  }), a2;
@@ -4113,7 +4131,7 @@
4113
4131
  });
4114
4132
  }
4115
4133
  patchRootIdOnNode(e2, a2) {
4116
- e2.type !== ht.Document && !e2.rootId && (e2.rootId = a2), "childNodes" in e2 && e2.childNodes.forEach((e3) => {
4134
+ e2.type !== wt.Document && !e2.rootId && (e2.rootId = a2), "childNodes" in e2 && e2.childNodes.forEach((e3) => {
4117
4135
  this.patchRootIdOnNode(e3, a2);
4118
4136
  });
4119
4137
  }
@@ -4331,7 +4349,7 @@
4331
4349
  const { parentNode: u2 } = a2;
4332
4350
  return !!u2 && (!!e2.has(u2) || ko(e2, u2));
4333
4351
  }
4334
- const mi = [];
4352
+ const Mi = [];
4335
4353
  function tt(e2) {
4336
4354
  try {
4337
4355
  if ("composedPath" in e2) {
@@ -4345,7 +4363,7 @@
4345
4363
  function Co(e2, a2) {
4346
4364
  var u2, m2;
4347
4365
  const w2 = new Zl();
4348
- mi.push(w2), w2.init(e2);
4366
+ Mi.push(w2), w2.init(e2);
4349
4367
  let b2 = window.MutationObserver || window.__rrMutationObserver;
4350
4368
  const C2 = null == (m2 = null == (u2 = null == window ? void 0 : window.Zone) ? void 0 : u2.__symbol__) ? void 0 : m2.call(u2, "MutationObserver");
4351
4369
  C2 && window[C2] && (b2 = window[C2]);
@@ -4357,7 +4375,7 @@
4357
4375
  };
4358
4376
  const C2 = true === b2.mouseInteraction || void 0 === b2.mouseInteraction ? {} : b2.mouseInteraction, x2 = [];
4359
4377
  let I2 = null;
4360
- return Object.keys(ai).filter((e3) => Number.isNaN(Number(e3)) && !e3.endsWith("_Departed") && false !== C2[e3]).forEach((b3) => {
4378
+ return Object.keys(ui).filter((e3) => Number.isNaN(Number(e3)) && !e3.endsWith("_Departed") && false !== C2[e3]).forEach((b3) => {
4361
4379
  let C3 = fe(b3);
4362
4380
  const _2 = /* @__PURE__ */ ((a3) => (b4) => {
4363
4381
  const C4 = tt(b4);
@@ -4366,29 +4384,29 @@
4366
4384
  if ("pointerType" in b4) {
4367
4385
  switch (b4.pointerType) {
4368
4386
  case "mouse":
4369
- x3 = li.Mouse;
4387
+ x3 = pi.Mouse;
4370
4388
  break;
4371
4389
  case "touch":
4372
- x3 = li.Touch;
4390
+ x3 = pi.Touch;
4373
4391
  break;
4374
4392
  case "pen":
4375
- x3 = li.Pen;
4393
+ x3 = pi.Pen;
4376
4394
  }
4377
- x3 === li.Touch ? ai[a3] === ai.MouseDown ? _3 = "TouchStart" : ai[a3] === ai.MouseUp && (_3 = "TouchEnd") : li.Pen;
4378
- } else Ds(b4) && (x3 = li.Touch);
4379
- null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === li.Touch || _3.startsWith("Mouse") && x3 === li.Mouse) && (x3 = null)) : ai[a3] === ai.Click && (x3 = I2, I2 = null);
4395
+ x3 === pi.Touch ? ui[a3] === ui.MouseDown ? _3 = "TouchStart" : ui[a3] === ui.MouseUp && (_3 = "TouchEnd") : pi.Pen;
4396
+ } else Ds(b4) && (x3 = pi.Touch);
4397
+ null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === pi.Touch || _3.startsWith("Mouse") && x3 === pi.Mouse) && (x3 = null)) : ui[a3] === ui.Click && (x3 = I2, I2 = null);
4380
4398
  const O2 = Ds(b4) ? b4.changedTouches[0] : b4;
4381
4399
  if (!O2) return;
4382
4400
  const E2 = u2.getId(C4), { clientX: D2, clientY: F2 } = O2;
4383
- M(e2)({ type: ai[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4401
+ M(e2)({ type: ui[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4384
4402
  })(b3);
4385
- if (window.PointerEvent) switch (ai[b3]) {
4386
- case ai.MouseDown:
4387
- case ai.MouseUp:
4403
+ if (window.PointerEvent) switch (ui[b3]) {
4404
+ case ui.MouseDown:
4405
+ case ui.MouseUp:
4388
4406
  C3 = C3.replace("mouse", "pointer");
4389
4407
  break;
4390
- case ai.TouchStart:
4391
- case ai.TouchEnd:
4408
+ case ui.TouchStart:
4409
+ case ui.TouchEnd:
4392
4410
  return;
4393
4411
  }
4394
4412
  x2.push(G(C3, _2, a2));
@@ -4407,7 +4425,7 @@
4407
4425
  } else e2({ id: x2, x: C2.scrollLeft, y: C2.scrollTop });
4408
4426
  }), b2.scroll || 100)), a2);
4409
4427
  }
4410
- const gi = ["INPUT", "TEXTAREA", "SELECT"], yi = /* @__PURE__ */ new WeakMap();
4428
+ const Ii = ["INPUT", "TEXTAREA", "SELECT"], Li = /* @__PURE__ */ new WeakMap();
4411
4429
  function ql({ deviceChangeCb: e2 }) {
4412
4430
  const t = (a3, u3) => {
4413
4431
  const m2 = a3.device.productName ? [a3.device.productName] : ["Unknown USB Device"];
@@ -4527,7 +4545,7 @@
4527
4545
  e3(x3.map((e4) => (e4.timeOffset -= u4, e4)), a4), x3 = [], C3 = null;
4528
4546
  }), b3), _3 = M($e(M((e4) => {
4529
4547
  const a4 = tt(e4), { clientX: u4, clientY: w4 } = Ds(e4) ? e4.changedTouches[0] : e4;
4530
- C3 || (C3 = fi()), x3.push({ x: u4, y: w4, id: m3.getId(a4), timeOffset: fi() - C3 }), I3(typeof DragEvent < "u" && e4 instanceof DragEvent ? ii.Drag : e4 instanceof MouseEvent ? ii.MouseMove : ii.TouchMove);
4548
+ C3 || (C3 = yi()), x3.push({ x: u4, y: w4, id: m3.getId(a4), timeOffset: yi() - C3 }), I3(typeof DragEvent < "u" && e4 instanceof DragEvent ? ci.Drag : e4 instanceof MouseEvent ? ci.MouseMove : ci.TouchMove);
4531
4549
  }), w3, { trailing: false })), O3 = [G("mousemove", _3, u3), G("touchmove", _3, u3), G("drag", _3, u3)];
4532
4550
  return M(() => {
4533
4551
  O3.forEach((e4) => e4());
@@ -4543,7 +4561,7 @@
4543
4561
  function p(e4) {
4544
4562
  let u4 = tt(e4);
4545
4563
  const _4 = e4.isTrusted, E4 = u4 && u4.tagName;
4546
- if (u4 && "OPTION" === E4 && (u4 = u4.parentElement), !u4 || !E4 || gi.indexOf(E4) < 0 || Z(u4, m3, w3, true) || u4.classList.contains(b3) || C3 && u4.matches(C3)) return;
4564
+ if (u4 && "OPTION" === E4 && (u4 = u4.parentElement), !u4 || !E4 || Ii.indexOf(E4) < 0 || Z(u4, m3, w3, true) || u4.classList.contains(b3) || C3 && u4.matches(C3)) return;
4547
4565
  let D4 = u4.value, F4 = false;
4548
4566
  const U4 = Yt(u4) || "", { value: B2, masked: $2 } = Zt({ element: u4, maskInputOptions: x3, tagName: E4, type: U4, value: D4, maskInputFn: I3 });
4549
4567
  D4 = B2, ("radio" === U4 || "checkbox" === U4) && (F4 = u4.checked), f2(u4, O3 ? { text: D4, isChecked: F4, masked: $2, userTriggered: _4 } : { text: D4, isChecked: F4, masked: $2 });
@@ -4556,9 +4574,9 @@
4556
4574
  });
4557
4575
  }
4558
4576
  function f2(a4, m4) {
4559
- const w4 = yi.get(a4);
4577
+ const w4 = Li.get(a4);
4560
4578
  if (!w4 || w4.text !== m4.text || w4.isChecked !== m4.isChecked || w4.masked !== m4.masked) {
4561
- yi.set(a4, m4);
4579
+ Li.set(a4, m4);
4562
4580
  const w5 = u3.getId(a4);
4563
4581
  M(e3)({ ...m4, id: w5 });
4564
4582
  }
@@ -4583,7 +4601,7 @@
4583
4601
  const { value: e4, masked: a5 } = Zt({ element: w4, maskInputOptions: u3, tagName: x3, type: I3, value: _3, maskInputFn: m3 });
4584
4602
  _3 = e4, b3 = a5;
4585
4603
  }
4586
- e3({ source: ii.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e4) => {
4604
+ e3({ source: ci.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e4) => {
4587
4605
  var a5;
4588
4606
  const u4 = [];
4589
4607
  for (; e4; ) {
@@ -4611,7 +4629,7 @@
4611
4629
  if (!C4 || Z(C4, a3, u3, true)) return;
4612
4630
  const { currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 } = C4;
4613
4631
  e3({ type: b4, id: m3.getId(C4), currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 });
4614
- }), w3.media || 500)), x3 = [G("play", C3(ui.Play), b3), G("pause", C3(ui.Pause), b3), G("seeked", C3(ui.Seeked), b3), G("volumechange", C3(ui.VolumeChange), b3), G("ratechange", C3(ui.RateChange), b3)];
4632
+ }), w3.media || 500)), x3 = [G("play", C3(hi.Play), b3), G("pause", C3(hi.Pause), b3), G("seeked", C3(hi.Seeked), b3), G("volumechange", C3(hi.VolumeChange), b3), G("ratechange", C3(hi.RateChange), b3)];
4615
4633
  return M(() => {
4616
4634
  x3.forEach((e4) => e4());
4617
4635
  });
@@ -4732,7 +4750,7 @@
4732
4750
  })(e2), U2 = [];
4733
4751
  for (const a3 of e2.plugins) U2.push(a3.observer(a3.callback, u2, a3.options));
4734
4752
  return M(() => {
4735
- mi.forEach((e3) => e3.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d(), g2(), h(), D2(), F2(), O2(), U2.forEach((e3) => e3());
4753
+ Mi.forEach((e3) => e3.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d(), g2(), h(), D2(), F2(), O2(), U2.forEach((e3) => e3());
4736
4754
  });
4737
4755
  }
4738
4756
  function ft(e2) {
@@ -4741,29 +4759,29 @@
4741
4759
  function mt(e2) {
4742
4760
  return !!(typeof window[e2] < "u" && window[e2].prototype && "insertRule" in window[e2].prototype && "deleteRule" in window[e2].prototype);
4743
4761
  }
4744
- const Mi = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Ii = typeof self < "u" && self.Blob && new Blob([(Li = Mi, Uint8Array.from(atob(Li), (e2) => e2.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4745
- var Li;
4762
+ const Ri = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Ai = typeof self < "u" && self.Blob && new Blob([(Ti = Ri, Uint8Array.from(atob(Ti), (e2) => e2.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4763
+ var Ti;
4746
4764
  function uu(e2) {
4747
4765
  let a2;
4748
4766
  try {
4749
- if (a2 = Ii && (self.URL || self.webkitURL).createObjectURL(Ii), !a2) throw "";
4767
+ if (a2 = Ai && (self.URL || self.webkitURL).createObjectURL(Ai), !a2) throw "";
4750
4768
  const u2 = new Worker(a2, { name: null == e2 ? void 0 : e2.name });
4751
4769
  return u2.addEventListener("error", () => {
4752
4770
  (self.URL || self.webkitURL).revokeObjectURL(a2);
4753
4771
  }), u2;
4754
4772
  } catch {
4755
- return new Worker("data:text/javascript;base64," + Mi, { name: null == e2 ? void 0 : e2.name });
4773
+ return new Worker("data:text/javascript;base64," + Ri, { name: null == e2 ? void 0 : e2.name });
4756
4774
  } finally {
4757
4775
  a2 && (self.URL || self.webkitURL).revokeObjectURL(a2);
4758
4776
  }
4759
4777
  }
4760
- for (var Ri = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ai = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Ti = 0; Ti < 64; Ti++) Ai[Ri.charCodeAt(Ti)] = Ti;
4761
- const Ni = /* @__PURE__ */ new Map();
4778
+ for (var Ni = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Pi = typeof Uint8Array > "u" ? [] : new Uint8Array(256), qi = 0; qi < 64; qi++) Pi[Ni.charCodeAt(qi)] = qi;
4779
+ const Hi = /* @__PURE__ */ new Map();
4762
4780
  const Oo = (e2, a2, u2) => {
4763
4781
  if (!e2 || !Ro(e2, a2) && "object" != typeof e2) return;
4764
4782
  const m2 = (function pu(e3, a3) {
4765
- let u3 = Ni.get(e3);
4766
- return u3 || (u3 = /* @__PURE__ */ new Map(), Ni.set(e3, u3)), u3.has(a3) || u3.set(a3, []), u3.get(a3);
4783
+ let u3 = Hi.get(e3);
4784
+ return u3 || (u3 = /* @__PURE__ */ new Map(), Hi.set(e3, u3)), u3.has(a3) || u3.set(a3, []), u3.get(a3);
4767
4785
  })(u2, e2.constructor.name);
4768
4786
  let w2 = m2.indexOf(e2);
4769
4787
  return -1 === w2 && (w2 = m2.length, m2.push(e2)), w2;
@@ -4775,7 +4793,7 @@
4775
4793
  if (e2 instanceof ArrayBuffer) {
4776
4794
  const a3 = e2.constructor.name, u3 = (function(e3) {
4777
4795
  var a4, u4 = new Uint8Array(e3), m2 = u4.length, w2 = "";
4778
- for (a4 = 0; a4 < m2; a4 += 3) w2 += Ri[u4[a4] >> 2], w2 += Ri[(3 & u4[a4]) << 4 | u4[a4 + 1] >> 4], w2 += Ri[(15 & u4[a4 + 1]) << 2 | u4[a4 + 2] >> 6], w2 += Ri[63 & u4[a4 + 2]];
4796
+ for (a4 = 0; a4 < m2; a4 += 3) w2 += Ni[u4[a4] >> 2], w2 += Ni[(3 & u4[a4]) << 4 | u4[a4 + 1] >> 4], w2 += Ni[(15 & u4[a4 + 1]) << 2 | u4[a4 + 2] >> 6], w2 += Ni[63 & u4[a4 + 2]];
4779
4797
  return m2 % 3 == 2 ? w2 = w2.substring(0, w2.length - 1) + "=" : m2 % 3 == 1 && (w2 = w2.substring(0, w2.length - 2) + "=="), w2;
4780
4798
  })(e2);
4781
4799
  return { rr_type: a3, base64: u3 };
@@ -4872,7 +4890,7 @@
4872
4890
  const { id: a3 } = e3.data;
4873
4891
  if (C2.set(a3, false), !("base64" in e3.data)) return;
4874
4892
  const { base64: u3, type: m3, width: w3, height: b3 } = e3.data;
4875
- this.mutationCb({ id: a3, type: ci["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u3 }], type: m3 }] }, 0, 0] }] });
4893
+ this.mutationCb({ id: a3, type: di["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u3 }], type: m3 }] }, 0, 0] }] });
4876
4894
  };
4877
4895
  const I2 = 1e3 / e2;
4878
4896
  let _2, O2 = 0;
@@ -4908,14 +4926,14 @@
4908
4926
  return function(...b5) {
4909
4927
  return Z(this.canvas, u3, m3, true) || setTimeout(() => {
4910
4928
  const u4 = Eo(b5, a3, this);
4911
- e3(this.canvas, { type: ci["2D"], property: C2, args: u4 });
4929
+ e3(this.canvas, { type: di["2D"], property: C2, args: u4 });
4912
4930
  }, 0), w4.apply(this, b5);
4913
4931
  };
4914
4932
  });
4915
4933
  w3.push(b4);
4916
4934
  } catch {
4917
4935
  const u4 = qt(a3.CanvasRenderingContext2D.prototype, C2, { set(a4) {
4918
- e3(this.canvas, { type: ci["2D"], property: C2, args: [a4], setter: true });
4936
+ e3(this.canvas, { type: di["2D"], property: C2, args: [a4], setter: true });
4919
4937
  } });
4920
4938
  w3.push(u4);
4921
4939
  }
@@ -4924,7 +4942,7 @@
4924
4942
  };
4925
4943
  })(this.processMutation.bind(this), e2, a2, u2), b2 = (function mu(e3, a3, u3, m3) {
4926
4944
  const w3 = [];
4927
- return w3.push(...tr(a3.WebGLRenderingContext.prototype, ci.WebGL, e3, u3, m3, a3)), typeof a3.WebGL2RenderingContext < "u" && w3.push(...tr(a3.WebGL2RenderingContext.prototype, ci.WebGL2, e3, u3, m3, a3)), () => {
4945
+ return w3.push(...tr(a3.WebGLRenderingContext.prototype, di.WebGL, e3, u3, m3, a3)), typeof a3.WebGL2RenderingContext < "u" && w3.push(...tr(a3.WebGL2RenderingContext.prototype, di.WebGL2, e3, u3, m3, a3)), () => {
4928
4946
  w3.forEach((e4) => e4());
4929
4947
  };
4930
4948
  })(this.processMutation.bind(this), e2, a2, u2);
@@ -5035,23 +5053,23 @@
5035
5053
  trackStylesheetInLinkElement(e2) {
5036
5054
  }
5037
5055
  }
5038
- let Pi, qi, Hi, Ji = false;
5039
- var Xi;
5056
+ let Ji, Xi, Qi, ea = false;
5057
+ var ta;
5040
5058
  try {
5041
5059
  if (2 !== Array.from([1], (e2) => 2 * e2)[0]) {
5042
5060
  const e2 = document.createElement("iframe");
5043
- document.body.appendChild(e2), Array.from = (null == (Xi = e2.contentWindow) ? void 0 : Xi.Array.from) || Array.from, document.body.removeChild(e2);
5061
+ document.body.appendChild(e2), Array.from = (null == (ta = e2.contentWindow) ? void 0 : ta.Array.from) || Array.from, document.body.removeChild(e2);
5044
5062
  }
5045
- } catch (Li2) {
5046
- console.debug("Unable to override Array.from", Li2);
5063
+ } catch (Ti2) {
5064
+ console.debug("Unable to override Array.from", Ti2);
5047
5065
  }
5048
- const Qi = (function Ci() {
5049
- return new gt();
5066
+ const na = (function Ci() {
5067
+ return new St();
5050
5068
  })();
5051
5069
  function ae(e2 = {}) {
5052
5070
  const { emit: a2, checkoutEveryNms: u2, 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" === e2.recordAfter ? e2.recordAfter : "load", userTriggeredOnInput: Q2 = false, collectFonts: ee2 = false, inlineImages: te2 = false, plugins: ne2, keepIframeSrcFn: re2 = () => false, ignoreCSSAttributes: oe2 = /* @__PURE__ */ new Set([]), errorHandler: se2 } = e2;
5053
5071
  !(function Bl(e3) {
5054
- hi = e3;
5072
+ gi = e3;
5055
5073
  })(se2);
5056
5074
  const ie2 = !Y2 || window.parent === window;
5057
5075
  let le2 = false;
@@ -5063,7 +5081,7 @@
5063
5081
  if (ie2 && !a2) throw new Error("emit function is required");
5064
5082
  if (!ie2 && !le2) return () => {
5065
5083
  };
5066
- void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), Qi.reset();
5084
+ void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), na.reset();
5067
5085
  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 || {};
5068
5086
  !(function Ul(e3 = window) {
5069
5087
  "NodeList" in e3 && !e3.NodeList.prototype.forEach && (e3.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in e3 && !e3.DOMTokenList.prototype.forEach && (e3.DOMTokenList.prototype.forEach = Array.prototype.forEach), Node.prototype.contains || (Node.prototype.contains = (...e4) => {
@@ -5080,57 +5098,57 @@
5080
5098
  for (const a3 of ne2 || []) a3.eventProcessor && (e3 = a3.eventProcessor(e3));
5081
5099
  return z2 && !le2 && (e3 = z2(e3)), e3;
5082
5100
  };
5083
- Pi = (e3, w3) => {
5101
+ Ji = (e3, w3) => {
5084
5102
  var b3;
5085
5103
  const C3 = e3;
5086
- if (C3.timestamp = fi(), null != (b3 = mi[0]) && b3.isFrozen() && C3.type !== si.FullSnapshot && !(C3.type === si.IncrementalSnapshot && C3.data.source === ii.Mutation) && mi.forEach((e4) => e4.unfreeze()), ie2) null == a2 || a2(vn(C3), w3);
5104
+ if (C3.timestamp = yi(), null != (b3 = Mi[0]) && b3.isFrozen() && C3.type !== li.FullSnapshot && !(C3.type === li.IncrementalSnapshot && C3.data.source === ci.Mutation) && Mi.forEach((e4) => e4.unfreeze()), ie2) null == a2 || a2(vn(C3), w3);
5087
5105
  else if (le2) {
5088
5106
  const e4 = { type: "@sailfish-rrweb/rrweb", event: vn(C3), origin: window.location.origin, isCheckout: w3 };
5089
5107
  window.parent.postMessage(e4, "*");
5090
5108
  }
5091
- if (C3.type === si.FullSnapshot) de2 = C3, he2 = 0;
5092
- else if (C3.type === si.IncrementalSnapshot) {
5093
- if (C3.data.source === ii.Mutation && C3.data.isAttachIframe) return;
5109
+ if (C3.type === li.FullSnapshot) de2 = C3, he2 = 0;
5110
+ else if (C3.type === li.IncrementalSnapshot) {
5111
+ if (C3.data.source === ci.Mutation && C3.data.isAttachIframe) return;
5094
5112
  he2++;
5095
5113
  const e4 = m2 && he2 >= m2, a3 = u2 && C3.timestamp - de2.timestamp > u2;
5096
- (e4 || a3) && qi(true);
5114
+ (e4 || a3) && Xi(true);
5097
5115
  }
5098
5116
  };
5099
5117
  const rt = (e3) => {
5100
- Pi({ type: si.IncrementalSnapshot, data: { source: ii.Mutation, ...e3 } });
5101
- }, kn = (e3) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Scroll, ...e3 } }), Cn = (e3) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.CanvasMutation, ...e3 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e3) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.AdoptedStyleSheet, ...e3 } }) }), ge2 = new Vl({ mirror: Qi, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Pi });
5102
- for (const e3 of ne2 || []) e3.getMirror && e3.getMirror({ nodeMirror: Qi, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5118
+ Ji({ type: li.IncrementalSnapshot, data: { source: ci.Mutation, ...e3 } });
5119
+ }, kn = (e3) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.Scroll, ...e3 } }), Cn = (e3) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.CanvasMutation, ...e3 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e3) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.AdoptedStyleSheet, ...e3 } }) }), ge2 = new Vl({ mirror: na, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Ji });
5120
+ for (const e3 of ne2 || []) e3.getMirror && e3.getMirror({ nodeMirror: na, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5103
5121
  const ye2 = new yu();
5104
- Hi = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: Qi, sampling: j2.canvas, dataURLOptions: V2 });
5105
- const we2 = new wu({ mutationCb: rt, scrollCb: kn, bypassOptions: { blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskInputOptions: ce2, dataURLOptions: V2, maskTextFn: B2, maskInputFn: U2, recordCanvas: J2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: Hi, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: Qi });
5106
- qi = (e3 = false) => {
5122
+ Qi = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: na, sampling: j2.canvas, dataURLOptions: V2 });
5123
+ const we2 = new wu({ mutationCb: rt, scrollCb: kn, bypassOptions: { blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskInputOptions: ce2, dataURLOptions: V2, maskTextFn: B2, maskInputFn: U2, recordCanvas: J2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: Qi, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: na });
5124
+ Xi = (e3 = false) => {
5107
5125
  if (!H2) return;
5108
- Pi({ type: si.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e3), me2.reset(), we2.init(), mi.forEach((e4) => e4.lock());
5126
+ Ji({ type: li.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e3), me2.reset(), we2.init(), Mi.forEach((e4) => e4.lock());
5109
5127
  const a3 = (function Zi(e4, a4) {
5110
- const { mirror: u3 = new gt(), blockClass: m3 = "rr-block", blockSelector: w3 = null, maskTextClass: b3 = "rr-mask", maskTextSelector: C3 = null, inlineStylesheet: x3 = true, inlineImages: I3 = false, recordCanvas: _3 = false, maskAllInputs: O3 = false, maskTextFn: E3, maskInputFn: D3, slimDOM: F3 = false, dataURLOptions: U3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3 = () => false } = a4 || {};
5128
+ const { mirror: u3 = new St(), 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 } = a4 || {};
5111
5129
  return Se(e4, { doc: e4, mirror: u3, 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 });
5112
- })(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: (e4) => {
5113
- wo(e4, Qi) && ge2.addIframe(e4), bo(e4, Qi) && me2.trackLinkElement(e4), Fs(e4) && we2.addShadowRoot(e4.shadowRoot, document);
5130
+ })(document, { mirror: na, 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: (e4) => {
5131
+ wo(e4, na) && ge2.addIframe(e4), bo(e4, na) && me2.trackLinkElement(e4), Fs(e4) && we2.addShadowRoot(e4.shadowRoot, document);
5114
5132
  }, onIframeLoad: (e4, a4) => {
5115
5133
  ge2.attachIframe(e4, a4), we2.observeAttachShadow(e4);
5116
5134
  }, onStylesheetLoad: (e4, a4) => {
5117
5135
  me2.attachLinkElement(e4, a4);
5118
5136
  }, keepIframeSrcFn: re2 });
5119
5137
  if (!a3) return console.warn("Failed to snapshot the document");
5120
- Pi({ type: si.FullSnapshot, data: { node: a3, initialOffset: po(window) } }, e3), mi.forEach((e4) => e4.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, Qi.getId(document));
5138
+ Ji({ type: li.FullSnapshot, data: { node: a3, initialOffset: po(window) } }, e3), Mi.forEach((e4) => e4.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, na.getId(document));
5121
5139
  };
5122
5140
  try {
5123
5141
  const e3 = [], K = (e4) => {
5124
5142
  var a3;
5125
- return M(au)({ mutationCb: rt, mousemoveCb: (e5, a4) => Pi({ type: si.IncrementalSnapshot, data: { source: a4, positions: e5 } }), mouseInteractionCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.MouseInteraction, ...e5 } }), scrollCb: kn, viewportResizeCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.ViewportResize, ...e5 } }), inputCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Input, ...e5 } }), mediaInteractionCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.MediaInteraction, ...e5 } }), styleSheetRuleCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.StyleSheetRule, ...e5 } }), styleDeclarationCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.StyleDeclaration, ...e5 } }), canvasMutationCb: Cn, fontCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Font, ...e5 } }), selectionCb: (e5) => {
5126
- Pi({ type: si.IncrementalSnapshot, data: { source: ii.Selection, ...e5 } });
5143
+ return M(au)({ mutationCb: rt, mousemoveCb: (e5, a4) => Ji({ type: li.IncrementalSnapshot, data: { source: a4, positions: e5 } }), mouseInteractionCb: (e5) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.MouseInteraction, ...e5 } }), scrollCb: kn, viewportResizeCb: (e5) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.ViewportResize, ...e5 } }), inputCb: (e5) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.Input, ...e5 } }), mediaInteractionCb: (e5) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.MediaInteraction, ...e5 } }), styleSheetRuleCb: (e5) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.StyleSheetRule, ...e5 } }), styleDeclarationCb: (e5) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.StyleDeclaration, ...e5 } }), canvasMutationCb: Cn, fontCb: (e5) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.Font, ...e5 } }), selectionCb: (e5) => {
5144
+ Ji({ type: li.IncrementalSnapshot, data: { source: ci.Selection, ...e5 } });
5127
5145
  }, customElementCb: (e5) => {
5128
- Pi({ type: si.IncrementalSnapshot, data: { source: ii.CustomElement, ...e5 } });
5146
+ Ji({ type: li.IncrementalSnapshot, data: { source: ci.CustomElement, ...e5 } });
5129
5147
  }, typingCb: (e5) => {
5130
- Pi({ type: si.IncrementalSnapshot, data: { ...e5 } });
5148
+ Ji({ type: li.IncrementalSnapshot, data: { ...e5 } });
5131
5149
  }, deviceChangeCb: (e5) => {
5132
- Pi({ type: si.Device, data: { ...e5 } });
5133
- }, 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: e4, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: Qi, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Hi, ignoreCSSAttributes: oe2, plugins: (null == (a3 = null == ne2 ? void 0 : ne2.filter((e5) => e5.observer)) ? void 0 : a3.map((e5) => ({ observer: e5.observer, options: e5.options, callback: (a4) => Pi({ type: si.Plugin, data: { plugin: e5.name, payload: a4 } }) }))) || [] }, $2);
5150
+ Ji({ type: li.Device, data: { ...e5 } });
5151
+ }, 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: e4, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: na, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Qi, ignoreCSSAttributes: oe2, plugins: (null == (a3 = null == ne2 ? void 0 : ne2.filter((e5) => e5.observer)) ? void 0 : a3.map((e5) => ({ observer: e5.observer, options: e5.options, callback: (a4) => Ji({ type: li.Plugin, data: { plugin: e5.name, payload: a4 } }) }))) || [] }, $2);
5134
5152
  };
5135
5153
  ge2.addLoadListener((a3) => {
5136
5154
  try {
@@ -5140,15 +5158,15 @@
5140
5158
  }
5141
5159
  });
5142
5160
  const W = () => {
5143
- qi(), e3.push(K(document)), Ji = true;
5161
+ Xi(), e3.push(K(document)), ea = true;
5144
5162
  };
5145
5163
  return "interactive" === document.readyState || "complete" === document.readyState ? W() : (e3.push(G("DOMContentLoaded", () => {
5146
- Pi({ type: si.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5164
+ Ji({ type: li.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5147
5165
  })), e3.push(G("load", () => {
5148
- Pi({ type: si.Load, data: {} }), "load" === X2 && W();
5166
+ Ji({ type: li.Load, data: {} }), "load" === X2 && W();
5149
5167
  }, window))), () => {
5150
- e3.forEach((e4) => e4()), ye2.destroy(), Ji = false, (function jl() {
5151
- hi = void 0;
5168
+ e3.forEach((e4) => e4()), ye2.destroy(), ea = false, (function jl() {
5169
+ gi = void 0;
5152
5170
  })();
5153
5171
  };
5154
5172
  } catch (e3) {
@@ -5175,24 +5193,24 @@
5175
5193
  }), u2;
5176
5194
  }
5177
5195
  ae.addCustomEvent = (e2, a2) => {
5178
- if (!Ji) throw new Error("please add custom event after start recording");
5179
- Pi({ type: si.Custom, data: { tag: e2, payload: a2 } });
5196
+ if (!ea) throw new Error("please add custom event after start recording");
5197
+ Ji({ type: li.Custom, data: { tag: e2, payload: a2 } });
5180
5198
  }, ae.addSailfishEvent = (e2, a2) => {
5181
- if (!Ji) throw new Error("please add Sailfish event after start recording");
5182
- Pi({ type: e2, data: { tag: "sailfish-zendesk-test-tag", payload: a2 } });
5199
+ if (!ea) throw new Error("please add Sailfish event after start recording");
5200
+ Ji({ type: e2, data: { tag: "sailfish-zendesk-test-tag", payload: a2 } });
5183
5201
  }, ae.freezePage = () => {
5184
- mi.forEach((e2) => e2.freeze());
5202
+ Mi.forEach((e2) => e2.freeze());
5185
5203
  }, ae.takeFullSnapshot = (e2) => {
5186
- if (!Ji) throw new Error("please take full snapshot after start recording");
5187
- qi(e2);
5188
- }, ae.mirror = Qi;
5189
- var ea = { exports: {} }, ta = String, Lo = function() {
5190
- return { isColorSupported: false, reset: ta, bold: ta, dim: ta, italic: ta, underline: ta, inverse: ta, hidden: ta, strikethrough: ta, black: ta, red: ta, green: ta, yellow: ta, blue: ta, magenta: ta, cyan: ta, white: ta, gray: ta, bgBlack: ta, bgRed: ta, bgGreen: ta, bgYellow: ta, bgBlue: ta, bgMagenta: ta, bgCyan: ta, bgWhite: ta, blackBright: ta, redBright: ta, greenBright: ta, yellowBright: ta, blueBright: ta, magentaBright: ta, cyanBright: ta, whiteBright: ta, bgBlackBright: ta, bgRedBright: ta, bgGreenBright: ta, bgYellowBright: ta, bgBlueBright: ta, bgMagentaBright: ta, bgCyanBright: ta, bgWhiteBright: ta };
5204
+ if (!ea) throw new Error("please take full snapshot after start recording");
5205
+ Xi(e2);
5206
+ }, ae.mirror = na;
5207
+ var ra = { exports: {} }, oa = String, Lo = function() {
5208
+ return { isColorSupported: false, reset: oa, bold: oa, dim: oa, italic: oa, underline: oa, inverse: oa, hidden: oa, strikethrough: oa, black: oa, red: oa, green: oa, yellow: oa, blue: oa, magenta: oa, cyan: oa, white: oa, gray: oa, bgBlack: oa, bgRed: oa, bgGreen: oa, bgYellow: oa, bgBlue: oa, bgMagenta: oa, bgCyan: oa, bgWhite: oa, blackBright: oa, redBright: oa, greenBright: oa, yellowBright: oa, blueBright: oa, magentaBright: oa, cyanBright: oa, whiteBright: oa, bgBlackBright: oa, bgRedBright: oa, bgGreenBright: oa, bgYellowBright: oa, bgBlueBright: oa, bgMagentaBright: oa, bgCyanBright: oa, bgWhiteBright: oa };
5191
5209
  };
5192
- ea.exports = Lo(), ea.exports.createColors = Lo;
5193
- var na = ea.exports;
5194
- const ra = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5195
- let oa = na, sa = ra, ia = class To extends Error {
5210
+ ra.exports = Lo(), ra.exports.createColors = Lo;
5211
+ var sa = ra.exports;
5212
+ const ia = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5213
+ let aa = sa, la = ia, ca = class To extends Error {
5196
5214
  constructor(e2, a2, u2, m2, w2, b2) {
5197
5215
  super(e2), this.name = "CssSyntaxError", this.reason = e2, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a2 < "u" && typeof u2 < "u" && ("number" == typeof a2 ? (this.line = a2, this.column = u2) : (this.line = a2.line, this.column = a2.column, this.endLine = u2.line, this.endColumn = u2.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, To);
5198
5216
  }
@@ -5202,11 +5220,11 @@
5202
5220
  showSourceCode(e2) {
5203
5221
  if (!this.source) return "";
5204
5222
  let a2 = this.source;
5205
- null == e2 && (e2 = oa.isColorSupported);
5223
+ null == e2 && (e2 = aa.isColorSupported);
5206
5224
  let n = (e3) => e3, r = (e3) => e3, i = (e3) => e3;
5207
5225
  if (e2) {
5208
- let { bold: e3, gray: a3, red: u3 } = oa.createColors(true);
5209
- r = (a4) => e3(u3(a4)), n = (e4) => a3(e4), sa && (i = (e4) => sa(e4));
5226
+ let { bold: e3, gray: a3, red: u3 } = aa.createColors(true);
5227
+ r = (a4) => e3(u3(a4)), n = (e4) => a3(e4), la && (i = (e4) => la(e4));
5210
5228
  }
5211
5229
  let u2 = a2.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u2.length), b2 = String(w2).length;
5212
5230
  return u2.slice(m2, w2).map((e3, a3) => {
@@ -5227,10 +5245,10 @@
5227
5245
  return e2 && (e2 = "\n\n" + e2 + "\n"), this.name + ": " + this.message + e2;
5228
5246
  }
5229
5247
  };
5230
- var aa = ia;
5231
- ia.default = ia;
5232
- const la = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5233
- let ca = class {
5248
+ var ua = ca;
5249
+ ca.default = ca;
5250
+ const pa = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5251
+ let ha = class {
5234
5252
  constructor(e2) {
5235
5253
  this.builder = e2;
5236
5254
  }
@@ -5282,7 +5300,7 @@
5282
5300
  if (u2 || (u2 = a2), a2 && (m2 = e2.raws[a2], typeof m2 < "u")) return m2;
5283
5301
  let w2 = e2.parent;
5284
5302
  if ("before" === u2 && (!w2 || "root" === w2.type && w2.first === e2 || w2 && "document" === w2.type)) return "";
5285
- if (!w2) return la[u2];
5303
+ if (!w2) return pa[u2];
5286
5304
  let b2 = e2.root();
5287
5305
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u2] < "u") return b2.rawCache[u2];
5288
5306
  if ("before" === u2 || "after" === u2) return this.beforeAfter(e2, u2);
@@ -5294,7 +5312,7 @@
5294
5312
  if (m2 = e3.raws[a2], typeof m2 < "u") return false;
5295
5313
  });
5296
5314
  }
5297
- return typeof m2 > "u" && (m2 = la[u2]), b2.rawCache[u2] = m2, m2;
5315
+ return typeof m2 > "u" && (m2 = pa[u2]), b2.rawCache[u2] = m2, m2;
5298
5316
  }
5299
5317
  rawBeforeClose(e2) {
5300
5318
  let a2;
@@ -5370,17 +5388,17 @@
5370
5388
  this[e2.type](e2, a2);
5371
5389
  }
5372
5390
  };
5373
- var ua = ca;
5374
- ca.default = ca;
5375
- let pa = ua;
5391
+ var fa = ha;
5392
+ ha.default = ha;
5393
+ let ma = fa;
5376
5394
  function zs(e2, a2) {
5377
- new pa(a2).stringify(e2);
5395
+ new ma(a2).stringify(e2);
5378
5396
  }
5379
- var ha = zs;
5397
+ var ga = zs;
5380
5398
  zs.default = zs;
5381
- var fa = {};
5382
- fa.isClean = Symbol("isClean"), fa.my = Symbol("my");
5383
- let ma = aa, ga = ua, ya = ha, { isClean: wa, my: Sa } = fa;
5399
+ var ya = {};
5400
+ ya.isClean = Symbol("isClean"), ya.my = Symbol("my");
5401
+ let wa = ua, Sa = fa, ba = ga, { isClean: va, my: Ca } = ya;
5384
5402
  function Bs(e2, a2) {
5385
5403
  let u2 = new e2.constructor();
5386
5404
  for (let m2 in e2) {
@@ -5402,12 +5420,12 @@
5402
5420
  }
5403
5421
  return w2;
5404
5422
  }
5405
- let ba = class {
5423
+ let ka = class {
5406
5424
  get proxyOf() {
5407
5425
  return this;
5408
5426
  }
5409
5427
  constructor(e2 = {}) {
5410
- this.raws = {}, this[wa] = false, this[Sa] = true;
5428
+ this.raws = {}, this[va] = false, this[Ca] = true;
5411
5429
  for (let a2 in e2) if ("nodes" === a2) {
5412
5430
  this.nodes = [];
5413
5431
  for (let u2 of e2[a2]) "function" == typeof u2.clone ? this.append(u2.clone()) : this.append(u2);
@@ -5451,19 +5469,19 @@
5451
5469
  let { end: u2, start: m2 } = this.rangeBy(a2);
5452
5470
  return this.source.input.error(e2, { column: m2.column, line: m2.line }, { column: u2.column, line: u2.line }, a2);
5453
5471
  }
5454
- return new ma(e2);
5472
+ return new wa(e2);
5455
5473
  }
5456
5474
  getProxyProcessor() {
5457
5475
  return { get: (e2, a2) => "proxyOf" === a2 ? e2 : "root" === a2 ? () => e2.root().toProxy() : e2[a2], set: (e2, a2, u2) => (e2[a2] === u2 || (e2[a2] = u2, ("prop" === a2 || "value" === a2 || "name" === a2 || "params" === a2 || "important" === a2 || "text" === a2) && e2.markDirty()), true) };
5458
5476
  }
5459
5477
  markClean() {
5460
- this[wa] = true;
5478
+ this[va] = true;
5461
5479
  }
5462
5480
  markDirty() {
5463
- if (this[wa]) {
5464
- this[wa] = false;
5481
+ if (this[va]) {
5482
+ this[va] = false;
5465
5483
  let e2 = this;
5466
- for (; e2 = e2.parent; ) e2[wa] = false;
5484
+ for (; e2 = e2.parent; ) e2[va] = false;
5467
5485
  }
5468
5486
  }
5469
5487
  next() {
@@ -5499,7 +5517,7 @@
5499
5517
  return (u2.line < a2.line || u2.line === a2.line && u2.column <= a2.column) && (u2 = { column: a2.column + 1, line: a2.line }), { end: u2, start: a2 };
5500
5518
  }
5501
5519
  raw(e2, a2) {
5502
- return new ga().raw(this, e2, a2);
5520
+ return new Sa().raw(this, e2, a2);
5503
5521
  }
5504
5522
  remove() {
5505
5523
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -5536,7 +5554,7 @@
5536
5554
  toProxy() {
5537
5555
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
5538
5556
  }
5539
- toString(e2 = ya) {
5557
+ toString(e2 = ba) {
5540
5558
  e2.stringify && (e2 = e2.stringify);
5541
5559
  let a2 = "";
5542
5560
  return e2(this, (e3) => {
@@ -5549,16 +5567,16 @@
5549
5567
  return e2.warn(a2, m2);
5550
5568
  }
5551
5569
  };
5552
- var va = ba;
5553
- ba.default = ba;
5554
- let Ca = va, ka = class extends Ca {
5570
+ var xa = ka;
5571
+ ka.default = ka;
5572
+ let Ma = xa, Ia = class extends Ma {
5555
5573
  constructor(e2) {
5556
5574
  super(e2), this.type = "comment";
5557
5575
  }
5558
5576
  };
5559
- var xa = ka;
5560
- ka.default = ka;
5561
- let Ma = va, Ia = class extends Ma {
5577
+ var _a = Ia;
5578
+ Ia.default = Ia;
5579
+ let Oa = xa, Ea = class extends Oa {
5562
5580
  get variable() {
5563
5581
  return this.prop.startsWith("--") || "$" === this.prop[0];
5564
5582
  }
@@ -5566,16 +5584,16 @@
5566
5584
  e2 && typeof e2.value < "u" && "string" != typeof e2.value && (e2 = { ...e2, value: String(e2.value) }), super(e2), this.type = "decl";
5567
5585
  }
5568
5586
  };
5569
- var _a = Ia;
5570
- Ia.default = Ia;
5571
- let Oa, Ea, La, Ra, Aa = xa, Ta = _a, Na = va, { isClean: Pa, my: Da } = fa;
5587
+ var La = Ea;
5588
+ Ea.default = Ea;
5589
+ let Ra, Aa, Ta, Na, Pa = _a, Da = La, Fa = xa, { isClean: Ua, my: Ba } = ya;
5572
5590
  function Wo(e2) {
5573
5591
  return e2.map((e3) => (e3.nodes && (e3.nodes = Wo(e3.nodes)), delete e3.source, e3));
5574
5592
  }
5575
5593
  function zo(e2) {
5576
- if (e2[Pa] = false, e2.proxyOf.nodes) for (let a2 of e2.proxyOf.nodes) zo(a2);
5594
+ if (e2[Ua] = false, e2.proxyOf.nodes) for (let a2 of e2.proxyOf.nodes) zo(a2);
5577
5595
  }
5578
- let Fa = class Bo extends Na {
5596
+ let $a = class Bo extends Fa {
5579
5597
  get first() {
5580
5598
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
5581
5599
  }
@@ -5627,7 +5645,7 @@
5627
5645
  return this.markDirty(), this;
5628
5646
  }
5629
5647
  normalize(e2, a2) {
5630
- if ("string" == typeof e2) e2 = Wo(Ea(e2).nodes);
5648
+ if ("string" == typeof e2) e2 = Wo(Aa(e2).nodes);
5631
5649
  else if (typeof e2 > "u") e2 = [];
5632
5650
  else if (Array.isArray(e2)) {
5633
5651
  e2 = e2.slice(0);
@@ -5638,14 +5656,14 @@
5638
5656
  } else if (e2.type) e2 = [e2];
5639
5657
  else if (e2.prop) {
5640
5658
  if (typeof e2.value > "u") throw new Error("Value field is missed in node creation");
5641
- "string" != typeof e2.value && (e2.value = String(e2.value)), e2 = [new Ta(e2)];
5642
- } else if (e2.selector || e2.selectors) e2 = [new Ra(e2)];
5643
- else if (e2.name) e2 = [new Oa(e2)];
5659
+ "string" != typeof e2.value && (e2.value = String(e2.value)), e2 = [new Da(e2)];
5660
+ } else if (e2.selector || e2.selectors) e2 = [new Na(e2)];
5661
+ else if (e2.name) e2 = [new Ra(e2)];
5644
5662
  else {
5645
5663
  if (!e2.text) throw new Error("Unknown node type in node creation");
5646
- e2 = [new Aa(e2)];
5664
+ e2 = [new Pa(e2)];
5647
5665
  }
5648
- return e2.map((e3) => (e3[Da] || Bo.rebuild(e3), (e3 = e3.proxyOf).parent && e3.parent.removeChild(e3), e3[Pa] && zo(e3), e3.raws || (e3.raws = {}), typeof e3.raws.before > "u" && a2 && typeof a2.raws.before < "u" && (e3.raws.before = a2.raws.before.replace(/\S/g, "")), e3.parent = this.proxyOf, e3));
5666
+ return e2.map((e3) => (e3[Ba] || Bo.rebuild(e3), (e3 = e3.proxyOf).parent && e3.parent.removeChild(e3), e3[Ua] && zo(e3), e3.raws || (e3.raws = {}), typeof e3.raws.before > "u" && a2 && typeof a2.raws.before < "u" && (e3.raws.before = a2.raws.before.replace(/\S/g, "")), e3.parent = this.proxyOf, e3));
5649
5667
  }
5650
5668
  prepend(...e2) {
5651
5669
  e2 = e2.reverse();
@@ -5721,22 +5739,22 @@
5721
5739
  }));
5722
5740
  }
5723
5741
  };
5724
- Fa.registerParse = (e2) => {
5725
- Ea = e2;
5726
- }, Fa.registerRule = (e2) => {
5742
+ $a.registerParse = (e2) => {
5743
+ Aa = e2;
5744
+ }, $a.registerRule = (e2) => {
5745
+ Na = e2;
5746
+ }, $a.registerAtRule = (e2) => {
5727
5747
  Ra = e2;
5728
- }, Fa.registerAtRule = (e2) => {
5729
- Oa = e2;
5730
- }, Fa.registerRoot = (e2) => {
5731
- La = e2;
5748
+ }, $a.registerRoot = (e2) => {
5749
+ Ta = e2;
5732
5750
  };
5733
- var Ua = Fa;
5734
- Fa.default = Fa, Fa.rebuild = (e2) => {
5735
- "atrule" === e2.type ? Object.setPrototypeOf(e2, Oa.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Ra.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, Ta.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Aa.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, La.prototype), e2[Da] = true, e2.nodes && e2.nodes.forEach((e3) => {
5736
- Fa.rebuild(e3);
5751
+ var Wa = $a;
5752
+ $a.default = $a, $a.rebuild = (e2) => {
5753
+ "atrule" === e2.type ? Object.setPrototypeOf(e2, Ra.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Na.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, Da.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Pa.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, Ta.prototype), e2[Ba] = true, e2.nodes && e2.nodes.forEach((e3) => {
5754
+ $a.rebuild(e3);
5737
5755
  });
5738
5756
  };
5739
- let Ba = Ua, $a = class extends Ba {
5757
+ let za = Wa, ja = class extends za {
5740
5758
  constructor(e2) {
5741
5759
  super(e2), this.type = "atrule";
5742
5760
  }
@@ -5747,38 +5765,38 @@
5747
5765
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e2);
5748
5766
  }
5749
5767
  };
5750
- var Wa = $a;
5751
- $a.default = $a, Ba.registerAtRule($a);
5752
- let za, ja, Ga = Ua, Va = class extends Ga {
5768
+ var Ga = ja;
5769
+ ja.default = ja, za.registerAtRule(ja);
5770
+ let Va, qa, Za = Wa, Ka = class extends Za {
5753
5771
  constructor(e2) {
5754
5772
  super({ type: "document", ...e2 }), this.nodes || (this.nodes = []);
5755
5773
  }
5756
5774
  toResult(e2 = {}) {
5757
- return new za(new ja(), this, e2).stringify();
5775
+ return new Va(new qa(), this, e2).stringify();
5758
5776
  }
5759
5777
  };
5760
- Va.registerLazyResult = (e2) => {
5761
- za = e2;
5762
- }, Va.registerProcessor = (e2) => {
5763
- ja = e2;
5778
+ Ka.registerLazyResult = (e2) => {
5779
+ Va = e2;
5780
+ }, Ka.registerProcessor = (e2) => {
5781
+ qa = e2;
5764
5782
  };
5765
- var qa = Va;
5766
- Va.default = Va;
5767
- var Za = { nanoid: (e2 = 21) => {
5783
+ var Ja = Ka;
5784
+ Ka.default = Ka;
5785
+ var Ya = { nanoid: (e2 = 21) => {
5768
5786
  let a2 = "", u2 = 0 | e2;
5769
5787
  for (; u2--; ) a2 += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
5770
5788
  return a2;
5771
5789
  } };
5772
- let { existsSync: Ka, readFileSync: Ja } = ra, { dirname: Ya, join: Qa } = ra, { SourceMapConsumer: el, SourceMapGenerator: tl } = ra;
5773
- let nl = class {
5790
+ let { existsSync: Qa, readFileSync: el } = ia, { dirname: tl, join: nl } = ia, { SourceMapConsumer: rl, SourceMapGenerator: ol } = ia;
5791
+ let sl = class {
5774
5792
  constructor(e2, a2) {
5775
5793
  if (false === a2.map) return;
5776
5794
  this.loadAnnotation(e2), this.inline = this.startWith(this.annotation, "data:");
5777
5795
  let u2 = a2.map ? a2.map.prev : void 0, m2 = this.loadMap(a2.from, u2);
5778
- !this.mapFile && a2.from && (this.mapFile = a2.from), this.mapFile && (this.root = Ya(this.mapFile)), m2 && (this.text = m2);
5796
+ !this.mapFile && a2.from && (this.mapFile = a2.from), this.mapFile && (this.root = tl(this.mapFile)), m2 && (this.text = m2);
5779
5797
  }
5780
5798
  consumer() {
5781
- return this.consumerCache || (this.consumerCache = new el(this.text)), this.consumerCache;
5799
+ return this.consumerCache || (this.consumerCache = new rl(this.text)), this.consumerCache;
5782
5800
  }
5783
5801
  decodeInline(e2) {
5784
5802
  let a2 = e2.match(/^data:application\/json;charset=utf-?8,/) || e2.match(/^data:application\/json,/);
@@ -5803,15 +5821,15 @@
5803
5821
  u2 > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e2.substring(u2, m2)));
5804
5822
  }
5805
5823
  loadFile(e2) {
5806
- if (this.root = Ya(e2), Ka(e2)) return this.mapFile = e2, Ja(e2, "utf-8").toString().trim();
5824
+ if (this.root = tl(e2), Qa(e2)) return this.mapFile = e2, el(e2, "utf-8").toString().trim();
5807
5825
  }
5808
5826
  loadMap(e2, a2) {
5809
5827
  if (false === a2) return false;
5810
5828
  if (a2) {
5811
5829
  if ("string" == typeof a2) return a2;
5812
5830
  if ("function" != typeof a2) {
5813
- if (a2 instanceof el) return tl.fromSourceMap(a2).toString();
5814
- if (a2 instanceof tl) return a2.toString();
5831
+ if (a2 instanceof rl) return ol.fromSourceMap(a2).toString();
5832
+ if (a2 instanceof ol) return a2.toString();
5815
5833
  if (this.isMap(a2)) return JSON.stringify(a2);
5816
5834
  throw new Error("Unsupported previous source map format: " + a2.toString());
5817
5835
  }
@@ -5827,7 +5845,7 @@
5827
5845
  if (this.inline) return this.decodeInline(this.annotation);
5828
5846
  if (this.annotation) {
5829
5847
  let a3 = this.annotation;
5830
- return e2 && (a3 = Qa(Ya(e2), a3)), this.loadFile(a3);
5848
+ return e2 && (a3 = nl(tl(e2), a3)), this.loadFile(a3);
5831
5849
  }
5832
5850
  }
5833
5851
  }
@@ -5838,23 +5856,23 @@
5838
5856
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
5839
5857
  }
5840
5858
  };
5841
- var rl = nl;
5842
- nl.default = nl;
5843
- let { nanoid: ol } = Za, { isAbsolute: sl, resolve: il } = ra, { SourceMapConsumer: al, SourceMapGenerator: ll } = ra, { fileURLToPath: cl, pathToFileURL: ul } = ra, pl = aa, dl = rl, hl = ra, fl = Symbol("fromOffsetCache"), ml = !(!al || !ll), gl = !(!il || !sl), yl = class {
5859
+ var il = sl;
5860
+ sl.default = sl;
5861
+ let { nanoid: al } = Ya, { isAbsolute: ll, resolve: cl } = ia, { SourceMapConsumer: ul, SourceMapGenerator: pl } = ia, { fileURLToPath: dl, pathToFileURL: hl } = ia, fl = ua, ml = il, gl = ia, yl = Symbol("fromOffsetCache"), wl = !(!ul || !pl), Sl = !(!cl || !ll), bl = class {
5844
5862
  get from() {
5845
5863
  return this.file || this.id;
5846
5864
  }
5847
5865
  constructor(e2, a2 = {}) {
5848
5866
  if (null === e2 || typeof e2 > "u" || "object" == typeof e2 && !e2.toString) throw new Error(`PostCSS received ${e2} instead of CSS string`);
5849
- if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a2.document && (this.document = a2.document.toString()), a2.from && (!gl || /^\w+:\/\//.test(a2.from) || sl(a2.from) ? this.file = a2.from : this.file = il(a2.from)), gl && ml) {
5850
- let e3 = new dl(this.css, a2);
5867
+ if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a2.document && (this.document = a2.document.toString()), a2.from && (!Sl || /^\w+:\/\//.test(a2.from) || ll(a2.from) ? this.file = a2.from : this.file = cl(a2.from)), Sl && wl) {
5868
+ let e3 = new ml(this.css, a2);
5851
5869
  if (e3.text) {
5852
5870
  this.map = e3;
5853
5871
  let a3 = e3.consumer().file;
5854
5872
  !this.file && a3 && (this.file = this.mapResolve(a3));
5855
5873
  }
5856
5874
  }
5857
- this.file || (this.id = "<input css " + ol(6) + ">"), this.map && (this.map.file = this.from);
5875
+ this.file || (this.id = "<input css " + al(6) + ">"), this.map && (this.map.file = this.from);
5858
5876
  }
5859
5877
  error(e2, a2, u2, m2 = {}) {
5860
5878
  let w2, b2, C2;
@@ -5873,17 +5891,17 @@
5873
5891
  a2 = e3.line, u2 = e3.col;
5874
5892
  }
5875
5893
  let x2 = this.origin(a2, u2, b2, w2);
5876
- return C2 = x2 ? new pl(e2, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new pl(e2, void 0 === b2 ? a2 : { column: u2, line: a2 }, void 0 === b2 ? u2 : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u2, endColumn: w2, endLine: b2, line: a2, source: this.css }, this.file && (ul && (C2.input.url = ul(this.file).toString()), C2.input.file = this.file), C2;
5894
+ return C2 = x2 ? new fl(e2, 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 fl(e2, void 0 === b2 ? a2 : { column: u2, line: a2 }, void 0 === b2 ? u2 : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u2, endColumn: w2, endLine: b2, line: a2, source: this.css }, this.file && (hl && (C2.input.url = hl(this.file).toString()), C2.input.file = this.file), C2;
5877
5895
  }
5878
5896
  fromOffset(e2) {
5879
5897
  let a2, u2;
5880
- if (this[fl]) u2 = this[fl];
5898
+ if (this[yl]) u2 = this[yl];
5881
5899
  else {
5882
5900
  let e3 = this.css.split("\n");
5883
5901
  u2 = new Array(e3.length);
5884
5902
  let a3 = 0;
5885
5903
  for (let m3 = 0, w2 = e3.length; m3 < w2; m3++) u2[m3] = a3, a3 += e3[m3].length + 1;
5886
- this[fl] = u2;
5904
+ this[yl] = u2;
5887
5905
  }
5888
5906
  a2 = u2[u2.length - 1];
5889
5907
  let m2 = 0;
@@ -5902,17 +5920,17 @@
5902
5920
  return { col: e2 - u2[m2] + 1, line: m2 + 1 };
5903
5921
  }
5904
5922
  mapResolve(e2) {
5905
- return /^\w+:\/\//.test(e2) ? e2 : il(this.map.consumer().sourceRoot || this.map.root || ".", e2);
5923
+ return /^\w+:\/\//.test(e2) ? e2 : cl(this.map.consumer().sourceRoot || this.map.root || ".", e2);
5906
5924
  }
5907
5925
  origin(e2, a2, u2, m2) {
5908
5926
  if (!this.map) return false;
5909
5927
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a2, line: e2 });
5910
5928
  if (!x2.source) return false;
5911
- "number" == typeof u2 && (w2 = C2.originalPositionFor({ column: m2, line: u2 })), b2 = sl(x2.source) ? ul(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ul(this.map.mapFile));
5929
+ "number" == typeof u2 && (w2 = C2.originalPositionFor({ column: m2, line: u2 })), b2 = ll(x2.source) ? hl(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || hl(this.map.mapFile));
5912
5930
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
5913
5931
  if ("file:" === b2.protocol) {
5914
- if (!cl) throw new Error("file: protocol is not available in this PostCSS build");
5915
- I2.file = cl(b2);
5932
+ if (!dl) throw new Error("file: protocol is not available in this PostCSS build");
5933
+ I2.file = dl(b2);
5916
5934
  }
5917
5935
  let _2 = C2.sourceContentFor(x2.source);
5918
5936
  return _2 && (I2.source = _2), I2;
@@ -5923,9 +5941,9 @@
5923
5941
  return this.map && (e2.map = { ...this.map }, e2.map.consumerCache && (e2.map.consumerCache = void 0)), e2;
5924
5942
  }
5925
5943
  };
5926
- var wl = yl;
5927
- yl.default = yl, hl && hl.registerInput && hl.registerInput(yl);
5928
- let Sl, bl, vl = Ua, Cl = class extends vl {
5944
+ var vl = bl;
5945
+ bl.default = bl, gl && gl.registerInput && gl.registerInput(bl);
5946
+ let Cl, kl, xl = Wa, Ml = class extends xl {
5929
5947
  constructor(e2) {
5930
5948
  super(e2), this.type = "root", this.nodes || (this.nodes = []);
5931
5949
  }
@@ -5942,29 +5960,29 @@
5942
5960
  return !a2 && 0 === u2 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u2].raws.before), super.removeChild(e2);
5943
5961
  }
5944
5962
  toResult(e2 = {}) {
5945
- return new Sl(new bl(), this, e2).stringify();
5963
+ return new Cl(new kl(), this, e2).stringify();
5946
5964
  }
5947
5965
  };
5948
- Cl.registerLazyResult = (e2) => {
5949
- Sl = e2;
5950
- }, Cl.registerProcessor = (e2) => {
5951
- bl = e2;
5966
+ Ml.registerLazyResult = (e2) => {
5967
+ Cl = e2;
5968
+ }, Ml.registerProcessor = (e2) => {
5969
+ kl = e2;
5952
5970
  };
5953
- var kl = Cl;
5954
- Cl.default = Cl, vl.registerRoot(Cl);
5955
- let xl = { comma: (e2) => xl.split(e2, [","], true), space(e2) {
5971
+ var Il = Ml;
5972
+ Ml.default = Ml, xl.registerRoot(Ml);
5973
+ let Ol = { comma: (e2) => Ol.split(e2, [","], true), space(e2) {
5956
5974
  let a2 = [" ", "\n", " "];
5957
- return xl.split(e2, a2);
5975
+ return Ol.split(e2, a2);
5958
5976
  }, split(e2, a2, u2) {
5959
5977
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
5960
5978
  for (let u3 of e2) _2 ? _2 = false : "\\" === u3 ? _2 = true : x2 ? u3 === I2 && (x2 = false) : '"' === u3 || "'" === u3 ? (x2 = true, I2 = u3) : "(" === u3 ? C2 += 1 : ")" === u3 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a2.includes(u3) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u3;
5961
5979
  return (u2 || "" !== w2) && m2.push(w2.trim()), m2;
5962
5980
  } };
5963
- var Ml = xl;
5964
- xl.default = xl;
5965
- let Il = Ua, Ol = Ml, El = class extends Il {
5981
+ var El = Ol;
5982
+ Ol.default = Ol;
5983
+ let Ll = Wa, Rl = El, Al = class extends Ll {
5966
5984
  get selectors() {
5967
- return Ol.comma(this.selector);
5985
+ return Rl.comma(this.selector);
5968
5986
  }
5969
5987
  set selectors(e2) {
5970
5988
  let a2 = this.selector ? this.selector.match(/,\s*/) : null, u2 = a2 ? a2[0] : "," + this.raw("between", "beforeOpen");
@@ -5974,34 +5992,34 @@
5974
5992
  super(e2), this.type = "rule", this.nodes || (this.nodes = []);
5975
5993
  }
5976
5994
  };
5977
- var Ll = El;
5978
- El.default = El, Il.registerRule(El);
5979
- let Rl = Wa, Al = xa, Tl = _a, Nl = wl, Pl = rl, Dl = kl, Jl = Ll;
5995
+ var Tl = Al;
5996
+ Al.default = Al, Ll.registerRule(Al);
5997
+ let Nl = Ga, Pl = _a, Dl = La, Jl = vl, ec = il, tc = Il, nc = Tl;
5980
5998
  function Ke(e2, a2) {
5981
5999
  if (Array.isArray(e2)) return e2.map((e3) => Ke(e3));
5982
6000
  let { inputs: u2, ...m2 } = e2;
5983
6001
  if (u2) {
5984
6002
  a2 = [];
5985
6003
  for (let e3 of u2) {
5986
- let u3 = { ...e3, __proto__: Nl.prototype };
5987
- u3.map && (u3.map = { ...u3.map, __proto__: Pl.prototype }), a2.push(u3);
6004
+ let u3 = { ...e3, __proto__: Jl.prototype };
6005
+ u3.map && (u3.map = { ...u3.map, __proto__: ec.prototype }), a2.push(u3);
5988
6006
  }
5989
6007
  }
5990
6008
  if (m2.nodes && (m2.nodes = e2.nodes.map((e3) => Ke(e3, a2))), m2.source) {
5991
6009
  let { inputId: e3, ...u3 } = m2.source;
5992
6010
  m2.source = u3, null != e3 && (m2.source.input = a2[e3]);
5993
6011
  }
5994
- if ("root" === m2.type) return new Dl(m2);
5995
- if ("decl" === m2.type) return new Tl(m2);
5996
- if ("rule" === m2.type) return new Jl(m2);
5997
- if ("comment" === m2.type) return new Al(m2);
5998
- if ("atrule" === m2.type) return new Rl(m2);
6012
+ if ("root" === m2.type) return new tc(m2);
6013
+ if ("decl" === m2.type) return new Dl(m2);
6014
+ if ("rule" === m2.type) return new nc(m2);
6015
+ if ("comment" === m2.type) return new Pl(m2);
6016
+ if ("atrule" === m2.type) return new Nl(m2);
5999
6017
  throw new Error("Unknown node type: " + e2.type);
6000
6018
  }
6001
- var ec = Ke;
6019
+ var rc = Ke;
6002
6020
  Ke.default = Ke;
6003
- let { dirname: tc, relative: nc, resolve: rc, sep: oc } = ra, { SourceMapConsumer: sc, SourceMapGenerator: ic } = ra, { pathToFileURL: ac } = ra, lc = wl, cc = !(!sc || !ic), uc = !!(tc && rc && nc && oc);
6004
- var pc = class {
6021
+ let { dirname: oc, relative: sc, resolve: ic, sep: ac } = ia, { SourceMapConsumer: lc, SourceMapGenerator: cc } = ia, { pathToFileURL: uc } = ia, pc = vl, dc = !(!lc || !cc), hc = !!(oc && ic && sc && ac);
6022
+ var fc = class {
6005
6023
  constructor(e2, a2, u2, m2) {
6006
6024
  this.stringify = e2, this.mapOpts = u2.map || {}, this.root = a2, this.opts = u2, 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();
6007
6025
  }
@@ -6013,8 +6031,8 @@
6013
6031
  }
6014
6032
  applyPrevMaps() {
6015
6033
  for (let e2 of this.previous()) {
6016
- let a2, u2 = this.toUrl(this.path(e2.file)), m2 = e2.root || tc(e2.file);
6017
- false === this.mapOpts.sourcesContent ? (a2 = new sc(e2.text), a2.sourcesContent && (a2.sourcesContent = null)) : a2 = e2.consumer(), this.map.applySourceMap(a2, u2, this.toUrl(this.path(m2)));
6034
+ let a2, u2 = this.toUrl(this.path(e2.file)), m2 = e2.root || oc(e2.file);
6035
+ false === this.mapOpts.sourcesContent ? (a2 = new lc(e2.text), a2.sourcesContent && (a2.sourcesContent = null)) : a2 = e2.consumer(), this.map.applySourceMap(a2, u2, this.toUrl(this.path(m2)));
6018
6036
  }
6019
6037
  }
6020
6038
  clearAnnotation() {
@@ -6024,7 +6042,7 @@
6024
6042
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
6025
6043
  }
6026
6044
  generate() {
6027
- if (this.clearAnnotation(), uc && cc && this.isMap()) return this.generateMap();
6045
+ if (this.clearAnnotation(), hc && dc && this.isMap()) return this.generateMap();
6028
6046
  {
6029
6047
  let e2 = "";
6030
6048
  return this.stringify(this.root, (a2) => {
@@ -6036,12 +6054,12 @@
6036
6054
  if (this.root) this.generateString();
6037
6055
  else if (1 === this.previous().length) {
6038
6056
  let e2 = this.previous()[0].consumer();
6039
- e2.file = this.outputFile(), this.map = ic.fromSourceMap(e2, { ignoreInvalidMapping: true });
6040
- } else this.map = new ic({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
6057
+ e2.file = this.outputFile(), this.map = cc.fromSourceMap(e2, { ignoreInvalidMapping: true });
6058
+ } else this.map = new cc({ 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>" });
6041
6059
  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];
6042
6060
  }
6043
6061
  generateString() {
6044
- this.css = "", this.map = new ic({ file: this.outputFile(), ignoreInvalidMapping: true });
6062
+ this.css = "", this.map = new cc({ file: this.outputFile(), ignoreInvalidMapping: true });
6045
6063
  let e2, a2, u2 = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
6046
6064
  this.stringify(this.root, (C2, x2, I2) => {
6047
6065
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u2, 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))), a2 = C2.match(/\n/g), a2 ? (u2 += a2.length, e2 = C2.lastIndexOf("\n"), m2 = C2.length - e2) : m2 += C2.length, x2 && "start" !== I2) {
@@ -6071,9 +6089,9 @@
6071
6089
  if (this.mapOpts.absolute || 60 === e2.charCodeAt(0) || /^\w+:\/\//.test(e2)) return e2;
6072
6090
  let a2 = this.memoizedPaths.get(e2);
6073
6091
  if (a2) return a2;
6074
- let u2 = this.opts.to ? tc(this.opts.to) : ".";
6075
- "string" == typeof this.mapOpts.annotation && (u2 = tc(rc(u2, this.mapOpts.annotation)));
6076
- let m2 = nc(u2, e2);
6092
+ let u2 = this.opts.to ? oc(this.opts.to) : ".";
6093
+ "string" == typeof this.mapOpts.annotation && (u2 = oc(ic(u2, this.mapOpts.annotation)));
6094
+ let m2 = sc(u2, e2);
6077
6095
  return this.memoizedPaths.set(e2, m2), m2;
6078
6096
  }
6079
6097
  previous() {
@@ -6084,7 +6102,7 @@
6084
6102
  }
6085
6103
  });
6086
6104
  else {
6087
- let e2 = new lc(this.originalCSS, this.opts);
6105
+ let e2 = new pc(this.originalCSS, this.opts);
6088
6106
  e2.map && this.previousMaps.push(e2.map);
6089
6107
  }
6090
6108
  return this.previousMaps;
@@ -6115,8 +6133,8 @@
6115
6133
  toFileUrl(e2) {
6116
6134
  let a2 = this.memoizedFileURLs.get(e2);
6117
6135
  if (a2) return a2;
6118
- if (ac) {
6119
- let a3 = ac(e2).toString();
6136
+ if (uc) {
6137
+ let a3 = uc(e2).toString();
6120
6138
  return this.memoizedFileURLs.set(e2, a3), a3;
6121
6139
  }
6122
6140
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -6124,13 +6142,13 @@
6124
6142
  toUrl(e2) {
6125
6143
  let a2 = this.memoizedURLs.get(e2);
6126
6144
  if (a2) return a2;
6127
- "\\" === oc && (e2 = e2.replace(/\\/g, "/"));
6145
+ "\\" === ac && (e2 = e2.replace(/\\/g, "/"));
6128
6146
  let u2 = encodeURI(e2).replace(/[#?]/g, encodeURIComponent);
6129
6147
  return this.memoizedURLs.set(e2, u2), u2;
6130
6148
  }
6131
6149
  };
6132
- const dc = /[\t\n\f\r "#'()/;[\\\]{}]/g, hc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, fc = /.[\r\n"'(/\\]/, mc = /[\da-f]/i;
6133
- let gc = Wa, yc = xa, wc = _a, Sc = kl, bc = Ll, kc = function(e2, a2 = {}) {
6150
+ const mc = /[\t\n\f\r "#'()/;[\\\]{}]/g, gc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, yc = /.[\r\n"'(/\\]/, wc = /[\da-f]/i;
6151
+ let Sc = Ga, bc = _a, vc = La, xc = Il, Mc = Tl, kc = function(e2, a2 = {}) {
6134
6152
  let u2, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e2.css.valueOf(), F2 = a2.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
6135
6153
  function y2(a3) {
6136
6154
  throw e2.error("Unclosed " + a3, B2);
@@ -6180,7 +6198,7 @@
6180
6198
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
6181
6199
  } while (I2);
6182
6200
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6183
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || fc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6201
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || yc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6184
6202
  break;
6185
6203
  case 39:
6186
6204
  case 34:
@@ -6198,31 +6216,31 @@
6198
6216
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6199
6217
  break;
6200
6218
  case 64:
6201
- dc.lastIndex = B2 + 1, dc.test(D2), b2 = 0 === dc.lastIndex ? D2.length - 1 : dc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6219
+ mc.lastIndex = B2 + 1, mc.test(D2), b2 = 0 === mc.lastIndex ? D2.length - 1 : mc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6202
6220
  break;
6203
6221
  case 92:
6204
6222
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
6205
- if (u2 = D2.charCodeAt(b2 + 1), w2 && 47 !== u2 && 32 !== u2 && 10 !== u2 && 9 !== u2 && 13 !== u2 && 12 !== u2 && (b2 += 1, mc.test(D2.charAt(b2)))) {
6206
- for (; mc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6223
+ if (u2 = D2.charCodeAt(b2 + 1), w2 && 47 !== u2 && 32 !== u2 && 10 !== u2 && 9 !== u2 && 13 !== u2 && 12 !== u2 && (b2 += 1, wc.test(D2.charAt(b2)))) {
6224
+ for (; wc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6207
6225
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
6208
6226
  }
6209
6227
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6210
6228
  break;
6211
6229
  default:
6212
- 47 === u2 && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a3 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (hc.lastIndex = B2 + 1, hc.test(D2), b2 = 0 === hc.lastIndex ? D2.length - 1 : hc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6230
+ 47 === u2 && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a3 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (gc.lastIndex = B2 + 1, gc.test(D2), b2 = 0 === gc.lastIndex ? D2.length - 1 : gc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6213
6231
  }
6214
6232
  return B2++, x2;
6215
6233
  }, position: function S() {
6216
6234
  return B2;
6217
6235
  } };
6218
6236
  };
6219
- const vc = { empty: true, space: true };
6220
- var xc = class {
6237
+ const Ic = { empty: true, space: true };
6238
+ var _c = class {
6221
6239
  constructor(e2) {
6222
- this.input = e2, this.root = new Sc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e2, start: { column: 1, line: 1, offset: 0 } };
6240
+ this.input = e2, this.root = new xc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e2, start: { column: 1, line: 1, offset: 0 } };
6223
6241
  }
6224
6242
  atrule(e2) {
6225
- let a2 = new gc();
6243
+ let a2 = new Sc();
6226
6244
  a2.name = e2[1].slice(1), "" === a2.name && this.unnamedAtrule(a2, e2), this.init(a2, e2[2]);
6227
6245
  let u2, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
6228
6246
  for (; !this.tokenizer.endOfFile(); ) {
@@ -6274,7 +6292,7 @@
6274
6292
  return false;
6275
6293
  }
6276
6294
  comment(e2) {
6277
- let a2 = new yc();
6295
+ let a2 = new bc();
6278
6296
  this.init(a2, e2[2]), a2.source.end = this.getPosition(e2[3] || e2[2]), a2.source.end.offset++;
6279
6297
  let u2 = e2[1].slice(2, -2);
6280
6298
  if (/^\s*$/.test(u2)) a2.text = "", a2.raws.left = u2, a2.raws.right = "";
@@ -6287,7 +6305,7 @@
6287
6305
  this.tokenizer = kc(this.input);
6288
6306
  }
6289
6307
  decl(e2, a2) {
6290
- let u2 = new wc();
6308
+ let u2 = new vc();
6291
6309
  this.init(u2, e2[0][2]);
6292
6310
  let m2, w2 = e2[e2.length - 1];
6293
6311
  for (";" === w2[0] && (this.semicolon = true, e2.pop()), u2.source.end = this.getPosition(w2[3] || w2[2] || (function Cc(e3) {
@@ -6336,7 +6354,7 @@
6336
6354
  throw this.input.error("Double colon", { offset: e2[2] }, { offset: e2[2] + e2[1].length });
6337
6355
  }
6338
6356
  emptyRule(e2) {
6339
- let a2 = new bc();
6357
+ let a2 = new Mc();
6340
6358
  this.init(a2, e2[2]), a2.selector = "", a2.raws.between = "", this.current = a2;
6341
6359
  }
6342
6360
  end(e2) {
@@ -6412,7 +6430,7 @@
6412
6430
  }
6413
6431
  raw(e2, a2, u2, m2) {
6414
6432
  let w2, b2, C2, x2, I2 = u2.length, _2 = "", O2 = true;
6415
- for (let e3 = 0; e3 < I2; e3 += 1) w2 = u2[e3], b2 = w2[0], "space" !== b2 || e3 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u2[e3 - 1] ? u2[e3 - 1][0] : "empty", C2 = u2[e3 + 1] ? u2[e3 + 1][0] : "empty", vc[x2] || vc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6433
+ for (let e3 = 0; e3 < I2; e3 += 1) w2 = u2[e3], b2 = w2[0], "space" !== b2 || e3 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u2[e3 - 1] ? u2[e3 - 1][0] : "empty", C2 = u2[e3 + 1] ? u2[e3 + 1][0] : "empty", Ic[x2] || Ic[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6416
6434
  if (!O2) {
6417
6435
  let m3 = u2.reduce((e3, a3) => e3 + a3[1], "");
6418
6436
  e2.raws[a2] = { raw: m3, value: _2 };
@@ -6421,7 +6439,7 @@
6421
6439
  }
6422
6440
  rule(e2) {
6423
6441
  e2.pop();
6424
- let a2 = new bc();
6442
+ let a2 = new Mc();
6425
6443
  this.init(a2, e2[0][2]), a2.raws.between = this.spacesAndCommentsFromEnd(e2), this.raw(a2, "selector", e2), this.current = a2;
6426
6444
  }
6427
6445
  spacesAndCommentsFromEnd(e2) {
@@ -6461,9 +6479,9 @@
6461
6479
  throw this.input.error("At-rule without name", { offset: a2[2] }, { offset: a2[2] + a2[1].length });
6462
6480
  }
6463
6481
  };
6464
- let Mc = Ua, Ic = wl, _c = xc;
6482
+ let Oc = Wa, Ec = vl, Lc = _c;
6465
6483
  function Gt(e2, a2) {
6466
- let u2 = new Ic(e2, a2), m2 = new _c(u2);
6484
+ let u2 = new Ec(e2, a2), m2 = new Lc(u2);
6467
6485
  try {
6468
6486
  m2.parse();
6469
6487
  } catch (e3) {
@@ -6471,9 +6489,9 @@
6471
6489
  }
6472
6490
  return m2.root;
6473
6491
  }
6474
- var Oc = Gt;
6475
- Gt.default = Gt, Mc.registerParse(Gt);
6476
- let Ec = class {
6492
+ var Rc = Gt;
6493
+ Gt.default = Gt, Oc.registerParse(Gt);
6494
+ let Ac = class {
6477
6495
  constructor(e2, a2 = {}) {
6478
6496
  if (this.type = "warning", this.text = e2, a2.node && a2.node.source) {
6479
6497
  let e3 = a2.node.rangeBy(a2);
@@ -6485,9 +6503,9 @@
6485
6503
  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;
6486
6504
  }
6487
6505
  };
6488
- var Lc = Ec;
6489
- Ec.default = Ec;
6490
- let Rc = Lc, Ac = class {
6506
+ var Tc = Ac;
6507
+ Ac.default = Ac;
6508
+ let Nc = Tc, Pc = class {
6491
6509
  get content() {
6492
6510
  return this.css;
6493
6511
  }
@@ -6499,26 +6517,26 @@
6499
6517
  }
6500
6518
  warn(e2, a2 = {}) {
6501
6519
  a2.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a2.plugin = this.lastPlugin.postcssPlugin);
6502
- let u2 = new Rc(e2, a2);
6520
+ let u2 = new Nc(e2, a2);
6503
6521
  return this.messages.push(u2), u2;
6504
6522
  }
6505
6523
  warnings() {
6506
6524
  return this.messages.filter((e2) => "warning" === e2.type);
6507
6525
  }
6508
6526
  };
6509
- var Tc = Ac;
6510
- Ac.default = Ac;
6511
- let Nc = {};
6527
+ var Dc = Pc;
6528
+ Pc.default = Pc;
6529
+ let Fc = {};
6512
6530
  var ni = function(e2) {
6513
- Nc[e2] || (Nc[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
6531
+ Fc[e2] || (Fc[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
6514
6532
  };
6515
- let Pc = Ua, Dc = qa, Fc = pc, Uc = Oc, Bc = Tc, $c = kl, Wc = ha, { isClean: zc, my: jc } = fa, Gc = ni;
6516
- const Vc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, qc = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, Hc = { Once: true, postcssPlugin: true, prepare: true };
6533
+ let Uc = Wa, Bc = Ja, $c = fc, Wc = Rc, zc = Dc, jc = Il, Gc = ga, { isClean: Vc, my: qc } = ya, Hc = ni;
6534
+ const Zc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Kc = { 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 };
6517
6535
  function _e(e2) {
6518
6536
  return "object" == typeof e2 && "function" == typeof e2.then;
6519
6537
  }
6520
6538
  function ri(e2) {
6521
- let a2 = false, u2 = Vc[e2.type];
6539
+ let a2 = false, u2 = Zc[e2.type];
6522
6540
  return "decl" === e2.type ? a2 = e2.prop.toLowerCase() : "atrule" === e2.type && (a2 = e2.name.toLowerCase()), a2 && e2.append ? [u2, u2 + "-" + a2, 0, u2 + "Exit", u2 + "Exit-" + a2] : a2 ? [u2, u2 + "-" + a2, u2 + "Exit", u2 + "Exit-" + a2] : e2.append ? [u2, 0, u2 + "Exit"] : [u2, u2 + "Exit"];
6523
6541
  }
6524
6542
  function br(e2) {
@@ -6526,9 +6544,9 @@
6526
6544
  return a2 = "document" === e2.type ? ["Document", 0, "DocumentExit"] : "root" === e2.type ? ["Root", 0, "RootExit"] : ri(e2), { eventIndex: 0, events: a2, iterator: 0, node: e2, visitorIndex: 0, visitors: [] };
6527
6545
  }
6528
6546
  function Js(e2) {
6529
- return e2[zc] = false, e2.nodes && e2.nodes.forEach((e3) => Js(e3)), e2;
6547
+ return e2[Vc] = false, e2.nodes && e2.nodes.forEach((e3) => Js(e3)), e2;
6530
6548
  }
6531
- let Zc = {}, Kc = class oi {
6549
+ let Yc = {}, Xc = class oi {
6532
6550
  get content() {
6533
6551
  return this.stringify().content;
6534
6552
  }
@@ -6555,19 +6573,19 @@
6555
6573
  }
6556
6574
  constructor(e2, a2, u2) {
6557
6575
  let m2;
6558
- if (this.stringified = false, this.processed = false, "object" != typeof a2 || null === a2 || "root" !== a2.type && "document" !== a2.type) if (a2 instanceof oi || a2 instanceof Bc) m2 = Js(a2.root), a2.map && (typeof u2.map > "u" && (u2.map = {}), u2.map.inline || (u2.map.inline = false), u2.map.prev = a2.map);
6576
+ if (this.stringified = false, this.processed = false, "object" != typeof a2 || null === a2 || "root" !== a2.type && "document" !== a2.type) if (a2 instanceof oi || a2 instanceof zc) m2 = Js(a2.root), a2.map && (typeof u2.map > "u" && (u2.map = {}), u2.map.inline || (u2.map.inline = false), u2.map.prev = a2.map);
6559
6577
  else {
6560
- let e3 = Uc;
6578
+ let e3 = Wc;
6561
6579
  u2.syntax && (e3 = u2.syntax.parse), u2.parser && (e3 = u2.parser), e3.parse && (e3 = e3.parse);
6562
6580
  try {
6563
6581
  m2 = e3(a2, u2);
6564
6582
  } catch (e4) {
6565
6583
  this.processed = true, this.error = e4;
6566
6584
  }
6567
- m2 && !m2[jc] && Pc.rebuild(m2);
6585
+ m2 && !m2[qc] && Uc.rebuild(m2);
6568
6586
  }
6569
6587
  else m2 = Js(a2);
6570
- this.result = new Bc(e2, m2, u2), this.helpers = { ...Zc, postcss: Zc, result: this.result }, this.plugins = this.processor.plugins.map((e3) => "object" == typeof e3 && e3.prepare ? { ...e3, ...e3.prepare(this.result) } : e3);
6588
+ this.result = new zc(e2, m2, u2), this.helpers = { ...Yc, postcss: Yc, result: this.result }, this.plugins = this.processor.plugins.map((e3) => "object" == typeof e3 && e3.prepare ? { ...e3, ...e3.prepare(this.result) } : e3);
6571
6589
  }
6572
6590
  async() {
6573
6591
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -6601,8 +6619,8 @@
6601
6619
  this.listeners[a2] || (this.listeners[a2] = []), this.listeners[a2].push([e2, u2]);
6602
6620
  };
6603
6621
  for (let e2 of this.plugins) if ("object" == typeof e2) for (let a2 in e2) {
6604
- if (!qc[a2] && /^[A-Z]/.test(a2)) throw new Error(`Unknown event ${a2} in ${e2.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6605
- if (!Hc[a2]) if ("object" == typeof e2[a2]) for (let u2 in e2[a2]) t(e2, "*" === u2 ? a2 : a2 + "-" + u2.toLowerCase(), e2[a2][u2]);
6622
+ if (!Kc[a2] && /^[A-Z]/.test(a2)) throw new Error(`Unknown event ${a2} in ${e2.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6623
+ if (!Jc[a2]) if ("object" == typeof e2[a2]) for (let u2 in e2[a2]) t(e2, "*" === u2 ? a2 : a2 + "-" + u2.toLowerCase(), e2[a2][u2]);
6606
6624
  else "function" == typeof e2[a2] && t(e2, a2, e2[a2]);
6607
6625
  }
6608
6626
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -6619,8 +6637,8 @@
6619
6637
  }
6620
6638
  if (this.prepareVisitors(), this.hasListener) {
6621
6639
  let e2 = this.result.root;
6622
- for (; !e2[zc]; ) {
6623
- e2[zc] = true;
6640
+ for (; !e2[Vc]; ) {
6641
+ e2[Vc] = true;
6624
6642
  let a2 = [br(e2)];
6625
6643
  for (; a2.length > 0; ) {
6626
6644
  let e3 = this.visitTick(a2);
@@ -6665,9 +6683,9 @@
6665
6683
  if (this.error) throw this.error;
6666
6684
  if (this.stringified) return this.result;
6667
6685
  this.stringified = true, this.sync();
6668
- let e2 = this.result.opts, a2 = Wc;
6686
+ let e2 = this.result.opts, a2 = Gc;
6669
6687
  e2.syntax && (a2 = e2.syntax.stringify), e2.stringifier && (a2 = e2.stringifier), a2.stringify && (a2 = a2.stringify);
6670
- let u2 = new Fc(a2, this.result.root, this.result.opts).generate();
6688
+ let u2 = new $c(a2, this.result.root, this.result.opts).generate();
6671
6689
  return this.result.css = u2[0], this.result.map = u2[1], this.result;
6672
6690
  }
6673
6691
  sync() {
@@ -6679,14 +6697,14 @@
6679
6697
  }
6680
6698
  if (this.prepareVisitors(), this.hasListener) {
6681
6699
  let e2 = this.result.root;
6682
- for (; !e2[zc]; ) e2[zc] = true, this.walkSync(e2);
6700
+ for (; !e2[Vc]; ) e2[Vc] = true, this.walkSync(e2);
6683
6701
  if (this.listeners.OnceExit) if ("document" === e2.type) for (let a2 of e2.nodes) this.visitSync(this.listeners.OnceExit, a2);
6684
6702
  else this.visitSync(this.listeners.OnceExit, e2);
6685
6703
  }
6686
6704
  return this.result;
6687
6705
  }
6688
6706
  then(e2, a2) {
6689
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || Gc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
6707
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || Hc("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(e2, a2);
6690
6708
  }
6691
6709
  toString() {
6692
6710
  return this.css;
@@ -6718,22 +6736,22 @@
6718
6736
  }
6719
6737
  if (0 !== a2.iterator) {
6720
6738
  let m3, w3 = a2.iterator;
6721
- for (; m3 = u2.nodes[u2.indexes[w3]]; ) if (u2.indexes[w3] += 1, !m3[zc]) return m3[zc] = true, void e2.push(br(m3));
6739
+ for (; m3 = u2.nodes[u2.indexes[w3]]; ) if (u2.indexes[w3] += 1, !m3[Vc]) return m3[Vc] = true, void e2.push(br(m3));
6722
6740
  a2.iterator = 0, delete u2.indexes[w3];
6723
6741
  }
6724
6742
  let w2 = a2.events;
6725
6743
  for (; a2.eventIndex < w2.length; ) {
6726
6744
  let e3 = w2[a2.eventIndex];
6727
- if (a2.eventIndex += 1, 0 === e3) return void (u2.nodes && u2.nodes.length && (u2[zc] = true, a2.iterator = u2.getIterator()));
6745
+ if (a2.eventIndex += 1, 0 === e3) return void (u2.nodes && u2.nodes.length && (u2[Vc] = true, a2.iterator = u2.getIterator()));
6728
6746
  if (this.listeners[e3]) return void (a2.visitors = this.listeners[e3]);
6729
6747
  }
6730
6748
  e2.pop();
6731
6749
  }
6732
6750
  walkSync(e2) {
6733
- e2[zc] = true;
6751
+ e2[Vc] = true;
6734
6752
  let a2 = ri(e2);
6735
6753
  for (let u2 of a2) if (0 === u2) e2.nodes && e2.each((e3) => {
6736
- e3[zc] || this.walkSync(e3);
6754
+ e3[Vc] || this.walkSync(e3);
6737
6755
  });
6738
6756
  else {
6739
6757
  let a3 = this.listeners[u2];
@@ -6744,14 +6762,14 @@
6744
6762
  return this.sync().warnings();
6745
6763
  }
6746
6764
  };
6747
- Kc.registerPostcss = (e2) => {
6748
- Zc = e2;
6765
+ Xc.registerPostcss = (e2) => {
6766
+ Yc = e2;
6749
6767
  };
6750
- var Jc = Kc;
6751
- Kc.default = Kc, $c.registerLazyResult(Kc), Dc.registerLazyResult(Kc);
6752
- let Yc = pc, Xc = Oc;
6753
- const Qc = Tc;
6754
- let lu = ha, cu = ni, hu = class {
6768
+ var Qc = Xc;
6769
+ Xc.default = Xc, jc.registerLazyResult(Xc), Bc.registerLazyResult(Xc);
6770
+ let lu = fc, cu = Rc;
6771
+ const hu = Dc;
6772
+ let Cu = ga, ku = ni, xu = class {
6755
6773
  get content() {
6756
6774
  return this.result.css;
6757
6775
  }
@@ -6772,7 +6790,7 @@
6772
6790
  }
6773
6791
  get root() {
6774
6792
  if (this._root) return this._root;
6775
- let e2, a2 = Xc;
6793
+ let e2, a2 = cu;
6776
6794
  try {
6777
6795
  e2 = a2(this._css, this._opts);
6778
6796
  } catch (e3) {
@@ -6786,11 +6804,11 @@
6786
6804
  }
6787
6805
  constructor(e2, a2, u2) {
6788
6806
  a2 = a2.toString(), this.stringified = false, this._processor = e2, this._css = a2, this._opts = u2, this._map = void 0;
6789
- let m2, w2 = lu;
6790
- this.result = new Qc(this._processor, m2, this._opts), this.result.css = a2;
6807
+ let m2, w2 = Cu;
6808
+ this.result = new hu(this._processor, m2, this._opts), this.result.css = a2;
6791
6809
  let b2 = this;
6792
6810
  Object.defineProperty(this.result, "root", { get: () => b2.root });
6793
- let C2 = new Yc(w2, m2, this._opts, a2);
6811
+ let C2 = new lu(w2, m2, this._opts, a2);
6794
6812
  if (C2.isMap()) {
6795
6813
  let [e3, a3] = C2.generate();
6796
6814
  e3 && (this.result.css = e3), a3 && (this.result.map = a3);
@@ -6810,7 +6828,7 @@
6810
6828
  return this.result;
6811
6829
  }
6812
6830
  then(e2, a2) {
6813
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || cu("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
6831
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || ku("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(e2, a2);
6814
6832
  }
6815
6833
  toString() {
6816
6834
  return this._css;
@@ -6819,9 +6837,9 @@
6819
6837
  return [];
6820
6838
  }
6821
6839
  };
6822
- var Cu = hu;
6823
- hu.default = hu;
6824
- let ku = qa, xu = Jc, Mu = Cu, _u = kl, Ou = class {
6840
+ var Mu = xu;
6841
+ xu.default = xu;
6842
+ let _u = Ja, Ou = Qc, Eu = Mu, Lu = Il, Ru = class {
6825
6843
  constructor(e2 = []) {
6826
6844
  this.version = "8.5.3", this.plugins = this.normalize(e2);
6827
6845
  }
@@ -6837,39 +6855,39 @@
6837
6855
  return a2;
6838
6856
  }
6839
6857
  process(e2, a2 = {}) {
6840
- return this.plugins.length || a2.parser || a2.stringifier || a2.syntax ? new xu(this, e2, a2) : new Mu(this, e2, a2);
6858
+ return this.plugins.length || a2.parser || a2.stringifier || a2.syntax ? new Ou(this, e2, a2) : new Eu(this, e2, a2);
6841
6859
  }
6842
6860
  use(e2) {
6843
6861
  return this.plugins = this.plugins.concat(this.normalize([e2])), this;
6844
6862
  }
6845
6863
  };
6846
- var Eu = Ou;
6847
- Ou.default = Ou, _u.registerProcessor(Ou), ku.registerProcessor(Ou);
6848
- let Lu = Wa, Ru = xa, Au = Ua, Tu = aa, Nu = _a, Pu = qa, Du = ec, Fu = wl, Uu = Jc, $u = Ml, Wu = va, zu = Oc, ju = Eu, Gu = Tc, Vu = kl, qu = Ll, Hu = ha, Zu = Lc;
6864
+ var Au = Ru;
6865
+ Ru.default = Ru, Lu.registerProcessor(Ru), _u.registerProcessor(Ru);
6866
+ let Tu = Ga, Nu = _a, Pu = Wa, Du = ua, Fu = La, Uu = Ja, $u = rc, Wu = vl, zu = Qc, ju = El, Gu = xa, Vu = Rc, qu = Au, Hu = Dc, Zu = Il, Ku = Tl, Ju = ga, Yu = Tc;
6849
6867
  function T$1(...e2) {
6850
- return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new ju(e2);
6868
+ return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new qu(e2);
6851
6869
  }
6852
6870
  T$1.plugin = function(e2, a2) {
6853
6871
  let u2, m2 = false;
6854
6872
  function n(...u3) {
6855
6873
  console && console.warn && !m2 && (m2 = true, console.warn(e2 + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e2 + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
6856
6874
  let w2 = a2(...u3);
6857
- return w2.postcssPlugin = e2, w2.postcssVersion = new ju().version, w2;
6875
+ return w2.postcssPlugin = e2, w2.postcssVersion = new qu().version, w2;
6858
6876
  }
6859
6877
  return Object.defineProperty(n, "postcss", { get: () => (u2 || (u2 = n()), u2) }), n.process = function(e3, a3, u3) {
6860
6878
  return T$1([n(u3)]).process(e3, a3);
6861
6879
  }, n;
6862
- }, T$1.stringify = Hu, T$1.parse = zu, T$1.fromJSON = Du, T$1.list = $u, T$1.comment = (e2) => new Ru(e2), T$1.atRule = (e2) => new Lu(e2), T$1.decl = (e2) => new Nu(e2), T$1.rule = (e2) => new qu(e2), T$1.root = (e2) => new Vu(e2), T$1.document = (e2) => new Pu(e2), T$1.CssSyntaxError = Tu, T$1.Declaration = Nu, T$1.Container = Au, T$1.Processor = ju, T$1.Document = Pu, T$1.Comment = Ru, T$1.Warning = Zu, T$1.AtRule = Lu, T$1.Result = Gu, T$1.Input = Fu, T$1.Rule = qu, T$1.Root = Vu, T$1.Node = Wu, Uu.registerPostcss(T$1);
6863
- var Ku = T$1;
6880
+ }, T$1.stringify = Ju, T$1.parse = Vu, T$1.fromJSON = $u, T$1.list = ju, T$1.comment = (e2) => new Nu(e2), T$1.atRule = (e2) => new Tu(e2), T$1.decl = (e2) => new Fu(e2), T$1.rule = (e2) => new Ku(e2), T$1.root = (e2) => new Zu(e2), T$1.document = (e2) => new Uu(e2), T$1.CssSyntaxError = Du, T$1.Declaration = Fu, T$1.Container = Pu, T$1.Processor = qu, T$1.Document = Uu, T$1.Comment = Nu, T$1.Warning = Yu, T$1.AtRule = Tu, T$1.Result = Hu, T$1.Input = Wu, T$1.Rule = Ku, T$1.Root = Zu, T$1.Node = Gu, zu.registerPostcss(T$1);
6881
+ var Xu = T$1;
6864
6882
  T$1.default = T$1;
6865
- const Ju = Su(Ku);
6866
- var Yu;
6867
- Ju.stringify, Ju.fromJSON, Ju.plugin, Ju.parse, Ju.list, Ju.document, Ju.comment, Ju.atRule, Ju.rule, Ju.decl, Ju.root, Ju.CssSyntaxError, Ju.Declaration, Ju.Container, Ju.Processor, Ju.Document, Ju.Comment, Ju.Warning, Ju.AtRule, Ju.Result, Ju.Input, Ju.Rule, Ju.Root, Ju.Node, (function(e2) {
6883
+ const Qu = Su(Xu);
6884
+ var ep;
6885
+ 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(e2) {
6868
6886
  e2[e2.NotStarted = 0] = "NotStarted", e2[e2.Running = 1] = "Running", e2[e2.Stopped = 2] = "Stopped";
6869
- })(Yu || (Yu = {}));
6870
- const { addCustomEvent: Xu } = ae, { addSailfishEvent: Qu } = ae, { freezePage: ep } = ae, { takeFullSnapshot: tp } = ae;
6871
- var np = Object.defineProperty, y = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? np(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2);
6872
- let rp = class d {
6887
+ })(ep || (ep = {}));
6888
+ const { addCustomEvent: tp } = ae, { addSailfishEvent: np } = ae, { freezePage: rp } = ae, { takeFullSnapshot: op } = ae;
6889
+ var sp = Object.defineProperty, y = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? sp(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2);
6890
+ let ip = class d {
6873
6891
  constructor(e2) {
6874
6892
  y(this, "fileName"), y(this, "functionName"), y(this, "lineNumber"), y(this, "columnNumber"), this.fileName = e2.fileName || "", this.functionName = e2.functionName || "", this.lineNumber = e2.lineNumber, this.columnNumber = e2.columnNumber;
6875
6893
  }
@@ -6878,8 +6896,8 @@
6878
6896
  return this.functionName ? `${this.functionName} (${this.fileName}:${e2}:${a2})` : `${this.fileName}:${e2}:${a2}`;
6879
6897
  }
6880
6898
  };
6881
- const op = /(^|@)\S+:\d+/, sp = /^\s*at .*(\S+:\d+|\(native\))/m, ip = /^(eval@)?(\[native code])?$/, ap = { parse: function(e2) {
6882
- return e2 ? typeof e2.stacktrace < "u" || typeof e2["opera#sourceloc"] < "u" ? this.parseOpera(e2) : e2.stack && e2.stack.match(sp) ? this.parseV8OrIE(e2) : e2.stack ? this.parseFFOrSafari(e2) : (console.warn("[console-record-plugin]: Failed to parse error object:", e2), []) : [];
6899
+ const ap = /(^|@)\S+:\d+/, lp = /^\s*at .*(\S+:\d+|\(native\))/m, cp = /^(eval@)?(\[native code])?$/, up = { parse: function(e2) {
6900
+ return e2 ? typeof e2.stacktrace < "u" || typeof e2["opera#sourceloc"] < "u" ? this.parseOpera(e2) : e2.stack && e2.stack.match(lp) ? this.parseV8OrIE(e2) : e2.stack ? this.parseFFOrSafari(e2) : (console.warn("[console-record-plugin]: Failed to parse error object:", e2), []) : [];
6883
6901
  }, extractLocation: function(e2) {
6884
6902
  if (-1 === e2.indexOf(":")) return [e2];
6885
6903
  const a2 = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e2.replace(/[()]/g, ""));
@@ -6887,23 +6905,23 @@
6887
6905
  return [a2[1], a2[2] || void 0, a2[3] || void 0];
6888
6906
  }, parseV8OrIE: function(e2) {
6889
6907
  return e2.stack.split("\n").filter(function(e3) {
6890
- return !!e3.match(sp);
6908
+ return !!e3.match(lp);
6891
6909
  }, this).map(function(e3) {
6892
6910
  e3.indexOf("(eval ") > -1 && (e3 = e3.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
6893
6911
  let a2 = e3.replace(/^\s+/, "").replace(/\(eval code/g, "(");
6894
6912
  const u2 = a2.match(/ (\((.+):(\d+):(\d+)\)$)/);
6895
6913
  a2 = u2 ? a2.replace(u2[0], "") : a2;
6896
6914
  const m2 = a2.split(/\s+/).slice(1), w2 = this.extractLocation(u2 ? u2[1] : m2.pop()), b2 = m2.join(" ") || void 0, C2 = ["eval", "<anonymous>"].indexOf(w2[0]) > -1 ? void 0 : w2[0];
6897
- return new rp({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6915
+ return new ip({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6898
6916
  }, this);
6899
6917
  }, parseFFOrSafari: function(e2) {
6900
6918
  return e2.stack.split("\n").filter(function(e3) {
6901
- return !e3.match(ip);
6919
+ return !e3.match(cp);
6902
6920
  }, this).map(function(e3) {
6903
- if (e3.indexOf(" > eval") > -1 && (e3 = e3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e3.indexOf("@") && -1 === e3.indexOf(":")) return new rp({ functionName: e3 });
6921
+ if (e3.indexOf(" > eval") > -1 && (e3 = e3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e3.indexOf("@") && -1 === e3.indexOf(":")) return new ip({ functionName: e3 });
6904
6922
  {
6905
6923
  const a2 = /((.*".+"[^@]*)?[^@]*)(?:@)/, u2 = e3.match(a2), m2 = u2 && u2[1] ? u2[1] : void 0, w2 = this.extractLocation(e3.replace(a2, ""));
6906
- return new rp({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6924
+ return new ip({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6907
6925
  }
6908
6926
  }, this);
6909
6927
  }, parseOpera: function(e2) {
@@ -6912,22 +6930,22 @@
6912
6930
  const a2 = /Line (\d+).*script (?:in )?(\S+)/i, u2 = e2.message.split("\n"), m2 = [];
6913
6931
  for (let e3 = 2, w2 = u2.length; e3 < w2; e3 += 2) {
6914
6932
  const w3 = a2.exec(u2[e3]);
6915
- w3 && m2.push(new rp({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6933
+ w3 && m2.push(new ip({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6916
6934
  }
6917
6935
  return m2;
6918
6936
  }, parseOpera10: function(e2) {
6919
6937
  const a2 = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, u2 = e2.stacktrace.split("\n"), m2 = [];
6920
6938
  for (let e3 = 0, w2 = u2.length; e3 < w2; e3 += 2) {
6921
6939
  const w3 = a2.exec(u2[e3]);
6922
- w3 && m2.push(new rp({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6940
+ w3 && m2.push(new ip({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6923
6941
  }
6924
6942
  return m2;
6925
6943
  }, parseOpera11: function(e2) {
6926
6944
  return e2.stack.split("\n").filter(function(e3) {
6927
- return !!e3.match(op) && !e3.match(/^Error created at/);
6945
+ return !!e3.match(ap) && !e3.match(/^Error created at/);
6928
6946
  }, this).map(function(e3) {
6929
6947
  const a2 = e3.split("@"), u2 = this.extractLocation(a2.pop()), m2 = (a2.shift() || "").replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0;
6930
- return new rp({ functionName: m2, fileName: u2[0], lineNumber: u2[1], columnNumber: u2[2] });
6948
+ return new ip({ functionName: m2, fileName: u2[0], lineNumber: u2[1], columnNumber: u2[2] });
6931
6949
  }, this);
6932
6950
  } };
6933
6951
  function T(e2) {
@@ -6984,9 +7002,9 @@
6984
7002
  return a3 instanceof Node ? a3 instanceof HTMLElement ? a3 ? a3.outerHTML : "" : a3.nodeName : a3 instanceof Error ? a3.stack ? a3.stack + "\nEnd of stack for Error object" : a3.name + ": " + a3.message : a3;
6985
7003
  });
6986
7004
  }
6987
- const lp = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
7005
+ const pp = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
6988
7006
  function R(e2, a2, u2) {
6989
- const m2 = u2 ? Object.assign({}, lp, u2) : lp, w2 = m2.logger;
7007
+ const m2 = u2 ? Object.assign({}, pp, u2) : pp, w2 = m2.logger;
6990
7008
  if (!w2) return () => {
6991
7009
  };
6992
7010
  let b2;
@@ -6995,7 +7013,7 @@
6995
7013
  const I2 = [];
6996
7014
  if (m2.level.includes("error")) {
6997
7015
  const l = (a3) => {
6998
- const u3 = a3.message, w3 = a3.error, b3 = ap.parse(w3).map((e3) => e3.toString()), C3 = [g(u3, m2.stringifyOptions)];
7016
+ const u3 = a3.message, w3 = a3.error, b3 = up.parse(w3).map((e3) => e3.toString()), C3 = [g(u3, m2.stringifyOptions)];
6999
7017
  e2({ level: "error", trace: b3, payload: C3 });
7000
7018
  };
7001
7019
  a2.addEventListener("error", l), I2.push(() => {
@@ -7004,7 +7022,7 @@
7004
7022
  const f = (a3) => {
7005
7023
  let u3, w3;
7006
7024
  a3.reason instanceof Error ? (u3 = a3.reason, w3 = [g(`Uncaught (in promise) ${u3.name}: ${u3.message}`, m2.stringifyOptions)]) : (u3 = new Error(), w3 = [g("Uncaught (in promise)", m2.stringifyOptions), g(a3.reason, m2.stringifyOptions)]);
7007
- const b3 = ap.parse(u3).map((e3) => e3.toString());
7025
+ const b3 = up.parse(u3).map((e3) => e3.toString());
7008
7026
  e2({ level: "error", trace: b3, payload: w3 });
7009
7027
  };
7010
7028
  a2.addEventListener("unhandledrejection", f), I2.push(() => {
@@ -7032,7 +7050,7 @@
7032
7050
  if (a4.apply(this, w3), !("assert" === u3 && w3[0] || x2)) {
7033
7051
  x2 = true;
7034
7052
  try {
7035
- const a5 = ap.parse(new Error()).map((e3) => e3.toString()).splice(1), b3 = ("assert" === u3 ? w3.slice(1) : w3).map((e3) => g(e3, m2.stringifyOptions));
7053
+ const a5 = up.parse(new Error()).map((e3) => e3.toString()).splice(1), b3 = ("assert" === u3 ? w3.slice(1) : w3).map((e3) => g(e3, m2.stringifyOptions));
7036
7054
  C2++, C2 < m2.lengthThreshold ? e2({ level: u3, trace: a5, payload: b3 }) : C2 === m2.lengthThreshold && e2({ level: "warn", trace: [], payload: [g("The number of log records reached the threshold.")] });
7037
7055
  } catch (e3) {
7038
7056
  a4("@sailfish-rrweb/rrweb logger error:", e3, ...w3);
@@ -7044,7 +7062,7 @@
7044
7062
  };
7045
7063
  }
7046
7064
  }
7047
- var cp = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(cp || {});
7065
+ var dp = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(dp || {});
7048
7066
  function suppressConsoleLogsDuringCall(e2) {
7049
7067
  const a2 = console.log, u2 = console.warn, m2 = console.error;
7050
7068
  console.log = () => {
@@ -7057,7 +7075,7 @@
7057
7075
  console.log = a2, console.warn = u2, console.error = m2;
7058
7076
  }
7059
7077
  }
7060
- const up = "zendesk_chat", pp = "Zendesk";
7078
+ const hp = "zendesk_chat", fp = "Zendesk";
7061
7079
  function zE_safe(...e2) {
7062
7080
  try {
7063
7081
  if ((function hasZendesk() {
@@ -7096,11 +7114,11 @@
7096
7114
  function initializeConsolePlugin(e2, a2) {
7097
7115
  const { name: u2, observer: m2 } = /* @__PURE__ */ ((e3) => ({ name: "@sailfish-rrweb/rrweb/console@1", observer: R, options: e3 }))(e2);
7098
7116
  m2((e3) => {
7099
- sendEvent({ type: cp.Plugin, timestamp: Date.now(), data: { plugin: u2, payload: e3 }, sessionId: a2, ...getUrlAndStoredUuids() });
7117
+ sendEvent({ type: dp.Plugin, timestamp: Date.now(), data: { plugin: u2, payload: e3 }, sessionId: a2, ...getUrlAndStoredUuids() });
7100
7118
  }, window, e2);
7101
7119
  }
7102
- async function initializeRecording(e2, a2, u2, m2) {
7103
- const w2 = initializeWebSocket(a2, u2, m2);
7120
+ async function initializeRecording(e2, a2, u2, m2, w2) {
7121
+ const b2 = initializeWebSocket(a2, u2, m2, w2);
7104
7122
  try {
7105
7123
  ae({ emit(e3) {
7106
7124
  Object.assign(e3, getUrlAndStoredUuids()), e3.sessionId = m2, sendEvent(e3);
@@ -7116,11 +7134,11 @@
7116
7134
  zE_safe("messenger:set", "conversationTags", [`sailfish-session-${m2}`]);
7117
7135
  });
7118
7136
  const handleWidgetOpen = () => {
7119
- ae.addSailfishEvent(cp.SailfishCustom, { action: "customer support chat opened", element_id: up, provider: pp });
7137
+ ae.addSailfishEvent(dp.SailfishCustom, { action: "customer support chat opened", element_id: hp, provider: fp });
7120
7138
  }, handleWidgetClose = () => {
7121
- ae.addSailfishEvent(cp.SailfishCustom, { action: "customer support chat closed", element_id: up, provider: pp });
7139
+ ae.addSailfishEvent(dp.SailfishCustom, { action: "customer support chat closed", element_id: hp, provider: fp });
7122
7140
  }, handleUnreadMessages = (e3) => {
7123
- ae.addSailfishEvent(cp.SailfishCustom, { action: "zendesk unreadmessages", element_id: up, provider: pp });
7141
+ ae.addSailfishEvent(dp.SailfishCustom, { action: "zendesk unreadmessages", element_id: hp, provider: fp });
7124
7142
  };
7125
7143
  suppressConsoleLogsDuringCall(() => {
7126
7144
  zE_safe("messenger:on", "open", handleWidgetOpen), zE_safe("messenger:on", "close", handleWidgetClose), zE_safe("messenger:on", "unreadMessages", handleUnreadMessages);
@@ -7129,10 +7147,10 @@
7129
7147
  } catch (e3) {
7130
7148
  console.error("Error importing plugins!", e3);
7131
7149
  }
7132
- return w2;
7150
+ return b2;
7133
7151
  }
7134
- let dp = null, hp = null;
7135
- const fp = readDebugFlag(), mp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], gp = [400, 403], yp = "CORS", wp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, Sp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7152
+ let mp = null, gp = null;
7153
+ const yp = readDebugFlag(), wp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], Sp = [400, 403], bp = "CORS", vp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, Cp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7136
7154
  function trackDomainChangesOnce() {
7137
7155
  const e2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7138
7156
  if (e2.routeWatcherIntervalId) return;
@@ -7199,7 +7217,7 @@
7199
7217
  return true;
7200
7218
  }
7201
7219
  for (const e3 of D) if (u2.pathname.toLowerCase().endsWith(e3)) return true;
7202
- return !!matchUrlWithWildcard(e2, [...mp, ...a2]);
7220
+ return !!matchUrlWithWildcard(e2, [...wp, ...a2]);
7203
7221
  }
7204
7222
  function setupFetchInterceptor(e2 = []) {
7205
7223
  const a2 = window.fetch, u2 = getOrSetSessionId();
@@ -7234,7 +7252,7 @@
7234
7252
  F2[e4] = a5;
7235
7253
  }) : F2 = { ...w3.headers }), D2 = w3.body;
7236
7254
  } catch (e4) {
7237
- fp && console.warn("[Sailfish] Failed to capture request data:", e4);
7255
+ yp && console.warn("[Sailfish] Failed to capture request data:", e4);
7238
7256
  }
7239
7257
  delete F2[C];
7240
7258
  const U2 = (_a2 = getFuncSpanHeader()) == null ? void 0 : _a2.name;
@@ -7244,16 +7262,16 @@
7244
7262
  const I4 = getFuncSpanHeader();
7245
7263
  if (u4 instanceof Request) {
7246
7264
  const _3 = u4.clone(), O3 = new Headers(_3.headers);
7247
- O3.set(C, `${w4}/${b4}/${x4}`), I4 && (O3.set(I4.name, I4.value), fp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u4.url, header: I4.name }));
7265
+ O3.set(C, `${w4}/${b4}/${x4}`), I4 && (O3.set(I4.name, I4.value), yp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u4.url, header: I4.name }));
7248
7266
  const E3 = new Request(_3, { headers: O3 });
7249
7267
  return await e4.call(a5, E3, m4);
7250
7268
  }
7251
7269
  {
7252
7270
  const _3 = { ...m4 }, O3 = new Headers(m4.headers || {});
7253
- return O3.set(C, `${w4}/${b4}/${x4}`), I4 && (O3.set(I4.name, I4.value), fp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u4 ? u4 : u4.href, header: I4.name })), _3.headers = O3, await e4.call(a5, u4, _3);
7271
+ return O3.set(C, `${w4}/${b4}/${x4}`), I4 && (O3.set(I4.name, I4.value), yp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u4 ? u4 : u4.href, header: I4.name })), _3.headers = O3, await e4.call(a5, u4, _3);
7254
7272
  }
7255
7273
  })(e3, a4, m3, w3, b3, _2.page_visit_uuid, I3), B2 = false;
7256
- gp.includes(U3.status) && (fp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e4, a5, u4, m4) {
7274
+ Sp.includes(U3.status) && (yp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e4, a5, u4, m4) {
7257
7275
  try {
7258
7276
  let m5 = u4[0], w4 = u4[1] || {};
7259
7277
  if ("string" == typeof m5 || m5 instanceof URL) {
@@ -7269,7 +7287,7 @@
7269
7287
  }
7270
7288
  return e4.apply(a5, u4);
7271
7289
  } catch (e5) {
7272
- throw fp && console.log(`Retry without ${C} for ${m4} also failed:`, e5), e5;
7290
+ throw yp && console.log(`Retry without ${C} for ${m4} also failed:`, e5), e5;
7273
7291
  }
7274
7292
  })(e3, a4, u3, x3), B2 = true);
7275
7293
  const $2 = Date.now(), z2 = U3.status, j2 = U3.ok, V2 = j2 ? "" : `Request Error: ${U3.statusText}`;
@@ -7278,7 +7296,7 @@
7278
7296
  const e4 = U3.clone();
7279
7297
  q2 = await e4.text();
7280
7298
  } catch (e4) {
7281
- fp && console.warn("[Sailfish] Failed to capture response data:", e4), q2 = null;
7299
+ yp && console.warn("[Sailfish] Failed to capture response data:", e4), q2 = null;
7282
7300
  }
7283
7301
  let H2 = null;
7284
7302
  try {
@@ -7286,12 +7304,12 @@
7286
7304
  H2[a5] = e4;
7287
7305
  });
7288
7306
  } catch (e4) {
7289
- fp && console.warn("[Sailfish] Failed to capture response headers:", e4), H2 = null;
7307
+ yp && console.warn("[Sailfish] Failed to capture response headers:", e4), H2 = null;
7290
7308
  }
7291
7309
  return sendEvent({ type: 27, timestamp: $2, sessionId: b3, data: { request_id: I3, session_id: b3, timestamp_start: E2, timestamp_end: $2, response_code: z2, success: j2, error: V2, method: O2, url: x3, retry_without_trace_id: B2, request_headers: F2, request_body: D2, response_headers: H2, response_body: q2 }, ..._2 }), U3;
7292
7310
  } catch (m4) {
7293
7311
  const w4 = Date.now(), C2 = false, U3 = ((_b = m4.response) == null ? void 0 : _b.status) || 500, B2 = m4.message || "Fetch request failed";
7294
- if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(yp.toLowerCase()))) return e3.apply(a4, u3);
7312
+ if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(bp.toLowerCase()))) return e3.apply(a4, u3);
7295
7313
  throw sendEvent({ type: 27, timestamp: w4, sessionId: b3, data: { request_id: I3, session_id: b3, timestamp_start: E2, timestamp_end: w4, response_code: U3, success: C2, error: B2, method: O2, url: x3, request_headers: F2, request_body: D2, response_body: null }, ..._2 }), m4;
7296
7314
  }
7297
7315
  })(a3, m2, w2, x2, I2, u2, b2);
@@ -7323,9 +7341,9 @@
7323
7341
  } catch {
7324
7342
  }
7325
7343
  })(), F2 = getOrSetSessionId(), U2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7326
- if (U2.sessionId = F2, U2.apiKey = e2, U2.backendApi = a2, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7344
+ if (U2.sessionId = F2, U2.apiKey = e2, U2.backendApi = a2, U2.serviceAdditionalMetadata = I2, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7327
7345
  else {
7328
- U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(Sp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7346
+ U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(Cp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7329
7347
  window.addEventListener("error", (e3) => {
7330
7348
  captureError(e3.error || e3.message);
7331
7349
  }), window.addEventListener("unhandledrejection", (e3) => {
@@ -7333,7 +7351,7 @@
7333
7351
  });
7334
7352
  })(), U2.errorInit = true), (function storeCredentialsAndConnection({ apiKey: e3, backendApi: a3 }) {
7335
7353
  Q && (sessionStorage.setItem("sailfishApiKey", e3), sessionStorage.setItem("sailfishBackendApi", a3));
7336
- })({ apiKey: e2, backendApi: a2 }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e2), sessionStorage.setItem("sailfishBackendApi", a2), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e2, [...m2, ...mp], a2).catch((e3) => console.error("Failed to send domains to not propagate header to:", e3)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e3 = []) {
7354
+ })({ apiKey: e2, backendApi: a2 }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e2), sessionStorage.setItem("sailfishBackendApi", a2), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e2, [...m2, ...wp], a2).catch((e3) => console.error("Failed to send domains to not propagate header to:", e3)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e3 = []) {
7337
7355
  const a3 = XMLHttpRequest.prototype.open, u3 = XMLHttpRequest.prototype.send, m3 = XMLHttpRequest.prototype.setRequestHeader, w3 = getOrSetSessionId();
7338
7356
  XMLHttpRequest.prototype.setRequestHeader = function(e4, a4) {
7339
7357
  return this._capturedRequestHeaders || (this._capturedRequestHeaders = {}), this._capturedRequestHeaders[e4] = a4, m3.call(this, e4, a4);
@@ -7351,9 +7369,9 @@
7351
7369
  }
7352
7370
  const _3 = getFuncSpanHeader();
7353
7371
  if (_3) try {
7354
- this.setRequestHeader(_3.name, _3.value), fp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7372
+ this.setRequestHeader(_3.name, _3.value), yp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7355
7373
  } catch (e4) {
7356
- fp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e4);
7374
+ yp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e4);
7357
7375
  }
7358
7376
  const O3 = Date.now();
7359
7377
  let E3 = false;
@@ -7381,7 +7399,7 @@
7381
7399
  2 === a6.length && (u4[a6[0]] = a6[1]);
7382
7400
  });
7383
7401
  } catch (e5) {
7384
- fp && console.warn("[Sailfish] Failed to capture XHR response headers:", e5), u4 = null;
7402
+ yp && console.warn("[Sailfish] Failed to capture XHR response headers:", e5), u4 = null;
7385
7403
  }
7386
7404
  if (e4 >= 200 && e4 < 300) emitFinished(true, e4, "", a5, u4);
7387
7405
  else {
@@ -7397,12 +7415,12 @@
7397
7415
  sendMessage({ type: "deviceInfo", data: { deviceInfo: { language: navigator.language, userAgent: navigator.userAgent } } });
7398
7416
  })();
7399
7417
  try {
7400
- const u3 = await fetchCaptureSettings(e2, a2), m3 = ((_a2 = u3.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || wp;
7418
+ const u3 = await fetchCaptureSettings(e2, a2), m3 = ((_a2 = u3.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || vp;
7401
7419
  if (U2.ws && 1 === U2.ws.readyState) return;
7402
7420
  const C2 = withAppUrlMetadata(I2), x3 = await startRecordingSession(e2, F2, a2, O2, E2, D2, _2, "JS/TS", C2);
7403
7421
  if ((_b = x3.data) == null ? void 0 : _b.startRecordingSession) {
7404
- const u4 = await initializeRecording(m3, a2, e2, F2);
7405
- U2.ws = u4, U2.initialized = true, U2.sentMapUuidOnce || (!(function sendMapUuidIfAvailable(e3 = "", a3 = "") {
7422
+ const u4 = (I2 == null ? void 0 : I2.env) || (I2 == null ? void 0 : I2.environment), C3 = await initializeRecording(m3, a2, e2, F2, u4);
7423
+ U2.ws = C3, U2.initialized = true, U2.sentMapUuidOnce || (!(function sendMapUuidIfAvailable(e3 = "", a3 = "") {
7406
7424
  window.sfMapUuid && sendMessage({ type: "mapUuid", data: { mapUuid: window.sfMapUuid, serviceIdentifier: e3, serviceVersion: a3 } });
7407
7425
  })(b2, w2), U2.sentMapUuidOnce = true);
7408
7426
  } else console.error("Failed to start recording session:", x3.errors || x3);
@@ -7433,7 +7451,7 @@
7433
7451
  const e2 = document.visibilityState, a2 = Date.now();
7434
7452
  "visible" === e2 && getOrSetSessionId();
7435
7453
  try {
7436
- sendMessage({ type: "visibilityChange", data: { state: e2, url: window.location.href.split("?")[0], timestamp: a2, ...getUrlAndStoredUuids() } }), fp && console.log(`[Sailfish] Tab became ${e2}, sent visibility change event`);
7454
+ sendMessage({ type: "visibilityChange", data: { state: e2, url: window.location.href.split("?")[0], timestamp: a2, ...getUrlAndStoredUuids() } }), yp && console.log(`[Sailfish] Tab became ${e2}, sent visibility change event`);
7437
7455
  } catch (e3) {
7438
7456
  console.warn("[Sailfish] Failed to send visibility change event:", e3);
7439
7457
  }
@@ -7441,12 +7459,12 @@
7441
7459
  }), J && window.addEventListener("beforeunload", () => {
7442
7460
  clearPageVisitDataFromSessionStorage();
7443
7461
  });
7444
- e.DEFAULT_CAPTURE_SETTINGS = wp, e.DEFAULT_CONSOLE_RECORDING_SETTINGS = Sp, e.STORAGE_VERSION = 1, e.addOrUpdateMetadata = function addOrUpdateMetadata(e2) {
7462
+ e.DEFAULT_CAPTURE_SETTINGS = vp, e.DEFAULT_CONSOLE_RECORDING_SETTINGS = Cp, e.STORAGE_VERSION = 1, e.addOrUpdateMetadata = function addOrUpdateMetadata(e2) {
7445
7463
  const a2 = { type: "addOrUpdateMetadata", metadata: e2 };
7446
- hp && JSON.stringify(hp) === JSON.stringify(e2) || (hp = e2, sendMessage(a2));
7447
- }, e.buildBatches = buildBatches, e.createTriageFromRecorder = createTriageFromRecorder, e.disableFunctionSpanTracking = disableFunctionSpanTracking, e.enableFunctionSpanTracking = enableFunctionSpanTracking, e.eventSize = eventSize, e.fetchCaptureSettings = fetchCaptureSettings, e.flushBufferedEvents = flushBufferedEvents, e.getFuncSpanHeader = getFuncSpanHeader, e.getUrlAndStoredUuids = getUrlAndStoredUuids, e.identify = function identify(e2, a2 = {}, u2 = false) {
7464
+ gp && JSON.stringify(gp) === JSON.stringify(e2) || (gp = e2, sendMessage(a2));
7465
+ }, e.buildBatches = buildBatches, e.createTriageFromRecorder = createTriageFromRecorder, e.disableFunctionSpanTracking = disableFunctionSpanTracking, e.enableFunctionSpanTracking = enableFunctionSpanTracking, e.eventSize = eventSize, e.fetchCaptureSettings = fetchCaptureSettings, e.flushBufferedEvents = flushBufferedEvents, e.getFuncSpanHeader = getFuncSpanHeader, e.getOrSetSessionId = getOrSetSessionId, e.getUrlAndStoredUuids = getUrlAndStoredUuids, e.identify = function identify(e2, a2 = {}, u2 = false) {
7448
7466
  const m2 = { type: "identify", userId: e2, traits: a2 };
7449
- dp && dp.userId === e2 && JSON.stringify(dp.traits) === JSON.stringify(a2) || (dp = { userId: e2, traits: a2, overwrite: u2 }, sendMessage(m2));
7467
+ mp && mp.userId === e2 && JSON.stringify(mp.traits) === JSON.stringify(a2) || (mp = { userId: e2, traits: a2, overwrite: u2 }, sendMessage(m2));
7450
7468
  }, e.initRecorder = async (e2) => {
7451
7469
  if ("undefined" == typeof window) return;
7452
7470
  const a2 = window.__sailfish_recorder || (window.__sailfish_recorder = {}), u2 = getOrSetSessionId();
@@ -7456,7 +7474,7 @@
7456
7474
  delete a2.initPromise;
7457
7475
  })), a2.initPromise);
7458
7476
  }, e.initializeConsolePlugin = initializeConsolePlugin, e.initializeDomContentEvents = initializeDomContentEvents, e.initializeRecording = initializeRecording, e.initializeWebSocket = initializeWebSocket, e.isFunctionSpanTrackingEnabled = isFunctionSpanTrackingEnabled, e.matchUrlWithWildcard = matchUrlWithWildcard, e.openReportIssueModal = function openReportIssueModal() {
7459
- ut ? stopRecording() : (injectModalHTML(), st && document.body.appendChild(st));
7477
+ ht ? stopRecording() : (injectModalHTML(), lt && document.body.appendChild(lt));
7460
7478
  }, e.sendDomainsToNotPropagateHeaderTo = sendDomainsToNotPropagateHeaderTo, e.sendEvent = sendEvent, e.sendGraphQLRequest = sendGraphQLRequest, e.sendMessage = sendMessage, e.startRecording = startRecording, e.startRecordingSession = startRecordingSession, e.trackingEvent = function trackingEvent(a2) {
7461
7479
  sendMessage({ type: "trackingEvent", trackingData: a2, timestamp: e.nowTimestamp() });
7462
7480
  }, e.withAppUrlMetadata = withAppUrlMetadata, Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });