@vanelsas/baredom 4.1.0 → 4.2.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 +31 -0
- package/README.md +1 -1
- package/dist/baremirror-alpha.js +25 -24
- package/dist/base.js +331 -331
- 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 +31 -31
- 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 +27 -27
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +44 -44
- 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 +43 -43
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +32 -32
- 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 +26 -26
- package/dist/x-floating-panel.js +21 -21
- package/dist/x-form-field.js +17 -17
- 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 +24 -24
- package/dist/x-kinetic-font.js +26 -26
- package/dist/x-kinetic-typography.js +33 -33
- package/dist/x-liquid-dock.js +29 -29
- package/dist/x-liquid-fill.js +35 -35
- package/dist/x-liquid-glass.js +27 -27
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +25 -25
- package/dist/x-modal.js +12 -12
- package/dist/x-morph-stack.js +38 -38
- package/dist/x-multi-combobox.js +39 -39
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +28 -28
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +18 -18
- package/dist/x-organic-progress.js +33 -33
- 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 +47 -47
- 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 +21 -21
- 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 +37 -37
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +16 -16
- 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 +16 -16
- 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 +14 -14
- 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 +13 -13
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +20 -20
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +20 -20
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +21 -21
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +13 -13
- package/dist/x-trace-history.js +116 -116
- 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.Yd($APP.za(function(b,c){return $APP.$d(b,c,$APP.Qc(b,c,0)+1)},$APP.Bb($APP.oe),a))},
|
|
4
|
-
null?null:$APP.
|
|
5
|
-
|
|
6
|
-
default:return b}},
|
|
7
|
-
n=null;for(v=r=0;;)if(v<r){var x=n.C(null,v),y=$APP.B(x,0,null),A=$APP.B(x,1,null);x=e;y=""+$APP.N.i(y);A={tag:$APP.
|
|
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.te(function(d){return $APP.z.j(c,$APP.C(b,d))?d:null},
|
|
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.Mc(a):null},
|
|
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.gd(a))c=$APP.Jb(a),a=$APP.Kb(a),b=c,c=$APP.w(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},
|
|
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(x)+"' 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(
|
|
47
|
-
8+A/2:8+$APP.
|
|
48
|
-
2,5,$APP.J,[E.id,A],null)},b)),y=$APP.
|
|
49
|
-
k){if($APP.w(d)===0)a.innerHTML="",b.innerHTML="\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var n=$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.Jc(a));b=$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.Oe.j(
|
|
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(T);n.textContent=
|
|
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.Yc(c);break a;default:throw Error("No matching clause: "+$APP.N.i(b));}else b=$APP.z.j(b,$APP.
|
|
78
|
-
|
|
79
|
-
d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},
|
|
80
|
-
d=
|
|
2
|
+
var gL=function(a,b){const c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},Tla=function(a){return a-1},Ula=function(a,b){return $APP.pd(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.nd($APP.ld);return e.j?e.j(c,d):e.call(null,c,d)},b)},hL=function(a,b){return Ula(a,b)},iL=function(a){if(a instanceof RegExp)return a;var b=$APP.Ah(/^\(\?([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:"")},Vla=
|
|
3
|
+
function(a){return $APP.Yd($APP.za(function(b,c){return $APP.$d(b,c,$APP.Qc(b,c,0)+1)},$APP.Bb($APP.oe),a))},Wla=function(a){return new $APP.H(null,2,5,$APP.J,[$APP.Me(200,a),$APP.Ne(200,a)],null)},jL=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.Ah(Xla,b);return $APP.D(b)||$APP.l(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.z.j("raw",$APP.l(a,"BAREDOM_TRACE_HISTORY"))},Yla=function(a){a=a==null?null:a.tagName;a=a==null?null:a.toLowerCase();return $APP.m(a)?a:"document"},kL=function(a){try{return a==
|
|
4
|
+
null?null:$APP.Nm(a)}catch(b){try{return""+$APP.N.i(a)}catch(c){return"(unprintable)"}}},Zla=function(a,b,c){a=$APP.G(a);var d=$APP.C(a,$APP.P),e=$APP.C(a,$APP.mt),f=$APP.C(a,lL),h=$APP.C(a,mL);var k=$APP.Od(d);k=$APP.m(k)?""+$APP.N.i(k)+"/"+$APP.N.i($APP.jh(d)):$APP.jh(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.Ii.i(a),b.eventName=c,c=
|
|
5
|
+
kL($APP.Ji.i(a)),b.detail=c,c=$APP.D($APP.Ki.i(a)),b.cancelable=c,a=$APP.D($APP.Li.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.wi.i(a),b.field=c,a=kL($APP.Q.i(a)),b.value=a,b;case "dom/attribute-set":return c=$APP.Ai.i(a),b.attribute=c,a=$APP.Q.i(a),b.value=a,b;case "dom/attribute-removed":return a=$APP.Ai.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.Ai.i(a),b.attribute=c,c=$APP.kj.i(a),b.oldValue=c,a=$APP.lj.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":return b;
|
|
6
|
+
default:return b}},nL=function(a){a=""+$APP.N.i(a);return a.length<2?"0"+$APP.N.i(a):a},$la=function(a,b){return $APP.Xf.l($APP.oe,$APP.Te(function(c){var d=$APP.B(c,0,null);$APP.B(c,1,null);return $APP.kd(b,d)}),a)},wL=function(a,b,c,d){var e=$APP.G(d);d=$APP.C(e,oL);var f=$APP.C(e,$APP.mr),h=$APP.C(e,pL);e=$APP.C(e,qL);a:{var k=a.length;for(var n=0,r=$APP.Bb($APP.bh);;){if(n>=k){k=$APP.Eb(r);break a}var v=a[n].componentId;n+=1;r=v!=null?$APP.Db(r,v):r}k=void 0}k=$la(b,k);b=$APP.D(e);e={};k=$APP.q(k);
|
|
7
|
+
n=null;for(v=r=0;;)if(v<r){var x=n.C(null,v),y=$APP.B(x,0,null),A=$APP.B(x,1,null);x=e;y=""+$APP.N.i(y);A={tag:$APP.mt.i(A),firstSeen:rL.i(A)};x[y]=A;v+=1}else if(k=$APP.q(k))$APP.gd(k)?(r=$APP.Jb(k),k=$APP.Kb(k),n=r,r=$APP.w(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.mt.i(v),firstSeen:rL.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){x=n.C(null,v);var E=$APP.G(x);x=$APP.C(E,$APP.ir);y=$APP.C(E,$APP.Z);A=
|
|
8
|
+
$APP.C(E,sL);var I=$APP.C(E,tL),O=$APP.C(E,uL);E=$APP.C(E,vL);k.push({id:x,label:y,startT:A,endT:I,startId:O,endId:E});v+=1}else if(c=$APP.q(c))$APP.gd(c)?(r=$APP.Jb(c),c=$APP.Kb(c),n=r,r=$APP.w(r)):(n=$APP.t(c),A=$APP.G(n),n=$APP.C(A,$APP.ir),r=$APP.C(A,$APP.Z),v=$APP.C(A,sL),x=$APP.C(A,tL),y=$APP.C(A,uL),A=$APP.C(A,vL),k.push({id:n,label:r,startT:v,endT:x,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}},xL=function(a){if($APP.sa(a)){if(typeof a.schemaVersion!=="number")return new $APP.K(null,1,[$APP.xj,"Envelope is missing schemaVersion."],null);if($APP.M.j(1,a.schemaVersion))return new $APP.K(null,1,[$APP.xj,"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.xj,"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.Tq,a],null):new $APP.K(null,1,[$APP.xj,"Record at index "+$APP.N.i(b)+" is missing required fields (id, t, type)."],null)}return new $APP.K(null,1,[$APP.xj,"Envelope is not a JSON object."],null)},ama=function(a,b,c){return $APP.w(a)>=c?$APP.Id.j($APP.Zc(a),b):$APP.Id.j(a,b)},bma=function(){var a=qL.i($APP.db(yL));return $APP.m(a)?$APP.fh(zL):
|
|
11
|
+
$APP.Ho.j($APP.fh(zL),$APP.ur)},BL=function(a){var b=$APP.te(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.kd(c,a)?d:null},cma);return $APP.m(b)?b:AL},CL=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.m(b)?b.toLowerCase():""},GL=function(a,b){var c=$APP.G(b),d=$APP.C(c,$APP.mt),e=$APP.C(c,DL);b=$APP.C(c,EL);c=$APP.Qc(c,FL,CL);if(d=d==null||$APP.z.j("",d)||$APP.z.j("all",d)||$APP.z.j(d,a.tag)){if(e=e==null||$APP.kd(e,BL(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},HL=function(a,b){return $APP.rf(hL(function(c){return c.t},$APP.Ue(function(c){return GL(c,b)},$APP.Jc(a))))},IL=function(a,b){return typeof b==="number"?a.find(function(c){return $APP.z.j(b,c.id)}):null},JL=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.Ed(c,60))+"…"}catch(d){return"(unstringifiable)"}else return null},KL=function(a){switch(a.type){case "event/dispatch":return""+$APP.N.i(a.eventName)+
|
|
13
|
+
$APP.N.i(function(){var b=JL(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=JL(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=JL(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
|
+
JL(a.value);return $APP.m(b)?b:"null"}());case "dom/attribute-set":return""+$APP.N.i(a.attribute)+"\x3d"+$APP.N.i($APP.Mh($APP.Jc([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.Mh($APP.Jc([a.oldValue])))+" → "+$APP.N.i($APP.Mh($APP.Jc([a.newValue])));default:return"("+$APP.N.i(a.type)+
|
|
15
|
+
")"}},LL=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.Bd(a,6E4)/1E3;return""+$APP.N.i(Math.floor(a/6E4))+"m"+$APP.N.i(b.toFixed(1))+"s"},NL=function(a){a=BL(a.type);return $APP.C(ML,$APP.m(a)?a:AL)},PL=function(a){a=a.componentId;return $APP.m(a)?a:OL},dma=function(a){return $APP.rf(hL(QL,$APP.Oe.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
|
+
[RL,c,$APP.mt,d.tag,QL,$APP.ge($APP.Wj,$APP.Oe.j(function(e){return e.t},b))],null)},$APP.Zh(PL,a))))},UL=function(a){if($APP.q(a)){var b=$APP.Oe.j(function(c){return c.t},a);a=$APP.ge($APP.Wj,b);b=$APP.ge($APP.Sl,b);return new $APP.K(null,3,[SL,a,ema,b,TL,$APP.Sl.j(1,b-a)],null)}return null},fma=function(a,b){return $APP.q(a)?$APP.he(VL,function(c){return Math.abs(c.t-b)},a):null},gma=function(a){if($APP.q(a)){var b=Vla($APP.Oe.j(function(d){return BL(d.type)},a)),c=$APP.ge($APP.Sl,$APP.Ug(b));a=
|
|
17
|
+
$APP.te(function(d){return $APP.z.j(c,$APP.C(b,d))?d:null},zL);return $APP.m(a)?a:AL}return null},kma=function(a,b){a=$APP.Zh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/4)},a);return $APP.rf(hL(WL,$APP.Oe.j(function(c){var d=$APP.B(c,0,null),e=$APP.B(c,1,null);c=$APP.Oe.j(function(f){return f.t},e);e=$APP.rf(hL(function(f){return f.id},e));return new $APP.K(null,7,[WL,d,XL,e,YL,gma(e),ZL,d*4,hma,(d+1)*4,ima,$APP.ge($APP.Wj,c),jma,$APP.ge($APP.Sl,c)],null)},a)))},lma=function(a){return $APP.te(function(b){return $APP.w(XL.i(b))>
|
|
18
|
+
3},a)},mma=function(a){return $APP.q(a)?$APP.ge($APP.Sl,$APP.Oe.j(function(b){return $APP.w(XL.i(b))},a)):0},nma=function(a,b){var c=b.id;a=hL(function(d){return d.t},$APP.Ue(function(d){return $APP.z.j(c,d.causeId)},$APP.Jc(a)));return new $APP.K(null,2,[$APP.qv,$APP.w(a),XL,$APP.rf($APP.Me(50,a))],null)},oma=function(a,b){return $APP.rf(hL(function(c){return c.id},$APP.Ue(function(c){return $APP.z.j(b,c.causeId)},$APP.Jc(a))))},pma=function(a,b){var c=Wla($L(a,b));a=$APP.B(c,0,null);c=$APP.B(c,
|
|
19
|
+
1,null);var d=$APP.Zh(function(e){return e.causeId},a);return $APP.Pg.l(function h(f){var k=$APP.pi.j;var n=f.id;n=d.i?d.i(n):d.call(null,n);return new $APP.K(null,2,[aM,f,$APP.Tt,k.call($APP.pi,h,n)],null)}(b),bM,$APP.D($APP.q(c)))},qma=function(a,b){return typeof b==="number"?$APP.te(function(c){return $APP.z.j(b,$APP.ir.i(c))?c:null},$APP.ek.i(a)):null},rma=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=TL.i(c),c=$APP.m(c)?" · spanning "+$APP.N.i(LL(c)):null,c=a+d.call(b,c));return c},dM=function(a){return $APP.fd(a)&&$APP.z.j(cM,$APP.t(a))},fM=function(a){return $APP.fd(a)&&$APP.z.j(eM,$APP.t(a))},gM=function(a){return $APP.fd(a)&&($APP.z.j(cM,$APP.t(a))||$APP.z.j(eM,
|
|
21
|
+
$APP.t(a)))?$APP.Mc(a):null},hM=function(a,b){a=$APP.l(a,"__xTraceHistoryUiState");return $APP.m(a)?(b=$APP.l(a,$APP.jh(b)),void 0===b?null:b):null},iM=function(a,b,c){var d=$APP.l(a,"__xTraceHistoryUiState");d=$APP.m(d)?d:{};b=$APP.jh(b);d[b]=c;a.__xTraceHistoryUiState=d},kM=function(){var a=XL.i($APP.db(yL)),b=$APP.db(jM),c=b[1];if(b[0]===a)return c;b=$APP.Nm($APP.rf(a));$APP.Ke(jM,[a,b]);return b},sma=function(){var a=$APP.Io.M(lM,$APP.Pg,$APP.Nl,!1);a=$APP.G(a);a=$APP.C(a,mM);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.gd(a))c=$APP.Jb(a),a=$APP.Kb(a),b=c,c=$APP.w(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},nM=function(){if(lM instanceof $APP.He){var a=lM.state;a=$APP.Pg.l?$APP.Pg.l(a,$APP.Nl,!0):$APP.Pg.call(null,a,$APP.Nl,!0);if(lM instanceof $APP.He){var b=lM.vc;if(b!=null&&
|
|
23
|
+
!$APP.m(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=lM.state;lM.state=a;lM.ic!=null&&$APP.Ie(lM,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.db(lM),$APP.Lb(lM,a)],null)}else a=new $APP.H(null,2,5,$APP.J,[$APP.db(lM),$APP.Do(lM,$APP.Pg,$APP.Nl,!0)],null);b=$APP.B(a,0,null);$APP.B(a,1,null);return $APP.m($APP.Nl.i(b))?null:requestAnimationFrame(sma)},tma=function(a,b){var c=oM.i(a)+1;return $APP.Jo($APP.Pg.l(a,oM,c),new $APP.H(null,
|
|
24
|
+
2,5,$APP.J,[mM,c],null),b)},uma=function(a,b,c){if($APP.z.j("document",b))return new $APP.K(null,2,[$APP.ir,null,pM,!1],null);b=$APP.l(a,"__xTraceHistoryId");if(b!=null)return new $APP.K(null,2,[$APP.ir,b,pM,!1],null);a.__xTraceHistoryId=c;return new $APP.K(null,2,[$APP.ir,c,pM,!0],null)},rM=function(){var a=$APP.Io.M(yL,$APP.oi,qM,$APP.sc);return qM.i(a)-1},vma=function(a){$APP.Io.j(sM,$APP.sc);try{a.G?a.G():a.call(null)}finally{$APP.Io.j(sM,Tla)}},tM=function(a){var b=a.getRootNode();return b instanceof
|
|
25
|
+
ShadowRoot?b.host:a.parentNode},uM=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=tM(a)}else return null},vM=function(a){if(a instanceof Node)for(a=tM(a);;){if(a==null||a===document)return!1;if($APP.m($APP.l(a,"__xTraceHistoryInternal")))return!0;a=tM(a)}else return!1},wM=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},xM=function(a){var b=$APP.vi.i(a);return $APP.kd(wma,$APP.P.i(a))?b instanceof Node?(a=$APP.l(b,"__xTraceHistoryInternal"),$APP.m(a)?a:vM(b)):!1:vM(b)},BM=function(a,b,c,d){var e=$APP.db(yL),f=
|
|
27
|
+
$APP.vi.i(a);if(!$APP.m(function(){var v=(v=$APP.p(d))?$APP.op.i(e):v;return $APP.m(v)?v:xM(a)}())){var h=function(){var v=uM(f);return $APP.m(v)?v:f}(),k=Yla(h);h=uma(h,k,yM.i(e));var n=$APP.G(h);h=$APP.C(n,$APP.ir);n=$APP.C(n,pM);var r=$APP.Yc($APP.db(zM));r=$APP.Pg.o(a,$APP.mt,k,$APP.Jc([lL,h,mL,r]));b=Zla(r,b,c);b=ama(XL.i(e),b,$APP.Ml.i(e));c=$APP.m(n)?$APP.Pg.l(AM.i(e),h,new $APP.K(null,2,[$APP.mt,k,rL,c],null)):AM.i(e);k=$APP.m(n)?h+1:yM.i(e);$APP.Io.o(yL,$APP.Pg,XL,b,$APP.Jc([yM,k,AM,c]));
|
|
28
|
+
nM()}},CM=function(a,b){var c=uM(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.Ii.i(a));case "state/instance-field-set":return""+$APP.N.i(b)+":fld:"+$APP.N.i($APP.wi.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.N.i(b)+":attr:"+$APP.N.i($APP.Ai.i(a));default:return null}else return null},
|
|
29
|
+
EM=function(a,b,c,d){var e=$APP.p(qL.i(a));return e?(b=CM(b,c),$APP.m(b)?(a=$APP.C(DM.i(a),b),$APP.m(a)?d-a<16:null):null):e},FM=function(a,b,c){if($APP.m(qL.i($APP.db(yL))))return null;a=CM(a,b);return $APP.m(a)?$APP.Io.M(yL,$APP.Jo,new $APP.H(null,2,5,$APP.J,[DM,a],null),c):null},HM=function(a){var b=$APP.P.i(a),c=$APP.vi.i(a),d=performance.now();if($APP.m(function(){var f=$APP.db(sM)>0;if(f)return f;f=$APP.db(GM);f=$APP.m(f)?$APP.kd(xma,b):f;if($APP.m(f))return f;f=xM(a);return $APP.m(f)?f:EM($APP.db(yL),
|
|
30
|
+
a,c,d)}()))return null;var e=rM();BM(a,e,d,!1);return FM(a,c,d)},yma=function(){var a=EventTarget.prototype,b=a.dispatchEvent;$APP.m($APP.l(b,"__xTraceHistoryWrapped"))||($APP.Ke(IM,b),b=function(c){var d=$APP.db(IM);var e=$APP.p($APP.db(GM));e||(e=$APP.op.i($APP.db(yL)),e=$APP.m(e)?e:$APP.db(sM)>0||vM(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.Vi:$APP.m(c.cancelable)?$APP.Ni:$APP.Hi,$APP.Ii,c.type],
|
|
31
|
+
null):null;if($APP.m(e?EM($APP.db(yL),h,this,f):e))c=d.call(this,c);else{var k=rM();$APP.Io.l(zM,$APP.Id,k);try{var n=d.call(this,c)}finally{$APP.Io.j(zM,$APP.Zc)}if(e)try{BM(new $APP.K(null,6,[$APP.P,this===document?$APP.Vi:$APP.m(c.cancelable)?$APP.Ni:$APP.Hi,$APP.vi,this,$APP.Ii,c.type,$APP.Ji,c.detail,$APP.Ki,c.cancelable,$APP.Li,c.defaultPrevented],null),k,f,!0),FM(h,this,f)}catch(r){}c=n}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},zma=function(){return kM()},Ama=function(){var a=
|
|
32
|
+
AM.i($APP.db(yL)),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.mt.i(k),firstSeen:rL.i(k)};f[h]=k;e+=1}else if(a=$APP.q(a))$APP.gd(a)?(d=$APP.Jb(a),a=$APP.Kb(a),c=d,d=$APP.w(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.mt.i(e),firstSeen:rL.i(e)},c[d]=e,a=$APP.u(a),c=null,d=0),e=0;else break;return b},Bma=function(a){var b=a.components;return b==null?$APP.Xe:$APP.Oe.j(function(c){return $APP.l(b,
|
|
33
|
+
c).tag},Object.keys(b))},Cma=function(){var a=$APP.db(yL),b=$APP.Oe.j($APP.mt,$APP.Ug(AM.i(a)));a=$APP.Se(function(c){c=$APP.G(c);c=$APP.C(c,JM);return Bma(c)},$APP.Jc([KM.i(a)]));return $APP.rf($APP.Xf.j($APP.hh(),$APP.Re.j(b,a)))},LM=function(){$APP.Io.M(yL,$APP.Pg,$APP.op,!0);return nM()},MM=function(){$APP.Io.M(yL,$APP.Pg,$APP.op,!1);return nM()},RM=function(){$APP.Io.o(yL,$APP.Pg,XL,NM,$APP.Jc([qM,0,OM,$APP.Xe,PM,0,QM,null,DM,$APP.oe]));return nM()},SM=function(){return QM.i($APP.db(yL))},Dma=
|
|
34
|
+
function(a,b,c,d){return b==null?a:$APP.pi.j(function(e){e=$APP.G(e);var f=$APP.C(e,$APP.ir);return $APP.z.j(f,b)?$APP.Pg.o(e,tL,c,$APP.Jc([vL,d])):e},a)},TM=function(){var a=performance.now();$APP.Io.j(yL,function(b){return $APP.Pg.l($APP.oi.ta(b,OM,Dma,QM.i(b),a,qM.i(b)),QM,null)});return nM()},UM=function(){SM()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),TM());var a=performance.now();$APP.Io.j(yL,function(b){var c=
|
|
35
|
+
PM.i(b),d=qM.i(b);return $APP.Pg.o($APP.oi.M(b,OM,$APP.Id,new $APP.K(null,6,[$APP.ir,c,$APP.Z,"Session "+$APP.N.i(c),sL,a,tL,null,uL,d,vL,null],null)),QM,c,$APP.Jc([PM,c+1]))});nM();return QM.i($APP.db(yL))},VM=function(a,b){var c=$APP.G(b);b=$APP.C(c,uL);c=$APP.C(c,vL);a=a.id;return a>=b&&(c==null||a<c)},WM=function(){var a=$APP.db(yL),b=kM(),c=$APP.Jc(b);return $APP.Nm($APP.pi.j(function(d){var e=$APP.G(d);d=$APP.C(e,$APP.ir);var f=$APP.C(e,$APP.Z),h=$APP.C(e,sL),k=$APP.C(e,tL),n=$APP.w($APP.Ue(function(r){return VM(r,
|
|
36
|
+
e)},c));return{id:d,label:f,startT:h,endT:$APP.m(k)?k:null,recordCount:n}},OM.i(a)))},XM=function(a){var b=$APP.db(yL),c=$APP.t($APP.Ue(function(d){return $APP.z.j($APP.ir.i(d),a)},OM.i(b)));return $APP.m(c)?$APP.Nm(hL(function(d){return d.t},$APP.Ue(function(d){return VM(d,c)},$APP.Kc(kM())))):[]},Ema=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=YM}a=$APP.z.j(b,YM)?new $APP.K(null,1,[$APP.xj,"File is not valid JSON."],null):xL(b)}else a=$APP.sa(a)?xL(a):new $APP.K(null,
|
|
37
|
+
1,[$APP.xj,"Import expects a JSON string or a parsed envelope object."],null);return a},ZM=function(a){$APP.Io.M(yL,$APP.oi,KM,function(b){return $APP.rf($APP.We(function(c){c=$APP.G(c);c=$APP.C(c,$APP.ir);return $APP.z.j(c,a)},b))});return nM()},aN=function(){return $APP.Nm($APP.pi.j(function(a){var b=$APP.G(a);a=$APP.C(b,$APP.ir);var c=$APP.C(b,$APP.Z),d=$APP.C(b,$M);b=$APP.C(b,JM);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},KM.i($APP.db(yL))))},bN=function(a){var b=$APP.t($APP.Ue(function(c){return $APP.z.j($APP.ir.i(c),
|
|
38
|
+
a)},KM.i($APP.db(yL))));return $APP.m(b)?JM.i(b).records:[]},cN=function(a,b){return new $APP.K(null,4,[oL,a.getTime(),$APP.mr,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.m(c)?c:""}(),pL,function(){var c=navigator;c=c==null?null:c.userAgent;return $APP.m(c)?c:""}(),qL,b],null)},Fma=function(){var a=$APP.db(yL),b=kM(),c=cN(new Date,qL.i(a));return wL(b,AM.i(a),OM.i(a),c)},dN=function(){var a=new Date,b=$APP.db(yL),c=kM(),d=cN(a,qL.i(b));b=wL(c,AM.i(b),OM.i(b),
|
|
39
|
+
d);b=JSON.stringify(b,null,2);a=""+$APP.N.i("baredom-trace-")+$APP.N.i(a.getFullYear())+$APP.N.i(nL(a.getMonth()+1))+$APP.N.i(nL(a.getDate()))+"-"+$APP.N.i(nL(a.getHours()))+$APP.N.i(nL(a.getMinutes()))+$APP.N.i(nL(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
|
+
eN=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"},fN=function(a){a=$APP.l(a,"__xTraceHistoryHighlightBox");$APP.m(a)&&(a.style.display="none")},gN=function(a){var b=$APP.l(a,"__xTraceHistoryHighlightCid");if($APP.m(b)){b=wM(b);if($APP.m(b))return a=$APP.l(a,"__xTraceHistoryHighlightBox"),$APP.m(a)?(eN(a,b),a.style.display="block"):null;fN(a);return $APP.Di(a,
|
|
41
|
+
"__xTraceHistoryHighlightCid",null)}return null},hN=function(a){return(""+$APP.N.i(a)).replace(Gma,"\x26amp;").replace(Hma,"\x26lt;").replace(Ima,"\x26gt;").replace(Jma,"\x26quot;").replace(Kma,"\x26#39;")},Lma=function(a){return"\x3coption value\x3d'"+$APP.N.i(hN(a))+"'\x3e"+$APP.N.i(hN(a))+"\x3c/option\x3e"},iN=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"},Mma=function(a,b){return $APP.ge($APP.N,$APP.Oe.j(function(c){var d=$APP.G(c);c=$APP.C(d,RL);var e=$APP.C(d,$APP.mt),f=$APP.G(d);d=$APP.C(f,RL);f=$APP.C(f,$APP.mt);d=$APP.z.j(OL,d)?"document":""+$APP.N.i(f)+" #"+$APP.N.i(d);f=$APP.z.j(OL,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(hN(f))+"' title\x3d'"+$APP.N.i(hN(d))+"'\x3e"+$APP.N.i(hN($APP.z.j(OL,c)?"document":e))+$APP.N.i($APP.M.j(OL,
|
|
43
|
+
c)?" \x3cspan class\x3d'cid'\x3e#"+$APP.N.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},Nma=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":""},jN=function(a,b,c,d){a=hL(function(e){return $APP.z.j(e.id,d)?1:0},a);return $APP.ge($APP.N,$APP.Oe.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(NL(e))+"' /\x3e"},a))},Oma=function(a,b,c,d){if(c==null)return"";a=$APP.te(function(e){e=$APP.G(e);e=$APP.C(e,XL);return $APP.te(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"):""},Pma=function(a,b,
|
|
45
|
+
c,d){var e=mma(a);return""+$APP.N.i($APP.ge($APP.N,$APP.Oe.j(function(f){var h=$APP.G(f),k=$APP.C(h,XL);f=$APP.C(h,YL);h=$APP.C(h,ZL);var n=$APP.t(k),r=$APP.C(ML,$APP.m(f)?f:AL);var v=$APP.w(k);v=v==null||v===0||e==null||e===0?0:v>=e?1:.4+.6*((v-1)/$APP.Sl.j(1,e-1));var x=hN($APP.jh($APP.m(f)?f:AL));k=$APP.w(k);f=""+$APP.N.i(k)+" "+$APP.N.i($APP.z.j(1,k)?"record":"records")+" · "+$APP.N.i($APP.jh($APP.m(f)?f:AL));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+$APP.N.i(hN(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(x)+"' 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(Oma(a,b,c,d))},Qma=function(a,b,c,d,e,f){function h(A){a:{var E=$APP.C(x,A.id);var I=a instanceof $APP.F?a.da:null;switch(I){case "order":A=$APP.Sl.j(0,e-16);E=v===0||v<0?8:$APP.z.j(1,v)?
|
|
47
|
+
8+A/2:8+$APP.Wj.j($APP.Sl.j(E/(v-1),0),1)*A;break a;case "time":E=A.t;I=$APP.G(d);A=$APP.C(I,SL);I=$APP.C(I,TL);var O=$APP.Sl.j(0,e-16);E=A==null||I==null?8:8+$APP.Wj.j($APP.Sl.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.Xf.j($APP.oe,$APP.Ee(function(A,E){E=$APP.G(E);E=$APP.C(E,RL);return new $APP.H(null,2,5,$APP.J,[E,A*20],null)},c)),r=$APP.Sl.j(20,20*$APP.w(c)),v=$APP.w(b),x=$APP.Xf.j($APP.oe,$APP.Ee(function(A,E){return new $APP.H(null,
|
|
48
|
+
2,5,$APP.J,[E.id,A],null)},b)),y=$APP.Zh(PL,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.ge($APP.N,$APP.Oe.j(function(A){A=$APP.G(A);var E=$APP.C(A,RL);A=$APP.Qc(y,E,$APP.Xe);E=$APP.C(n,E);if($APP.z.j(kN,a)){var I=kma(A,h);A=$APP.m(lma(I))?Pma(I,E,k,h):jN(A,E,h,k)}else A=jN(A,E,h,k);return A},c)))+$APP.N.i(Nma(f,$APP.m(f)?h(f):null,r))+"\x3c/svg\x3e"},Rma=function(a,b,c,d,e,f,h,
|
|
49
|
+
k){if($APP.w(d)===0)a.innerHTML="",b.innerHTML="\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var n=$APP.Sl.j(200,b.clientWidth);a.innerHTML=Mma(e,k);b.innerHTML=Qma(c,d,e,f,n,h)}},lN=function(a){return""+$APP.N.i(a.tag)+" · "+$APP.N.i(a.type)},Sma=function(a){var b=$APP.G(a);a=$APP.C(b,mN);var c=$APP.C(b,nN),d=$APP.C(b,oN);b=$APP.C(b,pN);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"},Tma=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.ek);var d=$APP.C(c,qN),e=$APP.C(c,$APP.Qn);c=$APP.C(c,$APP.Rn);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.ge($APP.N,$APP.Oe.j(Sma,d)))+$APP.N.i($APP.ge($APP.N,$APP.Oe.j(function(f){var h=$APP.G(f),k=$APP.C(h,$APP.ir);f=$APP.C(h,aM);var n=$APP.C(h,rN);h=$APP.C(h,sN);n-=70;var r=h-14,v=$APP.z.j(k,b),x=n+12,y=
|
|
51
|
+
n+22,A=n+22,E=r+18,I=r+11,O=hN("#"+$APP.N.i(k)+" "+$APP.N.i(lN(f))+" · "+$APP.N.i(KL(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(x)+"' cy\x3d'"+$APP.N.i(h)+"' r\x3d'"+$APP.N.i(4)+
|
|
52
|
+
"' fill\x3d'"+$APP.N.i(NL(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=lN(f);f=""+$APP.N.i(f);f=f.length<=22?f:""+$APP.N.i(f.substring(0,21))+"…";return k+n.call(h,hN(f))+"\x3c/text\x3e\x3c/g\x3e"},a)))+"\x3c/svg\x3e"},Vma=function(a,b,c,d){if(d==null)iM(a,tN,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+$APP.N.i(hN("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=IL(c,h);if($APP.m(h))f+=1,e=h;else break a}e=void 0}e=pma(c,e);c=new $APP.K(null,2,[uN,vN(e),Uma,wN(e)],null);if($APP.m(bM.i(e)))iM(a,tN,null),a=$APP.N,d=a.i,c=$APP.G(c),c=$APP.C(c,uN),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,hN(c))+"\x3c/div\x3e";
|
|
54
|
+
else{e=xN(e,0,16);f=$APP.B(e,0,null);$APP.B(e,1,null);e=yN(f);f=zN(f);h=$APP.za($APP.Sl,0,$APP.Oe.j(rN,e));var k=$APP.za($APP.Sl,0,$APP.Oe.j(sN,e));e=new $APP.K(null,4,[$APP.ek,e,qN,f,$APP.Qn,h+70+16,$APP.Rn,k+14+16],null);c=$APP.z.j(1,uN.i(c));iM(a,tN,e);b.innerHTML=""+$APP.N.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.N.i(hN("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(Tma(e,d.id))}}},Wma=function(a){if($APP.m(hM(a,AN))){var b=$APP.l(a,"__xTraceHistoryCausalityEl"),c=hM(a,tN),d=BN.i?BN.i(a):BN.call(null,a),e=$APP.m(c)?qma(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.Qn);h=$APP.C(h,$APP.Rn);var k=rN.i(e),n=sN.i(e);e=k-f/2;k=n-d/2;f=$APP.Sl.j(0,c-f);d=$APP.Sl.j(0,h-d);d=new $APP.K(null,
|
|
56
|
+
2,[CN,$APP.Sl.j(0,$APP.Wj.j(f,e)),DN,$APP.Sl.j(0,$APP.Wj.j(d,k))],null);f=$APP.G(d);d=$APP.C(f,CN);f=$APP.C(f,DN);b.scrollLeft=d;b.scrollTop=f;iM(a,AN,!1)}}},Xma=function(a){var b=Cma();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.Bb($APP.bh);;){if(e>=d){c=$APP.Eb(f);break a}var h=c[e].value;e+=1;f=$APP.z.j(h,"all")?f:$APP.Db(f,h)}c=void 0}b=$APP.We(c,b);$APP.q(b)&&(b=$APP.ge($APP.N,$APP.Oe.j(Lma,b)),a.insertAdjacentHTML("beforeend",b))},Yma=function(a){var b=$APP.op.i($APP.db(yL));
|
|
57
|
+
a.textContent=$APP.m(b)?"Resume":"Pause";a.pressed=b},Zma=function(a){var b=SM()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},$ma=function(a){var b=$APP.G(a);a=$APP.C(b,EN);var c=$APP.C(b,$APP.gn),d=$APP.C(b,FN),e=$APP.C(b,GN),f=$APP.C(b,$APP.Z);b=$APP.C(b,HN);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(hN(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(hN(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"},ana=function(a,b,c,d){var e=new $APP.K(null,5,[EN,"live",$APP.gn,$APP.z.j(c,$APP.Rs),FN,!1,GN,!1,$APP.Z,"Live"],null),f=dM(c)?gM(c):null,h=fM(c)?gM(c):null;a=$APP.pi.j(function(k){var n=k.id;return new $APP.K(null,5,[EN,""+$APP.N.i(n),$APP.gn,$APP.z.j(n,f),FN,$APP.z.j(n,d),GN,!1,$APP.Z,""+$APP.N.i(k.label)+
|
|
59
|
+
" · "+$APP.N.i(k.recordCount)],null)},$APP.Jc(a));b=$APP.pi.j(function(k){var n=k.id;return new $APP.K(null,6,[EN,"import:"+$APP.N.i(n),$APP.gn,$APP.z.j(n,h),FN,!1,GN,!0,HN,n,$APP.Z,""+$APP.N.i(k.label)+" · "+$APP.N.i(k.recordCount)],null)},$APP.Jc(b));return $APP.ge($APP.N,$APP.Oe.j($ma,$APP.Re.o(new $APP.H(null,1,5,$APP.J,[e],null),a,$APP.Jc([b]))))},bna=function(a,b,c,d,e){a.innerHTML=ana(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},IN=function(a){var b=
|
|
60
|
+
KL(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.ii(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(hN(b))+"'\x3e"+$APP.N.i(hN(b))+"\x3c/x-button\x3e"},cna=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"?IL(c,f):null;f=nma(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.N.i(hN(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(IN(h))+"\x3c/div\x3e":null);c=$APP.N;d=c.i;h=$APP.G(f);f=$APP.C(h,$APP.qv);h=$APP.C(h,XL);if(f>0){var k=$APP.w(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.ge($APP.N,
|
|
62
|
+
$APP.Oe.j(IN,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","")},KN=function(a){var b=JN.get(a);if($APP.m(b))return b;b=CL(a);JN.set(a,b);return b},LN=function(a){return $APP.z.j(a,$APP.Rs)?"live":dM(a)?"session:"+$APP.N.i(gM(a)):fM(a)?"import:"+$APP.N.i(gM(a)):"live"},BN=function(a){var b=$APP.l(a,"__xTraceHistoryView");a=$APP.l(a,"__xTraceHistoryViewSelected");return $APP.m(a)?
|
|
63
|
+
$APP.l(a,LN(b)):null},NN=function(a,b){var c=$APP.l(a,"__xTraceHistoryViewSelected");c=$APP.m(c)?c:{};var d=LN($APP.l(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;$APP.S(a,"__xTraceHistoryViewSelected",c);b!=null&&$APP.z.j(MN,$APP.l(a,"__xTraceHistoryDockMode"))&&iM(a,AN,!0)},dna=function(a,b,c){var d=BN(a);b=IL(b,d);if(b==null)return null;if(GL(b,$APP.Pg.l(c,FL,KN)))return b;NN(a,null);return null},ON=function(a){return $APP.z.j(a,$APP.Rs)?kM():dM(a)?(a=XM(gM(a)),a.length===0?kM():
|
|
64
|
+
a):fM(a)?(a=bN(gM(a)),a.length===0?kM():a):kM()},ena=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")}},PN=function(a){fN(a);return $APP.Di(a,"__xTraceHistoryHighlightCid",null)},fna=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=gN(a);else{var c=b.componentId;b=wM(c);if($APP.m(b)){$APP.Di(a,"__xTraceHistoryHighlightCid",c);c=$APP.l(a,"__xTraceHistoryHighlightBox");if($APP.m(c))a=c;else{c=$APP.Uk(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.Di(a,"__xTraceHistoryHighlightLayer",c);$APP.Di(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(QN)?QN.matches:null)?"auto":"smooth"});eN(a,b);a.style.display="block";b=a;b.style.animation="none";b=b.style.animation=""}else b=
|
|
67
|
+
PN(a)}else b=PN(a);return b},SN=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"),x=$APP.l(a,"__xTraceHistorySessionsEl"),y=$APP.l(a,"__xTraceHistoryTagSelectEl"),
|
|
68
|
+
A=$APP.l(a,"__xTraceHistoryFilter"),E=$APP.l(a,"__xTraceHistoryView"),I=ON(E),O=HL(I,$APP.Pg.l(A,FL,KN)),T=$APP.w(O),R=I.length,da=UL(O),na=dma(O),ka=dna(a,I,A),oa=WM(),Ra=aN(),Ta=SM(),pb=function(){var $b=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.m($b)?$b:$APP.hq}(),Cb=function(){var $b=$APP.l(a,"__xTraceHistoryDockMode");return $APP.m($b)?$b:RN}();Xma(y);ena(a,b,c,Cb);switch(Cb instanceof $APP.F?Cb.da:null){case "causality":Vma(a,c,I,ka);break;default:Rma(d,e,pb,O,na,da,ka,$APP.mt.i(A))}f.textContent=
|
|
69
|
+
""+$APP.N.i(T);n.textContent=rma(T,R,da,$APP.w(na));cna(h,k,I,ka);Yma(r);Zma(v);bna(x,oa,Ra,E,Ta);Wma(a);return fna(a,ka)},TN=function(a){return $APP.m(a)?$APP.z.j("circle",a.tagName.toLowerCase()):a},UN=function(a){return $APP.m(a)?$APP.z.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},VN=function(a){a=a.getAttribute("data-x-th-id");return $APP.m(a)?parseInt(a,10):null},WN=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},XN=function(a){var b=!$APP.D($APP.l(a,"__xTraceHistoryCollapsed"));$APP.S(a,"__xTraceHistoryCollapsed",b);return WN(a,b)},gna=function(a,b){$APP.S(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.hq;case "time":return kN;default:return $APP.hq}}());return SN(a)},hna=function(a,b){var c=function(){switch(b){case "timeline":return RN;
|
|
71
|
+
case "causality":return MN;default:return RN}}();$APP.S(a,"__xTraceHistoryDockMode",c);$APP.z.j(MN,c)?iM(a,AN,!0):iM(a,AN,!1);return SN(a)},YN=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.Sl.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"},ina=function(a,b){var c=b.target,d=$APP.l(a,"__xTraceHistoryTooltipEl"),
|
|
72
|
+
e=$APP.l(a,"__xTraceHistoryTimelineEl");a=ON($APP.l(a,"__xTraceHistoryView"));if($APP.m(TN(c))){c=VN(c);a=IL(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(KL(a))+"\n@ "+$APP.N.i(LL(a.t));b=YN(d,e,b,a)}else b=null;return b}if($APP.m(UN(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,[ZN,parseInt(f,10),$N,parseInt(h,10),YL,$APP.Jh.i(c)],null):null;if($APP.m(c)){f=$APP.G(c);h=$APP.C(f,ZN);c=$APP.C(f,$N);f=$APP.C(f,YL);a=IL(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.jh($APP.m(f)?f:AL))+"\n@ "+$APP.N.i(LL(a.t));b=YN(d,e,b,a)}else b=null;return b}return null}return d.setAttribute("hidden",
|
|
74
|
+
"")},aO=function(a,b,c,d,e,f){a:switch(b=b instanceof $APP.F?b.da:null,b){case "order":d=$APP.w(c);e=$APP.Sl.j(0,e-16);d===0||d<0?f=null:$APP.z.j(1,d)||e===0?f=0:(f=$APP.Wj.j($APP.Sl.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,SL);b=$APP.C(h,TL);var k=$APP.Sl.j(0,e-16);h==null||d==null||b==null?f=0:e===0||e<0||k===0?f=d:(f=$APP.Wj.j($APP.Sl.j((f-8)/k,0),1),f=d+f*b);c=fma(c,f);break a;default:throw Error("No matching clause: "+
|
|
75
|
+
$APP.N.i(b));}return $APP.m(c)?(NN(a,c.id),SN(a)):null},jna=function(a,b,c){function d(x){return aO(a,k,r,v,f,x.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.Sl.j(200,b.clientWidth),h=$APP.l(a,"__xTraceHistoryFilter"),k=function(){var x=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.m(x)?x:$APP.hq}(),n=ON($APP.l(a,"__xTraceHistoryView")),r=HL(n,$APP.Pg.l(h,FL,KN)),v=UL(r);aO(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)},bO=function(a,b){var c=$APP.l(a,"__xTraceHistoryFilter"),d=ON($APP.l(a,"__xTraceHistoryView"));c=HL(d,$APP.Pg.l(c,FL,KN));d=BN(a);a:if($APP.q(c)){if(d!=null)b:if(typeof d==="number"){for(var e=$APP.w(c),f=0;;){if(f>=e){d=null;break b}if($APP.z.j(d,$APP.Ec(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.Yc(c);break a;default:throw Error("No matching clause: "+$APP.N.i(b));}else b=$APP.z.j(b,$APP.bq)?$APP.C(c,d+1):$APP.C(c,d-1)}else b=null;return $APP.m(b)?(NN(a,b.id),SN(a)):null},cO=function(a){var b=$APP.D(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.kd(kna,a==null?null:a.toLowerCase()));return a},lna=function(a,b){if(cO(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),
|
|
78
|
+
bO(a,$APP.bq);case "ArrowLeft":return b.preventDefault(),bO(a,$APP.rt);default:return null}},mna=function(a,b,c){function d(h){h=$APP.Sl.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)},nna=function(a){return a==null||$APP.z.j("",a)?null:gL(a,".trace.json")?$APP.Ed(a,$APP.w(a)-11):gL(a,".json")?$APP.Ed(a,$APP.w(a)-5):a},eO=function(a,b){var c=$APP.l(a,"__xTraceHistoryHintEl"),d=hM(a,dO);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");iM(a,dO,null);return SN(a)},4E3);return iM(a,dO,b)},gO=function(a,b){var c=new FileReader,
|
|
80
|
+
d=nna(b.name);c.onload=function(){var e=fO.j(c.result,d);e!=null?($APP.l(a,"__xTraceHistoryHintEl").classList.remove("error"),$APP.S(a,"__xTraceHistoryView",new $APP.H(null,2,5,$APP.J,[eM,e],null)),e=SN(a)):e=eO(a,"Import failed — see console for details.");return e};c.onerror=function(){return eO(a,"Could not read file.")};return c.readAsText(b)},hO=function(a){a=a.dataTransfer;return $APP.m(a)?a.types.includes("Files"):null},ona=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},
|
|
83
|
+
$APP.N.i(iN("events",$APP.kd(b,$APP.Vr)))+$APP.N.i(iN("state",$APP.kd(b,$APP.ur)))+$APP.N.i(iN("dom",$APP.kd(b,iO)))+$APP.N.i(iN("lifecycle",$APP.kd(b,jO)))+"\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},pna=function(a,b){$APP.S(a,"__xTraceHistoryShadow",b);$APP.S(a,"__xTraceHistoryTimelineEl",b.querySelector("[data-x-th-timeline]"));$APP.S(a,"__xTraceHistoryLanesEl",b.querySelector("[data-x-th-lanes]"));$APP.S(a,"__xTraceHistorySvgPaneEl",b.querySelector("[data-x-th-svg-pane]"));$APP.S(a,"__xTraceHistoryTooltipEl",b.querySelector("[data-x-th-tooltip]"));$APP.S(a,"__xTraceHistoryCountEl",b.querySelector("[data-x-th-count]"));$APP.S(a,"__xTraceHistoryDetailEl",b.querySelector("[data-x-th-detail]"));
|
|
85
85
|
$APP.S(a,"__xTraceHistorySplitterEl",b.querySelector("[data-x-th-splitter]"));$APP.S(a,"__xTraceHistoryHintEl",b.querySelector("[data-x-th-hint]"));$APP.S(a,"__xTraceHistoryTagSelectEl",b.querySelector("[data-x-th-tag]"));$APP.S(a,"__xTraceHistoryCausalityEl",b.querySelector("[data-x-th-causality]"));$APP.S(a,"__xTraceHistoryPauseBtn",b.querySelector("[data-x-th-action\x3d'pause']"));$APP.S(a,"__xTraceHistoryRecordBtn",b.querySelector("[data-x-th-action\x3d'record']"));$APP.S(a,"__xTraceHistorySessionsEl",
|
|
86
|
-
b.querySelector("[data-x-th-sessions]"));$APP.S(a,"__xTraceHistoryImportInput",b.querySelector("[data-x-th-import-input]"));$APP.S(a,"__xTraceHistoryDropOverlay",b.querySelector("[data-x-th-drop-overlay]"));$APP.S(a,"__xTraceHistoryCollapseBtn",b.querySelector("[data-x-th-action\x3d'collapse']"))},
|
|
87
|
-
|
|
88
|
-
$APP.
|
|
89
|
-
v=$APP.z.j(v,x)?null:v;r=$APP.Pg.l(r,$APP.
|
|
90
|
-
r)?null:n,
|
|
91
|
-
n=$APP.l(a,"__xTraceHistoryFilter");var x=
|
|
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.Ah(
|
|
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.Id.j(v,r),n],null)},new $APP.H(null,2,5,$APP.J,[$APP.Xe,c],null),f);c=$APP.B(f,0,null);f=$APP.B(f,1,null);var h=
|
|
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.S(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.
|
|
120
|
-
null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.m(b)&&$APP
|
|
86
|
+
b.querySelector("[data-x-th-sessions]"));$APP.S(a,"__xTraceHistoryImportInput",b.querySelector("[data-x-th-import-input]"));$APP.S(a,"__xTraceHistoryDropOverlay",b.querySelector("[data-x-th-drop-overlay]"));$APP.S(a,"__xTraceHistoryCollapseBtn",b.querySelector("[data-x-th-action\x3d'collapse']"))},qna=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.op.i($APP.db(yL)))?
|
|
87
|
+
MM():LM();break;case "record":SM()!=null?TM():UM();break;case "clear":$APP.S(a,"__xTraceHistoryViewSelected",{});$APP.S(a,"__xTraceHistoryView",$APP.Rs);RM();break;case "export":dN();break;case "import":r=$APP.l(a,"__xTraceHistoryImportInput");$APP.m(r)&&(r.value="",r.click());break;case "collapse":XN(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");fM(v)&&$APP.z.j(r,gM(v))&&$APP.S(a,"__xTraceHistoryView",
|
|
88
|
+
$APP.Rs);ZM(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.Rs:r.lastIndexOf("import:",0)==0?new $APP.H(null,2,5,$APP.J,[eM,parseInt(r.substring(7),10)],null):new $APP.H(null,2,5,$APP.J,[cM,parseInt(r,10)],null),$APP.S(a,"__xTraceHistoryView",r),SN(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 x=$APP.mt.i(r);
|
|
89
|
+
v=$APP.z.j(v,x)?null:v;r=$APP.Pg.l(r,$APP.mt,v);$APP.S(a,"__xTraceHistoryFilter",r);r=$APP.l(a,"__xTraceHistoryTagSelectEl");$APP.m(r)&&(r.value=$APP.m(v)?v:"all");SN(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))||(NN(a,r),SN(a))));r=TN(n);r=$APP.m(r)?r:UN(n);$APP.m(r)?($APP.m(TN(n))?n=VN(n):$APP.m(UN(n))?(n=n.getAttribute("data-x-th-bin-record-id"),n=$APP.m(n)?parseInt(n,10):null):n=null,r=BN(a),n=$APP.z.j(n,
|
|
90
|
+
r)?null:n,NN(a,n),n=SN(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.Pg.l($APP.l(a,"__xTraceHistoryFilter"),$APP.mt,$APP.z.j(n,"all")?null:n),$APP.S(a,"__xTraceHistoryFilter",r),r=SN(a)):r=r.getAttribute("data-x-th-mode")!=null?hna(a,n):r.getAttribute("data-x-th-axis")!=null?gna(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 x=DL.i(n);x=$APP.m(x)?x:$APP.fh(zL);r=$APP.Jh.i(r);r=$APP.m(v)?$APP.Id.j(x,r):$APP.Ho.j(x,r);n=$APP.Pg.l(n,DL,r);$APP.S(a,"__xTraceHistoryFilter",n);n=SN(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.Pg.l($APP.l(a,"__xTraceHistoryFilter"),EL,$APP.z.j("",n)?null:n),$APP.S(a,"__xTraceHistoryFilter",n),n=SN(a)):n=null;
|
|
92
|
+
return n}],[c,"pointermove",function(n){return ina(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 lna(a,n)}],[d,"pointerdown",function(n){return jna(a,$APP.l(a,"__xTraceHistorySvgPaneEl"),n)}],[e,"pointerdown",function(n){return mna(f,e,n)}],[h,"change",function(n){n=n.target.files;return n.length>0?gO(a,n[0]):null}],
|
|
93
|
+
[b,"dragenter",function(n){if($APP.m(hO(n))){n.preventDefault();n=$APP.l(a,"__xTraceHistoryDropOverlay");var r=hM(a,kO);iM(a,kO,($APP.m(r)?r:0)+1);n=n.removeAttribute("hidden")}else n=null;return n}],[b,"dragover",function(n){$APP.m(hO(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(hO(n))){n=$APP.l(a,"__xTraceHistoryDropOverlay");var r=$APP.Sl.j,v=hM(a,kO);r=r.call($APP.Sl,0,($APP.m(v)?v:0)-1);iM(a,kO,r);n=r===
|
|
94
|
+
0?n.setAttribute("hidden",""):null}else n=null;return n}],[b,"drop",function(n){$APP.m(hO(n))?(n.preventDefault(),iM(a,kO,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)?gO(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)&&!cO(n.target):r;$APP.m(r)?(n.preventDefault(),n=XN(a)):
|
|
95
|
+
n=null;return n}]]},rna=function(a,b){b=qna(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.S(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}},sna=function(a){if($APP.m($APP.l(a,"__xTraceHistoryHighlightRaf")))return null;var b=requestAnimationFrame(function(){$APP.Di(a,
|
|
96
|
+
"__xTraceHistoryHighlightRaf",null);return gN(a)});return $APP.Di(a,"__xTraceHistoryHighlightRaf",b)},tna=function(a){function b(){return sna(a)}var c=[[window,"scroll",b,{capture:!0,passive:!0}],[window,"resize",b,{capture:!1,passive:!0}]];$APP.Di(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},una=function(a,b){$APP.m($APP.l(a,"__xTraceHistoryFilter"))||$APP.S(a,"__xTraceHistoryFilter",new $APP.K(null,3,
|
|
97
|
+
[$APP.mt,null,DL,b,EL,null],null));$APP.m($APP.l(a,"__xTraceHistoryView"))||$APP.S(a,"__xTraceHistoryView",$APP.Rs);$APP.m($APP.l(a,"__xTraceHistoryViewSelected"))||$APP.S(a,"__xTraceHistoryViewSelected",{});$APP.m($APP.l(a,"__xTraceHistoryAxisMode"))||$APP.S(a,"__xTraceHistoryAxisMode",$APP.hq);$APP.m($APP.l(a,"__xTraceHistoryDockMode"))||$APP.S(a,"__xTraceHistoryDockMode",RN);$APP.l(a,"__xTraceHistoryCollapsed")==null&&$APP.S(a,"__xTraceHistoryCollapsed",!1);WN(a,$APP.D($APP.l(a,"__xTraceHistoryCollapsed")))},
|
|
98
|
+
vna=function(a){if($APP.m($APP.l(a,"__xTraceHistoryMounted")))return null;a.__xTraceHistoryInternal=!0;var b=kM().length;vma(function(){var c=bma(),d=ona(a,c);pna(a,d);una(a,c);rna(a,d);tna(a);c=oM.i($APP.Io.l(lM,tma,function(){var e=$APP.l(a,"__xTraceHistoryView"),f=aN(),h=f.length;var k=hM(a,lO);k=$APP.m(k)?k:0;h>k?(iM(a,lO,h),$APP.z.j(e,$APP.Rs)&&kM().length===0&&$APP.S(a,"__xTraceHistoryView",new $APP.H(null,2,5,$APP.J,[eM,f[h-1].id],null))):h<k&&iM(a,lO,h);return SN(a)}));$APP.S(a,"__xTraceHistorySubToken",
|
|
99
|
+
c);SN(a);return $APP.S(a,"__xTraceHistoryMounted",!0)});return $APP.M.j(b,kM().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},mO=function(){return $APP.m(document.querySelector("x-trace-history"))?null:document.body.appendChild(document.createElement("x-trace-history"))},nO=function(){if(jL()){var a=$APP.Io.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.Ah(wna,c),d=$APP.D(c));a.call($APP.Io,yL,$APP.Pg,$APP.Ml,b,$APP.Jc([qL,d]));$APP.Ke($APP.ti,HM);$APP.Ke($APP.jj,HM);$APP.Ke(sM,0);$APP.Ke(zM,$APP.Xe);yma();$APP.Ke(GM,!0);a=$APP.l(window,"BareDOM");a=$APP.m(a)?a:{};a.traceHistory={records:zma,sessions:WM,"export":Fma,download:dN,stopSession:TM,"import":fO,pause:LM,importRecords:bN,sessionRecords:XM,startSession:UM,
|
|
101
|
+
components:Ama,clear:RM,imports:aN,removeImport:ZM,resume:MM};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.An();$APP.pm();$APP.Tk();$APP.Kn();$APP.vj("x-trace-history",xna);return jL()?$APP.m(document.body)?mO():document.addEventListener("DOMContentLoaded",mO,{once:!0}):null},oO=function(){return nO()},VL=function VL(a){switch(arguments.length){case 2:return VL.j(arguments[0],
|
|
102
|
+
arguments[1]);case 3:return VL.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 VL.o(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.hc(c.slice(3),0,null):null)}};VL.j=function(a,b){return b};VL.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};VL.o=function(a,b,c,d){return $APP.za(function(e,f){return VL.l(a,e,f)},VL.l(a,b,c),d)};
|
|
103
|
+
VL.H=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)};VL.J=3;
|
|
104
|
+
var sL=new $APP.F(null,"start-t","start-t",1829305353),uN=new $APP.F(null,"node-count","node-count",383091297),uL=new $APP.F(null,"start-id","start-id",-456790067),vL=new $APP.F(null,"end-id","end-id",2084513705),RN=new $APP.F(null,"timeline","timeline",192903161),EN=new $APP.F(null,"chip-key","chip-key",644014552),yM=new $APP.F(null,"next-component-id","next-component-id",1588977206),qN=new $APP.F(null,"edges","edges",-694791395),oM=new $APP.F(null,"next-token","next-token",1432414974),pL=new $APP.F(null,
|
|
105
|
+
"user-agent","user-agent",1220426212),MN=new $APP.F(null,"causality","causality",-712927373),qL=new $APP.F(null,"forensic?","forensic?",188264321),EL=new $APP.F(null,"search","search",1564939822),cM=new $APP.F(null,"session","session",1008279103),tN=new $APP.F(null,"causality-layout","causality-layout",-1264013405),FN=new $APP.F(null,"recording?","recording?",-1477514924),XL=new $APP.F(null,"records","records",1326822832),pM=new $APP.F(null,"new?","new?",777958557),Uma=new $APP.F(null,"max-depth",
|
|
106
|
+
"max-depth",127060793),bM=new $APP.F(null,"capped?","capped?",-65680820),sN=new $APP.F(null,"cy","cy",755331060),rN=new $APP.F(null,"cx","cx",1272694324),ZL=new $APP.F(null,"x-start","x-start",1183238797),CN=new $APP.F(null,"scroll-left","scroll-left",-211761103),RL=new $APP.F(null,"lane-id","lane-id",2005926623),FL=new $APP.F(null,"haystack-fn","haystack-fn",1813797862),OM=new $APP.F(null,"sessions","sessions",-699316392),tL=new $APP.F(null,"end-t","end-t",-218701242),mM=new $APP.F(null,"by-token",
|
|
107
|
+
"by-token",-1485378511),pO=new $APP.F(null,"next-import-id","next-import-id",287496955),aM=new $APP.F(null,"record","record",-779106859),AM=new $APP.F(null,"components","components",-1073188942),JM=new $APP.F(null,"envelope","envelope",-236796318),mL=new $APP.F(null,"cause-id","cause-id",-1282947263),hma=new $APP.F(null,"x-end","x-end",-1725631203),ema=new $APP.F(null,"tmax","tmax",2006118392),$N=new $APP.F(null,"bin-count","bin-count",1792167977),lO=new $APP.F(null,"auto-switch-import","auto-switch-import",
|
|
108
|
+
-809333661),AN=new $APP.F(null,"causality-needs-fit","causality-needs-fit",1728707358),pN=new $APP.F(null,"to-cy","to-cy",1542880464),oN=new $APP.F(null,"to-cx","to-cx",698995232),DN=new $APP.F(null,"scroll-top","scroll-top",-46723100),DM=new $APP.F(null,"rate-limit","rate-limit",1748082022),SL=new $APP.F(null,"tmin","tmin",-39508962),yna=new $APP.F(null,"to-id","to-id",1021626465),ima=new $APP.F(null,"t-min","t-min",-488887638),qM=new $APP.F(null,"next-id","next-id",-224240762),DL=new $APP.F(null,
|
|
109
|
+
"categories","categories",178386610),jma=new $APP.F(null,"t-max","t-max",-949530573),kN=new $APP.F(null,"time","time",1385887882),YL=new $APP.F(null,"dominant-cat","dominant-cat",-914257775),jO=new $APP.F(null,"lifecycle","lifecycle",341496205),AL=new $APP.F(null,"other","other",995793544),YM=new $APP.F("baredom.dev.x-trace-history.model","parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),QL=new $APP.F(null,"min-t","min-t",-1349871659),KM=new $APP.F(null,"imports","imports",
|
|
110
|
+
-1249933394),WL=new $APP.F(null,"bin-i","bin-i",791326307),rL=new $APP.F(null,"first-seen","first-seen",390191468),GN=new $APP.F(null,"import?","import?",-40157302),iO=new $APP.F(null,"dom","dom",-1236537922),PM=new $APP.F(null,"next-session-id","next-session-id",1944278844),$M=new $APP.F(null,"imported-at","imported-at",-1157103926),qO=new $APP.F(null,"depth","depth",1768663640),ZN=new $APP.F(null,"record-id","record-id",-1468971877),QM=new $APP.F(null,"active-session-id","active-session-id",943086451),
|
|
111
|
+
mN=new $APP.F(null,"from-cx","from-cx",-293616201),nN=new $APP.F(null,"from-cy","from-cy",1126835724),oL=new $APP.F(null,"exported-at","exported-at",1661975683),lL=new $APP.F(null,"component-id","component-id",1551113783),dO=new $APP.F(null,"import-error","import-error",1672727808),kO=new $APP.F(null,"drag-depth","drag-depth",-226189617),zna=new $APP.F(null,"from-id","from-id",-106962526),HN=new $APP.F(null,"import-id","import-id",940580069),TL=new $APP.F(null,"span","span",1394872991),OL=new $APP.F("baredom.dev.x-trace-history.model",
|
|
112
|
+
"document","baredom.dev.x-trace-history.model/document",-1776453896),eM=new $APP.F(null,"import","import",-1399500709);var NM=$APP.Xf.j($APP.Po,$APP.Xe),Xla=iL("(?:^\\?|\x26)"+$APP.N.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),wna=iL("(?:^\\?|\x26)"+$APP.N.i("baredom-trace-history")+"\x3d"+$APP.N.i("raw")+"(?:\x26|$)"),cma=new $APP.K(null,4,[$APP.Vr,new $APP.ah(null,new $APP.K(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.ur,new $APP.ah(null,new $APP.K(null,1,["state/instance-field-set",null],null),null),iO,new $APP.ah(null,new $APP.K(null,2,["dom/attribute-removed",
|
|
113
|
+
null,"dom/attribute-set",null],null),null),jO,new $APP.ah(null,new $APP.K(null,3,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/disconnected",null],null),null)],null),zL=new $APP.H(null,4,5,$APP.J,[$APP.Vr,$APP.ur,iO,jO],null),ML=new $APP.K(null,5,[$APP.Vr,"#94e2d5",$APP.ur,"#f9e2af",iO,"#fab387",jO,"#cba6f7",AL,"#6c7086"],null),$L=function $L(a,b){return $APP.Md(b,new $APP.Pd(null,function(){return $APP.Se(function(d){return $L.j?$L.j(a,d):$L.call(null,a,d)},$APP.Jc([oma(a,
|
|
114
|
+
b.id)]))},null))},vN=function vN(a){return $APP.za($APP.Rj,0,$APP.Oe.j(vN,$APP.Tt.i(a)))+1},wN=function wN(a){return $APP.$c($APP.Tt.i(a))?0:$APP.ge($APP.Sl,$APP.Oe.j(wN,$APP.Tt.i(a)))+1},xN=function xN(a,b,c){var e=aM.i(a),f=$APP.Tt.i(a);a=30+b*56;if($APP.$c(f))return new $APP.H(null,2,5,$APP.J,[new $APP.K(null,6,[$APP.ir,e.id,aM,e,rN,c+70,sN,a,qO,b,$APP.Tt,$APP.Xe],null),c+158],null);f=$APP.za(function(n,r){var v=$APP.B(n,0,null);n=$APP.B(n,1,null);var x=b+1;n=xN.l?xN.l(r,x,n):xN.call(null,r,x,
|
|
115
|
+
n);r=$APP.B(n,0,null);n=$APP.B(n,1,null);return new $APP.H(null,2,5,$APP.J,[$APP.Id.j(v,r),n],null)},new $APP.H(null,2,5,$APP.J,[$APP.Xe,c],null),f);c=$APP.B(f,0,null);f=$APP.B(f,1,null);var h=rN.i($APP.t(c)),k=rN.i($APP.Nc(c));return new $APP.H(null,2,5,$APP.J,[new $APP.K(null,6,[$APP.ir,e.id,aM,e,rN,(h+k)/2,sN,a,qO,b,$APP.Tt,c],null),f],null)},yN=function yN(a){return $APP.Xf.j(new $APP.H(null,1,5,$APP.J,[$APP.Pj.j(a,$APP.Tt)],null),$APP.Se(yN,$APP.Jc([$APP.Tt.i(a)])))},zN=function zN(a){var c=
|
|
116
|
+
$APP.ir.i(a),d=rN.i(a),e=sN.i(a);return $APP.rf($APP.Se(function(f){return $APP.Md(new $APP.K(null,6,[zna,c,mN,d,nN,e,yna,$APP.ir.i(f),oN,rN.i(f),pN,sN.i(f)],null),zN.i?zN.i(f):zN.call(null,f))},$APP.Jc([$APP.Tt.i(a)])))};var yL=$APP.Je($APP.Ag([qL,$APP.Ml,DM,qM,$APP.op,KM,XL,AM,QM,yM,OM,pO,PM],[!1,5E3,$APP.oe,0,!1,$APP.Xe,NM,$APP.oe,null,0,$APP.Xe,0,0])),lM=$APP.Je(new $APP.K(null,3,[oM,0,$APP.Nl,!1,mM,$APP.oe],null)),zM=$APP.Je($APP.Xe),IM=$APP.Je(null),GM=$APP.Je(!1),sM=$APP.Je(0),jM=$APP.Je([null,null]),wma=new $APP.ah(null,new $APP.K(null,3,[$APP.Bi,null,$APP.ui,null,$APP.zi,null],null),null),xma=new $APP.ah(null,new $APP.K(null,3,[$APP.Ni,null,$APP.Vi,null,$APP.Hi,null],null),null),fO=function fO(a){switch(arguments.length){case 1:return fO.i(arguments[0]);
|
|
117
|
+
case 2:return fO.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};fO.i=function(a){return fO.j(a,null)};
|
|
118
|
+
fO.j=function(a,b){a=Ema(a);var c=$APP.G(a);a=$APP.C(c,$APP.Tq);c=$APP.C(c,$APP.xj);if($APP.m(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=pO.i($APP.db(yL));b=b==null||$APP.z.j("",b)?"Import "+$APP.N.i(d):b;var e=new $APP.K(null,4,[$APP.ir,d,$APP.Z,b,$M,c,JM,a],null);$APP.Io.j(yL,function(f){return $APP.oi.l($APP.oi.M(f,KM,$APP.Id,e),pO,$APP.sc)});nM();return d};fO.J=2;var QN,rO=window.matchMedia;QN=$APP.m(rO)?rO.call(window,"(prefers-reduced-motion: reduce)"):null;var Gma=RegExp("\x26","g"),Hma=RegExp("\x3c","g"),Ima=RegExp("\x3e","g"),Jma=RegExp('"',"g"),Kma=RegExp("'","g"),JN=new WeakMap,kna=new $APP.ah(null,new $APP.K(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),xna=new $APP.K(null,5,[$APP.uj,!0,$APP.nj,[],$APP.oj,function(a){return vna(a)},$APP.pj,function(a){var b=$APP.l(a,"__xTraceHistorySubToken");$APP.m(b)&&$APP.Io.o(lM,$APP.oi,mM,$APP.Pj,$APP.Jc([b]));b=hM(a,dO);$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.S(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.Di(a,"__xTraceHistoryHighlightListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightRaf");$APP.m(b)&&(cancelAnimationFrame(b),$APP.Di(a,"__xTraceHistoryHighlightRaf",
|
|
120
|
+
null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.m(b)&&$APP.Wk(b);$APP.Di(a,"__xTraceHistoryHighlightLayer",null);$APP.Di(a,"__xTraceHistoryHighlightBox",null);$APP.Di(a,"__xTraceHistoryHighlightCid",null);$APP.S(a,"__xTraceHistorySubToken",null);iM(a,dO,null);return $APP.S(a,"__xTraceHistoryMounted",null)},$APP.qj,function(){return null}],null);$APP.ha("baredom.exports.x_trace_history.init",oO);nO();export const init=oO;
|