@sailfish-ai/recorder 1.8.10 → 1.8.12-alpha-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -329,9 +329,23 @@
329
329
  a2.delete(e2);
330
330
  });
331
331
  }
332
- const J = "undefined" != typeof globalThis && void 0 !== globalThis.window, Y = "undefined" != typeof globalThis && void 0 !== globalThis.document, X = "undefined" != typeof globalThis && "localStorage" in globalThis, Q = "undefined" != typeof globalThis && "sessionStorage" in globalThis;
332
+ const J = "undefined" != typeof globalThis && void 0 !== globalThis.window, Y = "undefined" != typeof globalThis && void 0 !== globalThis.document, X = "undefined" != typeof globalThis && "localStorage" in globalThis, Q = "undefined" != typeof globalThis && "sessionStorage" in globalThis, ee = "sailfishSessionId", te = "__sailfish_refresh__";
333
+ let ne = null;
333
334
  function getOrSetSessionId() {
334
- return J ? (window.name || (window.name = v4()), window.name) : v4();
335
+ if (!J) return v4();
336
+ if (ne) return ne;
337
+ const e2 = window.name.startsWith(te);
338
+ if (e2 && (window.name = window.name.substring(20)), e2) {
339
+ const e3 = window.sessionStorage.getItem(ee);
340
+ if (e3) return ne = e3, e3;
341
+ }
342
+ const a2 = v4();
343
+ ne = a2;
344
+ try {
345
+ window.sessionStorage.setItem(ee, a2);
346
+ } catch (e3) {
347
+ }
348
+ return a2;
335
349
  }
336
350
  function buildBatches(e2, a2, u2) {
337
351
  const m2 = {};
@@ -358,27 +372,32 @@
358
372
  var _a2;
359
373
  return { ...e2 ?? {}, appUrl: (e2 == null ? void 0 : e2.appUrl) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
360
374
  }
361
- e.nowTimestamp = Date.now, /[1-9][0-9]{12}/.test(Date.now().toString()) || (e.nowTimestamp = () => (/* @__PURE__ */ new Date()).getTime());
362
- const ee = readDebugFlag(), te = "per_session", ne = "sailfish_funcspan_global_state";
363
- let re = null, oe = false, se = null, ie = null;
375
+ J && window.addEventListener("beforeunload", () => {
376
+ window.name = te + window.name;
377
+ }), e.nowTimestamp = Date.now, /[1-9][0-9]{12}/.test(Date.now().toString()) || (e.nowTimestamp = () => (/* @__PURE__ */ new Date()).getTime());
378
+ const re = readDebugFlag(), oe = "per_session";
379
+ let se = null, ie = false, le = null, ce = null, pe = false, de = null, he = null, me = false;
380
+ const ge = "sailfish_funcspan_global_state";
364
381
  function saveGlobalFuncSpanState(e2, a2) {
365
382
  try {
366
383
  if ("undefined" == typeof localStorage) return;
367
- const u2 = { enabled: e2, expirationTimestampMs: a2 };
368
- localStorage.setItem(ne, JSON.stringify(u2)), ee && console.log("[Sailfish] Saved global function span state to localStorage:", u2);
384
+ const u2 = { enabled: e2, expirationTimestampMs: a2, savedAt: Date.now() };
385
+ localStorage.setItem(ge, JSON.stringify(u2)), re && console.log("[Sailfish] Saved funcSpan state to localStorage:", u2);
369
386
  } catch (e3) {
370
- ee && console.warn("[Sailfish] Failed to save global function span state to localStorage:", e3);
387
+ re && console.warn("[Sailfish] Failed to save funcSpan state to localStorage:", e3);
371
388
  }
372
389
  }
373
390
  function clearGlobalFuncSpanState() {
374
391
  try {
375
392
  if ("undefined" == typeof localStorage) return;
376
- localStorage.removeItem(ne), ee && console.log("[Sailfish] Cleared global function span state from localStorage");
393
+ localStorage.removeItem(ge), re && console.log("[Sailfish] Cleared funcSpan state from localStorage");
377
394
  } catch (e2) {
378
- ee && console.warn("[Sailfish] Failed to clear global function span state from localStorage:", e2);
395
+ re && console.warn("[Sailfish] Failed to clear funcSpan state from localStorage:", e2);
379
396
  }
380
397
  }
381
- let le = false, ce = null, pe = null, de = false, he = null, me = null;
398
+ function clearStaleFuncSpanState() {
399
+ pe = false, he = null, me = false, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Cleared stale function span tracking state (backend validation failed)");
400
+ }
382
401
  function isWebSocketOpen(e2) {
383
402
  return (e2 == null ? void 0 : e2.readyState) === WebSocket.OPEN;
384
403
  }
@@ -389,15 +408,15 @@
389
408
  u2.onsuccess = () => a2(u2.result), u2.onerror = () => a2([]);
390
409
  })) ?? [];
391
410
  })();
392
- if (isWebSocketOpen(re)) try {
393
- for (const a2 of e2) re.send(a2.value), await deleteNotifyMessageById(a2.id);
411
+ if (isWebSocketOpen(se)) try {
412
+ for (const a2 of e2) se.send(a2.value), await deleteNotifyMessageById(a2.id);
394
413
  } catch (e3) {
395
414
  }
396
415
  }
397
416
  async function flushBufferedEvents() {
398
- if (isWebSocketOpen(re)) if (se) await se;
417
+ if (isWebSocketOpen(se)) if (le) await le;
399
418
  else {
400
- se = (async () => {
419
+ le = (async () => {
401
420
  var _a2, _b;
402
421
  const e2 = await (async function getAllIndexedEvents() {
403
422
  return await withStore$1("readonly", (e3) => new Promise((a3) => {
@@ -412,119 +431,138 @@
412
431
  for (const e3 of Object.values(a2)) {
413
432
  const a3 = buildBatches(e3, (e4) => eventSize(e4.data), 52428800);
414
433
  for (const e4 of a3) {
415
- if (!isWebSocketOpen(re)) break;
434
+ if (!isWebSocketOpen(se)) break;
416
435
  const a4 = e4.map((e5) => {
417
436
  var _a3, _b2;
418
437
  return { ...e5.data, appUrl: ((_a3 = e5.data) == null ? void 0 : _a3.appUrl) ?? ((_b2 = window == null ? void 0 : window.location) == null ? void 0 : _b2.href) };
419
438
  }), u2 = e4.map((e5) => e5.id).filter((e5) => null != e5);
420
439
  try {
421
440
  const e5 = JSON.stringify({ type: "events", events: a4, mapUuid: window.sfMapUuid });
422
- re.send(e5), await deleteEventsByIds(u2);
441
+ se.send(e5), await deleteEventsByIds(u2);
423
442
  } catch (e5) {
424
443
  }
425
444
  }
426
445
  }
427
446
  })();
428
447
  try {
429
- await se;
448
+ await le;
430
449
  } finally {
431
- se = null;
450
+ le = null;
432
451
  }
433
452
  }
434
453
  }
435
454
  function sendEvent(e2) {
436
455
  var _a2;
437
456
  const a2 = { ...e2, app_url: (e2 == null ? void 0 : e2.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
438
- if (oe || !isWebSocketOpen(re)) return void saveEventToIDB(a2);
457
+ if (ie || !isWebSocketOpen(se)) return void saveEventToIDB(a2);
439
458
  const u2 = JSON.stringify({ type: "event", event: a2, mapUuid: window.sfMapUuid });
440
459
  try {
441
- re.send(u2);
460
+ se.send(u2);
442
461
  } catch (e3) {
443
462
  saveEventToIDB(a2);
444
463
  }
445
464
  }
446
- function initializeWebSocket(e2, a2, u2) {
447
- const m2 = (function getWebSocketHost(e3) {
465
+ function initializeWebSocket(e2, a2, u2, m2) {
466
+ const w2 = (function getWebSocketHost(e3) {
448
467
  const a3 = document.createElement("a");
449
468
  return a3.href = e3, `${a3.hostname}${a3.port ? `:${a3.port}` : ""}`;
450
- })(e2), w2 = new URL(e2).protocol;
451
- return re = new z(`${"https:" === w2 ? "wss" : "ws"}://${m2}/ws/notify/?apiKey=${a2}&sessionId=${u2}&sender=JS%2FTS&version=1.8.10`, [], { connectionTimeout: 3e4 }), re.addEventListener("open", () => {
452
- ee && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (le ? "ENABLED" : "DISABLED"))), (async () => {
469
+ })(e2);
470
+ let b2 = `${"https:" === new URL(e2).protocol ? "wss" : "ws"}://${w2}/ws/notify/?apiKey=${a2}&sessionId=${u2}&sender=JS%2FTS&version=1.8.12-alpha-2`;
471
+ m2 && (b2 += `&envValue=${encodeURIComponent(m2)}`);
472
+ return se = new z(b2, [], { connectionTimeout: 3e4 }), se.addEventListener("open", () => {
473
+ re && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (pe ? "ENABLED" : "DISABLED"))), (async () => {
453
474
  try {
454
- oe = true, await flushNotifyQueue(), await flushBufferedEvents();
475
+ ie = true, await flushNotifyQueue(), await flushBufferedEvents();
455
476
  } finally {
456
- oe = false;
477
+ ie = false;
457
478
  }
458
- null != ie && clearInterval(ie), ie = window.setInterval(() => {
479
+ null != ce && clearInterval(ce), ce = window.setInterval(() => {
459
480
  flushBufferedEvents();
460
481
  }, 2e3);
461
482
  })();
462
- }), re.addEventListener("close", () => {
463
- ee && console.log("[Sailfish] WebSocket closed");
464
- }), re.addEventListener("message", (e3) => {
483
+ }), se.addEventListener("close", () => {
484
+ re && console.log("[Sailfish] WebSocket closed");
485
+ }), se.addEventListener("message", (e3) => {
465
486
  try {
466
487
  const a3 = JSON.parse(e3.data);
467
- if ("funcSpanTrackingControl" === a3.type) if (ee && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a3.enabled, timeoutSeconds: a3.timeoutSeconds, expirationTimestampMs: a3.expirationTimestampMs }), null !== ce && (window.clearTimeout(ce), ce = null), le = a3.enabled, de = false, ee && console.log("[Sailfish] Function span tracking " + (a3.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a3.enabled) {
488
+ if ("funcSpanTrackingControl" === a3.type) if (re && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a3.enabled, timeoutSeconds: a3.timeoutSeconds, expirationTimestampMs: a3.expirationTimestampMs }), null !== de && (window.clearTimeout(de), de = null), pe = a3.enabled, me = false, re && console.log("[Sailfish] Function span tracking " + (a3.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a3.enabled) {
468
489
  if (a3.expirationTimestampMs) {
469
- pe = a3.expirationTimestampMs;
470
- const e4 = Date.now(), u3 = pe - e4;
471
- ee && console.log(`[Sailfish] Server expiration timestamp: ${pe}, ms until expiration: ${u3}`), u3 > 0 ? (saveGlobalFuncSpanState(true, pe), ce = window.setTimeout(() => {
472
- de || (le = false, pe = null, clearGlobalFuncSpanState(), ee && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
473
- }, u3)) : (le = false, pe = null, clearGlobalFuncSpanState(), ee && console.log("[Sailfish] Tracking already expired, not enabling"));
490
+ he = a3.expirationTimestampMs;
491
+ const e4 = Date.now(), u3 = he - e4;
492
+ re && console.log(`[Sailfish] Server expiration timestamp: ${he}, ms until expiration: ${u3}`), u3 > 0 ? (saveGlobalFuncSpanState(true, he), de = window.setTimeout(() => {
493
+ if (!me) {
494
+ pe = false, he = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time");
495
+ try {
496
+ isWebSocketOpen(se) && (se.send(JSON.stringify({ type: "funcSpanTrackingExpired", sessionId: getOrSetSessionId(), expiredAt: Date.now() })), re && console.log("[Sailfish] Notified backend that function span tracking expired"));
497
+ } catch (e5) {
498
+ re && console.warn("[Sailfish] Failed to notify backend of tracking expiry:", e5);
499
+ }
500
+ }
501
+ }, u3)) : (pe = false, he = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Tracking already expired, not enabling"));
474
502
  } else {
475
503
  const e4 = a3.timeoutSeconds || 3600;
476
- e4 > 0 && (pe = Date.now() + 1e3 * e4, saveGlobalFuncSpanState(true, pe), ce = window.setTimeout(() => {
477
- de || (le = false, pe = null, clearGlobalFuncSpanState(), ee && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e4}s (legacy)`));
504
+ e4 > 0 && (he = Date.now() + 1e3 * e4, saveGlobalFuncSpanState(true, he), de = window.setTimeout(() => {
505
+ if (!me) {
506
+ pe = false, he = null, clearGlobalFuncSpanState(), re && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e4}s (legacy)`);
507
+ try {
508
+ isWebSocketOpen(se) && (se.send(JSON.stringify({ type: "funcSpanTrackingExpired", sessionId: getOrSetSessionId(), expiredAt: Date.now() })), re && console.log("[Sailfish] Notified backend that function span tracking expired (legacy timeout)"));
509
+ } catch (e5) {
510
+ re && console.warn("[Sailfish] Failed to notify backend of tracking expiry:", e5);
511
+ }
512
+ }
478
513
  }, 1e3 * e4));
479
514
  }
480
515
  try {
481
516
  const e4 = getOrSetSessionId();
482
- re.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e4, enabled: true, configurationType: "global" })), ee && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e4}`);
517
+ se.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e4, enabled: true, configurationType: "global" })), re && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e4}`);
483
518
  } catch (e4) {
484
- ee && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e4);
519
+ re && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e4);
485
520
  }
486
- } else pe = null, clearGlobalFuncSpanState();
521
+ } else he = null, clearGlobalFuncSpanState();
487
522
  } catch (e4) {
488
523
  }
489
- }), re;
524
+ }), se;
490
525
  }
491
526
  function sendMessage(e2) {
492
527
  var _a2;
493
528
  "sessionId" in e2 || (e2.sessionId = getOrSetSessionId());
494
529
  const a2 = JSON.stringify({ ...e2, app_url: (e2 == null ? void 0 : e2.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) });
495
- if (isWebSocketOpen(re)) try {
496
- re.send(a2);
530
+ if (ie || !isWebSocketOpen(se)) saveNotifyMessageToIDB(a2);
531
+ else try {
532
+ se.send(a2);
497
533
  } catch (e3) {
498
534
  saveNotifyMessageToIDB(a2);
499
535
  }
500
- else saveNotifyMessageToIDB(a2);
501
536
  }
502
537
  function enableFunctionSpanTracking() {
503
- if (ee && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), le && !de && (he = ce, me = pe, ee && console.log("[Sailfish] Saved global tracking state while switching to local mode")), le = true, de = true, pe = null, ce = null, isWebSocketOpen(re)) try {
504
- const e2 = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: te };
505
- re.send(JSON.stringify(e2));
538
+ if (re && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), pe = true, me = true, he = null, null !== de && (window.clearTimeout(de), de = null), isWebSocketOpen(se)) try {
539
+ const e2 = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: oe };
540
+ se.send(JSON.stringify(e2));
506
541
  } catch (e2) {
507
542
  console.error("[FUNCSPAN START] ✗ Failed to send tracking session report:", e2);
508
543
  }
509
- else ee && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
544
+ else re && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
510
545
  }
511
546
  function disableFunctionSpanTracking() {
512
- if (ee && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(re)) try {
513
- const e2 = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: te };
514
- re.send(JSON.stringify(e2));
547
+ if (re && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(se)) try {
548
+ const e2 = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: oe };
549
+ se.send(JSON.stringify(e2));
515
550
  } catch (e2) {
516
551
  console.error("[FUNCSPAN STOP] ✗ Failed to send tracking stop report:", e2);
517
552
  }
518
553
  else console.warn("[FUNCSPAN STOP] ✗ WebSocket not open, cannot notify tracking end");
519
- de && (de = false, null !== he || null !== me ? (le = true, pe = me, ce = he, ee && console.log("[Sailfish] LOCAL tracking mode disabled, restored GLOBAL tracking state"), he = null, me = null) : (le = false, pe = null, ce = null, ee && console.log("[Sailfish] LOCAL tracking mode disabled, no global tracking to restore")));
554
+ me && (pe = false, me = false, he = null, re && console.log("[Sailfish] LOCAL tracking mode disabled")), null !== de && (window.clearTimeout(de), de = null);
520
555
  }
521
556
  function isFunctionSpanTrackingEnabled() {
522
- return le;
557
+ return pe;
558
+ }
559
+ function initializeFunctionSpanTrackingFromApi(e2) {
560
+ e2 && !pe ? (pe = true, me = false, he = null, re && console.log("[Sailfish] Function span tracking initialized as ENABLED from API check")) : !e2 && pe && (pe = false, me = false, he = null, re && console.log("[Sailfish] Function span tracking initialized as DISABLED from API check"));
523
561
  }
524
562
  function getFuncSpanHeader() {
525
- if (!le) return null;
526
- if (null !== pe) {
527
- if (Date.now() >= pe) return le = false, pe = null, ee && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
563
+ if (!pe) return null;
564
+ if (null !== he) {
565
+ if (Date.now() >= he) return pe = false, he = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
528
566
  }
529
567
  return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-0-5-5-0-1.0" };
530
568
  }
@@ -532,34 +570,36 @@
532
570
  const e2 = (function loadGlobalFuncSpanState() {
533
571
  try {
534
572
  if ("undefined" == typeof localStorage) return null;
535
- const e3 = localStorage.getItem(ne);
573
+ const e3 = localStorage.getItem(ge);
536
574
  if (!e3) return null;
537
575
  const a2 = JSON.parse(e3);
538
- return a2.enabled && a2.expirationTimestampMs && Date.now() >= a2.expirationTimestampMs ? (ee && console.log("[Sailfish] Stored global function span state has expired, clearing"), localStorage.removeItem(ne), null) : (ee && console.log("[Sailfish] Loaded global function span state from localStorage:", a2), a2);
576
+ return re && console.log("[Sailfish] Loaded funcSpan state from localStorage:", a2), a2;
539
577
  } catch (e3) {
540
- return ee && console.warn("[Sailfish] Failed to load global function span state from localStorage:", e3), null;
578
+ return re && console.warn("[Sailfish] Failed to load funcSpan state from localStorage:", e3), null;
541
579
  }
542
580
  })();
543
- e2 && e2.enabled && (le = true, pe = e2.expirationTimestampMs, de = false, ee && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTimestampMs: pe }));
581
+ if (e2 && e2.enabled) if (pe = true, he = e2.expirationTimestampMs, me = false, re && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTime: he }), null !== he) {
582
+ Date.now() >= he ? (pe = false, he = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Module init: Persisted tracking already expired, cleared state")) : re && console.log("[Sailfish] Module init: Function span tracking is active and valid (temporary until WebSocket confirms)");
583
+ } else re && console.log("[Sailfish] Module init: Function span tracking is active (no expiration, temporary until WebSocket confirms)");
544
584
  })();
545
- const ge = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
546
- var ye, we, be = {}, ve = {}, Ce = {}, ke = {};
585
+ const ye = Object.freeze(Object.defineProperty({ __proto__: null, clearStaleFuncSpanState, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeFunctionSpanTrackingFromApi, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
586
+ var we, be, ve = {}, Ce = {}, ke = {}, xe = {};
547
587
  function requireBase64() {
548
- if (ye) return ke;
549
- ye = 1;
588
+ if (we) return xe;
589
+ we = 1;
550
590
  var e2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
551
- return ke.encode = function(a2) {
591
+ return xe.encode = function(a2) {
552
592
  if (0 <= a2 && a2 < e2.length) return e2[a2];
553
593
  throw new TypeError("Must be between 0 and 63: " + a2);
554
- }, ke.decode = function(e3) {
594
+ }, xe.decode = function(e3) {
555
595
  return 65 <= e3 && e3 <= 90 ? e3 - 65 : 97 <= e3 && e3 <= 122 ? e3 - 97 + 26 : 48 <= e3 && e3 <= 57 ? e3 - 48 + 52 : 43 == e3 ? 62 : 47 == e3 ? 63 : -1;
556
- }, ke;
596
+ }, xe;
557
597
  }
558
598
  function requireBase64Vlq() {
559
- if (we) return Ce;
560
- we = 1;
599
+ if (be) return ke;
600
+ be = 1;
561
601
  var e2 = requireBase64();
562
- return Ce.encode = function base64VLQ_encode(a2) {
602
+ return ke.encode = function base64VLQ_encode(a2) {
563
603
  var u2, m2 = "", w2 = (function toVLQSigned(e3) {
564
604
  return e3 < 0 ? 1 + (-e3 << 1) : 0 + (e3 << 1);
565
605
  })(a2);
@@ -567,7 +607,7 @@
567
607
  u2 = 31 & w2, (w2 >>>= 5) > 0 && (u2 |= 32), m2 += e2.encode(u2);
568
608
  } while (w2 > 0);
569
609
  return m2;
570
- }, Ce.decode = function base64VLQ_decode(a2, u2, m2) {
610
+ }, ke.decode = function base64VLQ_decode(a2, u2, m2) {
571
611
  var w2, b2, C2 = a2.length, x2 = 0, I2 = 0;
572
612
  do {
573
613
  if (u2 >= C2) throw new Error("Expected more digits in base 64 VLQ value.");
@@ -578,11 +618,11 @@
578
618
  var a3 = e3 >> 1;
579
619
  return 1 & ~e3 ? a3 : -a3;
580
620
  })(x2), m2.rest = u2;
581
- }, Ce;
621
+ }, ke;
582
622
  }
583
- var xe, Me = {};
623
+ var Me, Ie = {};
584
624
  function requireUtil() {
585
- return xe || (xe = 1, (function(e2) {
625
+ return Me || (Me = 1, (function(e2) {
586
626
  e2.getArg = function getArg(e3, a3, u3) {
587
627
  if (a3 in e3) return e3[a3];
588
628
  if (3 === arguments.length) return u3;
@@ -694,12 +734,12 @@
694
734
  }
695
735
  return m2(a3);
696
736
  };
697
- })(Me)), Me;
737
+ })(Ie)), Ie;
698
738
  }
699
- var Ie, Oe = {};
739
+ var Oe, Ee = {};
700
740
  function requireArraySet() {
701
- if (Ie) return Oe;
702
- Ie = 1;
741
+ if (Oe) return Ee;
742
+ Oe = 1;
703
743
  var e2 = requireUtil(), a2 = Object.prototype.hasOwnProperty, u2 = "undefined" != typeof Map;
704
744
  function ArraySet() {
705
745
  this._array = [], this._set = u2 ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
@@ -730,12 +770,12 @@
730
770
  throw new Error("No element indexed by " + e3);
731
771
  }, ArraySet.prototype.toArray = function ArraySet_toArray() {
732
772
  return this._array.slice();
733
- }, Oe.ArraySet = ArraySet, Oe;
773
+ }, Ee.ArraySet = ArraySet, Ee;
734
774
  }
735
- var Ee, Le, Ae = {};
775
+ var Le, Ae, Te = {};
736
776
  function requireMappingList() {
737
- if (Ee) return Ae;
738
- Ee = 1;
777
+ if (Le) return Te;
778
+ Le = 1;
739
779
  var e2 = requireUtil();
740
780
  function MappingList() {
741
781
  this._array = [], this._sorted = true, this._last = { generatedLine: -1, generatedColumn: 0 };
@@ -749,11 +789,11 @@
749
789
  })(this._last, a2) ? (this._sorted = false, this._array.push(a2)) : (this._last = a2, this._array.push(a2));
750
790
  }, MappingList.prototype.toArray = function MappingList_toArray() {
751
791
  return this._sorted || (this._array.sort(e2.compareByGeneratedPositionsInflated), this._sorted = true), this._array;
752
- }, Ae.MappingList = MappingList, Ae;
792
+ }, Te.MappingList = MappingList, Te;
753
793
  }
754
794
  function requireSourceMapGenerator() {
755
- if (Le) return ve;
756
- Le = 1;
795
+ if (Ae) return Ce;
796
+ Ae = 1;
757
797
  var e2 = requireBase64Vlq(), a2 = requireUtil(), u2 = requireArraySet().ArraySet, m2 = requireMappingList().MappingList;
758
798
  function SourceMapGenerator(e3) {
759
799
  e3 || (e3 = {}), this._file = a2.getArg(e3, "file", null), this._sourceRoot = a2.getArg(e3, "sourceRoot", null), this._skipValidation = a2.getArg(e3, "skipValidation", false), this._ignoreInvalidMapping = a2.getArg(e3, "ignoreInvalidMapping", false), this._sources = new u2(), this._names = new u2(), this._mappings = new m2(), this._sourcesContents = null;
@@ -830,11 +870,11 @@
830
870
  return null != this._file && (e3.file = this._file), null != this._sourceRoot && (e3.sourceRoot = this._sourceRoot), this._sourcesContents && (e3.sourcesContent = this._generateSourcesContent(e3.sources, e3.sourceRoot)), e3;
831
871
  }, SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
832
872
  return JSON.stringify(this.toJSON());
833
- }, ve.SourceMapGenerator = SourceMapGenerator, ve;
873
+ }, Ce.SourceMapGenerator = SourceMapGenerator, Ce;
834
874
  }
835
- var Te, De = {}, Ue = {};
875
+ var De, Ue = {}, Be = {};
836
876
  function requireBinarySearch() {
837
- return Te || (Te = 1, (function(e2) {
877
+ return De || (De = 1, (function(e2) {
838
878
  function recursiveSearch(a2, u2, m2, w2, b2, C2) {
839
879
  var x2 = Math.floor((u2 - a2) / 2) + a2, I2 = b2(m2, w2[x2], true);
840
880
  return 0 === I2 ? x2 : I2 > 0 ? u2 - x2 > 1 ? recursiveSearch(x2, u2, m2, w2, b2, C2) : C2 == e2.LEAST_UPPER_BOUND ? u2 < w2.length ? u2 : -1 : x2 : x2 - a2 > 1 ? recursiveSearch(a2, x2, m2, w2, b2, C2) : C2 == e2.LEAST_UPPER_BOUND ? x2 : a2 < 0 ? -1 : a2;
@@ -846,11 +886,11 @@
846
886
  for (; b2 - 1 >= 0 && 0 === m2(u2[b2], u2[b2 - 1], true); ) --b2;
847
887
  return b2;
848
888
  };
849
- })(Ue)), Ue;
889
+ })(Be)), Be;
850
890
  }
851
- var Be, je, Ge = {};
891
+ var je, Ge, Ve = {};
852
892
  function requireQuickSort() {
853
- if (Be) return Ge;
893
+ if (je) return Ve;
854
894
  function SortTemplate(e3) {
855
895
  function swap(e4, a2, u2) {
856
896
  var m2 = e4[a2];
@@ -869,21 +909,21 @@
869
909
  }
870
910
  };
871
911
  }
872
- Be = 1;
912
+ je = 1;
873
913
  let e2 = /* @__PURE__ */ new WeakMap();
874
- return Ge.quickSort = function(a2, u2, m2 = 0) {
914
+ return Ve.quickSort = function(a2, u2, m2 = 0) {
875
915
  let w2 = e2.get(u2);
876
916
  void 0 === w2 && (w2 = (function cloneSort(e3) {
877
917
  let a3 = SortTemplate.toString();
878
918
  return new Function(`return ${a3}`)()(e3);
879
919
  })(u2), e2.set(u2, w2)), w2(a2, u2, m2, a2.length - 1);
880
- }, Ge;
920
+ }, Ve;
881
921
  }
882
- var Ve, qe, He = {};
883
- var Je = (function requireSourceMap() {
884
- return qe || (qe = 1, be.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, be.SourceMapConsumer = (function requireSourceMapConsumer() {
885
- if (je) return De;
886
- je = 1;
922
+ var qe, He, Je = {};
923
+ var Ye = (function requireSourceMap() {
924
+ return He || (He = 1, ve.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, ve.SourceMapConsumer = (function requireSourceMapConsumer() {
925
+ if (Ge) return Ue;
926
+ Ge = 1;
887
927
  var e2 = requireUtil(), a2 = requireBinarySearch(), u2 = requireArraySet().ArraySet, m2 = requireBase64Vlq(), w2 = requireQuickSort().quickSort;
888
928
  function SourceMapConsumer(a3, u3) {
889
929
  var m3 = a3;
@@ -940,7 +980,7 @@
940
980
  else for (var _2 = x2.originalColumn; x2 && x2.originalLine === m3 && x2.originalColumn == _2; ) b3.push({ line: e2.getArg(x2, "generatedLine", null), column: e2.getArg(x2, "generatedColumn", null), lastColumn: e2.getArg(x2, "lastGeneratedColumn", null) }), x2 = this._originalMappings[++C2];
941
981
  }
942
982
  return b3;
943
- }, De.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a3) {
983
+ }, Ue.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a3) {
944
984
  var u3, m3 = a3;
945
985
  if (null != this.sourceRoot && (m3 = e2.relative(this.sourceRoot, m3)), this._sources.has(m3)) return this._sources.indexOf(m3);
946
986
  for (u3 = 0; u3 < this._absoluteSources.length; ++u3) if (this._absoluteSources[u3] == a3) return u3;
@@ -1057,7 +1097,7 @@
1057
1097
  if (b3.source === m3.source) return { line: e2.getArg(b3, "generatedLine", null), column: e2.getArg(b3, "generatedColumn", null), lastColumn: e2.getArg(b3, "lastGeneratedColumn", null) };
1058
1098
  }
1059
1099
  return { line: null, column: null, lastColumn: null };
1060
- }, De.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1100
+ }, Ue.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1061
1101
  for (var e3 = [], a3 = 0; a3 < this._sections.length; a3++) for (var u3 = 0; u3 < this._sections[a3].consumer.sources.length; u3++) e3.push(this._sections[a3].consumer.sources[u3]);
1062
1102
  return e3;
1063
1103
  } }), IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(u3) {
@@ -1096,10 +1136,10 @@
1096
1136
  this.__generatedMappings.push(E2), "number" == typeof E2.originalLine && this.__originalMappings.push(E2);
1097
1137
  }
1098
1138
  w2(this.__generatedMappings, e2.compareByGeneratedPositionsDeflated), w2(this.__originalMappings, e2.compareByOriginalPositions);
1099
- }, De.IndexedSourceMapConsumer = IndexedSourceMapConsumer, De;
1100
- })().SourceMapConsumer, be.SourceNode = (function requireSourceNode() {
1101
- if (Ve) return He;
1102
- Ve = 1;
1139
+ }, Ue.IndexedSourceMapConsumer = IndexedSourceMapConsumer, Ue;
1140
+ })().SourceMapConsumer, ve.SourceNode = (function requireSourceNode() {
1141
+ if (qe) return Je;
1142
+ qe = 1;
1103
1143
  var e2 = requireSourceMapGenerator().SourceMapGenerator, a2 = requireUtil(), u2 = /(\r?\n)/, m2 = "$$$isSourceNode$$$";
1104
1144
  function SourceNode(e3, a3, u3, w2, b2) {
1105
1145
  this.children = [], this.sourceContents = {}, this.line = null == e3 ? null : e3, this.column = null == a3 ? null : a3, this.source = null == u3 ? null : u3, this.name = null == b2 ? null : b2, this[m2] = true, null != w2 && this.add(w2);
@@ -1183,20 +1223,20 @@
1183
1223
  }), this.walkSourceContents(function(e3, a4) {
1184
1224
  m3.setSourceContent(e3, a4);
1185
1225
  }), { code: u3.code, map: m3 };
1186
- }, He.SourceNode = SourceNode, He;
1187
- })().SourceNode), be;
1226
+ }, Je.SourceNode = SourceNode, Je;
1227
+ })().SourceNode), ve;
1188
1228
  })();
