@vanelsas/baredom 4.1.0 → 4.3.0
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/CHANGELOG.md +73 -0
- package/README.md +1 -1
- package/dist/baremirror-alpha.js +28 -24
- package/dist/base.js +675 -684
- package/dist/integrity.json +112 -112
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +9 -9
- package/dist/x-bento-grid.js +6 -6
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +16 -16
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +41 -41
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +34 -34
- package/dist/x-chart.js +48 -48
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +28 -28
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +45 -45
- package/dist/x-combobox.js +34 -34
- package/dist/x-command-palette.js +30 -30
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +19 -19
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.js +44 -44
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +33 -33
- package/dist/x-drawer.js +12 -12
- package/dist/x-drop-zone.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +14 -14
- package/dist/x-file-upload.js +27 -27
- package/dist/x-floating-panel.js +22 -22
- package/dist/x-form-field.js +18 -18
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +8 -8
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +17 -17
- package/dist/x-kbd.js +13 -13
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +26 -26
- package/dist/x-kinetic-typography.js +34 -34
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +39 -39
- package/dist/x-liquid-glass.js +36 -36
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +26 -26
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +38 -38
- package/dist/x-multi-combobox.js +41 -41
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +29 -29
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +18 -18
- package/dist/x-organic-progress.js +34 -34
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +51 -51
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +13 -13
- package/dist/x-range-slider.js +30 -30
- package/dist/x-rating.js +23 -23
- package/dist/x-ripple-effect.js +10 -10
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +31 -31
- package/dist/x-scroll-timeline.js +46 -46
- package/dist/x-scroll.js +38 -38
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton-group.js +13 -13
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +17 -17
- package/dist/x-soft-body.js +17 -17
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +13 -13
- package/dist/x-split-pane.js +15 -15
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +12 -12
- package/dist/x-tab.js +9 -9
- package/dist/x-table-cell.js +20 -20
- package/dist/x-table-row.js +9 -9
- package/dist/x-table.js +14 -14
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +20 -20
- package/dist/x-theme.js +26 -26
- package/dist/x-timeline-item.js +21 -21
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +13 -13
- package/dist/x-trace-history.js +117 -117
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +62 -62
- package/package.json +1 -1
package/dist/x-trace-history.js
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
function(a){return $APP.
|
|
4
|
-
null?null:$APP.
|
|
5
|
-
|
|
6
|
-
default:return b}},
|
|
7
|
-
n=null;for(v=r=0;;)if(v<r){var
|
|
8
|
-
$APP.C(E,
|
|
9
|
-
records:a}},
|
|
10
|
-
if($APP.sa(e)&&typeof e.id==="number"&&typeof e.t==="number"&&typeof e.type==="string")d+=1;else{b=d;break a}}b=void 0}return b==null?new $APP.K(null,1,[$APP.
|
|
11
|
-
$APP.
|
|
12
|
-
c.i(a):c.call(null,a)).indexOf(b)<0);d=e}return d},
|
|
13
|
-
$APP.N.i(function(){var b=
|
|
14
|
-
|
|
15
|
-
")"}},
|
|
16
|
-
[
|
|
17
|
-
$APP.
|
|
18
|
-
3},a)},
|
|
19
|
-
1,null);var d=$APP.
|
|
20
|
-
"record":"records")+" · all hidden by filter":(a=""+$APP.N.i(a)+$APP.N.i($APP.M.j(a,b)?" of "+$APP.N.i(b):null)+" "+$APP.N.i($APP.z.j(1,a)?"record":"records")+" · "+$APP.N.i(d)+" "+$APP.N.i($APP.z.j(1,d)?"lane":"lanes"),b=$APP.N,d=b.i,c=
|
|
21
|
-
$APP.t(a)))?$APP.
|
|
22
|
-
null,c=0,d=0;;)if(d<c){var e=b.C(null,d);$APP.B(e,0,null);e=$APP.B(e,1,null);try{e.G?e.G():e.call(null)}catch(f){}d+=1}else if(a=$APP.q(a)){if($APP.
|
|
23
|
-
!$APP.m(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=
|
|
24
|
-
2,5,$APP.J,[
|
|
25
|
-
ShadowRoot?b.host:a.parentNode},
|
|
26
|
-
Element){if(!$APP.m($APP.l(d,"__xTraceHistoryInternal"))){if($APP.z.j(a,$APP.l(d,"__xTraceHistoryId")))return d;for(var e=d.children,f=e.length,h=0;;)if(h<f)b.push(e[h]),h+=1;else break;d=d.shadowRoot;if($APP.m(d))for(d=d.children,e=d.length,f=0;;)if(f<e)b.push(d[f]),f+=1;else break}c+=1}}}else return null},
|
|
27
|
-
$APP.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
a,c,d)}()))return null;var e=
|
|
31
|
-
null):null;if($APP.m(e?
|
|
32
|
-
|
|
33
|
-
c).tag},Object.keys(b))},
|
|
34
|
-
function(a,b,c,d){return b==null?a:$APP.
|
|
35
|
-
|
|
36
|
-
e)},c));return{id:d,label:f,startT:h,endT:$APP.m(k)?k:null,recordCount:n}},
|
|
37
|
-
1,[$APP.
|
|
38
|
-
a)},
|
|
39
|
-
d);b=JSON.stringify(b,null,2);a=""+$APP.N.i("baredom-trace-")+$APP.N.i(a.getFullYear())+$APP.N.i(
|
|
40
|
-
|
|
41
|
-
"__xTraceHistoryHighlightCid",null)}return null},
|
|
42
|
-
$APP.N.i(a)+"\x3c/label\x3e"},
|
|
43
|
-
c)?" \x3cspan class\x3d'cid'\x3e#"+$APP.N.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},
|
|
44
|
-
$APP.N.i(e.id)+"' cx\x3d'"+$APP.N.i(f)+"' cy\x3d'"+$APP.N.i(h)+"' r\x3d'"+$APP.N.i(n)+"' fill\x3d'"+$APP.N.i(
|
|
45
|
-
c,d){var e=
|
|
46
|
-
"' data-x-th-bin-record-id\x3d'"+$APP.N.i(n.id)+"' data-x-th-bin-count\x3d'"+$APP.N.i(k)+"' data-x-th-bin-cat\x3d'"+$APP.N.i(
|
|
47
|
-
8+A/2:8+$APP.
|
|
48
|
-
2,5,$APP.J,[E.id,A],null)},b)),y=$APP.
|
|
49
|
-
k){if($APP.
|
|
50
|
-
$APP.N.i(b)+"' /\x3e"},
|
|
51
|
-
n+22,A=n+22,E=r+18,I=r+11,O=
|
|
52
|
-
"' fill\x3d'"+$APP.N.i(
|
|
53
|
-
"\x3c/div\x3e";else{a:{var e=d;for(var f=0;;){var h=e.causeId;if(typeof h!=="number"||f>=5E3)break a;h=
|
|
54
|
-
else{e=
|
|
55
|
-
"\x3c/div\x3e":null)+$APP.N.i(
|
|
56
|
-
2,[
|
|
57
|
-
a.textContent=$APP.m(b)?"Resume":"Pause";a.pressed=b}
|
|
58
|
-
null)+$APP.N.i(
|
|
59
|
-
" · "+$APP.N.i(k.recordCount)],null)},$APP.
|
|
60
|
-
|
|
61
|
-
"\x3c/pre\x3e"+$APP.N.i($APP.m(h)?"\x3cdiv class\x3d'detail-section' data-x-th-detail-cause\x3e\x3cdiv class\x3d'detail-label'\x3eCaused by\x3c/div\x3e"+$APP.N.i(
|
|
62
|
-
$APP.
|
|
63
|
-
$APP.l(a,
|
|
64
|
-
a)
|
|
65
|
-
$APP.l(a,"__xTraceHistoryHighlightCid")))b=
|
|
66
|
-
9998);var d=c.shadowRoot,e=document.createElement("div");e.className="outline";d.appendChild(e);$APP.
|
|
67
|
-
|
|
68
|
-
A=$APP.l(a,"__xTraceHistoryFilter"),E=$APP.l(a,"__xTraceHistoryView"),I=
|
|
69
|
-
""+$APP.N.i(
|
|
70
|
-
$APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.m(a)?(a.textContent=$APP.m(b)?"»":"«",a.setAttribute("aria-expanded",$APP.m(b)?"false":"true")):null},
|
|
71
|
-
case "causality":return
|
|
72
|
-
e=$APP.l(a,"__xTraceHistoryTimelineEl");a=
|
|
73
|
-
c:h:f)?new $APP.K(null,3,[
|
|
74
|
-
"")},
|
|
75
|
-
$APP.N.i(b));}return $APP.m(c)?(
|
|
76
|
-
d);b.removeEventListener("pointerup",y);return b.removeEventListener("pointercancel",y)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},
|
|
77
|
-
null;else d=null;if(d==null)switch(b=b instanceof $APP.F?b.da:null,b){case "next":b=$APP.t(c);break a;case "prev":b=$APP.
|
|
78
|
-
|
|
79
|
-
d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},
|
|
80
|
-
d=
|
|
2
|
+
var aL=function(a,b){const c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},Ula=function(a){return a-1},Vla=function(a,b){return $APP.od(function(c,d){c=a.i?a.i(c):a.call(null,c);d=a.i?a.i(d):a.call(null,d);var e=$APP.md($APP.kd);return e.j?e.j(c,d):e.call(null,c,d)},b)},bL=function(a,b){return Vla(a,b)},cL=function(a){if(a instanceof RegExp)return a;var b=$APP.vh(/^\(\?([idmsux]*)\)/,a),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new RegExp(a.substring(c==null?0:c.length),$APP.m(b)?b:"")},Wla=
|
|
3
|
+
function(a){return $APP.Xd($APP.Aa(function(b,c){return $APP.Zd(b,c,$APP.Oc(b,c,0)+1)},$APP.zb($APP.ne),a))},Xla=function(a){return new $APP.H(null,2,5,$APP.J,[$APP.Le(200,a),$APP.Me(200,a)],null)},dL=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.vh(Yla,b);return $APP.D(b)||$APP.l(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.z.j("raw",$APP.l(a,"BAREDOM_TRACE_HISTORY"))},Zla=function(a){a=a==null?null:a.tagName;a=a==null?null:a.toLowerCase();return $APP.m(a)?a:"document"},eL=function(a){try{return a==
|
|
4
|
+
null?null:$APP.Im(a)}catch(b){try{return""+$APP.N.i(a)}catch(c){return"(unprintable)"}}},$la=function(a,b,c){a=$APP.G(a);var d=$APP.C(a,$APP.P),e=$APP.C(a,$APP.ht),f=$APP.C(a,fL),h=$APP.C(a,gL);var k=$APP.Md(d);k=$APP.m(k)?""+$APP.N.i(k)+"/"+$APP.N.i($APP.gh(d)):$APP.gh(d);b={schemaVersion:1,id:b,t:c,type:k,tag:e,componentId:f,causeId:h};switch(d instanceof $APP.F?d.da:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return c=$APP.Hi.i(a),b.eventName=c,c=
|
|
5
|
+
eL($APP.Oi.i(a)),b.detail=c,c=$APP.D($APP.Pi.i(a)),b.cancelable=c,a=$APP.D($APP.Qi.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.vi.i(a),b.field=c,a=eL($APP.Q.i(a)),b.value=a,b;case "dom/attribute-set":return c=$APP.zi.i(a),b.attribute=c,a=$APP.Q.i(a),b.value=a,b;case "dom/attribute-removed":return a=$APP.zi.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.zi.i(a),b.attribute=c,c=$APP.jj.i(a),b.oldValue=c,a=$APP.kj.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":return b;
|
|
6
|
+
default:return b}},hL=function(a){a=""+$APP.N.i(a);return a.length<2?"0"+$APP.N.i(a):a},ama=function(a,b){return $APP.Wf.l($APP.ne,$APP.Se(function(c){var d=$APP.B(c,0,null);$APP.B(c,1,null);return $APP.jd(b,d)}),a)},qL=function(a,b,c,d){var e=$APP.G(d);d=$APP.C(e,iL);var f=$APP.C(e,$APP.hr),h=$APP.C(e,jL);e=$APP.C(e,kL);a:{var k=a.length;for(var n=0,r=$APP.zb($APP.Zg);;){if(n>=k){k=$APP.Bb(r);break a}var v=a[n].componentId;n+=1;r=v!=null?$APP.Ab(r,v):r}k=void 0}k=ama(b,k);b=$APP.D(e);e={};k=$APP.q(k);
|
|
7
|
+
n=null;for(v=r=0;;)if(v<r){var w=n.C(null,v),y=$APP.B(w,0,null),A=$APP.B(w,1,null);w=e;y=""+$APP.N.i(y);A={tag:$APP.ht.i(A),firstSeen:lL.i(A)};w[y]=A;v+=1}else if(k=$APP.q(k))$APP.ed(k)?(r=$APP.Hb(k),k=$APP.Ib(k),n=r,r=$APP.x(r)):(n=$APP.t(k),r=$APP.B(n,0,null),v=$APP.B(n,1,null),n=e,r=""+$APP.N.i(r),v={tag:$APP.ht.i(v),firstSeen:lL.i(v)},n[r]=v,k=$APP.u(k),n=null,r=0),v=0;else break;k=[];c=$APP.q(c);n=null;for(v=r=0;;)if(v<r){w=n.C(null,v);var E=$APP.G(w);w=$APP.C(E,$APP.dr);y=$APP.C(E,$APP.Z);A=
|
|
8
|
+
$APP.C(E,mL);var I=$APP.C(E,nL),O=$APP.C(E,oL);E=$APP.C(E,pL);k.push({id:w,label:y,startT:A,endT:I,startId:O,endId:E});v+=1}else if(c=$APP.q(c))$APP.ed(c)?(r=$APP.Hb(c),c=$APP.Ib(c),n=r,r=$APP.x(r)):(n=$APP.t(c),A=$APP.G(n),n=$APP.C(A,$APP.dr),r=$APP.C(A,$APP.Z),v=$APP.C(A,mL),w=$APP.C(A,nL),y=$APP.C(A,oL),A=$APP.C(A,pL),k.push({id:n,label:r,startT:v,endT:w,startId:y,endId:A}),c=$APP.u(c),n=null,r=0),v=0;else break;return{schemaVersion:1,exportedAt:d,origin:f,userAgent:h,forensic:b,components:e,sessions:k,
|
|
9
|
+
records:a}},rL=function(a){if($APP.sa(a)){if(typeof a.schemaVersion!=="number")return new $APP.K(null,1,[$APP.wj,"Envelope is missing schemaVersion."],null);if($APP.M.j(1,a.schemaVersion))return new $APP.K(null,1,[$APP.wj,"Schema version mismatch: expected "+$APP.N.i(1)+", got "+$APP.N.i(a.schemaVersion)+"."],null);if($APP.p($APP.ra(a.records)))return new $APP.K(null,1,[$APP.wj,"Envelope.records is not an array."],null);var b=a.records,c=b.length;a:{for(var d=0;;){if(d>=c){b=null;break a}var e=b[d];
|
|
10
|
+
if($APP.sa(e)&&typeof e.id==="number"&&typeof e.t==="number"&&typeof e.type==="string")d+=1;else{b=d;break a}}b=void 0}return b==null?new $APP.K(null,1,[$APP.Oq,a],null):new $APP.K(null,1,[$APP.wj,"Record at index "+$APP.N.i(b)+" is missing required fields (id, t, type)."],null)}return new $APP.K(null,1,[$APP.wj,"Envelope is not a JSON object."],null)},bma=function(a,b,c){return $APP.x(a)>=c?$APP.Gd.j($APP.Xc(a),b):$APP.Gd.j(a,b)},cma=function(){var a=kL.i($APP.fb(sL));return $APP.m(a)?$APP.ch(tL):
|
|
11
|
+
$APP.Co.j($APP.ch(tL),$APP.pr)},vL=function(a){var b=$APP.se(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.jd(c,a)?d:null},dma);return $APP.m(b)?b:uL},wL=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.m(b)?b.toLowerCase():""},AL=function(a,b){var c=$APP.G(b),d=$APP.C(c,$APP.ht),e=$APP.C(c,xL);b=$APP.C(c,yL);c=$APP.Oc(c,zL,wL);if(d=d==null||$APP.z.j("",d)||$APP.z.j("all",d)||$APP.z.j(d,a.tag)){if(e=e==null||$APP.jd(e,vL(a.type)))e=b==null||$APP.z.j("",b)||!((c.i?
|
|
12
|
+
c.i(a):c.call(null,a)).indexOf(b)<0);d=e}return d},BL=function(a,b){return $APP.qf(bL(function(c){return c.t},$APP.Te(function(c){return AL(c,b)},$APP.Hc(a))))},CL=function(a,b){return typeof b==="number"?a.find(function(c){return $APP.z.j(b,c.id)}):null},DL=function(a){if(a!=null)try{var b=JSON.stringify(a),c=""+$APP.N.i(b);return c.length<=60?c:""+$APP.N.i($APP.Cd(c,60))+"…"}catch(d){return"(unstringifiable)"}else return null},EL=function(a){switch(a.type){case "event/dispatch":return""+$APP.N.i(a.eventName)+
|
|
13
|
+
$APP.N.i(function(){var b=DL(a.detail);return $APP.m(b)?" "+$APP.N.i(b):null}());case "event/dispatch-cancelable":return""+$APP.N.i(a.eventName)+$APP.N.i($APP.m(a.defaultPrevented)?" (prevented)":null)+$APP.N.i(function(){var b=DL(a.detail);return $APP.m(b)?" "+$APP.N.i(b):null}());case "event/dispatch-document":return""+$APP.N.i(a.eventName)+$APP.N.i(function(){var b=DL(a.detail);return $APP.m(b)?" "+$APP.N.i(b):null}());case "state/instance-field-set":return""+$APP.N.i(a.field)+" \x3d "+$APP.N.i(function(){var b=
|
|
14
|
+
DL(a.value);return $APP.m(b)?b:"null"}());case "dom/attribute-set":return""+$APP.N.i(a.attribute)+"\x3d"+$APP.N.i($APP.Lh($APP.Hc([a.value])));case "dom/attribute-removed":return""+$APP.N.i(a.attribute)+" removed";case "lifecycle/connected":return"connected";case "lifecycle/disconnected":return"disconnected";case "lifecycle/attribute-changed":return""+$APP.N.i(a.attribute)+": "+$APP.N.i($APP.Lh($APP.Hc([a.oldValue])))+" → "+$APP.N.i($APP.Lh($APP.Hc([a.newValue])));default:return"("+$APP.N.i(a.type)+
|
|
15
|
+
")"}},FL=function(a){if(typeof a!=="number")return"";if(a<1E3)return""+$APP.N.i(a.toFixed(0))+"ms";if(a<6E4)return""+$APP.N.i((a/1E3).toFixed(3))+"s";var b=$APP.zd(a,6E4)/1E3;return""+$APP.N.i(Math.floor(a/6E4))+"m"+$APP.N.i(b.toFixed(1))+"s"},HL=function(a){a=vL(a.type);return $APP.C(GL,$APP.m(a)?a:uL)},JL=function(a){a=a.componentId;return $APP.m(a)?a:IL},ema=function(a){return $APP.qf(bL(KL,$APP.Ne.j(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);var d=$APP.t(b);return new $APP.K(null,3,
|
|
16
|
+
[LL,c,$APP.ht,d.tag,KL,$APP.fe($APP.Qj,$APP.Ne.j(function(e){return e.t},b))],null)},$APP.Yh(JL,a))))},OL=function(a){if($APP.q(a)){var b=$APP.Ne.j(function(c){return c.t},a);a=$APP.fe($APP.Qj,b);b=$APP.fe($APP.Rj,b);return new $APP.K(null,3,[ML,a,fma,b,NL,$APP.Rj.j(1,b-a)],null)}return null},gma=function(a,b){return $APP.q(a)?$APP.ge(PL,function(c){return Math.abs(c.t-b)},a):null},hma=function(a){if($APP.q(a)){var b=Wla($APP.Ne.j(function(d){return vL(d.type)},a)),c=$APP.fe($APP.Rj,$APP.Qg(b));a=
|
|
17
|
+
$APP.se(function(d){return $APP.z.j(c,$APP.C(b,d))?d:null},tL);return $APP.m(a)?a:uL}return null},lma=function(a,b){a=$APP.Yh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/4)},a);return $APP.qf(bL(QL,$APP.Ne.j(function(c){var d=$APP.B(c,0,null),e=$APP.B(c,1,null);c=$APP.Ne.j(function(f){return f.t},e);e=$APP.qf(bL(function(f){return f.id},e));return new $APP.K(null,7,[QL,d,RL,e,SL,hma(e),TL,d*4,ima,(d+1)*4,jma,$APP.fe($APP.Qj,c),kma,$APP.fe($APP.Rj,c)],null)},a)))},mma=function(a){return $APP.se(function(b){return $APP.x(RL.i(b))>
|
|
18
|
+
3},a)},nma=function(a){return $APP.q(a)?$APP.fe($APP.Rj,$APP.Ne.j(function(b){return $APP.x(RL.i(b))},a)):0},oma=function(a,b){var c=b.id;a=bL(function(d){return d.t},$APP.Te(function(d){return $APP.z.j(c,d.causeId)},$APP.Hc(a)));return new $APP.K(null,2,[$APP.lv,$APP.x(a),RL,$APP.qf($APP.Le(50,a))],null)},pma=function(a,b){return $APP.qf(bL(function(c){return c.id},$APP.Te(function(c){return $APP.z.j(b,c.causeId)},$APP.Hc(a))))},qma=function(a,b){var c=Xla(UL(a,b));a=$APP.B(c,0,null);c=$APP.B(c,
|
|
19
|
+
1,null);var d=$APP.Yh(function(e){return e.causeId},a);return $APP.Vg.l(function h(f){var k=$APP.oi.j;var n=f.id;n=d.i?d.i(n):d.call(null,n);return new $APP.K(null,2,[VL,f,$APP.Ot,k.call($APP.oi,h,n)],null)}(b),WL,$APP.D($APP.q(c)))},rma=function(a,b){return typeof b==="number"?$APP.se(function(c){return $APP.z.j(b,$APP.dr.i(c))?c:null},$APP.Zj.i(a)):null},sma=function(a,b,c,d){b===0?c="No records yet — interact with components to start tracing.":a===0?c=""+$APP.N.i(b)+" "+$APP.N.i($APP.z.j(1,b)?
|
|
20
|
+
"record":"records")+" · all hidden by filter":(a=""+$APP.N.i(a)+$APP.N.i($APP.M.j(a,b)?" of "+$APP.N.i(b):null)+" "+$APP.N.i($APP.z.j(1,a)?"record":"records")+" · "+$APP.N.i(d)+" "+$APP.N.i($APP.z.j(1,d)?"lane":"lanes"),b=$APP.N,d=b.i,c=NL.i(c),c=$APP.m(c)?" · spanning "+$APP.N.i(FL(c)):null,c=a+d.call(b,c));return c},YL=function(a){return $APP.dd(a)&&$APP.z.j(XL,$APP.t(a))},$L=function(a){return $APP.dd(a)&&$APP.z.j(ZL,$APP.t(a))},aM=function(a){return $APP.dd(a)&&($APP.z.j(XL,$APP.t(a))||$APP.z.j(ZL,
|
|
21
|
+
$APP.t(a)))?$APP.Kc(a):null},bM=function(a,b){a=$APP.l(a,"__xTraceHistoryUiState");return $APP.m(a)?(b=$APP.l(a,$APP.gh(b)),void 0===b?null:b):null},cM=function(a,b,c){var d=$APP.l(a,"__xTraceHistoryUiState");d=$APP.m(d)?d:{};b=$APP.gh(b);d[b]=c;a.__xTraceHistoryUiState=d},eM=function(){var a=RL.i($APP.fb(sL)),b=$APP.fb(dM),c=b[1];if(b[0]===a)return c;b=$APP.Im($APP.qf(a));$APP.Je(dM,[a,b]);return b},tma=function(){var a=$APP.Do.K(fM,$APP.Vg,$APP.Jl,!1);a=$APP.G(a);a=$APP.C(a,gM);a=$APP.q(a);for(var b=
|
|
22
|
+
null,c=0,d=0;;)if(d<c){var e=b.C(null,d);$APP.B(e,0,null);e=$APP.B(e,1,null);try{e.G?e.G():e.call(null)}catch(f){}d+=1}else if(a=$APP.q(a)){if($APP.ed(a))c=$APP.Hb(a),a=$APP.Ib(a),b=c,c=$APP.x(c);else{b=$APP.t(a);$APP.B(b,0,null);e=$APP.B(b,1,null);try{e.G?e.G():e.call(null)}catch(f){}a=$APP.u(a);b=null;c=0}d=0}else return null},hM=function(){if(fM instanceof $APP.Ge){var a=fM.state;a=$APP.Vg.l?$APP.Vg.l(a,$APP.Jl,!0):$APP.Vg.call(null,a,$APP.Jl,!0);if(fM instanceof $APP.Ge){var b=fM.rc;if(b!=null&&
|
|
23
|
+
!$APP.m(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=fM.state;fM.state=a;fM.dc!=null&&$APP.He(fM,b,a);a=new $APP.H(null,2,5,$APP.J,[b,a],null)}else a=new $APP.H(null,2,5,$APP.J,[$APP.fb(fM),$APP.Jb(fM,a)],null)}else a=new $APP.H(null,2,5,$APP.J,[$APP.fb(fM),$APP.yo(fM,$APP.Vg,$APP.Jl,!0)],null);b=$APP.B(a,0,null);$APP.B(a,1,null);return $APP.m($APP.Jl.i(b))?null:requestAnimationFrame(tma)},uma=function(a,b){var c=iM.i(a)+1;return $APP.Eo($APP.Vg.l(a,iM,c),new $APP.H(null,
|
|
24
|
+
2,5,$APP.J,[gM,c],null),b)},vma=function(a,b,c){if($APP.z.j("document",b))return new $APP.K(null,2,[$APP.dr,null,jM,!1],null);b=$APP.l(a,"__xTraceHistoryId");if(b!=null)return new $APP.K(null,2,[$APP.dr,b,jM,!1],null);a.__xTraceHistoryId=c;return new $APP.K(null,2,[$APP.dr,c,jM,!0],null)},lM=function(){var a=$APP.Do.K(sL,$APP.ni,kM,$APP.qc);return kM.i(a)-1},wma=function(a){$APP.Do.j(mM,$APP.qc);try{a.G?a.G():a.call(null)}finally{$APP.Do.j(mM,Ula)}},nM=function(a){var b=a.getRootNode();return b instanceof
|
|
25
|
+
ShadowRoot?b.host:a.parentNode},oM=function(a){for(;;)if(a!=null&&a instanceof Element){var b=a.localName;var c=b!=null;b=c?b.includes("-"):c;if($APP.m(b))return a;a=nM(a)}else return null},pM=function(a){if(a instanceof Node)for(a=nM(a);;){if(a==null||a===document)return!1;if($APP.m($APP.l(a,"__xTraceHistoryInternal")))return!0;a=nM(a)}else return!1},qM=function(a){var b=document.body;if($APP.m($APP.m(b)?a!=null:b)){b=[b];for(var c=0;;){if(b.length===0||c>=1E6)return null;var d=b.pop();if(d instanceof
|
|
26
|
+
Element){if(!$APP.m($APP.l(d,"__xTraceHistoryInternal"))){if($APP.z.j(a,$APP.l(d,"__xTraceHistoryId")))return d;for(var e=d.children,f=e.length,h=0;;)if(h<f)b.push(e[h]),h+=1;else break;d=d.shadowRoot;if($APP.m(d))for(d=d.children,e=d.length,f=0;;)if(f<e)b.push(d[f]),f+=1;else break}c+=1}}}else return null},rM=function(a){var b=$APP.ui.i(a);return $APP.jd(xma,$APP.P.i(a))?b instanceof Node?(a=$APP.l(b,"__xTraceHistoryInternal"),$APP.m(a)?a:pM(b)):!1:pM(b)},vM=function(a,b,c,d){var e=$APP.fb(sL),f=
|
|
27
|
+
$APP.ui.i(a);if(!$APP.m(function(){var v=(v=$APP.p(d))?$APP.jp.i(e):v;return $APP.m(v)?v:rM(a)}())){var h=function(){var v=oM(f);return $APP.m(v)?v:f}(),k=Zla(h);h=vma(h,k,sM.i(e));var n=$APP.G(h);h=$APP.C(n,$APP.dr);n=$APP.C(n,jM);var r=$APP.Wc($APP.fb(tM));r=$APP.Vg.o(a,$APP.ht,k,$APP.Hc([fL,h,gL,r]));b=$la(r,b,c);b=bma(RL.i(e),b,$APP.Il.i(e));c=$APP.m(n)?$APP.Vg.l(uM.i(e),h,new $APP.K(null,2,[$APP.ht,k,lL,c],null)):uM.i(e);k=$APP.m(n)?h+1:sM.i(e);$APP.Do.o(sL,$APP.Vg,RL,b,$APP.Hc([sM,k,uM,c]));
|
|
28
|
+
hM()}},wM=function(a,b){var c=oM(b);b=$APP.l($APP.m(c)?c:b,"__xTraceHistoryId");if($APP.m(b))switch(c=$APP.P.i(a),c instanceof $APP.F?c.da:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return""+$APP.N.i(b)+":evt:"+$APP.N.i($APP.Hi.i(a));case "state/instance-field-set":return""+$APP.N.i(b)+":fld:"+$APP.N.i($APP.vi.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.N.i(b)+":attr:"+$APP.N.i($APP.zi.i(a));default:return null}else return null},
|
|
29
|
+
yM=function(a,b,c,d){var e=$APP.p(kL.i(a));return e?(b=wM(b,c),$APP.m(b)?(a=$APP.C(xM.i(a),b),$APP.m(a)?d-a<16:null):null):e},zM=function(a,b,c){if($APP.m(kL.i($APP.fb(sL))))return null;a=wM(a,b);return $APP.m(a)?$APP.Do.K(sL,$APP.Eo,new $APP.H(null,2,5,$APP.J,[xM,a],null),c):null},BM=function(a){var b=$APP.P.i(a),c=$APP.ui.i(a),d=performance.now();if($APP.m(function(){var f=$APP.fb(mM)>0;if(f)return f;f=$APP.fb(AM);f=$APP.m(f)?$APP.jd(yma,b):f;if($APP.m(f))return f;f=rM(a);return $APP.m(f)?f:yM($APP.fb(sL),
|
|
30
|
+
a,c,d)}()))return null;var e=lM();vM(a,e,d,!1);return zM(a,c,d)},zma=function(){var a=EventTarget.prototype,b=a.dispatchEvent;$APP.m($APP.l(b,"__xTraceHistoryWrapped"))||($APP.Je(CM,b),b=function(c){var d=$APP.fb(CM);var e=$APP.p($APP.fb(AM));e||(e=$APP.jp.i($APP.fb(sL)),e=$APP.m(e)?e:$APP.fb(mM)>0||pM(this));if($APP.m(e))c=d.call(this,c);else{e=c instanceof CustomEvent;var f=performance.now(),h=e?new $APP.K(null,2,[$APP.P,this===document?$APP.Ui:$APP.m(c.cancelable)?$APP.Si:$APP.Gi,$APP.Hi,c.type],
|
|
31
|
+
null):null;if($APP.m(e?yM($APP.fb(sL),h,this,f):e))c=d.call(this,c);else{var k=lM();$APP.Do.l(tM,$APP.Gd,k);try{var n=d.call(this,c)}finally{$APP.Do.j(tM,$APP.Xc)}if(e)try{vM(new $APP.K(null,6,[$APP.P,this===document?$APP.Ui:$APP.m(c.cancelable)?$APP.Si:$APP.Gi,$APP.ui,this,$APP.Hi,c.type,$APP.Oi,c.detail,$APP.Pi,c.cancelable,$APP.Qi,c.defaultPrevented],null),k,f,!0),zM(h,this,f)}catch(r){}c=n}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},Ama=function(){return eM()},Bma=function(){var a=
|
|
32
|
+
uM.i($APP.fb(sL)),b={};a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null),k=$APP.B(f,1,null);f=b;h=""+$APP.N.i(h);k={tag:$APP.ht.i(k),firstSeen:lL.i(k)};f[h]=k;e+=1}else if(a=$APP.q(a))$APP.ed(a)?(d=$APP.Hb(a),a=$APP.Ib(a),c=d,d=$APP.x(d)):(c=$APP.t(a),d=$APP.B(c,0,null),e=$APP.B(c,1,null),c=b,d=""+$APP.N.i(d),e={tag:$APP.ht.i(e),firstSeen:lL.i(e)},c[d]=e,a=$APP.u(a),c=null,d=0),e=0;else break;return b},Cma=function(a){var b=a.components;return b==null?$APP.We:$APP.Ne.j(function(c){return $APP.l(b,
|
|
33
|
+
c).tag},Object.keys(b))},Dma=function(){var a=$APP.fb(sL),b=$APP.Ne.j($APP.ht,$APP.Qg(uM.i(a)));a=$APP.Re(function(c){c=$APP.G(c);c=$APP.C(c,DM);return Cma(c)},$APP.Hc([EM.i(a)]));return $APP.qf($APP.Wf.j($APP.eh(),$APP.Qe.j(b,a)))},FM=function(){$APP.Do.K(sL,$APP.Vg,$APP.jp,!0);return hM()},GM=function(){$APP.Do.K(sL,$APP.Vg,$APP.jp,!1);return hM()},LM=function(){$APP.Do.o(sL,$APP.Vg,RL,HM,$APP.Hc([kM,0,IM,$APP.We,JM,0,KM,null,xM,$APP.ne]));return hM()},MM=function(){return KM.i($APP.fb(sL))},Ema=
|
|
34
|
+
function(a,b,c,d){return b==null?a:$APP.oi.j(function(e){e=$APP.G(e);var f=$APP.C(e,$APP.dr);return $APP.z.j(f,b)?$APP.Vg.o(e,nL,c,$APP.Hc([pL,d])):e},a)},NM=function(){var a=performance.now();$APP.Do.j(sL,function(b){return $APP.Vg.l($APP.ni.ta(b,IM,Ema,KM.i(b),a,kM.i(b)),KM,null)});return hM()},OM=function(){MM()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),NM());var a=performance.now();$APP.Do.j(sL,function(b){var c=
|
|
35
|
+
JM.i(b),d=kM.i(b);return $APP.Vg.o($APP.ni.K(b,IM,$APP.Gd,new $APP.K(null,6,[$APP.dr,c,$APP.Z,"Session "+$APP.N.i(c),mL,a,nL,null,oL,d,pL,null],null)),KM,c,$APP.Hc([JM,c+1]))});hM();return KM.i($APP.fb(sL))},PM=function(a,b){var c=$APP.G(b);b=$APP.C(c,oL);c=$APP.C(c,pL);a=a.id;return a>=b&&(c==null||a<c)},QM=function(){var a=$APP.fb(sL),b=eM(),c=$APP.Hc(b);return $APP.Im($APP.oi.j(function(d){var e=$APP.G(d);d=$APP.C(e,$APP.dr);var f=$APP.C(e,$APP.Z),h=$APP.C(e,mL),k=$APP.C(e,nL),n=$APP.x($APP.Te(function(r){return PM(r,
|
|
36
|
+
e)},c));return{id:d,label:f,startT:h,endT:$APP.m(k)?k:null,recordCount:n}},IM.i(a)))},RM=function(a){var b=$APP.fb(sL),c=$APP.t($APP.Te(function(d){return $APP.z.j($APP.dr.i(d),a)},IM.i(b)));return $APP.m(c)?$APP.Im(bL(function(d){return d.t},$APP.Te(function(d){return PM(d,c)},$APP.Ic(eM())))):[]},Fma=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=SM}a=$APP.z.j(b,SM)?new $APP.K(null,1,[$APP.wj,"File is not valid JSON."],null):rL(b)}else a=$APP.sa(a)?rL(a):new $APP.K(null,
|
|
37
|
+
1,[$APP.wj,"Import expects a JSON string or a parsed envelope object."],null);return a},TM=function(a){$APP.Do.K(sL,$APP.ni,EM,function(b){return $APP.qf($APP.Ve(function(c){c=$APP.G(c);c=$APP.C(c,$APP.dr);return $APP.z.j(c,a)},b))});return hM()},VM=function(){return $APP.Im($APP.oi.j(function(a){var b=$APP.G(a);a=$APP.C(b,$APP.dr);var c=$APP.C(b,$APP.Z),d=$APP.C(b,UM);b=$APP.C(b,DM);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},EM.i($APP.fb(sL))))},WM=function(a){var b=$APP.t($APP.Te(function(c){return $APP.z.j($APP.dr.i(c),
|
|
38
|
+
a)},EM.i($APP.fb(sL))));return $APP.m(b)?DM.i(b).records:[]},XM=function(a,b){return new $APP.K(null,4,[iL,a.getTime(),$APP.hr,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.m(c)?c:""}(),jL,function(){var c=navigator;c=c==null?null:c.userAgent;return $APP.m(c)?c:""}(),kL,b],null)},Gma=function(){var a=$APP.fb(sL),b=eM(),c=XM(new Date,kL.i(a));return qL(b,uM.i(a),IM.i(a),c)},YM=function(){var a=new Date,b=$APP.fb(sL),c=eM(),d=XM(a,kL.i(b));b=qL(c,uM.i(b),IM.i(b),
|
|
39
|
+
d);b=JSON.stringify(b,null,2);a=""+$APP.N.i("baredom-trace-")+$APP.N.i(a.getFullYear())+$APP.N.i(hL(a.getMonth()+1))+$APP.N.i(hL(a.getDate()))+"-"+$APP.N.i(hL(a.getHours()))+$APP.N.i(hL(a.getMinutes()))+$APP.N.i(hL(a.getSeconds()))+$APP.N.i(".trace.json");b=URL.createObjectURL(new Blob([b],{type:"application/json"}));c=document.createElement("a");c.href=b;c.download=a;c.style.display="none";document.body.appendChild(c);try{var e=c.click()}finally{document.body.removeChild(c),URL.revokeObjectURL(b)}return e},
|
|
40
|
+
ZM=function(a,b){b=b.getBoundingClientRect();a.style.top=""+$APP.N.i(b.top)+"px";a.style.left=""+$APP.N.i(b.left)+"px";a.style.width=""+$APP.N.i(b.width)+"px";a.style.height=""+$APP.N.i(b.height)+"px"},$M=function(a){a=$APP.l(a,"__xTraceHistoryHighlightBox");$APP.m(a)&&(a.style.display="none")},aN=function(a){var b=$APP.l(a,"__xTraceHistoryHighlightCid");if($APP.m(b)){b=qM(b);if($APP.m(b))return a=$APP.l(a,"__xTraceHistoryHighlightBox"),$APP.m(a)?(ZM(a,b),a.style.display="block"):null;$M(a);return $APP.Ci(a,
|
|
41
|
+
"__xTraceHistoryHighlightCid",null)}return null},bN=function(a){return(""+$APP.N.i(a)).replace(Hma,"\x26amp;").replace(Ima,"\x26lt;").replace(Jma,"\x26gt;").replace(Kma,"\x26quot;").replace(Lma,"\x26#39;")},Mma=function(a){return"\x3coption value\x3d'"+$APP.N.i(bN(a))+"'\x3e"+$APP.N.i(bN(a))+"\x3c/option\x3e"},cN=function(a,b){return"\x3clabel class\x3d'cat'\x3e\x3cx-checkbox data-x-th-cat\x3d'"+$APP.N.i(a)+"' "+$APP.N.i($APP.m(b)?"checked ":null)+"aria-label\x3d'"+$APP.N.i(a)+"'\x3e\x3c/x-checkbox\x3e"+
|
|
42
|
+
$APP.N.i(a)+"\x3c/label\x3e"},Nma=function(a,b){return $APP.fe($APP.N,$APP.Ne.j(function(c){var d=$APP.G(c);c=$APP.C(d,LL);var e=$APP.C(d,$APP.ht),f=$APP.G(d);d=$APP.C(f,LL);f=$APP.C(f,$APP.ht);d=$APP.z.j(IL,d)?"document":""+$APP.N.i(f)+" #"+$APP.N.i(d);f=$APP.z.j(IL,c)?"document":e;var h=$APP.z.j(b,f);return"\x3cdiv class\x3d'lane-label"+$APP.N.i(h?" active":null)+"' data-x-th-lane-tag\x3d'"+$APP.N.i(bN(f))+"' title\x3d'"+$APP.N.i(bN(d))+"'\x3e"+$APP.N.i(bN($APP.z.j(IL,c)?"document":e))+$APP.N.i($APP.M.j(IL,
|
|
43
|
+
c)?" \x3cspan class\x3d'cid'\x3e#"+$APP.N.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},Oma=function(a,b,c){return $APP.m(a)?"\x3cline class\x3d'scrubber' x1\x3d'"+$APP.N.i(b)+"' y1\x3d'0' x2\x3d'"+$APP.N.i(b)+"' y2\x3d'"+$APP.N.i(c)+"' /\x3e":""},dN=function(a,b,c,d){a=bL(function(e){return $APP.z.j(e.id,d)?1:0},a);return $APP.fe($APP.N,$APP.Ne.j(function(e){var f=c.i?c.i(e):c.call(null,e),h=b+10,k=$APP.z.j(e.id,d),n=k?6.5:4.5;return"\x3ccircle class\x3d'dot"+$APP.N.i(k?" selected":null)+"' data-x-th-id\x3d'"+
|
|
44
|
+
$APP.N.i(e.id)+"' cx\x3d'"+$APP.N.i(f)+"' cy\x3d'"+$APP.N.i(h)+"' r\x3d'"+$APP.N.i(n)+"' fill\x3d'"+$APP.N.i(HL(e))+"' /\x3e"},a))},Pma=function(a,b,c,d){if(c==null)return"";a=$APP.se(function(e){e=$APP.G(e);e=$APP.C(e,RL);return $APP.se(function(f){return $APP.z.j(f.id,c)?f:null},e)},a);return $APP.m(a)?(d=d.i?d.i(a):d.call(null,a),"\x3cline class\x3d'density-selected' x1\x3d'"+$APP.N.i(d)+"' y1\x3d'"+$APP.N.i(b)+"' x2\x3d'"+$APP.N.i(d)+"' y2\x3d'"+$APP.N.i(b+20)+"' /\x3e"):""},Qma=function(a,b,
|
|
45
|
+
c,d){var e=nma(a);return""+$APP.N.i($APP.fe($APP.N,$APP.Ne.j(function(f){var h=$APP.G(f),k=$APP.C(h,RL);f=$APP.C(h,SL);h=$APP.C(h,TL);var n=$APP.t(k),r=$APP.C(GL,$APP.m(f)?f:uL);var v=$APP.x(k);v=v==null||v===0||e==null||e===0?0:v>=e?1:.4+.6*((v-1)/$APP.Rj.j(1,e-1));var w=bN($APP.gh($APP.m(f)?f:uL));k=$APP.x(k);f=""+$APP.N.i(k)+" "+$APP.N.i($APP.z.j(1,k)?"record":"records")+" · "+$APP.N.i($APP.gh($APP.m(f)?f:uL));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+$APP.N.i(bN(f))+
|
|
46
|
+
"' data-x-th-bin-record-id\x3d'"+$APP.N.i(n.id)+"' data-x-th-bin-count\x3d'"+$APP.N.i(k)+"' data-x-th-bin-cat\x3d'"+$APP.N.i(w)+"' x\x3d'"+$APP.N.i(h)+"' y\x3d'"+$APP.N.i(b)+"' width\x3d'"+$APP.N.i(4)+"' height\x3d'"+$APP.N.i(20)+"' fill\x3d'"+$APP.N.i(r)+"' fill-opacity\x3d'"+$APP.N.i(v)+"' /\x3e"},a)))+$APP.N.i(Pma(a,b,c,d))},Rma=function(a,b,c,d,e,f){function h(A){a:{var E=$APP.C(w,A.id);var I=a instanceof $APP.F?a.da:null;switch(I){case "order":A=$APP.Rj.j(0,e-16);E=v===0||v<0?8:$APP.z.j(1,v)?
|
|
47
|
+
8+A/2:8+$APP.Qj.j($APP.Rj.j(E/(v-1),0),1)*A;break a;case "time":E=A.t;I=$APP.G(d);A=$APP.C(I,ML);I=$APP.C(I,NL);var O=$APP.Rj.j(0,e-16);E=A==null||I==null?8:8+$APP.Qj.j($APP.Rj.j((E-A)/I,0),1)*O;break a;default:throw Error("No matching clause: "+$APP.N.i(I));}}return E}var k=$APP.m(f)?f.id:null,n=$APP.Wf.j($APP.ne,$APP.De(function(A,E){E=$APP.G(E);E=$APP.C(E,LL);return new $APP.H(null,2,5,$APP.J,[E,A*20],null)},c)),r=$APP.Rj.j(20,20*$APP.x(c)),v=$APP.x(b),w=$APP.Wf.j($APP.ne,$APP.De(function(A,E){return new $APP.H(null,
|
|
48
|
+
2,5,$APP.J,[E.id,A],null)},b)),y=$APP.Yh(JL,b);return"\x3csvg class\x3d'timeline-svg' width\x3d'"+$APP.N.i(e)+"' height\x3d'"+$APP.N.i(r)+"' viewBox\x3d'0 0 "+$APP.N.i(e)+" "+$APP.N.i(r)+"'\x3e"+$APP.N.i($APP.fe($APP.N,$APP.Ne.j(function(A){A=$APP.G(A);var E=$APP.C(A,LL);A=$APP.Oc(y,E,$APP.We);E=$APP.C(n,E);if($APP.z.j(eN,a)){var I=lma(A,h);A=$APP.m(mma(I))?Qma(I,E,k,h):dN(A,E,h,k)}else A=dN(A,E,h,k);return A},c)))+$APP.N.i(Oma(f,$APP.m(f)?h(f):null,r))+"\x3c/svg\x3e"},Sma=function(a,b,c,d,e,f,h,
|
|
49
|
+
k){if($APP.x(d)===0)a.innerHTML="",b.innerHTML="\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var n=$APP.Rj.j(200,b.clientWidth);a.innerHTML=Nma(e,k);b.innerHTML=Rma(c,d,e,f,n,h)}},fN=function(a){return""+$APP.N.i(a.tag)+" · "+$APP.N.i(a.type)},Tma=function(a){var b=$APP.G(a);a=$APP.C(b,gN);var c=$APP.C(b,hN),d=$APP.C(b,iN);b=$APP.C(b,jN);c+=14;b-=14;return"\x3cline class\x3d'edge' x1\x3d'"+$APP.N.i(a)+"' y1\x3d'"+$APP.N.i(c)+"' x2\x3d'"+$APP.N.i(d)+"' y2\x3d'"+
|
|
50
|
+
$APP.N.i(b)+"' /\x3e"},Uma=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.Zj);var d=$APP.C(c,kN),e=$APP.C(c,$APP.Ln);c=$APP.C(c,$APP.Mn);return"\x3csvg class\x3d'causality-svg' width\x3d'"+$APP.N.i(e)+"' height\x3d'"+$APP.N.i(c)+"' viewBox\x3d'0 0 "+$APP.N.i(e)+" "+$APP.N.i(c)+"'\x3e"+$APP.N.i($APP.fe($APP.N,$APP.Ne.j(Tma,d)))+$APP.N.i($APP.fe($APP.N,$APP.Ne.j(function(f){var h=$APP.G(f),k=$APP.C(h,$APP.dr);f=$APP.C(h,VL);var n=$APP.C(h,lN);h=$APP.C(h,mN);n-=70;var r=h-14,v=$APP.z.j(k,b),w=n+12,y=
|
|
51
|
+
n+22,A=n+22,E=r+18,I=r+11,O=bN("#"+$APP.N.i(k)+" "+$APP.N.i(fN(f))+" · "+$APP.N.i(EL(f)));k="\x3cg data-x-th-link-id\x3d'"+$APP.N.i(k)+"' role\x3d'button' aria-label\x3d'"+$APP.N.i(O)+"'\x3e\x3ctitle\x3e"+$APP.N.i(O)+"\x3c/title\x3e\x3crect class\x3d'node-rect"+$APP.N.i(v?" selected":null)+"' x\x3d'"+$APP.N.i(n)+"' y\x3d'"+$APP.N.i(r)+"' width\x3d'"+$APP.N.i(140)+"' height\x3d'"+$APP.N.i(28)+"' /\x3e\x3ccircle class\x3d'node-dot' cx\x3d'"+$APP.N.i(w)+"' cy\x3d'"+$APP.N.i(h)+"' r\x3d'"+$APP.N.i(4)+
|
|
52
|
+
"' fill\x3d'"+$APP.N.i(HL(f))+"' /\x3e\x3ctext class\x3d'node-text id' x\x3d'"+$APP.N.i(y)+"' y\x3d'"+$APP.N.i(I)+"'\x3e#"+$APP.N.i(k)+"\x3c/text\x3e\x3ctext class\x3d'node-text' x\x3d'"+$APP.N.i(A)+"' y\x3d'"+$APP.N.i(E)+"'\x3e";h=$APP.N;n=h.i;f=fN(f);f=""+$APP.N.i(f);f=f.length<=22?f:""+$APP.N.i(f.substring(0,21))+"…";return k+n.call(h,bN(f))+"\x3c/text\x3e\x3c/g\x3e"},a)))+"\x3c/svg\x3e"},Wma=function(a,b,c,d){if(d==null)cM(a,nN,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+$APP.N.i(bN("Select a record from the timeline to see its causality tree."))+
|
|
53
|
+
"\x3c/div\x3e";else{a:{var e=d;for(var f=0;;){var h=e.causeId;if(typeof h!=="number"||f>=5E3)break a;h=CL(c,h);if($APP.m(h))f+=1,e=h;else break a}e=void 0}e=qma(c,e);c=new $APP.K(null,2,[oN,pN(e),Vma,qN(e)],null);if($APP.m(WL.i(e)))cM(a,nN,null),a=$APP.N,d=a.i,c=$APP.G(c),c=$APP.C(c,oN),c="Causality tree exceeds the "+$APP.N.i(200)+"-node cap (≥ "+$APP.N.i(c)+" nodes). Pick a smaller leaf record to view its subtree.",b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+d.call(a,bN(c))+"\x3c/div\x3e";
|
|
54
|
+
else{e=rN(e,0,16);f=$APP.B(e,0,null);$APP.B(e,1,null);e=sN(f);f=tN(f);h=$APP.Aa($APP.Rj,0,$APP.Ne.j(lN,e));var k=$APP.Aa($APP.Rj,0,$APP.Ne.j(mN,e));e=new $APP.K(null,4,[$APP.Zj,e,kN,f,$APP.Ln,h+70+16,$APP.Mn,k+14+16],null);c=$APP.z.j(1,oN.i(c));cM(a,nN,e);b.innerHTML=""+$APP.N.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.N.i(bN("This record has no cause and no effects in the current buffer. Pick an event/dispatch* record (or one with a 'Caused by' link in the detail pane) to see a chain."))+
|
|
55
|
+
"\x3c/div\x3e":null)+$APP.N.i(Uma(e,d.id))}}},Xma=function(a){if($APP.m(bM(a,uN))){var b=$APP.l(a,"__xTraceHistoryCausalityEl"),c=bM(a,nN),d=vN.i?vN.i(a):vN.call(null,a),e=$APP.m(c)?rma(c,d):null,f=b==null?null:b.clientWidth;d=b==null?null:b.clientHeight;if($APP.m($APP.m(b)?$APP.m(c)?$APP.m(e)?typeof f==="number"&&typeof d==="number"&&f>0&&d>0:e:c:b)){var h=$APP.G(c);c=$APP.C(h,$APP.Ln);h=$APP.C(h,$APP.Mn);var k=lN.i(e),n=mN.i(e);e=k-f/2;k=n-d/2;f=$APP.Rj.j(0,c-f);d=$APP.Rj.j(0,h-d);d=new $APP.K(null,
|
|
56
|
+
2,[wN,$APP.Rj.j(0,$APP.Qj.j(f,e)),xN,$APP.Rj.j(0,$APP.Qj.j(d,k))],null);f=$APP.G(d);d=$APP.C(f,wN);f=$APP.C(f,xN);b.scrollLeft=d;b.scrollTop=f;cM(a,uN,!1)}}},Yma=function(a){var b=Dma();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.zb($APP.Zg);;){if(e>=d){c=$APP.Bb(f);break a}var h=c[e].value;e+=1;f=$APP.z.j(h,"all")?f:$APP.Ab(f,h)}c=void 0}b=$APP.Ve(c,b);$APP.q(b)&&(b=$APP.fe($APP.N,$APP.Ne.j(Mma,b)),a.insertAdjacentHTML("beforeend",b))},Zma=function(a){var b=$APP.jp.i($APP.fb(sL));
|
|
57
|
+
a.textContent=$APP.m(b)?"Resume":"Pause";a.pressed=b},$ma=function(a){var b=MM()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},ana=function(a){var b=$APP.G(a);a=$APP.C(b,yN);var c=$APP.C(b,$APP.bn),d=$APP.C(b,zN),e=$APP.C(b,AN),f=$APP.C(b,$APP.Z);b=$APP.C(b,BN);return"\x3cbutton class\x3d'session-chip"+$APP.N.i($APP.m(c)?" active":null)+$APP.N.i($APP.m(e)?" import":null)+"' type\x3d'button' data-x-th-session\x3d'"+$APP.N.i(bN(a))+"'\x3e"+$APP.N.i($APP.m(d)?"\x3cspan class\x3d'live-dot' aria-hidden\x3d'true'\x3e\x3c/span\x3e":
|
|
58
|
+
null)+$APP.N.i(bN(f))+$APP.N.i($APP.m(e)?"\x3cspan class\x3d'chip-close' role\x3d'button' aria-label\x3d'Remove import' data-x-th-import-close\x3d'"+$APP.N.i(b)+"'\x3e×\x3c/span\x3e":null)+"\x3c/button\x3e"},bna=function(a,b,c,d){var e=new $APP.K(null,5,[yN,"live",$APP.bn,$APP.z.j(c,$APP.Ms),zN,!1,AN,!1,$APP.Z,"Live"],null),f=YL(c)?aM(c):null,h=$L(c)?aM(c):null;a=$APP.oi.j(function(k){var n=k.id;return new $APP.K(null,5,[yN,""+$APP.N.i(n),$APP.bn,$APP.z.j(n,f),zN,$APP.z.j(n,d),AN,!1,$APP.Z,""+$APP.N.i(k.label)+
|
|
59
|
+
" · "+$APP.N.i(k.recordCount)],null)},$APP.Hc(a));b=$APP.oi.j(function(k){var n=k.id;return new $APP.K(null,6,[yN,"import:"+$APP.N.i(n),$APP.bn,$APP.z.j(n,h),zN,!1,AN,!0,BN,n,$APP.Z,""+$APP.N.i(k.label)+" · "+$APP.N.i(k.recordCount)],null)},$APP.Hc(b));return $APP.fe($APP.N,$APP.Ne.j(ana,$APP.Qe.o(new $APP.H(null,1,5,$APP.J,[e],null),a,$APP.Hc([b]))))},cna=function(a,b,c,d,e){a.innerHTML=bna(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},CN=function(a){var b=
|
|
60
|
+
EL(a);b="#"+$APP.N.i(a.id)+" "+$APP.N.i(a.tag)+" · "+$APP.N.i(a.type)+$APP.N.i($APP.m($APP.m(b)?!$APP.hi(b):b)?" · "+$APP.N.i(b):null);return"\x3cx-button class\x3d'detail-link' size\x3d'sm' variant\x3d'ghost' data-x-th-link-id\x3d'"+$APP.N.i(a.id)+"' title\x3d'"+$APP.N.i(bN(b))+"'\x3e"+$APP.N.i(bN(b))+"\x3c/x-button\x3e"},dna=function(a,b,c,d){if($APP.m(d)){var e=JSON.stringify(d,null,2);var f=d.causeId;var h=typeof f==="number"?CL(c,f):null;f=oma(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.N.i(bN(e))+
|
|
61
|
+
"\x3c/pre\x3e"+$APP.N.i($APP.m(h)?"\x3cdiv class\x3d'detail-section' data-x-th-detail-cause\x3e\x3cdiv class\x3d'detail-label'\x3eCaused by\x3c/div\x3e"+$APP.N.i(CN(h))+"\x3c/div\x3e":null);c=$APP.N;d=c.i;h=$APP.G(f);f=$APP.C(h,$APP.lv);h=$APP.C(h,RL);if(f>0){var k=$APP.x(h);f=$APP.z.j(k,f)?"Effects ("+$APP.N.i(f)+")":"Effects ("+$APP.N.i(k)+" of "+$APP.N.i(f)+")";f="\x3cdiv class\x3d'detail-section' data-x-th-detail-effects\x3e\x3cdiv class\x3d'detail-label'\x3e"+$APP.N.i(f)+"\x3c/div\x3e"+$APP.N.i($APP.fe($APP.N,
|
|
62
|
+
$APP.Ne.j(CN,h)))+"\x3c/div\x3e"}else f=null;e+=d.call(c,f);a.innerHTML=e;a.removeAttribute("hidden");b.removeAttribute("hidden")}else a.setAttribute("hidden",""),b.setAttribute("hidden","")},EN=function(a){var b=DN.get(a);if($APP.m(b))return b;b=wL(a);DN.set(a,b);return b},FN=function(a){return $APP.z.j(a,$APP.Ms)?"live":YL(a)?"session:"+$APP.N.i(aM(a)):$L(a)?"import:"+$APP.N.i(aM(a)):"live"},vN=function(a){var b=$APP.l(a,"__xTraceHistoryView");a=$APP.l(a,"__xTraceHistoryViewSelected");return $APP.m(a)?
|
|
63
|
+
$APP.l(a,FN(b)):null},HN=function(a,b){var c=$APP.l(a,"__xTraceHistoryViewSelected");c=$APP.m(c)?c:{};var d=FN($APP.l(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;$APP.T(a,"__xTraceHistoryViewSelected",c);b!=null&&$APP.z.j(GN,$APP.l(a,"__xTraceHistoryDockMode"))&&cM(a,uN,!0)},ena=function(a,b,c){var d=vN(a);b=CL(b,d);if(b==null)return null;if(AL(b,$APP.Vg.l(c,zL,EN)))return b;HN(a,null);return null},IN=function(a){return $APP.z.j(a,$APP.Ms)?eM():YL(a)?(a=RM(aM(a)),a.length===0?eM():
|
|
64
|
+
a):$L(a)?(a=WM(aM(a)),a.length===0?eM():a):eM()},fna=function(a,b,c,d){switch(d instanceof $APP.F?d.da:null){case "causality":b.setAttribute("hidden","");c.removeAttribute("hidden");a.classList.add("causality-mode");break;default:b.removeAttribute("hidden"),c.setAttribute("hidden",""),a.classList.remove("causality-mode")}},JN=function(a){$M(a);return $APP.Ci(a,"__xTraceHistoryHighlightCid",null)},gna=function(a,b){if(b!=null&&b.componentId!=null&&$APP.M.j("document",b.tag))if($APP.z.j(b.componentId,
|
|
65
|
+
$APP.l(a,"__xTraceHistoryHighlightCid")))b=aN(a);else{var c=b.componentId;b=qM(c);if($APP.m(b)){$APP.Ci(a,"__xTraceHistoryHighlightCid",c);c=$APP.l(a,"__xTraceHistoryHighlightBox");if($APP.m(c))a=c;else{c=$APP.Qk(a,":host { all: initial; }\n.outline {\n position: absolute;\n pointer-events: none;\n box-sizing: border-box;\n border: 3px solid #ff2d8a;\n border-radius: 3px;\n background: rgba(255, 45, 138, 0.12);\n box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.85),\n 0 0 0 4px rgba(255, 255, 255, 0.85),\n 0 0 14px 2px rgba(255, 45, 138, 0.55);\n display: none;\n}\n@media (prefers-reduced-motion: no-preference) {\n .outline {\n transition: top .08s linear, left .08s linear,\n width .08s linear, height .08s linear;\n animation: x-th-highlight-pulse .55s ease-out 1 both;\n }\n @keyframes x-th-highlight-pulse {\n 0% { box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.85),\n 0 0 0 4px rgba(255, 255, 255, 0.85),\n 0 0 0 12px rgba(255, 45, 138, 0.55); }\n 100% { box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.85),\n 0 0 0 4px rgba(255, 255, 255, 0.85),\n 0 0 14px 2px rgba(255, 45, 138, 0.55); }\n }\n}\n",
|
|
66
|
+
9998);var d=c.shadowRoot,e=document.createElement("div");e.className="outline";d.appendChild(e);$APP.Ci(a,"__xTraceHistoryHighlightLayer",c);$APP.Ci(a,"__xTraceHistoryHighlightBox",e);a=e}c=b.getBoundingClientRect();d=window.innerWidth;e=window.innerHeight;c.top>=0&&c.left>=0&&c.bottom<=e&&c.right<=d||b.scrollIntoView({block:"nearest",inline:"nearest",behavior:$APP.D($APP.m(KN)?KN.matches:null)?"auto":"smooth"});ZM(a,b);a.style.display="block";b=a;b.style.animation="none";b=b.style.animation=""}else b=
|
|
67
|
+
JN(a)}else b=JN(a);return b},MN=function(a){var b=$APP.l(a,"__xTraceHistoryTimelineEl"),c=$APP.l(a,"__xTraceHistoryCausalityEl"),d=$APP.l(a,"__xTraceHistoryLanesEl"),e=$APP.l(a,"__xTraceHistorySvgPaneEl"),f=$APP.l(a,"__xTraceHistoryCountEl"),h=$APP.l(a,"__xTraceHistoryDetailEl"),k=$APP.l(a,"__xTraceHistorySplitterEl"),n=$APP.l(a,"__xTraceHistoryHintEl"),r=$APP.l(a,"__xTraceHistoryPauseBtn"),v=$APP.l(a,"__xTraceHistoryRecordBtn"),w=$APP.l(a,"__xTraceHistorySessionsEl"),y=$APP.l(a,"__xTraceHistoryTagSelectEl"),
|
|
68
|
+
A=$APP.l(a,"__xTraceHistoryFilter"),E=$APP.l(a,"__xTraceHistoryView"),I=IN(E),O=BL(I,$APP.Vg.l(A,zL,EN)),S=$APP.x(O),R=I.length,da=OL(O),na=ema(O),ka=ena(a,I,A),oa=QM(),Ra=VM(),Sa=MM(),ob=function(){var $b=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.m($b)?$b:$APP.cq}(),Cb=function(){var $b=$APP.l(a,"__xTraceHistoryDockMode");return $APP.m($b)?$b:LN}();Yma(y);fna(a,b,c,Cb);switch(Cb instanceof $APP.F?Cb.da:null){case "causality":Wma(a,c,I,ka);break;default:Sma(d,e,ob,O,na,da,ka,$APP.ht.i(A))}f.textContent=
|
|
69
|
+
""+$APP.N.i(S);n.textContent=sma(S,R,da,$APP.x(na));dna(h,k,I,ka);Zma(r);$ma(v);cna(w,oa,Ra,E,Sa);Xma(a);return gna(a,ka)},NN=function(a){return $APP.m(a)?$APP.z.j("circle",a.tagName.toLowerCase()):a},ON=function(a){return $APP.m(a)?$APP.z.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},PN=function(a){a=a.getAttribute("data-x-th-id");return $APP.m(a)?parseInt(a,10):null},QN=function(a,b){$APP.m(b)?a.classList.add("collapsed"):a.classList.remove("collapsed");a=
|
|
70
|
+
$APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.m(a)?(a.textContent=$APP.m(b)?"»":"«",a.setAttribute("aria-expanded",$APP.m(b)?"false":"true")):null},RN=function(a){var b=!$APP.D($APP.l(a,"__xTraceHistoryCollapsed"));$APP.T(a,"__xTraceHistoryCollapsed",b);return QN(a,b)},hna=function(a,b){$APP.T(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.cq;case "time":return eN;default:return $APP.cq}}());return MN(a)},ina=function(a,b){var c=function(){switch(b){case "timeline":return LN;
|
|
71
|
+
case "causality":return GN;default:return LN}}();$APP.T(a,"__xTraceHistoryDockMode",c);$APP.z.j(GN,c)?cM(a,uN,!0):cM(a,uN,!1);return MN(a)},SN=function(a,b,c,d){a.textContent=d;a.removeAttribute("hidden");var e=b.getBoundingClientRect();d=c.clientX-e.left;c=c.clientY-e.top;e=b.scrollTop;var f=b.scrollLeft;b=$APP.Rj.j(0,d+12+280>b.clientWidth?d-12-280:d+12);a.style.left=""+$APP.N.i(b+f)+"px";return a.style.top=""+$APP.N.i(c+e+12)+"px"},jna=function(a,b){var c=b.target,d=$APP.l(a,"__xTraceHistoryTooltipEl"),
|
|
72
|
+
e=$APP.l(a,"__xTraceHistoryTimelineEl");a=IN($APP.l(a,"__xTraceHistoryView"));if($APP.m(NN(c))){c=PN(c);a=CL(a,c);if($APP.m(a)){c=""+$APP.N.i(a.tag);var f=$APP.N,h=f.i;var k=a.componentId;k=$APP.m(k)?" #"+$APP.N.i(k):null;a=c+h.call(f,k)+"\n"+$APP.N.i(a.type)+"\n"+$APP.N.i(EL(a))+"\n@ "+$APP.N.i(FL(a.t));b=SN(d,e,b,a)}else b=null;return b}if($APP.m(ON(c))){f=c.getAttribute("data-x-th-bin-record-id");h=c.getAttribute("data-x-th-bin-count");c=c.getAttribute("data-x-th-bin-cat");c=$APP.m($APP.m(f)?$APP.m(h)?
|
|
73
|
+
c:h:f)?new $APP.K(null,3,[TN,parseInt(f,10),UN,parseInt(h,10),SL,$APP.Gh.i(c)],null):null;if($APP.m(c)){f=$APP.G(c);h=$APP.C(f,TN);c=$APP.C(f,UN);f=$APP.C(f,SL);a=CL(a,h);if($APP.m(a)){h=""+$APP.N.i(a.tag);k=$APP.N;var n=k.i;var r=a.componentId;r=$APP.m(r)?" #"+$APP.N.i(r):null;a=h+n.call(k,r)+"\n"+$APP.N.i(c)+" "+$APP.N.i($APP.z.j(1,c)?"record":"records")+" · "+$APP.N.i($APP.gh($APP.m(f)?f:uL))+"\n@ "+$APP.N.i(FL(a.t));b=SN(d,e,b,a)}else b=null;return b}return null}return d.setAttribute("hidden",
|
|
74
|
+
"")},VN=function(a,b,c,d,e,f){a:switch(b=b instanceof $APP.F?b.da:null,b){case "order":d=$APP.x(c);e=$APP.Rj.j(0,e-16);d===0||d<0?f=null:$APP.z.j(1,d)||e===0?f=0:(f=$APP.Qj.j($APP.Rj.j((f-8)/e,0),1),f=Math.round(f*(d-1)));c=$APP.m(f)?$APP.B(c,f,null):null;break a;case "time":var h=$APP.G(d);d=$APP.C(h,ML);b=$APP.C(h,NL);var k=$APP.Rj.j(0,e-16);h==null||d==null||b==null?f=0:e===0||e<0||k===0?f=d:(f=$APP.Qj.j($APP.Rj.j((f-8)/k,0),1),f=d+f*b);c=gma(c,f);break a;default:throw Error("No matching clause: "+
|
|
75
|
+
$APP.N.i(b));}return $APP.m(c)?(HN(a,c.id),MN(a)):null},kna=function(a,b,c){function d(w){return VN(a,k,r,v,f,w.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.Rj.j(200,b.clientWidth),h=$APP.l(a,"__xTraceHistoryFilter"),k=function(){var w=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.m(w)?w:$APP.cq}(),n=IN($APP.l(a,"__xTraceHistoryView")),r=BL(n,$APP.Vg.l(h,zL,EN)),v=OL(r);VN(a,k,r,v,f,c.clientX-e.left);c=function y(){b.removeEventListener("pointermove",
|
|
76
|
+
d);b.removeEventListener("pointerup",y);return b.removeEventListener("pointercancel",y)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},WN=function(a,b){var c=$APP.l(a,"__xTraceHistoryFilter"),d=IN($APP.l(a,"__xTraceHistoryView"));c=BL(d,$APP.Vg.l(c,zL,EN));d=vN(a);a:if($APP.q(c)){if(d!=null)b:if(typeof d==="number"){for(var e=$APP.x(c),f=0;;){if(f>=e){d=null;break b}if($APP.z.j(d,$APP.Cc(c,f).id)){d=f;break b}f+=1}d=void 0}else d=
|
|
77
|
+
null;else d=null;if(d==null)switch(b=b instanceof $APP.F?b.da:null,b){case "next":b=$APP.t(c);break a;case "prev":b=$APP.Wc(c);break a;default:throw Error("No matching clause: "+$APP.N.i(b));}else b=$APP.z.j(b,$APP.Xp)?$APP.C(c,d+1):$APP.C(c,d-1)}else b=null;return $APP.m(b)?(HN(a,b.id),MN(a)):null},XN=function(a){var b=$APP.D(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.jd(lna,a==null?null:a.toLowerCase()));return a},mna=function(a,b){if(XN(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),
|
|
78
|
+
WN(a,$APP.Xp);case "ArrowLeft":return b.preventDefault(),WN(a,$APP.mt);default:return null}},nna=function(a,b,c){function d(h){h=$APP.Rj.j(60,f+(e-h.clientY));return a.style.height=""+$APP.N.i(h)+"px"}c.preventDefault();b.setPointerCapture(c.pointerId);b.classList.add("dragging");var e=c.clientY,f=a.offsetHeight;c=function k(){b.removeEventListener("pointermove",d);b.removeEventListener("pointerup",k);b.removeEventListener("pointercancel",k);return b.classList.remove("dragging")};b.addEventListener("pointermove",
|
|
79
|
+
d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},ona=function(a){return a==null||$APP.z.j("",a)?null:aL(a,".trace.json")?$APP.Cd(a,$APP.x(a)-11):aL(a,".json")?$APP.Cd(a,$APP.x(a)-5):a},ZN=function(a,b){var c=$APP.l(a,"__xTraceHistoryHintEl"),d=bM(a,YN);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");cM(a,YN,null);return MN(a)},4E3);return cM(a,YN,b)},aO=function(a,b){var c=new FileReader,
|
|
80
|
+
d=ona(b.name);c.onload=function(){var e=$N.j(c.result,d);e!=null?($APP.l(a,"__xTraceHistoryHintEl").classList.remove("error"),$APP.T(a,"__xTraceHistoryView",new $APP.H(null,2,5,$APP.J,[ZL,e],null)),e=MN(a)):e=ZN(a,"Import failed — see console for details.");return e};c.onerror=function(){return ZN(a,"Could not read file.")};return c.readAsText(b)},bO=function(a){a=a.dataTransfer;return $APP.m(a)?a.types.includes("Files"):null},pna=function(a,b){var c=a.shadowRoot;a=$APP.m(c)?c:a.attachShadow({mode:"open"});
|
|
81
81
|
if(c==null){c="\x3cstyle\x3e"+$APP.N.i(":host {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n width: min(420px, calc(100vw - 1rem));\n z-index: 1999999;\n font: 11px/1.4 ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;\n color: #cdd6f4;\n pointer-events: auto;\n /* The width transition makes the collapse / expand toggle feel\n responsive without being slow. The dock is otherwise position:\n fixed so transitioning width doesn't reflow the host page. */\n transition: width 160ms ease;\n}\n/* Collapsed mode: shrink the host to a thin vertical strip so the\n user can reach components the full dock would otherwise cover.\n The only interactive element left is the collapse-toggle button,\n which expands the dock back to full width when clicked. */\n:host(.collapsed) {\n width: 32px;\n}\n:host(.collapsed) .dock \x3e *:not(.header) { display: none; }\n:host(.collapsed) .header {\n flex-direction: column;\n align-items: center;\n padding: 8px 0;\n gap: 4px;\n}\n:host(.collapsed) .header \x3e *:not([data-x-th-action\x3d'collapse']) {\n display: none;\n}\n/* Causality mode: hide the axis-mode select (Order / Time only\n affects the timeline pane, so it's noise in causality view). */\n:host(.causality-mode) [data-x-th-axis] {\n display: none;\n}\n@media (prefers-reduced-motion: reduce) {\n :host { transition: none; }\n}\n.dock {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: #11111b;\n border-left: 1px solid rgba(59,130,246,0.6);\n box-shadow: -4px 0 20px rgba(0,0,0,0.4);\n /* Anchor for the absolutely-positioned drop-overlay added in PR 11\n so its `inset: 0` reaches the dock edges. */\n position: relative;\n}\n.header {\n display: flex;\n /* Wrap so the count + action buttons survive narrow viewports\n (`min(420px, calc(100vw - 1rem))` reaches 304px at 320px screens,\n which is too tight for four action buttons + title + count on\n one row). */\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n padding: 8px 10px;\n background: rgba(59,130,246,0.15);\n border-bottom: 1px solid rgba(59,130,246,0.3);\n flex: 0 0 auto;\n}\n.title { font-weight: 700; color: #89b4fa; font-size: 12px; }\n.count { color: #6c7086; margin-left: auto; }\n.filters {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px 12px;\n padding: 6px 10px;\n border-bottom: 1px solid rgba(255,255,255,0.06);\n flex: 0 0 auto;\n}\n/* The tag dropdown is an \x3cx-select\x3e; its own shadow brings styling.\n We just constrain its width and font so it matches the dock's\n ui-monospace 11px tone. */\n.filters x-select {\n font-size: 11px;\n max-width: 140px;\n}\n/* x-checkbox has no slot for its label, so the visible text sits\n next to the checkbox inside a \x3clabel\x3e wrapper. The label uses\n inline-flex to keep the checkbox + text on one row, with a small\n gap. Cursor: pointer mirrors native checkbox-label affordance. */\n.filters label.cat {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: #a6adc8;\n font-size: 10px;\n cursor: pointer;\n user-select: none;\n}\n/* PR 16 — search input. x-search-field brings its own theming via its\n shadow DOM; the dock just constrains the host width so it shares\n the filter row's monospace tone with the tag dropdown. */\n.filters x-search-field {\n font-size: 11px;\n flex: 1 1 140px;\n min-width: 100px;\n max-width: 240px;\n}\n/* Session strip: thin row above the filter row listing the live view\n plus any captured session as a clickable chip. Hidden when the only\n chip is Live (no sessions yet) so the dock stays compact. Scrolls\n horizontally if the chip count overflows the dock width. */\n.sessions {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 4px 10px;\n background: rgba(0,0,0,0.15);\n border-bottom: 1px solid rgba(255,255,255,0.04);\n flex: 0 0 auto;\n overflow-x: auto;\n white-space: nowrap;\n}\n.sessions[hidden] { display: none; }\n.session-chip {\n flex: 0 0 auto;\n background: rgba(255,255,255,0.04);\n color: #a6adc8;\n border: 1px solid rgba(255,255,255,0.08);\n border-radius: 3px;\n padding: 1px 6px;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n user-select: none;\n}\n.session-chip:hover { background: rgba(59,130,246,0.12); color: #cdd6f4; }\n.session-chip.active {\n background: rgba(59,130,246,0.22);\n border-color: rgba(59,130,246,0.6);\n color: #89b4fa;\n font-weight: 600;\n}\n/* Imported traces are visually distinct from locally-captured\n sessions: amber border instead of blue, plus a small close button\n inside the chip so the user can drop the import without clearing\n live state. */\n.session-chip.import {\n border-color: rgba(249,226,175,0.45);\n color: #f9e2af;\n}\n.session-chip.import.active {\n background: rgba(249,226,175,0.18);\n border-color: rgba(249,226,175,0.7);\n color: #f9e2af;\n}\n.session-chip.import .chip-close {\n background: transparent;\n border: none;\n color: inherit;\n cursor: pointer;\n font: inherit;\n font-size: 12px;\n line-height: 1;\n padding: 0 0 0 6px;\n margin: 0;\n opacity: 0.6;\n}\n.session-chip.import .chip-close:hover { opacity: 1; }\n.session-chip .live-dot {\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: #f38ba8;\n margin-right: 4px;\n vertical-align: middle;\n animation: x-th-pulse 1s ease-in-out infinite;\n}\n@keyframes x-th-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.35; }\n}\n@media (prefers-reduced-motion: reduce) {\n .session-chip .live-dot { animation: none; }\n}\n.timeline {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n position: relative;\n /* Transparent border reserves 2px so the focus indicator below doesn't\n overlap the leftmost pixels of lane labels or shift content layout. */\n border: 2px solid transparent;\n box-sizing: border-box;\n}\n.timeline-body {\n display: flex;\n align-items: stretch;\n min-height: 100%;\n}\n.lanes {\n flex: 0 0 110px;\n display: flex;\n flex-direction: column;\n border-right: 1px solid rgba(255,255,255,0.06);\n background: #11111b;\n position: sticky;\n left: 0;\n z-index: 1;\n}\n.lane-label {\n height: 20px;\n padding: 0 8px;\n display: flex;\n align-items: center;\n font-size: 11px;\n color: #a6adc8;\n border-bottom: 1px solid rgba(255,255,255,0.04);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n cursor: pointer;\n user-select: none;\n}\n.lane-label:hover { background: rgba(59,130,246,0.08); color: #cdd6f4; }\n.lane-label.active {\n background: rgba(59,130,246,0.18);\n color: #89b4fa;\n font-weight: 600;\n}\n.lane-label .cid { color: #6c7086; margin-left: 4px; }\n.svg-pane {\n flex: 1 1 auto;\n min-width: 0;\n display: block;\n}\nsvg.timeline-svg {\n display: block;\n background:\n repeating-linear-gradient(\n to bottom,\n transparent 0,\n transparent 19px,\n rgba(255,255,255,0.03) 19px,\n rgba(255,255,255,0.03) 20px);\n}\n.dot { cursor: pointer; transition: r 80ms ease; }\n.dot:hover { stroke: #fff; stroke-width: 1; }\n.dot.selected { stroke: #fff; stroke-width: 1.5; }\n/* Heatmap bins (PR 18). Each lane that exceeds the density threshold\n renders as a row of these rects rather than individual dots; the\n per-bin fill-opacity is set inline by the renderer (scales with\n the bin's record count relative to the lane's max). */\n.density-bin {\n cursor: pointer;\n transition: stroke 80ms ease, fill-opacity 80ms ease;\n}\n.density-bin:hover {\n stroke: #fff;\n stroke-width: 0.5;\n}\n/* Thin pink bar drawn at the selected record's exact x inside its\n bin — keeps the scrubber-style highlight in dense lanes without\n obscuring the bin's category colour. */\nline.density-selected {\n stroke: #f5c2e7;\n stroke-width: 2;\n pointer-events: none;\n}\nline.scrubber {\n stroke: #f5c2e7;\n stroke-width: 1.5;\n stroke-dasharray: 4 2;\n pointer-events: none;\n}\n.svg-pane { cursor: crosshair; }\n.timeline:focus {\n outline: none;\n border-color: #89b4fa;\n}\n.tooltip {\n position: absolute;\n background: #1e1e2e;\n border: 1px solid rgba(59,130,246,0.6);\n border-radius: 4px;\n padding: 4px 8px;\n font-size: 10px;\n white-space: pre-wrap;\n pointer-events: none;\n max-width: 280px;\n color: #cdd6f4;\n z-index: 10;\n box-shadow: 0 4px 12px rgba(0,0,0,0.5);\n}\n.timeline-empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n width: 100%;\n}\n/* Causality DAG pane (PR 17). Shares the flexible vertical slot with\n .timeline — render! toggles which one is hidden by dock-mode. The\n scrollable container holds an inner \x3csvg\x3e sized to the tree's\n bounding box so the scrollbars correctly reflect off-screen depth\n and breadth. */\n.causality {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n position: relative;\n background: #11111b;\n border: 2px solid transparent;\n box-sizing: border-box;\n}\n.causality:focus { outline: none; border-color: #89b4fa; }\n.causality[hidden] { display: none; }\n.timeline[hidden] { display: none; }\n.causality-empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n width: 100%;\n}\n/* Leaf-hint banner rendered ABOVE the SVG when the tree has only\n one node. Pinned via sticky positioning so it stays visible even\n when the user scrolls the pane (the lone node sits at the\n padded origin and could be obscured by the banner otherwise). */\n.causality-leaf-hint {\n position: sticky;\n top: 0;\n left: 0;\n z-index: 1;\n background: rgba(249,226,175,0.10);\n border-bottom: 1px solid rgba(249,226,175,0.35);\n color: #f9e2af;\n font-size: 10px;\n padding: 6px 10px;\n line-height: 1.4;\n}\nsvg.causality-svg { display: block; }\nsvg.causality-svg .edge {\n stroke: rgba(255,255,255,0.18);\n stroke-width: 1;\n fill: none;\n}\nsvg.causality-svg .node-rect {\n fill: rgba(255,255,255,0.04);\n stroke: rgba(255,255,255,0.12);\n stroke-width: 1;\n cursor: pointer;\n rx: 4;\n ry: 4;\n transition: fill 80ms ease, stroke 80ms ease;\n}\nsvg.causality-svg .node-rect:hover {\n fill: rgba(59,130,246,0.16);\n stroke: rgba(59,130,246,0.6);\n}\nsvg.causality-svg .node-rect.selected {\n fill: rgba(245,194,231,0.18);\n stroke: #f5c2e7;\n stroke-width: 1.5;\n}\nsvg.causality-svg .node-dot {\n pointer-events: none;\n}\nsvg.causality-svg .node-text {\n fill: #cdd6f4;\n font: 10px ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;\n pointer-events: none;\n dominant-baseline: middle;\n}\nsvg.causality-svg .node-text.id {\n fill: #a6adc8;\n font-size: 9px;\n}\n.splitter {\n flex: 0 0 auto;\n height: 4px;\n background: rgba(255,255,255,0.04);\n cursor: ns-resize;\n touch-action: none;\n transition: background 120ms ease;\n}\n.splitter:hover, .splitter.dragging { background: rgba(59,130,246,0.6); }\n.detail {\n background: #181825;\n border-top: 1px solid rgba(59,130,246,0.2);\n padding: 8px 10px;\n font-size: 10px;\n color: #cdd6f4;\n flex: 0 0 auto;\n height: 35vh;\n min-height: 60px;\n max-height: 80%;\n overflow-y: auto;\n}\n.detail-json {\n margin: 0 0 8px 0;\n font: inherit;\n white-space: pre-wrap;\n word-break: break-all;\n color: #a6e3a1;\n}\n.detail-section { margin-top: 6px; }\n.detail-label {\n color: #89b4fa;\n font-weight: 600;\n margin-bottom: 2px;\n font-size: 10px;\n letter-spacing: 0.02em;\n}\n/* The host is an \x3cx-button\x3e; its own shadow brings background, hover,\n border-radius, etc. We keep block-layout + width on the host so each\n link fills its row, and reach into the button's `label` part to add\n ellipsis truncation (the summary string can exceed the dock width). */\n.detail-link {\n display: block;\n width: 100%;\n margin: 2px 0;\n}\n.detail-link::part(label) {\n display: block;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.detail-link::part(button) {\n width: 100%;\n justify-content: flex-start;\n}\n.detail-empty { color: #6c7086; font-style: italic; font-size: 10px; }\n.empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n}\n.hint { color: #6c7086; font-size: 10px; padding: 4px 10px; flex: 0 0 auto; }\n.hint.error { color: #f38ba8; }\n/* Drop overlay — covers the whole dock while a file is being hovered.\n pointer-events:none keeps drag events flowing through to the dock root\n so the dragleave/drop bookkeeping doesn't fight the overlay layer. */\n.drop-overlay {\n position: absolute;\n inset: 0;\n background: rgba(249,226,175,0.10);\n border: 2px dashed rgba(249,226,175,0.6);\n display: flex;\n align-items: center;\n justify-content: center;\n color: #f9e2af;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.02em;\n z-index: 100;\n pointer-events: none;\n}\n.drop-overlay[hidden] { display: none; }\n/* The hidden file input is kept off-screen — clicked programmatically\n by the Import button — but we mark it `display:none` to keep it out\n of layout entirely. */\n.import-input { display: none; }")+
|
|
82
82
|
"\x3c/style\x3e";var d=$APP.N,e=d.i;b="\x3cdiv class\x3d'dock'\x3e\x3cdiv class\x3d'header'\x3e\x3cx-button data-x-th-action\x3d'collapse' size\x3d'sm' variant\x3d'ghost' aria-label\x3d'Collapse panel' title\x3d'Collapse / expand panel (Ctrl/Cmd + \\\\)'\x3e«\x3c/x-button\x3e\x3cspan class\x3d'title'\x3ex-trace-history\x3c/span\x3e\x3cx-button data-x-th-action\x3d'pause' size\x3d'sm' variant\x3d'ghost'\x3ePause\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'record' size\x3d'sm' variant\x3d'ghost'\x3eRecord\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'clear' size\x3d'sm' variant\x3d'ghost'\x3eClear\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'export' size\x3d'sm' variant\x3d'ghost' title\x3d'Download trace as .trace.json'\x3eExport\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'import' size\x3d'sm' variant\x3d'ghost' title\x3d'Load a .trace.json file (or drag-drop one onto the dock)'\x3eImport\x3c/x-button\x3e\x3cspan class\x3d'count' data-x-th-count\x3e0\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d'sessions' data-x-th-sessions hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'filters'\x3e\x3cx-select data-x-th-tag size\x3d'sm'\x3e\x3coption value\x3d'all' selected\x3eAll tags\x3c/option\x3e\x3c/x-select\x3e\x3cx-search-field data-x-th-search name\x3d'search' placeholder\x3d'Search records…' autocomplete\x3d'off'\x3e\x3c/x-search-field\x3e"+
|
|
83
|
-
$APP.N.i(
|
|
84
|
-
a.innerHTML=c+e.call(d,b)}return a},
|
|
85
|
-
$APP.
|
|
86
|
-
b.querySelector("[data-x-th-sessions]"));$APP.
|
|
87
|
-
|
|
88
|
-
$APP.
|
|
89
|
-
v=$APP.z.j(v,
|
|
90
|
-
r)?null:n,
|
|
91
|
-
n=$APP.l(a,"__xTraceHistoryFilter");var
|
|
92
|
-
return n}],[c,"pointermove",function(n){return
|
|
93
|
-
[b,"dragenter",function(n){if($APP.m(
|
|
94
|
-
0?n.setAttribute("hidden",""):null}else n=null;return n}],[b,"drop",function(n){$APP.m(
|
|
95
|
-
n=null;return n}]]},
|
|
96
|
-
"__xTraceHistoryHighlightRaf",null);return
|
|
97
|
-
[$APP.
|
|
98
|
-
|
|
99
|
-
c);
|
|
100
|
-
b=typeof b==="number"&&b>0?b:5E3;var c=window,d;(d=$APP.z.j("raw",$APP.l(c,"BAREDOM_TRACE_HISTORY")))||(c=c.location.search,c=c==null?null:$APP.
|
|
101
|
-
components:
|
|
102
|
-
arguments[1]);case 3:return
|
|
103
|
-
|
|
104
|
-
var
|
|
105
|
-
"user-agent","user-agent",1220426212),
|
|
106
|
-
"max-depth",127060793),
|
|
107
|
-
"by-token",-1485378511),
|
|
108
|
-
-809333661),
|
|
109
|
-
"categories","categories",178386610),
|
|
110
|
-
-1249933394)
|
|
111
|
-
|
|
112
|
-
"document","baredom.dev.x-trace-history.model/document",-1776453896),
|
|
113
|
-
null,"dom/attribute-set",null],null),null),
|
|
114
|
-
b.id)]))},null))},
|
|
115
|
-
n);r=$APP.B(n,0,null);n=$APP.B(n,1,null);return new $APP.H(null,2,5,$APP.J,[$APP.
|
|
116
|
-
$APP.
|
|
117
|
-
case 2:return
|
|
118
|
-
|
|
119
|
-
b=$APP.l(a,"__xTraceHistoryListeners");if($APP.m(b)){for(var c=b.length,d=0;;)if(d<c){var e=b[d];e[0].removeEventListener(e[1],e[2]);d+=1}else break;$APP.
|
|
120
|
-
null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.m(b)&&$APP
|
|
83
|
+
$APP.N.i(cN("events",$APP.jd(b,$APP.Qr)))+$APP.N.i(cN("state",$APP.jd(b,$APP.pr)))+$APP.N.i(cN("dom",$APP.jd(b,cO)))+$APP.N.i(cN("lifecycle",$APP.jd(b,dO)))+"\x3cx-select data-x-th-mode size\x3d'sm'\x3e\x3coption value\x3d'timeline' selected\x3eTimeline\x3c/option\x3e\x3coption value\x3d'causality'\x3eCausality\x3c/option\x3e\x3c/x-select\x3e\x3cx-select data-x-th-axis size\x3d'sm'\x3e\x3coption value\x3d'order' selected\x3eOrder\x3c/option\x3e\x3coption value\x3d'time'\x3eTime\x3c/option\x3e\x3c/x-select\x3e\x3c/div\x3e\x3cdiv class\x3d'timeline' data-x-th-timeline tabindex\x3d'0'\x3e\x3cdiv class\x3d'lanes' data-x-th-lanes\x3e\x3c/div\x3e\x3cdiv class\x3d'svg-pane' data-x-th-svg-pane\x3e\x3c/div\x3e\x3cdiv class\x3d'tooltip' data-x-th-tooltip hidden\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'causality' data-x-th-causality tabindex\x3d'0' hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'splitter' data-x-th-splitter hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'detail' data-x-th-detail hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'hint' data-x-th-hint\x3e\x3c/div\x3e\x3cdiv class\x3d'drop-overlay' data-x-th-drop-overlay hidden\x3eDrop .trace.json to import\x3c/div\x3e\x3cinput class\x3d'import-input' data-x-th-import-input type\x3d'file' accept\x3d'.json,.trace.json,application/json' /\x3e\x3c/div\x3e";
|
|
84
|
+
a.innerHTML=c+e.call(d,b)}return a},qna=function(a,b){$APP.T(a,"__xTraceHistoryShadow",b);$APP.T(a,"__xTraceHistoryTimelineEl",b.querySelector("[data-x-th-timeline]"));$APP.T(a,"__xTraceHistoryLanesEl",b.querySelector("[data-x-th-lanes]"));$APP.T(a,"__xTraceHistorySvgPaneEl",b.querySelector("[data-x-th-svg-pane]"));$APP.T(a,"__xTraceHistoryTooltipEl",b.querySelector("[data-x-th-tooltip]"));$APP.T(a,"__xTraceHistoryCountEl",b.querySelector("[data-x-th-count]"));$APP.T(a,"__xTraceHistoryDetailEl",b.querySelector("[data-x-th-detail]"));
|
|
85
|
+
$APP.T(a,"__xTraceHistorySplitterEl",b.querySelector("[data-x-th-splitter]"));$APP.T(a,"__xTraceHistoryHintEl",b.querySelector("[data-x-th-hint]"));$APP.T(a,"__xTraceHistoryTagSelectEl",b.querySelector("[data-x-th-tag]"));$APP.T(a,"__xTraceHistoryCausalityEl",b.querySelector("[data-x-th-causality]"));$APP.T(a,"__xTraceHistoryPauseBtn",b.querySelector("[data-x-th-action\x3d'pause']"));$APP.T(a,"__xTraceHistoryRecordBtn",b.querySelector("[data-x-th-action\x3d'record']"));$APP.T(a,"__xTraceHistorySessionsEl",
|
|
86
|
+
b.querySelector("[data-x-th-sessions]"));$APP.T(a,"__xTraceHistoryImportInput",b.querySelector("[data-x-th-import-input]"));$APP.T(a,"__xTraceHistoryDropOverlay",b.querySelector("[data-x-th-drop-overlay]"));$APP.T(a,"__xTraceHistoryCollapseBtn",b.querySelector("[data-x-th-action\x3d'collapse']"))},rna=function(a,b,c,d,e,f,h,k){return[[b,"click",function(n){n=n.target;var r=n.closest("[data-x-th-action]");if($APP.m(r))switch(r.getAttribute("data-x-th-action")){case "pause":$APP.m($APP.jp.i($APP.fb(sL)))?
|
|
87
|
+
GM():FM();break;case "record":MM()!=null?NM():OM();break;case "clear":$APP.T(a,"__xTraceHistoryViewSelected",{});$APP.T(a,"__xTraceHistoryView",$APP.Ms);LM();break;case "export":YM();break;case "import":r=$APP.l(a,"__xTraceHistoryImportInput");$APP.m(r)&&(r.value="",r.click());break;case "collapse":RN(a)}r=n.closest("[data-x-th-import-close]");if($APP.m(r)){r=parseInt(r.getAttribute("data-x-th-import-close"),10);var v=$APP.l(a,"__xTraceHistoryView");$L(v)&&$APP.z.j(r,aM(v))&&$APP.T(a,"__xTraceHistoryView",
|
|
88
|
+
$APP.Ms);TM(r)}$APP.m(n.closest("[data-x-th-import-close]"))||(r=n.closest("[data-x-th-session]"),$APP.m(r)&&(r=r.getAttribute("data-x-th-session"),r=$APP.z.j(r,"live")?$APP.Ms:r.lastIndexOf("import:",0)==0?new $APP.H(null,2,5,$APP.J,[ZL,parseInt(r.substring(7),10)],null):new $APP.H(null,2,5,$APP.J,[XL,parseInt(r,10)],null),$APP.T(a,"__xTraceHistoryView",r),MN(a)));r=n.closest("[data-x-th-lane-tag]");if($APP.m(r)){v=r.getAttribute("data-x-th-lane-tag");r=$APP.l(a,"__xTraceHistoryFilter");var w=$APP.ht.i(r);
|
|
89
|
+
v=$APP.z.j(v,w)?null:v;r=$APP.Vg.l(r,$APP.ht,v);$APP.T(a,"__xTraceHistoryFilter",r);r=$APP.l(a,"__xTraceHistoryTagSelectEl");$APP.m(r)&&(r.value=$APP.m(v)?v:"all");MN(a)}r=n.closest("[data-x-th-link-id]");$APP.m(r)&&(r=r.getAttribute("data-x-th-link-id"),$APP.m(r)&&(r=parseInt(r,10),$APP.m(isNaN(r))||(HN(a,r),MN(a))));r=NN(n);r=$APP.m(r)?r:ON(n);$APP.m(r)?($APP.m(NN(n))?n=PN(n):$APP.m(ON(n))?(n=n.getAttribute("data-x-th-bin-record-id"),n=$APP.m(n)?parseInt(n,10):null):n=null,r=vN(a),n=$APP.z.j(n,
|
|
90
|
+
r)?null:n,HN(a,n),n=MN(a)):n=null;return n}],[b,"select-change",function(n){var r=n.target;n=n.detail.value;r.getAttribute("data-x-th-tag")!=null?(r=$APP.Vg.l($APP.l(a,"__xTraceHistoryFilter"),$APP.ht,$APP.z.j(n,"all")?null:n),$APP.T(a,"__xTraceHistoryFilter",r),r=MN(a)):r=r.getAttribute("data-x-th-mode")!=null?ina(a,n):r.getAttribute("data-x-th-axis")!=null?hna(a,n):null;return r}],[b,"x-checkbox-change",function(n){var r=n.target.getAttribute("data-x-th-cat");if(r!=null){var v=n.detail.checked;
|
|
91
|
+
n=$APP.l(a,"__xTraceHistoryFilter");var w=xL.i(n);w=$APP.m(w)?w:$APP.ch(tL);r=$APP.Gh.i(r);r=$APP.m(v)?$APP.Gd.j(w,r):$APP.Co.j(w,r);n=$APP.Vg.l(n,xL,r);$APP.T(a,"__xTraceHistoryFilter",n);n=MN(a)}else n=null;return n}],[b,"x-search-field-input",function(n){var r=n.target;$APP.m($APP.m(r)?r.hasAttribute("data-x-th-search"):r)?(n=n.detail.value,n=($APP.m(n)?n:"").toLowerCase(),n=$APP.Vg.l($APP.l(a,"__xTraceHistoryFilter"),yL,$APP.z.j("",n)?null:n),$APP.T(a,"__xTraceHistoryFilter",n),n=MN(a)):n=null;
|
|
92
|
+
return n}],[c,"pointermove",function(n){return jna(a,n)}],[c,"pointerleave",function(){return $APP.l(a,"__xTraceHistoryTooltipEl").setAttribute("hidden","")}],[c,"pointerdown",function(){return c.focus()}],[k,"pointerdown",function(){return k.focus()}],[b,"keydown",function(n){return mna(a,n)}],[d,"pointerdown",function(n){return kna(a,$APP.l(a,"__xTraceHistorySvgPaneEl"),n)}],[e,"pointerdown",function(n){return nna(f,e,n)}],[h,"change",function(n){n=n.target.files;return n.length>0?aO(a,n[0]):null}],
|
|
93
|
+
[b,"dragenter",function(n){if($APP.m(bO(n))){n.preventDefault();n=$APP.l(a,"__xTraceHistoryDropOverlay");var r=bM(a,eO);cM(a,eO,($APP.m(r)?r:0)+1);n=n.removeAttribute("hidden")}else n=null;return n}],[b,"dragover",function(n){$APP.m(bO(n))?(n.preventDefault(),n=n.dataTransfer,n=$APP.m(n)?n.dropEffect="copy":null):n=null;return n}],[b,"dragleave",function(n){if($APP.m(bO(n))){n=$APP.l(a,"__xTraceHistoryDropOverlay");var r=$APP.Rj.j,v=bM(a,eO);r=r.call($APP.Rj,0,($APP.m(v)?v:0)-1);cM(a,eO,r);n=r===
|
|
94
|
+
0?n.setAttribute("hidden",""):null}else n=null;return n}],[b,"drop",function(n){$APP.m(bO(n))?(n.preventDefault(),cM(a,eO,0),$APP.l(a,"__xTraceHistoryDropOverlay").setAttribute("hidden",""),n=n.dataTransfer,n=$APP.m(n)?n.files:null,n=$APP.m($APP.m(n)?n.length>0:n)?aO(a,n[0]):null):n=null;return n}],[document,"keydown",function(n){var r;if(r=$APP.z.j("\\",n.key))r=n.metaKey,r=$APP.m(r)?r:n.ctrlKey,r=$APP.m(r)?$APP.p(n.altKey)&&$APP.p(n.shiftKey)&&!XN(n.target):r;$APP.m(r)?(n.preventDefault(),n=RN(a)):
|
|
95
|
+
n=null;return n}]]},sna=function(a,b){b=rna(a,b,$APP.l(a,"__xTraceHistoryTimelineEl"),$APP.l(a,"__xTraceHistorySvgPaneEl"),$APP.l(a,"__xTraceHistorySplitterEl"),$APP.l(a,"__xTraceHistoryDetailEl"),$APP.l(a,"__xTraceHistoryImportInput"),$APP.l(a,"__xTraceHistoryCausalityEl"));$APP.T(a,"__xTraceHistoryListeners",b);a:{a=b.length;for(var c=0;;)if(c<a){var d=b[c];d[0].addEventListener(d[1],d[2]);c+=1}else break a}},tna=function(a){if($APP.m($APP.l(a,"__xTraceHistoryHighlightRaf")))return null;var b=requestAnimationFrame(function(){$APP.Ci(a,
|
|
96
|
+
"__xTraceHistoryHighlightRaf",null);return aN(a)});return $APP.Ci(a,"__xTraceHistoryHighlightRaf",b)},una=function(a){function b(){return tna(a)}var c=[[window,"scroll",b,{capture:!0,passive:!0}],[window,"resize",b,{capture:!1,passive:!0}]];$APP.Ci(a,"__xTraceHistoryHighlightListeners",c);for(var d=c.length,e=0;;)if(e<d){var f=c[e];f[0].addEventListener(f[1],f[2],f[3]);e+=1}else break},vna=function(a,b){$APP.m($APP.l(a,"__xTraceHistoryFilter"))||$APP.T(a,"__xTraceHistoryFilter",new $APP.K(null,3,
|
|
97
|
+
[$APP.ht,null,xL,b,yL,null],null));$APP.m($APP.l(a,"__xTraceHistoryView"))||$APP.T(a,"__xTraceHistoryView",$APP.Ms);$APP.m($APP.l(a,"__xTraceHistoryViewSelected"))||$APP.T(a,"__xTraceHistoryViewSelected",{});$APP.m($APP.l(a,"__xTraceHistoryAxisMode"))||$APP.T(a,"__xTraceHistoryAxisMode",$APP.cq);$APP.m($APP.l(a,"__xTraceHistoryDockMode"))||$APP.T(a,"__xTraceHistoryDockMode",LN);$APP.l(a,"__xTraceHistoryCollapsed")==null&&$APP.T(a,"__xTraceHistoryCollapsed",!1);QN(a,$APP.D($APP.l(a,"__xTraceHistoryCollapsed")))},
|
|
98
|
+
wna=function(a){if($APP.m($APP.l(a,"__xTraceHistoryMounted")))return null;a.__xTraceHistoryInternal=!0;var b=eM().length;wma(function(){var c=cma(),d=pna(a,c);qna(a,d);vna(a,c);sna(a,d);una(a);c=iM.i($APP.Do.l(fM,uma,function(){var e=$APP.l(a,"__xTraceHistoryView"),f=VM(),h=f.length;var k=bM(a,fO);k=$APP.m(k)?k:0;h>k?(cM(a,fO,h),$APP.z.j(e,$APP.Ms)&&eM().length===0&&$APP.T(a,"__xTraceHistoryView",new $APP.H(null,2,5,$APP.J,[ZL,f[h-1].id],null))):h<k&&cM(a,fO,h);return MN(a)}));$APP.T(a,"__xTraceHistorySubToken",
|
|
99
|
+
c);MN(a);return $APP.T(a,"__xTraceHistoryMounted",!0)});return $APP.M.j(b,eM().length)?console.warn("[x-trace-history] dock mount produced records — internal-host suppression is leaking. ","Wrap dynamic child-component constructors in recorder/with-suppressed-recording!."):null},gO=function(){return $APP.m(document.querySelector("x-trace-history"))?null:document.body.appendChild(document.createElement("x-trace-history"))},hO=function(){if(dL()){var a=$APP.Do.o;var b=$APP.l(window,"BAREDOM_TRACE_HISTORY_CAPACITY");
|
|
100
|
+
b=typeof b==="number"&&b>0?b:5E3;var c=window,d;(d=$APP.z.j("raw",$APP.l(c,"BAREDOM_TRACE_HISTORY")))||(c=c.location.search,c=c==null?null:$APP.vh(xna,c),d=$APP.D(c));a.call($APP.Do,sL,$APP.Vg,$APP.Il,b,$APP.Hc([kL,d]));$APP.Je($APP.si,BM);$APP.Je($APP.ij,BM);$APP.Je(mM,0);$APP.Je(tM,$APP.We);zma();$APP.Je(AM,!0);a=$APP.l(window,"BareDOM");a=$APP.m(a)?a:{};a.traceHistory={records:Ama,sessions:QM,"export":Gma,download:YM,stopSession:NM,"import":$N,pause:FM,importRecords:WM,sessionRecords:RM,startSession:OM,
|
|
101
|
+
components:Bma,clear:LM,imports:VM,removeImport:TM,resume:GM};window.BareDOM=a;console.log("%c[BareDOM Trace History]%c Active — see window.BareDOM.traceHistory for the API","color:#3b82f6;font-weight:bold","color:inherit")}$APP.vn();$APP.km();$APP.Pk();$APP.Fn();$APP.uj("x-trace-history",yna);return dL()?$APP.m(document.body)?gO():document.addEventListener("DOMContentLoaded",gO,{once:!0}):null},iO=function(){return hO()},PL=function PL(a){switch(arguments.length){case 2:return PL.j(arguments[0],
|
|
102
|
+
arguments[1]);case 3:return PL.l(arguments[0],arguments[1],arguments[2]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return PL.o(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.fc(c.slice(3),0,null):null)}};PL.j=function(a,b){return b};PL.l=function(a,b,c){return(a.i?a.i(b):a.call(null,b))<(a.i?a.i(c):a.call(null,c))?b:c};PL.o=function(a,b,c,d){return $APP.Aa(function(e,f){return PL.l(a,e,f)},PL.l(a,b,c),d)};
|
|
103
|
+
PL.I=function(a){var b=$APP.t(a),c=$APP.u(a);a=$APP.t(c);var d=$APP.u(c);c=$APP.t(d);d=$APP.u(d);return this.o(b,a,c,d)};PL.M=3;
|
|
104
|
+
var mL=new $APP.F(null,"start-t","start-t",1829305353),oN=new $APP.F(null,"node-count","node-count",383091297),oL=new $APP.F(null,"start-id","start-id",-456790067),pL=new $APP.F(null,"end-id","end-id",2084513705),LN=new $APP.F(null,"timeline","timeline",192903161),yN=new $APP.F(null,"chip-key","chip-key",644014552),sM=new $APP.F(null,"next-component-id","next-component-id",1588977206),kN=new $APP.F(null,"edges","edges",-694791395),iM=new $APP.F(null,"next-token","next-token",1432414974),jL=new $APP.F(null,
|
|
105
|
+
"user-agent","user-agent",1220426212),GN=new $APP.F(null,"causality","causality",-712927373),kL=new $APP.F(null,"forensic?","forensic?",188264321),yL=new $APP.F(null,"search","search",1564939822),XL=new $APP.F(null,"session","session",1008279103),nN=new $APP.F(null,"causality-layout","causality-layout",-1264013405),zN=new $APP.F(null,"recording?","recording?",-1477514924),RL=new $APP.F(null,"records","records",1326822832),jM=new $APP.F(null,"new?","new?",777958557),Vma=new $APP.F(null,"max-depth",
|
|
106
|
+
"max-depth",127060793),WL=new $APP.F(null,"capped?","capped?",-65680820),mN=new $APP.F(null,"cy","cy",755331060),lN=new $APP.F(null,"cx","cx",1272694324),TL=new $APP.F(null,"x-start","x-start",1183238797),wN=new $APP.F(null,"scroll-left","scroll-left",-211761103),LL=new $APP.F(null,"lane-id","lane-id",2005926623),zL=new $APP.F(null,"haystack-fn","haystack-fn",1813797862),IM=new $APP.F(null,"sessions","sessions",-699316392),nL=new $APP.F(null,"end-t","end-t",-218701242),gM=new $APP.F(null,"by-token",
|
|
107
|
+
"by-token",-1485378511),jO=new $APP.F(null,"next-import-id","next-import-id",287496955),VL=new $APP.F(null,"record","record",-779106859),uM=new $APP.F(null,"components","components",-1073188942),DM=new $APP.F(null,"envelope","envelope",-236796318),gL=new $APP.F(null,"cause-id","cause-id",-1282947263),ima=new $APP.F(null,"x-end","x-end",-1725631203),fma=new $APP.F(null,"tmax","tmax",2006118392),UN=new $APP.F(null,"bin-count","bin-count",1792167977),fO=new $APP.F(null,"auto-switch-import","auto-switch-import",
|
|
108
|
+
-809333661),uN=new $APP.F(null,"causality-needs-fit","causality-needs-fit",1728707358),jN=new $APP.F(null,"to-cy","to-cy",1542880464),iN=new $APP.F(null,"to-cx","to-cx",698995232),xN=new $APP.F(null,"scroll-top","scroll-top",-46723100),xM=new $APP.F(null,"rate-limit","rate-limit",1748082022),ML=new $APP.F(null,"tmin","tmin",-39508962),zna=new $APP.F(null,"to-id","to-id",1021626465),jma=new $APP.F(null,"t-min","t-min",-488887638),kM=new $APP.F(null,"next-id","next-id",-224240762),xL=new $APP.F(null,
|
|
109
|
+
"categories","categories",178386610),kma=new $APP.F(null,"t-max","t-max",-949530573),eN=new $APP.F(null,"time","time",1385887882),SL=new $APP.F(null,"dominant-cat","dominant-cat",-914257775),dO=new $APP.F(null,"lifecycle","lifecycle",341496205),uL=new $APP.F(null,"other","other",995793544),SM=new $APP.F("baredom.dev.x-trace-history.model","parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),KL=new $APP.F(null,"min-t","min-t",-1349871659),EM=new $APP.F(null,"imports","imports",
|
|
110
|
+
-1249933394),QL=new $APP.F(null,"bin-i","bin-i",791326307),lL=new $APP.F(null,"first-seen","first-seen",390191468),AN=new $APP.F(null,"import?","import?",-40157302),cO=new $APP.F(null,"dom","dom",-1236537922),JM=new $APP.F(null,"next-session-id","next-session-id",1944278844),UM=new $APP.F(null,"imported-at","imported-at",-1157103926),kO=new $APP.F(null,"depth","depth",1768663640),TN=new $APP.F(null,"record-id","record-id",-1468971877),KM=new $APP.F(null,"active-session-id","active-session-id",943086451),
|
|
111
|
+
gN=new $APP.F(null,"from-cx","from-cx",-293616201),hN=new $APP.F(null,"from-cy","from-cy",1126835724),iL=new $APP.F(null,"exported-at","exported-at",1661975683),fL=new $APP.F(null,"component-id","component-id",1551113783),YN=new $APP.F(null,"import-error","import-error",1672727808),eO=new $APP.F(null,"drag-depth","drag-depth",-226189617),Ana=new $APP.F(null,"from-id","from-id",-106962526),BN=new $APP.F(null,"import-id","import-id",940580069),NL=new $APP.F(null,"span","span",1394872991),IL=new $APP.F("baredom.dev.x-trace-history.model",
|
|
112
|
+
"document","baredom.dev.x-trace-history.model/document",-1776453896),ZL=new $APP.F(null,"import","import",-1399500709);var HM=$APP.Wf.j($APP.Ko,$APP.We),Yla=cL("(?:^\\?|\x26)"+$APP.N.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),xna=cL("(?:^\\?|\x26)"+$APP.N.i("baredom-trace-history")+"\x3d"+$APP.N.i("raw")+"(?:\x26|$)"),dma=new $APP.K(null,4,[$APP.Qr,new $APP.Yg(null,new $APP.K(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.pr,new $APP.Yg(null,new $APP.K(null,1,["state/instance-field-set",null],null),null),cO,new $APP.Yg(null,new $APP.K(null,2,["dom/attribute-removed",
|
|
113
|
+
null,"dom/attribute-set",null],null),null),dO,new $APP.Yg(null,new $APP.K(null,3,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/disconnected",null],null),null)],null),tL=new $APP.H(null,4,5,$APP.J,[$APP.Qr,$APP.pr,cO,dO],null),GL=new $APP.K(null,5,[$APP.Qr,"#94e2d5",$APP.pr,"#f9e2af",cO,"#fab387",dO,"#cba6f7",uL,"#6c7086"],null),UL=function UL(a,b){return $APP.Kd(b,new $APP.Nd(null,function(){return $APP.Re(function(d){return UL.j?UL.j(a,d):UL.call(null,a,d)},$APP.Hc([pma(a,
|
|
114
|
+
b.id)]))},null))},pN=function pN(a){return $APP.Aa($APP.Lj,0,$APP.Ne.j(pN,$APP.Ot.i(a)))+1},qN=function qN(a){return $APP.Yc($APP.Ot.i(a))?0:$APP.fe($APP.Rj,$APP.Ne.j(qN,$APP.Ot.i(a)))+1},rN=function rN(a,b,c){var e=VL.i(a),f=$APP.Ot.i(a);a=30+b*56;if($APP.Yc(f))return new $APP.H(null,2,5,$APP.J,[new $APP.K(null,6,[$APP.dr,e.id,VL,e,lN,c+70,mN,a,kO,b,$APP.Ot,$APP.We],null),c+158],null);f=$APP.Aa(function(n,r){var v=$APP.B(n,0,null);n=$APP.B(n,1,null);var w=b+1;n=rN.l?rN.l(r,w,n):rN.call(null,r,w,
|
|
115
|
+
n);r=$APP.B(n,0,null);n=$APP.B(n,1,null);return new $APP.H(null,2,5,$APP.J,[$APP.Gd.j(v,r),n],null)},new $APP.H(null,2,5,$APP.J,[$APP.We,c],null),f);c=$APP.B(f,0,null);f=$APP.B(f,1,null);var h=lN.i($APP.t(c)),k=lN.i($APP.Lc(c));return new $APP.H(null,2,5,$APP.J,[new $APP.K(null,6,[$APP.dr,e.id,VL,e,lN,(h+k)/2,mN,a,kO,b,$APP.Ot,c],null),f],null)},sN=function sN(a){return $APP.Wf.j(new $APP.H(null,1,5,$APP.J,[$APP.bk.j(a,$APP.Ot)],null),$APP.Re(sN,$APP.Hc([$APP.Ot.i(a)])))},tN=function tN(a){var c=
|
|
116
|
+
$APP.dr.i(a),d=lN.i(a),e=mN.i(a);return $APP.qf($APP.Re(function(f){return $APP.Kd(new $APP.K(null,6,[Ana,c,gN,d,hN,e,zna,$APP.dr.i(f),iN,lN.i(f),jN,mN.i(f)],null),tN.i?tN.i(f):tN.call(null,f))},$APP.Hc([$APP.Ot.i(a)])))};var sL=$APP.Ie($APP.zg([kL,$APP.Il,xM,kM,$APP.jp,EM,RL,uM,KM,sM,IM,jO,JM],[!1,5E3,$APP.ne,0,!1,$APP.We,HM,$APP.ne,null,0,$APP.We,0,0])),fM=$APP.Ie(new $APP.K(null,3,[iM,0,$APP.Jl,!1,gM,$APP.ne],null)),tM=$APP.Ie($APP.We),CM=$APP.Ie(null),AM=$APP.Ie(!1),mM=$APP.Ie(0),dM=$APP.Ie([null,null]),xma=new $APP.Yg(null,new $APP.K(null,3,[$APP.Ai,null,$APP.ti,null,$APP.yi,null],null),null),yma=new $APP.Yg(null,new $APP.K(null,3,[$APP.Si,null,$APP.Ui,null,$APP.Gi,null],null),null),$N=function $N(a){switch(arguments.length){case 1:return $N.i(arguments[0]);
|
|
117
|
+
case 2:return $N.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};$N.i=function(a){return $N.j(a,null)};
|
|
118
|
+
$N.j=function(a,b){a=Fma(a);var c=$APP.G(a);a=$APP.C(c,$APP.Oq);c=$APP.C(c,$APP.wj);if($APP.m(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=jO.i($APP.fb(sL));b=b==null||$APP.z.j("",b)?"Import "+$APP.N.i(d):b;var e=new $APP.K(null,4,[$APP.dr,d,$APP.Z,b,UM,c,DM,a],null);$APP.Do.j(sL,function(f){return $APP.ni.l($APP.ni.K(f,EM,$APP.Gd,e),jO,$APP.qc)});hM();return d};$N.M=2;var KN,lO=window.matchMedia;KN=$APP.m(lO)?lO.call(window,"(prefers-reduced-motion: reduce)"):null;var Hma=RegExp("\x26","g"),Ima=RegExp("\x3c","g"),Jma=RegExp("\x3e","g"),Kma=RegExp('"',"g"),Lma=RegExp("'","g"),DN=new WeakMap,lna=new $APP.Yg(null,new $APP.K(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),yna=new $APP.K(null,5,[$APP.tj,!0,$APP.mj,[],$APP.nj,function(a){return wna(a)},$APP.oj,function(a){var b=$APP.l(a,"__xTraceHistorySubToken");$APP.m(b)&&$APP.Do.o(fM,$APP.ni,gM,$APP.bk,$APP.Hc([b]));b=bM(a,YN);$APP.m(b)&&typeof b==="number"&&clearTimeout(b);
|
|
119
|
+
b=$APP.l(a,"__xTraceHistoryListeners");if($APP.m(b)){for(var c=b.length,d=0;;)if(d<c){var e=b[d];e[0].removeEventListener(e[1],e[2]);d+=1}else break;$APP.T(a,"__xTraceHistoryListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightListeners");if($APP.m(b)){c=b.length;for(d=0;;)if(d<c)e=b[d],e[0].removeEventListener(e[1],e[2],e[3]),d+=1;else break;$APP.Ci(a,"__xTraceHistoryHighlightListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightRaf");$APP.m(b)&&(cancelAnimationFrame(b),$APP.Ci(a,"__xTraceHistoryHighlightRaf",
|
|
120
|
+
null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.m(b)&&$APP.Sk(b);$APP.Ci(a,"__xTraceHistoryHighlightLayer",null);$APP.Ci(a,"__xTraceHistoryHighlightBox",null);$APP.Ci(a,"__xTraceHistoryHighlightCid",null);$APP.T(a,"__xTraceHistorySubToken",null);cM(a,YN,null);return $APP.T(a,"__xTraceHistoryMounted",null)},$APP.pj,function(){return null}],null);$APP.ha("baredom.exports.x_trace_history.init",iO);hO();export const init=iO;
|