PageSourceSearch

https://www.predictionlab.ai/_next/static/immutable/chunks/229l29xv_bgqd.js

js predictionlab.ai collected 2026-10-05 12:30:18 UTC 44,790 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,823034,933930,625545,969665,567664,855767,303176,514162,665947,886810,856078,68382,e=>{"use strict";let t;var n=e.i(341403),r=(0,n.createContext)(null),i=()=>{let e=(0,n.useContext)(r);if(!e)throw Error("useChart must be used within a Chart component");return e},l={visible:!1,xValue:null,mouseX:0,mouseY:0},a=(0,n.createContext)(null);function o({children:e}){let[t,r]=(0,n.useState)(l),i=(0,n.useCallback)(e=>{r({...e,visible:!0})},[]),s=(0,n.useCallback)(()=>{r(l)},[]);return(0,n.createElement)(a.Provider,{value:{state:t,show:i,hide:s}},e)}var s=(0,n.createContext)({xScale:null,yScales:new Map}),c=()=>(0,n.useContext)(s);function u(e){return"tickFormat"in e&&"function"==typeof e.tickFormat&&"ticks"in e&&"function"==typeof e.ticks}e.s(["ScaleContext",0,s,"useScales",0,c],933930);var d=(t=null,e=>{if(typeof document>"u")return null;if(t||=document.createElement("canvas").getContext("2d")){let n=`${e.fontWeight||"normal"} ${e.fontSize||"12px"} ${e.fontFamily||"sans-serif"}`;t.font=n}return t}),h={},f=e.i(546165),m=e.i(827536),x=(0,f.tv)({slots:{label:"axis-label fill-chart-label text-sm font-medium",axisLine:"domain stroke-chart-axis",tickLabels:"fill-chart-label"}});function p(e){return"bottom"===e||"right"===e?1:-1}function g(e){return"top"===e||"bottom"===e}var v="u">typeof window&&window.devicePixelRatio>1?0:.5;function y({scale:e,position:t,tickValues:r,tickFormat:l,classNames:a,onMeasure:o,measureId:s,label:c,labelOffset:u,labelPosition:d="inside",hideTickLines:h=!0,hideAxisLine:f=!1,axisLineStrokeWidth:b=2,insideLabelOffsetX:k=0,insideLabelOffsetY:w=25}){let j=(0,n.useRef)(null),{width:C,height:M,margin:N}=i(),S=function(){let[e,t]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(!document.fonts)return;let e=()=>t(e=>e+1),n=!1;return document.fonts.ready.then(()=>{n||e()}),document.fonts.addEventListener("loadingdone",e),()=>{n=!0,document.fonts.removeEventListener("loadingdone",e)}},[]),e}(),E=g(t),$=p(t),A=u??("outside"===d?15:5),L=6*!h,P=6*!h,T=Math.max(L,0)+(h?9:3),F=(0,n.useMemo)(()=>"bottom"===t?`translate(0, ${M-N.top-N.bottom})`:"right"===t?`translate(${C-N.left-N.right}, 0)`:"translate(0,0)",[t,M,C,N]),R=(0,n.useMemo)(()=>r||("ticks"in e&&"function"==typeof e.ticks?e.ticks():e.domain()),[e,r]),z=(0,n.useMemo)(()=>l||("tickFormat"in e&&"function"==typeof e.tickFormat?e.tickFormat():String),[e,l]),B=(0,n.useMemo)(()=>{let t=e.range(),n=Number(t[0])+v,r=Number(t[t.length-1])+v;return E?P?`M${n},${$*P}V${v}H${r}V${$*P}`:`M${n},${v}H${r}`:P?`M${$*P},${n}H${v}V${r}H${$*P}`:`M${v},${n}V${r}`},[e,E,$,P]),I=(0,n.useMemo)(()=>{let e;return e=p(t),g(t)?{x:0,y:e*T,dy:"bottom"===t?"0.71em":"0em",textAnchor:"middle"}:{x:e*T,y:0,dy:"0.32em",textAnchor:"left"===t?"end":"start"}},[t,T]),D=(0,n.useMemo)(()=>{let t="bandwidth"in e&&"function"==typeof e.bandwidth,n=0;return t&&(n=Math.max(0,e.bandwidth()-2*v)/2,"round"in e&&"function"==typeof e.round&&e.round()&&(n=Math.round(n))),R.map(t=>{let r=e(t);return void 0===r?void 0:Number(r)+n})},[e,R]),_=(0,n.useCallback)((e,t)=>{o&&s&&o({position:e,bbox:t,id:s})},[o,s]),O=a?.label,W=(0,n.useMemo)(()=>c?x().label({className:O}):"",[c,O]);return(0,n.useLayoutEffect)(()=>{let e,n=j.current;if(!n)return;let r=n.querySelector(".axis-label");r&&(r.style.display="none");let i=n.getBBox();if(r&&(r.style.display=""),c&&r){let e="outside"===d?(E?i.height:i.width)+A:A,n=function(e){let{axisPosition:t,labelPosition:n,width:r,height:i,margin:l,offset:a,insideLabelOffsetX:o,insideLabelOffsetY:s}=e,c=r-l.left-l.right,u=i-l.top-l.bottom;if("inside"===n)switch(t){case"left":return{transform:`translate(${o-l.left}, ${-s})`,textAnchor:"start",dominantBaseline:"auto"};case"right":return{transform:`translate(${-o+l.right}, ${-s})`,textAnchor:"end",dominantBaseline:"auto"};case"bottom":return{transform:`translate(${c-o}, ${-s})`,textAnchor:"end",dominantBaseline:"auto"};case"top":return{transform:`translate(${c-o}, ${s})`,textAnchor:"end",dominantBaseline:"hanging"}}switch(t){case"left":return{transform:`translate(${-a}, ${u/2}) rotate(-90)`,textAnchor:"middle",dominantBaseline:"auto"};case"right":return{transform:`translate(${a}, ${u/2}) rotate(90)`,textAnchor:"middle",dominantBaseline:"auto"};case"bottom":return{transform:`translate(${c/2}, ${a})`,textAnchor:"middle",dominantBaseline:"hanging"};case"top":return{transform:`translate(${c/2}, ${-a})`,textAnchor:"middle",dominantBaseline:"auto"}}}({axisPosition:t,labelPosition:d,width:C,height:M,margin:N,offset:e,insideLabelOffsetX:k,insideLabelOffsetY:w});r.setAttribute("transform",n.transform),r.setAttribute("text-anchor",n.textAnchor),r.setAttribute("dominant-baseline",n.dominantBaseline)}if(c&&"inside"===d){let t=n.getBBox(),r=Math.min(i.y,t.y),l=Math.max(i.y+i.height,t.y+t.height);
1e=new DOMRect(i.x,r,i.width,l-r)}else e=n.getBBox();_(t,e)},[c,d,E,A,t,C,M,N,k,w,_,F,R,D,z,B,W,S]),(0,m.jsxs)("g",{ref:j,transform:F,className:a?.container,fill:"none",fontSize:10,textRendering:"auto","aria-label":"string"==typeof c?`${t} axis: ${c}`:void 0,children:[!f&&(0,m.jsx)("path",{className:x().axisLine({className:a?.axisLine}),d:B,fill:"none",strokeWidth:b}),R.map((e,t)=>{let n=D[t];if(void 0===n)return null;let r=E?`translate(${n+v},0)`:`translate(0,${n+v})`;return(0,m.jsxs)("g",{className:"tick",transform:r,children:[L>0&&(0,m.jsx)("line",{className:"stroke-chart-axis",...E?{x1:0,x2:0,y1:0,y2:$*L}:{x1:0,x2:$*L,y1:0,y2:0}}),(0,m.jsx)("text",{className:x().tickLabels({className:a?.tickLabels}),x:I.x,y:I.y,dy:I.dy,textAnchor:I.textAnchor,children:z(e)})]},String(e))}),c&&(0,m.jsx)("text",{className:W,children:c})]})}function b(e){return(0,m.jsx)(y,{...e})}b.__componentType="Axis";var k=["var(--color-chart-1)","var(--color-chart-2)","var(--color-chart-3)","var(--color-chart-4)","var(--color-chart-5)"],w=["var(--color-foreground)","var(--color-foreground-muted)"];function j(e){return k[e%k.length]}function C(e,t){}function M(e){return w[Math.min(e,w.length-1)]}function N(e,t){}function S(e){let t=0,n=0,r=0,i=[];return e.forEach((e,l)=>{"observed"===e.role&&!e.interval&&n++,e.interval?i.push(e.color??i[l-1]??j(0)):void 0===e.color?"observed"===e.role?i.push(M(t++)):i.push(j(r++)):i.push(e.color)}),{colors:i,observedCount:n,categoricalCount:r}}var E=(0,n.createContext)(null);function $({children:e}){let[t,r]=(0,n.useState)([]),i=(0,n.useCallback)(e=>{r(t=>{let n=t.findIndex(t=>t.id===e.id);if(-1===n)return[...t,e];let r=t[n];return r.hasExplicitColor===e.hasExplicitColor&&r.role===e.role&&r.slots===e.slots?t:t.map((t,r)=>r===n?e:t)})},[]),l=(0,n.useCallback)(e=>{r(t=>t.filter(t=>t.id!==e))},[]);(0,n.useEffect)(()=>{C("Chart",A(t.filter(e=>"observed"!==e.role&&!e.hasExplicitColor))),N("Chart",A(t.filter(e=>"observed"===e.role)))},[t]);let a=(0,n.useMemo)(()=>({series:t,register:i,unregister:l}),[t,i,l]);return(0,n.createElement)(E.Provider,{value:a},e)}function A(e){return e.reduce((e,t)=>e+t.slots,0)}function L(e,t,r=!1){let i=(0,n.useId)(),l=(0,n.useContext)(E),a=l?.register,o=l?.unregister;(0,n.useLayoutEffect)(()=>{a?.({id:i,role:t,hasExplicitColor:r,slots:e})},[i,t,r,e,a]),(0,n.useLayoutEffect)(()=>()=>o?.(i),[i,o]);let s="observed"===t,c=l?.series.filter(e=>!e.hasExplicitColor&&"observed"===e.role===s)??[],u=c.findIndex(e=>e.id===i),d=-1===u?0:A(c.slice(0,u));return Array.from({length:e},(e,t)=>s?M(d+t):j(d+t))}function P(e,t){let[n]=L(1,t,void 0!==e);return e??n}var T=e.i(764550);function F({svgRef:e}){let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let n=e.current,r=t.current;if(!n||!r)return;let i=0,l=null,a=e=>{e!==l&&(l=e,e?r.setAttribute("d",e):r.removeAttribute("d"))},o=()=>{let e=n.ownerDocument.activeElement;if(!(e instanceof SVGGraphicsElement)||!n.contains(e)||!(0,T.isKeyboardFocusVisible)(e))return void a(null);let t=e===n?function(e){let{width:t,height:n}=e.getBoundingClientRect();return{x:9,y:9,width:Math.max(0,t-18),height:Math.max(0,n-18)}}(n):function(e,t){let n=e.getScreenCTM(),r=t.getScreenCTM();if(!n||!r)return null;let i=r.inverse().multiply(n),{x:l,y:a,width:o,height:s}=e.getBBox(),c=[new DOMPoint(l,a),new DOMPoint(l+o,a),new DOMPoint(l,a+s),new DOMPoint(l+o,a+s)].map(e=>e.matrixTransform(i)),u=c.map(e=>e.x),d=c.map(e=>e.y),h=Math.min(...u),f=Math.min(...d);return{x:h,y:f,width:Math.max(...u)-h,height:Math.max(...d)-f}}(e.hasAttribute("data-selected")?e.querySelector(".selection")??e:e,n);a(t?function({x:e,y:t,width:n,height:r}){let i=e-5,l=t-5,a=e+n+5,o=t+r+5,s=(e,t,n,r)=>`M${e} ${t}h${n}v${r}h${-n}z`;return[s(i,l,6,2),s(i,l,2,6),s(a-6,l,6,2),s(a-2,l,2,6),s(i,o-2,6,2),s(i,o-6,2,6),s(a-6,o-2,6,2),s(a-2,o-6,2,6)].join("")}(t):null),i=requestAnimationFrame(o)},s=()=>{cancelAnimationFrame(i),i=requestAnimationFrame(o)};return n.addEventListener("focusin",s),n.addEventListener("keydown",s),()=>{n.removeEventListener("focusin",s),n.removeEventListener("keydown",s),cancelAnimationFrame(i)}},[e]),(0,m.jsx)("path",{ref:t,"aria-hidden":!0,"data-focus-ticks":!0,className:"fill-brand pointer-events-none forced-colors:fill-[Highlight]"})}function R({data:e,children:t,className:i,margin:l,setMargin:a,title:o,description:s}){let c=(0,n.useRef)(null),u=(0,n.useId)(),d=(0,n.useId)(),h=(0,n.useId)(),[f,x]=(0,n.use
1State)({width:0,height:0});(0,n.useEffect)(()=>{if(!c.current)return;let e=new ResizeObserver(([e])=>{if(e){let t=Math.round(e.contentRect.width),n=Math.round(e.contentRect.height);x(e=>e.width===t&&e.height===n?e:{width:t,height:n})}});return e.observe(c.current),()=>e.disconnect()},[]);let p=(0,n.useMemo)(()=>({width:f.width,height:f.height,margin:l,setMargin:a,data:e,clipPathId:u,title:o,description:s}),[f.width,f.height,l,a,e,u,o,s]),g=[o?d:null,s?h:null].filter(Boolean).join(" ")||void 0;return(0,m.jsx)(r.Provider,{value:p,children:(0,m.jsxs)("svg",{ref:c,className:i,width:f.width||void 0,height:f.height||void 0,style:{overflow:"hidden"},role:o||s?"img":void 0,"aria-labelledby":g,children:[o&&(0,m.jsx)("title",{id:d,children:o}),s&&(0,m.jsx)("desc",{id:h,children:s}),(0,m.jsx)($,{children:f.width>0&&f.height>0&&t}),(0,m.jsx)(F,{svgRef:c})]})})}function z(e){return(0,m.jsx)(R,{...e})}z.Content=function({children:e}){let{margin:t,width:n,height:r,clipPathId:l}=i(),a=Math.max(0,n-t.left-t.right),o=Math.max(0,r-t.top-t.bottom);return(0,m.jsxs)("g",{transform:`translate(${t.left},${t.top})`,children:[(0,m.jsx)("defs",{children:(0,m.jsx)("clipPath",{id:l,children:(0,m.jsx)("rect",{x:0,y:0,width:a,height:o})})}),a>0&&o>0&&e]})},z.useChart=i,z.__componentType="Chart",e.s(["default",0,z],625545);var B=(0,f.tv)({base:"text-chart-gridline"});function I({scale:e,orientation:t,tickCount:r,tickValues:l,className:a}){let{width:o,height:s,margin:c}=i(),u=o-c.left-c.right,d=s-c.top-c.bottom,h=(0,n.useMemo)(()=>l||("ticks"in e&&"function"==typeof e.ticks?e.ticks(r):e.domain()),[e,r,l]);return(0,m.jsx)("g",{className:B({className:a}),"aria-hidden":"true",children:h.map(n=>{let r=e(n);if(void 0===r)return null;let i=r+.5;return(0,m.jsx)("line",{x1:"vertical"===t?i:0,y1:"vertical"===t?0:i,x2:"vertical"===t?i:u,y2:"vertical"===t?d:i,stroke:"currentColor"},String(n))})})}function D(e){return(0,m.jsx)(I,{...e})}D.__componentType="Grid";var _=e.i(99435),O={fontSize:"10px"},W=e.i(600531),K=e.i(492845),V=e.i(197609),H={domain:()=>[],range:()=>[]},U=(0,f.tv)({slots:{root:"flex flex-col gap-1.5"}});function X(e,t,n){if("band"===e.type){let r=t.map(t=>t[e.key]);return(0,K.scaleBand)().domain(r).range(n).padding(e.padding||.1)}let r=[0,1];if("key"===e.domainFrom){let[n,i]=function(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let i=-1;for(let l of e)null!=(l=t(l,++i,e))&&(void 0===n?l>=l&&(n=r=l):(n>l&&(n=l),r<l&&(r=l)))}return[n,r]}(t,t=>t[e.key]),l=!1===e.includeZero,a=e.min??(void 0===n?0:l?n:Math.min(0,n)),o=e.max??(void 0===i?1:l?i:Math.max(0,i));r=a===o?[a,a+1]:[a,o]}else if("stack"===e.domainFrom){let n=(0,W.max)(t,t=>e.keys.reduce((e,n)=>e+t[n],0)),i=e.min??0,l=e.max??n??0;r=i===l?[i,i+1]:[i,l]}let i=(0,V.scaleLinear)().domain(r).range(n);return e.nice&&i.nice(),i}function Y({children:e}){let t=(0,n.useRef)(null),r=(0,_.useOverflowTabStop)(t);return(0,m.jsx)("div",{ref:t,tabIndex:r,className:"keyboard-focus:before:focus-ticks-scroll min-h-0 shrink-0 scrollbar-none overflow-auto",children:e})}function q({scale:e,from:t,width:n,height:r}){let i=e(t);if(void 0===i||!isFinite(i)||i>n)return null;let l=Math.max(0,i);return(0,m.jsxs)("g",{"aria-hidden":"true",pointerEvents:"none",children:[(0,m.jsx)("rect",{x:l,y:0,width:n-l,height:r,className:"fill-muted/40"}),(0,m.jsx)("line",{x1:l,x2:l,y1:0,y2:r,strokeWidth:1,className:"stroke-foreground-subtle"}),(0,m.jsx)("text",{x:l+4,y:10,className:"fill-foreground-muted",style:O,children:"Forecast"})]})}function G({children:e,data:t,xAxis:r,yAxes:l,gridDef:a,forecastFrom:o,onMeasure:c}){let{width:f,height:x,margin:p}=i(),g=JSON.stringify({x:r.scaleDef,y:l.map(({id:e,scaleDef:t})=>({id:e,scaleDef:t}))}),v=(0,n.useMemo)(()=>{let e=X(r.scaleDef,t,[0,f-p.left-p.right]),n=new Map;return l.forEach(e=>{let r=X(e.scaleDef,t,[x-p.top-p.bottom,0]);n.set(e.id,r)}),{xScale:e,yScales:n}},[g,t,f,x,p.left,p.right,p.top,p.bottom]),y=(0,n.useMemo)(()=>r.tickFormat?{tickFormat:r.tickFormat}:void 0,[r.tickFormat]),k=((e,t,r,i=h)=>{let l=(0,n.useMemo)(()=>({orientation:i.orientation,minPadding:i.minPadding,tickFormat:i.tickFormat}),[i.orientation,i.minPadding,i.tickFormat]);return(0,n.useMemo)(()=>(function(e,t,n,r={}){let{orientation:i="horizontal",minPadding:l=10,tickFormat:a}=r,{allTicks:o,tickFormatter:s}=a?{allTicks:u(e)?e.ticks():e.domain(),tickFormatter:a}:u(e)?{allTicks:e.ticks(),tickFormatter:e.tickFormat(null,"s")}:{allTicks:e.domain(),tickFormatter:e=>String(e)},c=d(n);if(!c||t<=0)return[];let h=o.map(e=>{let t=s(e);return{value:e,size:"horizontal"===i?c.measureText(t).width:parseFloat(n.fontSize||"12")}}),f=[],m=-1/0;for(let t of h){let n=e(t.value);n-t.size/2>m+l&&(f.push(t.value),m=n+t.size/2)}return f})(e,t,r,l),[e,t,r,l])})(v.xScale||H,f,O,y),w=(0,n.useMemo)(()=>
1{if(!v.yScales)return new Map;let e=new Map,t=x-p.top-p.bottom;return v.yScales.forEach((n,r)=>{let i=function(e,t){let n=u(e)?e.ticks():e.domain(),r=Math.max(3,Math.floor(t/32));if(n.length>r){if(u(e))return e.ticks(r);{let e=Math.ceil(n.length/r),t=new Set([...n.filter((t,n)=>n%e==0)]);return n.length>0&&(t.add(n[0]),t.add(n[n.length-1])),Array.from(t).sort((e,t)=>Number(e)-Number(t))}}return n}(n,t);e.set(r,i)}),e},[v.yScales,x,p.top,p.bottom]);if(!v.xScale||!v.yScales)return null;let j=a?v.yScales.get(a.axisId):void 0;return(0,m.jsxs)(s.Provider,{value:v,children:[j&&(0,m.jsx)(D,{scale:j,orientation:"horizontal",className:"stroke-border"}),void 0!==o&&(0,m.jsx)(q,{scale:v.xScale,from:o,width:f-p.left-p.right,height:x-p.top-p.bottom}),e,!r.hidden&&(0,m.jsx)(b,{scale:v.xScale,position:"bottom",tickValues:k,label:r.label,labelPosition:"outside",onMeasure:c,measureId:"bottom-axis",tickFormat:r.tickFormat,hideTickLines:r.hideTickLines,hideAxisLine:r.hideAxisLine,axisLineStrokeWidth:r.axisLineStrokeWidth,classNames:{...r.classNames}}),l.map(e=>{let t=v.yScales.get(e.id);return e.hidden||!t?null:(0,m.jsx)(b,{scale:t,position:e.position,tickValues:w.get(e.id),label:e.label,onMeasure:c,measureId:`y-axis-${e.id}`,tickFormat:e.tickFormat,hideTickLines:e.hideTickLines,hideAxisLine:e.hideAxisLine??!0,axisLineStrokeWidth:e.axisLineStrokeWidth},e.id)})]})}e.s(["ChartCanvas",0,function({data:e,children:t,enableSharedTooltip:r,title:i,description:l,className:a,header:s,afterHeader:c,footer:u,leftContent:d,rightContent:h,innerPadding:f,...x}){let{margin:p,setMargin:g,handleAxisMeasure:v}=function(e){let t=(0,n.useMemo)(()=>({top:e?.top??10,right:e?.right??10,bottom:e?.bottom??10,left:e?.left??10}),[e?.top,e?.right,e?.bottom,e?.left]),[r,i]=(0,n.useState)(t),l=(0,n.useRef)(new Map),a=(0,n.useRef)(0),o=(0,n.useRef)(0);(0,n.useEffect)(()=>()=>cancelAnimationFrame(o.current),[]);let s=(0,n.useCallback)(()=>{i(e=>{let n=0,r=0,i=0,o=l.current.get("bottom-axis")?.bbox.height||0;for(let[e,t]of l.current.entries())e.startsWith("y-axis-")&&("left"===t.position?n+=t.bbox.width:"right"===t.position&&(r+=t.bbox.width),i=Math.max(i,Math.max(0,-t.bbox.y)));let s={bottom:Math.ceil(t.bottom+o),left:Math.ceil(t.left+n),top:Math.ceil(t.top+i),right:Math.ceil(t.right+r)};return 1>=Math.abs(s.top-e.top)&&1>=Math.abs(s.right-e.right)&&1>=Math.abs(s.bottom-e.bottom)&&1>=Math.abs(s.left-e.left)||a.current>=8?e:(a.current++,s)}),cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{a.current=0})},[t]);return{margin:r,setMargin:i,handleAxisMeasure:(0,n.useCallback)(e=>{l.current.set(e.id,e),s()},[s])}}(f),y=!!(d||h),b=(0,m.jsx)(z,{data:e,margin:p,setMargin:g,title:i,description:l,className:"min-h-0 w-full min-w-0 flex-1",children:(0,m.jsx)(z.Content,{children:(0,m.jsx)(G,{data:e,...x,onMeasure:v,children:t})})}),k=y?(0,m.jsxs)("div",{className:"flex min-h-0 flex-1 gap-3",children:[d&&(0,m.jsx)(Y,{children:d}),b,h&&(0,m.jsx)(Y,{children:h})]}):b,w=(0,m.jsxs)("div",{className:U().root({className:a}),children:[s,c,k,u]});return r?(0,m.jsx)(o,{children:w}):w}],969665);var J=e.i(221685);e.i(238314);var Z=e.i(175363),Q=e.i(251934),ee=e.i(459683),et=e.i(566635),en=e.i(895831),er=e.i(199518),ei=e.i(738404);function el(e,t,n){var r=null,i=(0,ee.default)(!0),l=null,a=et.default,o=null,s=(0,er.withPath)(c);function c(c){var u,d,h,f,m,x=(c=(0,Q.default)(c)).length,p=!1,g=Array(x),v=Array(x);for(null==l&&(o=a(m=s())),u=0;u<=x;++u){if(!(u<x&&i(f=c[u],u,c))===p)if(p=!p)d=u,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),h=u-1;h>=d;--h)o.point(g[h],v[h]);o.lineEnd(),o.areaEnd()}p&&(g[u]=+e(f,u,c),v[u]=+t(f,u,c),o.point(r?+r(f,u,c):g[u],n?+n(f,u,c):v[u]))}if(m)return o=null,m+""||null}function u(){return(0,en.default)().defined(i).curve(a).context(l)}return e="function"==typeof e?e:void 0===e?ei.x:(0,ee.default)(+e),t="function"==typeof t?t:void 0===t?(0,ee.default)(0):(0,ee.default)(+t),n="function"==typeof n?n:void 0===n?ei.y:(0,ee.default)(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,ee.default)(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,ee.default)(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,ee.default)(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,ee.default)(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,ee.default)(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,ee.default)(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:(0,ee.default)(!!e),c):i},c.curve=function(e){return arguments.length?(a=e,null!=l&&(o=a(l)),c):a},c.context=function(e){return arguments.length?(null==e?l=o=null:o=a(l=e),c):l},c}var ea=e.i(460605),eo=e.i(358424);function es({data:e,x:t,y0:r,y1:l,curve:a=ea.curveLinear,defined:o,className:s}){let{clipPathId:c}=i(),u=(0,n.useMemo)(()=>{let n=el().x(t).y0(r).y1(l).curve(a);return o&&n.defined(o),n(e)},[e,t,r,l,a,o]);return(0,m.jsx)("path",{d:u||"",className:s,clipPath:`url(#${c})`})}function ec(e){return(0,m.jsx)(es,{...e})}ec.__componentType="Area";var eu=({x:e,y:t,width:n,height:r,className:i,ariaLabel:l,tabIndex:a,role:o,...s})=>(0,m.jsx)("rect",{x:e,y:t,width:n,height:r,className:i,"aria-label":l,tabIndex:a,role:o,...s});function ed(e){return(0,m.jsx)(eu,{...e})}function eh({children:e,...t}){return(0,n.createElement)("text",{...t,x:-9999,y:-9999,"aria-hidden":!1},e)}ed.__componentType="Bar";var ef="Press Enter, Space or an arrow key to start a selection. Arrow keys move it, Alt with an arrow key resizes it, Home and End move it to either end, and Escape clears it.";function em(e,t,n,r){if(!e)return null;if("x"===t){let[t,n]=e;return[[t,0],[n,r]]}if("y"===t){let[t,r]=e;return[[0,t],[n,r]]}return e}function ex(e,t){return"x"===t?[e[0][0],e[1][0]]:"y"===t?[e[0][1],e[1][1]]:e}function ep(e,t,n,r){let i=t-e,l=Math.min(Math.max(e+n,0),r-i);return[l,l+i]}function eg(e,t,n,r,i,l){let a="y"!==r,o="x"!==r;if(!("Enter"===e||" "===e||"Home"===e||"End"===e||a&&("ArrowLeft"===e||"ArrowRight"===e)||o&&("ArrowUp"===e||"ArrowDown"===e)))return;let s=(e,t)=>t?[.8*e/2,1.2*e/2]:[0,e],c=s(i,a),u=s(l,o),d=n??[[c[0],u[0]],[c[1],u[1]]];if(!n&&"Home"!==e&&"End"!==e)return d;let[[h,f],[m,x]]=d,p=t.shiftKey?10:1,g=.01*i,v=.01*l,y=e=>{t.altKey?m=Math.min(Math.max(m+e*g*p,h+g),i):[h,m]=ep(h,m,e*g*p,i)},b=e=>{t.altKey?x=Math.min(Math.max(x+e*v*p,f+v),l):[f,x]=ep(f,x,e*v*p,l)};switch(e){case"ArrowLeft":y(-1);break;case"ArrowRight":y(1);break;case"ArrowUp":b(-1);break;case"ArrowDown":b(1);break;case"Home":a?[h,m]=ep(h,m,-h,i):[f,x]=ep(f,x,-f,l);break;case"End":a?[h,m]=ep(h,m,i-m,i):[f,x]=ep(f,x,l-x,l)}return[[h,f],[m,x]]}function ev(e,t,n,r){let[[i,l],[a,o]]=e,s=(e,t)=>`${Math.round(e/t*100)}%`,c=`${s(i,n)} to ${s(a,n)}`,u=`${s(l,r)} to ${s(o,r)}`;return"x"===t?`Selected ${c}`:"y"===t?`Selected ${u}`:`Selected ${c} horizontally, ${u} vertically`}e.i(278139);var ey=e.i(287267),ey=ey,eb=e.i(692423),ek=(0,f.tv)({slots:{root:"text-center",title:"text-foreground text-lg leading-tight font-semibold",subtitle:"text-foreground-muted text-sm leading-tight"}});function ew({children:e,className:t}){return(0,m.jsx)("div",{className:ek().root({className:t}),children:e})}function ej(e){return(0,m.jsx)(ew,{...e})}ej.Title=function({className:e,...t}){return(0,m.jsx)("p",{className:ek().title({className:e}),...t})},ej.Subtitle=function({className:e,...t}){return(0,m.jsx)("p",{className:ek().subtitle({className:e}),...t})},ej.__componentType="Header";var eC=e.i(208109),eM=e.i(342447),eN=(0,f.tv)({slots:{root:"",item:"flex items-center",itemButton:["rounded-item relative flex cursor-pointer items-center","transition-opacity duration-150 motion-reduce:transition-none","keyboard-focus:after:focus-ticks"],itemSpan:"flex items-center",swatch:"shrink-0",icon:"relative top-[calc(0.5ex-0.5cap)] inline-block align-middle",label:"text-foreground-muted whitespace-nowrap",overflow:["text-foreground-muted rounded-item relative cursor-pointer","hover:text-foreground transition-colors duration-150","keyboard-focus:after:focus-ticks"]},variants:{orientation:{horizontal:{root:"flex flex-wrap gap-x-4 gap-y-1"},vertical:{root:"flex flex-col gap-1"}},shape:{square:{icon:"rounded-item"},circle:{icon:"rounded-full"},line:{icon:"rounded-full"},"dashed-line":{icon:"rounded-none border-t-2 border-dashed bg-transparent"},band:{icon:"rounded-item"}},size:{sm:{item:"gap-1",itemButton:"gap-1 text-[11px]",itemSpan:"gap-1 text-[11px]",icon:"h-2 w-2",overflow:"text-[11px]"},md:{item:"gap-1.5",itemButton:"gap-1.5 text-xs",itemSpan:"gap-1.5 text-xs",icon:"h-2.5 w-2.5",overflow:"text-xs"}},align:{start:{root:"justify-start"},center:{root:"justify-center"},end:{root:"justify-end"}},active:{true:{},false:{itemButton:"opacity-40",itemSpan:"opacity-40"}}},compoundVariants:[{shape:"line",size:"sm",class:{icon:"h-0.5 w-2.5"}},{shape:"line",size:"md",class:{icon:"h-0.5 w-3.5"}},{shape:"dashed-line",size:"sm",class:{icon:"h-0 w-2.5"}},{shape:"dashed-line",size:"md",class:{icon:"h-0 w-3.5"}}],defaultVariants:{orientation:"horizontal",shape:"square",size:"md"}});function eS({items:e,orientation:t="horizontal",size:r="md",align:i,maxItems:l,maxLabelWidth:a,onItemClick:o,onItemHover:s,renderIcon:c,renderItemTooltip:u,renderLabel:d,classNames:h}
1){let[f,x]=(0,n.useState)(null),[p,g]=(0,n.useState)(!1),v=!!(o||s),{colors:y,observedCount:b,categoricalCount:k}=S(e);(0,n.useEffect)(()=>C("Legend",k),[k]),(0,n.useEffect)(()=>N("Legend",b),[b]);let w=null!=l&&l<e.length&&!p,j=w?e.slice(0,l):e,M=e.length-(l??e.length),{getItemProps:E}=function({itemCount:e,orientation:t="horizontal",wrap:r=!0,onActivate:i}){let[l,a]=(0,n.useState)(0),o=e>0?Math.min(l,e-1):0,s=(0,n.useRef)([]),c=(0,n.useCallback)(e=>{a(e);let t=s.current[e];(t instanceof HTMLElement||t instanceof SVGElement)&&t.focus()},[]);return{activeIndex:o,setActiveIndex:a,getItemProps:(0,n.useCallback)(n=>({tabIndex:n===o?0:-1,onKeyDown:l=>{let a="horizontal"===t?"ArrowLeft":"ArrowUp",o="horizontal"===t?"ArrowRight":"ArrowDown";switch(l.key){case o:{l.preventDefault();let t=n+1;t>=e&&(t=r?0:e-1),c(t);break}case a:{l.preventDefault();let t=n-1;t<0&&(t=r?e-1:0),c(t);break}case"Home":l.preventDefault(),c(0);break;case"End":l.preventDefault(),c(e-1);break;case"Enter":case" ":l.preventDefault(),i?.(n,l)}},ref:e=>{s.current[n]=e}}),[o,e,t,r,c,i])}}({itemCount:j.length,orientation:t,wrap:!0,onActivate:o?(e,t)=>o(e,j[e],t):void 0}),$=eN({orientation:t,size:r,align:i}),A=()=>{x(null),s?.(null,null)},L=(0,m.jsxs)("ul",{className:$.root({className:h?.root}),role:"list","aria-label":"Chart legend",children:[j.map((e,t)=>{var n,i,l,p;let g,b=e.shape??(e.interval?"band":"points"===e.mark?"circle":"predicted"===e.role?"dashed-line":"observed"===e.role?"line":"square"),k=!1!==e.active,w={active:k,hovered:f===t,focused:!1},C=eN({shape:b,size:r,active:k}),M=c?c(e,t):(n=y[t],i=e.role,l=C.swatch(),p=C.icon({className:(0,eC.resolveClassName)(h?.icon,w)}),g="dashed-line"===b?{borderColor:n}:"band"===b?{backgroundColor:`color-mix(in oklch, ${n} 15%, transparent)`}:"circle"===b&&"predicted"===i?{border:`1.5px solid ${n}`,backgroundColor:"transparent"}:{backgroundColor:n},(0,m.jsx)("span",{className:l,children:(0,m.jsx)("span",{className:p,style:g,"aria-hidden":"true"})})),N=(0,m.jsx)("span",{className:C.label({className:(0,eC.resolveClassName)(h?.label,w)}),style:a?{maxWidth:a}:void 0,title:a?e.label:void 0,children:d?d(e,t):a?(0,m.jsx)("span",{className:"block overflow-hidden text-ellipsis",children:e.label}):e.label}),S=u?u(e,t):null,L=e=>null==S?e:(0,m.jsxs)(eM.default,{children:[(0,m.jsx)(eM.default.Trigger,{render:e}),(0,m.jsx)(eM.default.Content,{side:"top",children:S})]});if(v){let n=E(t);return(0,m.jsx)("li",{className:$.item(),children:L((0,m.jsxs)("button",{type:"button",className:C.itemButton({className:(0,eC.resolveClassName)(h?.item,w)}),"aria-pressed":k,onClick:n=>o?.(t,e,n),onMouseEnter:()=>{x(t),s?.(t,j[t])},onMouseLeave:A,...n,children:[M,N]}))},t)}return(0,m.jsx)("li",{className:$.item(),children:L((0,m.jsxs)("span",{tabIndex:null==S?void 0:0,className:C.itemSpan({className:(0,eC.resolveClassName)(h?.item,w)}),children:[M,N]}))},t)}),null!=l&&l<e.length&&(0,m.jsx)("li",{children:(0,m.jsx)("button",{type:"button",className:$.overflow(),onClick:w?()=>g(!0):()=>{g(!1),x(null)},children:w?`+${M} more`:"Show less"})})]});return u?(0,m.jsx)(eM.default.Provider,{delay:150,children:L}):L}function eE(e){return(0,m.jsx)(eS,{...e})}function e$({data:e,x:t,y:r,curve:i=ea.curveLinear,defined:l,className:a}){let o=(0,n.useMemo)(()=>(0,eo.line)().x(t).y(r).curve(i).defined(e=>{if(l)return l(e);let n=t(e),i=r(e);return!isNaN(n)&&!isNaN(i)&&isFinite(n)&&isFinite(i)})(e),[e,t,r,i,l]);return(0,m.jsx)("path",{d:o||"",fill:"none",stroke:"currentColor",className:a})}function eA(e){return(0,m.jsx)(e$,{...e})}eE.__componentType="Legend",e.s(["default",0,eE],567664),eA.__componentType="Line";var ey=ey,eL=ey;function eP({selection:e,width:t,height:n,mode:r,label:i,onRemove:l}){let[[a,o],[s,c]]=e,u,d,h,f;switch(r){case"x":u=a,d=0,h=s-a,f=n;break;case"y":u=0,d=o,h=t,f=c-o;break;default:u=a,d=o,h=s-a,f=c-o}return(0,m.jsx)("rect",{x:u,y:d,width:h,height:f,fill:"currentColor",fillOpacity:.15,cursor:"pointer",tabIndex:0,role:"button","aria-label":i,onClick:e=>{e.stopPropagation(),l()},onKeyDown:e=>{("Enter"===e.key||" "===e.key||"Delete"===e.key||"Backspace"===e.key)&&
1(e.preventDefault(),l())}})}function eT({width:e,height:t,selections:r,onStart:i,onBrush:l,onEnd:a,onClear:o,onRemove:s,formatSelection:c,"aria-label":u="Range selection",mode:d="xy",className:h}){let f=(0,n.useRef)(null),x=(0,n.useRef)(null),p=(0,n.useRef)(null),g=(0,n.useRef)(i),v=(0,n.useRef)(l),y=(0,n.useRef)(a),b=(0,n.useRef)(o),k=(0,n.useRef)(c),[w,j]=(0,n.useState)(""),C=(0,n.useId)();(0,n.useEffect)(()=>{g.current=i,v.current=l,y.current=a,b.current=o,k.current=c},[i,l,a,o,c]),(0,n.useEffect)(()=>{if(!x.current)return;let n,r=[[0,0],[e,t]];switch(d){case"x":n=(0,eL.brushX)().extent(r);break;case"y":n=(0,eL.brushY)().extent(r);break;default:n=(0,ey.default)().extent(r)}n.filter(e=>!e.button),p.current=n,n.on("start",n=>{if((0,eb.select)(f.current).attr("data-selected",n.selection?"":null),!n.sourceEvent)return;let r=em(n.selection,d,e,t);r&&g.current?.(r,n.sourceEvent)}).on("brush",n=>{if(!n.sourceEvent)return;let r=em(n.selection,d,e,t);r&&v.current?.(r,n.sourceEvent)}).on("end",r=>{if((0,eb.select)(f.current).attr("data-selected",r.selection?"":null),!r.sourceEvent)return;let i=em(r.selection,d,e,t);if(i){y.current?.(i,r.sourceEvent);let n=k.current?.(i)??ev(i,d,e,t);j(`${n}, applied`)}else b.current?.(),j("Selections cleared");(0,eb.select)(x.current).call(n.move,null)});let i=x.current;return(0,eb.select)(i).call(n),(0,eb.select)(i).select(".selection").attr("fill","currentColor").attr("fill-opacity","0.15").attr("stroke","none"),()=>{n.on("start",null).on("brush",null).on("end",null);let e=(0,eb.select)(i);e.on(".brush",null),e.selectAll(".overlay, .selection, .handle").remove()}},[e,t,d]);let M=n=>c?.(n)??ev(n,d,e,t);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("g",{ref:f,className:h,tabIndex:0,role:"application","aria-roledescription":"brush","aria-label":u,"aria-describedby":C,onKeyDown:n=>{let r=x.current,i=p.current;if(n.target!==n.currentTarget||!r||!i)return;let l=em((0,eL.brushSelection)(r),d,e,t);if("Escape"===n.key){(0,eb.select)(r).call(i.move,null),l?j("Selection discarded"):(b.current?.(),j("Selections cleared"));return}if("Enter"===n.key&&l){n.preventDefault(),(0,eb.select)(r).call(i.move,null),g.current?.(l,n.nativeEvent),y.current?.(l,n.nativeEvent),j(`${M(l)}, applied`);return}let a=eg(n.key,n,l,d,e,t);a&&(n.preventDefault(),(0,eb.select)(r).call(i.move,ex(a,d)),v.current?.(a,n.nativeEvent),j(`${M(a)}. Press Enter to apply.`))},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&x.current&&p.current&&((0,eb.select)(x.current).call(p.current.move,null),j(""))},children:[r.map((n,r)=>(0,m.jsx)(eP,{selection:n,width:e,height:t,mode:d,label:`Remove selection ${r+1}: ${M(n)}`,onRemove:()=>{s?.(r),f.current?.focus()}},r)),(0,m.jsx)("g",{ref:x})]}),(0,m.jsx)(eh,{id:C,children:`${ef} Enter applies it; hold Control or Command to add it to the existing selections.`}),(0,m.jsx)(eh,{"aria-live":"polite",children:w})]})}function eF(e){return(0,m.jsx)(eT,{...e})}eF.__componentType="MultiBrush",e.s(["default",0,eF],855767);var eR=(0,n.createContext)(null);function ez(e){let{namespace:t}=(()=>{let e=(0,n.useContext)(eR);if(!e)throw Error("PatternDefs sub-components must be rendered within a PatternDefs.Provider");return e})();return`${t}-${e}`}var eB=({children:e})=>(0,m.jsx)("defs",{children:e});function eI(e){return(0,m.jsx)(eB,{...e})}eI.Provider=({children:e})=>{let t=(0,n.useId)(),r=(0,n.useMemo)(()=>({namespace:t}),[t]);return(0,m.jsx)(eR.Provider,{value:r,children:e})},eI.Dots=({id:e,color:t="currentColor",backgroundColor:n="transparent",size:r=6})=>{let i=ez(e),l=r/4,a=r/2;return(0,m.jsxs)("pattern",{id:i,width:r,height:r,patternUnits:"userSpaceOnUse",children:[(0,m.jsx)("rect",{width:r,height:r,fill:n}),(0,m.jsx)("circle",{cx:a,cy:a,r:l,fill:t})]})},eI.Lines=({id:e,color:t="currentColor",backgroundColor:n="transparent",size:r=8,strokeWidth:i=1.5,angle:l=45})=>{let a=ez(e),o=i/2;return(0,m.jsxs)("pattern",{id:a,width:r,height:r,patternUnits:"userSpaceOnUse",patternTransform:`rotate(${l})`,children:[(0,m.jsx)("rect",{width:r,height:r,fill:n}),(0,m.jsx)("line",{x1:o,y1:0,x2:o,y2:r,stroke:t,strokeWidth:i})]})},eI.Crosshatch=({id:e,color:t="currentColor",backgroundColor:n="transparent",size:r=8,strokeWidth:i=1.5})=>{let l=ez(e);return(0,m.jsxs)("pattern",{id:l,width:r,height:r,patternUnits:"userSpaceOnUse",children:[(0,m.jsx)("rect",{width:r,height:r,fill:n}),(0,m.jsx)("line",{x1:0,y1:0,x2:r,y2:r,stroke:t,strokeWidth:i}),(0,m.jsx)("line",{x1:r,y1:0,x2:0,y2:r,stroke:t,strokeWidth:i})]})},eI.HorizontalLines=({id:e,color:t="currentColor",backgroundColor:n="transparent",size:r=8,strokeWidth:i=1.5})=>{let l=ez(e);return(0,m.jsxs)("pattern",{id:l,width:r,height:r,patternUnits:"userSpaceOnUse",children:[(0,m.jsx)("rect",{width:r,height:r,fill:n}),(0,m.jsx)("line",{x1:0,y1:r/2,x2:r,y2:r/2,stroke:t,strokeWidth:i})]})},eI.VerticalLines=({id:e,color:t="currentColor",backgroundColor:n="transparent",size:r=8,strokeWidth:i=1.5})=>{let l=ez(e);return(0,m.jsxs)("pattern",{id:l,width:r,height:r,patternUnits:"userSpaceOnUse",children:[(0,m.jsx)("rect",{width:r,height:r,fill:n}),(0,m.jsx)("line",{x1:r/2,y1:0,x2:r/2,y2:r,stroke:t,strokeWidth:i})]})},eI.__componentType="PatternDefs";var eD=({cx:e,cy:t,r:n=4,className:r,ariaLabel:i,tabIndex:l,role:a,...o})=>(0,m.jsx)("circle",{cx:e,cy:t,r:n,className:r,"aria-label":i,tabIndex:l,role:a,...o});function e_(e){return(0,m.jsx)(eD,{...e})}e_.__componentType="Point",e.s(["default",0,e_],303176);var eO=e.i(120297);(0,eO.format)(","),(0,eO.format)(".0%"),(0,f.tv)({slots:{root:"flex w-full",content:"flex",swatches:"roun
1ded-item flex overflow-hidden",swatch:"shrink-0",ticks:"flex",tick:"text-foreground-muted whitespace-nowrap tabular-nums"},variants:{orientation:{horizontal:{content:"min-w-56 flex-col",swatches:"w-full flex-row",swatch:"flex-1",ticks:"relative w-full",tick:"absolute top-0"},vertical:{content:"flex-row items-stretch",swatches:"flex-col-reverse",swatch:"flex-1",ticks:"flex-col-reverse justify-between"}},size:{sm:{content:"gap-1",tick:"text-[11px]"},md:{content:"gap-1.5",tick:"text-xs"}},align:{start:{root:"justify-start"},center:{root:"justify-center"},end:{root:"justify-end"}}},compoundVariants:[{orientation:"horizontal",size:"sm",class:{swatch:"h-2",ticks:"h-3.5"}},{orientation:"horizontal",size:"md",class:{swatch:"h-2.5",ticks:"h-4"}},{orientation:"vertical",size:"sm",class:{swatch:"min-h-5 w-2"}},{orientation:"vertical",size:"md",class:{swatch:"min-h-6 w-2.5"}}],defaultVariants:{orientation:"horizontal",size:"md",align:"start"}});var eW=e.i(982635),eK=e.i(738196),eV=e.i(946266),eH=e.i(526895);function eU(e){let t=(0,eH.useConstant)(()=>(0,eK.motionValue)(e)),{isStatic:r}=(0,n.useContext)(eV.MotionConfigContext);if(r){let[,r]=(0,n.useState)(e);(0,n.useEffect)(()=>t.on("change",r),[])}return t}var eX=e.i(941408);function eY(e,t,n,r,i){let l=window.innerWidth,a=window.innerHeight,o=e+i,s=t-i-r;return o+n>l&&(o=e-i-n),s<0&&(s=t+i),{left:o=Math.max(0,Math.min(o,l-n)),top:s=Math.max(0,Math.min(s,a-r))}}var eq=0,eG=[.23,1,.32,1];function eJ({children:e,content:t,classNames:r,showDelay:i=100,hideDelay:l=0,offset:a=10}){let{visible:o,position:s,show:c,hide:u,updatePosition:d}=function(e,t){let[r,i]=(0,n.useState)(!1),[l,a]=(0,n.useState)({x:0,y:0}),o=(0,n.useRef)(null),s=(0,n.useRef)(null),c=(0,n.useRef)(!1);return(0,n.useEffect)(()=>()=>{o.current&&clearTimeout(o.current),s.current&&clearTimeout(s.current)},[]),{visible:r,position:l,show:(0,n.useCallback)((t,n)=>{o.current&&clearTimeout(o.current),s.current&&clearTimeout(s.current),c.current=!0,a({x:t,y:n}),o.current=setTimeout(()=>{c.current=!1,i(!0)},Date.now()-eq<300?0:e)},[e]),hide:(0,n.useCallback)(()=>{if(o.current&&clearTimeout(o.current),s.current&&clearTimeout(s.current),c.current){c.current=!1;return}eq=Date.now(),s.current=setTimeout(()=>{i(!1)},t)},[t]),updatePosition:(0,n.useCallback)((e,t)=>{a({x:e,y:t})},[])}}(i,l),h=(0,n.useRef)(null),f=(0,n.useId)(),{prefersReducedMotion:x}=(0,J.useMotionConfig)(),p=eU(0),g=eU(0),v=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!o)return;let e=e=>{if("Escape"===e.key){u();let e=document.activeElement;(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o,u]),(0,n.useEffect)(()=>{if(!o||!h.current)return;let e=h.current.getBoundingClientRect(),{left:t,top:n}=eY(s.x,s.y,e.width,e.height,a);p.set(t),g.set(n)},[o,s,a,p,g]),(0,n.useEffect)(()=>{if(o){v.current=!0;return}if(!v.current)return;v.current=!1;let e=e=>{if(!h.current)return;let t=h.current.getBoundingClientRect(),{left:n,top:r}=eY(e.clientX,e.clientY,t.width,t.height,a);p.set(n),g.set(r)};return document.addEventListener("mousemove",e),()=>document.removeEventListener("mousemove",e)},[o,a,p,g]);let y=(0,n.useCallback)(e=>{c(e.clientX,e.clientY)},[c]),b=(0,n.useCallback)(e=>{d(e.clientX,e.clientY)},[d]),k=(0,n.useCallback)(()=>{u()},[u]),w=(0,n.useCallback)(e=>{let t=e.currentTarget.getBoundingClientRect();c(t.left+t.width/2,t.top)},[c]),j=(0,n.useCallback)(()=>{u()},[u]),C=(0,n.useCallback)(e=>{"Escape"===e.key&&u()},[u]);return(0,m.jsxs)(m.Fragment,{children:[e({onMouseEnter:y,onMouseMove:b,onMouseLeave:k,onFocus:w,onBlur:j,onKeyDown:C,tabIndex:0,"aria-describedby":o?f:void 0}),"u">typeof document&&(0,eX.createPortal)((0,m.jsx)(eW.AnimatePresence,{children:o&&(0,m.jsx)(Z.motion.div,{ref:h,id:f,role:"tooltip",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15*!x,ease:eG},className:r?.outer,style:{position:"fixed",left:p,top:g,pointerEvents:"none"},children:t})}),document.body)]})}var eZ=(0,f.tv)({slots:{root:"grid grid-cols-[auto_1fr_auto] items-center gap-x-2 gap-y-1 text-xs",swatch:"",icon:"relative top-[calc(0.5ex-0.5cap)] inline-block overflow-visible align-middle",label:"text-foreground-muted",value:"text-foreground text-right font-medium tabular-nums"}});function eQ({color:e,role:t,mark:n,band:r}){let i=eZ(),l=r?(0,m.jsx)("rect",{width:12,height:8,rx:1,fill:e,fillOpacity:.15}):"points"===n?(0,m.jsx)("circle",{cx:6,cy:4,r:2.5,fill:"predicted"===t?"none":e,stroke:"predicted"===t?e:"none"}):(0,m.jsx)("line",{x1:0,x2:12,y1:4,y2:4,stroke:e,strokeWidth:"predicted"===t?2:1,strokeDasharray:"predicted"===t?"4 3":void 0});return(0,m.jsx)("span",{className:i.swatch(),children:(0,m.jsx)("svg",{width:12,height:8,className:i.icon(),"aria-hidden":"true",children:l})})}function e0(e){return(0,m.jsx)(eJ,{...e})}e0.Series=function({entries:e,className:t}){let{colors:r}=S(e.map(({color:e,role:t})=>({color:e,role:t}))),i=e.map((e,t)=>({entry:e,color:r[t]})),l=i.filter(({entry:e})=>"observed"===e.role),a=i.filter(({entry:e})=>"observed"!==e.role),o=i.filter(({entry:e})=>e.interval),s=eZ();return(0,m.jsxs)("div",{className:s.root({className:t}),children:[[...l,...a].map(({entry:e,color:t},r)=>(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(eQ,{color:t,role:e.role,mark:e.mark}),(0,m.jsx)("span",{className:s.label(),children:e.label}),(0,m.jsx)("span",{className:s.value(),children:e.value})]},`series-${r}`)),o.map(({entry:e,color:t},r)=>(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(eQ,{color:t,band:!0}),(0,m.jsxs)("span",{className:s.label(),children:[e.label," interval"]}),(0,m.jsxs)("span",{className:s.value(),children:[e.interval?.[0]," – ",e.interval?.[1]]})]},`interval-${r}`))]})},e0.__componentType="Tooltip";function e1(e){return new Float64Array(e)}e1(4),e1(8),e1(12),e1(16),e1(4);e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(8),e1(8),e1(8),e1(4),e1(8),e1(8),e1(16),e1(12),e1(192),e1(192),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(8),e1(8),e1(8),e1(8),e1(8),e1(8),e1(8),e1(8),e1(8),e1(4),e1(4),e1(4),e1(8),e1(16),e1(16),e1(16),e1(32),e1(32),e1(48),e1(64),e1(1152),e1(1152),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(4),e1(24),e1(24),e1(24),e1(24),e1(24),e1(24),e1(24),e1(24),e1(24),e1(24),e1(1152),e1(1152),e1(1152),e1(1152),e1(1152),e1(2304),e1(2304),e1(3456),e1(5760),e1(8),e1(8),e1(8),e1(16),e1(24),e1(48),e1(48),e1(96),e1(192),e1(384),e1(384),e1(384),e1(768),e1(96),e1(96),e1(96),e1(1152);new Uint32Array(512);function e2(e,t){if((i=e.length)>1)for(var n,r,i,l=1,a=e[t[0]],o=a.length;l<i;++l)for(r=a,a=e[t[l]],n=0;n<o;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function e5(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function e4(e,t){return e[t]}function e6(e){let t=[];return t.key=e,t}e.s(["BarSeries",0,function({dataKey:e,categoryKey:t,yAxisId:n,color:r,role:l,ariaLabel:a,children:o}){let{data:s,clipPathId:u}=i(),d=P(r,l),{xScale:h,yScales:f}=c(),x=f.get(n);if(!h||!x||!("bandwidth"in h))return null;let p=x.range()[0];return(0,m.jsx)("g",{style:{color:d},fill:"currentColor",clipPath:`url(#${u})`,role:a?"list":void 0,"aria-label":a,children:s.map((n,r)=>{let i=h(n[t]),l=x(n[e]);if(void 0===i||void 0===l||isNaN(l))return null;let s=h.bandwidth(),c=Math.min(l,p),u=Math.abs(p-l);return(0,m.jsx)("g",{role:a?"listitem":void 0,children:o({datum:n,x:i,y:c,width:s,height:u})},r)})})}],514162),e.s(["LineSeries",0,function({dataKey:e,categoryKey:t,yAxisId:r,className:l,color:a,role:o,mark:s="line",interval:u,curve:d,ariaLabel:h,children:f}){let{data:x,clipPathId:p}=i(),g=P(a,o),{xScale:v,yScales:y}=c(),b=y.get(r),k=(0,n.useCallback)(e=>{if(!v)return 0;let n=e[t];return"bandwidth"in v?(v(n)??0)+v.bandwidth()/2:v(n)},[v,t]),w=(0,n.useCallback)(t=>b?b(t[e]):0,[b,e]),j=(0,n.useCallback)(e=>b&&u?b(e[u.lower]):0,[b,u]),C=(0,n.useCallback)(e=>b&&u?b(e[u.upper]):0,[b,u]),M=(0,n.useCallback)(e=>{let t=w(e);return void 0!==t&&isFinite(t)}
1,[w]),N=(0,n.useCallback)(e=>Number.isFinite(j(e))&&Number.isFinite(C(e)),[j,C]);if(!v||!b)return null;let S="predicted"===o;return(0,m.jsxs)("g",{className:l,style:{color:g},fill:"currentColor",clipPath:`url(#${p})`,role:h?"list":void 0,"aria-label":h,children:[u&&(0,m.jsx)("g",{stroke:"none",fillOpacity:.15,children:(0,m.jsx)(ec,{data:x,x:k,y0:j,y1:C,defined:N,curve:d})}),"points"!==s&&(0,m.jsx)("g",{strokeDasharray:S?"4 3":void 0,strokeWidth:S?2:void 0,strokeLinecap:"butt",children:(0,m.jsx)(eA,{data:x,x:k,y:w,defined:M,curve:d})}),(f||"line"!==s)&&x.map((e,t)=>{if(!M(e))return null;let n=k(e),r=w(e);return(0,m.jsx)("g",{role:h?"listitem":void 0,children:f?f({datum:e,cx:n,cy:r}):(0,m.jsx)("circle",{cx:n,cy:r,r:2.5,fill:S?"none":"currentColor",stroke:S?"currentColor":"none",strokeWidth:S?1.5:void 0})},t)})]})}],665947),e.s(["StackedBarSeries",0,function({yAxisId:e,keys:t,categoryKey:r,ariaLabel:l,children:a}){let{data:o,clipPathId:s}=i(),{xScale:u,yScales:d}=c(),h=(0,n.useMemo)(()=>(function(){var e=(0,ee.default)([]),t=e5,n=e2,r=e4;function i(i){var l,a,o=Array.from(e.apply(this,arguments),e6),s=o.length,c=-1;for(let e of i)for(l=0,++c;l<s;++l)(o[l][c]=[0,+r(e,o[l].key,c,i)]).data=e;for(l=0,a=(0,Q.default)(t(o));l<s;++l)o[a[l]].index=l;return n(o,a),o}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,ee.default)(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:(0,ee.default)(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?e5:"function"==typeof e?e:(0,ee.default)(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?e2:e,i):n},i})().keys(t)(o),[o,t]),f=L(t.length),x=d?.get(e);return u&&x&&"bandwidth"in u?(0,m.jsx)("g",{clipPath:`url(#${s})`,role:l?"list":void 0,"aria-label":l,children:h.map((e,t)=>(0,m.jsx)("g",{style:{color:f[t]},fill:"currentColor",children:e.map((t,n)=>{let i=u(t.data[r]),o=x(t[1]),s=x(t[0]);return void 0===i||void 0===o||void 0===s||isNaN(o)||isNaN(s)?null:(0,m.jsx)("g",{role:l?"listitem":void 0,children:a({datum:t,key:e.key,x:i,y:o,width:u.bandwidth(),height:s-o})},n)})},e.key))}):null}],886810),e.s(["useMultiBrush",0,function(e={}){let{initialSelections:t=[],onChange:r,onBrushMove:i}=e,[l,a]=(0,n.useState)(t),o=(0,n.useRef)(l);return(0,n.useEffect)(()=>{o.current=l},[l]),{selections:l,setSelections:(0,n.useCallback)(e=>{a(e),r?.(e)},[r]),addSelection:(0,n.useCallback)(e=>{let t=[...o.current,e];a(t),r?.(t)},[r]),removeSelection:(0,n.useCallback)(e=>{let t=o.current.filter((t,n)=>n!==e);a(t),r?.(t)},[r]),clearSelections:(0,n.useCallback)(()=>{a([]),r?.([])},[r]),brushProps:(0,n.useMemo)(()=>({selections:l,onStart:(e,t)=>{t.metaKey||t.ctrlKey||!(o.current.length>0)||(a([]),r?.([]))},onBrush:(e,t)=>{let n=t.metaKey||t.ctrlKey?[...o.current,e]:[e];i?.(n)},onEnd:(e,t)=>{let n=t.metaKey||t.ctrlKey?[...o.current,e]:[e];a(n),r?.(n)},onClear:()=>{a([]),r?.([])},onRemove:e=>{let t=o.current.filter((t,n)=>n!==e);a(t),r?.(t)}}),[l,r,i])}}],856078),e.s([],823034),e.s(["Bar",0,ed],68382)},56920,e=>{"use strict";var t=e.i(303176);e.s(["Point",()=>t.default])},857617,e=>{"use strict";var t=e.i(827536);let n="[stroke-dasharray:2,5]";e.s(["DASHED_LINE_CLASS",0,n,"LineSwatch",0,function({color:e,dashed:r}){return(0,t.jsx)("svg",{"aria-hidden":"true",width:16,height:2,viewBox:"0 0 16 2",className:"shrink-0",children:(0,t.jsx)("line",{x1:0,x2:16,y1:1,y2:1,stroke:e,strokeWidth:2,className:r?n:void 0})})}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.