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