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