1189
- const Ye = /* @__PURE__ */ new Map(), Xe = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1229
+ const Xe = /* @__PURE__ */ new Map(), Qe = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1190
1230
  async function getConsumerFor(e2, a2) {
1191
1231
  const u2 = (e2 || `/assets/${a2}`).split("?")[0], m2 = [`${u2}.map`, u2.replace(/\.js$/, ".js.map"), `/assets/${a2}.map`];
1192
1232
  for (const e3 of m2) try {
1193
- if (Ye.has(e3)) return Ye.get(e3);
1233
+ if (Xe.has(e3)) return Xe.get(e3);
1194
1234
  const a3 = await fetch(e3);
1195
1235
  if (!a3.ok) continue;
1196
1236
  const u3 = await a3.json();
1197
1237
  if (!u3 || !u3.mappings || !u3.sources) continue;
1198
- const m3 = await new Je.SourceMapConsumer(u3);
1199
- return Ye.set(e3, m3), m3;
1238
+ const m3 = await new Ye.SourceMapConsumer(u3);
1239
+ return Xe.set(e3, m3), m3;
1200
1240
  } catch {
1201
1241
  }
1202
1242
  return null;
@@ -1208,7 +1248,7 @@
1208
1248
  if (!e3) return ["No stack trace available"];
1209
1249
  const a3 = Array.isArray(e3) ? e3 : e3.split("\n"), u3 = [];
1210
1250
  for (const e4 of a3) {
1211
- const a4 = e4.match(Xe);
1251
+ const a4 = e4.match(Qe);
1212
1252
  if (!a4) {
1213
1253
  u3.push(e4);
1214
1254
  continue;
@@ -1223,8 +1263,8 @@
1223
1263
  u3.push(`${e4} [No source map found for ${w3}]`);
1224
1264
  continue;
1225
1265
  }
1226
- let O2 = _2.originalPositionFor({ line: x3, column: I2, bias: Je.SourceMapConsumer.GREATEST_LOWER_BOUND });
1227
- if (!O2.source || null == O2.line) for (let e5 = 1; e5 <= 20 && (O2 = _2.originalPositionFor({ line: x3, column: Math.max(0, I2 - e5), bias: Je.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e5++) ;
1266
+ let O2 = _2.originalPositionFor({ line: x3, column: I2, bias: Ye.SourceMapConsumer.GREATEST_LOWER_BOUND });
1267
+ if (!O2.source || null == O2.line) for (let e5 = 1; e5 <= 20 && (O2 = _2.originalPositionFor({ line: x3, column: Math.max(0, I2 - e5), bias: Ye.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e5++) ;
1228
1268
  if (O2.source && null != O2.line) {
1229
1269
  const e5 = O2.name || "anonymous";
1230
1270
  u3.push(`${O2.source}:${O2.line}:${O2.column ?? 0} (${e5})`);
@@ -1234,11 +1274,11 @@
1234
1274
  })(m2), b2 = w2.filter((e3) => !e3.includes("chunk-") && !e3.includes("react-dom")), C2 = b2.length > 0 ? b2 : w2, x2 = Date.now();
1235
1275
  sendMessage({ type: "event", event: { type: 6, timestamp: x2, data: { payload: { message: u2, stack: m2, trace: C2, filteredStack: b2, userAgent: navigator.userAgent, url: window.location.href, timestamp: x2, level: "error" } } } });
1236
1276
  }
1237
- const Qe = readDebugFlag();
1238
1277
  const et = readDebugFlag();
1278
+ const nt = readDebugFlag();
1239
1279
  function sendGraphQLRequest(e2, a2, u2, m2 = 5, w2 = 2e3, b2 = 2) {
1240
1280
  const C2 = `${u2.backendApi}/graphql/?apiKey=${u2.apiKey}`;
1241
- return et && console.log(`Initial GraphQL request for ${e2} at ${C2}`), (function exponentialBackoff(e3, a3, u3 = 5, m3 = 2e3, w3 = 2) {
1281
+ return nt && console.log(`Initial GraphQL request for ${e2} at ${C2}`), (function exponentialBackoff(e3, a3, u3 = 5, m3 = 2e3, w3 = 2) {
1242
1282
  let b3 = 0;
1243
1283
  const attemptRequest = async () => {
1244
1284
  try {
@@ -1246,18 +1286,21 @@
1246
1286
  } catch (e4) {
1247
1287
  if (b3++, b3 > u3) throw e4;
1248
1288
  const C3 = m3 * Math.pow(w3, b3 - 1);
1249
- return Qe && console.log(`Attempt ${b3} failed: ${a3}; Retrying in ${C3}ms...`), await new Promise((e5) => setTimeout(e5, C3)), attemptRequest();
1289
+ return et && console.log(`Attempt ${b3} failed: ${a3}; Retrying in ${C3}ms...`), await new Promise((e5) => setTimeout(e5, C3)), attemptRequest();
1250
1290
  }
1251
1291
  };
1252
1292
  return attemptRequest();
1253
1293
  })(() => fetch(C2, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ operationName: e2, query: a2, variables: u2 }) }).then((e3) => {
1254
- if (et && console.log(`Received response with status: ${e3.status}`), !e3.ok) throw new Error(`GraphQL request failed with status ${e3.status}`);
1294
+ if (nt && console.log(`Received response with status: ${e3.status}`), !e3.ok) throw new Error(`GraphQL request failed with status ${e3.status}`);
1255
1295
  return e3.json();
1256
1296
  }), "Sending GraphQL request to Sailfish AI", m2, w2, b2);
1257
1297
  }
1258
1298
  function fetchCaptureSettings(e2, a2) {
1259
1299
  return sendGraphQLRequest("GetCaptureSettingsFromApiKey", "\n query GetCaptureSettingsFromApiKey($apiKey: String!) {\n captureSettingsFromApiKey(apiKey: $apiKey) {\n recordCanvas\n recordCrossOriginIframes\n collectFonts\n inlineImages\n recordPassword\n recordRealName\n recordCreditCardInfo\n recordSsn\n recordDob\n sampling\n }\n }\n ", { apiKey: e2, backendApi: a2 });
1260
1300
  }
1301
+ function fetchFunctionSpanTrackingEnabled(e2, a2) {
1302
+ return sendGraphQLRequest("GetFunctionSpanTrackingEnabledFromApiKey", "\n query GetFunctionSpanTrackingEnabledFromApiKey($apiKey: String!) {\n isFunctionSpanTrackingEnabledFromApiKey(apiKey: $apiKey)\n }\n ", { apiKey: e2, backendApi: a2 });
1303
+ }
1261
1304
  function startRecordingSession(e2, a2, u2, m2, w2, b2, C2, x2, I2) {
1262
1305
  return sendGraphQLRequest("StartSession", "mutation StartSession(\n $apiKey: UUID!,\n $recordingSessionId: UUID!,\n $serviceIdentifier: String!,\n $serviceVersion: String,\n $mapUuid: String,\n $gitSha: String,\n $library: String,\n $serviceAdditionalMetadata: JSON,\n $startRecordingFilePath: String,\n $startRecordingLineNumber: Int\n ) {\n startRecordingSession(\n companyApiKey: $apiKey,\n sessionId: $recordingSessionId,\n serviceIdentifier: $serviceIdentifier,\n serviceVersion: $serviceVersion,\n mapUuid: $mapUuid,\n gitSha: $gitSha,\n library: $library,\n serviceAdditionalMetadata: $serviceAdditionalMetadata,\n startRecordingFilePath: $startRecordingFilePath,\n startRecordingLineNumber: $startRecordingLineNumber\n ) {\n id\n }\n }", { apiKey: e2, recordingSessionId: a2, backendApi: u2, serviceIdentifier: m2, serviceVersion: w2, mapUuid: b2, gitSha: C2, library: x2, serviceAdditionalMetadata: I2, startRecordingFilePath: null, startRecordingLineNumber: null });
1263
1306
  }
@@ -1267,9 +1310,9 @@
1267
1310
  function createTriageFromRecorder(e2, a2, u2, m2, w2, b2) {
1268
1311
  return sendGraphQLRequest("CreateTriageFromRecorder", "mutation CreateTriageFromRecorder(\n $apiKey: String!,\n $recordingSessionId: String!,\n $timestampStart: String!,\n $timestampEnd: String!,\n $description: String\n ) {\n createTriageFromRecorder(\n apiKey: $apiKey,\n recordingSessionId: $recordingSessionId,\n timestampStart: $timestampStart,\n timestampEnd: $timestampEnd,\n description: $description\n ) {\n id\n }\n }\n ", { apiKey: e2, recordingSessionId: u2, timestampStart: m2, timestampEnd: w2, description: b2, backendApi: a2 });
1269
1312
  }
1270
- const nt = { enabled: false, openModalExistingMode: { key: "e", requireCmdCtrl: false }, openModalCaptureNewMode: { key: "n", requireCmdCtrl: false }, closeModal: { key: "escape", requireCmdCtrl: false }, submitReport: { key: "enter", requireCmdCtrl: true }, startRecording: { key: "r", requireCmdCtrl: false }, stopRecording: { key: "escape", requireCmdCtrl: true } }, ot = { shortcuts: { ...nt }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1313
+ const ot = { 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 } }, st = { shortcuts: { ...ot }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1271
1314
  } };
1272
- let st = null, it = { mode: "lookback", description: "" }, at = null, lt = null, ct = null, ut = false;
1315
+ let it = null, at = { mode: "lookback", description: "" }, lt = null, ct = null, ut = null, pt = false;
1273
1316
  function getShortcutKeyCmdCtrlLabel() {
1274
1317
  return (function isMacPlatform() {
1275
1318
  const e2 = navigator.userAgentData;
@@ -1282,11 +1325,11 @@
1282
1325
  return e3.requireCmdCtrl && a2.push(getShortcutKeyCmdCtrlLabel()), a2.push((function formatShortcutKeyLabel(e4) {
1283
1326
  return ({ escape: "esc" }[e4.toLowerCase()] || e4).toUpperCase();
1284
1327
  })(e3.key)), a2.map((e4) => `<span style="background: #F1F5F9; border:1px solid #cbd5e1; border-radius: 4px; padding: 0 4px; font-weight: 500; font-size: 12px; color: #94A3B8; line-height: 16px;">${e4}</span>`).join(e3.requireCmdCtrl ? " + " : "");
1285
- })(ot.shortcuts[e2]);
1328
+ })(st.shortcuts[e2]);
1286
1329
  }
1287
1330
  function setupIssueReporting(e2) {
1288
- ot.apiKey = e2.apiKey, ot.backendApi = e2.backendApi, ot.resolveSessionId = e2.getSessionId, e2.customBaseUrl && (ot.triageBaseUrl = e2.customBaseUrl), ot.shortcuts = (function mergeShortcutsConfig(e3) {
1289
- const a3 = { ...nt };
1331
+ st.apiKey = e2.apiKey, st.backendApi = e2.backendApi, st.resolveSessionId = e2.getSessionId, e2.customBaseUrl && (st.triageBaseUrl = e2.customBaseUrl), st.shortcuts = (function mergeShortcutsConfig(e3) {
1332
+ const a3 = { ...ot };
1290
1333
  if (!e3) return a3;
1291
1334
  "boolean" == typeof e3.enabled && (a3.enabled = e3.enabled);
1292
1335
  const u2 = ["openModalExistingMode", "openModalCaptureNewMode", "closeModal", "submitReport", "startRecording", "stopRecording"];
@@ -1296,7 +1339,7 @@
1296
1339
  }
1297
1340
  return a3;
1298
1341
  })(e2.shortcuts);
1299
- const { shortcuts: a2 } = ot;
1342
+ const { shortcuts: a2 } = st;
1300
1343
  window.addEventListener("keydown", (e3) => {
1301
1344
  const u2 = (function isTypingInInput() {
1302
1345
  const e4 = document.activeElement;
@@ -1306,20 +1349,20 @@
1306
1349
  } : injectModalHTML;
1307
1350
  if (C2 && shortcutUsed("openModalExistingMode")) return e3.preventDefault(), void x2("lookback");
1308
1351
  if (C2 && shortcutUsed("openModalCaptureNewMode")) return e3.preventDefault(), void x2("startnow");
1309
- if (b2 && !ut && shortcutUsed("closeModal")) return e3.preventDefault(), void closeModal();
1352
+ if (b2 && !pt && shortcutUsed("closeModal")) return e3.preventDefault(), void closeModal();
1310
1353
  if (b2 && shortcutUsed("submitReport")) {
1311
1354
  const a3 = document.getElementById("sf-issue-submit-btn");
1312
1355
  return void (a3 && !a3.disabled && (e3.preventDefault(), a3.click()));
1313
1356
  }
1314
- if (ut && m2 === a2.stopRecording.key && w2 === a2.stopRecording.requireCmdCtrl) return e3.preventDefault(), void stopRecording();
1315
- if (b2 && "startnow" === it.mode && m2 === a2.startRecording.key && w2 === a2.startRecording.requireCmdCtrl && !u2) {
1357
+ if (pt && m2 === a2.stopRecording.key && w2 === a2.stopRecording.requireCmdCtrl) return e3.preventDefault(), void stopRecording();
1358
+ if (b2 && "startnow" === at.mode && m2 === a2.startRecording.key && w2 === a2.startRecording.requireCmdCtrl && !u2) {
1316
1359
  const a3 = document.getElementById("sf-start-recording-btn");
1317
1360
  return void (a3 && (e3.preventDefault(), a3.click()));
1318
1361
  }
1319
1362
  });
1320
1363
  }
1321
1364
  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);
1365
+ st.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (it == null ? void 0 : it.parentNode) && it.parentNode.removeChild(it), it = null, pt || (at = { mode: "lookback", description: "", occurredInThisTab: true }, lt = null, ct = null), ut && clearInterval(ut);
1323
1366
  }
1324
1367
  function activateModalIsolation(e2) {
1325
1368
  e2.setAttribute("role", "dialog"), e2.setAttribute("aria-modal", "true"), e2.hasAttribute("tabindex") || e2.setAttribute("tabindex", "-1");
@@ -1378,9 +1421,9 @@
1378
1421
  };
1379
1422
  }
1380
1423
  function injectModalHTML(e2 = "lookback") {
1381
- st && (st.remove(), st = null), st = document.createElement("div"), st.id = "sf-report-issue-modal";
1424
+ it && (it.remove(), it = null), it = document.createElement("div"), it.id = "sf-report-issue-modal";
1382
1425
  const a2 = "startnow" === e2;
1383
- st.innerHTML = `
1426
+ it.innerHTML = `
1384
1427
  <div style="position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9998;"></div>
1385
1428
  <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
1386
1429
  background:#fff; padding:24px; border-radius:12px;
@@ -1428,7 +1471,7 @@
1428
1471
  <textarea id="sf-issue-description" placeholder="Add description here"
1429
1472
  style="width:100%; height:80px; padding:8px 12px; font-size:14px;
1430
1473
  border:1px solid #cbd5e1; border-radius:6px; margin-bottom:20px;
1431
- resize:none; outline:none;">${it.description}</textarea>
1474
+ resize:none; outline:none;">${at.description}</textarea>
1432
1475
 
1433
1476
  <div id="sf-lookback-container" style="display:${a2 ? "none" : "block"}; margin-bottom:20px;">
1434
1477
  <label for="sf-lookback-minutes" style="display:block; font-size:14px; font-weight:500; margin-bottom:6px;">
@@ -1516,8 +1559,8 @@
1516
1559
  <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
1560
  </div>
1518
1561
  </div>
1519
- `, it.mode = e2, document.body.appendChild(st), (function bindListeners() {
1520
- const e3 = st == null ? void 0 : st.querySelectorAll(".sf-issue-tab"), a3 = document.getElementById("sf-start-recording-btn"), u2 = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1562
+ `, at.mode = e2, document.body.appendChild(it), (function bindListeners() {
1563
+ const e3 = it == null ? void 0 : it.querySelectorAll(".sf-issue-tab"), a3 = document.getElementById("sf-start-recording-btn"), u2 = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1521
1564
  e3 == null ? void 0 : e3.forEach((e4) => {
1522
1565
  e4.addEventListener("click", (e5) => {
1523
1566
  const a4 = e5.currentTarget.dataset.mode;
@@ -1525,11 +1568,11 @@
1525
1568
  });
1526
1569
  }), u2 && (u2.onclick = closeModal);
1527
1570
  w2 && w2.addEventListener("change", () => {
1528
- "lookback" === it.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1571
+ "lookback" === at.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1529
1572
  });
1530
1573
  a3 && (a3.onclick = () => {
1531
1574
  const e4 = document.getElementById("sf-issue-description");
1532
- e4 && (it.description = e4.value), (function startCountdownThenRecord() {
1575
+ e4 && (at.description = e4.value), (function startCountdownThenRecord() {
1533
1576
  if (document.getElementById("sf-countdown-overlay")) return;
1534
1577
  const e5 = document.createElement("div");
1535
1578
  e5.id = "sf-countdown-overlay", e5.style.cssText = "\n position: fixed;\n inset: 0;\n background: rgba(0,0,0,0.6);\n z-index: 10001;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 80px;\n font-weight: bold;\n color: white;\n font-family: sans-serif;\n ";
@@ -1538,9 +1581,9 @@
1538
1581
  const u3 = setInterval(async () => {
1539
1582
  if (a4--, a4 > 0) e5.textContent = a4.toString();
1540
1583
  else {
1541
- clearInterval(u3), document.body.removeChild(e5), at = Date.now(), ut = true;
1584
+ clearInterval(u3), document.body.removeChild(e5), lt = Date.now(), pt = true;
1542
1585
  try {
1543
- const { enableFunctionSpanTracking: e6 } = await Promise.resolve().then(() => ge);
1586
+ const { enableFunctionSpanTracking: e6 } = await Promise.resolve().then(() => ye);
1544
1587
  e6();
1545
1588
  } catch (e6) {
1546
1589
  console.error("[Report Issue] Failed to enable function span tracking:", e6);
@@ -1566,8 +1609,8 @@
1566
1609
  `, e6.addEventListener("click", () => stopRecording()), document.body.appendChild(e6);
1567
1610
  const a5 = e6.querySelector("#sf-recording-timer");
1568
1611
  if (!a5) return;
1569
- ct = setInterval(() => {
1570
- const e7 = Date.now() - (at ?? Date.now()), u4 = Math.floor(e7 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e7 % 6e4 / 1e3).toString().padStart(2, "0");
1612
+ ut = setInterval(() => {
1613
+ const e7 = Date.now() - (lt ?? Date.now()), u4 = Math.floor(e7 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e7 % 6e4 / 1e3).toString().padStart(2, "0");
1571
1614
  a5.textContent = `${u4}:${m3}`;
1572
1615
  }, 1e3);
1573
1616
  })();
@@ -1575,12 +1618,12 @@
1575
1618
  }, 1e3);
1576
1619
  })();
1577
1620
  });
1578
- st == null ? void 0 : st.addEventListener("click", (e4) => {
1621
+ it == null ? void 0 : it.addEventListener("click", (e4) => {
1579
1622
  var _a2;
1580
1623
  if (e4.target.closest("#sf-issue-submit-btn")) {
1581
- const e5 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a4 = it.mode;
1624
+ const e5 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a4 = at.mode;
1582
1625
  let u3, m3;
1583
- if (it.description = e5, "startnow" === a4) u3 = at ?? Date.now() - 3e5, m3 = lt ?? Date.now();
1626
+ if (at.description = e5, "startnow" === a4) u3 = lt ?? Date.now() - 3e5, m3 = ct ?? Date.now();
1584
1627
  else {
1585
1628
  const e6 = 60 * Number((w2 == null ? void 0 : w2.value) || "2") * 1e3;
1586
1629
  m3 = Date.now(), u3 = m3 - e6;
@@ -1589,9 +1632,9 @@
1589
1632
  var _a3, _b;
1590
1633
  try {
1591
1634
  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();
1635
+ const m4 = await createTriageFromRecorder(st.apiKey, st.backendApi, (function getSessionIdSafely() {
1636
+ if (!st.resolveSessionId) throw new Error("getSessionId not defined");
1637
+ return st.resolveSessionId();
1595
1638
  })(), e6, a5, u4), w3 = (_b = (_a3 = m4 == null ? void 0 : m4.data) == null ? void 0 : _a3.createTriageFromRecorder) == null ? void 0 : _b.id;
1596
1639
  w3 ? showTriageStatusModal(false, w3) : (console.error("No Triage ID returned from backend."), showTriageStatusModal(false, null));
1597
1640
  } catch (e7) {
@@ -1600,29 +1643,29 @@
1600
1643
  })(`${u3}`, `${m3}`, e5);
1601
1644
  }
1602
1645
  });
1603
- })(), ot.deactivateIsolation = activateModalIsolation(st);
1646
+ })(), st.deactivateIsolation = activateModalIsolation(it);
1604
1647
  }
1605
1648
  function setActiveTab(e2) {
1606
- it.mode = e2;
1607
- const a2 = st == null ? void 0 : st.querySelector("#sf-tab-lookback"), u2 = st == null ? void 0 : st.querySelector("#sf-tab-startnow");
1649
+ at.mode = e2;
1650
+ const a2 = it == null ? void 0 : it.querySelector("#sf-tab-lookback"), u2 = it == null ? void 0 : it.querySelector("#sf-tab-startnow");
1608
1651
  "lookback" === e2 ? (a2.style.background = "white", a2.style.color = "#0F172A", u2.style.background = "transparent", u2.style.color = "#64748B") : (u2.style.background = "white", u2.style.color = "#0F172A", a2.style.background = "transparent", a2.style.color = "#64748B");
1609
1652
  }
1610
1653
  function updateModeSpecificUI(e2) {
1611
1654
  const a2 = document.querySelector("#sf-issue-mode-info div"), u2 = document.getElementById("sf-issue-submit-btn"), m2 = document.getElementById("sf-record-button-container"), w2 = document.getElementById("sf-recording-timer-label"), b2 = document.getElementById("sf-recording-timer-display"), C2 = document.getElementById("sf-modal-footer"), x2 = document.getElementById("sf-lookback-container");
1612
1655
  if (a2 && u2 && m2 && w2 && b2 && C2 && x2) if ("startnow" === e2) {
1613
1656
  m2.style.display = "block", x2.style.display = "none", C2.style.justifyContent = "space-between", a2.textContent = "I want to reproduce the issue right now.";
1614
- const e3 = null !== at && null !== lt;
1615
- if (u2.disabled = !e3, u2.style.opacity = e3 ? "1" : "0.4", u2.style.cursor = e3 ? "pointer" : "not-allowed", at && lt) {
1616
- const e4 = Math.floor((lt - at) / 1e3), a3 = String(Math.floor(e4 / 60)).padStart(2, "0"), u3 = String(e4 % 60).padStart(2, "0");
1657
+ const e3 = null !== lt && null !== ct;
1658
+ if (u2.disabled = !e3, u2.style.opacity = e3 ? "1" : "0.4", u2.style.cursor = e3 ? "pointer" : "not-allowed", lt && ct) {
1659
+ const e4 = Math.floor((ct - lt) / 1e3), a3 = String(Math.floor(e4 / 60)).padStart(2, "0"), u3 = String(e4 % 60).padStart(2, "0");
1617
1660
  w2.style.display = "block", b2.textContent = `${a3}:${u3}`;
1618
1661
  } else w2.style.display = "none";
1619
1662
  } else m2.style.display = "none", w2.style.display = "none", x2.style.display = "block", C2.style.justifyContent = "flex-end", a2.textContent = "Something already happened. Capture the past few minutes.", u2.disabled = false, u2.style.opacity = "1", u2.style.cursor = "pointer";
1620
1663
  }
1621
1664
  async function stopRecording() {
1622
1665
  var _a2;
1623
- lt = Date.now(), ut = false, ct && clearInterval(ct), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1666
+ ct = Date.now(), pt = false, ut && clearInterval(ut), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1624
1667
  try {
1625
- const { disableFunctionSpanTracking: e2 } = await Promise.resolve().then(() => ge);
1668
+ const { disableFunctionSpanTracking: e2 } = await Promise.resolve().then(() => ye);
1626
1669
  e2();
1627
1670
  } catch (e2) {
1628
1671
  console.error("[Report Issue] Failed to disable function span tracking:", e2);
@@ -1635,17 +1678,17 @@
1635
1678
  a3 && (a3.textContent = "Re-record");
1636
1679
  }
1637
1680
  const a2 = document.getElementById("sf-recording-timer-label"), u2 = document.getElementById("sf-recording-timer-display");
1638
- if (a2 && u2 && at && lt) {
1639
- const e3 = Math.floor((lt - at) / 1e3), m3 = Math.floor(e3 / 60).toString().padStart(2, "0"), w3 = (e3 % 60).toString().padStart(2, "0");
1681
+ if (a2 && u2 && lt && ct) {
1682
+ const e3 = Math.floor((ct - lt) / 1e3), m3 = Math.floor(e3 / 60).toString().padStart(2, "0"), w3 = (e3 % 60).toString().padStart(2, "0");
1640
1683
  u2.textContent = `${m3}:${w3}`, a2.style.display = "block";
1641
1684
  }
1642
1685
  const m2 = document.getElementById("sf-issue-description");
1643
- m2 && (m2.value = it.description);
1686
+ m2 && (m2.value = at.description);
1644
1687
  const w2 = document.querySelector('input[value="startnow"]');
1645
1688
  w2 && (w2.checked = true);
1646
1689
  const b2 = document.getElementById("sf-inline-record-chip"), C2 = document.getElementById("sf-inline-record-timer");
1647
1690
  if (b2 && C2) {
1648
- const e3 = Math.floor(((lt ?? 0) - (at ?? 0)) / 1e3), a3 = Math.floor(e3 / 60).toString().padStart(2, "0"), u3 = Math.floor(e3 % 60).toString().padStart(2, "0");
1691
+ const e3 = Math.floor(((ct ?? 0) - (lt ?? 0)) / 1e3), a3 = Math.floor(e3 / 60).toString().padStart(2, "0"), u3 = Math.floor(e3 % 60).toString().padStart(2, "0");
1649
1692
  C2.textContent = `${a3}:${u3}`, C2.style.color = "black", b2.style.display = "flex";
1650
1693
  }
1651
1694
  const x2 = document.getElementById("sf-issue-submit-btn");
@@ -1658,7 +1701,7 @@
1658
1701
  var _a3, _b;
1659
1702
  (_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
1703
  })();
1661
- const u2 = a2 ? `${ot.triageBaseUrl}/triage/${a2}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1704
+ const u2 = a2 ? `${st.triageBaseUrl}/triage/${a2}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1662
1705
  m2.id = "sf-triage-status-modal", Object.assign(m2.style, { position: "fixed", inset: "0", zIndex: "9998", display: "flex", alignItems: "center", justifyContent: "center" });
1663
1706
  const w2 = e2 ? "Reporting Issue..." : "Issue reported!", b2 = e2 ? '<p style="font-size:14px; color:#64748b; line-height:20px;">This may take ~10 seconds</p>' : "", C2 = e2 ? '<div style="display:flex; justify-content:center; align-items:center; padding: 40px 0;">\n <div style="width:24px; height:24px; border:2px solid #295dbf; border-top:2px solid white; border-radius:50%; animation:spin 1s linear infinite;"></div>\n </div>' : "", x2 = e2 ? "" : '<div id="sf-copied-status" style="display:none; font-size:12px; font-weight:500; color:white;\n background-color:#22c55e; padding:4px 8px; border-radius:6px; white-space:nowrap; align-items:center; gap:6px;">\n <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M21 7.5L9 19.5L3 13.5L5.25 11.25L9 15L18.75 5.25L21 7.5Z" fill="white"/>\n </svg>\n Copied\n </div>';
1664
1707
  m2.innerHTML = `
@@ -1720,7 +1763,7 @@
1720
1763
  function fadeCardAndRemove(e2, a2, u2 = 300) {
1721
1764
  a2.style.opacity = "0", a2.addEventListener("transitionend", () => e2.remove(), { once: true }), setTimeout(() => e2.remove(), u2 + 100);
1722
1765
  }
1723
- var pt = Object.defineProperty, b$1 = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? pt(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2), dt = Object.defineProperty, xn = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? dt(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2), ht = ((e2) => (e2[e2.Document = 0] = "Document", e2[e2.DocumentType = 1] = "DocumentType", e2[e2.Element = 2] = "Element", e2[e2.Text = 3] = "Text", e2[e2.CDATA = 4] = "CDATA", e2[e2.Comment = 5] = "Comment", e2))(ht || {});
1766
+ var dt = Object.defineProperty, b$1 = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? dt(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2), ht = Object.defineProperty, xn = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? ht(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2), gt = ((e2) => (e2[e2.Document = 0] = "Document", e2[e2.DocumentType = 1] = "DocumentType", e2[e2.Element = 2] = "Element", e2[e2.Text = 3] = "Text", e2[e2.CDATA = 4] = "CDATA", e2[e2.Comment = 5] = "Comment", e2))(gt || {});
1724
1767
  function vr(e2) {
1725
1768
  return e2.nodeType === e2.ELEMENT_NODE;
1726
1769
  }
@@ -1762,7 +1805,7 @@
1762
1805
  })(e2.cssText);
1763
1806
  return a2 || e2.cssText;
1764
1807
  }
1765
- let gt = class {
1808
+ let yt = class {
1766
1809
  constructor() {
1767
1810
  xn(this, "idNodeMap", /* @__PURE__ */ new Map()), xn(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
1768
1811
  }
@@ -1814,7 +1857,7 @@
1814
1857
  function fe(e2) {
1815
1858
  return e2.toLowerCase();
1816
1859
  }
1817
- const yt = "__rrweb_original__";
1860
+ const wt = "__rrweb_original__";
1818
1861
  function Yt(e2) {
1819
1862
  const a2 = e2.type;
1820
1863
  return e2.hasAttribute("data-rr-is-password") ? "password" : a2 ? fe(a2) : null;
@@ -1829,19 +1872,19 @@
1829
1872
  const m2 = u2.pathname.match(/\.([0-9a-z]+)(?:$)/i);
1830
1873
  return (null == m2 ? void 0 : m2[1]) ?? null;
1831
1874
  }
1832
- let wt = 1;
1833
- const St = new RegExp("[^a-z0-9-_:]");
1875
+ let St = 1;
1876
+ const bt = new RegExp("[^a-z0-9-_:]");
1834
1877
  function Ir() {
1835
- return wt++;
1878
+ return St++;
1836
1879
  }
1837
- let bt, vt;
1838
- const Ct = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, kt = /^(?:[a-z+]+:)?\/\//i, xt = /^www\..*/i, Mt = /^(data:)([^,]*),(.*)/i;
1880
+ let vt, Ct;
1881
+ const kt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, xt = /^(?:[a-z+]+:)?\/\//i, Mt = /^www\..*/i, It = /^(data:)([^,]*),(.*)/i;
1839
1882
  function Pt(e2, a2) {
1840
- return (e2 || "").replace(Ct, (e3, u2, m2, w2, b2, C2) => {
1883
+ return (e2 || "").replace(kt, (e3, u2, m2, w2, b2, C2) => {
1841
1884
  const x2 = m2 || b2 || C2, I2 = u2 || w2 || "";
1842
1885
  if (!x2) return e3;
1843
- if (kt.test(x2) || xt.test(x2)) return `url(${I2}${x2}${I2})`;
1844
- if (Mt.test(x2)) return `url(${I2}${x2}${I2})`;
1886
+ if (xt.test(x2) || Mt.test(x2)) return `url(${I2}${x2}${I2})`;
1887
+ if (It.test(x2)) return `url(${I2}${x2}${I2})`;
1845
1888
  if ("/" === x2[0]) return `url(${I2}${(function Ei(e4) {
1846
1889
  let a3 = "";
1847
1890
  return a3 = e4.indexOf("//") > -1 ? e4.split("/").slice(0, 3).join("/") : e4.split("/")[0], a3 = a3.split("?")[0], a3;
@@ -1852,8 +1895,8 @@
1852
1895
  return `url(${I2}${_2.join("/")}${I2})`;
1853
1896
  });
1854
1897
  }
1855
- const It = /^[^ \t\n\r\u000c]+/, Et = /^[, \t\n\r\u000c]+/;
1856
- const Lt = /* @__PURE__ */ new WeakMap();
1898
+ const Et = /^[^ \t\n\r\u000c]+/, Lt = /^[, \t\n\r\u000c]+/;
1899
+ const Rt = /* @__PURE__ */ new WeakMap();
1857
1900
  function At(e2, a2) {
1858
1901
  return a2 && "" !== a2.trim() ? $t(e2, a2) : a2;
1859
1902
  }
@@ -1861,8 +1904,8 @@
1861
1904
  return !("svg" !== e2.tagName && !e2.ownerSVGElement);
1862
1905
  }
1863
1906
  function $t(e2, a2) {
1864
- let u2 = Lt.get(e2);
1865
- if (u2 || (u2 = e2.createElement("a"), Lt.set(e2, u2)), a2) {
1907
+ let u2 = Rt.get(e2);
1908
+ if (u2 || (u2 = e2.createElement("a"), Rt.set(e2, u2)), a2) {
1866
1909
  if (a2.startsWith("blob:") || a2.startsWith("data:")) return a2;
1867
1910
  } else a2 = "";
1868
1911
  return u2.setAttribute("href", a2), u2.href;
@@ -1877,8 +1920,8 @@
1877
1920
  return w2 ? (m4 = w2[0], u3 += m4.length, m4) : "";
1878
1921
  }
1879
1922
  const m3 = [];
1880
- for (; n(Et), !(u3 >= a3.length); ) {
1881
- let w2 = n(It);
1923
+ for (; n(Lt), !(u3 >= a3.length); ) {
1924
+ let w2 = n(Et);
1882
1925
  if ("," === w2.slice(-1)) w2 = At(e3, w2.substring(0, w2.length - 1)), m3.push(w2);
1883
1926
  else {
1884
1927
  let b2 = "";
@@ -1948,9 +1991,9 @@
1948
1991
  })(u2, m2);
1949
1992
  switch (e2.nodeType) {
1950
1993
  case e2.DOCUMENT_NODE:
1951
- return "CSS1Compat" !== e2.compatMode ? { type: ht.Document, childNodes: [], compatMode: e2.compatMode } : { type: ht.Document, childNodes: [] };
1994
+ return "CSS1Compat" !== e2.compatMode ? { type: gt.Document, childNodes: [], compatMode: e2.compatMode } : { type: gt.Document, childNodes: [] };
1952
1995
  case e2.DOCUMENT_TYPE_NODE:
1953
- return { type: ht.DocumentType, name: e2.name, publicId: e2.publicId, systemId: e2.systemId, rootId: $2 };
1996
+ return { type: gt.DocumentType, name: e2.name, publicId: e2.publicId, systemId: e2.systemId, rootId: $2 };
1954
1997
  case e2.ELEMENT_NODE:
1955
1998
  return (function Vi(e3, a3) {
1956
1999
  const { doc: u3, blockClass: m3, blockSelector: w3, inlineStylesheet: b3, maskInputOptions: C3 = {}, maskInputFn: x3, dataURLOptions: I3 = {}, inlineImages: _3, recordCanvas: O3, keepIframeSrcFn: E3, newlyAddedElement: D3 = false, rootId: F3 } = a3, U3 = (function Ui(e4, a4, u4) {
@@ -1968,7 +2011,7 @@
1968
2011
  })(e3, m3, w3), B3 = (function Oi(e4) {
1969
2012
  if (e4 instanceof HTMLFormElement) return "form";
1970
2013
  const a4 = fe(e4.tagName);
1971
- return St.test(a4) ? "div" : a4;
2014
+ return bt.test(a4) ? "div" : a4;
1972
2015
  })(e3);
1973
2016
  let $3 = {};
1974
2017
  const z2 = e3.attributes.length;
@@ -1997,7 +2040,7 @@
1997
2040
  const a4 = e4.getContext("2d");
1998
2041
  if (!a4) return true;
1999
2042
  for (let u4 = 0; u4 < e4.width; u4 += 50) for (let m4 = 0; m4 < e4.height; m4 += 50) {
2000
- const w4 = a4.getImageData, b4 = yt in w4 ? w4[yt] : w4;
2043
+ const w4 = a4.getImageData, b4 = wt in w4 ? w4[wt] : w4;
2001
2044
  if (new Uint32Array(b4.call(a4, u4, m4, Math.min(50, e4.width - u4), Math.min(50, e4.height - m4)).data.buffer).some((e5) => 0 !== e5)) return false;
2002
2045
  }
2003
2046
  return true;
@@ -2009,11 +2052,11 @@
2009
2052
  }
2010
2053
  }
2011
2054
  if ("img" === B3 && _3) {
2012
- bt || (bt = u3.createElement("canvas"), vt = bt.getContext("2d"));
2055
+ vt || (vt = u3.createElement("canvas"), Ct = vt.getContext("2d"));
2013
2056
  const a4 = e3, m4 = a4.currentSrc || a4.getAttribute("src") || "<unknown-src>", w4 = a4.crossOrigin, A = () => {
2014
2057
  a4.removeEventListener("load", A);
2015
2058
  try {
2016
- bt.width = a4.naturalWidth, bt.height = a4.naturalHeight, vt.drawImage(a4, 0, 0), $3.rr_dataURL = bt.toDataURL(I3.type, I3.quality);
2059
+ vt.width = a4.naturalWidth, vt.height = a4.naturalHeight, Ct.drawImage(a4, 0, 0), $3.rr_dataURL = vt.toDataURL(I3.type, I3.quality);
2017
2060
  } catch (e4) {
2018
2061
  if ("anonymous" !== a4.crossOrigin) return a4.crossOrigin = "anonymous", void (a4.complete && 0 !== a4.naturalWidth ? A() : a4.addEventListener("load", A));
2019
2062
  console.warn(`Cannot inline img src=${m4}! Error: ${e4}`);
@@ -2036,7 +2079,7 @@
2036
2079
  customElements.get(B3) && (j2 = true);
2037
2080
  } catch {
2038
2081
  }
2039
- return { type: ht.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e3) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2082
+ return { type: gt.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e3) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2040
2083
  })(e2, { doc: u2, blockClass: w2, blockSelector: b2, inlineStylesheet: x2, maskInputOptions: I2, maskInputFn: O2, dataURLOptions: E2, inlineImages: D2, recordCanvas: F2, keepIframeSrcFn: U2, newlyAddedElement: B2, rootId: $2 });
2041
2084
  case e2.TEXT_NODE:
2042
2085
  return (function ji(e3, a3) {
@@ -2052,12 +2095,12 @@
2052
2095
  }
2053
2096
  x3 = Pt(x3, $t(a3.doc));
2054
2097
  }
2055
- return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e3.parentElement) : x3.replace(/[\S]/g, "*")), { type: ht.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2098
+ return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e3.parentElement) : x3.replace(/[\S]/g, "*")), { type: gt.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2056
2099
  })(e2, { doc: u2, needsMask: C2, maskTextFn: _2, rootId: $2 });
2057
2100
  case e2.CDATA_SECTION_NODE:
2058
- return { type: ht.CDATA, textContent: "", rootId: $2 };
2101
+ return { type: gt.CDATA, textContent: "", rootId: $2 };
2059
2102
  case e2.COMMENT_NODE:
2060
- return { type: ht.Comment, textContent: e2.textContent || "", rootId: $2 };
2103
+ return { type: gt.Comment, textContent: e2.textContent || "", rootId: $2 };
2061
2104
  default:
2062
2105
  return false;
2063
2106
  }
@@ -2073,21 +2116,21 @@
2073
2116
  if (!ee2) return console.warn(e2, "not serialized"), null;
2074
2117
  let te2;
2075
2118
  te2 = m2.hasNode(e2) ? m2.getId(e2) : (function Gi(e3, a3) {
2076
- return !!(a3.comment && e3.type === ht.Comment || e3.type === ht.Element && (a3.script && ("script" === e3.tagName || "link" === e3.tagName && ("preload" === e3.attributes.rel || "modulepreload" === e3.attributes.rel) && "script" === e3.attributes.as || "link" === e3.tagName && "prefetch" === e3.attributes.rel && "string" == typeof e3.attributes.href && "js" === xr(e3.attributes.href)) || a3.headFavicon && ("link" === e3.tagName && "shortcut icon" === e3.attributes.rel || "meta" === e3.tagName && (N(e3.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e3.attributes.name) || "icon" === N(e3.attributes.rel) || "apple-touch-icon" === N(e3.attributes.rel) || "shortcut icon" === N(e3.attributes.rel))) || "meta" === e3.tagName && (a3.headMetaDescKeywords && N(e3.attributes.name).match(/^description|keywords$/) || a3.headMetaSocial && (N(e3.attributes.property).match(/^(og|twitter|fb):/) || N(e3.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e3.attributes.name)) || a3.headMetaRobots && ("robots" === N(e3.attributes.name) || "googlebot" === N(e3.attributes.name) || "bingbot" === N(e3.attributes.name)) || a3.headMetaHttpEquiv && void 0 !== e3.attributes["http-equiv"] || a3.headMetaAuthorship && ("author" === N(e3.attributes.name) || "generator" === N(e3.attributes.name) || "framework" === N(e3.attributes.name) || "publisher" === N(e3.attributes.name) || "progid" === N(e3.attributes.name) || N(e3.attributes.property).match(/^article:/) || N(e3.attributes.property).match(/^product:/)) || a3.headMetaVerification && ("google-site-verification" === N(e3.attributes.name) || "yandex-verification" === N(e3.attributes.name) || "csrf-token" === N(e3.attributes.name) || "p:domain_verify" === N(e3.attributes.name) || "verify-v1" === N(e3.attributes.name) || "verification" === N(e3.attributes.name) || "shopify-checkout-api-token" === N(e3.attributes.name)))));
2077
- })(ee2, F2) || !Q2 && ee2.type === ht.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2119
+ return !!(a3.comment && e3.type === gt.Comment || e3.type === gt.Element && (a3.script && ("script" === e3.tagName || "link" === e3.tagName && ("preload" === e3.attributes.rel || "modulepreload" === e3.attributes.rel) && "script" === e3.attributes.as || "link" === e3.tagName && "prefetch" === e3.attributes.rel && "string" == typeof e3.attributes.href && "js" === xr(e3.attributes.href)) || a3.headFavicon && ("link" === e3.tagName && "shortcut icon" === e3.attributes.rel || "meta" === e3.tagName && (N(e3.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e3.attributes.name) || "icon" === N(e3.attributes.rel) || "apple-touch-icon" === N(e3.attributes.rel) || "shortcut icon" === N(e3.attributes.rel))) || "meta" === e3.tagName && (a3.headMetaDescKeywords && N(e3.attributes.name).match(/^description|keywords$/) || a3.headMetaSocial && (N(e3.attributes.property).match(/^(og|twitter|fb):/) || N(e3.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e3.attributes.name)) || a3.headMetaRobots && ("robots" === N(e3.attributes.name) || "googlebot" === N(e3.attributes.name) || "bingbot" === N(e3.attributes.name)) || a3.headMetaHttpEquiv && void 0 !== e3.attributes["http-equiv"] || a3.headMetaAuthorship && ("author" === N(e3.attributes.name) || "generator" === N(e3.attributes.name) || "framework" === N(e3.attributes.name) || "publisher" === N(e3.attributes.name) || "progid" === N(e3.attributes.name) || N(e3.attributes.property).match(/^article:/) || N(e3.attributes.property).match(/^product:/)) || a3.headMetaVerification && ("google-site-verification" === N(e3.attributes.name) || "yandex-verification" === N(e3.attributes.name) || "csrf-token" === N(e3.attributes.name) || "p:domain_verify" === N(e3.attributes.name) || "verify-v1" === N(e3.attributes.name) || "verification" === N(e3.attributes.name) || "shopify-checkout-api-token" === N(e3.attributes.name)))));
2120
+ })(ee2, F2) || !Q2 && ee2.type === gt.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2078
2121
  const ne2 = Object.assign(ee2, { id: te2 });
2079
2122
  if (m2.add(e2, ne2), -2 === te2) return null;
2080
2123
  z2 && z2(e2);
2081
2124
  let re2 = !I2;
2082
- if (ne2.type === ht.Element) {
2125
+ if (ne2.type === gt.Element) {
2083
2126
  re2 = re2 && !ne2.needBlock, delete ne2.needBlock;
2084
2127
  const a3 = e2.shadowRoot;
2085
2128
  a3 && ze(a3) && (ne2.isShadowHost = true);
2086
2129
  }
2087
- if ((ne2.type === ht.Document || ne2.type === ht.Element) && re2) {
2088
- F2.headWhitespace && ne2.type === ht.Element && "head" === ne2.tagName && (Q2 = false);
2130
+ if ((ne2.type === gt.Document || ne2.type === gt.Element) && re2) {
2131
+ F2.headWhitespace && ne2.type === gt.Element && "head" === ne2.tagName && (Q2 = false);
2089
2132
  const a3 = { doc: u2, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, maskTextClass: C2, maskTextSelector: x2, skipChild: I2, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, preserveWhiteSpace: Q2, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2, onStylesheetLoad: q2, stylesheetLoadTimeout: H2, keepIframeSrcFn: J2 };
2090
- if (ne2.type !== ht.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u3 of Array.from(e2.childNodes)) {
2133
+ if (ne2.type !== gt.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u3 of Array.from(e2.childNodes)) {
2091
2134
  const e3 = Se(u3, a3);
2092
2135
  e3 && ne2.childNodes.push(e3);
2093
2136
  }
@@ -2096,7 +2139,7 @@
2096
2139
  m3 && (ze(e2.shadowRoot) && (m3.isShadow = true), ne2.childNodes.push(m3));
2097
2140
  }
2098
2141
  }
2099
- return e2.parentNode && We(e2.parentNode) && ze(e2.parentNode) && (ne2.isShadow = true), ne2.type === ht.Element && "iframe" === ne2.tagName && (function _i(e3, a3, u3) {
2142
+ return e2.parentNode && We(e2.parentNode) && ze(e2.parentNode) && (ne2.isShadow = true), ne2.type === gt.Element && "iframe" === ne2.tagName && (function _i(e3, a3, u3) {
2100
2143
  const m3 = e3.contentWindow;
2101
2144
  if (!m3) return;
2102
2145
  let w3, b3 = false;
@@ -2122,7 +2165,7 @@
2122
2165
  const u3 = Se(a3, { doc: a3, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, maskTextClass: C2, maskTextSelector: x2, skipChild: false, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, preserveWhiteSpace: Q2, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2, onStylesheetLoad: q2, stylesheetLoadTimeout: H2, keepIframeSrcFn: J2 });
2123
2166
  u3 && j2(e2, u3);
2124
2167
  }
2125
- }, V2), ne2.type === ht.Element && "link" === ne2.tagName && "string" == typeof ne2.attributes.rel && ("stylesheet" === ne2.attributes.rel || "preload" === ne2.attributes.rel && "string" == typeof ne2.attributes.href && "css" === xr(ne2.attributes.href)) && (function Wi(e3, a3, u3) {
2168
+ }, V2), ne2.type === gt.Element && "link" === ne2.tagName && "string" == typeof ne2.attributes.rel && ("stylesheet" === ne2.attributes.rel || "preload" === ne2.attributes.rel && "string" == typeof ne2.attributes.href && "css" === xr(ne2.attributes.href)) && (function Wi(e3, a3, u3) {
2126
2169
  let m3, w3 = false;
2127
2170
  try {
2128
2171
  m3 = e3.sheet;
@@ -2162,13 +2205,13 @@
2162
2205
  } });
2163
2206
  }), u2;
2164
2207
  }
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 };
2208
+ var Dt = { exports: {} }, Ft = String, Rr = function() {
2209
+ return { isColorSupported: false, reset: Ft, bold: Ft, dim: Ft, italic: Ft, underline: Ft, inverse: Ft, hidden: Ft, strikethrough: Ft, black: Ft, red: Ft, green: Ft, yellow: Ft, blue: Ft, magenta: Ft, cyan: Ft, white: Ft, gray: Ft, bgBlack: Ft, bgRed: Ft, bgGreen: Ft, bgYellow: Ft, bgBlue: Ft, bgMagenta: Ft, bgCyan: Ft, bgWhite: Ft, blackBright: Ft, redBright: Ft, greenBright: Ft, yellowBright: Ft, blueBright: Ft, magentaBright: Ft, cyanBright: Ft, whiteBright: Ft, bgBlackBright: Ft, bgRedBright: Ft, bgGreenBright: Ft, bgYellowBright: Ft, bgBlueBright: Ft, bgMagentaBright: Ft, bgCyanBright: Ft, bgWhiteBright: Ft };
2167
2210
  };
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 {
2211
+ Dt.exports = Rr(), Dt.exports.createColors = Rr;
2212
+ var Ut = Dt.exports;
2213
+ const Bt = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2214
+ let Wt = Ut, jt = Bt, Vt = class Lr extends Error {
2172
2215
  constructor(e2, a2, u2, m2, w2, b2) {
2173
2216
  super(e2), this.name = "CssSyntaxError", this.reason = e2, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a2 < "u" && typeof u2 < "u" && ("number" == typeof a2 ? (this.line = a2, this.column = u2) : (this.line = a2.line, this.column = a2.column, this.endLine = u2.line, this.endColumn = u2.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, Lr);
2174
2217
  }
@@ -2178,11 +2221,11 @@
2178
2221
  showSourceCode(e2) {
2179
2222
  if (!this.source) return "";
2180
2223
  let a2 = this.source;
2181
- null == e2 && (e2 = Bt.isColorSupported);
2224
+ null == e2 && (e2 = Wt.isColorSupported);
2182
2225
  let n = (e3) => e3, r = (e3) => e3, i = (e3) => e3;
2183
2226
  if (e2) {
2184
- let { bold: e3, gray: a3, red: u3 } = Bt.createColors(true);
2185
- r = (a4) => e3(u3(a4)), n = (e4) => a3(e4), Wt && (i = (e4) => Wt(e4));
2227
+ let { bold: e3, gray: a3, red: u3 } = Wt.createColors(true);
2228
+ r = (a4) => e3(u3(a4)), n = (e4) => a3(e4), jt && (i = (e4) => jt(e4));
2186
2229
  }
2187
2230
  let u2 = a2.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u2.length), b2 = String(w2).length;
2188
2231
  return u2.slice(m2, w2).map((e3, a3) => {
@@ -2203,10 +2246,10 @@
2203
2246
  return e2 && (e2 = "\n\n" + e2 + "\n"), this.name + ": " + this.message + e2;
2204
2247
  }
2205
2248
  };
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 {
2249
+ var Ht = Vt;
2250
+ Vt.default = Vt;
2251
+ const Kt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2252
+ let Jt = class {
2210
2253
  constructor(e2) {
2211
2254
  this.builder = e2;
2212
2255
  }
@@ -2258,7 +2301,7 @@
2258
2301
  if (u2 || (u2 = a2), a2 && (m2 = e2.raws[a2], typeof m2 < "u")) return m2;
2259
2302
  let w2 = e2.parent;
2260
2303
  if ("before" === u2 && (!w2 || "root" === w2.type && w2.first === e2 || w2 && "document" === w2.type)) return "";
2261
- if (!w2) return Ht[u2];
2304
+ if (!w2) return Kt[u2];
2262
2305
  let b2 = e2.root();
2263
2306
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u2] < "u") return b2.rawCache[u2];
2264
2307
  if ("before" === u2 || "after" === u2) return this.beforeAfter(e2, u2);
@@ -2270,7 +2313,7 @@
2270
2313
  if (m2 = e3.raws[a2], typeof m2 < "u") return false;
2271
2314
  });
2272
2315
  }
2273
- return typeof m2 > "u" && (m2 = Ht[u2]), b2.rawCache[u2] = m2, m2;
2316
+ return typeof m2 > "u" && (m2 = Kt[u2]), b2.rawCache[u2] = m2, m2;
2274
2317
  }
2275
2318
  rawBeforeClose(e2) {
2276
2319
  let a2;
@@ -2346,17 +2389,17 @@
2346
2389
  this[e2.type](e2, a2);
2347
2390
  }
2348
2391
  };
2349
- var Jt = Kt;
2350
- Kt.default = Kt;
2351
- let Xt = Jt;
2392
+ var Xt = Jt;
2393
+ Jt.default = Jt;
2394
+ let Qt = Xt;
2352
2395
  function ks(e2, a2) {
2353
- new Xt(a2).stringify(e2);
2396
+ new Qt(a2).stringify(e2);
2354
2397
  }
2355
- var Qt = ks;
2398
+ var en = ks;
2356
2399
  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;
2400
+ var tn = {};
2401
+ tn.isClean = Symbol("isClean"), tn.my = Symbol("my");
2402
+ let nn = Ht, rn = Xt, on = en, { isClean: sn, my: an } = tn;
2360
2403
  function Cs(e2, a2) {
2361
2404
  let u2 = new e2.constructor();
2362
2405
  for (let m2 in e2) {
@@ -2378,12 +2421,12 @@
2378
2421
  }
2379
2422
  return w2;
2380
2423
  }
2381
- let an = class {
2424
+ let ln = class {
2382
2425
  get proxyOf() {
2383
2426
  return this;
2384
2427
  }
2385
2428
  constructor(e2 = {}) {
2386
- this.raws = {}, this[on] = false, this[sn] = true;
2429
+ this.raws = {}, this[sn] = false, this[an] = true;
2387
2430
  for (let a2 in e2) if ("nodes" === a2) {
2388
2431
  this.nodes = [];
2389
2432
  for (let u2 of e2[a2]) "function" == typeof u2.clone ? this.append(u2.clone()) : this.append(u2);
@@ -2427,19 +2470,19 @@
2427
2470
  let { end: u2, start: m2 } = this.rangeBy(a2);
2428
2471
  return this.source.input.error(e2, { column: m2.column, line: m2.line }, { column: u2.column, line: u2.line }, a2);
2429
2472
  }
2430
- return new tn(e2);
2473
+ return new nn(e2);
2431
2474
  }
2432
2475
  getProxyProcessor() {
2433
2476
  return { get: (e2, a2) => "proxyOf" === a2 ? e2 : "root" === a2 ? () => e2.root().toProxy() : e2[a2], set: (e2, a2, u2) => (e2[a2] === u2 || (e2[a2] = u2, ("prop" === a2 || "value" === a2 || "name" === a2 || "params" === a2 || "important" === a2 || "text" === a2) && e2.markDirty()), true) };
2434
2477
  }
2435
2478
  markClean() {
2436
- this[on] = true;
2479
+ this[sn] = true;
2437
2480
  }
2438
2481
  markDirty() {
2439
- if (this[on]) {
2440
- this[on] = false;
2482
+ if (this[sn]) {
2483
+ this[sn] = false;
2441
2484
  let e2 = this;
2442
- for (; e2 = e2.parent; ) e2[on] = false;
2485
+ for (; e2 = e2.parent; ) e2[sn] = false;
2443
2486
  }
2444
2487
  }
2445
2488
  next() {
@@ -2475,7 +2518,7 @@
2475
2518
  return (u2.line < a2.line || u2.line === a2.line && u2.column <= a2.column) && (u2 = { column: a2.column + 1, line: a2.line }), { end: u2, start: a2 };
2476
2519
  }
2477
2520
  raw(e2, a2) {
2478
- return new nn().raw(this, e2, a2);
2521
+ return new rn().raw(this, e2, a2);
2479
2522
  }
2480
2523
  remove() {
2481
2524
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -2512,7 +2555,7 @@
2512
2555
  toProxy() {
2513
2556
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
2514
2557
  }
2515
- toString(e2 = rn) {
2558
+ toString(e2 = on) {
2516
2559
  e2.stringify && (e2 = e2.stringify);
2517
2560
  let a2 = "";
2518
2561
  return e2(this, (e3) => {
@@ -2525,16 +2568,16 @@
2525
2568
  return e2.warn(a2, m2);
2526
2569
  }
2527
2570
  };
2528
- var ln = an;
2529
- an.default = an;
2530
- let cn = ln, un = class extends cn {
2571
+ var cn = ln;
2572
+ ln.default = ln;
2573
+ let un = cn, pn = class extends un {
2531
2574
  constructor(e2) {
2532
2575
  super(e2), this.type = "comment";
2533
2576
  }
2534
2577
  };
2535
- var pn = un;
2536
- un.default = un;
2537
- let dn = ln, hn = class extends dn {
2578
+ var dn = pn;
2579
+ pn.default = pn;
2580
+ let hn = cn, fn = class extends hn {
2538
2581
  get variable() {
2539
2582
  return this.prop.startsWith("--") || "$" === this.prop[0];
2540
2583
  }
@@ -2542,16 +2585,16 @@
2542
2585
  e2 && typeof e2.value < "u" && "string" != typeof e2.value && (e2 = { ...e2, value: String(e2.value) }), super(e2), this.type = "decl";
2543
2586
  }
2544
2587
  };
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;
2588
+ var mn = fn;
2589
+ fn.default = fn;
2590
+ let gn, yn, wn, Sn, bn = dn, Mn = mn, In = cn, { isClean: _n, my: On } = tn;
2548
2591
  function _r(e2) {
2549
2592
  return e2.map((e3) => (e3.nodes && (e3.nodes = _r(e3.nodes)), delete e3.source, e3));
2550
2593
  }
2551
2594
  function Wr(e2) {
2552
- if (e2[In] = false, e2.proxyOf.nodes) for (let a2 of e2.proxyOf.nodes) Wr(a2);
2595
+ if (e2[_n] = false, e2.proxyOf.nodes) for (let a2 of e2.proxyOf.nodes) Wr(a2);
2553
2596
  }
2554
- let On = class zr extends Mn {
2597
+ let En = class zr extends In {
2555
2598
  get first() {
2556
2599
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
2557
2600
  }
@@ -2603,7 +2646,7 @@
2603
2646
  return this.markDirty(), this;
2604
2647
  }
2605
2648
  normalize(e2, a2) {
2606
- if ("string" == typeof e2) e2 = _r(gn(e2).nodes);
2649
+ if ("string" == typeof e2) e2 = _r(yn(e2).nodes);
2607
2650
  else if (typeof e2 > "u") e2 = [];
2608
2651
  else if (Array.isArray(e2)) {
2609
2652
  e2 = e2.slice(0);
@@ -2614,14 +2657,14 @@
2614
2657
  } else if (e2.type) e2 = [e2];
2615
2658
  else if (e2.prop) {
2616
2659
  if (typeof e2.value > "u") throw new Error("Value field is missed in node creation");
2617
- "string" != typeof e2.value && (e2.value = String(e2.value)), e2 = [new bn(e2)];
2618
- } else if (e2.selector || e2.selectors) e2 = [new wn(e2)];
2619
- else if (e2.name) e2 = [new mn(e2)];
2660
+ "string" != typeof e2.value && (e2.value = String(e2.value)), e2 = [new Mn(e2)];
2661
+ } else if (e2.selector || e2.selectors) e2 = [new Sn(e2)];
2662
+ else if (e2.name) e2 = [new gn(e2)];
2620
2663
  else {
2621
2664
  if (!e2.text) throw new Error("Unknown node type in node creation");
2622
- e2 = [new Sn(e2)];
2665
+ e2 = [new bn(e2)];
2623
2666
  }
2624
- return e2.map((e3) => (e3[_n] || zr.rebuild(e3), (e3 = e3.proxyOf).parent && e3.parent.removeChild(e3), e3[In] && Wr(e3), e3.raws || (e3.raws = {}), typeof e3.raws.before > "u" && a2 && typeof a2.raws.before < "u" && (e3.raws.before = a2.raws.before.replace(/\S/g, "")), e3.parent = this.proxyOf, e3));
2667
+ return e2.map((e3) => (e3[On] || zr.rebuild(e3), (e3 = e3.proxyOf).parent && e3.parent.removeChild(e3), e3[_n] && Wr(e3), e3.raws || (e3.raws = {}), typeof e3.raws.before > "u" && a2 && typeof a2.raws.before < "u" && (e3.raws.before = a2.raws.before.replace(/\S/g, "")), e3.parent = this.proxyOf, e3));
2625
2668
  }
2626
2669
  prepend(...e2) {
2627
2670
  e2 = e2.reverse();
@@ -2697,22 +2740,22 @@
2697
2740
  }));
2698
2741
  }
2699
2742
  };
2700
- On.registerParse = (e2) => {
2743
+ En.registerParse = (e2) => {
2744
+ yn = e2;
2745
+ }, En.registerRule = (e2) => {
2746
+ Sn = e2;
2747
+ }, En.registerAtRule = (e2) => {
2701
2748
  gn = e2;
2702
- }, On.registerRule = (e2) => {
2749
+ }, En.registerRoot = (e2) => {
2703
2750
  wn = e2;
2704
- }, On.registerAtRule = (e2) => {
2705
- mn = e2;
2706
- }, On.registerRoot = (e2) => {
2707
- yn = e2;
2708
2751
  };
2709
- var En = On;
2710
- On.default = On, On.rebuild = (e2) => {
2711
- "atrule" === e2.type ? Object.setPrototypeOf(e2, mn.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, wn.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, bn.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Sn.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, yn.prototype), e2[_n] = true, e2.nodes && e2.nodes.forEach((e3) => {
2712
- On.rebuild(e3);
2752
+ var Ln = En;
2753
+ En.default = En, En.rebuild = (e2) => {
2754
+ "atrule" === e2.type ? Object.setPrototypeOf(e2, gn.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Sn.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, Mn.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, bn.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, wn.prototype), e2[On] = true, e2.nodes && e2.nodes.forEach((e3) => {
2755
+ En.rebuild(e3);
2713
2756
  });
2714
2757
  };
2715
- let Ln = En, Rn = class extends Ln {
2758
+ let Rn = Ln, An = class extends Rn {
2716
2759
  constructor(e2) {
2717
2760
  super(e2), this.type = "atrule";
2718
2761
  }
@@ -2723,38 +2766,38 @@
2723
2766
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e2);
2724
2767
  }
2725
2768
  };
2726
- var An = Rn;
2727
- Rn.default = Rn, Ln.registerAtRule(Rn);
2728
- let Tn, Nn, Pn = En, Dn = class extends Pn {
2769
+ var Tn = An;
2770
+ An.default = An, Rn.registerAtRule(An);
2771
+ let Nn, Pn, Dn = Ln, Fn = class extends Dn {
2729
2772
  constructor(e2) {
2730
2773
  super({ type: "document", ...e2 }), this.nodes || (this.nodes = []);
2731
2774
  }
2732
2775
  toResult(e2 = {}) {
2733
- return new Tn(new Nn(), this, e2).stringify();
2776
+ return new Nn(new Pn(), this, e2).stringify();
2734
2777
  }
2735
2778
  };
2736
- Dn.registerLazyResult = (e2) => {
2737
- Tn = e2;
2738
- }, Dn.registerProcessor = (e2) => {
2779
+ Fn.registerLazyResult = (e2) => {
2739
2780
  Nn = e2;
2781
+ }, Fn.registerProcessor = (e2) => {
2782
+ Pn = e2;
2740
2783
  };
2741
- var Fn = Dn;
2742
- Dn.default = Dn;
2743
- var Un = { nanoid: (e2 = 21) => {
2784
+ var Un = Fn;
2785
+ Fn.default = Fn;
2786
+ var Bn = { nanoid: (e2 = 21) => {
2744
2787
  let a2 = "", u2 = 0 | e2;
2745
2788
  for (; u2--; ) a2 += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
2746
2789
  return a2;
2747
2790
  } };
2748
- let { existsSync: Bn, readFileSync: Wn } = Ut, { dirname: zn, join: jn } = Ut, { SourceMapConsumer: Vn, SourceMapGenerator: qn } = Ut;
2749
- let Zn = class {
2791
+ let { existsSync: Wn, readFileSync: zn } = Bt, { dirname: jn, join: Vn } = Bt, { SourceMapConsumer: qn, SourceMapGenerator: Zn } = Bt;
2792
+ let Kn = class {
2750
2793
  constructor(e2, a2) {
2751
2794
  if (false === a2.map) return;
2752
2795
  this.loadAnnotation(e2), this.inline = this.startWith(this.annotation, "data:");
2753
2796
  let u2 = a2.map ? a2.map.prev : void 0, m2 = this.loadMap(a2.from, u2);
2754
- !this.mapFile && a2.from && (this.mapFile = a2.from), this.mapFile && (this.root = zn(this.mapFile)), m2 && (this.text = m2);
2797
+ !this.mapFile && a2.from && (this.mapFile = a2.from), this.mapFile && (this.root = jn(this.mapFile)), m2 && (this.text = m2);
2755
2798
  }
2756
2799
  consumer() {
2757
- return this.consumerCache || (this.consumerCache = new Vn(this.text)), this.consumerCache;
2800
+ return this.consumerCache || (this.consumerCache = new qn(this.text)), this.consumerCache;
2758
2801
  }
2759
2802
  decodeInline(e2) {
2760
2803
  let a2 = e2.match(/^data:application\/json;charset=utf-?8,/) || e2.match(/^data:application\/json,/);
@@ -2779,15 +2822,15 @@
2779
2822
  u2 > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e2.substring(u2, m2)));
2780
2823
  }
2781
2824
  loadFile(e2) {
2782
- if (this.root = zn(e2), Bn(e2)) return this.mapFile = e2, Wn(e2, "utf-8").toString().trim();
2825
+ if (this.root = jn(e2), Wn(e2)) return this.mapFile = e2, zn(e2, "utf-8").toString().trim();
2783
2826
  }
2784
2827
  loadMap(e2, a2) {
2785
2828
  if (false === a2) return false;
2786
2829
  if (a2) {
2787
2830
  if ("string" == typeof a2) return a2;
2788
2831
  if ("function" != typeof a2) {
2789
- if (a2 instanceof Vn) return qn.fromSourceMap(a2).toString();
2790
- if (a2 instanceof qn) return a2.toString();
2832
+ if (a2 instanceof qn) return Zn.fromSourceMap(a2).toString();
2833
+ if (a2 instanceof Zn) return a2.toString();
2791
2834
  if (this.isMap(a2)) return JSON.stringify(a2);
2792
2835
  throw new Error("Unsupported previous source map format: " + a2.toString());
2793
2836
  }
@@ -2803,7 +2846,7 @@
2803
2846
  if (this.inline) return this.decodeInline(this.annotation);
2804
2847
  if (this.annotation) {
2805
2848
  let a3 = this.annotation;
2806
- return e2 && (a3 = jn(zn(e2), a3)), this.loadFile(a3);
2849
+ return e2 && (a3 = Vn(jn(e2), a3)), this.loadFile(a3);
2807
2850
  }
2808
2851
  }
2809
2852
  }
@@ -2814,23 +2857,23 @@
2814
2857
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
2815
2858
  }
2816
2859
  };
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 {
2860
+ var Qn = Kn;
2861
+ Kn.default = Kn;
2862
+ let { nanoid: nr } = Bn, { isAbsolute: rr, resolve: or } = Bt, { SourceMapConsumer: sr, SourceMapGenerator: ir } = Bt, { fileURLToPath: ar, pathToFileURL: lr } = Bt, cr = Ht, ur = Qn, pr = Bt, dr = Symbol("fromOffsetCache"), hr = !(!sr || !ir), fr = !(!or || !rr), mr = class {
2820
2863
  get from() {
2821
2864
  return this.file || this.id;
2822
2865
  }
2823
2866
  constructor(e2, a2 = {}) {
2824
2867
  if (null === e2 || typeof e2 > "u" || "object" == typeof e2 && !e2.toString) throw new Error(`PostCSS received ${e2} instead of CSS string`);
2825
- if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a2.document && (this.document = a2.document.toString()), a2.from && (!hr || /^\w+:\/\//.test(a2.from) || nr(a2.from) ? this.file = a2.from : this.file = rr(a2.from)), hr && dr) {
2826
- let e3 = new cr(this.css, a2);
2868
+ if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a2.document && (this.document = a2.document.toString()), a2.from && (!fr || /^\w+:\/\//.test(a2.from) || rr(a2.from) ? this.file = a2.from : this.file = or(a2.from)), fr && hr) {
2869
+ let e3 = new ur(this.css, a2);
2827
2870
  if (e3.text) {
2828
2871
  this.map = e3;
2829
2872
  let a3 = e3.consumer().file;
2830
2873
  !this.file && a3 && (this.file = this.mapResolve(a3));
2831
2874
  }
2832
2875
  }
2833
- this.file || (this.id = "<input css " + Qn(6) + ">"), this.map && (this.map.file = this.from);
2876
+ this.file || (this.id = "<input css " + nr(6) + ">"), this.map && (this.map.file = this.from);
2834
2877
  }
2835
2878
  error(e2, a2, u2, m2 = {}) {
2836
2879
  let w2, b2, C2;
@@ -2849,17 +2892,17 @@
2849
2892
  a2 = e3.line, u2 = e3.col;
2850
2893
  }
2851
2894
  let x2 = this.origin(a2, u2, b2, w2);
2852
- return C2 = x2 ? new lr(e2, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new lr(e2, void 0 === b2 ? a2 : { column: u2, line: a2 }, void 0 === b2 ? u2 : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u2, endColumn: w2, endLine: b2, line: a2, source: this.css }, this.file && (ar && (C2.input.url = ar(this.file).toString()), C2.input.file = this.file), C2;
2895
+ return C2 = x2 ? new cr(e2, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new cr(e2, void 0 === b2 ? a2 : { column: u2, line: a2 }, void 0 === b2 ? u2 : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u2, endColumn: w2, endLine: b2, line: a2, source: this.css }, this.file && (lr && (C2.input.url = lr(this.file).toString()), C2.input.file = this.file), C2;
2853
2896
  }
2854
2897
  fromOffset(e2) {
2855
2898
  let a2, u2;
2856
- if (this[pr]) u2 = this[pr];
2899
+ if (this[dr]) u2 = this[dr];
2857
2900
  else {
2858
2901
  let e3 = this.css.split("\n");
2859
2902
  u2 = new Array(e3.length);
2860
2903
  let a3 = 0;
2861
2904
  for (let m3 = 0, w2 = e3.length; m3 < w2; m3++) u2[m3] = a3, a3 += e3[m3].length + 1;
2862
- this[pr] = u2;
2905
+ this[dr] = u2;
2863
2906
  }
2864
2907
  a2 = u2[u2.length - 1];
2865
2908
  let m2 = 0;
@@ -2878,17 +2921,17 @@
2878
2921
  return { col: e2 - u2[m2] + 1, line: m2 + 1 };
2879
2922
  }
2880
2923
  mapResolve(e2) {
2881
- return /^\w+:\/\//.test(e2) ? e2 : rr(this.map.consumer().sourceRoot || this.map.root || ".", e2);
2924
+ return /^\w+:\/\//.test(e2) ? e2 : or(this.map.consumer().sourceRoot || this.map.root || ".", e2);
2882
2925
  }
2883
2926
  origin(e2, a2, u2, m2) {
2884
2927
  if (!this.map) return false;
2885
2928
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a2, line: e2 });
2886
2929
  if (!x2.source) return false;
2887
- "number" == typeof u2 && (w2 = C2.originalPositionFor({ column: m2, line: u2 })), b2 = nr(x2.source) ? ar(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ar(this.map.mapFile));
2930
+ "number" == typeof u2 && (w2 = C2.originalPositionFor({ column: m2, line: u2 })), b2 = rr(x2.source) ? lr(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || lr(this.map.mapFile));
2888
2931
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
2889
2932
  if ("file:" === b2.protocol) {
2890
- if (!ir) throw new Error("file: protocol is not available in this PostCSS build");
2891
- I2.file = ir(b2);
2933
+ if (!ar) throw new Error("file: protocol is not available in this PostCSS build");
2934
+ I2.file = ar(b2);
2892
2935
  }
2893
2936
  let _2 = C2.sourceContentFor(x2.source);
2894
2937
  return _2 && (I2.source = _2), I2;
@@ -2899,9 +2942,9 @@
2899
2942
  return this.map && (e2.map = { ...this.map }, e2.map.consumerCache && (e2.map.consumerCache = void 0)), e2;
2900
2943
  }
2901
2944
  };
2902
- var mr = fr;
2903
- fr.default = fr, ur && ur.registerInput && ur.registerInput(fr);
2904
- let gr, yr, wr = En, Sr = class extends wr {
2945
+ var gr = mr;
2946
+ mr.default = mr, pr && pr.registerInput && pr.registerInput(mr);
2947
+ let yr, wr, Sr = Ln, Cr = class extends Sr {
2905
2948
  constructor(e2) {
2906
2949
  super(e2), this.type = "root", this.nodes || (this.nodes = []);
2907
2950
  }
@@ -2918,29 +2961,29 @@
2918
2961
  return !a2 && 0 === u2 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u2].raws.before), super.removeChild(e2);
2919
2962
  }
2920
2963
  toResult(e2 = {}) {
2921
- return new gr(new yr(), this, e2).stringify();
2964
+ return new yr(new wr(), this, e2).stringify();
2922
2965
  }
2923
2966
  };
2924
- Sr.registerLazyResult = (e2) => {
2925
- gr = e2;
2926
- }, Sr.registerProcessor = (e2) => {
2967
+ Cr.registerLazyResult = (e2) => {
2927
2968
  yr = e2;
2969
+ }, Cr.registerProcessor = (e2) => {
2970
+ wr = e2;
2928
2971
  };
2929
- var Cr = Sr;
2930
- Sr.default = Sr, wr.registerRoot(Sr);
2931
- let Ar = { comma: (e2) => Ar.split(e2, [","], true), space(e2) {
2972
+ var Ar = Cr;
2973
+ Cr.default = Cr, Sr.registerRoot(Cr);
2974
+ let Tr = { comma: (e2) => Tr.split(e2, [","], true), space(e2) {
2932
2975
  let a2 = [" ", "\n", " "];
2933
- return Ar.split(e2, a2);
2976
+ return Tr.split(e2, a2);
2934
2977
  }, split(e2, a2, u2) {
2935
2978
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
2936
2979
  for (let u3 of e2) _2 ? _2 = false : "\\" === u3 ? _2 = true : x2 ? u3 === I2 && (x2 = false) : '"' === u3 || "'" === u3 ? (x2 = true, I2 = u3) : "(" === u3 ? C2 += 1 : ")" === u3 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a2.includes(u3) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u3;
2937
2980
  return (u2 || "" !== w2) && m2.push(w2.trim()), m2;
2938
2981
  } };
2939
- var Tr = Ar;
2940
- Ar.default = Ar;
2941
- let Nr = En, Pr = Tr, Dr = class extends Nr {
2982
+ var Nr = Tr;
2983
+ Tr.default = Tr;
2984
+ let Pr = Ln, Dr = Nr, Fr = class extends Pr {
2942
2985
  get selectors() {
2943
- return Pr.comma(this.selector);
2986
+ return Dr.comma(this.selector);
2944
2987
  }
2945
2988
  set selectors(e2) {
2946
2989
  let a2 = this.selector ? this.selector.match(/,\s*/) : null, u2 = a2 ? a2[0] : "," + this.raw("between", "beforeOpen");
@@ -2950,34 +2993,34 @@
2950
2993
  super(e2), this.type = "rule", this.nodes || (this.nodes = []);
2951
2994
  }
2952
2995
  };
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;
2996
+ var Ur = Fr;
2997
+ Fr.default = Fr, Pr.registerRule(Fr);
2998
+ let Br = Tn, $r = dn, jr = mn, Gr = gr, Vr = Qn, qr = Ar, Hr = Ur;
2956
2999
  function Ze(e2, a2) {
2957
3000
  if (Array.isArray(e2)) return e2.map((e3) => Ze(e3));
2958
3001
  let { inputs: u2, ...m2 } = e2;
2959
3002
  if (u2) {
2960
3003
  a2 = [];
2961
3004
  for (let e3 of u2) {
2962
- let u3 = { ...e3, __proto__: jr.prototype };
2963
- u3.map && (u3.map = { ...u3.map, __proto__: Gr.prototype }), a2.push(u3);
3005
+ let u3 = { ...e3, __proto__: Gr.prototype };
3006
+ u3.map && (u3.map = { ...u3.map, __proto__: Vr.prototype }), a2.push(u3);
2964
3007
  }
2965
3008
  }
2966
3009
  if (m2.nodes && (m2.nodes = e2.nodes.map((e3) => Ze(e3, a2))), m2.source) {
2967
3010
  let { inputId: e3, ...u3 } = m2.source;
2968
3011
  m2.source = u3, null != e3 && (m2.source.input = a2[e3]);
2969
3012
  }
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);
3013
+ if ("root" === m2.type) return new qr(m2);
3014
+ if ("decl" === m2.type) return new jr(m2);
3015
+ if ("rule" === m2.type) return new Hr(m2);
3016
+ if ("comment" === m2.type) return new $r(m2);
3017
+ if ("atrule" === m2.type) return new Br(m2);
2975
3018
  throw new Error("Unknown node type: " + e2.type);
2976
3019
  }
2977
- var Hr = Ze;
3020
+ var Zr = Ze;
2978
3021
  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 {
3022
+ let { dirname: Kr, relative: Jr, resolve: Yr, sep: Xr } = Bt, { SourceMapConsumer: Qr, SourceMapGenerator: eo } = Bt, { pathToFileURL: to } = Bt, oo = gr, io = !(!Qr || !eo), ao = !!(Kr && Yr && Jr && Xr);
3023
+ var lo = class {
2981
3024
  constructor(e2, a2, u2, m2) {
2982
3025
  this.stringify = e2, this.mapOpts = u2.map || {}, this.root = a2, this.opts = u2, this.css = m2, this.originalCSS = m2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
2983
3026
  }
@@ -2989,8 +3032,8 @@
2989
3032
  }
2990
3033
  applyPrevMaps() {
2991
3034
  for (let e2 of this.previous()) {
2992
- let a2, u2 = this.toUrl(this.path(e2.file)), m2 = e2.root || Zr(e2.file);
2993
- false === this.mapOpts.sourcesContent ? (a2 = new Xr(e2.text), a2.sourcesContent && (a2.sourcesContent = null)) : a2 = e2.consumer(), this.map.applySourceMap(a2, u2, this.toUrl(this.path(m2)));
3035
+ let a2, u2 = this.toUrl(this.path(e2.file)), m2 = e2.root || Kr(e2.file);
3036
+ false === this.mapOpts.sourcesContent ? (a2 = new Qr(e2.text), a2.sourcesContent && (a2.sourcesContent = null)) : a2 = e2.consumer(), this.map.applySourceMap(a2, u2, this.toUrl(this.path(m2)));
2994
3037
  }
2995
3038
  }
2996
3039
  clearAnnotation() {
@@ -3000,7 +3043,7 @@
3000
3043
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
3001
3044
  }
3002
3045
  generate() {
3003
- if (this.clearAnnotation(), io && oo && this.isMap()) return this.generateMap();
3046
+ if (this.clearAnnotation(), ao && io && this.isMap()) return this.generateMap();
3004
3047
  {
3005
3048
  let e2 = "";
3006
3049
  return this.stringify(this.root, (a2) => {
@@ -3012,12 +3055,12 @@
3012
3055
  if (this.root) this.generateString();
3013
3056
  else if (1 === this.previous().length) {
3014
3057
  let e2 = this.previous()[0].consumer();
3015
- e2.file = this.outputFile(), this.map = Qr.fromSourceMap(e2, { ignoreInvalidMapping: true });
3016
- } else this.map = new Qr({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
3058
+ e2.file = this.outputFile(), this.map = eo.fromSourceMap(e2, { ignoreInvalidMapping: true });
3059
+ } else this.map = new eo({ 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
3060
  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
3061
  }
3019
3062
  generateString() {
3020
- this.css = "", this.map = new Qr({ file: this.outputFile(), ignoreInvalidMapping: true });
3063
+ this.css = "", this.map = new eo({ file: this.outputFile(), ignoreInvalidMapping: true });
3021
3064
  let e2, a2, u2 = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
3022
3065
  this.stringify(this.root, (C2, x2, I2) => {
3023
3066
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u2, b2.generated.column = m2 - 1, x2.source && x2.source.start ? (b2.source = this.sourcePath(x2), b2.original.line = x2.source.start.line, b2.original.column = x2.source.start.column - 1, this.map.addMapping(b2)) : (b2.source = w2, b2.original.line = 1, b2.original.column = 0, this.map.addMapping(b2))), a2 = C2.match(/\n/g), a2 ? (u2 += a2.length, e2 = C2.lastIndexOf("\n"), m2 = C2.length - e2) : m2 += C2.length, x2 && "start" !== I2) {
@@ -3047,9 +3090,9 @@
3047
3090
  if (this.mapOpts.absolute || 60 === e2.charCodeAt(0) || /^\w+:\/\//.test(e2)) return e2;
3048
3091
  let a2 = this.memoizedPaths.get(e2);
3049
3092
  if (a2) return a2;
3050
- let u2 = this.opts.to ? Zr(this.opts.to) : ".";
3051
- "string" == typeof this.mapOpts.annotation && (u2 = Zr(Jr(u2, this.mapOpts.annotation)));
3052
- let m2 = Kr(u2, e2);
3093
+ let u2 = this.opts.to ? Kr(this.opts.to) : ".";
3094
+ "string" == typeof this.mapOpts.annotation && (u2 = Kr(Yr(u2, this.mapOpts.annotation)));
3095
+ let m2 = Jr(u2, e2);
3053
3096
  return this.memoizedPaths.set(e2, m2), m2;
3054
3097
  }
3055
3098
  previous() {
@@ -3060,7 +3103,7 @@
3060
3103
  }
3061
3104
  });
3062
3105
  else {
3063
- let e2 = new to(this.originalCSS, this.opts);
3106
+ let e2 = new oo(this.originalCSS, this.opts);
3064
3107
  e2.map && this.previousMaps.push(e2.map);
3065
3108
  }
3066
3109
  return this.previousMaps;
@@ -3091,8 +3134,8 @@
3091
3134
  toFileUrl(e2) {
3092
3135
  let a2 = this.memoizedFileURLs.get(e2);
3093
3136
  if (a2) return a2;
3094
- if (eo) {
3095
- let a3 = eo(e2).toString();
3137
+ if (to) {
3138
+ let a3 = to(e2).toString();
3096
3139
  return this.memoizedFileURLs.set(e2, a3), a3;
3097
3140
  }
3098
3141
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -3100,13 +3143,13 @@
3100
3143
  toUrl(e2) {
3101
3144
  let a2 = this.memoizedURLs.get(e2);
3102
3145
  if (a2) return a2;
3103
- "\\" === Yr && (e2 = e2.replace(/\\/g, "/"));
3146
+ "\\" === Xr && (e2 = e2.replace(/\\/g, "/"));
3104
3147
  let u2 = encodeURI(e2).replace(/[#?]/g, encodeURIComponent);
3105
3148
  return this.memoizedURLs.set(e2, u2), u2;
3106
3149
  }
3107
3150
  };
3108
- const lo = /[\t\n\f\r "#'()/;[\\\]{}]/g, co = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, uo = /.[\r\n"'(/\\]/, ho = /[\da-f]/i;
3109
- let Mo = An, _o = pn, Ao = fn, No = Cr, Po = Fr, Xa = function(e2, a2 = {}) {
3151
+ const co = /[\t\n\f\r "#'()/;[\\\]{}]/g, uo = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, ho = /.[\r\n"'(/\\]/, Mo = /[\da-f]/i;
3152
+ let _o = Tn, Ao = dn, No = mn, Po = Ar, Do = Ur, Xa = function(e2, a2 = {}) {
3110
3153
  let u2, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e2.css.valueOf(), F2 = a2.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
3111
3154
  function y2(a3) {
3112
3155
  throw e2.error("Unclosed " + a3, B2);
@@ -3156,7 +3199,7 @@
3156
3199
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
3157
3200
  } while (I2);
3158
3201
  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);
3202
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || ho.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3160
3203
  break;
3161
3204
  case 39:
3162
3205
  case 34:
@@ -3174,31 +3217,31 @@
3174
3217
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3175
3218
  break;
3176
3219
  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;
3220
+ co.lastIndex = B2 + 1, co.test(D2), b2 = 0 === co.lastIndex ? D2.length - 1 : co.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3178
3221
  break;
3179
3222
  case 92:
3180
3223
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
3181
- if (u2 = D2.charCodeAt(b2 + 1), w2 && 47 !== u2 && 32 !== u2 && 10 !== u2 && 9 !== u2 && 13 !== u2 && 12 !== u2 && (b2 += 1, ho.test(D2.charAt(b2)))) {
3182
- for (; ho.test(D2.charAt(b2 + 1)); ) b2 += 1;
3224
+ if (u2 = D2.charCodeAt(b2 + 1), w2 && 47 !== u2 && 32 !== u2 && 10 !== u2 && 9 !== u2 && 13 !== u2 && 12 !== u2 && (b2 += 1, Mo.test(D2.charAt(b2)))) {
3225
+ for (; Mo.test(D2.charAt(b2 + 1)); ) b2 += 1;
3183
3226
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
3184
3227
  }
3185
3228
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3186
3229
  break;
3187
3230
  default:
3188
- 47 === u2 && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a3 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (co.lastIndex = B2 + 1, co.test(D2), b2 = 0 === co.lastIndex ? D2.length - 1 : co.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3231
+ 47 === u2 && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a3 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (uo.lastIndex = B2 + 1, uo.test(D2), b2 = 0 === uo.lastIndex ? D2.length - 1 : uo.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3189
3232
  }
3190
3233
  return B2++, x2;
3191
3234
  }, position: function S() {
3192
3235
  return B2;
3193
3236
  } };
3194
3237
  };
3195
- const Do = { empty: true, space: true };
3196
- var Fo = class {
3238
+ const Fo = { empty: true, space: true };
3239
+ var Uo = class {
3197
3240
  constructor(e2) {
3198
- this.input = e2, this.root = new No(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e2, start: { column: 1, line: 1, offset: 0 } };
3241
+ this.input = e2, this.root = new Po(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e2, start: { column: 1, line: 1, offset: 0 } };
3199
3242
  }
3200
3243
  atrule(e2) {
3201
- let a2 = new Mo();
3244
+ let a2 = new _o();
3202
3245
  a2.name = e2[1].slice(1), "" === a2.name && this.unnamedAtrule(a2, e2), this.init(a2, e2[2]);
3203
3246
  let u2, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
3204
3247
  for (; !this.tokenizer.endOfFile(); ) {
@@ -3250,7 +3293,7 @@
3250
3293
  return false;
3251
3294
  }
3252
3295
  comment(e2) {
3253
- let a2 = new _o();
3296
+ let a2 = new Ao();
3254
3297
  this.init(a2, e2[2]), a2.source.end = this.getPosition(e2[3] || e2[2]), a2.source.end.offset++;
3255
3298
  let u2 = e2[1].slice(2, -2);
3256
3299
  if (/^\s*$/.test(u2)) a2.text = "", a2.raws.left = u2, a2.raws.right = "";
@@ -3263,7 +3306,7 @@
3263
3306
  this.tokenizer = Xa(this.input);
3264
3307
  }
3265
3308
  decl(e2, a2) {
3266
- let u2 = new Ao();
3309
+ let u2 = new No();
3267
3310
  this.init(u2, e2[0][2]);
3268
3311
  let m2, w2 = e2[e2.length - 1];
3269
3312
  for (";" === w2[0] && (this.semicolon = true, e2.pop()), u2.source.end = this.getPosition(w2[3] || w2[2] || (function Ha(e3) {
@@ -3312,7 +3355,7 @@
3312
3355
  throw this.input.error("Double colon", { offset: e2[2] }, { offset: e2[2] + e2[1].length });
3313
3356
  }
3314
3357
  emptyRule(e2) {
3315
- let a2 = new Po();
3358
+ let a2 = new Do();
3316
3359
  this.init(a2, e2[2]), a2.selector = "", a2.raws.between = "", this.current = a2;
3317
3360
  }
3318
3361
  end(e2) {
@@ -3388,7 +3431,7 @@
3388
3431
  }
3389
3432
  raw(e2, a2, u2, m2) {
3390
3433
  let w2, b2, C2, x2, I2 = u2.length, _2 = "", O2 = true;
3391
- for (let e3 = 0; e3 < I2; e3 += 1) w2 = u2[e3], b2 = w2[0], "space" !== b2 || e3 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u2[e3 - 1] ? u2[e3 - 1][0] : "empty", C2 = u2[e3 + 1] ? u2[e3 + 1][0] : "empty", Do[x2] || Do[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3434
+ for (let e3 = 0; e3 < I2; e3 += 1) w2 = u2[e3], b2 = w2[0], "space" !== b2 || e3 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u2[e3 - 1] ? u2[e3 - 1][0] : "empty", C2 = u2[e3 + 1] ? u2[e3 + 1][0] : "empty", Fo[x2] || Fo[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3392
3435
  if (!O2) {
3393
3436
  let m3 = u2.reduce((e3, a3) => e3 + a3[1], "");
3394
3437
  e2.raws[a2] = { raw: m3, value: _2 };
@@ -3397,7 +3440,7 @@
3397
3440
  }
3398
3441
  rule(e2) {
3399
3442
  e2.pop();
3400
- let a2 = new Po();
3443
+ let a2 = new Do();
3401
3444
  this.init(a2, e2[0][2]), a2.raws.between = this.spacesAndCommentsFromEnd(e2), this.raw(a2, "selector", e2), this.current = a2;
3402
3445
  }
3403
3446
  spacesAndCommentsFromEnd(e2) {
@@ -3437,9 +3480,9 @@
3437
3480
  throw this.input.error("At-rule without name", { offset: a2[2] }, { offset: a2[2] + a2[1].length });
3438
3481
  }
3439
3482
  };
3440
- let Uo = En, $o = mr, jo = Fo;
3483
+ let $o = Ln, jo = gr, Go = Uo;
3441
3484
  function _t(e2, a2) {
3442
- let u2 = new $o(e2, a2), m2 = new jo(u2);
3485
+ let u2 = new jo(e2, a2), m2 = new Go(u2);
3443
3486
  try {
3444
3487
  m2.parse();
3445
3488
  } catch (e3) {
@@ -3447,9 +3490,9 @@
3447
3490
  }
3448
3491
  return m2.root;
3449
3492
  }
3450
- var Go = _t;
3451
- _t.default = _t, Uo.registerParse(_t);
3452
- let Vo = class {
3493
+ var Vo = _t;
3494
+ _t.default = _t, $o.registerParse(_t);
3495
+ let qo = class {
3453
3496
  constructor(e2, a2 = {}) {
3454
3497
  if (this.type = "warning", this.text = e2, a2.node && a2.node.source) {
3455
3498
  let e3 = a2.node.rangeBy(a2);
@@ -3461,9 +3504,9 @@
3461
3504
  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
3505
  }
3463
3506
  };
3464
- var qo = Vo;
3465
- Vo.default = Vo;
3466
- let Ho = qo, Zo = class {
3507
+ var Ho = qo;
3508
+ qo.default = qo;
3509
+ let Zo = Ho, Ko = class {
3467
3510
  get content() {
3468
3511
  return this.css;
3469
3512
  }
@@ -3475,26 +3518,26 @@
3475
3518
  }
3476
3519
  warn(e2, a2 = {}) {
3477
3520
  a2.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a2.plugin = this.lastPlugin.postcssPlugin);
3478
- let u2 = new Ho(e2, a2);
3521
+ let u2 = new Zo(e2, a2);
3479
3522
  return this.messages.push(u2), u2;
3480
3523
  }
3481
3524
  warnings() {
3482
3525
  return this.messages.filter((e2) => "warning" === e2.type);
3483
3526
  }
3484
3527
  };
3485
- var Ko = Zo;
3486
- Zo.default = Zo;
3487
- let Jo = {};
3528
+ var Jo = Ko;
3529
+ Ko.default = Ko;
3530
+ let Yo = {};
3488
3531
  var so = function(e2) {
3489
- Jo[e2] || (Jo[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
3532
+ Yo[e2] || (Yo[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
3490
3533
  };
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 };
3534
+ let Xo = Ln, Qo = Un, es = lo, ts = Vo, ns = Jo, rs = Ar, os = en, { isClean: ss, my: is } = tn, as = so;
3535
+ const ls = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, cs = { 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 }, us = { Once: true, postcssPlugin: true, prepare: true };
3493
3536
  function Ne(e2) {
3494
3537
  return "object" == typeof e2 && "function" == typeof e2.then;
3495
3538
  }
3496
3539
  function no(e2) {
3497
- let a2 = false, u2 = as[e2.type];
3540
+ let a2 = false, u2 = ls[e2.type];
3498
3541
  return "decl" === e2.type ? a2 = e2.prop.toLowerCase() : "atrule" === e2.type && (a2 = e2.name.toLowerCase()), a2 && e2.append ? [u2, u2 + "-" + a2, 0, u2 + "Exit", u2 + "Exit-" + a2] : a2 ? [u2, u2 + "-" + a2, u2 + "Exit", u2 + "Exit-" + a2] : e2.append ? [u2, 0, u2 + "Exit"] : [u2, u2 + "Exit"];
3499
3542
  }
3500
3543
  function Gn(e2) {
@@ -3502,9 +3545,9 @@
3502
3545
  return a2 = "document" === e2.type ? ["Document", 0, "DocumentExit"] : "root" === e2.type ? ["Root", 0, "RootExit"] : no(e2), { eventIndex: 0, events: a2, iterator: 0, node: e2, visitorIndex: 0, visitors: [] };
3503
3546
  }
3504
3547
  function Ps(e2) {
3505
- return e2[os] = false, e2.nodes && e2.nodes.forEach((e3) => Ps(e3)), e2;
3548
+ return e2[ss] = false, e2.nodes && e2.nodes.forEach((e3) => Ps(e3)), e2;
3506
3549
  }
3507
- let us = {}, ps = class ro {
3550
+ let ps = {}, ds = class ro {
3508
3551
  get content() {
3509
3552
  return this.stringify().content;
3510
3553
  }
@@ -3531,19 +3574,19 @@
3531
3574
  }
3532
3575
  constructor(e2, a2, u2) {
3533
3576
  let m2;
3534
- if (this.stringified = false, this.processed = false, "object" != typeof a2 || null === a2 || "root" !== a2.type && "document" !== a2.type) if (a2 instanceof ro || a2 instanceof ts) m2 = Ps(a2.root), a2.map && (typeof u2.map > "u" && (u2.map = {}), u2.map.inline || (u2.map.inline = false), u2.map.prev = a2.map);
3577
+ if (this.stringified = false, this.processed = false, "object" != typeof a2 || null === a2 || "root" !== a2.type && "document" !== a2.type) if (a2 instanceof ro || a2 instanceof ns) m2 = Ps(a2.root), a2.map && (typeof u2.map > "u" && (u2.map = {}), u2.map.inline || (u2.map.inline = false), u2.map.prev = a2.map);
3535
3578
  else {
3536
- let e3 = es;
3579
+ let e3 = ts;
3537
3580
  u2.syntax && (e3 = u2.syntax.parse), u2.parser && (e3 = u2.parser), e3.parse && (e3 = e3.parse);
3538
3581
  try {
3539
3582
  m2 = e3(a2, u2);
3540
3583
  } catch (e4) {
3541
3584
  this.processed = true, this.error = e4;
3542
3585
  }
3543
- m2 && !m2[ss] && Yo.rebuild(m2);
3586
+ m2 && !m2[is] && Xo.rebuild(m2);
3544
3587
  }
3545
3588
  else m2 = Ps(a2);
3546
- this.result = new ts(e2, m2, u2), this.helpers = { ...us, postcss: us, result: this.result }, this.plugins = this.processor.plugins.map((e3) => "object" == typeof e3 && e3.prepare ? { ...e3, ...e3.prepare(this.result) } : e3);
3589
+ this.result = new ns(e2, m2, u2), this.helpers = { ...ps, postcss: ps, result: this.result }, this.plugins = this.processor.plugins.map((e3) => "object" == typeof e3 && e3.prepare ? { ...e3, ...e3.prepare(this.result) } : e3);
3547
3590
  }
3548
3591
  async() {
3549
3592
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -3577,8 +3620,8 @@
3577
3620
  this.listeners[a2] || (this.listeners[a2] = []), this.listeners[a2].push([e2, u2]);
3578
3621
  };
3579
3622
  for (let e2 of this.plugins) if ("object" == typeof e2) for (let a2 in e2) {
3580
- if (!ls[a2] && /^[A-Z]/.test(a2)) throw new Error(`Unknown event ${a2} in ${e2.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3581
- if (!cs[a2]) if ("object" == typeof e2[a2]) for (let u2 in e2[a2]) t(e2, "*" === u2 ? a2 : a2 + "-" + u2.toLowerCase(), e2[a2][u2]);
3623
+ if (!cs[a2] && /^[A-Z]/.test(a2)) throw new Error(`Unknown event ${a2} in ${e2.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3624
+ if (!us[a2]) if ("object" == typeof e2[a2]) for (let u2 in e2[a2]) t(e2, "*" === u2 ? a2 : a2 + "-" + u2.toLowerCase(), e2[a2][u2]);
3582
3625
  else "function" == typeof e2[a2] && t(e2, a2, e2[a2]);
3583
3626
  }
3584
3627
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -3595,8 +3638,8 @@
3595
3638
  }
3596
3639
  if (this.prepareVisitors(), this.hasListener) {
3597
3640
  let e2 = this.result.root;
3598
- for (; !e2[os]; ) {
3599
- e2[os] = true;
3641
+ for (; !e2[ss]; ) {
3642
+ e2[ss] = true;
3600
3643
  let a2 = [Gn(e2)];
3601
3644
  for (; a2.length > 0; ) {
3602
3645
  let e3 = this.visitTick(a2);
@@ -3641,9 +3684,9 @@
3641
3684
  if (this.error) throw this.error;
3642
3685
  if (this.stringified) return this.result;
3643
3686
  this.stringified = true, this.sync();
3644
- let e2 = this.result.opts, a2 = rs;
3687
+ let e2 = this.result.opts, a2 = os;
3645
3688
  e2.syntax && (a2 = e2.syntax.stringify), e2.stringifier && (a2 = e2.stringifier), a2.stringify && (a2 = a2.stringify);
3646
- let u2 = new Qo(a2, this.result.root, this.result.opts).generate();
3689
+ let u2 = new es(a2, this.result.root, this.result.opts).generate();
3647
3690
  return this.result.css = u2[0], this.result.map = u2[1], this.result;
3648
3691
  }
3649
3692
  sync() {
@@ -3655,14 +3698,14 @@
3655
3698
  }
3656
3699
  if (this.prepareVisitors(), this.hasListener) {
3657
3700
  let e2 = this.result.root;
3658
- for (; !e2[os]; ) e2[os] = true, this.walkSync(e2);
3701
+ for (; !e2[ss]; ) e2[ss] = true, this.walkSync(e2);
3659
3702
  if (this.listeners.OnceExit) if ("document" === e2.type) for (let a2 of e2.nodes) this.visitSync(this.listeners.OnceExit, a2);
3660
3703
  else this.visitSync(this.listeners.OnceExit, e2);
3661
3704
  }
3662
3705
  return this.result;
3663
3706
  }
3664
3707
  then(e2, a2) {
3665
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || is("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
3708
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || as("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
3666
3709
  }
3667
3710
  toString() {
3668
3711
  return this.css;
@@ -3694,22 +3737,22 @@
3694
3737
  }
3695
3738
  if (0 !== a2.iterator) {
3696
3739
  let m3, w3 = a2.iterator;
3697
- for (; m3 = u2.nodes[u2.indexes[w3]]; ) if (u2.indexes[w3] += 1, !m3[os]) return m3[os] = true, void e2.push(Gn(m3));
3740
+ for (; m3 = u2.nodes[u2.indexes[w3]]; ) if (u2.indexes[w3] += 1, !m3[ss]) return m3[ss] = true, void e2.push(Gn(m3));
3698
3741
  a2.iterator = 0, delete u2.indexes[w3];
3699
3742
  }
3700
3743
  let w2 = a2.events;
3701
3744
  for (; a2.eventIndex < w2.length; ) {
3702
3745
  let e3 = w2[a2.eventIndex];
3703
- if (a2.eventIndex += 1, 0 === e3) return void (u2.nodes && u2.nodes.length && (u2[os] = true, a2.iterator = u2.getIterator()));
3746
+ if (a2.eventIndex += 1, 0 === e3) return void (u2.nodes && u2.nodes.length && (u2[ss] = true, a2.iterator = u2.getIterator()));
3704
3747
  if (this.listeners[e3]) return void (a2.visitors = this.listeners[e3]);
3705
3748
  }
3706
3749
  e2.pop();
3707
3750
  }
3708
3751
  walkSync(e2) {
3709
- e2[os] = true;
3752
+ e2[ss] = true;
3710
3753
  let a2 = no(e2);
3711
3754
  for (let u2 of a2) if (0 === u2) e2.nodes && e2.each((e3) => {
3712
- e3[os] || this.walkSync(e3);
3755
+ e3[ss] || this.walkSync(e3);
3713
3756
  });
3714
3757
  else {
3715
3758
  let a3 = this.listeners[u2];
@@ -3720,14 +3763,14 @@
3720
3763
  return this.sync().warnings();
3721
3764
  }
3722
3765
  };
3723
- ps.registerPostcss = (e2) => {
3724
- us = e2;
3766
+ ds.registerPostcss = (e2) => {
3767
+ ps = e2;
3725
3768
  };
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 {
3769
+ var hs = ds;
3770
+ ds.default = ds, rs.registerLazyResult(ds), Qo.registerLazyResult(ds);
3771
+ let ms = lo, gs = Vo;
3772
+ const ys = Jo;
3773
+ let ws = en, Ss = so, bs = class {
3731
3774
  get content() {
3732
3775
  return this.result.css;
3733
3776
  }
@@ -3748,7 +3791,7 @@
3748
3791
  }
3749
3792
  get root() {
3750
3793
  if (this._root) return this._root;
3751
- let e2, a2 = ms;
3794
+ let e2, a2 = gs;
3752
3795
  try {
3753
3796
  e2 = a2(this._css, this._opts);
3754
3797
  } catch (e3) {
@@ -3762,11 +3805,11 @@
3762
3805
  }
3763
3806
  constructor(e2, a2, u2) {
3764
3807
  a2 = a2.toString(), this.stringified = false, this._processor = e2, this._css = a2, this._opts = u2, this._map = void 0;
3765
- let m2, w2 = ys;
3766
- this.result = new gs(this._processor, m2, this._opts), this.result.css = a2;
3808
+ let m2, w2 = ws;
3809
+ this.result = new ys(this._processor, m2, this._opts), this.result.css = a2;
3767
3810
  let b2 = this;
3768
3811
  Object.defineProperty(this.result, "root", { get: () => b2.root });
3769
- let C2 = new hs(w2, m2, this._opts, a2);
3812
+ let C2 = new ms(w2, m2, this._opts, a2);
3770
3813
  if (C2.isMap()) {
3771
3814
  let [e3, a3] = C2.generate();
3772
3815
  e3 && (this.result.css = e3), a3 && (this.result.map = a3);
@@ -3786,7 +3829,7 @@
3786
3829
  return this.result;
3787
3830
  }
3788
3831
  then(e2, a2) {
3789
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || ws("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
3832
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || Ss("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
3790
3833
  }
3791
3834
  toString() {
3792
3835
  return this._css;
@@ -3795,9 +3838,9 @@
3795
3838
  return [];
3796
3839
  }
3797
3840
  };
3798
- var bs = Ss;
3799
- Ss.default = Ss;
3800
- let vs = Fn, xs = ds, Ms = bs, Is = Cr, _s = class {
3841
+ var vs = bs;
3842
+ bs.default = bs;
3843
+ let xs = Un, Ms = hs, Is = vs, _s = Ar, Os = class {
3801
3844
  constructor(e2 = []) {
3802
3845
  this.version = "8.5.3", this.plugins = this.normalize(e2);
3803
3846
  }
@@ -3813,43 +3856,43 @@
3813
3856
  return a2;
3814
3857
  }
3815
3858
  process(e2, a2 = {}) {
3816
- return this.plugins.length || a2.parser || a2.stringifier || a2.syntax ? new xs(this, e2, a2) : new Ms(this, e2, a2);
3859
+ return this.plugins.length || a2.parser || a2.stringifier || a2.syntax ? new Ms(this, e2, a2) : new Is(this, e2, a2);
3817
3860
  }
3818
3861
  use(e2) {
3819
3862
  return this.plugins = this.plugins.concat(this.normalize([e2])), this;
3820
3863
  }
3821
3864
  };
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;
3865
+ var Es = Os;
3866
+ Os.default = Os, _s.registerProcessor(Os), xs.registerProcessor(Os);
3867
+ let Ls = Tn, Rs = dn, As = Ln, Ts = Ht, Ns = mn, $s = Un, Ws = Zr, js = gr, Gs = hs, Vs = Nr, qs = cn, Hs = Vo, Zs = Es, Ks = Jo, Ys = Ar, Xs = Ur, Qs = en, ei = Ho;
3825
3868
  function L$1(...e2) {
3826
- return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new Hs(e2);
3869
+ return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new Zs(e2);
3827
3870
  }
3828
3871
  L$1.plugin = function(e2, a2) {
3829
3872
  let u2, m2 = false;
3830
3873
  function n(...u3) {
3831
3874
  console && console.warn && !m2 && (m2 = true, console.warn(e2 + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e2 + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
3832
3875
  let w2 = a2(...u3);
3833
- return w2.postcssPlugin = e2, w2.postcssVersion = new Hs().version, w2;
3876
+ return w2.postcssPlugin = e2, w2.postcssVersion = new Zs().version, w2;
3834
3877
  }
3835
3878
  return Object.defineProperty(n, "postcss", { get: () => (u2 || (u2 = n()), u2) }), n.process = function(e3, a3, u3) {
3836
3879
  return L$1([n(u3)]).process(e3, a3);
3837
3880
  }, n;
3838
- }, L$1.stringify = Xs, L$1.parse = qs, L$1.fromJSON = $s, L$1.list = Gs, L$1.comment = (e2) => new Ls(e2), L$1.atRule = (e2) => new Es(e2), L$1.decl = (e2) => new Ts(e2), L$1.rule = (e2) => new Ys(e2), L$1.root = (e2) => new Ks(e2), L$1.document = (e2) => new Ns(e2), L$1.CssSyntaxError = As, L$1.Declaration = Ts, L$1.Container = Rs, L$1.Processor = Hs, L$1.Document = Ns, L$1.Comment = Ls, L$1.Warning = Qs, L$1.AtRule = Es, L$1.Result = Zs, L$1.Input = Ws, L$1.Rule = Ys, L$1.Root = Ks, L$1.Node = Vs, js.registerPostcss(L$1);
3839
- var ei = L$1;
3881
+ }, L$1.stringify = Qs, L$1.parse = Hs, L$1.fromJSON = Ws, L$1.list = Vs, L$1.comment = (e2) => new Rs(e2), L$1.atRule = (e2) => new Ls(e2), L$1.decl = (e2) => new Ns(e2), L$1.rule = (e2) => new Xs(e2), L$1.root = (e2) => new Ys(e2), L$1.document = (e2) => new $s(e2), L$1.CssSyntaxError = Ts, L$1.Declaration = Ns, L$1.Container = As, L$1.Processor = Zs, L$1.Document = $s, L$1.Comment = Rs, L$1.Warning = ei, L$1.AtRule = Ls, L$1.Result = Ks, L$1.Input = js, L$1.Rule = Xs, L$1.Root = Ys, L$1.Node = qs, Gs.registerPostcss(L$1);
3882
+ var ti = L$1;
3840
3883
  L$1.default = L$1;
3841
- const ti = Yi(ei);
3842
- ti.stringify, ti.fromJSON, ti.plugin, ti.parse, ti.list, ti.document, ti.comment, ti.atRule, ti.rule, ti.decl, ti.root, ti.CssSyntaxError, ti.Declaration, ti.Container, ti.Processor, ti.Document, ti.Comment, ti.Warning, ti.AtRule, ti.Result, ti.Input, ti.Rule, ti.Root, ti.Node;
3843
- var si = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(si || {}), ii = ((e2) => (e2[e2.Mutation = 0] = "Mutation", e2[e2.MouseMove = 1] = "MouseMove", e2[e2.MouseInteraction = 2] = "MouseInteraction", e2[e2.Scroll = 3] = "Scroll", e2[e2.ViewportResize = 4] = "ViewportResize", e2[e2.Input = 5] = "Input", e2[e2.TouchMove = 6] = "TouchMove", e2[e2.MediaInteraction = 7] = "MediaInteraction", e2[e2.StyleSheetRule = 8] = "StyleSheetRule", e2[e2.CanvasMutation = 9] = "CanvasMutation", e2[e2.Font = 10] = "Font", e2[e2.Log = 11] = "Log", e2[e2.Drag = 12] = "Drag", e2[e2.StyleDeclaration = 13] = "StyleDeclaration", e2[e2.Selection = 14] = "Selection", e2[e2.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e2[e2.CustomElement = 16] = "CustomElement", e2[e2.Typing = 17] = "Typing", e2))(ii || {}), ai = ((e2) => (e2[e2.MouseUp = 0] = "MouseUp", e2[e2.MouseDown = 1] = "MouseDown", e2[e2.Click = 2] = "Click", e2[e2.ContextMenu = 3] = "ContextMenu", e2[e2.DblClick = 4] = "DblClick", e2[e2.Focus = 5] = "Focus", e2[e2.Blur = 6] = "Blur", e2[e2.TouchStart = 7] = "TouchStart", e2[e2.TouchMove_Departed = 8] = "TouchMove_Departed", e2[e2.TouchEnd = 9] = "TouchEnd", e2[e2.TouchCancel = 10] = "TouchCancel", e2))(ai || {}), li = ((e2) => (e2[e2.Mouse = 0] = "Mouse", e2[e2.Pen = 1] = "Pen", e2[e2.Touch = 2] = "Touch", e2))(li || {}), ci = ((e2) => (e2[e2["2D"] = 0] = "2D", e2[e2.WebGL = 1] = "WebGL", e2[e2.WebGL2 = 2] = "WebGL2", e2))(ci || {}), ui = ((e2) => (e2[e2.Play = 0] = "Play", e2[e2.Pause = 1] = "Pause", e2[e2.Seeked = 2] = "Seeked", e2[e2.VolumeChange = 3] = "VolumeChange", e2[e2.RateChange = 4] = "RateChange", e2))(ui || {});
3884
+ const si = Yi(ti);
3885
+ si.stringify, si.fromJSON, si.plugin, si.parse, si.list, si.document, si.comment, si.atRule, si.rule, si.decl, si.root, si.CssSyntaxError, si.Declaration, si.Container, si.Processor, si.Document, si.Comment, si.Warning, si.AtRule, si.Result, si.Input, si.Rule, si.Root, si.Node;
3886
+ var ii = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(ii || {}), ai = ((e2) => (e2[e2.Mutation = 0] = "Mutation", e2[e2.MouseMove = 1] = "MouseMove", e2[e2.MouseInteraction = 2] = "MouseInteraction", e2[e2.Scroll = 3] = "Scroll", e2[e2.ViewportResize = 4] = "ViewportResize", e2[e2.Input = 5] = "Input", e2[e2.TouchMove = 6] = "TouchMove", e2[e2.MediaInteraction = 7] = "MediaInteraction", e2[e2.StyleSheetRule = 8] = "StyleSheetRule", e2[e2.CanvasMutation = 9] = "CanvasMutation", e2[e2.Font = 10] = "Font", e2[e2.Log = 11] = "Log", e2[e2.Drag = 12] = "Drag", e2[e2.StyleDeclaration = 13] = "StyleDeclaration", e2[e2.Selection = 14] = "Selection", e2[e2.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e2[e2.CustomElement = 16] = "CustomElement", e2[e2.Typing = 17] = "Typing", e2))(ai || {}), li = ((e2) => (e2[e2.MouseUp = 0] = "MouseUp", e2[e2.MouseDown = 1] = "MouseDown", e2[e2.Click = 2] = "Click", e2[e2.ContextMenu = 3] = "ContextMenu", e2[e2.DblClick = 4] = "DblClick", e2[e2.Focus = 5] = "Focus", e2[e2.Blur = 6] = "Blur", e2[e2.TouchStart = 7] = "TouchStart", e2[e2.TouchMove_Departed = 8] = "TouchMove_Departed", e2[e2.TouchEnd = 9] = "TouchEnd", e2[e2.TouchCancel = 10] = "TouchCancel", e2))(li || {}), ci = ((e2) => (e2[e2.Mouse = 0] = "Mouse", e2[e2.Pen = 1] = "Pen", e2[e2.Touch = 2] = "Touch", e2))(ci || {}), ui = ((e2) => (e2[e2["2D"] = 0] = "2D", e2[e2.WebGL = 1] = "WebGL", e2[e2.WebGL2 = 2] = "WebGL2", e2))(ui || {}), pi = ((e2) => (e2[e2.Play = 0] = "Play", e2[e2.Pause = 1] = "Pause", e2[e2.Seeked = 2] = "Seeked", e2[e2.VolumeChange = 3] = "VolumeChange", e2[e2.RateChange = 4] = "RateChange", e2))(pi || {});
3844
3887
  function G(e2, a2, u2 = document) {
3845
3888
  const m2 = { capture: true, passive: true };
3846
3889
  return u2.addEventListener(e2, a2, m2), () => u2.removeEventListener(e2, a2, m2);
3847
3890
  }
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);
3891
+ const di = "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.";
3892
+ let hi = { map: {}, getId: () => (console.error(di), -1), getNode: () => (console.error(di), null), removeNodeFromMap() {
3893
+ console.error(di);
3894
+ }, has: () => (console.error(di), false), reset() {
3895
+ console.error(di);
3853
3896
  } };
3854
3897
  function $e(e2, a2, u2 = {}) {
3855
3898
  let m2 = null, w2 = 0;
@@ -3883,8 +3926,8 @@
3883
3926
  };
3884
3927
  }
3885
3928
  }
3886
- typeof window < "u" && window.Proxy && window.Reflect && (di = new Proxy(di, { get: (e2, a2, u2) => ("map" === a2 && console.error(pi), Reflect.get(e2, a2, u2)) }));
3887
- let hi, fi = Date.now;
3929
+ typeof window < "u" && window.Proxy && window.Reflect && (hi = new Proxy(hi, { get: (e2, a2, u2) => ("map" === a2 && console.error(di), Reflect.get(e2, a2, u2)) }));
3930
+ let fi, mi = Date.now;
3888
3931
  function po(e2) {
3889
3932
  var a2, u2, m2, w2, b2, C2;
3890
3933
  const x2 = e2.document;
@@ -3931,7 +3974,7 @@
3931
3974
  function Fs(e2) {
3932
3975
  return !(null == e2 || !e2.shadowRoot);
3933
3976
  }
3934
- /[1-9][0-9]{12}/.test(Date.now().toString()) || (fi = () => (/* @__PURE__ */ new Date()).getTime());
3977
+ /[1-9][0-9]{12}/.test(Date.now().toString()) || (mi = () => (/* @__PURE__ */ new Date()).getTime());
3935
3978
  class _l {
3936
3979
  constructor() {
3937
3980
  b$1(this, "id", 1), b$1(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), b$1(this, "idStyleMap", /* @__PURE__ */ new Map());
@@ -3976,11 +4019,11 @@
3976
4019
  const a2 = e2.ownerDocument;
3977
4020
  return !!a2 && (a2.contains(e2) || zl(e2));
3978
4021
  }
3979
- const M = (e2) => hi ? (...a2) => {
4022
+ const M = (e2) => fi ? (...a2) => {
3980
4023
  try {
3981
4024
  return e2(...a2);
3982
4025
  } catch (e3) {
3983
- if (hi && true === hi(e3)) return;
4026
+ if (fi && true === fi(e3)) return;
3984
4027
  throw e3;
3985
4028
  }
3986
4029
  } : e2;
@@ -4039,22 +4082,22 @@
4039
4082
  transformCrossOriginEvent(e2, a2) {
4040
4083
  var u2;
4041
4084
  switch (a2.type) {
4042
- case si.FullSnapshot: {
4085
+ case ii.FullSnapshot: {
4043
4086
  this.crossOriginIframeMirror.reset(e2), this.crossOriginIframeStyleMirror.reset(e2), this.replaceIdOnNode(a2.data.node, e2);
4044
4087
  const u3 = a2.data.node.id;
4045
- return this.crossOriginIframeRootIdMap.set(e2, u3), this.patchRootIdOnNode(a2.data.node, u3), { timestamp: a2.timestamp, type: si.IncrementalSnapshot, data: { source: ii.Mutation, adds: [{ parentId: this.mirror.getId(e2), nextId: null, node: a2.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4088
+ return this.crossOriginIframeRootIdMap.set(e2, u3), this.patchRootIdOnNode(a2.data.node, u3), { timestamp: a2.timestamp, type: ii.IncrementalSnapshot, data: { source: ai.Mutation, adds: [{ parentId: this.mirror.getId(e2), nextId: null, node: a2.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4046
4089
  }
4047
- case si.Meta:
4048
- case si.Load:
4049
- case si.DomContentLoaded:
4090
+ case ii.Meta:
4091
+ case ii.Load:
4092
+ case ii.DomContentLoaded:
4050
4093
  return false;
4051
- case si.Plugin:
4094
+ case ii.Plugin:
4052
4095
  return a2;
4053
- case si.Custom:
4096
+ case ii.Custom:
4054
4097
  return this.replaceIds(a2.data.payload, e2, ["id", "parentId", "previousId", "nextId"]), a2;
4055
- case si.IncrementalSnapshot:
4098
+ case ii.IncrementalSnapshot:
4056
4099
  switch (a2.data.source) {
4057
- case ii.Mutation:
4100
+ case ai.Mutation:
4058
4101
  return a2.data.adds.forEach((a3) => {
4059
4102
  this.replaceIds(a3, e2, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(a3.node, e2);
4060
4103
  const u3 = this.crossOriginIframeRootIdMap.get(e2);
@@ -4066,30 +4109,30 @@
4066
4109
  }), a2.data.texts.forEach((a3) => {
4067
4110
  this.replaceIds(a3, e2, ["id"]);
4068
4111
  }), a2;
4069
- case ii.Drag:
4070
- case ii.TouchMove:
4071
- case ii.MouseMove:
4112
+ case ai.Drag:
4113
+ case ai.TouchMove:
4114
+ case ai.MouseMove:
4072
4115
  return a2.data.positions.forEach((a3) => {
4073
4116
  this.replaceIds(a3, e2, ["id"]);
4074
4117
  }), a2;
4075
- case ii.ViewportResize:
4118
+ case ai.ViewportResize:
4076
4119
  return false;
4077
- case ii.MediaInteraction:
4078
- case ii.MouseInteraction:
4079
- case ii.Scroll:
4080
- case ii.CanvasMutation:
4081
- case ii.Input:
4120
+ case ai.MediaInteraction:
4121
+ case ai.MouseInteraction:
4122
+ case ai.Scroll:
4123
+ case ai.CanvasMutation:
4124
+ case ai.Input:
4082
4125
  return this.replaceIds(a2.data, e2, ["id"]), a2;
4083
- case ii.StyleSheetRule:
4084
- case ii.StyleDeclaration:
4126
+ case ai.StyleSheetRule:
4127
+ case ai.StyleDeclaration:
4085
4128
  return this.replaceIds(a2.data, e2, ["id"]), this.replaceStyleIds(a2.data, e2, ["styleId"]), a2;
4086
- case ii.Font:
4129
+ case ai.Font:
4087
4130
  return a2;
4088
- case ii.Selection:
4131
+ case ai.Selection:
4089
4132
  return a2.data.ranges.forEach((a3) => {
4090
4133
  this.replaceIds(a3, e2, ["start", "end"]);
4091
4134
  }), a2;
4092
- case ii.AdoptedStyleSheet:
4135
+ case ai.AdoptedStyleSheet:
4093
4136
  return this.replaceIds(a2.data, e2, ["id"]), this.replaceStyleIds(a2.data, e2, ["styleIds"]), null == (u2 = a2.data.styles) || u2.forEach((a3) => {
4094
4137
  this.replaceStyleIds(a3, e2, ["styleId"]);
4095
4138
  }), a2;
@@ -4113,7 +4156,7 @@
4113
4156
  });
4114
4157
  }
4115
4158
  patchRootIdOnNode(e2, a2) {
4116
- e2.type !== ht.Document && !e2.rootId && (e2.rootId = a2), "childNodes" in e2 && e2.childNodes.forEach((e3) => {
4159
+ e2.type !== gt.Document && !e2.rootId && (e2.rootId = a2), "childNodes" in e2 && e2.childNodes.forEach((e3) => {
4117
4160
  this.patchRootIdOnNode(e3, a2);
4118
4161
  });
4119
4162
  }
@@ -4331,7 +4374,7 @@
4331
4374
  const { parentNode: u2 } = a2;
4332
4375
  return !!u2 && (!!e2.has(u2) || ko(e2, u2));
4333
4376
  }
4334
- const mi = [];
4377
+ const gi = [];
4335
4378
  function tt(e2) {
4336
4379
  try {
4337
4380
  if ("composedPath" in e2) {
@@ -4345,7 +4388,7 @@
4345
4388
  function Co(e2, a2) {
4346
4389
  var u2, m2;
4347
4390
  const w2 = new Zl();
4348
- mi.push(w2), w2.init(e2);
4391
+ gi.push(w2), w2.init(e2);
4349
4392
  let b2 = window.MutationObserver || window.__rrMutationObserver;
4350
4393
  const C2 = null == (m2 = null == (u2 = null == window ? void 0 : window.Zone) ? void 0 : u2.__symbol__) ? void 0 : m2.call(u2, "MutationObserver");
4351
4394
  C2 && window[C2] && (b2 = window[C2]);
@@ -4357,7 +4400,7 @@
4357
4400
  };
4358
4401
  const C2 = true === b2.mouseInteraction || void 0 === b2.mouseInteraction ? {} : b2.mouseInteraction, x2 = [];
4359
4402
  let I2 = null;
4360
- return Object.keys(ai).filter((e3) => Number.isNaN(Number(e3)) && !e3.endsWith("_Departed") && false !== C2[e3]).forEach((b3) => {
4403
+ return Object.keys(li).filter((e3) => Number.isNaN(Number(e3)) && !e3.endsWith("_Departed") && false !== C2[e3]).forEach((b3) => {
4361
4404
  let C3 = fe(b3);
4362
4405
  const _2 = /* @__PURE__ */ ((a3) => (b4) => {
4363
4406
  const C4 = tt(b4);
@@ -4366,29 +4409,29 @@
4366
4409
  if ("pointerType" in b4) {
4367
4410
  switch (b4.pointerType) {
4368
4411
  case "mouse":
4369
- x3 = li.Mouse;
4412
+ x3 = ci.Mouse;
4370
4413
  break;
4371
4414
  case "touch":
4372
- x3 = li.Touch;
4415
+ x3 = ci.Touch;
4373
4416
  break;
4374
4417
  case "pen":
4375
- x3 = li.Pen;
4418
+ x3 = ci.Pen;
4376
4419
  }
4377
- x3 === li.Touch ? ai[a3] === ai.MouseDown ? _3 = "TouchStart" : ai[a3] === ai.MouseUp && (_3 = "TouchEnd") : li.Pen;
4378
- } else Ds(b4) && (x3 = li.Touch);
4379
- null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === li.Touch || _3.startsWith("Mouse") && x3 === li.Mouse) && (x3 = null)) : ai[a3] === ai.Click && (x3 = I2, I2 = null);
4420
+ x3 === ci.Touch ? li[a3] === li.MouseDown ? _3 = "TouchStart" : li[a3] === li.MouseUp && (_3 = "TouchEnd") : ci.Pen;
4421
+ } else Ds(b4) && (x3 = ci.Touch);
4422
+ null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === ci.Touch || _3.startsWith("Mouse") && x3 === ci.Mouse) && (x3 = null)) : li[a3] === li.Click && (x3 = I2, I2 = null);
4380
4423
  const O2 = Ds(b4) ? b4.changedTouches[0] : b4;
4381
4424
  if (!O2) return;
4382
4425
  const E2 = u2.getId(C4), { clientX: D2, clientY: F2 } = O2;
4383
- M(e2)({ type: ai[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4426
+ M(e2)({ type: li[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4384
4427
  })(b3);
4385
- if (window.PointerEvent) switch (ai[b3]) {
4386
- case ai.MouseDown:
4387
- case ai.MouseUp:
4428
+ if (window.PointerEvent) switch (li[b3]) {
4429
+ case li.MouseDown:
4430
+ case li.MouseUp:
4388
4431
  C3 = C3.replace("mouse", "pointer");
4389
4432
  break;
4390
- case ai.TouchStart:
4391
- case ai.TouchEnd:
4433
+ case li.TouchStart:
4434
+ case li.TouchEnd:
4392
4435
  return;
4393
4436
  }
4394
4437
  x2.push(G(C3, _2, a2));
@@ -4407,7 +4450,7 @@
4407
4450
  } else e2({ id: x2, x: C2.scrollLeft, y: C2.scrollTop });
4408
4451
  }), b2.scroll || 100)), a2);
4409
4452
  }
4410
- const gi = ["INPUT", "TEXTAREA", "SELECT"], yi = /* @__PURE__ */ new WeakMap();
4453
+ const yi = ["INPUT", "TEXTAREA", "SELECT"], Mi = /* @__PURE__ */ new WeakMap();
4411
4454
  function ql({ deviceChangeCb: e2 }) {
4412
4455
  const t = (a3, u3) => {
4413
4456
  const m2 = a3.device.productName ? [a3.device.productName] : ["Unknown USB Device"];
@@ -4527,7 +4570,7 @@
4527
4570
  e3(x3.map((e4) => (e4.timeOffset -= u4, e4)), a4), x3 = [], C3 = null;
4528
4571
  }), b3), _3 = M($e(M((e4) => {
4529
4572
  const a4 = tt(e4), { clientX: u4, clientY: w4 } = Ds(e4) ? e4.changedTouches[0] : e4;
4530
- C3 || (C3 = fi()), x3.push({ x: u4, y: w4, id: m3.getId(a4), timeOffset: fi() - C3 }), I3(typeof DragEvent < "u" && e4 instanceof DragEvent ? ii.Drag : e4 instanceof MouseEvent ? ii.MouseMove : ii.TouchMove);
4573
+ C3 || (C3 = mi()), x3.push({ x: u4, y: w4, id: m3.getId(a4), timeOffset: mi() - C3 }), I3(typeof DragEvent < "u" && e4 instanceof DragEvent ? ai.Drag : e4 instanceof MouseEvent ? ai.MouseMove : ai.TouchMove);
4531
4574
  }), w3, { trailing: false })), O3 = [G("mousemove", _3, u3), G("touchmove", _3, u3), G("drag", _3, u3)];
4532
4575
  return M(() => {
4533
4576
  O3.forEach((e4) => e4());
@@ -4543,7 +4586,7 @@
4543
4586
  function p(e4) {
4544
4587
  let u4 = tt(e4);
4545
4588
  const _4 = e4.isTrusted, E4 = u4 && u4.tagName;
4546
- if (u4 && "OPTION" === E4 && (u4 = u4.parentElement), !u4 || !E4 || gi.indexOf(E4) < 0 || Z(u4, m3, w3, true) || u4.classList.contains(b3) || C3 && u4.matches(C3)) return;
4589
+ if (u4 && "OPTION" === E4 && (u4 = u4.parentElement), !u4 || !E4 || yi.indexOf(E4) < 0 || Z(u4, m3, w3, true) || u4.classList.contains(b3) || C3 && u4.matches(C3)) return;
4547
4590
  let D4 = u4.value, F4 = false;
4548
4591
  const U4 = Yt(u4) || "", { value: B2, masked: $2 } = Zt({ element: u4, maskInputOptions: x3, tagName: E4, type: U4, value: D4, maskInputFn: I3 });
4549
4592
  D4 = B2, ("radio" === U4 || "checkbox" === U4) && (F4 = u4.checked), f2(u4, O3 ? { text: D4, isChecked: F4, masked: $2, userTriggered: _4 } : { text: D4, isChecked: F4, masked: $2 });
@@ -4556,9 +4599,9 @@
4556
4599
  });
4557
4600
  }
4558
4601
  function f2(a4, m4) {
4559
- const w4 = yi.get(a4);
4602
+ const w4 = Mi.get(a4);
4560
4603
  if (!w4 || w4.text !== m4.text || w4.isChecked !== m4.isChecked || w4.masked !== m4.masked) {
4561
- yi.set(a4, m4);
4604
+ Mi.set(a4, m4);
4562
4605
  const w5 = u3.getId(a4);
4563
4606
  M(e3)({ ...m4, id: w5 });
4564
4607
  }
@@ -4583,7 +4626,7 @@
4583
4626
  const { value: e4, masked: a5 } = Zt({ element: w4, maskInputOptions: u3, tagName: x3, type: I3, value: _3, maskInputFn: m3 });
4584
4627
  _3 = e4, b3 = a5;
4585
4628
  }
4586
- e3({ source: ii.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e4) => {
4629
+ e3({ source: ai.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e4) => {
4587
4630
  var a5;
4588
4631
  const u4 = [];
4589
4632
  for (; e4; ) {
@@ -4611,7 +4654,7 @@
4611
4654
  if (!C4 || Z(C4, a3, u3, true)) return;
4612
4655
  const { currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 } = C4;
4613
4656
  e3({ type: b4, id: m3.getId(C4), currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 });
4614
- }), w3.media || 500)), x3 = [G("play", C3(ui.Play), b3), G("pause", C3(ui.Pause), b3), G("seeked", C3(ui.Seeked), b3), G("volumechange", C3(ui.VolumeChange), b3), G("ratechange", C3(ui.RateChange), b3)];
4657
+ }), w3.media || 500)), x3 = [G("play", C3(pi.Play), b3), G("pause", C3(pi.Pause), b3), G("seeked", C3(pi.Seeked), b3), G("volumechange", C3(pi.VolumeChange), b3), G("ratechange", C3(pi.RateChange), b3)];
4615
4658
  return M(() => {
4616
4659
  x3.forEach((e4) => e4());
4617
4660
  });
@@ -4732,7 +4775,7 @@
4732
4775
  })(e2), U2 = [];
4733
4776
  for (const a3 of e2.plugins) U2.push(a3.observer(a3.callback, u2, a3.options));
4734
4777
  return M(() => {
4735
- mi.forEach((e3) => e3.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d(), g2(), h(), D2(), F2(), O2(), U2.forEach((e3) => e3());
4778
+ gi.forEach((e3) => e3.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d(), g2(), h(), D2(), F2(), O2(), U2.forEach((e3) => e3());
4736
4779
  });
4737
4780
  }
4738
4781
  function ft(e2) {
@@ -4741,29 +4784,29 @@
4741
4784
  function mt(e2) {
4742
4785
  return !!(typeof window[e2] < "u" && window[e2].prototype && "insertRule" in window[e2].prototype && "deleteRule" in window[e2].prototype);
4743
4786
  }
4744
- const Mi = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Ii = typeof self < "u" && self.Blob && new Blob([(Li = Mi, Uint8Array.from(atob(Li), (e2) => e2.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4745
- var Li;
4787
+ const Ii = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Li = typeof self < "u" && self.Blob && new Blob([(Ri = Ii, Uint8Array.from(atob(Ri), (e2) => e2.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4788
+ var Ri;
4746
4789
  function uu(e2) {
4747
4790
  let a2;
4748
4791
  try {
4749
- if (a2 = Ii && (self.URL || self.webkitURL).createObjectURL(Ii), !a2) throw "";
4792
+ if (a2 = Li && (self.URL || self.webkitURL).createObjectURL(Li), !a2) throw "";
4750
4793
  const u2 = new Worker(a2, { name: null == e2 ? void 0 : e2.name });
4751
4794
  return u2.addEventListener("error", () => {
4752
4795
  (self.URL || self.webkitURL).revokeObjectURL(a2);
4753
4796
  }), u2;
4754
4797
  } catch {
4755
- return new Worker("data:text/javascript;base64," + Mi, { name: null == e2 ? void 0 : e2.name });
4798
+ return new Worker("data:text/javascript;base64," + Ii, { name: null == e2 ? void 0 : e2.name });
4756
4799
  } finally {
4757
4800
  a2 && (self.URL || self.webkitURL).revokeObjectURL(a2);
4758
4801
  }
4759
4802
  }
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();
4803
+ for (var Ai = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ti = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Ni = 0; Ni < 64; Ni++) Ti[Ai.charCodeAt(Ni)] = Ni;
4804
+ const Pi = /* @__PURE__ */ new Map();
4762
4805
  const Oo = (e2, a2, u2) => {
4763
4806
  if (!e2 || !Ro(e2, a2) && "object" != typeof e2) return;
4764
4807
  const m2 = (function pu(e3, a3) {
4765
- let u3 = Ni.get(e3);
4766
- return u3 || (u3 = /* @__PURE__ */ new Map(), Ni.set(e3, u3)), u3.has(a3) || u3.set(a3, []), u3.get(a3);
4808
+ let u3 = Pi.get(e3);
4809
+ return u3 || (u3 = /* @__PURE__ */ new Map(), Pi.set(e3, u3)), u3.has(a3) || u3.set(a3, []), u3.get(a3);
4767
4810
  })(u2, e2.constructor.name);
4768
4811
  let w2 = m2.indexOf(e2);
4769
4812
  return -1 === w2 && (w2 = m2.length, m2.push(e2)), w2;
@@ -4775,7 +4818,7 @@
4775
4818
  if (e2 instanceof ArrayBuffer) {
4776
4819
  const a3 = e2.constructor.name, u3 = (function(e3) {
4777
4820
  var a4, u4 = new Uint8Array(e3), m2 = u4.length, w2 = "";
4778
- for (a4 = 0; a4 < m2; a4 += 3) w2 += Ri[u4[a4] >> 2], w2 += Ri[(3 & u4[a4]) << 4 | u4[a4 + 1] >> 4], w2 += Ri[(15 & u4[a4 + 1]) << 2 | u4[a4 + 2] >> 6], w2 += Ri[63 & u4[a4 + 2]];
4821
+ for (a4 = 0; a4 < m2; a4 += 3) w2 += Ai[u4[a4] >> 2], w2 += Ai[(3 & u4[a4]) << 4 | u4[a4 + 1] >> 4], w2 += Ai[(15 & u4[a4 + 1]) << 2 | u4[a4 + 2] >> 6], w2 += Ai[63 & u4[a4 + 2]];
4779
4822
  return m2 % 3 == 2 ? w2 = w2.substring(0, w2.length - 1) + "=" : m2 % 3 == 1 && (w2 = w2.substring(0, w2.length - 2) + "=="), w2;
4780
4823
  })(e2);
4781
4824
  return { rr_type: a3, base64: u3 };
@@ -4872,7 +4915,7 @@
4872
4915
  const { id: a3 } = e3.data;
4873
4916
  if (C2.set(a3, false), !("base64" in e3.data)) return;
4874
4917
  const { base64: u3, type: m3, width: w3, height: b3 } = e3.data;
4875
- this.mutationCb({ id: a3, type: ci["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u3 }], type: m3 }] }, 0, 0] }] });
4918
+ this.mutationCb({ id: a3, type: ui["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u3 }], type: m3 }] }, 0, 0] }] });
4876
4919
  };
4877
4920
  const I2 = 1e3 / e2;
4878
4921
  let _2, O2 = 0;
@@ -4908,14 +4951,14 @@
4908
4951
  return function(...b5) {
4909
4952
  return Z(this.canvas, u3, m3, true) || setTimeout(() => {
4910
4953
  const u4 = Eo(b5, a3, this);
4911
- e3(this.canvas, { type: ci["2D"], property: C2, args: u4 });
4954
+ e3(this.canvas, { type: ui["2D"], property: C2, args: u4 });
4912
4955
  }, 0), w4.apply(this, b5);
4913
4956
  };
4914
4957
  });
4915
4958
  w3.push(b4);
4916
4959
  } catch {
4917
4960
  const u4 = qt(a3.CanvasRenderingContext2D.prototype, C2, { set(a4) {
4918
- e3(this.canvas, { type: ci["2D"], property: C2, args: [a4], setter: true });
4961
+ e3(this.canvas, { type: ui["2D"], property: C2, args: [a4], setter: true });
4919
4962
  } });
4920
4963
  w3.push(u4);
4921
4964
  }
@@ -4924,7 +4967,7 @@
4924
4967
  };
4925
4968
  })(this.processMutation.bind(this), e2, a2, u2), b2 = (function mu(e3, a3, u3, m3) {
4926
4969
  const w3 = [];
4927
- return w3.push(...tr(a3.WebGLRenderingContext.prototype, ci.WebGL, e3, u3, m3, a3)), typeof a3.WebGL2RenderingContext < "u" && w3.push(...tr(a3.WebGL2RenderingContext.prototype, ci.WebGL2, e3, u3, m3, a3)), () => {
4970
+ return w3.push(...tr(a3.WebGLRenderingContext.prototype, ui.WebGL, e3, u3, m3, a3)), typeof a3.WebGL2RenderingContext < "u" && w3.push(...tr(a3.WebGL2RenderingContext.prototype, ui.WebGL2, e3, u3, m3, a3)), () => {
4928
4971
  w3.forEach((e4) => e4());
4929
4972
  };
4930
4973
  })(this.processMutation.bind(this), e2, a2, u2);
@@ -5035,23 +5078,23 @@
5035
5078
  trackStylesheetInLinkElement(e2) {
5036
5079
  }
5037
5080
  }
5038
- let Pi, qi, Hi, Ji = false;
5039
- var Xi;
5081
+ let qi, Hi, Ji, Xi = false;
5082
+ var Qi;
5040
5083
  try {
5041
5084
  if (2 !== Array.from([1], (e2) => 2 * e2)[0]) {
5042
5085
  const e2 = document.createElement("iframe");
5043
- document.body.appendChild(e2), Array.from = (null == (Xi = e2.contentWindow) ? void 0 : Xi.Array.from) || Array.from, document.body.removeChild(e2);
5086
+ document.body.appendChild(e2), Array.from = (null == (Qi = e2.contentWindow) ? void 0 : Qi.Array.from) || Array.from, document.body.removeChild(e2);
5044
5087
  }
5045
- } catch (Li2) {
5046
- console.debug("Unable to override Array.from", Li2);
5088
+ } catch (Ri2) {
5089
+ console.debug("Unable to override Array.from", Ri2);
5047
5090
  }
5048
- const Qi = (function Ci() {
5049
- return new gt();
5091
+ const ea = (function Ci() {
5092
+ return new yt();
5050
5093
  })();
5051
5094
  function ae(e2 = {}) {
5052
5095
  const { emit: a2, checkoutEveryNms: u2, checkoutEveryNth: m2, blockClass: w2 = "rr-block", blockSelector: b2 = null, ignoreClass: C2 = "rr-ignore", ignoreSelector: x2 = null, maskTextClass: I2 = "rr-mask", maskTextSelector: _2 = null, inlineStylesheet: O2 = true, maskAllInputs: E2, maskInputOptions: D2, slimDOMOptions: F2, maskInputFn: U2, maskTextFn: B2, hooks: $2, packFn: z2, sampling: j2 = {}, dataURLOptions: V2 = {}, mousemoveWait: q2, recordDOM: H2 = true, recordCanvas: J2 = false, recordCrossOriginIframes: Y2 = false, recordAfter: X2 = "DOMContentLoaded" === e2.recordAfter ? e2.recordAfter : "load", userTriggeredOnInput: Q2 = false, collectFonts: ee2 = false, inlineImages: te2 = false, plugins: ne2, keepIframeSrcFn: re2 = () => false, ignoreCSSAttributes: oe2 = /* @__PURE__ */ new Set([]), errorHandler: se2 } = e2;
5053
5096
  !(function Bl(e3) {
5054
- hi = e3;
5097
+ fi = e3;
5055
5098
  })(se2);
5056
5099
  const ie2 = !Y2 || window.parent === window;
5057
5100
  let le2 = false;
@@ -5063,7 +5106,7 @@
5063
5106
  if (ie2 && !a2) throw new Error("emit function is required");
5064
5107
  if (!ie2 && !le2) return () => {
5065
5108
  };
5066
- void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), Qi.reset();
5109
+ void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), ea.reset();
5067
5110
  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
5111
  !(function Ul(e3 = window) {
5069
5112
  "NodeList" in e3 && !e3.NodeList.prototype.forEach && (e3.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in e3 && !e3.DOMTokenList.prototype.forEach && (e3.DOMTokenList.prototype.forEach = Array.prototype.forEach), Node.prototype.contains || (Node.prototype.contains = (...e4) => {
@@ -5080,57 +5123,57 @@
5080
5123
  for (const a3 of ne2 || []) a3.eventProcessor && (e3 = a3.eventProcessor(e3));
5081
5124
  return z2 && !le2 && (e3 = z2(e3)), e3;
5082
5125
  };
5083
- Pi = (e3, w3) => {
5126
+ qi = (e3, w3) => {
5084
5127
  var b3;
5085
5128
  const C3 = e3;
5086
- if (C3.timestamp = fi(), null != (b3 = mi[0]) && b3.isFrozen() && C3.type !== si.FullSnapshot && !(C3.type === si.IncrementalSnapshot && C3.data.source === ii.Mutation) && mi.forEach((e4) => e4.unfreeze()), ie2) null == a2 || a2(vn(C3), w3);
5129
+ if (C3.timestamp = mi(), null != (b3 = gi[0]) && b3.isFrozen() && C3.type !== ii.FullSnapshot && !(C3.type === ii.IncrementalSnapshot && C3.data.source === ai.Mutation) && gi.forEach((e4) => e4.unfreeze()), ie2) null == a2 || a2(vn(C3), w3);
5087
5130
  else if (le2) {
5088
5131
  const e4 = { type: "@sailfish-rrweb/rrweb", event: vn(C3), origin: window.location.origin, isCheckout: w3 };
5089
5132
  window.parent.postMessage(e4, "*");
5090
5133
  }
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;
5134
+ if (C3.type === ii.FullSnapshot) de2 = C3, he2 = 0;
5135
+ else if (C3.type === ii.IncrementalSnapshot) {
5136
+ if (C3.data.source === ai.Mutation && C3.data.isAttachIframe) return;
5094
5137
  he2++;
5095
5138
  const e4 = m2 && he2 >= m2, a3 = u2 && C3.timestamp - de2.timestamp > u2;
5096
- (e4 || a3) && qi(true);
5139
+ (e4 || a3) && Hi(true);
5097
5140
  }
5098
5141
  };
5099
5142
  const rt = (e3) => {
5100
- Pi({ type: si.IncrementalSnapshot, data: { source: ii.Mutation, ...e3 } });
5101
- }, kn = (e3) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Scroll, ...e3 } }), Cn = (e3) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.CanvasMutation, ...e3 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e3) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.AdoptedStyleSheet, ...e3 } }) }), ge2 = new Vl({ mirror: Qi, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Pi });
5102
- for (const e3 of ne2 || []) e3.getMirror && e3.getMirror({ nodeMirror: Qi, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5143
+ qi({ type: ii.IncrementalSnapshot, data: { source: ai.Mutation, ...e3 } });
5144
+ }, kn = (e3) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.Scroll, ...e3 } }), Cn = (e3) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.CanvasMutation, ...e3 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e3) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.AdoptedStyleSheet, ...e3 } }) }), ge2 = new Vl({ mirror: ea, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: qi });
5145
+ for (const e3 of ne2 || []) e3.getMirror && e3.getMirror({ nodeMirror: ea, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5103
5146
  const ye2 = new yu();
5104
- Hi = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: Qi, sampling: j2.canvas, dataURLOptions: V2 });
5105
- const we2 = new wu({ mutationCb: rt, scrollCb: kn, bypassOptions: { blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskInputOptions: ce2, dataURLOptions: V2, maskTextFn: B2, maskInputFn: U2, recordCanvas: J2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: Hi, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: Qi });
5106
- qi = (e3 = false) => {
5147
+ Ji = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: ea, sampling: j2.canvas, dataURLOptions: V2 });
5148
+ 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: Ji, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: ea });
5149
+ Hi = (e3 = false) => {
5107
5150
  if (!H2) return;
5108
- Pi({ type: si.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e3), me2.reset(), we2.init(), mi.forEach((e4) => e4.lock());
5151
+ qi({ type: ii.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e3), me2.reset(), we2.init(), gi.forEach((e4) => e4.lock());
5109
5152
  const a3 = (function Zi(e4, a4) {
5110
- const { mirror: u3 = new gt(), blockClass: m3 = "rr-block", blockSelector: w3 = null, maskTextClass: b3 = "rr-mask", maskTextSelector: C3 = null, inlineStylesheet: x3 = true, inlineImages: I3 = false, recordCanvas: _3 = false, maskAllInputs: O3 = false, maskTextFn: E3, maskInputFn: D3, slimDOM: F3 = false, dataURLOptions: U3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3 = () => false } = a4 || {};
5153
+ const { mirror: u3 = new yt(), blockClass: m3 = "rr-block", blockSelector: w3 = null, maskTextClass: b3 = "rr-mask", maskTextSelector: C3 = null, inlineStylesheet: x3 = true, inlineImages: I3 = false, recordCanvas: _3 = false, maskAllInputs: O3 = false, maskTextFn: E3, maskInputFn: D3, slimDOM: F3 = false, dataURLOptions: U3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3 = () => false } = a4 || {};
5111
5154
  return Se(e4, { doc: e4, mirror: u3, blockClass: m3, blockSelector: w3, maskTextClass: b3, maskTextSelector: C3, skipChild: false, inlineStylesheet: x3, maskInputOptions: true === O3 ? { color: true, date: true, "datetime-local": true, email: true, month: true, number: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true, textarea: true, select: true, password: true } : false === O3 ? { password: true } : O3, maskTextFn: E3, maskInputFn: D3, slimDOMOptions: true === F3 || "all" === F3 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaDescKeywords: "all" === F3, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaAuthorship: true, headMetaVerification: true } : false === F3 ? {} : F3, dataURLOptions: U3, inlineImages: I3, recordCanvas: _3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3, newlyAddedElement: false });
5112
- })(document, { mirror: Qi, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: J2, inlineImages: te2, onSerialize: (e4) => {
5113
- wo(e4, Qi) && ge2.addIframe(e4), bo(e4, Qi) && me2.trackLinkElement(e4), Fs(e4) && we2.addShadowRoot(e4.shadowRoot, document);
5155
+ })(document, { mirror: ea, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: J2, inlineImages: te2, onSerialize: (e4) => {
5156
+ wo(e4, ea) && ge2.addIframe(e4), bo(e4, ea) && me2.trackLinkElement(e4), Fs(e4) && we2.addShadowRoot(e4.shadowRoot, document);
5114
5157
  }, onIframeLoad: (e4, a4) => {
5115
5158
  ge2.attachIframe(e4, a4), we2.observeAttachShadow(e4);
5116
5159
  }, onStylesheetLoad: (e4, a4) => {
5117
5160
  me2.attachLinkElement(e4, a4);
5118
5161
  }, keepIframeSrcFn: re2 });
5119
5162
  if (!a3) return console.warn("Failed to snapshot the document");
5120
- Pi({ type: si.FullSnapshot, data: { node: a3, initialOffset: po(window) } }, e3), mi.forEach((e4) => e4.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, Qi.getId(document));
5163
+ qi({ type: ii.FullSnapshot, data: { node: a3, initialOffset: po(window) } }, e3), gi.forEach((e4) => e4.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, ea.getId(document));
5121
5164
  };
5122
5165
  try {
5123
5166
  const e3 = [], K = (e4) => {
5124
5167
  var a3;
5125
- return M(au)({ mutationCb: rt, mousemoveCb: (e5, a4) => Pi({ type: si.IncrementalSnapshot, data: { source: a4, positions: e5 } }), mouseInteractionCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.MouseInteraction, ...e5 } }), scrollCb: kn, viewportResizeCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.ViewportResize, ...e5 } }), inputCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Input, ...e5 } }), mediaInteractionCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.MediaInteraction, ...e5 } }), styleSheetRuleCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.StyleSheetRule, ...e5 } }), styleDeclarationCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.StyleDeclaration, ...e5 } }), canvasMutationCb: Cn, fontCb: (e5) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Font, ...e5 } }), selectionCb: (e5) => {
5126
- Pi({ type: si.IncrementalSnapshot, data: { source: ii.Selection, ...e5 } });
5168
+ return M(au)({ mutationCb: rt, mousemoveCb: (e5, a4) => qi({ type: ii.IncrementalSnapshot, data: { source: a4, positions: e5 } }), mouseInteractionCb: (e5) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.MouseInteraction, ...e5 } }), scrollCb: kn, viewportResizeCb: (e5) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.ViewportResize, ...e5 } }), inputCb: (e5) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.Input, ...e5 } }), mediaInteractionCb: (e5) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.MediaInteraction, ...e5 } }), styleSheetRuleCb: (e5) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.StyleSheetRule, ...e5 } }), styleDeclarationCb: (e5) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.StyleDeclaration, ...e5 } }), canvasMutationCb: Cn, fontCb: (e5) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.Font, ...e5 } }), selectionCb: (e5) => {
5169
+ qi({ type: ii.IncrementalSnapshot, data: { source: ai.Selection, ...e5 } });
5127
5170
  }, customElementCb: (e5) => {
5128
- Pi({ type: si.IncrementalSnapshot, data: { source: ii.CustomElement, ...e5 } });
5171
+ qi({ type: ii.IncrementalSnapshot, data: { source: ai.CustomElement, ...e5 } });
5129
5172
  }, typingCb: (e5) => {
5130
- Pi({ type: si.IncrementalSnapshot, data: { ...e5 } });
5173
+ qi({ type: ii.IncrementalSnapshot, data: { ...e5 } });
5131
5174
  }, deviceChangeCb: (e5) => {
5132
- Pi({ type: si.Device, data: { ...e5 } });
5133
- }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: J2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e4, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: Qi, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Hi, ignoreCSSAttributes: oe2, plugins: (null == (a3 = null == ne2 ? void 0 : ne2.filter((e5) => e5.observer)) ? void 0 : a3.map((e5) => ({ observer: e5.observer, options: e5.options, callback: (a4) => Pi({ type: si.Plugin, data: { plugin: e5.name, payload: a4 } }) }))) || [] }, $2);
5175
+ qi({ type: ii.Device, data: { ...e5 } });
5176
+ }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: J2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e4, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: ea, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Ji, ignoreCSSAttributes: oe2, plugins: (null == (a3 = null == ne2 ? void 0 : ne2.filter((e5) => e5.observer)) ? void 0 : a3.map((e5) => ({ observer: e5.observer, options: e5.options, callback: (a4) => qi({ type: ii.Plugin, data: { plugin: e5.name, payload: a4 } }) }))) || [] }, $2);
5134
5177
  };
5135
5178
  ge2.addLoadListener((a3) => {
5136
5179
  try {
@@ -5140,15 +5183,15 @@
5140
5183
  }
5141
5184
  });
5142
5185
  const W = () => {
5143
- qi(), e3.push(K(document)), Ji = true;
5186
+ Hi(), e3.push(K(document)), Xi = true;
5144
5187
  };
5145
5188
  return "interactive" === document.readyState || "complete" === document.readyState ? W() : (e3.push(G("DOMContentLoaded", () => {
5146
- Pi({ type: si.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5189
+ qi({ type: ii.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5147
5190
  })), e3.push(G("load", () => {
5148
- Pi({ type: si.Load, data: {} }), "load" === X2 && W();
5191
+ qi({ type: ii.Load, data: {} }), "load" === X2 && W();
5149
5192
  }, window))), () => {
5150
- e3.forEach((e4) => e4()), ye2.destroy(), Ji = false, (function jl() {
5151
- hi = void 0;
5193
+ e3.forEach((e4) => e4()), ye2.destroy(), Xi = false, (function jl() {
5194
+ fi = void 0;
5152
5195
  })();
5153
5196
  };
5154
5197
  } catch (e3) {
@@ -5175,24 +5218,24 @@
5175
5218
  }), u2;
5176
5219
  }
5177
5220
  ae.addCustomEvent = (e2, a2) => {
5178
- if (!Ji) throw new Error("please add custom event after start recording");
5179
- Pi({ type: si.Custom, data: { tag: e2, payload: a2 } });
5221
+ if (!Xi) throw new Error("please add custom event after start recording");
5222
+ qi({ type: ii.Custom, data: { tag: e2, payload: a2 } });
5180
5223
  }, ae.addSailfishEvent = (e2, a2) => {
5181
- if (!Ji) throw new Error("please add Sailfish event after start recording");
5182
- Pi({ type: e2, data: { tag: "sailfish-zendesk-test-tag", payload: a2 } });
5224
+ if (!Xi) throw new Error("please add Sailfish event after start recording");
5225
+ qi({ type: e2, data: { tag: "sailfish-zendesk-test-tag", payload: a2 } });
5183
5226
  }, ae.freezePage = () => {
5184
- mi.forEach((e2) => e2.freeze());
5227
+ gi.forEach((e2) => e2.freeze());
5185
5228
  }, ae.takeFullSnapshot = (e2) => {
5186
- if (!Ji) throw new Error("please take full snapshot after start recording");
5187
- qi(e2);
5188
- }, ae.mirror = Qi;
5189
- var ea = { exports: {} }, ta = String, Lo = function() {
5190
- return { isColorSupported: false, reset: ta, bold: ta, dim: ta, italic: ta, underline: ta, inverse: ta, hidden: ta, strikethrough: ta, black: ta, red: ta, green: ta, yellow: ta, blue: ta, magenta: ta, cyan: ta, white: ta, gray: ta, bgBlack: ta, bgRed: ta, bgGreen: ta, bgYellow: ta, bgBlue: ta, bgMagenta: ta, bgCyan: ta, bgWhite: ta, blackBright: ta, redBright: ta, greenBright: ta, yellowBright: ta, blueBright: ta, magentaBright: ta, cyanBright: ta, whiteBright: ta, bgBlackBright: ta, bgRedBright: ta, bgGreenBright: ta, bgYellowBright: ta, bgBlueBright: ta, bgMagentaBright: ta, bgCyanBright: ta, bgWhiteBright: ta };
5229
+ if (!Xi) throw new Error("please take full snapshot after start recording");
5230
+ Hi(e2);
5231
+ }, ae.mirror = ea;
5232
+ var ta = { exports: {} }, na = String, Lo = function() {
5233
+ return { isColorSupported: false, reset: na, bold: na, dim: na, italic: na, underline: na, inverse: na, hidden: na, strikethrough: na, black: na, red: na, green: na, yellow: na, blue: na, magenta: na, cyan: na, white: na, gray: na, bgBlack: na, bgRed: na, bgGreen: na, bgYellow: na, bgBlue: na, bgMagenta: na, bgCyan: na, bgWhite: na, blackBright: na, redBright: na, greenBright: na, yellowBright: na, blueBright: na, magentaBright: na, cyanBright: na, whiteBright: na, bgBlackBright: na, bgRedBright: na, bgGreenBright: na, bgYellowBright: na, bgBlueBright: na, bgMagentaBright: na, bgCyanBright: na, bgWhiteBright: na };
5191
5234
  };
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 {
5235
+ ta.exports = Lo(), ta.exports.createColors = Lo;
5236
+ var ra = ta.exports;
5237
+ const oa = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5238
+ let sa = ra, ia = oa, aa = class To extends Error {
5196
5239
  constructor(e2, a2, u2, m2, w2, b2) {
5197
5240
  super(e2), this.name = "CssSyntaxError", this.reason = e2, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a2 < "u" && typeof u2 < "u" && ("number" == typeof a2 ? (this.line = a2, this.column = u2) : (this.line = a2.line, this.column = a2.column, this.endLine = u2.line, this.endColumn = u2.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, To);
5198
5241
  }
@@ -5202,11 +5245,11 @@
5202
5245
  showSourceCode(e2) {
5203
5246
  if (!this.source) return "";
5204
5247
  let a2 = this.source;
5205
- null == e2 && (e2 = oa.isColorSupported);
5248
+ null == e2 && (e2 = sa.isColorSupported);
5206
5249
  let n = (e3) => e3, r = (e3) => e3, i = (e3) => e3;
5207
5250
  if (e2) {
5208
- let { bold: e3, gray: a3, red: u3 } = oa.createColors(true);
5209
- r = (a4) => e3(u3(a4)), n = (e4) => a3(e4), sa && (i = (e4) => sa(e4));
5251
+ let { bold: e3, gray: a3, red: u3 } = sa.createColors(true);
5252
+ r = (a4) => e3(u3(a4)), n = (e4) => a3(e4), ia && (i = (e4) => ia(e4));
5210
5253
  }
5211
5254
  let u2 = a2.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u2.length), b2 = String(w2).length;
5212
5255
  return u2.slice(m2, w2).map((e3, a3) => {
@@ -5227,10 +5270,10 @@
5227
5270
  return e2 && (e2 = "\n\n" + e2 + "\n"), this.name + ": " + this.message + e2;
5228
5271
  }
5229
5272
  };
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 {
5273
+ var la = aa;
5274
+ aa.default = aa;
5275
+ const ca = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5276
+ let ua = class {
5234
5277
  constructor(e2) {
5235
5278
  this.builder = e2;
5236
5279
  }
@@ -5282,7 +5325,7 @@
5282
5325
  if (u2 || (u2 = a2), a2 && (m2 = e2.raws[a2], typeof m2 < "u")) return m2;
5283
5326
  let w2 = e2.parent;
5284
5327
  if ("before" === u2 && (!w2 || "root" === w2.type && w2.first === e2 || w2 && "document" === w2.type)) return "";
5285
- if (!w2) return la[u2];
5328
+ if (!w2) return ca[u2];
5286
5329
  let b2 = e2.root();
5287
5330
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u2] < "u") return b2.rawCache[u2];
5288
5331
  if ("before" === u2 || "after" === u2) return this.beforeAfter(e2, u2);
@@ -5294,7 +5337,7 @@
5294
5337
  if (m2 = e3.raws[a2], typeof m2 < "u") return false;
5295
5338
  });
5296
5339
  }
5297
- return typeof m2 > "u" && (m2 = la[u2]), b2.rawCache[u2] = m2, m2;
5340
+ return typeof m2 > "u" && (m2 = ca[u2]), b2.rawCache[u2] = m2, m2;
5298
5341
  }
5299
5342
  rawBeforeClose(e2) {
5300
5343
  let a2;
@@ -5370,17 +5413,17 @@
5370
5413
  this[e2.type](e2, a2);
5371
5414
  }
5372
5415
  };
5373
- var ua = ca;
5374
- ca.default = ca;
5375
- let pa = ua;
5416
+ var pa = ua;
5417
+ ua.default = ua;
5418
+ let ha = pa;
5376
5419
  function zs(e2, a2) {
5377
- new pa(a2).stringify(e2);
5420
+ new ha(a2).stringify(e2);
5378
5421
  }
5379
- var ha = zs;
5422
+ var fa = zs;
5380
5423
  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;
5424
+ var ma = {};
5425
+ ma.isClean = Symbol("isClean"), ma.my = Symbol("my");
5426
+ let ga = la, ya = pa, wa = fa, { isClean: Sa, my: ba } = ma;
5384
5427
  function Bs(e2, a2) {
5385
5428
  let u2 = new e2.constructor();
5386
5429
  for (let m2 in e2) {
@@ -5402,12 +5445,12 @@
5402
5445
  }
5403
5446
  return w2;
5404
5447
  }
5405
- let ba = class {
5448
+ let va = class {
5406
5449
  get proxyOf() {
5407
5450
  return this;
5408
5451
  }
5409
5452
  constructor(e2 = {}) {
5410
- this.raws = {}, this[wa] = false, this[Sa] = true;
5453
+ this.raws = {}, this[Sa] = false, this[ba] = true;
5411
5454
  for (let a2 in e2) if ("nodes" === a2) {
5412
5455
  this.nodes = [];
5413
5456
  for (let u2 of e2[a2]) "function" == typeof u2.clone ? this.append(u2.clone()) : this.append(u2);
@@ -5451,19 +5494,19 @@
5451
5494
  let { end: u2, start: m2 } = this.rangeBy(a2);
5452
5495
  return this.source.input.error(e2, { column: m2.column, line: m2.line }, { column: u2.column, line: u2.line }, a2);
5453
5496
  }
5454
- return new ma(e2);
5497
+ return new ga(e2);
5455
5498
  }
5456
5499
  getProxyProcessor() {
5457
5500
  return { get: (e2, a2) => "proxyOf" === a2 ? e2 : "root" === a2 ? () => e2.root().toProxy() : e2[a2], set: (e2, a2, u2) => (e2[a2] === u2 || (e2[a2] = u2, ("prop" === a2 || "value" === a2 || "name" === a2 || "params" === a2 || "important" === a2 || "text" === a2) && e2.markDirty()), true) };
5458
5501
  }
5459
5502
  markClean() {
5460
- this[wa] = true;
5503
+ this[Sa] = true;
5461
5504
  }
5462
5505
  markDirty() {
5463
- if (this[wa]) {
5464
- this[wa] = false;
5506
+ if (this[Sa]) {
5507
+ this[Sa] = false;
5465
5508
  let e2 = this;
5466
- for (; e2 = e2.parent; ) e2[wa] = false;
5509
+ for (; e2 = e2.parent; ) e2[Sa] = false;
5467
5510
  }
5468
5511
  }
5469
5512
  next() {
@@ -5499,7 +5542,7 @@
5499
5542
  return (u2.line < a2.line || u2.line === a2.line && u2.column <= a2.column) && (u2 = { column: a2.column + 1, line: a2.line }), { end: u2, start: a2 };
5500
5543
  }
5501
5544
  raw(e2, a2) {
5502
- return new ga().raw(this, e2, a2);
5545
+ return new ya().raw(this, e2, a2);
5503
5546
  }
5504
5547
  remove() {
5505
5548
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -5536,7 +5579,7 @@
5536
5579
  toProxy() {
5537
5580
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
5538
5581
  }
5539
- toString(e2 = ya) {
5582
+ toString(e2 = wa) {
5540
5583
  e2.stringify && (e2 = e2.stringify);
5541
5584
  let a2 = "";
5542
5585
  return e2(this, (e3) => {
@@ -5549,16 +5592,16 @@
5549
5592
  return e2.warn(a2, m2);
5550
5593
  }
5551
5594
  };
5552
- var va = ba;
5553
- ba.default = ba;
5554
- let Ca = va, ka = class extends Ca {
5595
+ var Ca = va;
5596
+ va.default = va;
5597
+ let ka = Ca, xa = class extends ka {
5555
5598
  constructor(e2) {
5556
5599
  super(e2), this.type = "comment";
5557
5600
  }
5558
5601
  };
5559
- var xa = ka;
5560
- ka.default = ka;
5561
- let Ma = va, Ia = class extends Ma {
5602
+ var Ma = xa;
5603
+ xa.default = xa;
5604
+ let Ia = Ca, _a = class extends Ia {
5562
5605
  get variable() {
5563
5606
  return this.prop.startsWith("--") || "$" === this.prop[0];
5564
5607
  }
@@ -5566,16 +5609,16 @@
5566
5609
  e2 && typeof e2.value < "u" && "string" != typeof e2.value && (e2 = { ...e2, value: String(e2.value) }), super(e2), this.type = "decl";
5567
5610
  }
5568
5611
  };
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;
5612
+ var Oa = _a;
5613
+ _a.default = _a;
5614
+ let Ea, La, Ra, Aa, Ta = Ma, Na = Oa, Pa = Ca, { isClean: Da, my: Fa } = ma;
5572
5615
  function Wo(e2) {
5573
5616
  return e2.map((e3) => (e3.nodes && (e3.nodes = Wo(e3.nodes)), delete e3.source, e3));
5574
5617
  }
5575
5618
  function zo(e2) {
5576
- if (e2[Pa] = false, e2.proxyOf.nodes) for (let a2 of e2.proxyOf.nodes) zo(a2);
5619
+ if (e2[Da] = false, e2.proxyOf.nodes) for (let a2 of e2.proxyOf.nodes) zo(a2);
5577
5620
  }
5578
- let Fa = class Bo extends Na {
5621
+ let Ua = class Bo extends Pa {
5579
5622
  get first() {
5580
5623
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
5581
5624
  }
@@ -5627,7 +5670,7 @@
5627
5670
  return this.markDirty(), this;
5628
5671
  }
5629
5672
  normalize(e2, a2) {
5630
- if ("string" == typeof e2) e2 = Wo(Ea(e2).nodes);
5673
+ if ("string" == typeof e2) e2 = Wo(La(e2).nodes);
5631
5674
  else if (typeof e2 > "u") e2 = [];
5632
5675
  else if (Array.isArray(e2)) {
5633
5676
  e2 = e2.slice(0);
@@ -5638,14 +5681,14 @@
5638
5681
  } else if (e2.type) e2 = [e2];
5639
5682
  else if (e2.prop) {
5640
5683
  if (typeof e2.value > "u") throw new Error("Value field is missed in node creation");
5641
- "string" != typeof e2.value && (e2.value = String(e2.value)), e2 = [new Ta(e2)];
5642
- } else if (e2.selector || e2.selectors) e2 = [new Ra(e2)];
5643
- else if (e2.name) e2 = [new Oa(e2)];
5684
+ "string" != typeof e2.value && (e2.value = String(e2.value)), e2 = [new Na(e2)];
5685
+ } else if (e2.selector || e2.selectors) e2 = [new Aa(e2)];
5686
+ else if (e2.name) e2 = [new Ea(e2)];
5644
5687
  else {
5645
5688
  if (!e2.text) throw new Error("Unknown node type in node creation");
5646
- e2 = [new Aa(e2)];
5689
+ e2 = [new Ta(e2)];
5647
5690
  }
5648
- return e2.map((e3) => (e3[Da] || Bo.rebuild(e3), (e3 = e3.proxyOf).parent && e3.parent.removeChild(e3), e3[Pa] && zo(e3), e3.raws || (e3.raws = {}), typeof e3.raws.before > "u" && a2 && typeof a2.raws.before < "u" && (e3.raws.before = a2.raws.before.replace(/\S/g, "")), e3.parent = this.proxyOf, e3));
5691
+ return e2.map((e3) => (e3[Fa] || Bo.rebuild(e3), (e3 = e3.proxyOf).parent && e3.parent.removeChild(e3), e3[Da] && zo(e3), e3.raws || (e3.raws = {}), typeof e3.raws.before > "u" && a2 && typeof a2.raws.before < "u" && (e3.raws.before = a2.raws.before.replace(/\S/g, "")), e3.parent = this.proxyOf, e3));
5649
5692
  }
5650
5693
  prepend(...e2) {
5651
5694
  e2 = e2.reverse();
@@ -5721,22 +5764,22 @@
5721
5764
  }));
5722
5765
  }
5723
5766
  };
5724
- Fa.registerParse = (e2) => {
5767
+ Ua.registerParse = (e2) => {
5768
+ La = e2;
5769
+ }, Ua.registerRule = (e2) => {
5770
+ Aa = e2;
5771
+ }, Ua.registerAtRule = (e2) => {
5725
5772
  Ea = e2;
5726
- }, Fa.registerRule = (e2) => {
5773
+ }, Ua.registerRoot = (e2) => {
5727
5774
  Ra = e2;
5728
- }, Fa.registerAtRule = (e2) => {
5729
- Oa = e2;
5730
- }, Fa.registerRoot = (e2) => {
5731
- La = e2;
5732
5775
  };
5733
- var Ua = Fa;
5734
- Fa.default = Fa, Fa.rebuild = (e2) => {
5735
- "atrule" === e2.type ? Object.setPrototypeOf(e2, Oa.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Ra.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, Ta.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Aa.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, La.prototype), e2[Da] = true, e2.nodes && e2.nodes.forEach((e3) => {
5736
- Fa.rebuild(e3);
5776
+ var Ba = Ua;
5777
+ Ua.default = Ua, Ua.rebuild = (e2) => {
5778
+ "atrule" === e2.type ? Object.setPrototypeOf(e2, Ea.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Aa.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, Na.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Ta.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, Ra.prototype), e2[Fa] = true, e2.nodes && e2.nodes.forEach((e3) => {
5779
+ Ua.rebuild(e3);
5737
5780
  });
5738
5781
  };
5739
- let Ba = Ua, $a = class extends Ba {
5782
+ let $a = Ba, Wa = class extends $a {
5740
5783
  constructor(e2) {
5741
5784
  super(e2), this.type = "atrule";
5742
5785
  }
@@ -5747,38 +5790,38 @@
5747
5790
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e2);
5748
5791
  }
5749
5792
  };
5750
- var Wa = $a;
5751
- $a.default = $a, Ba.registerAtRule($a);
5752
- let za, ja, Ga = Ua, Va = class extends Ga {
5793
+ var za = Wa;
5794
+ Wa.default = Wa, $a.registerAtRule(Wa);
5795
+ let ja, Ga, Va = Ba, qa = class extends Va {
5753
5796
  constructor(e2) {
5754
5797
  super({ type: "document", ...e2 }), this.nodes || (this.nodes = []);
5755
5798
  }
5756
5799
  toResult(e2 = {}) {
5757
- return new za(new ja(), this, e2).stringify();
5800
+ return new ja(new Ga(), this, e2).stringify();
5758
5801
  }
5759
5802
  };
5760
- Va.registerLazyResult = (e2) => {
5761
- za = e2;
5762
- }, Va.registerProcessor = (e2) => {
5803
+ qa.registerLazyResult = (e2) => {
5763
5804
  ja = e2;
5805
+ }, qa.registerProcessor = (e2) => {
5806
+ Ga = e2;
5764
5807
  };
5765
- var qa = Va;
5766
- Va.default = Va;
5767
- var Za = { nanoid: (e2 = 21) => {
5808
+ var Za = qa;
5809
+ qa.default = qa;
5810
+ var Ka = { nanoid: (e2 = 21) => {
5768
5811
  let a2 = "", u2 = 0 | e2;
5769
5812
  for (; u2--; ) a2 += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
5770
5813
  return a2;
5771
5814
  } };
5772
- let { existsSync: Ka, readFileSync: Ja } = ra, { dirname: Ya, join: Qa } = ra, { SourceMapConsumer: el, SourceMapGenerator: tl } = ra;
5773
- let nl = class {
5815
+ let { existsSync: Ja, readFileSync: Ya } = oa, { dirname: Qa, join: el } = oa, { SourceMapConsumer: tl, SourceMapGenerator: nl } = oa;
5816
+ let rl = class {
5774
5817
  constructor(e2, a2) {
5775
5818
  if (false === a2.map) return;
5776
5819
  this.loadAnnotation(e2), this.inline = this.startWith(this.annotation, "data:");
5777
5820
  let u2 = a2.map ? a2.map.prev : void 0, m2 = this.loadMap(a2.from, u2);
5778
- !this.mapFile && a2.from && (this.mapFile = a2.from), this.mapFile && (this.root = Ya(this.mapFile)), m2 && (this.text = m2);
5821
+ !this.mapFile && a2.from && (this.mapFile = a2.from), this.mapFile && (this.root = Qa(this.mapFile)), m2 && (this.text = m2);
5779
5822
  }
5780
5823
  consumer() {
5781
- return this.consumerCache || (this.consumerCache = new el(this.text)), this.consumerCache;
5824
+ return this.consumerCache || (this.consumerCache = new tl(this.text)), this.consumerCache;
5782
5825
  }
5783
5826
  decodeInline(e2) {
5784
5827
  let a2 = e2.match(/^data:application\/json;charset=utf-?8,/) || e2.match(/^data:application\/json,/);
@@ -5803,15 +5846,15 @@
5803
5846
  u2 > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e2.substring(u2, m2)));
5804
5847
  }
5805
5848
  loadFile(e2) {
5806
- if (this.root = Ya(e2), Ka(e2)) return this.mapFile = e2, Ja(e2, "utf-8").toString().trim();
5849
+ if (this.root = Qa(e2), Ja(e2)) return this.mapFile = e2, Ya(e2, "utf-8").toString().trim();
5807
5850
  }
5808
5851
  loadMap(e2, a2) {
5809
5852
  if (false === a2) return false;
5810
5853
  if (a2) {
5811
5854
  if ("string" == typeof a2) return a2;
5812
5855
  if ("function" != typeof a2) {
5813
- if (a2 instanceof el) return tl.fromSourceMap(a2).toString();
5814
- if (a2 instanceof tl) return a2.toString();
5856
+ if (a2 instanceof tl) return nl.fromSourceMap(a2).toString();
5857
+ if (a2 instanceof nl) return a2.toString();
5815
5858
  if (this.isMap(a2)) return JSON.stringify(a2);
5816
5859
  throw new Error("Unsupported previous source map format: " + a2.toString());
5817
5860
  }
@@ -5827,7 +5870,7 @@
5827
5870
  if (this.inline) return this.decodeInline(this.annotation);
5828
5871
  if (this.annotation) {
5829
5872
  let a3 = this.annotation;
5830
- return e2 && (a3 = Qa(Ya(e2), a3)), this.loadFile(a3);
5873
+ return e2 && (a3 = el(Qa(e2), a3)), this.loadFile(a3);
5831
5874
  }
5832
5875
  }
5833
5876
  }
@@ -5838,23 +5881,23 @@
5838
5881
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
5839
5882
  }
5840
5883
  };
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 {
5884
+ var ol = rl;
5885
+ rl.default = rl;
5886
+ let { nanoid: sl } = Ka, { isAbsolute: il, resolve: al } = oa, { SourceMapConsumer: ll, SourceMapGenerator: cl } = oa, { fileURLToPath: ul, pathToFileURL: pl } = oa, dl = la, hl = ol, fl = oa, ml = Symbol("fromOffsetCache"), gl = !(!ll || !cl), yl = !(!al || !il), wl = class {
5844
5887
  get from() {
5845
5888
  return this.file || this.id;
5846
5889
  }
5847
5890
  constructor(e2, a2 = {}) {
5848
5891
  if (null === e2 || typeof e2 > "u" || "object" == typeof e2 && !e2.toString) throw new Error(`PostCSS received ${e2} instead of CSS string`);
5849
- if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a2.document && (this.document = a2.document.toString()), a2.from && (!gl || /^\w+:\/\//.test(a2.from) || sl(a2.from) ? this.file = a2.from : this.file = il(a2.from)), gl && ml) {
5850
- let e3 = new dl(this.css, a2);
5892
+ if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a2.document && (this.document = a2.document.toString()), a2.from && (!yl || /^\w+:\/\//.test(a2.from) || il(a2.from) ? this.file = a2.from : this.file = al(a2.from)), yl && gl) {
5893
+ let e3 = new hl(this.css, a2);
5851
5894
  if (e3.text) {
5852
5895
  this.map = e3;
5853
5896
  let a3 = e3.consumer().file;
5854
5897
  !this.file && a3 && (this.file = this.mapResolve(a3));
5855
5898
  }
5856
5899
  }
5857
- this.file || (this.id = "<input css " + ol(6) + ">"), this.map && (this.map.file = this.from);
5900
+ this.file || (this.id = "<input css " + sl(6) + ">"), this.map && (this.map.file = this.from);
5858
5901
  }
5859
5902
  error(e2, a2, u2, m2 = {}) {
5860
5903
  let w2, b2, C2;
@@ -5873,17 +5916,17 @@
5873
5916
  a2 = e3.line, u2 = e3.col;
5874
5917
  }
5875
5918
  let x2 = this.origin(a2, u2, b2, w2);
5876
- return C2 = x2 ? new pl(e2, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new pl(e2, void 0 === b2 ? a2 : { column: u2, line: a2 }, void 0 === b2 ? u2 : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u2, endColumn: w2, endLine: b2, line: a2, source: this.css }, this.file && (ul && (C2.input.url = ul(this.file).toString()), C2.input.file = this.file), C2;
5919
+ return C2 = x2 ? new dl(e2, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new dl(e2, void 0 === b2 ? a2 : { column: u2, line: a2 }, void 0 === b2 ? u2 : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u2, endColumn: w2, endLine: b2, line: a2, source: this.css }, this.file && (pl && (C2.input.url = pl(this.file).toString()), C2.input.file = this.file), C2;
5877
5920
  }
5878
5921
  fromOffset(e2) {
5879
5922
  let a2, u2;
5880
- if (this[fl]) u2 = this[fl];
5923
+ if (this[ml]) u2 = this[ml];
5881
5924
  else {
5882
5925
  let e3 = this.css.split("\n");
5883
5926
  u2 = new Array(e3.length);
5884
5927
  let a3 = 0;
5885
5928
  for (let m3 = 0, w2 = e3.length; m3 < w2; m3++) u2[m3] = a3, a3 += e3[m3].length + 1;
5886
- this[fl] = u2;
5929
+ this[ml] = u2;
5887
5930
  }
5888
5931
  a2 = u2[u2.length - 1];
5889
5932
  let m2 = 0;
@@ -5902,17 +5945,17 @@
5902
5945
  return { col: e2 - u2[m2] + 1, line: m2 + 1 };
5903
5946
  }
5904
5947
  mapResolve(e2) {
5905
- return /^\w+:\/\//.test(e2) ? e2 : il(this.map.consumer().sourceRoot || this.map.root || ".", e2);
5948
+ return /^\w+:\/\//.test(e2) ? e2 : al(this.map.consumer().sourceRoot || this.map.root || ".", e2);
5906
5949
  }
5907
5950
  origin(e2, a2, u2, m2) {
5908
5951
  if (!this.map) return false;
5909
5952
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a2, line: e2 });
5910
5953
  if (!x2.source) return false;
5911
- "number" == typeof u2 && (w2 = C2.originalPositionFor({ column: m2, line: u2 })), b2 = sl(x2.source) ? ul(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ul(this.map.mapFile));
5954
+ "number" == typeof u2 && (w2 = C2.originalPositionFor({ column: m2, line: u2 })), b2 = il(x2.source) ? pl(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || pl(this.map.mapFile));
5912
5955
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
5913
5956
  if ("file:" === b2.protocol) {
5914
- if (!cl) throw new Error("file: protocol is not available in this PostCSS build");
5915
- I2.file = cl(b2);
5957
+ if (!ul) throw new Error("file: protocol is not available in this PostCSS build");
5958
+ I2.file = ul(b2);
5916
5959
  }
5917
5960
  let _2 = C2.sourceContentFor(x2.source);
5918
5961
  return _2 && (I2.source = _2), I2;
@@ -5923,9 +5966,9 @@
5923
5966
  return this.map && (e2.map = { ...this.map }, e2.map.consumerCache && (e2.map.consumerCache = void 0)), e2;
5924
5967
  }
5925
5968
  };
5926
- var wl = yl;
5927
- yl.default = yl, hl && hl.registerInput && hl.registerInput(yl);
5928
- let Sl, bl, vl = Ua, Cl = class extends vl {
5969
+ var Sl = wl;
5970
+ wl.default = wl, fl && fl.registerInput && fl.registerInput(wl);
5971
+ let bl, vl, Cl = Ba, kl = class extends Cl {
5929
5972
  constructor(e2) {
5930
5973
  super(e2), this.type = "root", this.nodes || (this.nodes = []);
5931
5974
  }
@@ -5942,29 +5985,29 @@
5942
5985
  return !a2 && 0 === u2 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u2].raws.before), super.removeChild(e2);
5943
5986
  }
5944
5987
  toResult(e2 = {}) {
5945
- return new Sl(new bl(), this, e2).stringify();
5988
+ return new bl(new vl(), this, e2).stringify();
5946
5989
  }
5947
5990
  };
5948
- Cl.registerLazyResult = (e2) => {
5949
- Sl = e2;
5950
- }, Cl.registerProcessor = (e2) => {
5991
+ kl.registerLazyResult = (e2) => {
5951
5992
  bl = e2;
5993
+ }, kl.registerProcessor = (e2) => {
5994
+ vl = e2;
5952
5995
  };
5953
- var kl = Cl;
5954
- Cl.default = Cl, vl.registerRoot(Cl);
5955
- let xl = { comma: (e2) => xl.split(e2, [","], true), space(e2) {
5996
+ var xl = kl;
5997
+ kl.default = kl, Cl.registerRoot(kl);
5998
+ let Ml = { comma: (e2) => Ml.split(e2, [","], true), space(e2) {
5956
5999
  let a2 = [" ", "\n", " "];
5957
- return xl.split(e2, a2);
6000
+ return Ml.split(e2, a2);
5958
6001
  }, split(e2, a2, u2) {
5959
6002
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
5960
6003
  for (let u3 of e2) _2 ? _2 = false : "\\" === u3 ? _2 = true : x2 ? u3 === I2 && (x2 = false) : '"' === u3 || "'" === u3 ? (x2 = true, I2 = u3) : "(" === u3 ? C2 += 1 : ")" === u3 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a2.includes(u3) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u3;
5961
6004
  return (u2 || "" !== w2) && m2.push(w2.trim()), m2;
5962
6005
  } };
5963
- var Ml = xl;
5964
- xl.default = xl;
5965
- let Il = Ua, Ol = Ml, El = class extends Il {
6006
+ var Il = Ml;
6007
+ Ml.default = Ml;
6008
+ let Ol = Ba, El = Il, Ll = class extends Ol {
5966
6009
  get selectors() {
5967
- return Ol.comma(this.selector);
6010
+ return El.comma(this.selector);
5968
6011
  }
5969
6012
  set selectors(e2) {
5970
6013
  let a2 = this.selector ? this.selector.match(/,\s*/) : null, u2 = a2 ? a2[0] : "," + this.raw("between", "beforeOpen");
@@ -5974,34 +6017,34 @@
5974
6017
  super(e2), this.type = "rule", this.nodes || (this.nodes = []);
5975
6018
  }
5976
6019
  };
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;
6020
+ var Rl = Ll;
6021
+ Ll.default = Ll, Ol.registerRule(Ll);
6022
+ let Al = za, Tl = Ma, Nl = Oa, Pl = Sl, Dl = ol, Jl = xl, ec = Rl;
5980
6023
  function Ke(e2, a2) {
5981
6024
  if (Array.isArray(e2)) return e2.map((e3) => Ke(e3));
5982
6025
  let { inputs: u2, ...m2 } = e2;
5983
6026
  if (u2) {
5984
6027
  a2 = [];
5985
6028
  for (let e3 of u2) {
5986
- let u3 = { ...e3, __proto__: Nl.prototype };
5987
- u3.map && (u3.map = { ...u3.map, __proto__: Pl.prototype }), a2.push(u3);
6029
+ let u3 = { ...e3, __proto__: Pl.prototype };
6030
+ u3.map && (u3.map = { ...u3.map, __proto__: Dl.prototype }), a2.push(u3);
5988
6031
  }
5989
6032
  }
5990
6033
  if (m2.nodes && (m2.nodes = e2.nodes.map((e3) => Ke(e3, a2))), m2.source) {
5991
6034
  let { inputId: e3, ...u3 } = m2.source;
5992
6035
  m2.source = u3, null != e3 && (m2.source.input = a2[e3]);
5993
6036
  }
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);
6037
+ if ("root" === m2.type) return new Jl(m2);
6038
+ if ("decl" === m2.type) return new Nl(m2);
6039
+ if ("rule" === m2.type) return new ec(m2);
6040
+ if ("comment" === m2.type) return new Tl(m2);
6041
+ if ("atrule" === m2.type) return new Al(m2);
5999
6042
  throw new Error("Unknown node type: " + e2.type);
6000
6043
  }
6001
- var ec = Ke;
6044
+ var tc = Ke;
6002
6045
  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 {
6046
+ let { dirname: nc, relative: rc, resolve: oc, sep: sc } = oa, { SourceMapConsumer: ic, SourceMapGenerator: ac } = oa, { pathToFileURL: lc } = oa, cc = Sl, uc = !(!ic || !ac), pc = !!(nc && oc && rc && sc);
6047
+ var dc = class {
6005
6048
  constructor(e2, a2, u2, m2) {
6006
6049
  this.stringify = e2, this.mapOpts = u2.map || {}, this.root = a2, this.opts = u2, this.css = m2, this.originalCSS = m2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
6007
6050
  }
@@ -6013,8 +6056,8 @@
6013
6056
  }
6014
6057
  applyPrevMaps() {
6015
6058
  for (let e2 of this.previous()) {
6016
- let a2, u2 = this.toUrl(this.path(e2.file)), m2 = e2.root || tc(e2.file);
6017
- false === this.mapOpts.sourcesContent ? (a2 = new sc(e2.text), a2.sourcesContent && (a2.sourcesContent = null)) : a2 = e2.consumer(), this.map.applySourceMap(a2, u2, this.toUrl(this.path(m2)));
6059
+ let a2, u2 = this.toUrl(this.path(e2.file)), m2 = e2.root || nc(e2.file);
6060
+ false === this.mapOpts.sourcesContent ? (a2 = new ic(e2.text), a2.sourcesContent && (a2.sourcesContent = null)) : a2 = e2.consumer(), this.map.applySourceMap(a2, u2, this.toUrl(this.path(m2)));
6018
6061
  }
6019
6062
  }
6020
6063
  clearAnnotation() {
@@ -6024,7 +6067,7 @@
6024
6067
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
6025
6068
  }
6026
6069
  generate() {
6027
- if (this.clearAnnotation(), uc && cc && this.isMap()) return this.generateMap();
6070
+ if (this.clearAnnotation(), pc && uc && this.isMap()) return this.generateMap();
6028
6071
  {
6029
6072
  let e2 = "";
6030
6073
  return this.stringify(this.root, (a2) => {
@@ -6036,12 +6079,12 @@
6036
6079
  if (this.root) this.generateString();
6037
6080
  else if (1 === this.previous().length) {
6038
6081
  let e2 = this.previous()[0].consumer();
6039
- e2.file = this.outputFile(), this.map = ic.fromSourceMap(e2, { ignoreInvalidMapping: true });
6040
- } else this.map = new ic({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
6082
+ e2.file = this.outputFile(), this.map = ac.fromSourceMap(e2, { ignoreInvalidMapping: true });
6083
+ } else this.map = new ac({ 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
6084
  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
6085
  }
6043
6086
  generateString() {
6044
- this.css = "", this.map = new ic({ file: this.outputFile(), ignoreInvalidMapping: true });
6087
+ this.css = "", this.map = new ac({ file: this.outputFile(), ignoreInvalidMapping: true });
6045
6088
  let e2, a2, u2 = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
6046
6089
  this.stringify(this.root, (C2, x2, I2) => {
6047
6090
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u2, b2.generated.column = m2 - 1, x2.source && x2.source.start ? (b2.source = this.sourcePath(x2), b2.original.line = x2.source.start.line, b2.original.column = x2.source.start.column - 1, this.map.addMapping(b2)) : (b2.source = w2, b2.original.line = 1, b2.original.column = 0, this.map.addMapping(b2))), a2 = C2.match(/\n/g), a2 ? (u2 += a2.length, e2 = C2.lastIndexOf("\n"), m2 = C2.length - e2) : m2 += C2.length, x2 && "start" !== I2) {
@@ -6071,9 +6114,9 @@
6071
6114
  if (this.mapOpts.absolute || 60 === e2.charCodeAt(0) || /^\w+:\/\//.test(e2)) return e2;
6072
6115
  let a2 = this.memoizedPaths.get(e2);
6073
6116
  if (a2) return a2;
6074
- let u2 = this.opts.to ? tc(this.opts.to) : ".";
6075
- "string" == typeof this.mapOpts.annotation && (u2 = tc(rc(u2, this.mapOpts.annotation)));
6076
- let m2 = nc(u2, e2);
6117
+ let u2 = this.opts.to ? nc(this.opts.to) : ".";
6118
+ "string" == typeof this.mapOpts.annotation && (u2 = nc(oc(u2, this.mapOpts.annotation)));
6119
+ let m2 = rc(u2, e2);
6077
6120
  return this.memoizedPaths.set(e2, m2), m2;
6078
6121
  }
6079
6122
  previous() {
@@ -6084,7 +6127,7 @@
6084
6127
  }
6085
6128
  });
6086
6129
  else {
6087
- let e2 = new lc(this.originalCSS, this.opts);
6130
+ let e2 = new cc(this.originalCSS, this.opts);
6088
6131
  e2.map && this.previousMaps.push(e2.map);
6089
6132
  }
6090
6133
  return this.previousMaps;
@@ -6115,8 +6158,8 @@
6115
6158
  toFileUrl(e2) {
6116
6159
  let a2 = this.memoizedFileURLs.get(e2);
6117
6160
  if (a2) return a2;
6118
- if (ac) {
6119
- let a3 = ac(e2).toString();
6161
+ if (lc) {
6162
+ let a3 = lc(e2).toString();
6120
6163
  return this.memoizedFileURLs.set(e2, a3), a3;
6121
6164
  }
6122
6165
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -6124,13 +6167,13 @@
6124
6167
  toUrl(e2) {
6125
6168
  let a2 = this.memoizedURLs.get(e2);
6126
6169
  if (a2) return a2;
6127
- "\\" === oc && (e2 = e2.replace(/\\/g, "/"));
6170
+ "\\" === sc && (e2 = e2.replace(/\\/g, "/"));
6128
6171
  let u2 = encodeURI(e2).replace(/[#?]/g, encodeURIComponent);
6129
6172
  return this.memoizedURLs.set(e2, u2), u2;
6130
6173
  }
6131
6174
  };
6132
- const dc = /[\t\n\f\r "#'()/;[\\\]{}]/g, hc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, fc = /.[\r\n"'(/\\]/, mc = /[\da-f]/i;
6133
- let gc = Wa, yc = xa, wc = _a, Sc = kl, bc = Ll, kc = function(e2, a2 = {}) {
6175
+ const hc = /[\t\n\f\r "#'()/;[\\\]{}]/g, fc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, mc = /.[\r\n"'(/\\]/, gc = /[\da-f]/i;
6176
+ let yc = za, wc = Ma, Sc = Oa, bc = xl, vc = Rl, kc = function(e2, a2 = {}) {
6134
6177
  let u2, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e2.css.valueOf(), F2 = a2.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
6135
6178
  function y2(a3) {
6136
6179
  throw e2.error("Unclosed " + a3, B2);
@@ -6180,7 +6223,7 @@
6180
6223
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
6181
6224
  } while (I2);
6182
6225
  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);
6226
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || mc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6184
6227
  break;
6185
6228
  case 39:
6186
6229
  case 34:
@@ -6198,31 +6241,31 @@
6198
6241
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6199
6242
  break;
6200
6243
  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;
6244
+ hc.lastIndex = B2 + 1, hc.test(D2), b2 = 0 === hc.lastIndex ? D2.length - 1 : hc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6202
6245
  break;
6203
6246
  case 92:
6204
6247
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
6205
- if (u2 = D2.charCodeAt(b2 + 1), w2 && 47 !== u2 && 32 !== u2 && 10 !== u2 && 9 !== u2 && 13 !== u2 && 12 !== u2 && (b2 += 1, mc.test(D2.charAt(b2)))) {
6206
- for (; mc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6248
+ if (u2 = D2.charCodeAt(b2 + 1), w2 && 47 !== u2 && 32 !== u2 && 10 !== u2 && 9 !== u2 && 13 !== u2 && 12 !== u2 && (b2 += 1, gc.test(D2.charAt(b2)))) {
6249
+ for (; gc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6207
6250
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
6208
6251
  }
6209
6252
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6210
6253
  break;
6211
6254
  default:
6212
- 47 === u2 && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a3 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (hc.lastIndex = B2 + 1, hc.test(D2), b2 = 0 === hc.lastIndex ? D2.length - 1 : hc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6255
+ 47 === u2 && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a3 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (fc.lastIndex = B2 + 1, fc.test(D2), b2 = 0 === fc.lastIndex ? D2.length - 1 : fc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6213
6256
  }
6214
6257
  return B2++, x2;
6215
6258
  }, position: function S() {
6216
6259
  return B2;
6217
6260
  } };
6218
6261
  };
6219
- const vc = { empty: true, space: true };
6220
- var xc = class {
6262
+ const xc = { empty: true, space: true };
6263
+ var Mc = class {
6221
6264
  constructor(e2) {
6222
- this.input = e2, this.root = new Sc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e2, start: { column: 1, line: 1, offset: 0 } };
6265
+ this.input = e2, this.root = new bc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e2, start: { column: 1, line: 1, offset: 0 } };
6223
6266
  }
6224
6267
  atrule(e2) {
6225
- let a2 = new gc();
6268
+ let a2 = new yc();
6226
6269
  a2.name = e2[1].slice(1), "" === a2.name && this.unnamedAtrule(a2, e2), this.init(a2, e2[2]);
6227
6270
  let u2, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
6228
6271
  for (; !this.tokenizer.endOfFile(); ) {
@@ -6274,7 +6317,7 @@
6274
6317
  return false;
6275
6318
  }
6276
6319
  comment(e2) {
6277
- let a2 = new yc();
6320
+ let a2 = new wc();
6278
6321
  this.init(a2, e2[2]), a2.source.end = this.getPosition(e2[3] || e2[2]), a2.source.end.offset++;
6279
6322
  let u2 = e2[1].slice(2, -2);
6280
6323
  if (/^\s*$/.test(u2)) a2.text = "", a2.raws.left = u2, a2.raws.right = "";
@@ -6287,7 +6330,7 @@
6287
6330
  this.tokenizer = kc(this.input);
6288
6331
  }
6289
6332
  decl(e2, a2) {
6290
- let u2 = new wc();
6333
+ let u2 = new Sc();
6291
6334
  this.init(u2, e2[0][2]);
6292
6335
  let m2, w2 = e2[e2.length - 1];
6293
6336
  for (";" === w2[0] && (this.semicolon = true, e2.pop()), u2.source.end = this.getPosition(w2[3] || w2[2] || (function Cc(e3) {
@@ -6336,7 +6379,7 @@
6336
6379
  throw this.input.error("Double colon", { offset: e2[2] }, { offset: e2[2] + e2[1].length });
6337
6380
  }
6338
6381
  emptyRule(e2) {
6339
- let a2 = new bc();
6382
+ let a2 = new vc();
6340
6383
  this.init(a2, e2[2]), a2.selector = "", a2.raws.between = "", this.current = a2;
6341
6384
  }
6342
6385
  end(e2) {
@@ -6412,7 +6455,7 @@
6412
6455
  }
6413
6456
  raw(e2, a2, u2, m2) {
6414
6457
  let w2, b2, C2, x2, I2 = u2.length, _2 = "", O2 = true;
6415
- for (let e3 = 0; e3 < I2; e3 += 1) w2 = u2[e3], b2 = w2[0], "space" !== b2 || e3 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u2[e3 - 1] ? u2[e3 - 1][0] : "empty", C2 = u2[e3 + 1] ? u2[e3 + 1][0] : "empty", vc[x2] || vc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6458
+ for (let e3 = 0; e3 < I2; e3 += 1) w2 = u2[e3], b2 = w2[0], "space" !== b2 || e3 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u2[e3 - 1] ? u2[e3 - 1][0] : "empty", C2 = u2[e3 + 1] ? u2[e3 + 1][0] : "empty", xc[x2] || xc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6416
6459
  if (!O2) {
6417
6460
  let m3 = u2.reduce((e3, a3) => e3 + a3[1], "");
6418
6461
  e2.raws[a2] = { raw: m3, value: _2 };
@@ -6421,7 +6464,7 @@
6421
6464
  }
6422
6465
  rule(e2) {
6423
6466
  e2.pop();
6424
- let a2 = new bc();
6467
+ let a2 = new vc();
6425
6468
  this.init(a2, e2[0][2]), a2.raws.between = this.spacesAndCommentsFromEnd(e2), this.raw(a2, "selector", e2), this.current = a2;
6426
6469
  }
6427
6470
  spacesAndCommentsFromEnd(e2) {
@@ -6461,9 +6504,9 @@
6461
6504
  throw this.input.error("At-rule without name", { offset: a2[2] }, { offset: a2[2] + a2[1].length });
6462
6505
  }
6463
6506
  };
6464
- let Mc = Ua, Ic = wl, _c = xc;
6507
+ let Ic = Ba, _c = Sl, Oc = Mc;
6465
6508
  function Gt(e2, a2) {
6466
- let u2 = new Ic(e2, a2), m2 = new _c(u2);
6509
+ let u2 = new _c(e2, a2), m2 = new Oc(u2);
6467
6510
  try {
6468
6511
  m2.parse();
6469
6512
  } catch (e3) {
@@ -6471,9 +6514,9 @@
6471
6514
  }
6472
6515
  return m2.root;
6473
6516
  }
6474
- var Oc = Gt;
6475
- Gt.default = Gt, Mc.registerParse(Gt);
6476
- let Ec = class {
6517
+ var Ec = Gt;
6518
+ Gt.default = Gt, Ic.registerParse(Gt);
6519
+ let Lc = class {
6477
6520
  constructor(e2, a2 = {}) {
6478
6521
  if (this.type = "warning", this.text = e2, a2.node && a2.node.source) {
6479
6522
  let e3 = a2.node.rangeBy(a2);
@@ -6485,9 +6528,9 @@
6485
6528
  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
6529
  }
6487
6530
  };
6488
- var Lc = Ec;
6489
- Ec.default = Ec;
6490
- let Rc = Lc, Ac = class {
6531
+ var Rc = Lc;
6532
+ Lc.default = Lc;
6533
+ let Ac = Rc, Tc = class {
6491
6534
  get content() {
6492
6535
  return this.css;
6493
6536
  }
@@ -6499,26 +6542,26 @@
6499
6542
  }
6500
6543
  warn(e2, a2 = {}) {
6501
6544
  a2.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a2.plugin = this.lastPlugin.postcssPlugin);
6502
- let u2 = new Rc(e2, a2);
6545
+ let u2 = new Ac(e2, a2);
6503
6546
  return this.messages.push(u2), u2;
6504
6547
  }
6505
6548
  warnings() {
6506
6549
  return this.messages.filter((e2) => "warning" === e2.type);
6507
6550
  }
6508
6551
  };
6509
- var Tc = Ac;
6510
- Ac.default = Ac;
6511
- let Nc = {};
6552
+ var Nc = Tc;
6553
+ Tc.default = Tc;
6554
+ let Pc = {};
6512
6555
  var ni = function(e2) {
6513
- Nc[e2] || (Nc[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
6556
+ Pc[e2] || (Pc[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
6514
6557
  };
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 };
6558
+ let Dc = Ba, Fc = Za, Uc = dc, Bc = Ec, $c = Nc, Wc = xl, zc = fa, { isClean: jc, my: Gc } = ma, Vc = ni;
6559
+ const qc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Hc = { 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 }, Zc = { Once: true, postcssPlugin: true, prepare: true };
6517
6560
  function _e(e2) {
6518
6561
  return "object" == typeof e2 && "function" == typeof e2.then;
6519
6562
  }
6520
6563
  function ri(e2) {
6521
- let a2 = false, u2 = Vc[e2.type];
6564
+ let a2 = false, u2 = qc[e2.type];
6522
6565
  return "decl" === e2.type ? a2 = e2.prop.toLowerCase() : "atrule" === e2.type && (a2 = e2.name.toLowerCase()), a2 && e2.append ? [u2, u2 + "-" + a2, 0, u2 + "Exit", u2 + "Exit-" + a2] : a2 ? [u2, u2 + "-" + a2, u2 + "Exit", u2 + "Exit-" + a2] : e2.append ? [u2, 0, u2 + "Exit"] : [u2, u2 + "Exit"];
6523
6566
  }
6524
6567
  function br(e2) {
@@ -6526,9 +6569,9 @@
6526
6569
  return a2 = "document" === e2.type ? ["Document", 0, "DocumentExit"] : "root" === e2.type ? ["Root", 0, "RootExit"] : ri(e2), { eventIndex: 0, events: a2, iterator: 0, node: e2, visitorIndex: 0, visitors: [] };
6527
6570
  }
6528
6571
  function Js(e2) {
6529
- return e2[zc] = false, e2.nodes && e2.nodes.forEach((e3) => Js(e3)), e2;
6572
+ return e2[jc] = false, e2.nodes && e2.nodes.forEach((e3) => Js(e3)), e2;
6530
6573
  }
6531
- let Zc = {}, Kc = class oi {
6574
+ let Kc = {}, Jc = class oi {
6532
6575
  get content() {
6533
6576
  return this.stringify().content;
6534
6577
  }
@@ -6555,19 +6598,19 @@
6555
6598
  }
6556
6599
  constructor(e2, a2, u2) {
6557
6600
  let m2;
6558
- if (this.stringified = false, this.processed = false, "object" != typeof a2 || null === a2 || "root" !== a2.type && "document" !== a2.type) if (a2 instanceof oi || a2 instanceof Bc) m2 = Js(a2.root), a2.map && (typeof u2.map > "u" && (u2.map = {}), u2.map.inline || (u2.map.inline = false), u2.map.prev = a2.map);
6601
+ if (this.stringified = false, this.processed = false, "object" != typeof a2 || null === a2 || "root" !== a2.type && "document" !== a2.type) if (a2 instanceof oi || a2 instanceof $c) m2 = Js(a2.root), a2.map && (typeof u2.map > "u" && (u2.map = {}), u2.map.inline || (u2.map.inline = false), u2.map.prev = a2.map);
6559
6602
  else {
6560
- let e3 = Uc;
6603
+ let e3 = Bc;
6561
6604
  u2.syntax && (e3 = u2.syntax.parse), u2.parser && (e3 = u2.parser), e3.parse && (e3 = e3.parse);
6562
6605
  try {
6563
6606
  m2 = e3(a2, u2);
6564
6607
  } catch (e4) {
6565
6608
  this.processed = true, this.error = e4;
6566
6609
  }
6567
- m2 && !m2[jc] && Pc.rebuild(m2);
6610
+ m2 && !m2[Gc] && Dc.rebuild(m2);
6568
6611
  }
6569
6612
  else m2 = Js(a2);
6570
- this.result = new Bc(e2, m2, u2), this.helpers = { ...Zc, postcss: Zc, result: this.result }, this.plugins = this.processor.plugins.map((e3) => "object" == typeof e3 && e3.prepare ? { ...e3, ...e3.prepare(this.result) } : e3);
6613
+ this.result = new $c(e2, m2, u2), this.helpers = { ...Kc, postcss: Kc, result: this.result }, this.plugins = this.processor.plugins.map((e3) => "object" == typeof e3 && e3.prepare ? { ...e3, ...e3.prepare(this.result) } : e3);
6571
6614
  }
6572
6615
  async() {
6573
6616
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -6601,8 +6644,8 @@
6601
6644
  this.listeners[a2] || (this.listeners[a2] = []), this.listeners[a2].push([e2, u2]);
6602
6645
  };
6603
6646
  for (let e2 of this.plugins) if ("object" == typeof e2) for (let a2 in e2) {
6604
- if (!qc[a2] && /^[A-Z]/.test(a2)) throw new Error(`Unknown event ${a2} in ${e2.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6605
- if (!Hc[a2]) if ("object" == typeof e2[a2]) for (let u2 in e2[a2]) t(e2, "*" === u2 ? a2 : a2 + "-" + u2.toLowerCase(), e2[a2][u2]);
6647
+ if (!Hc[a2] && /^[A-Z]/.test(a2)) throw new Error(`Unknown event ${a2} in ${e2.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6648
+ if (!Zc[a2]) if ("object" == typeof e2[a2]) for (let u2 in e2[a2]) t(e2, "*" === u2 ? a2 : a2 + "-" + u2.toLowerCase(), e2[a2][u2]);
6606
6649
  else "function" == typeof e2[a2] && t(e2, a2, e2[a2]);
6607
6650
  }
6608
6651
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -6619,8 +6662,8 @@
6619
6662
  }
6620
6663
  if (this.prepareVisitors(), this.hasListener) {
6621
6664
  let e2 = this.result.root;
6622
- for (; !e2[zc]; ) {
6623
- e2[zc] = true;
6665
+ for (; !e2[jc]; ) {
6666
+ e2[jc] = true;
6624
6667
  let a2 = [br(e2)];
6625
6668
  for (; a2.length > 0; ) {
6626
6669
  let e3 = this.visitTick(a2);
@@ -6665,9 +6708,9 @@
6665
6708
  if (this.error) throw this.error;
6666
6709
  if (this.stringified) return this.result;
6667
6710
  this.stringified = true, this.sync();
6668
- let e2 = this.result.opts, a2 = Wc;
6711
+ let e2 = this.result.opts, a2 = zc;
6669
6712
  e2.syntax && (a2 = e2.syntax.stringify), e2.stringifier && (a2 = e2.stringifier), a2.stringify && (a2 = a2.stringify);
6670
- let u2 = new Fc(a2, this.result.root, this.result.opts).generate();
6713
+ let u2 = new Uc(a2, this.result.root, this.result.opts).generate();
6671
6714
  return this.result.css = u2[0], this.result.map = u2[1], this.result;
6672
6715
  }
6673
6716
  sync() {
@@ -6679,14 +6722,14 @@
6679
6722
  }
6680
6723
  if (this.prepareVisitors(), this.hasListener) {
6681
6724
  let e2 = this.result.root;
6682
- for (; !e2[zc]; ) e2[zc] = true, this.walkSync(e2);
6725
+ for (; !e2[jc]; ) e2[jc] = true, this.walkSync(e2);
6683
6726
  if (this.listeners.OnceExit) if ("document" === e2.type) for (let a2 of e2.nodes) this.visitSync(this.listeners.OnceExit, a2);
6684
6727
  else this.visitSync(this.listeners.OnceExit, e2);
6685
6728
  }
6686
6729
  return this.result;
6687
6730
  }
6688
6731
  then(e2, a2) {
6689
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || Gc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
6732
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || Vc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
6690
6733
  }
6691
6734
  toString() {
6692
6735
  return this.css;
@@ -6718,22 +6761,22 @@
6718
6761
  }
6719
6762
  if (0 !== a2.iterator) {
6720
6763
  let m3, w3 = a2.iterator;
6721
- for (; m3 = u2.nodes[u2.indexes[w3]]; ) if (u2.indexes[w3] += 1, !m3[zc]) return m3[zc] = true, void e2.push(br(m3));
6764
+ for (; m3 = u2.nodes[u2.indexes[w3]]; ) if (u2.indexes[w3] += 1, !m3[jc]) return m3[jc] = true, void e2.push(br(m3));
6722
6765
  a2.iterator = 0, delete u2.indexes[w3];
6723
6766
  }
6724
6767
  let w2 = a2.events;
6725
6768
  for (; a2.eventIndex < w2.length; ) {
6726
6769
  let e3 = w2[a2.eventIndex];
6727
- if (a2.eventIndex += 1, 0 === e3) return void (u2.nodes && u2.nodes.length && (u2[zc] = true, a2.iterator = u2.getIterator()));
6770
+ if (a2.eventIndex += 1, 0 === e3) return void (u2.nodes && u2.nodes.length && (u2[jc] = true, a2.iterator = u2.getIterator()));
6728
6771
  if (this.listeners[e3]) return void (a2.visitors = this.listeners[e3]);
6729
6772
  }
6730
6773
  e2.pop();
6731
6774
  }
6732
6775
  walkSync(e2) {
6733
- e2[zc] = true;
6776
+ e2[jc] = true;
6734
6777
  let a2 = ri(e2);
6735
6778
  for (let u2 of a2) if (0 === u2) e2.nodes && e2.each((e3) => {
6736
- e3[zc] || this.walkSync(e3);
6779
+ e3[jc] || this.walkSync(e3);
6737
6780
  });
6738
6781
  else {
6739
6782
  let a3 = this.listeners[u2];
@@ -6744,14 +6787,14 @@
6744
6787
  return this.sync().warnings();
6745
6788
  }
6746
6789
  };
6747
- Kc.registerPostcss = (e2) => {
6748
- Zc = e2;
6790
+ Jc.registerPostcss = (e2) => {
6791
+ Kc = e2;
6749
6792
  };
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 {
6793
+ var Yc = Jc;
6794
+ Jc.default = Jc, Wc.registerLazyResult(Jc), Fc.registerLazyResult(Jc);
6795
+ let Xc = dc, Qc = Ec;
6796
+ const lu = Nc;
6797
+ let cu = fa, hu = ni, Cu = class {
6755
6798
  get content() {
6756
6799
  return this.result.css;
6757
6800
  }
@@ -6772,7 +6815,7 @@
6772
6815
  }
6773
6816
  get root() {
6774
6817
  if (this._root) return this._root;
6775
- let e2, a2 = Xc;
6818
+ let e2, a2 = Qc;
6776
6819
  try {
6777
6820
  e2 = a2(this._css, this._opts);
6778
6821
  } catch (e3) {
@@ -6786,11 +6829,11 @@
6786
6829
  }
6787
6830
  constructor(e2, a2, u2) {
6788
6831
  a2 = a2.toString(), this.stringified = false, this._processor = e2, this._css = a2, this._opts = u2, this._map = void 0;
6789
- let m2, w2 = lu;
6790
- this.result = new Qc(this._processor, m2, this._opts), this.result.css = a2;
6832
+ let m2, w2 = cu;
6833
+ this.result = new lu(this._processor, m2, this._opts), this.result.css = a2;
6791
6834
  let b2 = this;
6792
6835
  Object.defineProperty(this.result, "root", { get: () => b2.root });
6793
- let C2 = new Yc(w2, m2, this._opts, a2);
6836
+ let C2 = new Xc(w2, m2, this._opts, a2);
6794
6837
  if (C2.isMap()) {
6795
6838
  let [e3, a3] = C2.generate();
6796
6839
  e3 && (this.result.css = e3), a3 && (this.result.map = a3);
@@ -6810,7 +6853,7 @@
6810
6853
  return this.result;
6811
6854
  }
6812
6855
  then(e2, a2) {
6813
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || cu("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
6856
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || hu("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e2, a2);
6814
6857
  }
6815
6858
  toString() {
6816
6859
  return this._css;
@@ -6819,9 +6862,9 @@
6819
6862
  return [];
6820
6863
  }
6821
6864
  };
6822
- var Cu = hu;
6823
- hu.default = hu;
6824
- let ku = qa, xu = Jc, Mu = Cu, _u = kl, Ou = class {
6865
+ var ku = Cu;
6866
+ Cu.default = Cu;
6867
+ let xu = Za, Mu = Yc, _u = ku, Ou = xl, Eu = class {
6825
6868
  constructor(e2 = []) {
6826
6869
  this.version = "8.5.3", this.plugins = this.normalize(e2);
6827
6870
  }
@@ -6837,39 +6880,39 @@
6837
6880
  return a2;
6838
6881
  }
6839
6882
  process(e2, a2 = {}) {
6840
- return this.plugins.length || a2.parser || a2.stringifier || a2.syntax ? new xu(this, e2, a2) : new Mu(this, e2, a2);
6883
+ return this.plugins.length || a2.parser || a2.stringifier || a2.syntax ? new Mu(this, e2, a2) : new _u(this, e2, a2);
6841
6884
  }
6842
6885
  use(e2) {
6843
6886
  return this.plugins = this.plugins.concat(this.normalize([e2])), this;
6844
6887
  }
6845
6888
  };
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;
6889
+ var Lu = Eu;
6890
+ Eu.default = Eu, Ou.registerProcessor(Eu), xu.registerProcessor(Eu);
6891
+ let Ru = za, Au = Ma, Tu = Ba, Nu = la, Pu = Oa, Du = Za, Fu = tc, Uu = Sl, $u = Yc, Wu = Il, zu = Ca, ju = Ec, Gu = Lu, Vu = Nc, qu = xl, Hu = Rl, Zu = fa, Ku = Rc;
6849
6892
  function T$1(...e2) {
6850
- return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new ju(e2);
6893
+ return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new Gu(e2);
6851
6894
  }
6852
6895
  T$1.plugin = function(e2, a2) {
6853
6896
  let u2, m2 = false;
6854
6897
  function n(...u3) {
6855
6898
  console && console.warn && !m2 && (m2 = true, console.warn(e2 + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e2 + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
6856
6899
  let w2 = a2(...u3);
6857
- return w2.postcssPlugin = e2, w2.postcssVersion = new ju().version, w2;
6900
+ return w2.postcssPlugin = e2, w2.postcssVersion = new Gu().version, w2;
6858
6901
  }
6859
6902
  return Object.defineProperty(n, "postcss", { get: () => (u2 || (u2 = n()), u2) }), n.process = function(e3, a3, u3) {
6860
6903
  return T$1([n(u3)]).process(e3, a3);
6861
6904
  }, n;
6862
- }, T$1.stringify = Hu, T$1.parse = zu, T$1.fromJSON = Du, T$1.list = $u, T$1.comment = (e2) => new Ru(e2), T$1.atRule = (e2) => new Lu(e2), T$1.decl = (e2) => new Nu(e2), T$1.rule = (e2) => new qu(e2), T$1.root = (e2) => new Vu(e2), T$1.document = (e2) => new Pu(e2), T$1.CssSyntaxError = Tu, T$1.Declaration = Nu, T$1.Container = Au, T$1.Processor = ju, T$1.Document = Pu, T$1.Comment = Ru, T$1.Warning = Zu, T$1.AtRule = Lu, T$1.Result = Gu, T$1.Input = Fu, T$1.Rule = qu, T$1.Root = Vu, T$1.Node = Wu, Uu.registerPostcss(T$1);
6863
- var Ku = T$1;
6905
+ }, T$1.stringify = Zu, T$1.parse = ju, T$1.fromJSON = Fu, T$1.list = Wu, T$1.comment = (e2) => new Au(e2), T$1.atRule = (e2) => new Ru(e2), T$1.decl = (e2) => new Pu(e2), T$1.rule = (e2) => new Hu(e2), T$1.root = (e2) => new qu(e2), T$1.document = (e2) => new Du(e2), T$1.CssSyntaxError = Nu, T$1.Declaration = Pu, T$1.Container = Tu, T$1.Processor = Gu, T$1.Document = Du, T$1.Comment = Au, T$1.Warning = Ku, T$1.AtRule = Ru, T$1.Result = Vu, T$1.Input = Uu, T$1.Rule = Hu, T$1.Root = qu, T$1.Node = zu, $u.registerPostcss(T$1);
6906
+ var Ju = T$1;
6864
6907
  T$1.default = T$1;
6865
- const Ju = Su(Ku);
6866
- var Yu;
6867
- Ju.stringify, Ju.fromJSON, Ju.plugin, Ju.parse, Ju.list, Ju.document, Ju.comment, Ju.atRule, Ju.rule, Ju.decl, Ju.root, Ju.CssSyntaxError, Ju.Declaration, Ju.Container, Ju.Processor, Ju.Document, Ju.Comment, Ju.Warning, Ju.AtRule, Ju.Result, Ju.Input, Ju.Rule, Ju.Root, Ju.Node, (function(e2) {
6908
+ const Yu = Su(Ju);
6909
+ var Xu;
6910
+ Yu.stringify, Yu.fromJSON, Yu.plugin, Yu.parse, Yu.list, Yu.document, Yu.comment, Yu.atRule, Yu.rule, Yu.decl, Yu.root, Yu.CssSyntaxError, Yu.Declaration, Yu.Container, Yu.Processor, Yu.Document, Yu.Comment, Yu.Warning, Yu.AtRule, Yu.Result, Yu.Input, Yu.Rule, Yu.Root, Yu.Node, (function(e2) {
6868
6911
  e2[e2.NotStarted = 0] = "NotStarted", e2[e2.Running = 1] = "Running", e2[e2.Stopped = 2] = "Stopped";
6869
- })(Yu || (Yu = {}));
6870
- const { addCustomEvent: Xu } = ae, { addSailfishEvent: Qu } = ae, { freezePage: ep } = ae, { takeFullSnapshot: tp } = ae;
6871
- var np = Object.defineProperty, y = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? np(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2);
6872
- let rp = class d {
6912
+ })(Xu || (Xu = {}));
6913
+ const { addCustomEvent: Qu } = ae, { addSailfishEvent: ep } = ae, { freezePage: tp } = ae, { takeFullSnapshot: np } = ae;
6914
+ var rp = Object.defineProperty, y = (e2, a2, u2) => ((e3, a3, u3) => a3 in e3 ? rp(e3, a3, { enumerable: true, configurable: true, writable: true, value: u3 }) : e3[a3] = u3)(e2, "symbol" != typeof a2 ? a2 + "" : a2, u2);
6915
+ let op = class d {
6873
6916
  constructor(e2) {
6874
6917
  y(this, "fileName"), y(this, "functionName"), y(this, "lineNumber"), y(this, "columnNumber"), this.fileName = e2.fileName || "", this.functionName = e2.functionName || "", this.lineNumber = e2.lineNumber, this.columnNumber = e2.columnNumber;
6875
6918
  }
@@ -6878,8 +6921,8 @@
6878
6921
  return this.functionName ? `${this.functionName} (${this.fileName}:${e2}:${a2})` : `${this.fileName}:${e2}:${a2}`;
6879
6922
  }
6880
6923
  };
6881
- const op = /(^|@)\S+:\d+/, sp = /^\s*at .*(\S+:\d+|\(native\))/m, ip = /^(eval@)?(\[native code])?$/, ap = { parse: function(e2) {
6882
- return e2 ? typeof e2.stacktrace < "u" || typeof e2["opera#sourceloc"] < "u" ? this.parseOpera(e2) : e2.stack && e2.stack.match(sp) ? this.parseV8OrIE(e2) : e2.stack ? this.parseFFOrSafari(e2) : (console.warn("[console-record-plugin]: Failed to parse error object:", e2), []) : [];
6924
+ const sp = /(^|@)\S+:\d+/, ip = /^\s*at .*(\S+:\d+|\(native\))/m, ap = /^(eval@)?(\[native code])?$/, lp = { parse: function(e2) {
6925
+ return e2 ? typeof e2.stacktrace < "u" || typeof e2["opera#sourceloc"] < "u" ? this.parseOpera(e2) : e2.stack && e2.stack.match(ip) ? this.parseV8OrIE(e2) : e2.stack ? this.parseFFOrSafari(e2) : (console.warn("[console-record-plugin]: Failed to parse error object:", e2), []) : [];
6883
6926
  }, extractLocation: function(e2) {
6884
6927
  if (-1 === e2.indexOf(":")) return [e2];
6885
6928
  const a2 = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e2.replace(/[()]/g, ""));
@@ -6887,23 +6930,23 @@
6887
6930
  return [a2[1], a2[2] || void 0, a2[3] || void 0];
6888
6931
  }, parseV8OrIE: function(e2) {
6889
6932
  return e2.stack.split("\n").filter(function(e3) {
6890
- return !!e3.match(sp);
6933
+ return !!e3.match(ip);
6891
6934
  }, this).map(function(e3) {
6892
6935
  e3.indexOf("(eval ") > -1 && (e3 = e3.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
6893
6936
  let a2 = e3.replace(/^\s+/, "").replace(/\(eval code/g, "(");
6894
6937
  const u2 = a2.match(/ (\((.+):(\d+):(\d+)\)$)/);
6895
6938
  a2 = u2 ? a2.replace(u2[0], "") : a2;
6896
6939
  const m2 = a2.split(/\s+/).slice(1), w2 = this.extractLocation(u2 ? u2[1] : m2.pop()), b2 = m2.join(" ") || void 0, C2 = ["eval", "<anonymous>"].indexOf(w2[0]) > -1 ? void 0 : w2[0];
6897
- return new rp({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6940
+ return new op({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6898
6941
  }, this);
6899
6942
  }, parseFFOrSafari: function(e2) {
6900
6943
  return e2.stack.split("\n").filter(function(e3) {
6901
- return !e3.match(ip);
6944
+ return !e3.match(ap);
6902
6945
  }, this).map(function(e3) {
6903
- if (e3.indexOf(" > eval") > -1 && (e3 = e3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e3.indexOf("@") && -1 === e3.indexOf(":")) return new rp({ functionName: e3 });
6946
+ if (e3.indexOf(" > eval") > -1 && (e3 = e3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e3.indexOf("@") && -1 === e3.indexOf(":")) return new op({ functionName: e3 });
6904
6947
  {
6905
6948
  const a2 = /((.*".+"[^@]*)?[^@]*)(?:@)/, u2 = e3.match(a2), m2 = u2 && u2[1] ? u2[1] : void 0, w2 = this.extractLocation(e3.replace(a2, ""));
6906
- return new rp({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6949
+ return new op({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6907
6950
  }
6908
6951
  }, this);
6909
6952
  }, parseOpera: function(e2) {
@@ -6912,22 +6955,22 @@
6912
6955
  const a2 = /Line (\d+).*script (?:in )?(\S+)/i, u2 = e2.message.split("\n"), m2 = [];
6913
6956
  for (let e3 = 2, w2 = u2.length; e3 < w2; e3 += 2) {
6914
6957
  const w3 = a2.exec(u2[e3]);
6915
- w3 && m2.push(new rp({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6958
+ w3 && m2.push(new op({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6916
6959
  }
6917
6960
  return m2;
6918
6961
  }, parseOpera10: function(e2) {
6919
6962
  const a2 = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, u2 = e2.stacktrace.split("\n"), m2 = [];
6920
6963
  for (let e3 = 0, w2 = u2.length; e3 < w2; e3 += 2) {
6921
6964
  const w3 = a2.exec(u2[e3]);
6922
- w3 && m2.push(new rp({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6965
+ w3 && m2.push(new op({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6923
6966
  }
6924
6967
  return m2;
6925
6968
  }, parseOpera11: function(e2) {
6926
6969
  return e2.stack.split("\n").filter(function(e3) {
6927
- return !!e3.match(op) && !e3.match(/^Error created at/);
6970
+ return !!e3.match(sp) && !e3.match(/^Error created at/);
6928
6971
  }, this).map(function(e3) {
6929
6972
  const a2 = e3.split("@"), u2 = this.extractLocation(a2.pop()), m2 = (a2.shift() || "").replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0;
6930
- return new rp({ functionName: m2, fileName: u2[0], lineNumber: u2[1], columnNumber: u2[2] });
6973
+ return new op({ functionName: m2, fileName: u2[0], lineNumber: u2[1], columnNumber: u2[2] });
6931
6974
  }, this);
6932
6975
  } };
6933
6976
  function T(e2) {
@@ -6984,9 +7027,9 @@
6984
7027
  return a3 instanceof Node ? a3 instanceof HTMLElement ? a3 ? a3.outerHTML : "" : a3.nodeName : a3 instanceof Error ? a3.stack ? a3.stack + "\nEnd of stack for Error object" : a3.name + ": " + a3.message : a3;
6985
7028
  });
6986
7029
  }
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" };
7030
+ const cp = { 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
7031
  function R(e2, a2, u2) {
6989
- const m2 = u2 ? Object.assign({}, lp, u2) : lp, w2 = m2.logger;
7032
+ const m2 = u2 ? Object.assign({}, cp, u2) : cp, w2 = m2.logger;
6990
7033
  if (!w2) return () => {
6991
7034
  };
6992
7035
  let b2;
@@ -6995,7 +7038,7 @@
6995
7038
  const I2 = [];
6996
7039
  if (m2.level.includes("error")) {
6997
7040
  const l = (a3) => {
6998
- const u3 = a3.message, w3 = a3.error, b3 = ap.parse(w3).map((e3) => e3.toString()), C3 = [g(u3, m2.stringifyOptions)];
7041
+ const u3 = a3.message, w3 = a3.error, b3 = lp.parse(w3).map((e3) => e3.toString()), C3 = [g(u3, m2.stringifyOptions)];
6999
7042
  e2({ level: "error", trace: b3, payload: C3 });
7000
7043
  };
7001
7044
  a2.addEventListener("error", l), I2.push(() => {
@@ -7004,7 +7047,7 @@
7004
7047
  const f = (a3) => {
7005
7048
  let u3, w3;
7006
7049
  a3.reason instanceof Error ? (u3 = a3.reason, w3 = [g(`Uncaught (in promise) ${u3.name}: ${u3.message}`, m2.stringifyOptions)]) : (u3 = new Error(), w3 = [g("Uncaught (in promise)", m2.stringifyOptions), g(a3.reason, m2.stringifyOptions)]);
7007
- const b3 = ap.parse(u3).map((e3) => e3.toString());
7050
+ const b3 = lp.parse(u3).map((e3) => e3.toString());
7008
7051
  e2({ level: "error", trace: b3, payload: w3 });
7009
7052
  };
7010
7053
  a2.addEventListener("unhandledrejection", f), I2.push(() => {
@@ -7032,7 +7075,7 @@
7032
7075
  if (a4.apply(this, w3), !("assert" === u3 && w3[0] || x2)) {
7033
7076
  x2 = true;
7034
7077
  try {
7035
- const a5 = ap.parse(new Error()).map((e3) => e3.toString()).splice(1), b3 = ("assert" === u3 ? w3.slice(1) : w3).map((e3) => g(e3, m2.stringifyOptions));
7078
+ const a5 = lp.parse(new Error()).map((e3) => e3.toString()).splice(1), b3 = ("assert" === u3 ? w3.slice(1) : w3).map((e3) => g(e3, m2.stringifyOptions));
7036
7079
  C2++, C2 < m2.lengthThreshold ? e2({ level: u3, trace: a5, payload: b3 }) : C2 === m2.lengthThreshold && e2({ level: "warn", trace: [], payload: [g("The number of log records reached the threshold.")] });
7037
7080
  } catch (e3) {
7038
7081
  a4("@sailfish-rrweb/rrweb logger error:", e3, ...w3);
@@ -7044,7 +7087,7 @@
7044
7087
  };
7045
7088
  }
7046
7089
  }
7047
- var cp = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(cp || {});
7090
+ var up = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(up || {});
7048
7091
  function suppressConsoleLogsDuringCall(e2) {
7049
7092
  const a2 = console.log, u2 = console.warn, m2 = console.error;
7050
7093
  console.log = () => {
@@ -7057,7 +7100,7 @@
7057
7100
  console.log = a2, console.warn = u2, console.error = m2;
7058
7101
  }
7059
7102
  }
7060
- const up = "zendesk_chat", pp = "Zendesk";
7103
+ const pp = "zendesk_chat", dp = "Zendesk";
7061
7104
  function zE_safe(...e2) {
7062
7105
  try {
7063
7106
  if ((function hasZendesk() {
@@ -7096,11 +7139,11 @@
7096
7139
  function initializeConsolePlugin(e2, a2) {
7097
7140
  const { name: u2, observer: m2 } = /* @__PURE__ */ ((e3) => ({ name: "@sailfish-rrweb/rrweb/console@1", observer: R, options: e3 }))(e2);
7098
7141
  m2((e3) => {
7099
- sendEvent({ type: cp.Plugin, timestamp: Date.now(), data: { plugin: u2, payload: e3 }, sessionId: a2, ...getUrlAndStoredUuids() });
7142
+ sendEvent({ type: up.Plugin, timestamp: Date.now(), data: { plugin: u2, payload: e3 }, sessionId: a2, ...getUrlAndStoredUuids() });
7100
7143
  }, window, e2);
7101
7144
  }
7102
- async function initializeRecording(e2, a2, u2, m2) {
7103
- const w2 = initializeWebSocket(a2, u2, m2);
7145
+ async function initializeRecording(e2, a2, u2, m2, w2) {
7146
+ const b2 = initializeWebSocket(a2, u2, m2, w2);
7104
7147
  try {
7105
7148
  ae({ emit(e3) {
7106
7149
  Object.assign(e3, getUrlAndStoredUuids()), e3.sessionId = m2, sendEvent(e3);
@@ -7116,11 +7159,11 @@
7116
7159
  zE_safe("messenger:set", "conversationTags", [`sailfish-session-${m2}`]);
7117
7160
  });
7118
7161
  const handleWidgetOpen = () => {
7119
- ae.addSailfishEvent(cp.SailfishCustom, { action: "customer support chat opened", element_id: up, provider: pp });
7162
+ ae.addSailfishEvent(up.SailfishCustom, { action: "customer support chat opened", element_id: pp, provider: dp });
7120
7163
  }, handleWidgetClose = () => {
7121
- ae.addSailfishEvent(cp.SailfishCustom, { action: "customer support chat closed", element_id: up, provider: pp });
7164
+ ae.addSailfishEvent(up.SailfishCustom, { action: "customer support chat closed", element_id: pp, provider: dp });
7122
7165
  }, handleUnreadMessages = (e3) => {
7123
- ae.addSailfishEvent(cp.SailfishCustom, { action: "zendesk unreadmessages", element_id: up, provider: pp });
7166
+ ae.addSailfishEvent(up.SailfishCustom, { action: "zendesk unreadmessages", element_id: pp, provider: dp });
7124
7167
  };
7125
7168
  suppressConsoleLogsDuringCall(() => {
7126
7169
  zE_safe("messenger:on", "open", handleWidgetOpen), zE_safe("messenger:on", "close", handleWidgetClose), zE_safe("messenger:on", "unreadMessages", handleUnreadMessages);
@@ -7129,10 +7172,10 @@
7129
7172
  } catch (e3) {
7130
7173
  console.error("Error importing plugins!", e3);
7131
7174
  }
7132
- return w2;
7175
+ return b2;
7133
7176
  }
7134
- let dp = null, hp = null;
7135
- const fp = readDebugFlag(), mp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], gp = [400, 403], yp = "CORS", wp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, Sp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7177
+ let hp = null, fp = null;
7178
+ const mp = readDebugFlag(), gp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], yp = [400, 403], wp = "CORS", 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" };
7136
7179
  function trackDomainChangesOnce() {
7137
7180
  const e2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7138
7181
  if (e2.routeWatcherIntervalId) return;
@@ -7199,7 +7242,7 @@
7199
7242
  return true;
7200
7243
  }
7201
7244
  for (const e3 of D) if (u2.pathname.toLowerCase().endsWith(e3)) return true;
7202
- return !!matchUrlWithWildcard(e2, [...mp, ...a2]);
7245
+ return !!matchUrlWithWildcard(e2, [...gp, ...a2]);
7203
7246
  }
7204
7247
  function setupFetchInterceptor(e2 = []) {
7205
7248
  const a2 = window.fetch, u2 = getOrSetSessionId();
@@ -7234,7 +7277,7 @@
7234
7277
  F2[e4] = a5;
7235
7278
  }) : F2 = { ...w3.headers }), D2 = w3.body;
7236
7279
  } catch (e4) {
7237
- fp && console.warn("[Sailfish] Failed to capture request data:", e4);
7280
+ mp && console.warn("[Sailfish] Failed to capture request data:", e4);
7238
7281
  }
7239
7282
  delete F2[C];
7240
7283
  const U2 = (_a2 = getFuncSpanHeader()) == null ? void 0 : _a2.name;
@@ -7244,16 +7287,16 @@
7244
7287
  const I4 = getFuncSpanHeader();
7245
7288
  if (u4 instanceof Request) {
7246
7289
  const _3 = u4.clone(), O3 = new Headers(_3.headers);
7247
- O3.set(C, `${w4}/${b4}/${x4}`), I4 && (O3.set(I4.name, I4.value), fp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u4.url, header: I4.name }));
7290
+ O3.set(C, `${w4}/${b4}/${x4}`), I4 && (O3.set(I4.name, I4.value), mp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u4.url, header: I4.name }));
7248
7291
  const E3 = new Request(_3, { headers: O3 });
7249
7292
  return await e4.call(a5, E3, m4);
7250
7293
  }
7251
7294
  {
7252
7295
  const _3 = { ...m4 }, O3 = new Headers(m4.headers || {});
7253
- return O3.set(C, `${w4}/${b4}/${x4}`), I4 && (O3.set(I4.name, I4.value), fp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u4 ? u4 : u4.href, header: I4.name })), _3.headers = O3, await e4.call(a5, u4, _3);
7296
+ return O3.set(C, `${w4}/${b4}/${x4}`), I4 && (O3.set(I4.name, I4.value), mp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u4 ? u4 : u4.href, header: I4.name })), _3.headers = O3, await e4.call(a5, u4, _3);
7254
7297
  }
7255
7298
  })(e3, a4, m3, w3, b3, _2.page_visit_uuid, I3), B2 = false;
7256
- gp.includes(U3.status) && (fp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e4, a5, u4, m4) {
7299
+ yp.includes(U3.status) && (mp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e4, a5, u4, m4) {
7257
7300
  try {
7258
7301
  let m5 = u4[0], w4 = u4[1] || {};
7259
7302
  if ("string" == typeof m5 || m5 instanceof URL) {
@@ -7269,7 +7312,7 @@
7269
7312
  }
7270
7313
  return e4.apply(a5, u4);
7271
7314
  } catch (e5) {
7272
- throw fp && console.log(`Retry without ${C} for ${m4} also failed:`, e5), e5;
7315
+ throw mp && console.log(`Retry without ${C} for ${m4} also failed:`, e5), e5;
7273
7316
  }
7274
7317
  })(e3, a4, u3, x3), B2 = true);
7275
7318
  const $2 = Date.now(), z2 = U3.status, j2 = U3.ok, V2 = j2 ? "" : `Request Error: ${U3.statusText}`;
@@ -7278,7 +7321,7 @@
7278
7321
  const e4 = U3.clone();
7279
7322
  q2 = await e4.text();
7280
7323
  } catch (e4) {
7281
- fp && console.warn("[Sailfish] Failed to capture response data:", e4), q2 = null;
7324
+ mp && console.warn("[Sailfish] Failed to capture response data:", e4), q2 = null;
7282
7325
  }
7283
7326
  let H2 = null;
7284
7327
  try {
@@ -7286,12 +7329,12 @@
7286
7329
  H2[a5] = e4;
7287
7330
  });
7288
7331
  } catch (e4) {
7289
- fp && console.warn("[Sailfish] Failed to capture response headers:", e4), H2 = null;
7332
+ mp && console.warn("[Sailfish] Failed to capture response headers:", e4), H2 = null;
7290
7333
  }
7291
7334
  return sendEvent({ type: 27, timestamp: $2, sessionId: b3, data: { request_id: I3, session_id: b3, timestamp_start: E2, timestamp_end: $2, response_code: z2, success: j2, error: V2, method: O2, url: x3, retry_without_trace_id: B2, request_headers: F2, request_body: D2, response_headers: H2, response_body: q2 }, ..._2 }), U3;
7292
7335
  } catch (m4) {
7293
7336
  const w4 = Date.now(), C2 = false, U3 = ((_b = m4.response) == null ? void 0 : _b.status) || 500, B2 = m4.message || "Fetch request failed";
7294
- if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(yp.toLowerCase()))) return e3.apply(a4, u3);
7337
+ if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(wp.toLowerCase()))) return e3.apply(a4, u3);
7295
7338
  throw sendEvent({ type: 27, timestamp: w4, sessionId: b3, data: { request_id: I3, session_id: b3, timestamp_start: E2, timestamp_end: w4, response_code: U3, success: C2, error: B2, method: O2, url: x3, request_headers: F2, request_body: D2, response_body: null }, ..._2 }), m4;
7296
7339
  }
7297
7340
  })(a3, m2, w2, x2, I2, u2, b2);
@@ -7323,9 +7366,9 @@
7323
7366
  } catch {
7324
7367
  }
7325
7368
  })(), F2 = getOrSetSessionId(), U2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7326
- if (U2.sessionId = F2, U2.apiKey = e2, U2.backendApi = a2, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7369
+ if (U2.sessionId = F2, U2.apiKey = e2, U2.backendApi = a2, U2.serviceAdditionalMetadata = I2, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7327
7370
  else {
7328
- U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(Sp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7371
+ U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(bp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7329
7372
  window.addEventListener("error", (e3) => {
7330
7373
  captureError(e3.error || e3.message);
7331
7374
  }), window.addEventListener("unhandledrejection", (e3) => {
@@ -7333,7 +7376,12 @@
7333
7376
  });
7334
7377
  })(), U2.errorInit = true), (function storeCredentialsAndConnection({ apiKey: e3, backendApi: a3 }) {
7335
7378
  Q && (sessionStorage.setItem("sailfishApiKey", e3), sessionStorage.setItem("sailfishBackendApi", a3));
7336
- })({ apiKey: e2, backendApi: a2 }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e2), sessionStorage.setItem("sailfishBackendApi", a2), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e2, [...m2, ...mp], a2).catch((e3) => console.error("Failed to send domains to not propagate header to:", e3)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e3 = []) {
7379
+ })({ apiKey: e2, backendApi: a2 }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e2), sessionStorage.setItem("sailfishBackendApi", a2), !isFunctionSpanTrackingEnabled() || U2.ws && 1 === U2.ws.readyState || fetchFunctionSpanTrackingEnabled(e2, a2).then((e3) => {
7380
+ var _a3;
7381
+ ((_a3 = e3.data) == null ? void 0 : _a3.isFunctionSpanTrackingEnabledFromApiKey) ?? false ? mp && console.log("[Sailfish] Function span tracking state validated with backend: ACTIVE") : (clearStaleFuncSpanState(), mp && console.log("[Sailfish] Cleared stale function span tracking state - backend validation shows tracking is not active"));
7382
+ }).catch((e3) => {
7383
+ mp && console.warn("[Sailfish] Failed to validate function span tracking status with backend:", e3);
7384
+ }), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e2, [...m2, ...gp], a2).catch((e3) => console.error("Failed to send domains to not propagate header to:", e3)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e3 = []) {
7337
7385
  const a3 = XMLHttpRequest.prototype.open, u3 = XMLHttpRequest.prototype.send, m3 = XMLHttpRequest.prototype.setRequestHeader, w3 = getOrSetSessionId();
7338
7386
  XMLHttpRequest.prototype.setRequestHeader = function(e4, a4) {
7339
7387
  return this._capturedRequestHeaders || (this._capturedRequestHeaders = {}), this._capturedRequestHeaders[e4] = a4, m3.call(this, e4, a4);
@@ -7351,9 +7399,9 @@
7351
7399
  }
7352
7400
  const _3 = getFuncSpanHeader();
7353
7401
  if (_3) try {
7354
- this.setRequestHeader(_3.name, _3.value), fp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7402
+ this.setRequestHeader(_3.name, _3.value), mp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7355
7403
  } catch (e4) {
7356
- fp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e4);
7404
+ mp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e4);
7357
7405
  }
7358
7406
  const O3 = Date.now();
7359
7407
  let E3 = false;
@@ -7381,7 +7429,7 @@
7381
7429
  2 === a6.length && (u4[a6[0]] = a6[1]);
7382
7430
  });
7383
7431
  } catch (e5) {
7384
- fp && console.warn("[Sailfish] Failed to capture XHR response headers:", e5), u4 = null;
7432
+ mp && console.warn("[Sailfish] Failed to capture XHR response headers:", e5), u4 = null;
7385
7433
  }
7386
7434
  if (e4 >= 200 && e4 < 300) emitFinished(true, e4, "", a5, u4);
7387
7435
  else {
@@ -7397,12 +7445,12 @@
7397
7445
  sendMessage({ type: "deviceInfo", data: { deviceInfo: { language: navigator.language, userAgent: navigator.userAgent } } });
7398
7446
  })();
7399
7447
  try {
7400
- const u3 = await fetchCaptureSettings(e2, a2), m3 = ((_a2 = u3.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || wp;
7448
+ const u3 = await fetchCaptureSettings(e2, a2), m3 = ((_a2 = u3.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || Sp;
7401
7449
  if (U2.ws && 1 === U2.ws.readyState) return;
7402
7450
  const C2 = withAppUrlMetadata(I2), x3 = await startRecordingSession(e2, F2, a2, O2, E2, D2, _2, "JS/TS", C2);
7403
7451
  if ((_b = x3.data) == null ? void 0 : _b.startRecordingSession) {
7404
- const u4 = await initializeRecording(m3, a2, e2, F2);
7405
- U2.ws = u4, U2.initialized = true, U2.sentMapUuidOnce || (!(function sendMapUuidIfAvailable(e3 = "", a3 = "") {
7452
+ const u4 = (I2 == null ? void 0 : I2.env) || (I2 == null ? void 0 : I2.environment), C3 = await initializeRecording(m3, a2, e2, F2, u4);
7453
+ U2.ws = C3, U2.initialized = true, U2.sentMapUuidOnce || (!(function sendMapUuidIfAvailable(e3 = "", a3 = "") {
7406
7454
  window.sfMapUuid && sendMessage({ type: "mapUuid", data: { mapUuid: window.sfMapUuid, serviceIdentifier: e3, serviceVersion: a3 } });
7407
7455
  })(b2, w2), U2.sentMapUuidOnce = true);
7408
7456
  } else console.error("Failed to start recording session:", x3.errors || x3);
@@ -7433,7 +7481,7 @@
7433
7481
  const e2 = document.visibilityState, a2 = Date.now();
7434
7482
  "visible" === e2 && getOrSetSessionId();
7435
7483
  try {
7436
- sendMessage({ type: "visibilityChange", data: { state: e2, url: window.location.href.split("?")[0], timestamp: a2, ...getUrlAndStoredUuids() } }), fp && console.log(`[Sailfish] Tab became ${e2}, sent visibility change event`);
7484
+ sendMessage({ type: "visibilityChange", data: { state: e2, url: window.location.href.split("?")[0], timestamp: a2, ...getUrlAndStoredUuids() } }), mp && console.log(`[Sailfish] Tab became ${e2}, sent visibility change event`);
7437
7485
  } catch (e3) {
7438
7486
  console.warn("[Sailfish] Failed to send visibility change event:", e3);
7439
7487
  }
@@ -7441,12 +7489,12 @@
7441
7489
  }), J && window.addEventListener("beforeunload", () => {
7442
7490
  clearPageVisitDataFromSessionStorage();
7443
7491
  });
7444
- e.DEFAULT_CAPTURE_SETTINGS = wp, e.DEFAULT_CONSOLE_RECORDING_SETTINGS = Sp, e.STORAGE_VERSION = 1, e.addOrUpdateMetadata = function addOrUpdateMetadata(e2) {
7492
+ e.DEFAULT_CAPTURE_SETTINGS = Sp, e.DEFAULT_CONSOLE_RECORDING_SETTINGS = bp, e.STORAGE_VERSION = 1, e.addOrUpdateMetadata = function addOrUpdateMetadata(e2) {
7445
7493
  const a2 = { type: "addOrUpdateMetadata", metadata: e2 };
7446
- hp && JSON.stringify(hp) === JSON.stringify(e2) || (hp = e2, sendMessage(a2));
7447
- }, e.buildBatches = buildBatches, e.createTriageFromRecorder = createTriageFromRecorder, e.disableFunctionSpanTracking = disableFunctionSpanTracking, e.enableFunctionSpanTracking = enableFunctionSpanTracking, e.eventSize = eventSize, e.fetchCaptureSettings = fetchCaptureSettings, e.flushBufferedEvents = flushBufferedEvents, e.getFuncSpanHeader = getFuncSpanHeader, e.getUrlAndStoredUuids = getUrlAndStoredUuids, e.identify = function identify(e2, a2 = {}, u2 = false) {
7494
+ fp && JSON.stringify(fp) === JSON.stringify(e2) || (fp = e2, sendMessage(a2));
7495
+ }, e.buildBatches = buildBatches, e.clearStaleFuncSpanState = clearStaleFuncSpanState, e.createTriageFromRecorder = createTriageFromRecorder, e.disableFunctionSpanTracking = disableFunctionSpanTracking, e.enableFunctionSpanTracking = enableFunctionSpanTracking, e.eventSize = eventSize, e.fetchCaptureSettings = fetchCaptureSettings, e.fetchFunctionSpanTrackingEnabled = fetchFunctionSpanTrackingEnabled, e.flushBufferedEvents = flushBufferedEvents, e.getFuncSpanHeader = getFuncSpanHeader, e.getOrSetSessionId = getOrSetSessionId, e.getUrlAndStoredUuids = getUrlAndStoredUuids, e.identify = function identify(e2, a2 = {}, u2 = false) {
7448
7496
  const m2 = { type: "identify", userId: e2, traits: a2 };
7449
- dp && dp.userId === e2 && JSON.stringify(dp.traits) === JSON.stringify(a2) || (dp = { userId: e2, traits: a2, overwrite: u2 }, sendMessage(m2));
7497
+ hp && hp.userId === e2 && JSON.stringify(hp.traits) === JSON.stringify(a2) || (hp = { userId: e2, traits: a2, overwrite: u2 }, sendMessage(m2));
7450
7498
  }, e.initRecorder = async (e2) => {
7451
7499
  if ("undefined" == typeof window) return;
7452
7500
  const a2 = window.__sailfish_recorder || (window.__sailfish_recorder = {}), u2 = getOrSetSessionId();
@@ -7455,8 +7503,8 @@
7455
7503
  })().finally(() => {
7456
7504
  delete a2.initPromise;
7457
7505
  })), a2.initPromise);
7458
- }, e.initializeConsolePlugin = initializeConsolePlugin, e.initializeDomContentEvents = initializeDomContentEvents, e.initializeRecording = initializeRecording, e.initializeWebSocket = initializeWebSocket, e.isFunctionSpanTrackingEnabled = isFunctionSpanTrackingEnabled, e.matchUrlWithWildcard = matchUrlWithWildcard, e.openReportIssueModal = function openReportIssueModal() {
7459
- ut ? stopRecording() : (injectModalHTML(), st && document.body.appendChild(st));
7506
+ }, e.initializeConsolePlugin = initializeConsolePlugin, e.initializeDomContentEvents = initializeDomContentEvents, e.initializeFunctionSpanTrackingFromApi = initializeFunctionSpanTrackingFromApi, e.initializeRecording = initializeRecording, e.initializeWebSocket = initializeWebSocket, e.isFunctionSpanTrackingEnabled = isFunctionSpanTrackingEnabled, e.matchUrlWithWildcard = matchUrlWithWildcard, e.openReportIssueModal = function openReportIssueModal() {
7507
+ pt ? stopRecording() : (injectModalHTML(), it && document.body.appendChild(it));
7460
7508
  }, e.sendDomainsToNotPropagateHeaderTo = sendDomainsToNotPropagateHeaderTo, e.sendEvent = sendEvent, e.sendGraphQLRequest = sendGraphQLRequest, e.sendMessage = sendMessage, e.startRecording = startRecording, e.startRecordingSession = startRecordingSession, e.trackingEvent = function trackingEvent(a2) {
7461
7509
  sendMessage({ type: "trackingEvent", trackingData: a2, timestamp: e.nowTimestamp() });
7462
7510
  }, e.withAppUrlMetadata = withAppUrlMetadata, Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });