@vanelsas/baredom 2.9.0 → 3.0.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/dist/baredom.d.ts +20 -0
  4. package/dist/base.js +541 -455
  5. package/dist/integrity.json +103 -102
  6. package/dist/x-alert.js +16 -17
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +14 -15
  9. package/dist/x-badge.js +9 -9
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -13
  13. package/dist/x-button.js +1 -17
  14. package/dist/x-cancel-dialogue.js +13 -13
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +31 -31
  17. package/dist/x-chart.js +47 -47
  18. package/dist/x-checkbox.js +1 -11
  19. package/dist/x-chip.js +1 -1
  20. package/dist/x-collapse.js +10 -10
  21. package/dist/x-color-picker.js +45 -45
  22. package/dist/x-combobox.js +26 -26
  23. package/dist/x-command-palette.js +24 -24
  24. package/dist/x-confetti.js +24 -22
  25. package/dist/x-container.js +5 -4
  26. package/dist/x-context-menu.js +20 -20
  27. package/dist/x-copy.js +20 -20
  28. package/dist/x-currency-field.js +23 -23
  29. package/dist/x-date-picker.js +40 -40
  30. package/dist/x-divider.js +9 -9
  31. package/dist/x-drawer.js +9 -9
  32. package/dist/x-dropdown.js +11 -11
  33. package/dist/x-fieldset.js +5 -5
  34. package/dist/x-file-download.js +7 -7
  35. package/dist/x-file-upload.js +22 -22
  36. package/dist/x-form-field.js +15 -15
  37. package/dist/x-form.js +9 -9
  38. package/dist/x-gaussian-blur.js +12 -12
  39. package/dist/x-grid.js +7 -6
  40. package/dist/x-i18n-provider.js +7 -7
  41. package/dist/x-i18n.js +4 -4
  42. package/dist/x-icon.js +6 -6
  43. package/dist/x-image.js +16 -17
  44. package/dist/x-kbd.js +15 -15
  45. package/dist/x-kinetic-canvas.js +25 -25
  46. package/dist/x-kinetic-font.js +27 -27
  47. package/dist/x-kinetic-typography.js +33 -33
  48. package/dist/x-liquid-dock.js +38 -38
  49. package/dist/x-liquid-fill.js +43 -43
  50. package/dist/x-liquid-glass.js +47 -47
  51. package/dist/x-menu-item.js +8 -8
  52. package/dist/x-menu.js +10 -9
  53. package/dist/x-metaball-cursor.js +26 -26
  54. package/dist/x-modal.js +10 -10
  55. package/dist/x-morph-stack.js +36 -37
  56. package/dist/x-multi-combobox.js +36 -36
  57. package/dist/x-navbar.js +12 -12
  58. package/dist/x-neural-glow.js +32 -32
  59. package/dist/x-notification-center.js +9 -9
  60. package/dist/x-organic-divider.js +17 -17
  61. package/dist/x-organic-progress.js +37 -37
  62. package/dist/x-organic-shape.js +13 -13
  63. package/dist/x-otp-input.js +22 -22
  64. package/dist/x-pagination.js +15 -15
  65. package/dist/x-particle-button.js +51 -51
  66. package/dist/x-popover.js +25 -26
  67. package/dist/x-progress-circle.js +8 -8
  68. package/dist/x-progress.js +10 -10
  69. package/dist/x-proximity-list.js +20 -19
  70. package/dist/x-radio.js +11 -11
  71. package/dist/x-ripple-effect.js +10 -10
  72. package/dist/x-scroll-parallax.js +18 -18
  73. package/dist/x-scroll-stack.js +17 -17
  74. package/dist/x-scroll-story.js +34 -34
  75. package/dist/x-scroll-timeline.js +44 -44
  76. package/dist/x-scroll.js +38 -38
  77. package/dist/x-search-field.js +1 -15
  78. package/dist/x-select.js +1 -11
  79. package/dist/x-sidebar.js +16 -16
  80. package/dist/x-skeleton-group.js +12 -12
  81. package/dist/x-skeleton.js +1 -1
  82. package/dist/x-slider.js +15 -15
  83. package/dist/x-soft-body.js +22 -22
  84. package/dist/x-spacer.js +4 -4
  85. package/dist/x-spinner.js +4 -4
  86. package/dist/x-splash.js +12 -12
  87. package/dist/x-spotlight-card.js +12 -12
  88. package/dist/x-stat.js +10 -10
  89. package/dist/x-stepper.js +14 -14
  90. package/dist/x-switch.js +10 -10
  91. package/dist/x-tab.js +7 -7
  92. package/dist/x-table-cell.js +18 -18
  93. package/dist/x-table-row.js +8 -8
  94. package/dist/x-table.js +12 -12
  95. package/dist/x-tabs.js +11 -11
  96. package/dist/x-text-area.js +19 -19
  97. package/dist/x-theme.js +25 -25
  98. package/dist/x-timeline-item.js +20 -21
  99. package/dist/x-timeline.js +8 -8
  100. package/dist/x-toast.js +22 -23
  101. package/dist/x-toaster.js +8 -8
  102. package/dist/x-tooltip.js +12 -12
  103. package/dist/x-trace-history.d.ts +242 -0
  104. package/dist/x-trace-history.js +118 -0
  105. package/dist/x-typography.js +9 -9
  106. package/dist/x-welcome-tour.js +60 -59
  107. package/package.json +6 -1
@@ -0,0 +1,118 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var yM=function(a,b,c){for(var d=$APP.t(a.$b),e=null,f=0,h=0;;)if(h<f){var l=e.F(null,h),m=$APP.Gc(l,0,null);l=$APP.Gc(l,1,null);l.J?l.J(m,a,b,c):l.call(null,m,a,b,c);h+=1}else if(d=$APP.t(d))$APP.Wc(d)?(e=$APP.Ab(d),d=$APP.Bb(d),m=e,f=$APP.y(e),e=m):(e=$APP.u(d),m=$APP.Gc(e,0,null),l=$APP.Gc(e,1,null),l.J?l.J(m,a,b,c):l.call(null,m,a,b,c),d=$APP.w(d),e=null,f=0),h=0;else break},zM=function(a,b){const c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},AM=function(a,b){if(a!=null&&a.xc!=null)a=a.xc(a,
3
+ b);else{var c=AM[$APP.aa(a==null?null:a)];if(c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else if(c=AM._,c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else throw $APP.ta("IReset.-reset!",a);}return a},BM=function(a){return a+1},CM=function(a){return a-1},DM=function(a,b){return $APP.dd(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.cd($APP.ad);return e.j?e.j(c,d):e.call(null,c,d)},b)},EM=function(a,b){return DM(a,b)},FM=function(a){if(a instanceof RegExp)return a;var b=$APP.Hg(/^\(\?([idmsux]*)\)/,
4
+ a),c=$APP.Gc(b,0,null);b=$APP.Gc(b,1,null);return new RegExp(a.substring(c==null?0:c.length),$APP.n(b)?b:"")},GM=function(a){return $APP.Nd($APP.xa(function(b,c){return $APP.Pd(b,c,$APP.Hc(b,c,0)+1)},$APP.tb($APP.de),a))},HM=function(a){return new $APP.M(null,2,5,$APP.N,[$APP.ne(200,a),$APP.oe(200,a)],null)},IM=function(a,b){if(a instanceof $APP.le){var c=a.lc;if(c!=null&&!$APP.n(c.i?c.i(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;a.$b!=null&&yM(a,c,b);
5
+ return b}return AM(a,b)},KM=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.Hg(JM,b);return $APP.D(b)||$APP.k(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.A.j("raw",$APP.k(a,"BAREDOM_TRACE_HISTORY"))},LM=function(a){try{return a==null?null:$APP.$l(a)}catch(b){try{return""+$APP.V.i(a)}catch(c){return"(unprintable)"}}},PM=function(a,b,c){a=$APP.G(a);var d=$APP.C(a,$APP.Q),e=$APP.C(a,MM),f=$APP.C(a,NM),h=$APP.C(a,OM);var l=$APP.Bd(d);l=$APP.n(l)?""+$APP.V.i(l)+"/"+$APP.V.i($APP.yg(d)):$APP.yg(d);
6
+ b={schemaVersion:1,id:b,t:c,type:l,tag:e,componentId:f,causeId:h};switch(d instanceof $APP.F?d.ga:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return c=$APP.Kh.i(a),b.eventName=c,c=LM($APP.U.i(a)),b.detail=c,c=$APP.D($APP.Lh.i(a)),b.cancelable=c,a=$APP.D($APP.Mh.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.Dh.i(a),b.field=c,a=LM($APP.Eh.i(a)),b.value=a,b;case "dom/attribute-set":return c=$APP.wh.i(a),b.attribute=c,a=$APP.Eh.i(a),
7
+ b.value=a,b;case "dom/attribute-removed":return a=$APP.wh.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.wh.i(a),b.attribute=c,c=$APP.xh.i(a),b.oldValue=c,a=$APP.yh.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":return b;default:return b}},QM=function(a){a=""+$APP.V.i(a);return a.length<2?"0"+$APP.V.i(a):a},RM=function(a,b){return $APP.sf.m($APP.de,$APP.ve(function(c){var d=$APP.Gc(c,0,null);$APP.Gc(c,1,null);return $APP.$c(b,d)}),a)},$M=function(a,
8
+ b,c,d){var e=$APP.G(d);d=$APP.C(e,SM);var f=$APP.C(e,$APP.Up),h=$APP.C(e,TM);e=$APP.C(e,UM);a:{var l=a.length;for(var m=0,q=$APP.tb($APP.qg);;){if(m>=l){l=$APP.vb(q);break a}var r=a[m].componentId;m+=1;q=r!=null?$APP.ub(q,r):q}l=void 0}l=RM(b,l);b=$APP.D(e);e={};l=$APP.t(l);m=null;for(r=q=0;;)if(r<q){var v=m.F(null,r),x=$APP.Gc(v,0,null),z=$APP.Gc(v,1,null);v=e;x=""+$APP.V.i(x);z={tag:MM.i(z),firstSeen:VM.i(z)};v[x]=z;r+=1}else if(l=$APP.t(l))$APP.Wc(l)?(q=$APP.Ab(l),l=$APP.Bb(l),m=q,q=$APP.y(q)):
9
+ (m=$APP.u(l),q=$APP.Gc(m,0,null),r=$APP.Gc(m,1,null),m=e,q=""+$APP.V.i(q),r={tag:MM.i(r),firstSeen:VM.i(r)},m[q]=r,l=$APP.w(l),m=null,q=0),r=0;else break;l=[];c=$APP.t(c);m=null;for(r=q=0;;)if(r<q){v=m.F(null,r);var B=$APP.G(v);v=$APP.C(B,$APP.Pp);x=$APP.C(B,$APP.Z);z=$APP.C(B,WM);var E=$APP.C(B,XM),H=$APP.C(B,YM);B=$APP.C(B,ZM);l.push({id:v,label:x,startT:z,endT:E,startId:H,endId:B});r+=1}else if(c=$APP.t(c))$APP.Wc(c)?(q=$APP.Ab(c),c=$APP.Bb(c),m=q,q=$APP.y(q)):(m=$APP.u(c),z=$APP.G(m),m=$APP.C(z,
10
+ $APP.Pp),q=$APP.C(z,$APP.Z),r=$APP.C(z,WM),v=$APP.C(z,XM),x=$APP.C(z,YM),z=$APP.C(z,ZM),l.push({id:m,label:q,startT:r,endT:v,startId:x,endId:z}),c=$APP.w(c),m=null,q=0),r=0;else break;return{schemaVersion:1,exportedAt:d,origin:f,userAgent:h,forensic:b,components:e,sessions:l,records:a}},aN=function(a){if($APP.qa(a)){if(typeof a.schemaVersion!=="number")return new $APP.O(null,1,[$APP.Nm,"Envelope is missing schemaVersion."],null);if($APP.I(1,a.schemaVersion))return new $APP.O(null,1,[$APP.Nm,"Schema version mismatch: expected "+
11
+ $APP.V.i(1)+", got "+$APP.V.i(a.schemaVersion)+"."],null);if($APP.p($APP.pa(a.records)))return new $APP.O(null,1,[$APP.Nm,"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];if($APP.qa(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.O(null,1,[$APP.qp,a],null):new $APP.O(null,1,[$APP.Nm,"Record at index "+$APP.V.i(b)+" is missing required fields (id, t, type)."],
12
+ null)}return new $APP.O(null,1,[$APP.Nm,"Envelope is not a JSON object."],null)},dN=function(){var a=UM.i($APP.ab(bN));return $APP.n(a)?$APP.vg(cN):$APP.Fl.j($APP.vg(cN),$APP.pq)},gN=function(a){var b=$APP.ge(function(c){var d=$APP.Gc(c,0,null);c=$APP.Gc(c,1,null);return $APP.$c(c,a)?d:null},eN);return $APP.n(b)?b:fN},hN=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.n(b)?b.toLowerCase():""},lN=function(a,b){var c=$APP.G(b),d=$APP.C(c,MM),e=$APP.C(c,iN);b=$APP.C(c,jN);c=$APP.Hc(c,
13
+ kN,hN);if(d=d==null||$APP.A.j("",d)||$APP.A.j("all",d)||$APP.A.j(d,a.tag)){if(e=e==null||$APP.$c(e,gN(a.type)))e=b==null||$APP.A.j("",b)||!((c.i?c.i(a):c.call(null,a)).indexOf(b)<0);d=e}return d},mN=function(a,b){return $APP.Qe(EM(function(c){return c.t},$APP.we(function(c){return lN(c,b)},$APP.zc(a))))},nN=function(a,b){return typeof b==="number"?a.find(function(c){return $APP.A.j(b,c.id)}):null},oN=function(a){if(a!=null)try{var b=JSON.stringify(a),c=""+$APP.V.i(b);return c.length<=60?c:""+$APP.V.i(c.substring(0,
14
+ 60))+"…"}catch(d){return"(unstringifiable)"}else return null},pN=function(a){switch(a.type){case "event/dispatch":return""+$APP.V.i(a.eventName)+$APP.V.i(function(){var b=oN(a.detail);return $APP.n(b)?" "+$APP.V.i(b):null}());case "event/dispatch-cancelable":return""+$APP.V.i(a.eventName)+$APP.V.i($APP.n(a.defaultPrevented)?" (prevented)":null)+$APP.V.i(function(){var b=oN(a.detail);return $APP.n(b)?" "+$APP.V.i(b):null}());case "event/dispatch-document":return""+$APP.V.i(a.eventName)+$APP.V.i(function(){var b=
15
+ oN(a.detail);return $APP.n(b)?" "+$APP.V.i(b):null}());case "state/instance-field-set":return""+$APP.V.i(a.field)+" \x3d "+$APP.V.i(function(){var b=oN(a.value);return $APP.n(b)?b:"null"}());case "dom/attribute-set":return""+$APP.V.i(a.attribute)+"\x3d"+$APP.V.i($APP.Yg($APP.zc([a.value])));case "dom/attribute-removed":return""+$APP.V.i(a.attribute)+" removed";case "lifecycle/connected":return"connected";case "lifecycle/disconnected":return"disconnected";case "lifecycle/attribute-changed":return""+
16
+ $APP.V.i(a.attribute)+": "+$APP.V.i($APP.Yg($APP.zc([a.oldValue])))+" → "+$APP.V.i($APP.Yg($APP.zc([a.newValue])));default:return"("+$APP.V.i(a.type)+")"}},qN=function(a){if(typeof a!=="number")return"";if(a<1E3)return""+$APP.V.i(a.toFixed(0))+"ms";if(a<6E4)return""+$APP.V.i((a/1E3).toFixed(3))+"s";var b=$APP.qd(a,6E4)/1E3;return""+$APP.V.i(Math.floor(a/6E4))+"m"+$APP.V.i(b.toFixed(1))+"s"},sN=function(a){a=gN(a.type);return $APP.C(rN,$APP.n(a)?a:fN)},uN=function(a){a=a.componentId;return $APP.n(a)?
17
+ a:tN},xN=function(a){return $APP.Qe(EM(vN,$APP.pe.j(function(b){var c=$APP.Gc(b,0,null);b=$APP.Gc(b,1,null);var d=$APP.u(b);return new $APP.O(null,3,[wN,c,MM,d.tag,vN,$APP.Wd($APP.Hl,$APP.pe.j(function(e){return e.t},b))],null)},$APP.fh(uN,a))))},BN=function(a){if($APP.t(a)){var b=$APP.pe.j(function(c){return c.t},a);a=$APP.Wd($APP.Hl,b);b=$APP.Wd($APP.Gl,b);return new $APP.O(null,3,[yN,a,zN,b,AN,$APP.Gl.j(1,b-a)],null)}return null},DN=function(a,b){return $APP.t(a)?$APP.Xd(CN,function(c){return Math.abs(c.t-
18
+ b)},a):null},EN=function(a){if($APP.t(a)){var b=GM($APP.pe.j(function(d){return gN(d.type)},a)),c=$APP.Wd($APP.Gl,$APP.mg(b));a=$APP.ge(function(d){return $APP.A.j(c,$APP.C(b,d))?d:null},cN);return $APP.n(a)?a:fN}return null},MN=function(a,b){a=$APP.fh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/4)},a);return $APP.Qe(EM(FN,$APP.pe.j(function(c){var d=$APP.Gc(c,0,null),e=$APP.Gc(c,1,null);c=$APP.pe.j(function(f){return f.t},e);e=$APP.Qe(EM(function(f){return f.id},e));return new $APP.O(null,
19
+ 7,[FN,d,GN,e,HN,EN(e),IN,d*4,JN,(d+1)*4,KN,$APP.Wd($APP.Hl,c),LN,$APP.Wd($APP.Gl,c)],null)},a)))},NN=function(a){return $APP.ge(function(b){return $APP.y(GN.i(b))>3},a)},ON=function(a){return $APP.t(a)?$APP.Wd($APP.Gl,$APP.pe.j(function(b){return $APP.y(GN.i(b))},a)):0},PN=function(a,b){var c=b.id;a=EM(function(d){return d.t},$APP.we(function(d){return $APP.A.j(c,d.causeId)},$APP.zc(a)));return new $APP.O(null,2,[$APP.kr,$APP.y(a),GN,$APP.Qe($APP.ne(50,a))],null)},QN=function(a,b){return $APP.Qe(EM(function(c){return c.id},
20
+ $APP.we(function(c){return $APP.A.j(b,c.causeId)},$APP.zc(a))))},VN=function(a,b){var c=HM(RN(a,b));a=$APP.Gc(c,0,null);c=$APP.Gc(c,1,null);var d=$APP.fh(function(e){return e.causeId},a);return $APP.Dk.m(function h(f){var l=f.id;l=d.i?d.i(l):d.call(null,l);return new $APP.O(null,2,[SN,f,TN,$APP.ze(h,l)],null)}(b),UN,$APP.D($APP.t(c)))},XN=function(a,b){return typeof b==="number"?$APP.ge(function(c){return $APP.A.j(b,$APP.Pp.i(c))?c:null},WN.i(a)):null},YN=function(a,b,c,d){b===0?c="No records yet — interact with components to start tracing.":
21
+ a===0?c=""+$APP.V.i(b)+" "+$APP.V.i($APP.A.j(1,b)?"record":"records")+" · all hidden by filter":(a=""+$APP.V.i(a)+$APP.V.i($APP.I(a,b)?" of "+$APP.V.i(b):null)+" "+$APP.V.i($APP.A.j(1,a)?"record":"records")+" · "+$APP.V.i(d)+" "+$APP.V.i($APP.A.j(1,d)?"lane":"lanes"),b=$APP.V,d=b.i,c=AN.i(c),c=$APP.n(c)?" · spanning "+$APP.V.i(qN(c)):null,c=a+d.call(b,c));return c},$N=function(a){return $APP.Vc(a)&&$APP.A.j(ZN,$APP.u(a))},bO=function(a){return $APP.Vc(a)&&$APP.A.j(aO,$APP.u(a))},cO=function(a){return $APP.Vc(a)&&
22
+ ($APP.A.j(ZN,$APP.u(a))||$APP.A.j(aO,$APP.u(a)))?$APP.Cc(a):null},dO=function(a,b){a=$APP.k(a,"__xTraceHistoryUiState");return $APP.n(a)?(b=$APP.k(a,$APP.yg(b)),void 0===b?null:b):null},eO=function(a,b,c){var d=$APP.k(a,"__xTraceHistoryUiState");d=$APP.n(d)?d:{};b=$APP.yg(b);d[b]=c;a.__xTraceHistoryUiState=d;return null},gO=function(){var a=GN.i($APP.ab(bN)),b=$APP.ab(fO),c=b[1];if(b[0]===a)return c;b=$APP.$l($APP.Qe(a));IM(fO,[a,b]);return b},lO=function(){var a=hO.J(iO,$APP.Dk,jO,!1);a=$APP.G(a);
23
+ a=$APP.C(a,kO);a=$APP.t(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.F(null,d);$APP.Gc(e,0,null);e=$APP.Gc(e,1,null);try{e.H?e.H():e.call(null)}catch(f){}d+=1}else if(a=$APP.t(a)){if($APP.Wc(a))c=$APP.Ab(a),a=$APP.Bb(a),b=c,c=$APP.y(c);else{b=$APP.u(a);$APP.Gc(b,0,null);e=$APP.Gc(b,1,null);try{e.H?e.H():e.call(null)}catch(f){}a=$APP.w(a);b=null;c=0}d=0}else return null},mO=function(){if(iO instanceof $APP.le){var a=iO.state;a=$APP.Dk.m?$APP.Dk.m(a,jO,!0):$APP.Dk.call(null,a,jO,!0);if(iO instanceof
24
+ $APP.le){var b=iO.lc;if(b!=null&&!$APP.n(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=iO.state;iO.state=a;iO.$b!=null&&yM(iO,b,a);a=new $APP.M(null,2,5,$APP.N,[b,a],null)}else a=new $APP.M(null,2,5,$APP.N,[$APP.ab(iO),AM(iO,a)],null)}else a=new $APP.M(null,2,5,$APP.N,[$APP.ab(iO),$APP.Al(iO,$APP.Dk,jO,!0)],null);b=$APP.Gc(a,0,null);$APP.Gc(a,1,null);$APP.n(jO.i(b))||requestAnimationFrame(lO)},pO=function(a,b){var c=nO.i(a)+1;return oO($APP.Dk.m(a,nO,c),new $APP.M(null,
25
+ 2,5,$APP.N,[kO,c],null),b)},sO=function(){var a=hO.J(bN,qO,rO,BM);return rO.i(a)-1},uO=function(a){hO.j(tO,BM);try{a.H?a.H():a.call(null)}finally{hO.j(tO,CM)}},vO=function(a){var b=a.getRootNode();return b instanceof ShadowRoot?b.host:a.parentNode},wO=function(a){if(a instanceof Node)for(a=vO(a);;){if(a==null||a===document)return!1;if($APP.n($APP.k(a,"__xTraceHistoryInternal")))return!0;a=vO(a)}else return!1},CO=function(a,b,c,d){var e=$APP.ab(bN),f=$APP.sh.i(a);d=(d=$APP.p(d))?$APP.Pm.i(e):d;d=$APP.n(d)?
26
+ d:wO(f);if(!$APP.n(d)){d=f==null?null:f.tagName;d=d==null?null:d.toLowerCase();d=$APP.n(d)?d:"document";var h=xO.i(e);if($APP.A.j("document",d))f=new $APP.O(null,2,[$APP.Pp,null,yO,!1],null);else{var l=$APP.k(f,"__xTraceHistoryId");l!=null?f=new $APP.O(null,2,[$APP.Pp,l,yO,!1],null):(f.__xTraceHistoryId=h,f=new $APP.O(null,2,[$APP.Pp,h,yO,!0],null))}h=$APP.G(f);f=$APP.C(h,$APP.Pp);h=$APP.C(h,yO);l=$APP.Nc($APP.ab(zO));a=$APP.Dk.B(a,MM,d,$APP.zc([NM,f,OM,l]));b=PM(a,b,c);a=GN.i(e);l=AO.i(e);b=$APP.y(a)>=
27
+ l?$APP.wd.j($APP.Oc(a),b):$APP.wd.j(a,b);c=$APP.n(h)?$APP.Dk.m(BO.i(e),f,new $APP.O(null,2,[MM,d,VM,c],null)):BO.i(e);e=$APP.n(h)?f+1:xO.i(e);hO.B(bN,$APP.Dk,GN,b,$APP.zc([xO,e,BO,c]));mO()}},DO=function(a,b){b=$APP.k(b,"__xTraceHistoryId");if($APP.n(b)){var c=$APP.Q.i(a);switch(c instanceof $APP.F?c.ga:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return""+$APP.V.i(b)+":evt:"+$APP.V.i($APP.Kh.i(a));case "state/instance-field-set":return""+$APP.V.i(b)+
28
+ ":fld:"+$APP.V.i($APP.Dh.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.V.i(b)+":attr:"+$APP.V.i($APP.wh.i(a));default:return null}}else return null},FO=function(a,b,c,d){var e=$APP.p(UM.i(a));return e?(b=DO(b,c),$APP.n(b)?(a=$APP.C(EO.i(a),b),$APP.n(a)?d-a<16:null):null):e},GO=function(a,b,c){$APP.n(UM.i($APP.ab(bN)))||(a=DO(a,b),$APP.n(a)&&hO.J(bN,oO,new $APP.M(null,2,5,$APP.N,[EO,a],null),c));return null},JO=function(a){var b=$APP.Q.i(a),c=$APP.sh.i(a),d=performance.now();
29
+ if($APP.n(function(){var f=$APP.ab(tO)>0;if(f)return f;f=$APP.ab(HO);f=$APP.n(f)?$APP.$c(IO,b):f;return $APP.n(f)?f:(f=wO(c))?f:FO($APP.ab(bN),a,c,d)}()))return null;var e=sO();CO(a,e,d,!1);return GO(a,c,d)},LO=function(){var a=EventTarget.prototype,b=a.dispatchEvent;$APP.n($APP.k(b,"__xTraceHistoryWrapped"))||(IM(KO,b),b=function(c){var d=$APP.ab(KO);var e=$APP.p($APP.ab(HO));e||(e=$APP.Pm.i($APP.ab(bN)),e=$APP.n(e)?e:$APP.ab(tO)>0||wO(this));if($APP.n(e))c=d.call(this,c);else{e=c instanceof CustomEvent;
30
+ var f=performance.now(),h=e?new $APP.O(null,2,[$APP.Q,this===document?$APP.Qh:$APP.n(c.cancelable)?$APP.Oh:$APP.Jh,$APP.Kh,c.type],null):null;if($APP.n(e?FO($APP.ab(bN),h,this,f):e))c=d.call(this,c);else{var l=sO();hO.m(zO,$APP.wd,l);try{var m=d.call(this,c)}finally{hO.j(zO,$APP.Oc)}if(e)try{CO(new $APP.O(null,6,[$APP.Q,this===document?$APP.Qh:$APP.n(c.cancelable)?$APP.Oh:$APP.Jh,$APP.sh,this,$APP.Kh,c.type,$APP.U,c.detail,$APP.Lh,c.cancelable,$APP.Mh,c.defaultPrevented],null),l,f,!0),GO(h,this,f)}catch(q){}c=
31
+ m}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},MO=function(){return gO()},NO=function(){var a=BO.i($APP.ab(bN)),b={};a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e),h=$APP.Gc(f,0,null),l=$APP.Gc(f,1,null);f=b;h=""+$APP.V.i(h);l={tag:MM.i(l),firstSeen:VM.i(l)};f[h]=l;e+=1}else if(a=$APP.t(a))$APP.Wc(a)?(d=$APP.Ab(a),a=$APP.Bb(a),c=d,d=$APP.y(d)):(c=$APP.u(a),d=$APP.Gc(c,0,null),e=$APP.Gc(c,1,null),c=b,d=""+$APP.V.i(d),e={tag:MM.i(e),firstSeen:VM.i(e)},c[d]=e,a=$APP.w(a),
32
+ c=null,d=0),e=0;else break;return b},OO=function(a){var b=a.components;return b==null?$APP.ye:$APP.pe.j(function(c){return $APP.k(b,c).tag},Object.keys(b))},RO=function(){var a=$APP.ab(bN),b=$APP.pe.j(MM,$APP.mg(BO.i(a)));a=$APP.ue(function(c){c=$APP.G(c);c=$APP.C(c,PO);return OO(c)},$APP.zc([QO.i(a)]));return $APP.Qe($APP.sf.j($APP.xg(),$APP.te.j(b,a)))},SO=function(){hO.J(bN,$APP.Dk,$APP.Pm,!0);mO();return null},TO=function(){hO.J(bN,$APP.Dk,$APP.Pm,!1);mO();return null},YO=function(){hO.B(bN,$APP.Dk,
33
+ GN,UO,$APP.zc([rO,0,VO,$APP.ye,WO,0,XO,null,EO,$APP.de]));mO();return null},ZO=function(){return XO.i($APP.ab(bN))},$O=function(a,b,c,d){return b==null?a:$APP.ze(function(e){e=$APP.G(e);var f=$APP.C(e,$APP.Pp);return $APP.A.j(f,b)?$APP.Dk.B(e,XM,c,$APP.zc([ZM,d])):e},a)},aP=function(){var a=performance.now();hO.j(bN,function(b){return $APP.Dk.m(qO.ua(b,VO,$O,XO.i(b),a,rO.i(b)),XO,null)});mO();return null},bP=function(){ZO()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),
34
+ aP());var a=performance.now();hO.j(bN,function(b){var c=WO.i(b),d=rO.i(b);return $APP.Dk.B(qO.J(b,VO,$APP.wd,new $APP.O(null,6,[$APP.Pp,c,$APP.Z,"Session "+$APP.V.i(c),WM,a,XM,null,YM,d,ZM,null],null)),XO,c,$APP.zc([WO,c+1]))});mO();return XO.i($APP.ab(bN))},cP=function(a,b){var c=$APP.G(b);b=$APP.C(c,YM);c=$APP.C(c,ZM);a=a.id;return a>=b&&(c==null||a<c)},dP=function(){var a=$APP.ab(bN),b=gO(),c=$APP.zc(b);return $APP.$l($APP.ze(function(d){var e=$APP.G(d);d=$APP.C(e,$APP.Pp);var f=$APP.C(e,$APP.Z),
35
+ h=$APP.C(e,WM),l=$APP.C(e,XM),m=$APP.y($APP.we(function(q){return cP(q,e)},c));return{id:d,label:f,startT:h,endT:$APP.n(l)?l:null,recordCount:m}},VO.i(a)))},eP=function(a){var b=$APP.ab(bN),c=$APP.u($APP.we(function(d){return $APP.A.j($APP.Pp.i(d),a)},VO.i(b)));return $APP.n(c)?$APP.$l(EM(function(d){return d.t},$APP.we(function(d){return cP(d,c)},$APP.Ac(gO())))):[]},gP=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=fP}a=$APP.A.j(b,fP)?new $APP.O(null,1,[$APP.Nm,"File is not valid JSON."],
36
+ null):aN(b)}else a=$APP.qa(a)?aN(a):new $APP.O(null,1,[$APP.Nm,"Import expects a JSON string or a parsed envelope object."],null);return a},hP=function(a){hO.J(bN,qO,QO,function(b){return $APP.Qe($APP.xe(function(c){c=$APP.G(c);c=$APP.C(c,$APP.Pp);return $APP.A.j(c,a)},b))});mO();return null},jP=function(){return $APP.$l($APP.ze(function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Pp);var c=$APP.C(b,$APP.Z),d=$APP.C(b,iP);b=$APP.C(b,PO);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},QO.i($APP.ab(bN))))},
37
+ kP=function(a){var b=$APP.u($APP.we(function(c){return $APP.A.j($APP.Pp.i(c),a)},QO.i($APP.ab(bN))));return $APP.n(b)?PO.i(b).records:[]},lP=function(a,b){return new $APP.O(null,4,[SM,a.getTime(),$APP.Up,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.n(c)?c:""}(),TM,function(){var c=navigator;c=c==null?null:c.userAgent;return $APP.n(c)?c:""}(),UM,b],null)},mP=function(){var a=$APP.ab(bN),b=gO(),c=lP(new Date,UM.i(a));return $M(b,BO.i(a),VO.i(a),c)},nP=function(){var a=
38
+ new Date,b=$APP.ab(bN),c=gO(),d=lP(a,UM.i(b));b=$M(c,BO.i(b),VO.i(b),d);b=JSON.stringify(b,null,2);a=""+$APP.V.i("baredom-trace-")+$APP.V.i(a.getFullYear())+$APP.V.i(QM(a.getMonth()+1))+$APP.V.i(QM(a.getDate()))+"-"+$APP.V.i(QM(a.getHours()))+$APP.V.i(QM(a.getMinutes()))+$APP.V.i(QM(a.getSeconds()))+$APP.V.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{c.click()}finally{document.body.removeChild(c),
39
+ URL.revokeObjectURL(b)}return null},tP=function(a){return(""+$APP.V.i(a)).replace(oP,"\x26amp;").replace(pP,"\x26lt;").replace(qP,"\x26gt;").replace(rP,"\x26quot;").replace(sP,"\x26#39;")},uP=function(a){return"\x3coption value\x3d'"+$APP.V.i(tP(a))+"'\x3e"+$APP.V.i(tP(a))+"\x3c/option\x3e"},vP=function(a,b){return"\x3clabel class\x3d'cat'\x3e\x3cx-checkbox data-x-th-cat\x3d'"+$APP.V.i(a)+"' "+$APP.V.i($APP.n(b)?"checked ":null)+"aria-label\x3d'"+$APP.V.i(a)+"'\x3e\x3c/x-checkbox\x3e"+$APP.V.i(a)+
40
+ "\x3c/label\x3e"},wP=function(a,b){return $APP.Wd($APP.V,$APP.pe.j(function(c){var d=$APP.G(c);c=$APP.C(d,wN);var e=$APP.C(d,MM),f=$APP.G(d);d=$APP.C(f,wN);f=$APP.C(f,MM);d=$APP.A.j(tN,d)?"document":""+$APP.V.i(f)+" #"+$APP.V.i(d);f=$APP.A.j(tN,c)?"document":e;var h=$APP.A.j(b,f);return"\x3cdiv class\x3d'lane-label"+$APP.V.i(h?" active":null)+"' data-x-th-lane-tag\x3d'"+$APP.V.i(tP(f))+"' title\x3d'"+$APP.V.i(tP(d))+"'\x3e"+$APP.V.i(tP($APP.A.j(tN,c)?"document":e))+$APP.V.i($APP.I(tN,c)?" \x3cspan class\x3d'cid'\x3e#"+
41
+ $APP.V.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},xP=function(a,b,c){return $APP.n(a)?"\x3cline class\x3d'scrubber' x1\x3d'"+$APP.V.i(b)+"' y1\x3d'0' x2\x3d'"+$APP.V.i(b)+"' y2\x3d'"+$APP.V.i(c)+"' /\x3e":""},yP=function(a,b,c,d){a=EM(function(e){return $APP.A.j(e.id,d)?1:0},a);return $APP.Wd($APP.V,$APP.pe.j(function(e){var f=c.i?c.i(e):c.call(null,e),h=b+10,l=$APP.A.j(e.id,d),m=l?6.5:4.5;return"\x3ccircle class\x3d'dot"+$APP.V.i(l?" selected":null)+"' data-x-th-id\x3d'"+$APP.V.i(e.id)+"' cx\x3d'"+
42
+ $APP.V.i(f)+"' cy\x3d'"+$APP.V.i(h)+"' r\x3d'"+$APP.V.i(m)+"' fill\x3d'"+$APP.V.i(sN(e))+"' /\x3e"},a))},zP=function(a,b,c,d){if(c==null)return"";a=$APP.ge(function(e){e=$APP.G(e);e=$APP.C(e,GN);return $APP.ge(function(f){return $APP.A.j(f.id,c)?f:null},e)},a);return $APP.n(a)?(d=d.i?d.i(a):d.call(null,a),"\x3cline class\x3d'density-selected' x1\x3d'"+$APP.V.i(d)+"' y1\x3d'"+$APP.V.i(b)+"' x2\x3d'"+$APP.V.i(d)+"' y2\x3d'"+$APP.V.i(b+20)+"' /\x3e"):""},AP=function(a,b,c,d){var e=ON(a);return""+$APP.V.i($APP.Wd($APP.V,
43
+ $APP.pe.j(function(f){var h=$APP.G(f),l=$APP.C(h,GN);f=$APP.C(h,HN);h=$APP.C(h,IN);var m=$APP.u(l),q=$APP.C(rN,$APP.n(f)?f:fN);var r=$APP.y(l);r=r==null||r===0||e==null||e===0?0:r>=e?1:.4+.6*((r-1)/$APP.Gl.j(1,e-1));var v=tP($APP.yg($APP.n(f)?f:fN));l=$APP.y(l);f=""+$APP.V.i(l)+" "+$APP.V.i($APP.A.j(1,l)?"record":"records")+" · "+$APP.V.i($APP.yg($APP.n(f)?f:fN));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+$APP.V.i(tP(f))+"' data-x-th-bin-record-id\x3d'"+$APP.V.i(m.id)+
44
+ "' data-x-th-bin-count\x3d'"+$APP.V.i(l)+"' data-x-th-bin-cat\x3d'"+$APP.V.i(v)+"' x\x3d'"+$APP.V.i(h)+"' y\x3d'"+$APP.V.i(b)+"' width\x3d'"+$APP.V.i(4)+"' height\x3d'"+$APP.V.i(20)+"' fill\x3d'"+$APP.V.i(q)+"' fill-opacity\x3d'"+$APP.V.i(r)+"' /\x3e"},a)))+$APP.V.i(zP(a,b,c,d))},CP=function(a,b,c,d,e,f){function h(z){a:{var B=$APP.C(v,z.id);var E=a instanceof $APP.F?a.ga:null;switch(E){case "order":z=$APP.Gl.j(0,e-16);B=r===0||r<0?8:$APP.A.j(1,r)?8+z/2:8+$APP.Hl.j($APP.Gl.j(B/(r-1),0),1)*z;break a;
45
+ case "time":B=z.t;E=$APP.G(d);z=$APP.C(E,yN);E=$APP.C(E,AN);var H=$APP.Gl.j(0,e-16);B=z==null||E==null?8:8+$APP.Hl.j($APP.Gl.j((B-z)/E,0),1)*H;break a;default:throw Error("No matching clause: "+$APP.V.i(E));}}return B}var l=$APP.n(f)?f.id:null,m=$APP.sf.j($APP.de,$APP.je(function(z,B){B=$APP.G(B);B=$APP.C(B,wN);return new $APP.M(null,2,5,$APP.N,[B,z*20],null)},c)),q=$APP.Gl.j(20,20*$APP.y(c)),r=$APP.y(b),v=$APP.sf.j($APP.de,$APP.je(function(z,B){return new $APP.M(null,2,5,$APP.N,[B.id,z],null)},b)),
46
+ x=$APP.fh(uN,b);return"\x3csvg class\x3d'timeline-svg' width\x3d'"+$APP.V.i(e)+"' height\x3d'"+$APP.V.i(q)+"' viewBox\x3d'0 0 "+$APP.V.i(e)+" "+$APP.V.i(q)+"'\x3e"+$APP.V.i($APP.Wd($APP.V,$APP.pe.j(function(z){z=$APP.G(z);var B=$APP.C(z,wN);z=$APP.Hc(x,B,$APP.ye);B=$APP.C(m,B);if($APP.A.j(BP,a)){var E=MN(z,h);z=$APP.n(NN(E))?AP(E,B,l,h):yP(z,B,h,l)}else z=yP(z,B,h,l);return z},c)))+$APP.V.i(xP(f,$APP.n(f)?h(f):null,q))+"\x3c/svg\x3e"},DP=function(a,b,c,d,e,f,h,l){if($APP.y(d)===0)a.innerHTML="",b.innerHTML=
47
+ "\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var m=$APP.Gl.j(200,b.clientWidth);a.innerHTML=wP(e,l);b.innerHTML=CP(c,d,e,f,m,h)}},EP=function(a){return""+$APP.V.i(a.tag)+" · "+$APP.V.i(a.type)},JP=function(a){var b=$APP.G(a);a=$APP.C(b,FP);var c=$APP.C(b,GP),d=$APP.C(b,HP);b=$APP.C(b,IP);c+=14;b-=14;return"\x3cline class\x3d'edge' x1\x3d'"+$APP.V.i(a)+"' y1\x3d'"+$APP.V.i(c)+"' x2\x3d'"+$APP.V.i(d)+"' y2\x3d'"+$APP.V.i(b)+"' /\x3e"},NP=function(a,b){var c=
48
+ $APP.G(a);a=$APP.C(c,WN);var d=$APP.C(c,KP),e=$APP.C(c,$APP.nl);c=$APP.C(c,$APP.ol);return"\x3csvg class\x3d'causality-svg' width\x3d'"+$APP.V.i(e)+"' height\x3d'"+$APP.V.i(c)+"' viewBox\x3d'0 0 "+$APP.V.i(e)+" "+$APP.V.i(c)+"'\x3e"+$APP.V.i($APP.Wd($APP.V,$APP.pe.j(JP,d)))+$APP.V.i($APP.Wd($APP.V,$APP.pe.j(function(f){var h=$APP.G(f),l=$APP.C(h,$APP.Pp);f=$APP.C(h,SN);var m=$APP.C(h,LP);h=$APP.C(h,MP);m-=70;var q=h-14,r=$APP.A.j(l,b),v=m+12,x=m+22,z=m+22,B=q+18,E=q+11,H=tP("#"+$APP.V.i(l)+" "+$APP.V.i(EP(f))+
49
+ " · "+$APP.V.i(pN(f)));l="\x3cg data-x-th-link-id\x3d'"+$APP.V.i(l)+"' role\x3d'button' aria-label\x3d'"+$APP.V.i(H)+"'\x3e\x3ctitle\x3e"+$APP.V.i(H)+"\x3c/title\x3e\x3crect class\x3d'node-rect"+$APP.V.i(r?" selected":null)+"' x\x3d'"+$APP.V.i(m)+"' y\x3d'"+$APP.V.i(q)+"' width\x3d'"+$APP.V.i(140)+"' height\x3d'"+$APP.V.i(28)+"' /\x3e\x3ccircle class\x3d'node-dot' cx\x3d'"+$APP.V.i(v)+"' cy\x3d'"+$APP.V.i(h)+"' r\x3d'"+$APP.V.i(4)+"' fill\x3d'"+$APP.V.i(sN(f))+"' /\x3e\x3ctext class\x3d'node-text id' x\x3d'"+
50
+ $APP.V.i(x)+"' y\x3d'"+$APP.V.i(E)+"'\x3e#"+$APP.V.i(l)+"\x3c/text\x3e\x3ctext class\x3d'node-text' x\x3d'"+$APP.V.i(z)+"' y\x3d'"+$APP.V.i(B)+"'\x3e";h=$APP.V;m=h.i;f=EP(f);f=""+$APP.V.i(f);f=f.length<=22?f:""+$APP.V.i(f.substring(0,21))+"…";return l+m.call(h,tP(f))+"\x3c/text\x3e\x3c/g\x3e"},a)))+"\x3c/svg\x3e"},WP=function(a,b,c,d){if(d==null)eO(a,OP,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+$APP.V.i(tP("Select a record from the timeline to see its causality tree."))+"\x3c/div\x3e";
51
+ else{a:{var e=d;for(var f=0;;){var h=e.causeId;if(typeof h!=="number"||f>=5E3)break a;h=nN(c,h);if($APP.n(h))f+=1,e=h;else break a}e=void 0}e=VN(c,e);c=new $APP.O(null,2,[PP,QP(e),RP,SP(e)],null);if($APP.n(UN.i(e)))eO(a,OP,null),a=$APP.V,d=a.i,c=$APP.G(c),c=$APP.C(c,PP),c="Causality tree exceeds the "+$APP.V.i(200)+"-node cap (≥ "+$APP.V.i(c)+" nodes). Pick a smaller leaf record to view its subtree.",b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+d.call(a,tP(c))+"\x3c/div\x3e";else{e=TP(e,0,
52
+ 16);f=$APP.Gc(e,0,null);$APP.Gc(e,1,null);e=UP(f);f=VP(f);h=$APP.xa($APP.Gl,0,$APP.pe.j(LP,e));var l=$APP.xa($APP.Gl,0,$APP.pe.j(MP,e));e=new $APP.O(null,4,[WN,e,KP,f,$APP.nl,h+70+16,$APP.ol,l+14+16],null);c=$APP.A.j(1,PP.i(c));eO(a,OP,e);b.innerHTML=""+$APP.V.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.V.i(tP("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."))+"\x3c/div\x3e":
53
+ null)+$APP.V.i(NP(e,d.id))}}},aQ=function(a){if($APP.n(dO(a,XP))){var b=$APP.k(a,"__xTraceHistoryCausalityEl"),c=dO(a,OP),d=YP.i?YP.i(a):YP.call(null,a),e=$APP.n(c)?XN(c,d):null,f=b==null?null:b.clientWidth;d=b==null?null:b.clientHeight;if($APP.n($APP.n(b)?$APP.n(c)?$APP.n(e)?typeof f==="number"&&typeof d==="number"&&f>0&&d>0:e:c:b)){var h=$APP.G(c);c=$APP.C(h,$APP.nl);h=$APP.C(h,$APP.ol);var l=LP.i(e),m=MP.i(e);e=l-f/2;l=m-d/2;f=$APP.Gl.j(0,c-f);d=$APP.Gl.j(0,h-d);d=new $APP.O(null,2,[ZP,$APP.Gl.j(0,
54
+ $APP.Hl.j(f,e)),$P,$APP.Gl.j(0,$APP.Hl.j(d,l))],null);f=$APP.G(d);d=$APP.C(f,ZP);f=$APP.C(f,$P);b.scrollLeft=d;b.scrollTop=f;return eO(a,XP,!1)}}return null},bQ=function(a){var b=RO();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.tb($APP.qg);;){if(e>=d){c=$APP.vb(f);break a}var h=c[e].value;e+=1;f=$APP.A.j(h,"all")?f:$APP.ub(f,h)}c=void 0}b=$APP.xe(c,b);$APP.t(b)&&(b=$APP.Wd($APP.V,$APP.pe.j(uP,b)),a.insertAdjacentHTML("beforeend",b))},cQ=function(a){var b=$APP.Pm.i($APP.ab(bN));
55
+ a.textContent=$APP.n(b)?"Resume":"Pause";a.pressed=b},dQ=function(a){var b=ZO()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},iQ=function(a){var b=$APP.G(a);a=$APP.C(b,eQ);var c=$APP.C(b,$APP.yk),d=$APP.C(b,fQ),e=$APP.C(b,gQ),f=$APP.C(b,$APP.Z);b=$APP.C(b,hQ);return"\x3cbutton class\x3d'session-chip"+$APP.V.i($APP.n(c)?" active":null)+$APP.V.i($APP.n(e)?" import":null)+"' type\x3d'button' data-x-th-session\x3d'"+$APP.V.i(tP(a))+"'\x3e"+$APP.V.i($APP.n(d)?"\x3cspan class\x3d'live-dot' aria-hidden\x3d'true'\x3e\x3c/span\x3e":
56
+ null)+$APP.V.i(tP(f))+$APP.V.i($APP.n(e)?"\x3cspan class\x3d'chip-close' role\x3d'button' aria-label\x3d'Remove import' data-x-th-import-close\x3d'"+$APP.V.i(b)+"'\x3e×\x3c/span\x3e":null)+"\x3c/button\x3e"},jQ=function(a,b,c,d){var e=new $APP.O(null,5,[eQ,"live",$APP.yk,$APP.A.j(c,$APP.Om),fQ,!1,gQ,!1,$APP.Z,"Live"],null),f=$N(c)?cO(c):null,h=bO(c)?cO(c):null;a=$APP.ze(function(l){var m=l.id;return new $APP.O(null,5,[eQ,""+$APP.V.i(m),$APP.yk,$APP.A.j(m,f),fQ,$APP.A.j(m,d),gQ,!1,$APP.Z,""+$APP.V.i(l.label)+
57
+ " · "+$APP.V.i(l.recordCount)],null)},$APP.zc(a));b=$APP.ze(function(l){var m=l.id;return new $APP.O(null,6,[eQ,"import:"+$APP.V.i(m),$APP.yk,$APP.A.j(m,h),fQ,!1,gQ,!0,hQ,m,$APP.Z,""+$APP.V.i(l.label)+" · "+$APP.V.i(l.recordCount)],null)},$APP.zc(b));return $APP.Wd($APP.V,$APP.pe.j(iQ,$APP.te.B(new $APP.M(null,1,5,$APP.N,[e],null),a,$APP.zc([b]))))},kQ=function(a,b,c,d,e){a.innerHTML=jQ(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},lQ=function(a){var b=
58
+ pN(a);b="#"+$APP.V.i(a.id)+" "+$APP.V.i(a.tag)+" · "+$APP.V.i(a.type)+$APP.V.i($APP.n($APP.n(b)?!$APP.hi(b):b)?" · "+$APP.V.i(b):null);return"\x3cx-button class\x3d'detail-link' size\x3d'sm' variant\x3d'ghost' data-x-th-link-id\x3d'"+$APP.V.i(a.id)+"' title\x3d'"+$APP.V.i(tP(b))+"'\x3e"+$APP.V.i(tP(b))+"\x3c/x-button\x3e"},mQ=function(a,b,c,d){if($APP.n(d)){var e=JSON.stringify(d,null,2);var f=d.causeId;var h=typeof f==="number"?nN(c,f):null;f=PN(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.V.i(tP(e))+
59
+ "\x3c/pre\x3e"+$APP.V.i($APP.n(h)?"\x3cdiv class\x3d'detail-section' data-x-th-detail-cause\x3e\x3cdiv class\x3d'detail-label'\x3eCaused by\x3c/div\x3e"+$APP.V.i(lQ(h))+"\x3c/div\x3e":null);c=$APP.V;d=c.i;h=$APP.G(f);f=$APP.C(h,$APP.kr);h=$APP.C(h,GN);if(f>0){var l=$APP.y(h);f=$APP.A.j(l,f)?"Effects ("+$APP.V.i(f)+")":"Effects ("+$APP.V.i(l)+" of "+$APP.V.i(f)+")";f="\x3cdiv class\x3d'detail-section' data-x-th-detail-effects\x3e\x3cdiv class\x3d'detail-label'\x3e"+$APP.V.i(f)+"\x3c/div\x3e"+$APP.V.i($APP.Wd($APP.V,
60
+ $APP.pe.j(lQ,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","")},oQ=function(a){var b=nQ.get(a);if($APP.n(b))return b;b=hN(a);nQ.set(a,b);return b},pQ=function(a){return $APP.A.j(a,$APP.Om)?"live":$N(a)?"session:"+$APP.V.i(cO(a)):bO(a)?"import:"+$APP.V.i(cO(a)):"live"},YP=function(a){var b=$APP.k(a,"__xTraceHistoryView");a=$APP.k(a,"__xTraceHistoryViewSelected");return $APP.n(a)?
61
+ $APP.k(a,pQ(b)):null},rQ=function(a,b){var c=$APP.k(a,"__xTraceHistoryViewSelected");c=$APP.n(c)?c:{};var d=pQ($APP.k(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;a.__xTraceHistoryViewSelected=c;b!=null&&$APP.A.j(qQ,$APP.k(a,"__xTraceHistoryDockMode"))&&eO(a,XP,!0)},sQ=function(a,b,c){var d=YP(a);b=nN(b,d);if(b==null)return null;if(lN(b,$APP.Dk.m(c,kN,oQ)))return b;rQ(a,null);return null},tQ=function(a){return $APP.A.j(a,$APP.Om)?gO():$N(a)?(a=eP(cO(a)),a.length===0?gO():a):bO(a)?
62
+ (a=kP(cO(a)),a.length===0?gO():a):gO()},uQ=function(a,b,c,d){switch(d instanceof $APP.F?d.ga: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")}},wQ=function(a){var b=$APP.k(a,"__xTraceHistoryTimelineEl"),c=$APP.k(a,"__xTraceHistoryCausalityEl"),d=$APP.k(a,"__xTraceHistoryLanesEl"),e=$APP.k(a,"__xTraceHistorySvgPaneEl"),f=$APP.k(a,
63
+ "__xTraceHistoryCountEl"),h=$APP.k(a,"__xTraceHistoryDetailEl"),l=$APP.k(a,"__xTraceHistorySplitterEl"),m=$APP.k(a,"__xTraceHistoryHintEl"),q=$APP.k(a,"__xTraceHistoryPauseBtn"),r=$APP.k(a,"__xTraceHistoryRecordBtn"),v=$APP.k(a,"__xTraceHistorySessionsEl"),x=$APP.k(a,"__xTraceHistoryTagSelectEl"),z=$APP.k(a,"__xTraceHistoryFilter"),B=$APP.k(a,"__xTraceHistoryView"),E=tQ(B),H=mN(E,$APP.Dk.m(z,kN,oQ)),K=$APP.y(H),J=E.length,P=BN(H),ea=xN(H),la=sQ(a,E,z),Ea=dP(),Na=jP(),Za=ZO(),Eb=function(){var Kb=
64
+ $APP.k(a,"__xTraceHistoryAxisMode");return $APP.n(Kb)?Kb:$APP.ko}(),Cb=function(){var Kb=$APP.k(a,"__xTraceHistoryDockMode");return $APP.n(Kb)?Kb:vQ}();bQ(x);uQ(a,b,c,Cb);switch(Cb instanceof $APP.F?Cb.ga:null){case "causality":WP(a,c,E,la);break;default:DP(d,e,Eb,H,ea,P,la,MM.i(z))}f.textContent=""+$APP.V.i(K);m.textContent=YN(K,J,P,$APP.y(ea));mQ(h,l,E,la);cQ(q);dQ(r);kQ(v,Ea,Na,B,Za);return aQ(a)},xQ=function(a){return $APP.n(a)?$APP.A.j("circle",a.tagName.toLowerCase()):a},yQ=function(a){return $APP.n(a)?
65
+ $APP.A.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},zQ=function(a){a=a.getAttribute("data-x-th-id");return $APP.n(a)?parseInt(a,10):null},AQ=function(a,b){$APP.n(b)?a.classList.add("collapsed"):a.classList.remove("collapsed");a=$APP.k(a,"__xTraceHistoryCollapseBtn");return $APP.n(a)?(a.textContent=$APP.n(b)?"»":"«",a.setAttribute("aria-expanded",$APP.n(b)?"false":"true")):null},BQ=function(a){var b=!$APP.D($APP.k(a,"__xTraceHistoryCollapsed"));a.__xTraceHistoryCollapsed=
66
+ b;return AQ(a,b)},CQ=function(a,b){$APP.ja(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.ko;case "time":return BP;default:return $APP.ko}}());return wQ(a)},DQ=function(a,b){var c=function(){switch(b){case "timeline":return vQ;case "causality":return qQ;default:return vQ}}();a.__xTraceHistoryDockMode=c;$APP.A.j(qQ,c)?eO(a,XP,!0):eO(a,XP,!1);return wQ(a)},EQ=function(a,b,c,d){a.textContent=d;a.removeAttribute("hidden");var e=b.getBoundingClientRect();d=c.clientX-e.left;c=
67
+ c.clientY-e.top;e=b.scrollTop;var f=b.scrollLeft;b=$APP.Gl.j(0,d+12+280>b.clientWidth?d-12-280:d+12);a.style.left=""+$APP.V.i(b+f)+"px";return a.style.top=""+$APP.V.i(c+e+12)+"px"},HQ=function(a,b){var c=b.target,d=$APP.k(a,"__xTraceHistoryTooltipEl"),e=$APP.k(a,"__xTraceHistoryTimelineEl");a=tQ($APP.k(a,"__xTraceHistoryView"));if($APP.n(xQ(c))){c=zQ(c);a=nN(a,c);if($APP.n(a)){c=""+$APP.V.i(a.tag);var f=$APP.V,h=f.i;var l=a.componentId;l=$APP.n(l)?" #"+$APP.V.i(l):null;a=c+h.call(f,l)+"\n"+$APP.V.i(a.type)+
68
+ "\n"+$APP.V.i(pN(a))+"\n@ "+$APP.V.i(qN(a.t));b=EQ(d,e,b,a)}else b=null;return b}if($APP.n(yQ(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.n($APP.n(f)?$APP.n(h)?c:h:f)?new $APP.O(null,3,[FQ,parseInt(f,10),GQ,parseInt(h,10),HN,$APP.Sg.i(c)],null):null;if($APP.n(c)){f=$APP.G(c);h=$APP.C(f,FQ);c=$APP.C(f,GQ);f=$APP.C(f,HN);a=nN(a,h);if($APP.n(a)){h=""+$APP.V.i(a.tag);l=$APP.V;var m=l.i;var q=a.componentId;q=$APP.n(q)?
69
+ " #"+$APP.V.i(q):null;a=h+m.call(l,q)+"\n"+$APP.V.i(c)+" "+$APP.V.i($APP.A.j(1,c)?"record":"records")+" · "+$APP.V.i($APP.yg($APP.n(f)?f:fN))+"\n@ "+$APP.V.i(qN(a.t));b=EQ(d,e,b,a)}else b=null;return b}return null}return d.setAttribute("hidden","")},IQ=function(a,b,c,d,e,f){a:switch(b=b instanceof $APP.F?b.ga:null,b){case "order":d=$APP.y(c);e=$APP.Gl.j(0,e-16);d===0||d<0?f=null:$APP.A.j(1,d)||e===0?f=0:(f=$APP.Hl.j($APP.Gl.j((f-8)/e,0),1),f=Math.round(f*(d-1)));c=$APP.n(f)?$APP.Gc(c,f,null):null;
70
+ break a;case "time":var h=$APP.G(d);d=$APP.C(h,yN);b=$APP.C(h,AN);var l=$APP.Gl.j(0,e-16);h==null||d==null||b==null?f=0:e===0||e<0||l===0?f=d:(f=$APP.Hl.j($APP.Gl.j((f-8)/l,0),1),f=d+f*b);c=DN(c,f);break a;default:throw Error("No matching clause: "+$APP.V.i(b));}return $APP.n(c)?(rQ(a,c.id),wQ(a)):null},JQ=function(a,b,c){function d(v){return IQ(a,l,q,r,f,v.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.Gl.j(200,b.clientWidth),h=$APP.k(a,
71
+ "__xTraceHistoryFilter"),l=function(){var v=$APP.k(a,"__xTraceHistoryAxisMode");return $APP.n(v)?v:$APP.ko}(),m=tQ($APP.k(a,"__xTraceHistoryView")),q=mN(m,$APP.Dk.m(h,kN,oQ)),r=BN(q);IQ(a,l,q,r,f,c.clientX-e.left);c=function x(){b.removeEventListener("pointermove",d);b.removeEventListener("pointerup",x);return b.removeEventListener("pointercancel",x)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},KQ=function(a,b){var c=$APP.k(a,
72
+ "__xTraceHistoryFilter"),d=tQ($APP.k(a,"__xTraceHistoryView"));c=mN(d,$APP.Dk.m(c,kN,oQ));d=YP(a);a:if($APP.t(c)){if(d!=null)b:if(typeof d==="number"){for(var e=$APP.y(c),f=0;;){if(f>=e){d=null;break b}if($APP.A.j(d,$APP.tc(c,f).id)){d=f;break b}f+=1}d=void 0}else d=null;else d=null;if(d==null)switch(b=b instanceof $APP.F?b.ga:null,b){case "next":b=$APP.u(c);break a;case "prev":b=$APP.Nc(c);break a;default:throw Error("No matching clause: "+$APP.V.i(b));}else b=$APP.A.j(b,$APP.Yn)?$APP.C(c,d+1):$APP.C(c,
73
+ d-1)}else b=null;return $APP.n(b)?(rQ(a,b.id),wQ(a)):null},MQ=function(a){var b=$APP.D(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.$c(LQ,a==null?null:a.toLowerCase()));return a},NQ=function(a,b){if(MQ(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),KQ(a,$APP.Yn);case "ArrowLeft":return b.preventDefault(),KQ(a,$APP.Sn);default:return null}},OQ=function(a,b,c){function d(h){h=$APP.Gl.j(60,f+(e-h.clientY));return a.style.height=""+$APP.V.i(h)+
74
+ "px"}c.preventDefault();b.setPointerCapture(c.pointerId);b.classList.add("dragging");var e=c.clientY,f=a.offsetHeight;c=function l(){b.removeEventListener("pointermove",d);b.removeEventListener("pointerup",l);b.removeEventListener("pointercancel",l);return b.classList.remove("dragging")};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},PQ=function(a){if(a==null||$APP.A.j("",a))a=null;else if(zM(a,".trace.json")){var b=$APP.y(a)-11;
75
+ a=a.substring(0,b)}else zM(a,".json")&&(b=$APP.y(a)-5,a=a.substring(0,b));return a},RQ=function(a,b){var c=$APP.k(a,"__xTraceHistoryHintEl"),d=dO(a,QQ);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");eO(a,QQ,null);return wQ(a)},4E3);return eO(a,QQ,b)},TQ=function(a,b){var c=new FileReader,d=PQ(b.name);c.onload=function(){var e=SQ.j(c.result,d);e!=null?($APP.k(a,"__xTraceHistoryHintEl").classList.remove("error"),a.__xTraceHistoryView=
76
+ new $APP.M(null,2,5,$APP.N,[aO,e],null),e=wQ(a)):e=RQ(a,"Import failed — see console for details.");return e};c.onerror=function(){return RQ(a,"Could not read file.")};return c.readAsText(b)},UQ=function(a){a=a.dataTransfer;return $APP.n(a)?a.types.includes("Files"):null},XQ=function(a,b){var c=a.shadowRoot;a=$APP.n(c)?c:a.attachShadow({mode:"open"});if(c==null){c="\x3cstyle\x3e"+$APP.V.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; }")+
77
+ "\x3c/style\x3e";var d=$APP.V,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"+
78
+ $APP.V.i(vP("events",$APP.$c(b,$APP.Hq)))+$APP.V.i(vP("state",$APP.$c(b,$APP.pq)))+$APP.V.i(vP("dom",$APP.$c(b,VQ)))+$APP.V.i(vP("lifecycle",$APP.$c(b,WQ)))+"\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";
79
+ a.innerHTML=c+e.call(d,b)}return a},YQ=function(a,b){a.__xTraceHistoryShadow=b;a.__xTraceHistoryTimelineEl=b.querySelector("[data-x-th-timeline]");a.__xTraceHistoryLanesEl=b.querySelector("[data-x-th-lanes]");a.__xTraceHistorySvgPaneEl=b.querySelector("[data-x-th-svg-pane]");a.__xTraceHistoryTooltipEl=b.querySelector("[data-x-th-tooltip]");a.__xTraceHistoryCountEl=b.querySelector("[data-x-th-count]");a.__xTraceHistoryDetailEl=b.querySelector("[data-x-th-detail]");a.__xTraceHistorySplitterEl=b.querySelector("[data-x-th-splitter]");
80
+ a.__xTraceHistoryHintEl=b.querySelector("[data-x-th-hint]");a.__xTraceHistoryTagSelectEl=b.querySelector("[data-x-th-tag]");a.__xTraceHistoryCausalityEl=b.querySelector("[data-x-th-causality]");a.__xTraceHistoryPauseBtn=b.querySelector("[data-x-th-action\x3d'pause']");a.__xTraceHistoryRecordBtn=b.querySelector("[data-x-th-action\x3d'record']");a.__xTraceHistorySessionsEl=b.querySelector("[data-x-th-sessions]");a.__xTraceHistoryImportInput=b.querySelector("[data-x-th-import-input]");a.__xTraceHistoryDropOverlay=
81
+ b.querySelector("[data-x-th-drop-overlay]");a.__xTraceHistoryCollapseBtn=b.querySelector("[data-x-th-action\x3d'collapse']")},$Q=function(a,b,c,d,e,f,h,l){return[[b,"click",function(m){m=m.target;var q=m.closest("[data-x-th-action]");if($APP.n(q))switch(q.getAttribute("data-x-th-action")){case "pause":$APP.n($APP.Pm.i($APP.ab(bN)))?TO():SO();break;case "record":ZO()!=null?aP():bP();break;case "clear":a.__xTraceHistoryViewSelected={};a.__xTraceHistoryView=$APP.Om;YO();break;case "export":nP();break;
82
+ case "import":q=$APP.k(a,"__xTraceHistoryImportInput");$APP.n(q)&&(q.value="",q.click());break;case "collapse":BQ(a)}q=m.closest("[data-x-th-import-close]");if($APP.n(q)){q=parseInt(q.getAttribute("data-x-th-import-close"),10);var r=$APP.k(a,"__xTraceHistoryView");bO(r)&&$APP.A.j(q,cO(r))&&(a.__xTraceHistoryView=$APP.Om);hP(q)}$APP.n(m.closest("[data-x-th-import-close]"))||(q=m.closest("[data-x-th-session]"),$APP.n(q)&&(q=q.getAttribute("data-x-th-session"),q=$APP.A.j(q,"live")?$APP.Om:q.lastIndexOf("import:",
83
+ 0)==0?new $APP.M(null,2,5,$APP.N,[aO,parseInt(q.substring(7),10)],null):new $APP.M(null,2,5,$APP.N,[ZN,parseInt(q,10)],null),a.__xTraceHistoryView=q,wQ(a)));q=m.closest("[data-x-th-lane-tag]");if($APP.n(q)){r=q.getAttribute("data-x-th-lane-tag");q=$APP.k(a,"__xTraceHistoryFilter");var v=MM.i(q);r=$APP.A.j(r,v)?null:r;q=$APP.Dk.m(q,MM,r);a.__xTraceHistoryFilter=q;q=$APP.k(a,"__xTraceHistoryTagSelectEl");$APP.n(q)&&(q.value=$APP.n(r)?r:"all");wQ(a)}q=m.closest("[data-x-th-link-id]");$APP.n(q)&&(q=q.getAttribute("data-x-th-link-id"),
84
+ $APP.n(q)&&(q=parseInt(q,10),$APP.n(isNaN(q))||(rQ(a,q),wQ(a))));q=xQ(m);q=$APP.n(q)?q:yQ(m);$APP.n(q)?($APP.n(xQ(m))?m=zQ(m):$APP.n(yQ(m))?(m=m.getAttribute("data-x-th-bin-record-id"),m=$APP.n(m)?parseInt(m,10):null):m=null,q=YP(a),m=$APP.A.j(m,q)?null:m,rQ(a,m),m=wQ(a)):m=null;return m}],[b,"select-change",function(m){var q=m.target;m=m.detail.value;q.getAttribute("data-x-th-tag")!=null?(q=$APP.Dk.m($APP.k(a,"__xTraceHistoryFilter"),MM,$APP.A.j(m,"all")?null:m),a.__xTraceHistoryFilter=q,q=wQ(a)):
85
+ q=q.getAttribute("data-x-th-mode")!=null?DQ(a,m):q.getAttribute("data-x-th-axis")!=null?CQ(a,m):null;return q}],[b,"x-checkbox-change",function(m){var q=m.target.getAttribute("data-x-th-cat");if(q!=null){var r=m.detail.checked;m=$APP.k(a,"__xTraceHistoryFilter");var v=iN.i(m);v=$APP.n(v)?v:$APP.vg(cN);q=$APP.Sg.i(q);q=$APP.n(r)?$APP.wd.j(v,q):$APP.Fl.j(v,q);m=$APP.Dk.m(m,iN,q);a.__xTraceHistoryFilter=m;m=wQ(a)}else m=null;return m}],[b,"x-search-field-input",function(m){var q=m.target;$APP.n($APP.n(q)?
86
+ q.hasAttribute("data-x-th-search"):q)?(m=m.detail.value,m=($APP.n(m)?m:"").toLowerCase(),m=$APP.Dk.m($APP.k(a,"__xTraceHistoryFilter"),jN,$APP.A.j("",m)?null:m),a.__xTraceHistoryFilter=m,m=wQ(a)):m=null;return m}],[c,"pointermove",function(m){return HQ(a,m)}],[c,"pointerleave",function(){return $APP.k(a,"__xTraceHistoryTooltipEl").setAttribute("hidden","")}],[c,"pointerdown",function(){return c.focus()}],[l,"pointerdown",function(){return l.focus()}],[b,"keydown",function(m){return NQ(a,m)}],[d,"pointerdown",
87
+ function(m){return JQ(a,$APP.k(a,"__xTraceHistorySvgPaneEl"),m)}],[e,"pointerdown",function(m){return OQ(f,e,m)}],[h,"change",function(m){m=m.target.files;return m.length>0?TQ(a,m[0]):null}],[b,"dragenter",function(m){if($APP.n(UQ(m))){m.preventDefault();m=$APP.k(a,"__xTraceHistoryDropOverlay");var q=dO(a,ZQ);eO(a,ZQ,($APP.n(q)?q:0)+1);m=m.removeAttribute("hidden")}else m=null;return m}],[b,"dragover",function(m){$APP.n(UQ(m))?(m.preventDefault(),m=m.dataTransfer,m=$APP.n(m)?m.dropEffect="copy":null):
88
+ m=null;return m}],[b,"dragleave",function(m){if($APP.n(UQ(m))){m=$APP.k(a,"__xTraceHistoryDropOverlay");var q=$APP.Gl.j,r=dO(a,ZQ);q=q.call($APP.Gl,0,($APP.n(r)?r:0)-1);eO(a,ZQ,q);m=q===0?m.setAttribute("hidden",""):null}else m=null;return m}],[b,"drop",function(m){$APP.n(UQ(m))?(m.preventDefault(),eO(a,ZQ,0),$APP.k(a,"__xTraceHistoryDropOverlay").setAttribute("hidden",""),m=m.dataTransfer,m=$APP.n(m)?m.files:null,m=$APP.n($APP.n(m)?m.length>0:m)?TQ(a,m[0]):null):m=null;return m}],[document,"keydown",
89
+ function(m){var q;if(q=$APP.A.j("\\",m.key))q=m.metaKey,q=$APP.n(q)?q:m.ctrlKey,q=$APP.n(q)?$APP.p(m.altKey)&&$APP.p(m.shiftKey)&&!MQ(m.target):q;$APP.n(q)?(m.preventDefault(),m=BQ(a)):m=null;return m}]]},aR=function(a,b){b=$Q(a,b,$APP.k(a,"__xTraceHistoryTimelineEl"),$APP.k(a,"__xTraceHistorySvgPaneEl"),$APP.k(a,"__xTraceHistorySplitterEl"),$APP.k(a,"__xTraceHistoryDetailEl"),$APP.k(a,"__xTraceHistoryImportInput"),$APP.k(a,"__xTraceHistoryCausalityEl"));a.__xTraceHistoryListeners=b;a:{a=b.length;
90
+ for(var c=0;;)if(c<a){var d=b[c];d[0].addEventListener(d[1],d[2]);c+=1}else break a}},bR=function(a,b){$APP.n($APP.k(a,"__xTraceHistoryFilter"))||(a.__xTraceHistoryFilter=new $APP.O(null,3,[MM,null,iN,b,jN,null],null));$APP.n($APP.k(a,"__xTraceHistoryView"))||(a.__xTraceHistoryView=$APP.Om);$APP.n($APP.k(a,"__xTraceHistoryViewSelected"))||(a.__xTraceHistoryViewSelected={});$APP.n($APP.k(a,"__xTraceHistoryAxisMode"))||(a.__xTraceHistoryAxisMode=$APP.ko);$APP.n($APP.k(a,"__xTraceHistoryDockMode"))||
91
+ (a.__xTraceHistoryDockMode=vQ);$APP.k(a,"__xTraceHistoryCollapsed")==null&&(a.__xTraceHistoryCollapsed=!1);AQ(a,$APP.D($APP.k(a,"__xTraceHistoryCollapsed")))},dR=function(a){if($APP.n($APP.k(a,"__xTraceHistoryMounted")))return null;a.__xTraceHistoryInternal=!0;var b=gO().length;uO(function(){var c=dN(),d=XQ(a,c);YQ(a,d);bR(a,c);aR(a,d);c=nO.i(hO.m(iO,pO,function(){var e=$APP.k(a,"__xTraceHistoryView"),f=jP(),h=f.length;var l=dO(a,cR);l=$APP.n(l)?l:0;h>l?(eO(a,cR,h),$APP.A.j(e,$APP.Om)&&gO().length===
92
+ 0&&(a.__xTraceHistoryView=new $APP.M(null,2,5,$APP.N,[aO,f[h-1].id],null))):h<l&&eO(a,cR,h);return wQ(a)}));a.__xTraceHistorySubToken=c;wQ(a);a.__xTraceHistoryMounted=!0});return $APP.I(b,gO().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},eR=function(){return $APP.n(document.querySelector("x-trace-history"))?null:document.body.appendChild(document.createElement("x-trace-history"))},
93
+ hR=function(){if(KM()){var a=hO.B;var b=$APP.k(window,"BAREDOM_TRACE_HISTORY_CAPACITY");b=typeof b==="number"&&b>0?b:5E3;var c=window,d;(d=$APP.A.j("raw",$APP.k(c,"BAREDOM_TRACE_HISTORY")))||(c=c.location.search,c=c==null?null:$APP.Hg(fR,c),d=$APP.D(c));a.call(hO,bN,$APP.Dk,AO,b,$APP.zc([UM,d]));IM($APP.Bh,JO);IM($APP.gh,JO);IM(tO,0);IM(zO,$APP.ye);LO();IM(HO,!0);a=$APP.k(window,"BareDOM");a=$APP.n(a)?a:{};a.traceHistory={records:MO,sessions:dP,"export":mP,download:nP,stopSession:aP,"import":SQ,pause:SO,
94
+ importRecords:kP,sessionRecords:eP,startSession:bP,components:NO,clear:YO,imports:jP,removeImport:hP,resume:TO};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.Uk();$APP.ak();$APP.Vi();$APP.hl();$APP.Ah("x-trace-history",gR);return KM()?$APP.n(document.body)?eR():document.addEventListener("DOMContentLoaded",eR,{once:!0}):null},iR=function(){return hR()},CN=function CN(a){switch(arguments.length){case 2:return CN.j(arguments[0],
95
+ arguments[1]);case 3:return CN.m(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 CN.B(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.Yb(c.slice(3),0,null):null)}};CN.j=function(a,b){return b};CN.m=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};CN.B=function(a,b,c,d){return $APP.xa(function(e,f){return CN.m(a,e,f)},CN.m(a,b,c),d)};
96
+ CN.K=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);var d=$APP.w(c);c=$APP.u(d);d=$APP.w(d);return this.B(b,a,c,d)};CN.M=3;var jR=function jR(a){switch(arguments.length){case 0:return jR.H();case 1:return jR.i(arguments[0]);case 2:return jR.j(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return jR.B(arguments[0],arguments[1],2<c.length?new $APP.Yb(c.slice(2),0,null):null)}};jR.H=function(){return 0};jR.i=function(a){return a};
97
+ jR.j=function(a,b){return a+b};jR.B=function(a,b,c){return $APP.xa(jR,a+b,c)};jR.K=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.B(b,a,c)};jR.M=2;
98
+ var qO=function qO(a){switch(arguments.length){case 3:return qO.m(arguments[0],arguments[1],arguments[2]);case 4:return qO.J(arguments[0],arguments[1],arguments[2],arguments[3]);case 5:return qO.da(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return qO.ua(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return qO.B(arguments[0],arguments[1],arguments[2],
99
+ arguments[3],arguments[4],arguments[5],6<c.length?new $APP.Yb(c.slice(6),0,null):null)}};qO.m=function(a,b,c){var d=$APP.Dk.m,e=$APP.C(a,b);c=c.i?c.i(e):c.call(null,e);return d.call($APP.Dk,a,b,c)};qO.J=function(a,b,c,d){var e=$APP.Dk.m,f=$APP.C(a,b);c=c.j?c.j(f,d):c.call(null,f,d);return e.call($APP.Dk,a,b,c)};qO.da=function(a,b,c,d,e){var f=$APP.Dk.m,h=$APP.C(a,b);c=c.m?c.m(h,d,e):c.call(null,h,d,e);return f.call($APP.Dk,a,b,c)};
100
+ qO.ua=function(a,b,c,d,e,f){var h=$APP.Dk.m,l=$APP.C(a,b);c=c.J?c.J(l,d,e,f):c.call(null,l,d,e,f);return h.call($APP.Dk,a,b,c)};qO.B=function(a,b,c,d,e,f,h){return $APP.Dk.m(a,b,$APP.$d(c,$APP.C(a,b),d,e,f,$APP.zc([h])))};qO.K=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);var d=$APP.w(c);c=$APP.u(d);var e=$APP.w(d);d=$APP.u(e);var f=$APP.w(e);e=$APP.u(f);var h=$APP.w(f);f=$APP.u(h);h=$APP.w(h);return this.B(b,a,c,d,e,f,h)};qO.M=6;
101
+ var oO=function oO(a,b,c){var e=$APP.t(b);b=$APP.u(e);var f=$APP.w(e);if(f){e=$APP.Dk.m;var h=$APP.C(a,b);c=oO.m?oO.m(h,f,c):oO.call(null,h,f,c);a=e.call($APP.Dk,a,b,c)}else a=$APP.Dk.m(a,b,c);return a},hO=function hO(a){switch(arguments.length){case 2:return hO.j(arguments[0],arguments[1]);case 3:return hO.m(arguments[0],arguments[1],arguments[2]);case 4:return hO.J(arguments[0],arguments[1],arguments[2],arguments[3]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;
102
+ else break;return hO.B(arguments[0],arguments[1],arguments[2],arguments[3],4<c.length?new $APP.Yb(c.slice(4),0,null):null)}};hO.j=function(a,b){if(a instanceof $APP.le){var c=a.state;b=b.i?b.i(c):b.call(null,c);a=IM(a,b)}else a=$APP.Al(a,b);return a};hO.m=function(a,b,c){if(a instanceof $APP.le){var d=a.state;b=b.j?b.j(d,c):b.call(null,d,c);a=IM(a,b)}else a=$APP.Al(a,b,c);return a};
103
+ hO.J=function(a,b,c,d){if(a instanceof $APP.le){var e=a.state;b=b.m?b.m(e,c,d):b.call(null,e,c,d);a=IM(a,b)}else a=$APP.Al(a,b,c,d);return a};hO.B=function(a,b,c,d,e){return a instanceof $APP.le?IM(a,$APP.Zd(b,a.state,c,d,e)):$APP.Al(a,b,c,d,e)};hO.K=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);var d=$APP.w(c);c=$APP.u(d);var e=$APP.w(d);d=$APP.u(e);e=$APP.w(e);return this.B(b,a,c,d,e)};hO.M=4;
104
+ var WM=new $APP.F(null,"start-t","start-t",1829305353),OM=new $APP.F(null,"cause-id","cause-id",-1282947263),JN=new $APP.F(null,"x-end","x-end",-1725631203),PP=new $APP.F(null,"node-count","node-count",383091297),YM=new $APP.F(null,"start-id","start-id",-456790067),ZM=new $APP.F(null,"end-id","end-id",2084513705),zN=new $APP.F(null,"tmax","tmax",2006118392),vQ=new $APP.F(null,"timeline","timeline",192903161),GQ=new $APP.F(null,"bin-count","bin-count",1792167977),cR=new $APP.F(null,"auto-switch-import",
105
+ "auto-switch-import",-809333661),XP=new $APP.F(null,"causality-needs-fit","causality-needs-fit",1728707358),IP=new $APP.F(null,"to-cy","to-cy",1542880464),HP=new $APP.F(null,"to-cx","to-cx",698995232),$P=new $APP.F(null,"scroll-top","scroll-top",-46723100),eQ=new $APP.F(null,"chip-key","chip-key",644014552),xO=new $APP.F(null,"next-component-id","next-component-id",1588977206),jO=new $APP.F(null,"pending?","pending?",-2133618792),EO=new $APP.F(null,"rate-limit","rate-limit",1748082022),yN=new $APP.F(null,
106
+ "tmin","tmin",-39508962),pR=new $APP.F(null,"to-id","to-id",1021626465),KP=new $APP.F(null,"edges","edges",-694791395),nO=new $APP.F(null,"next-token","next-token",1432414974),KN=new $APP.F(null,"t-min","t-min",-488887638),TM=new $APP.F(null,"user-agent","user-agent",1220426212),qQ=new $APP.F(null,"causality","causality",-712927373),UM=new $APP.F(null,"forensic?","forensic?",188264321),MM=new $APP.F(null,"tag","tag",-1290361223),jN=new $APP.F(null,"search","search",1564939822),ZN=new $APP.F(null,
107
+ "session","session",1008279103),rO=new $APP.F(null,"next-id","next-id",-224240762),iN=new $APP.F(null,"categories","categories",178386610),OP=new $APP.F(null,"causality-layout","causality-layout",-1264013405),LN=new $APP.F(null,"t-max","t-max",-949530573),AO=new $APP.F(null,"capacity","capacity",72689734),fQ=new $APP.F(null,"recording?","recording?",-1477514924),GN=new $APP.F(null,"records","records",1326822832),BP=new $APP.F(null,"time","time",1385887882),HN=new $APP.F(null,"dominant-cat","dominant-cat",
108
+ -914257775),WQ=new $APP.F(null,"lifecycle","lifecycle",341496205),fN=new $APP.F(null,"other","other",995793544),fP=new $APP.F("baredom.dev.x-trace-history.model","parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),yO=new $APP.F(null,"new?","new?",777958557),RP=new $APP.F(null,"max-depth","max-depth",127060793),vN=new $APP.F(null,"min-t","min-t",-1349871659),UN=new $APP.F(null,"capped?","capped?",-65680820),QO=new $APP.F(null,"imports","imports",-1249933394),FN=new $APP.F(null,
109
+ "bin-i","bin-i",791326307),VM=new $APP.F(null,"first-seen","first-seen",390191468),gQ=new $APP.F(null,"import?","import?",-40157302),MP=new $APP.F(null,"cy","cy",755331060),TN=new $APP.F(null,"children","children",-940561982),LP=new $APP.F(null,"cx","cx",1272694324),VQ=new $APP.F(null,"dom","dom",-1236537922),WO=new $APP.F(null,"next-session-id","next-session-id",1944278844),IN=new $APP.F(null,"x-start","x-start",1183238797),ZP=new $APP.F(null,"scroll-left","scroll-left",-211761103),iP=new $APP.F(null,
110
+ "imported-at","imported-at",-1157103926),wN=new $APP.F(null,"lane-id","lane-id",2005926623),kN=new $APP.F(null,"haystack-fn","haystack-fn",1813797862),qR=new $APP.F(null,"depth","depth",1768663640),FQ=new $APP.F(null,"record-id","record-id",-1468971877),XO=new $APP.F(null,"active-session-id","active-session-id",943086451),FP=new $APP.F(null,"from-cx","from-cx",-293616201),GP=new $APP.F(null,"from-cy","from-cy",1126835724),VO=new $APP.F(null,"sessions","sessions",-699316392),SM=new $APP.F(null,"exported-at",
111
+ "exported-at",1661975683),NM=new $APP.F(null,"component-id","component-id",1551113783),QQ=new $APP.F(null,"import-error","import-error",1672727808),ZQ=new $APP.F(null,"drag-depth","drag-depth",-226189617),rR=new $APP.F(null,"from-id","from-id",-106962526),hQ=new $APP.F(null,"import-id","import-id",940580069),WN=new $APP.F(null,"nodes","nodes",-2099585805),XM=new $APP.F(null,"end-t","end-t",-218701242),kO=new $APP.F(null,"by-token","by-token",-1485378511),KR=new $APP.F(null,"next-import-id","next-import-id",
112
+ 287496955),SN=new $APP.F(null,"record","record",-779106859),AN=new $APP.F(null,"span","span",1394872991),tN=new $APP.F("baredom.dev.x-trace-history.model","document","baredom.dev.x-trace-history.model/document",-1776453896),BO=new $APP.F(null,"components","components",-1073188942),aO=new $APP.F(null,"import","import",-1399500709),PO=new $APP.F(null,"envelope","envelope",-236796318);var UO=$APP.sf.j($APP.Ol,$APP.ye),JM=FM("(?:^\\?|\x26)"+$APP.V.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),fR=FM("(?:^\\?|\x26)"+$APP.V.i("baredom-trace-history")+"\x3d"+$APP.V.i("raw")+"(?:\x26|$)"),eN=new $APP.O(null,4,[$APP.Hq,new $APP.pg(null,new $APP.O(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.pq,new $APP.pg(null,new $APP.O(null,1,["state/instance-field-set",null],null),null),VQ,new $APP.pg(null,new $APP.O(null,2,["dom/attribute-removed",
113
+ null,"dom/attribute-set",null],null),null),WQ,new $APP.pg(null,new $APP.O(null,3,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/disconnected",null],null),null)],null),cN=new $APP.M(null,4,5,$APP.N,[$APP.Hq,$APP.pq,VQ,WQ],null),rN=new $APP.O(null,5,[$APP.Hq,"#94e2d5",$APP.pq,"#f9e2af",VQ,"#fab387",WQ,"#cba6f7",fN,"#6c7086"],null),RN=function RN(a,b){return $APP.zd(b,new $APP.Cd(null,function(){return $APP.ue(function(d){return RN.j?RN.j(a,d):RN.call(null,a,d)},$APP.zc([QN(a,
114
+ b.id)]))},null))},QP=function QP(a){return $APP.xa(jR,0,$APP.pe.j(QP,TN.i(a)))+1},SP=function SP(a){return $APP.Pc(TN.i(a))?0:$APP.Wd($APP.Gl,$APP.pe.j(SP,TN.i(a)))+1},TP=function TP(a,b,c){var e=SN.i(a),f=TN.i(a);a=30+b*56;if($APP.Pc(f))return new $APP.M(null,2,5,$APP.N,[new $APP.O(null,6,[$APP.Pp,e.id,SN,e,LP,c+70,MP,a,qR,b,TN,$APP.ye],null),c+158],null);f=$APP.xa(function(m,q){var r=$APP.Gc(m,0,null);m=$APP.Gc(m,1,null);var v=b+1;m=TP.m?TP.m(q,v,m):TP.call(null,q,v,m);q=$APP.Gc(m,0,null);m=$APP.Gc(m,
115
+ 1,null);return new $APP.M(null,2,5,$APP.N,[$APP.wd.j(r,q),m],null)},new $APP.M(null,2,5,$APP.N,[$APP.ye,c],null),f);c=$APP.Gc(f,0,null);f=$APP.Gc(f,1,null);var h=LP.i($APP.u(c)),l=LP.i($APP.Dc(c));return new $APP.M(null,2,5,$APP.N,[new $APP.O(null,6,[$APP.Pp,e.id,SN,e,LP,(h+l)/2,MP,a,qR,b,TN,c],null),f],null)},UP=function UP(a){return $APP.sf.j(new $APP.M(null,1,5,$APP.N,[$APP.El.j(a,TN)],null),$APP.ue(UP,$APP.zc([TN.i(a)])))},VP=function VP(a){var c=$APP.Pp.i(a),d=LP.i(a),e=MP.i(a);return $APP.Qe($APP.ue(function(f){return $APP.zd(new $APP.O(null,
116
+ 6,[rR,c,FP,d,GP,e,pR,$APP.Pp.i(f),HP,LP.i(f),IP,MP.i(f)],null),VP.i?VP.i(f):VP.call(null,f))},$APP.zc([TN.i(a)])))};var bN=$APP.me($APP.Wf([UM,AO,EO,rO,$APP.Pm,QO,GN,BO,XO,xO,VO,KR,WO],[!1,5E3,$APP.de,0,!1,$APP.ye,UO,$APP.de,null,0,$APP.ye,0,0])),iO=$APP.me(new $APP.O(null,3,[nO,0,jO,!1,kO,$APP.de],null)),zO=$APP.me($APP.ye),KO=$APP.me(null),HO=$APP.me(!1),tO=$APP.me(0),fO=$APP.me([null,null]),IO=new $APP.pg(null,new $APP.O(null,3,[$APP.Oh,null,$APP.Qh,null,$APP.Jh,null],null),null),SQ=function SQ(a){switch(arguments.length){case 1:return SQ.i(arguments[0]);case 2:return SQ.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",
117
+ arguments.length].join(""));}};SQ.i=function(a){return SQ.j(a,null)};SQ.j=function(a,b){a=gP(a);var c=$APP.G(a);a=$APP.C(c,$APP.qp);c=$APP.C(c,$APP.Nm);if($APP.n(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=KR.i($APP.ab(bN));b=b==null||$APP.A.j("",b)?"Import "+$APP.V.i(d):b;var e=new $APP.O(null,4,[$APP.Pp,d,$APP.Z,b,iP,c,PO,a],null);hO.j(bN,function(f){return qO.m(qO.J(f,QO,$APP.wd,e),KR,BM)});mO();return d};SQ.M=2;var oP=RegExp("\x26","g"),pP=RegExp("\x3c","g"),qP=RegExp("\x3e","g"),rP=RegExp('"',"g"),sP=RegExp("'","g"),nQ=new WeakMap,LQ=new $APP.pg(null,new $APP.O(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),gR=new $APP.O(null,5,[$APP.nh,!0,$APP.qh,[],$APP.oh,function(a){return dR(a)},$APP.lh,function(a){var b=$APP.k(a,"__xTraceHistorySubToken");$APP.n(b)&&hO.B(iO,qO,kO,$APP.El,$APP.zc([b]));b=dO(a,QQ);$APP.n(b)&&typeof b==="number"&&clearTimeout(b);b=$APP.k(a,
118
+ "__xTraceHistoryListeners");if($APP.n(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;a.__xTraceHistoryListeners=null}a.__xTraceHistorySubToken=null;eO(a,QQ,null);a.__xTraceHistoryMounted=null},$APP.kh,function(){return null}],null);$APP.ha("baredom.exports.x_trace_history.init",iR);hR();export const init=iR;
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ZN=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},aO=function(a){var b=$APP.k(a,"__xTypographyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=$N;d.setAttribute("part","container");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xTypographyRefs=new $APP.P(null,2,[$APP.Qh,b,$APP.Rh,d],null);
3
- return $APP.k(a,"__xTypographyRefs")},gO=function(a){var b=new $APP.P(null,4,[$APP.Tm,a.getAttribute("variant"),$APP.jk,a.getAttribute("align"),bO,a.getAttribute("truncate"),cO,a.getAttribute("line-clamp")],null);var c=$APP.H(b),d=$APP.C(c,$APP.Tm),e=$APP.C(c,$APP.jk);b=$APP.C(c,bO);c=$APP.C(c,cO);d=typeof d==="string"?d.toLowerCase():null;d=$APP.Vc(dO,d)?d:"body1";e=typeof e==="string"?e.toLowerCase():null;e=$APP.Vc(eO,e)?e:"left";b=new $APP.P(null,4,[$APP.hi,d,$APP.Jk,e,$APP.Xj,b!=null,fO,ZN(c)],
4
- null);if($APP.M($APP.k(a,"__xTypographyModel"),b)){b=$APP.H(b);e=$APP.C(b,$APP.hi);d=$APP.C(b,$APP.Jk);var f=$APP.C(b,$APP.Xj);c=$APP.C(b,fO);var h=aO(a);h=$APP.H(h);h=$APP.C(h,$APP.Rh);a.setAttribute("data-variant",e);a.setAttribute("data-align",d);$APP.n(f)?h.setAttribute("data-truncate",""):h.removeAttribute("data-truncate");c!=null&&$APP.p(f)?(e=h.style,e.display="-webkit-box",e.setProperty("-webkit-box-orient","vertical"),e.overflow="hidden",e.setProperty("-webkit-line-clamp",""+$APP.R.i(c))):
5
- (c=h.style,c.removeProperty("display"),c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a.__xTypographyModel=b}},hO=function(a){$APP.dh(a,"variant","variant","body1");$APP.dh(a,"align","align","left");$APP.ch(a,"truncate","truncate");return Object.defineProperty(a,"lineClamp",{get:function(){return ZN(this.getAttribute("line-clamp"))},set:function(b){return b==null?this.removeAttribute("line-clamp"):this.setAttribute("line-clamp",""+$APP.R.i(b|
6
- 0))},enumerable:!0,configurable:!0})},iO=function(a){aO(a);gO(a);return null},jO=function(a,b,c,d){$APP.M(c,d)&&gO(a);return null},lO=function(){return $APP.Wg("x-typography",new $APP.P(null,4,[$APP.Mg,kO,$APP.Ng,iO,$APP.Qg,jO,$APP.Ug,hO],null))},cO=new $APP.F(null,"line-clamp-raw","line-clamp-raw",-1982923204),fO=new $APP.F(null,"line-clamp","line-clamp",-1079334403),bO=new $APP.F(null,"truncate-raw","truncate-raw",1178232402);var kO=["variant","align","truncate","line-clamp"],dO=new $APP.Q(null,new $APP.P(null,16,["subtitle2",null,"overline",null,"h3",null,"body1",null,"body2",null,"small",null,"subtitle1",null,"h2",null,"kbd",null,"h4",null,"h5",null,"blockquote",null,"h1",null,"caption",null,"code",null,"h6",null],null),null),eO=new $APP.Q(null,new $APP.P(null,4,["right",null,"justify",null,"center",null,"left",null],null),null);var $N=":host{display:block;color-scheme:light dark;font-family:var(--x-typography-font-family,"+$APP.R.i("system-ui,-apple-system,sans-serif")+");color:var(--x-typography-color,var(--x-color-text,inherit));}[part\x3dcontainer]{margin:0;padding:0;}:host(:not([data-variant])),:host([data-variant\x3d'body1']){font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'h1']){font-size:2.5rem;font-weight:700;line-height:1.2;letter-spacing:-0.02em;}:host([data-variant\x3d'h2']){font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-0.015em;}:host([data-variant\x3d'h3']){font-size:1.75rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;}:host([data-variant\x3d'h4']){font-size:1.5rem;font-weight:600;line-height:1.35;letter-spacing:-0.005em;}:host([data-variant\x3d'h5']){font-size:1.25rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'h6']){font-size:1.125rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'subtitle1']){font-size:1.125rem;font-weight:500;line-height:1.4;letter-spacing:0.005em;}:host([data-variant\x3d'subtitle2']){font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:0.01em;}:host([data-variant\x3d'body2']){font-size:0.875rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'caption']){font-size:0.75rem;font-weight:400;line-height:1.4;letter-spacing:0.02em;}:host([data-variant\x3d'overline']){font-size:0.625rem;font-weight:600;line-height:1.5;letter-spacing:0.1em;text-transform:uppercase;}:host([data-variant\x3d'small']){font-size:0.8125rem;font-weight:400;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'blockquote']){font-size:1.125rem;font-weight:400;line-height:1.6;letter-spacing:normal;font-style:italic;}:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left:3px solid var(--x-typography-blockquote-border-color,var(--x-color-border,"+
7
- $APP.R.i("rgba(0,0,0,0.2)")+"));padding:var(--x-typography-blockquote-padding,0 0 0 1em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left-color:var(--x-typography-blockquote-border-color,var(--x-color-border,"+$APP.R.i("rgba(255,255,255,0.25)")+"));}}:host([data-variant\x3d'code']){font-family:var(--x-typography-mono-font-family,"+$APP.R.i('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+
8
- $APP.R.i("rgba(0,0,0,0.06)")+"));border-radius:var(--x-typography-code-radius,var(--x-radius-sm,4px));padding:var(--x-typography-code-padding,0.15em 0.35em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+$APP.R.i("rgba(255,255,255,0.1)")+"));}}:host([data-variant\x3d'kbd']){font-family:var(--x-typography-mono-font-family,"+$APP.R.i('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+
9
- ");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+$APP.R.i("rgba(0,0,0,0.06)")+"));border:1px solid var(--x-typography-kbd-border,var(--x-color-border,"+$APP.R.i("rgba(0,0,0,0.15)")+"));border-radius:var(--x-typography-kbd-radius,var(--x-radius-sm,4px));padding:var(--x-typography-kbd-padding,0.15em 0.4em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+
10
- $APP.R.i("rgba(255,255,255,0.1)")+"));border-color:var(--x-typography-kbd-border,var(--x-color-border,"+$APP.R.i("rgba(255,255,255,0.2)")+"));}}:host([data-align\x3d'left']){text-align:left;}:host([data-align\x3d'center']){text-align:center;}:host([data-align\x3d'right']){text-align:right;}:host([data-align\x3d'justify']){text-align:justify;}[part\x3dcontainer][data-truncate]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}";$APP.da("baredom.exports.x_typography.init",lO);export const init=lO;
2
+ var HU=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},JU=function(a){var b=$APP.k(a,"__xTypographyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=IU;d.setAttribute("part","container");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xTypographyRefs=new $APP.O(null,2,[$APP.jj,b,$APP.kj,d],null);
3
+ return $APP.k(a,"__xTypographyRefs")},PU=function(a){var b=new $APP.O(null,4,[$APP.Lp,a.getAttribute("variant"),$APP.fn,a.getAttribute("align"),KU,a.getAttribute("truncate"),LU,a.getAttribute("line-clamp")],null);var c=$APP.G(b),d=$APP.C(c,$APP.Lp),e=$APP.C(c,$APP.fn);b=$APP.C(c,KU);c=$APP.C(c,LU);d=typeof d==="string"?d.toLowerCase():null;d=$APP.$c(MU,d)?d:"body1";e=typeof e==="string"?e.toLowerCase():null;e=$APP.$c(NU,e)?e:"left";b=new $APP.O(null,4,[$APP.nk,d,$APP.Fn,e,$APP.Vm,b!=null,OU,HU(c)],
4
+ null);if($APP.I($APP.k(a,"__xTypographyModel"),b)){b=$APP.G(b);e=$APP.C(b,$APP.nk);d=$APP.C(b,$APP.Fn);var f=$APP.C(b,$APP.Vm);c=$APP.C(b,OU);var h=JU(a);h=$APP.G(h);h=$APP.C(h,$APP.kj);$APP.S(a,"data-variant",e);$APP.S(a,"data-align",d);$APP.n(f)?h.setAttribute("data-truncate",""):h.removeAttribute("data-truncate");c!=null&&$APP.p(f)?(e=h.style,e.display="-webkit-box",e.setProperty("-webkit-box-orient","vertical"),e.overflow="hidden",e.setProperty("-webkit-line-clamp",""+$APP.V.i(c))):(c=h.style,
5
+ c.removeProperty("display"),c.removeProperty("-webkit-box-orient"),c.removeProperty("overflow"),c.removeProperty("-webkit-line-clamp"));a.__xTypographyModel=b}},QU=function(a){$APP.Th(a,"variant","variant","body1");$APP.Th(a,"align","align","left");$APP.Sh(a,"truncate","truncate");return Object.defineProperty(a,"lineClamp",{get:function(){return HU(this.getAttribute("line-clamp"))},set:function(b){return b==null?this.removeAttribute("line-clamp"):this.setAttribute("line-clamp",""+$APP.V.i(b|0))},
6
+ enumerable:!0,configurable:!0})},RU=function(a){JU(a);PU(a);return null},SU=function(a,b,c,d){$APP.I(c,d)&&PU(a);return null},UU=function(){return $APP.Ah("x-typography",new $APP.O(null,4,[$APP.qh,TU,$APP.oh,RU,$APP.kh,SU,$APP.ph,QU],null))},LU=new $APP.F(null,"line-clamp-raw","line-clamp-raw",-1982923204),OU=new $APP.F(null,"line-clamp","line-clamp",-1079334403),KU=new $APP.F(null,"truncate-raw","truncate-raw",1178232402);var TU=["variant","align","truncate","line-clamp"],MU=new $APP.pg(null,new $APP.O(null,16,["subtitle2",null,"overline",null,"h3",null,"body1",null,"body2",null,"small",null,"subtitle1",null,"h2",null,"kbd",null,"h4",null,"h5",null,"blockquote",null,"h1",null,"caption",null,"code",null,"h6",null],null),null),NU=new $APP.pg(null,new $APP.O(null,4,["right",null,"justify",null,"center",null,"left",null],null),null);var IU=":host{display:block;color-scheme:light dark;font-family:var(--x-typography-font-family,"+$APP.V.i("system-ui,-apple-system,sans-serif")+");color:var(--x-typography-color,var(--x-color-text,inherit));}[part\x3dcontainer]{margin:0;padding:0;}:host(:not([data-variant])),:host([data-variant\x3d'body1']){font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'h1']){font-size:2.5rem;font-weight:700;line-height:1.2;letter-spacing:-0.02em;}:host([data-variant\x3d'h2']){font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-0.015em;}:host([data-variant\x3d'h3']){font-size:1.75rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;}:host([data-variant\x3d'h4']){font-size:1.5rem;font-weight:600;line-height:1.35;letter-spacing:-0.005em;}:host([data-variant\x3d'h5']){font-size:1.25rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'h6']){font-size:1.125rem;font-weight:600;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'subtitle1']){font-size:1.125rem;font-weight:500;line-height:1.4;letter-spacing:0.005em;}:host([data-variant\x3d'subtitle2']){font-size:0.875rem;font-weight:500;line-height:1.4;letter-spacing:0.01em;}:host([data-variant\x3d'body2']){font-size:0.875rem;font-weight:400;line-height:1.5;letter-spacing:normal;}:host([data-variant\x3d'caption']){font-size:0.75rem;font-weight:400;line-height:1.4;letter-spacing:0.02em;}:host([data-variant\x3d'overline']){font-size:0.625rem;font-weight:600;line-height:1.5;letter-spacing:0.1em;text-transform:uppercase;}:host([data-variant\x3d'small']){font-size:0.8125rem;font-weight:400;line-height:1.4;letter-spacing:normal;}:host([data-variant\x3d'blockquote']){font-size:1.125rem;font-weight:400;line-height:1.6;letter-spacing:normal;font-style:italic;}:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left:3px solid var(--x-typography-blockquote-border-color,var(--x-color-border,"+
7
+ $APP.V.i("rgba(0,0,0,0.2)")+"));padding:var(--x-typography-blockquote-padding,0 0 0 1em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'blockquote']) [part\x3dcontainer]{border-left-color:var(--x-typography-blockquote-border-color,var(--x-color-border,"+$APP.V.i("rgba(255,255,255,0.25)")+"));}}:host([data-variant\x3d'code']){font-family:var(--x-typography-mono-font-family,"+$APP.V.i('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+
8
+ $APP.V.i("rgba(0,0,0,0.06)")+"));border-radius:var(--x-typography-code-radius,var(--x-radius-sm,4px));padding:var(--x-typography-code-padding,0.15em 0.35em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'code']) [part\x3dcontainer]{background:var(--x-typography-code-bg,var(--x-color-surface,"+$APP.V.i("rgba(255,255,255,0.1)")+"));}}:host([data-variant\x3d'kbd']){font-family:var(--x-typography-mono-font-family,"+$APP.V.i('ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace')+
9
+ ");font-size:0.875rem;font-weight:400;line-height:1.5;}:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+$APP.V.i("rgba(0,0,0,0.06)")+"));border:1px solid var(--x-typography-kbd-border,var(--x-color-border,"+$APP.V.i("rgba(0,0,0,0.15)")+"));border-radius:var(--x-typography-kbd-radius,var(--x-radius-sm,4px));padding:var(--x-typography-kbd-padding,0.15em 0.4em);}@media (prefers-color-scheme:dark){:host([data-variant\x3d'kbd']) [part\x3dcontainer]{background:var(--x-typography-kbd-bg,var(--x-color-surface,"+
10
+ $APP.V.i("rgba(255,255,255,0.1)")+"));border-color:var(--x-typography-kbd-border,var(--x-color-border,"+$APP.V.i("rgba(255,255,255,0.2)")+"));}}:host([data-align\x3d'left']){text-align:left;}:host([data-align\x3d'center']){text-align:center;}:host([data-align\x3d'right']){text-align:right;}:host([data-align\x3d'justify']){text-align:justify;}[part\x3dcontainer][data-truncate]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}";$APP.ha("baredom.exports.x_typography.init",UU);export const init=UU;