arize-phoenix 8.26.3__py3-none-any.whl → 8.27.1__py3-none-any.whl

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.

Potentially problematic release.


This version of arize-phoenix might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as X1,f as wi,g as ye,h as xi,i as ki,k as Y1,l as s,m as Fe,p as b1,n as Xe,o as Ze,q as Si,C as c1,t as Mi,v as Ti,w as N,L as wa,x as xa,y as ka,z as de,A as C,B as v1,D as un,E as m,F as Sa,$ as zi,G as Ma,H as Ta,I as _e,J as gn,K as X,M as Ii,N as Ai,O as Ei,P as K,Q as d1,S as O,T as H,U as R,V as za,W as Ia,X as Vi,Y as Aa,Z as Di,_ as Pi,a0 as Oi,a1 as Fi,a2 as _i,a3 as Ni,a4 as Ri,a5 as $i,a6 as Hi,a7 as C1,a8 as Ki,a9 as Bi,aa as Zi,ab as ji,ac as Se,ad as J1,ae as en,af as nn,ag as _,ah as Me,ai as $n,aj as Gi,ak as Ui,al as Ea,am as Wi,an as Qi,ao as qi,ap as Xi,aq as Yi,ar as Ji,as as er,at as nr,au as ar,av as tr,aw as ir,ax as F,ay as mn,az as rr,aA as or,aB as lr,aC as sr,aD as cr,aE as Hn,aF as Ae,aG as Va,aH as dr,aI as Da,aJ as ur,aK as gr,aL as pn,aM as mr,aN as pr,aO as hr,aP as fr,aQ as br,aR as vr,aS as Cr,aT as Kn,aU as yr,aV as Lr,aW as wr,aX as F1,aY as xr,aZ as kr,a_ as Sr,a$ as Mr,b0 as Tr,b1 as zr,b2 as Ir,b3 as Ar,b4 as Er}from"./vendor-C77BEnnR.js";import{a as Bn,R as Vr,b as Dr,c as Pr,m as Or,T as Fr,u as _r}from"./pages-CNkfmPS4.js";import{u as Nr,_ as Pa,a as me,T as re,E as Oa,b as Ne,c as pe,d as Rr,D as y1,e as $r,f as ce,g as Hr,C as Fa,P as hn,h as _a,i as Kr,F as Na,I as Br,j as Zr,k as jr,l as Gr,m as Ur,n as Wr,o as Qr,p as qr,q as Ra,r as $a,s as Xr,t as Yr}from"./vendor-arizeai-CMLBpPBs.js";import{L as Ha,a as Ka,d as Ue,E as fn,k as Ba,b as Za,l as an,h as Jr,j as eo,c as no,e as ao,f as to,s as io,g as Ye,i as Je,R as e1,p as ro,m as oo}from"./vendor-codemirror-DT1ReytN.js";import{V as lo}from"./vendor-three-C5WAXd5r.js";const ja=function(){var n={defaultValue:null,kind:"LocalArgument",name:"clusters"},a={defaultValue:null,kind:"LocalArgument",name:"dataQualityMetricColumnName"},t={defaultValue:null,kind:"LocalArgument",name:"fetchDataQualityMetric"},i={defaultValue:null,kind:"LocalArgument",name:"fetchPerformanceMetric"},r={defaultValue:null,kind:"LocalArgument",name:"performanceMetric"},o=[{alias:null,args:null,kind:"ScalarField",name:"primaryValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"referenceValue",storageKey:null}],l=[{alias:null,args:[{kind:"Variable",name:"clusters",variableName:"clusters"}],concreteType:"Cluster",kind:"LinkedField",name:"clusters",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"eventIds",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"driftRatio",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"primaryToCorpusRatio",storageKey:null},{condition:"fetchDataQualityMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"columnName",variableName:"dataQualityMetricColumnName"},{kind:"Literal",name:"metric",value:"mean"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"dataQualityMetric",plural:!1,selections:o,storageKey:null}]},{condition:"fetchPerformanceMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"metric",variableName:"performanceMetric"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"performanceMetric",plural:!1,selections:o,storageKey:null}]}],storageKey:null}];return{fragment:{argumentDefinitions:[n,a,t,i,r],kind:"Fragment",metadata:null,name:"pointCloudStore_clusterMetricsQuery",selections:l,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,t,a,i,r],kind:"Operation",name:"pointCloudStore_clusterMetricsQuery",selections:l},params:{cacheID:"86666967012812887ac0a0149d2d2535",id:null,metadata:{},name:"pointCloudStore_clusterMetricsQuery",operationKind:"query",text:`query pointCloudStore_clusterMetricsQuery(
1
+ import{r as p,R as U,j as e,u as dn,a as ze,e as r1,s as P1,b as O1,c as Be,d as X1,f as wi,g as Le,h as xi,i as ki,k as Y1,l as s,m as _e,p as b1,n as Xe,o as Ze,q as Si,C as c1,t as Mi,v as Ti,w as N,L as wa,x as xa,y as ka,z as ge,A as C,B as v1,D as un,E as m,F as Sa,$ as zi,G as Ma,H as Ta,I as Ne,J as gn,K as X,M as Ii,N as Ai,O as Ei,P as K,Q as d1,S as O,T as H,U as R,V as za,W as Ia,X as Vi,Y as Aa,Z as Di,_ as Pi,a0 as Oi,a1 as Fi,a2 as _i,a3 as Ni,a4 as Ri,a5 as $i,a6 as Hi,a7 as C1,a8 as Ki,a9 as Bi,aa as Zi,ab as ji,ac as Me,ad as J1,ae as en,af as nn,ag as _,ah as Te,ai as $n,aj as Gi,ak as Ui,al as Ea,am as Wi,an as Qi,ao as qi,ap as Xi,aq as Yi,ar as Ji,as as er,at as nr,au as ar,av as tr,aw as ir,ax as F,ay as mn,az as rr,aA as or,aB as lr,aC as sr,aD as cr,aE as Hn,aF as Ee,aG as Va,aH as dr,aI as Da,aJ as ur,aK as gr,aL as pn,aM as mr,aN as pr,aO as hr,aP as fr,aQ as br,aR as vr,aS as Cr,aT as Kn,aU as yr,aV as Lr,aW as wr,aX as F1,aY as xr,aZ as kr,a_ as Sr,a$ as Mr,b0 as Tr,b1 as zr,b2 as Ir,b3 as Ar,b4 as Er}from"./vendor-BfhM_F1u.js";import{a as Bn,R as Vr,b as Dr,c as Pr,m as Or,T as Fr,u as _r}from"./pages-CZ0wMeOx.js";import{u as Nr,_ as Pa,a as he,T as le,E as Oa,b as Re,c as fe,d as Rr,D as y1,e as $r,f as ue,g as Hr,C as Fa,P as hn,h as _a,i as Kr,F as Na,I as Br,j as Zr,k as jr,l as Gr,m as Ur,n as Wr,o as Qr,p as qr,q as Ra,r as $a,s as Xr,t as Yr}from"./vendor-arizeai-CxXYQNUl.js";import{L as Ha,a as Ka,d as Ue,E as fn,k as Ba,b as Za,l as an,h as Jr,j as eo,c as no,e as ao,f as to,s as io,g as Ye,i as Je,R as e1,p as ro,m as oo}from"./vendor-codemirror-B0NIFPOL.js";import{V as lo}from"./vendor-three-C5WAXd5r.js";const ja=function(){var n={defaultValue:null,kind:"LocalArgument",name:"clusters"},a={defaultValue:null,kind:"LocalArgument",name:"dataQualityMetricColumnName"},t={defaultValue:null,kind:"LocalArgument",name:"fetchDataQualityMetric"},i={defaultValue:null,kind:"LocalArgument",name:"fetchPerformanceMetric"},r={defaultValue:null,kind:"LocalArgument",name:"performanceMetric"},o=[{alias:null,args:null,kind:"ScalarField",name:"primaryValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"referenceValue",storageKey:null}],l=[{alias:null,args:[{kind:"Variable",name:"clusters",variableName:"clusters"}],concreteType:"Cluster",kind:"LinkedField",name:"clusters",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"eventIds",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"driftRatio",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"primaryToCorpusRatio",storageKey:null},{condition:"fetchDataQualityMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"columnName",variableName:"dataQualityMetricColumnName"},{kind:"Literal",name:"metric",value:"mean"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"dataQualityMetric",plural:!1,selections:o,storageKey:null}]},{condition:"fetchPerformanceMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"metric",variableName:"performanceMetric"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"performanceMetric",plural:!1,selections:o,storageKey:null}]}],storageKey:null}];return{fragment:{argumentDefinitions:[n,a,t,i,r],kind:"Fragment",metadata:null,name:"pointCloudStore_clusterMetricsQuery",selections:l,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,t,a,i,r],kind:"Operation",name:"pointCloudStore_clusterMetricsQuery",selections:l},params:{cacheID:"86666967012812887ac0a0149d2d2535",id:null,metadata:{},name:"pointCloudStore_clusterMetricsQuery",operationKind:"query",text:`query pointCloudStore_clusterMetricsQuery(
2
2
  $clusters: [ClusterInput!]!
3
3
  $fetchDataQualityMetric: Boolean!
4
4
  $dataQualityMetricColumnName: String
@@ -46,7 +46,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
46
46
  }
47
47
  }
48
48
  }
49
- `}}}();Ga.hash="b26f299a862a3bc4f5487ace49db1d43";const Ua=function(){var n={defaultValue:null,kind:"LocalArgument",name:"corpusEventIds"},a={defaultValue:null,kind:"LocalArgument",name:"primaryEventIds"},t={defaultValue:null,kind:"LocalArgument",name:"referenceEventIds"},i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},c={alias:null,args:null,concreteType:"EventMetadata",kind:"LinkedField",name:"eventMetadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"predictionId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"predictionLabel",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"predictionScore",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"actualLabel",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"actualScore",storageKey:null}],storageKey:null},d={alias:null,args:null,concreteType:"PromptResponse",kind:"LinkedField",name:"promptAndResponse",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"prompt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"response",storageKey:null}],storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"documentText",storageKey:null},u=[i,{alias:null,args:null,concreteType:"DimensionWithValue",kind:"LinkedField",name:"dimensions",plural:!0,selections:[{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"dimension",plural:!1,selections:[r,o],storageKey:null},l],storageKey:null},c,d,g],p=[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:null,args:null,concreteType:"Inferences",kind:"LinkedField",name:"primaryInferences",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"eventIds",variableName:"primaryEventIds"}],concreteType:"Event",kind:"LinkedField",name:"events",plural:!0,selections:u,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Inferences",kind:"LinkedField",name:"referenceInferences",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"eventIds",variableName:"referenceEventIds"}],concreteType:"Event",kind:"LinkedField",name:"events",plural:!0,selections:[i,{alias:null,args:null,concreteType:"DimensionWithValue",kind:"LinkedField",name:"dimensions",plural:!0,selections:[{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"dimension",plural:!1,selections:[i,r,o],storageKey:null},l],storageKey:null},c,d,g],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Inferences",kind:"LinkedField",name:"corpusInferences",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"eventIds",variableName:"corpusEventIds"}],concreteType:"Event",kind:"LinkedField",name:"events",plural:!0,selections:u,storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[n,a,t],kind:"Fragment",metadata:null,name:"pointCloudStore_eventsQuery",selections:p,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,t,n],kind:"Operation",name:"pointCloudStore_eventsQuery",selections:p},params:{cacheID:"388c28f19a685a131b1dfd4bac80cb7c",id:null,metadata:{},name:"pointCloudStore_eventsQuery",operationKind:"query",text:`query pointCloudStore_eventsQuery(
49
+ `}}}();Ga.hash="b26f299a862a3bc4f5487ace49db1d43";const Ua=function(){var n={defaultValue:null,kind:"LocalArgument",name:"corpusEventIds"},a={defaultValue:null,kind:"LocalArgument",name:"primaryEventIds"},t={defaultValue:null,kind:"LocalArgument",name:"referenceEventIds"},i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},c={alias:null,args:null,concreteType:"EventMetadata",kind:"LinkedField",name:"eventMetadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"predictionId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"predictionLabel",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"predictionScore",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"actualLabel",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"actualScore",storageKey:null}],storageKey:null},d={alias:null,args:null,concreteType:"PromptResponse",kind:"LinkedField",name:"promptAndResponse",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"prompt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"response",storageKey:null}],storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"documentText",storageKey:null},u=[i,{alias:null,args:null,concreteType:"DimensionWithValue",kind:"LinkedField",name:"dimensions",plural:!0,selections:[{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"dimension",plural:!1,selections:[r,o],storageKey:null},l],storageKey:null},c,d,g],h=[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:null,args:null,concreteType:"Inferences",kind:"LinkedField",name:"primaryInferences",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"eventIds",variableName:"primaryEventIds"}],concreteType:"Event",kind:"LinkedField",name:"events",plural:!0,selections:u,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Inferences",kind:"LinkedField",name:"referenceInferences",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"eventIds",variableName:"referenceEventIds"}],concreteType:"Event",kind:"LinkedField",name:"events",plural:!0,selections:[i,{alias:null,args:null,concreteType:"DimensionWithValue",kind:"LinkedField",name:"dimensions",plural:!0,selections:[{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"dimension",plural:!1,selections:[i,r,o],storageKey:null},l],storageKey:null},c,d,g],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Inferences",kind:"LinkedField",name:"corpusInferences",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"eventIds",variableName:"corpusEventIds"}],concreteType:"Event",kind:"LinkedField",name:"events",plural:!0,selections:u,storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[n,a,t],kind:"Fragment",metadata:null,name:"pointCloudStore_eventsQuery",selections:h,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,t,n],kind:"Operation",name:"pointCloudStore_eventsQuery",selections:h},params:{cacheID:"388c28f19a685a131b1dfd4bac80cb7c",id:null,metadata:{},name:"pointCloudStore_eventsQuery",operationKind:"query",text:`query pointCloudStore_eventsQuery(
50
50
  $primaryEventIds: [ID!]!
51
51
  $referenceEventIds: [ID!]!
52
52
  $corpusEventIds: [ID!]!
@@ -144,7 +144,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
144
144
  id
145
145
  }
146
146
  }
147
- `}}}();Wa.hash="e8fa488a0d466b5e40fdadc1e5227a57";const so=30,_1=5,N1=100,co=0,R1=0,$1=.99,uo=500,Zn=300,jn=1e5,go=10,Gn=1,mo=2,po=1,ho=0;var V=(n=>(n.inferences="inferences",n.correctness="correctness",n.dimension="dimension",n))(V||{}),Ve=(n=>(n.list="list",n.gallery="gallery",n))(Ve||{}),Ee=(n=>(n.small="small",n.medium="medium",n.large="large",n))(Ee||{}),P=(n=>(n.primary="primary",n.reference="reference",n.corpus="corpus",n))(P||{}),Z=(n=>(n.correct="correct",n.incorrect="incorrect",n.unknown="unknown",n))(Z||{});const fo=["#05fbff","#cb8afd"],bo=["#00add0","#4500d9"],ue="#a5a5a5",ze=ue;var te=(n=>(n.primary="primary",n.reference="reference",n.corpus="corpus",n))(te||{});function I(n){throw new Error("Unreachable")}function bn(n){return typeof n=="number"||n===null}function vo(n){return typeof n=="string"||n===null}function n5(n){return Array.isArray(n)?n.every(a=>typeof a=="string"):!1}function J(n){return typeof n=="object"&&n!==null}function a5(n){return J(n)&&Object.keys(n).every(a=>typeof a=="string")}const Co=()=>n=>n,vn=h.createContext(null);function L1(){const n=U.useContext(vn);if(n===null)throw new Error("useInferences must be used within a InferencesProvider");return n}function t5(n){return e(vn.Provider,{value:{primaryInferences:n.primaryInferences,referenceInferences:n.referenceInferences,corpusInferences:n.corpusInferences,getInferencesNameByRole:a=>{var t,i;switch(a){case te.primary:return n.primaryInferences.name;case te.reference:return((t=n.referenceInferences)==null?void 0:t.name)??"reference";case te.corpus:return((i=n.corpusInferences)==null?void 0:i.name)??"corpus";default:I()}}},children:n.children})}const Cn=h.createContext(null);function i5({children:n,...a}){const[t]=h.useState(()=>Ho(a));return e(Cn.Provider,{value:t,children:n})}function x(n,a){const t=h.useContext(Cn);if(!t)throw new Error("Missing PointCloudContext.Provider in the tree");return dn(t,n,a)}var ne=(n=>(n.last_hour="Last Hour",n.last_day="Last Day",n.last_week="Last Week",n.last_month="Last Month",n.last_3_months="Last 3 Months",n.first_hour="First Hour",n.first_day="First Day",n.first_week="First Week",n.first_month="First Month",n.all="All",n))(ne||{});const Qa=h.createContext(null);function yo(){const n=h.useContext(Qa);if(n===null)throw new Error("useTimeRange must be used within a TimeRangeProvider");return n}function Lo(n,a){return h.useMemo(()=>{switch(n){case"Last Hour":{const i=Te(ki(a.end),{roundingMethod:"ceil"});return{start:Y1(i,1),end:i}}case"Last Day":{const i=Te(xi(a.end),{roundingMethod:"ceil"});return{start:ye(i,1),end:i}}case"Last Week":{const i=Te(r1(a.end),{roundingMethod:"ceil"});return{start:ye(i,7),end:i}}case"Last Month":{const i=Te(r1(a.end),{roundingMethod:"ceil"});return{start:ye(i,30),end:i}}case"Last 3 Months":{const i=Te(r1(a.end),{roundingMethod:"ceil"});return{start:ye(i,90),end:i}}case"First Hour":{const i=X1(a.start);return{start:i,end:wi(i,1)}}case"First Day":{const i=Be(a.start);return{start:i,end:O1(i,1)}}case"First Week":{const i=P1(a.start);return{start:i,end:O1(i,7)}}case"First Month":{const i=P1(a.start);return{start:i,end:O1(i,30)}}case"All":{const i=Te(r1(a.end),{roundingMethod:"floor"});return{start:P1(a.start),end:i}}default:I()}},[n,a])}function r5(n){const[a,t]=h.useState("Last Month"),i=Lo(a,n.timeRangeBounds),r=h.useCallback(o=>{h.startTransition(()=>{t(o)})},[]);return e(Qa.Provider,{value:{timeRange:i,timePreset:a,setTimePreset:r},children:n.children})}const qa=h.createContext(null);function o5({children:n}){const[a,t]=Nr({style:{zIndex:1e3}}),i=h.useCallback(o=>{a({variant:"danger",...o})},[a]),r=h.useCallback(o=>{a({variant:"success",...o})},[a]);return s(qa.Provider,{value:{notify:a,notifyError:i,notifySuccess:r},children:[n,t]})}function Xa(){const n=h.useContext(qa);if(n===null)throw new Error("useGlobalNotification must be used within a NotificationProvider");return n}function wo(){return Xa().notifyError}function w1(){return Xa().notifySuccess}const Ya="arize-phoenix-theme";function Ja(){return localStorage.getItem(Ya)==="light"?"light":"dark"}const yn=h.createContext(null);function W(){const n=h.useContext(yn);if(n===null)throw new Error("useTheme must be used within a ThemeProvider");return n}function l5(n){const[a,t]=h.useState(()=>n.theme||Ja()),i=h.useCallback(r=>{localStorage.setItem(Ya,r),t(r)},[]);return h.useEffect(()=>{n.theme&&t(n.theme)},[n.theme,i]),h.useEffect(()=>(document.body.classList.add(`ac-theme--${a}`),()=>{document.body.classList.remove(`ac-theme--${a}`)}),[a]),e(yn.Provider,{value:{theme:a,setTheme:i},children:n.children})}const et=h.createContext({size:"M"});function nt({size:n="M",children:a}){return e(et.Provider,{value:{size:n},children:a})}function at(){return h.useContext(et).size}const xo=n=>`arize-phoenix-project-${n}`;function ko({projectId:n}){return{state:Fe()(b1(t=>({defaultTab:"spans",setDefaultTab:i=>{t({defaultTab:i})},treatOrphansAsRoots:!1,setTreatOrphansAsRoots:i=>{t({treatOrphansAsRoots:i})}}),{name:xo(n)}))}}const tt=h.createContext(null);function s5({children:n,projectId:a}){const[t]=h.useState(()=>ko({projectId:a}));return e(tt.Provider,{value:t,children:n})}function c5(n,a){const t=U.useContext(tt);if(!t)throw new Error("Missing ProjectContext.Provider in the tree");return dn(t.state,n,a)}const So=n=>{const a=t=>({markdownDisplayMode:"text",setMarkdownDisplayMode:i=>{t({markdownDisplayMode:i})},traceStreamingEnabled:!0,setTraceStreamingEnabled:i=>{t({traceStreamingEnabled:i})},lastNTimeRangeKey:"7d",setLastNTimeRangeKey:i=>{t({lastNTimeRangeKey:i})},projectsAutoRefreshEnabled:!0,setProjectAutoRefreshEnabled:i=>{t({projectsAutoRefreshEnabled:i})},showMetricsInTraceTree:!0,setShowMetricsInTraceTree:i=>{t({showMetricsInTraceTree:i})},modelConfigByProvider:{},setModelConfigForProvider:({provider:i,modelConfig:r})=>{t(o=>({modelConfigByProvider:{...o.modelConfigByProvider,[i]:r}}))},playgroundStreamingEnabled:!0,setPlaygroundStreamingEnabled:i=>{t({playgroundStreamingEnabled:i})},isAnnotatingSpans:!0,setIsAnnotatingSpans:i=>{t({isAnnotatingSpans:i})},...n});return Fe()(b1(Xe(a),{name:"arize-phoenix-preferences"}))},it=h.createContext(null);function d5({children:n,...a}){const[t]=h.useState(()=>So(a));return e(it.Provider,{value:t,children:n})}function ke(n,a){const t=U.useContext(it);if(!t)throw new Error("Missing PreferencesContext.Provider in the tree");return dn(t,n,a)}function Mo(n){return n.endsWith("/")?n.slice(0,-1):n}const To=Mo(window.Config.basename),n1=`${window.location.protocol}//${window.location.host}${To}`,u5=window.Config.platformVersion,We="returnUrl";function Un(n,a){const t=new URL(n,window.location.origin);return a.forEach((i,r)=>{t.searchParams.append(r,i)}),t.pathname+t.search}function zo(){const n=window.Config.basename,a=n==null||n===""||n==="/",t=n!=null&&n.startsWith("/")&&!n.endsWith("/");if(!(a||t))throw new Error(`Invalid basename: ${n}`);const i=window.location.pathname,r=window.location.origin,o=new URLSearchParams(window.location.search);if(a){const l=new URL("/login",r);return l.searchParams.set(We,Un(i,o)),l.pathname+l.search}if(i.startsWith(n)){const l=i.slice(n.length);if(l===""||l.startsWith("/")){const d=new URL(n+"/login",r);return d.searchParams.set(We,Un(l,o)),d.pathname+d.search}}return n+"/login"}function g5(n){const a=window.Config.basename,t=a==null||a===""||a==="/",i=a!=null&&a.startsWith("/")&&!a.endsWith("/");if(!(t||i))throw new Error(`Invalid basename: ${a}`);return t?n:a+n}const m5=({path:n,searchParams:a})=>{const i=new URL(window.location.href).searchParams.get(We),r=new URLSearchParams(a||{});i&&r.set(We,i);const o=r.toString();return`${n}${o?`?${o}`:""}`},Io=n=>!(typeof n!="string"||!n.startsWith("/")||n.replace(/\\/g,"/").startsWith("//")),Ao=n=>Io(n)?n:"/",p5=()=>{const n=new URL(window.location.href);return Ao(n.searchParams.get(We))},Eo=n1+"/auth/refresh";class Wn extends Error{constructor(){super("Unauthorized")}}async function Vo(n,a){try{return await fetch(n,a).then(t=>{if(t.status===401)throw new Wn;return t})}catch(t){if(t instanceof Wn)return await Do(),fetch(n,a);if(t instanceof Error&&t.name==="AbortError")throw t}throw new Error("An unexpected error occurred while fetching data")}let He=null;async function Do(){return He||(He=fetch(Eo,{method:"POST"}).then(n=>(n.ok||(window.location.href=zo()),He=null,n)),He)}const Po=n1+"/graphql",Oo=window.Config.authenticationEnabled,rt=Oo?Vo:fetch;function Fo(n,a,t){return Ze.Observable.create(i=>{const r=new AbortController;return rt(n,{...a,signal:r.signal}).then(o=>o.json()).then(o=>{const l=t==null?void 0:t(o);if(l)throw l;i.next(o),i.complete()}).catch(o=>{o.name==="AbortError"?i.complete():i.error(o)}),()=>{r.abort()}})}const _o=(n,a,t)=>Fo(Po,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:n.text,variables:a})},i=>{if(!(!J(i)||!("errors"in i))&&Array.isArray(i.errors))return new Error(`Error fetching GraphQL query '${n.name}' with variables '${JSON.stringify(a)}': ${JSON.stringify(i.errors)}`)}),No=Si("/graphql",{fetch:rt}),a1=new Ze.Environment({network:Ze.Network.create(_o,No),store:new Ze.Store(new Ze.RecordSource,{gcReleaseBufferSize:10})});function ot(n){return n.includes("PRIMARY")?te.primary:n.includes("CORPUS")?te.corpus:te.reference}function Ln(n){const a=[],t=[],i=[];return n.forEach(r=>{const o=ot(r);o==te.primary?a.push(r):o==te.corpus?i.push(r):t.push(r)}),{primaryEventIds:a,referenceEventIds:t,corpusEventIds:i}}const u1=10,je="unknown",lt=Ti,st=Mi,Ro=n=>st[n],$o=n=>lt(n/u1);var De=(n=>(n.move="move",n.select="select",n))(De||{}),wn=(n=>(n.default="default",n.highlight="highlight",n))(wn||{});const Ie=()=>Ja()==="light"?bo:fo;function h5(){const n=Ie();return{coloringStrategy:V.inferences,pointGroupVisibility:{[P.primary]:!0,[P.reference]:!0},pointGroupColors:{[P.primary]:n[0],[P.reference]:n[1],[P.corpus]:ue},metric:{type:"drift",metric:"euclideanDistance"}}}function f5(){const n=Ie();return{coloringStrategy:V.inferences,pointGroupVisibility:{[P.primary]:!0,[P.corpus]:!0},pointGroupColors:{[P.primary]:n[0],[P.corpus]:ue},metric:{type:"retrieval",metric:"queryDistance"},clusterSort:{dir:"desc",column:"primaryMetricValue"}}}function b5(){return{coloringStrategy:V.correctness,pointGroupVisibility:{[Z.correct]:!0,[Z.incorrect]:!0,[Z.unknown]:!0},pointGroupColors:{[Z.correct]:c1.Discrete2.LightBlueOrange[0],[Z.incorrect]:c1.Discrete2.LightBlueOrange[1],[Z.unknown]:ze},metric:{type:"performance",metric:"accuracyScore"},clusterSort:{dir:"asc",column:"primaryMetricValue"}}}const Ho=n=>{const a={loading:!1,errorMessage:null,points:[],eventIdToDataMap:new Map,clusters:[],clusterSort:{dir:"desc",column:"driftRatio"},pointData:null,selectedEventIds:new Set,hoveredEventId:null,highlightedClusterId:null,selectedClusterId:null,canvasMode:"move",pointSizeScale:1,clusterColorMode:"default",coloringStrategy:V.inferences,inferencesVisibility:{primary:!0,reference:!0,corpus:!0},pointGroupVisibility:{[P.primary]:!0,[P.reference]:!0,[P.corpus]:!0},pointGroupColors:{[P.primary]:Ie()[0],[P.reference]:Ie()[1],[P.corpus]:ue},eventIdToGroup:{},selectionDisplay:Ve.gallery,selectionGridSize:Ee.large,dimension:null,dimensionMetadata:null,umapParameters:{minDist:co,nNeighbors:so,nSamples:uo},hdbscanParameters:{minClusterSize:go,clusterMinSamples:po,clusterSelectionEpsilon:ho},clustersLoading:!1,metric:{type:"drift",metric:"euclideanDistance"},selectionSearchText:""},t=(i,r)=>({...a,...n,setInitialData:async({points:o,clusters:l,retrievals:c})=>{const d=r(),g=new Map,u=c.reduce((b,v)=>{const{queryId:L}=v;return b[L]?b[L].push(v):b[L]=[v],b},{});o.forEach(b=>{b={...b,retrievals:u[b.eventId]??[]},g.set(b.eventId,b)});const p=l.map(qn).sort(K1(d.clusterSort));i({loading:!1,points:o,eventIdToDataMap:g,clusters:p,clustersLoading:!1,selectedEventIds:new Set,selectedClusterId:null,pointData:null,eventIdToGroup:Ce({points:o,coloringStrategy:d.coloringStrategy,pointsData:d.pointData??{},dimension:d.dimension||null,dimensionMetadata:d.dimensionMetadata})});const f=await Zo(o.map(b=>b.eventId)).catch(()=>i({errorMessage:"Failed to load the point events"}));f&&i({pointData:f,clusters:p,clustersLoading:!1,eventIdToGroup:Ce({points:o,coloringStrategy:d.coloringStrategy,pointsData:f??{},dimension:d.dimension||null,dimensionMetadata:d.dimensionMetadata})})},setClusters:o=>{const l=r(),c=o.map(qn).sort(K1(l.clusterSort));i({clusters:c,clustersLoading:!1,selectedClusterId:null,highlightedClusterId:null})},setClusterSort:o=>{const c=[...r().clusters].sort(K1(o));i({clusterSort:o,clusters:c})},setSelectedEventIds:o=>i({selectedEventIds:o,selectionSearchText:""}),setHoveredEventId:o=>i({hoveredEventId:o}),setHighlightedClusterId:o=>i({highlightedClusterId:o}),setSelectedClusterId:o=>i({selectedClusterId:o,highlightedClusterId:null}),setPointSizeScale:o=>i({pointSizeScale:o}),setCanvasMode:o=>i({canvasMode:o}),setClusterColorMode:o=>i({clusterColorMode:o}),setColoringStrategy:o=>{const l=r();switch(i({coloringStrategy:o}),o){case V.correctness:i({pointGroupVisibility:{[Z.correct]:!0,[Z.incorrect]:!0,[Z.unknown]:!0},pointGroupColors:{[Z.correct]:c1.Discrete2.LightBlueOrange[0],[Z.incorrect]:c1.Discrete2.LightBlueOrange[1],[Z.unknown]:ze},dimension:null,dimensionMetadata:null,eventIdToGroup:Ce({points:l.points,coloringStrategy:o,pointsData:l.pointData??{},dimension:l.dimension||null,dimensionMetadata:l.dimensionMetadata})});break;case V.inferences:{i({pointGroupVisibility:{[P.primary]:!0,[P.reference]:!0,[P.corpus]:!0},pointGroupColors:{[P.primary]:Ie()[0],[P.reference]:Ie()[1],[P.corpus]:ue},dimension:null,dimensionMetadata:null,eventIdToGroup:Ce({points:l.points,coloringStrategy:o,pointsData:l.pointData??{},dimension:l.dimension||null,dimensionMetadata:l.dimensionMetadata})});break}case V.dimension:{i({pointGroupVisibility:{unknown:!0},pointGroupColors:{unknown:ze},dimension:null,dimensionMetadata:null,eventIdToGroup:Ce({points:l.points,coloringStrategy:o,pointsData:l.pointData??{},dimension:l.dimension||null,dimensionMetadata:l.dimensionMetadata})});break}default:I()}},inferencesVisibility:{primary:!0,reference:!0,corpus:!0},setInferencesVisibility:o=>i({inferencesVisibility:o}),setPointGroupVisibility:o=>i({pointGroupVisibility:o}),selectionDisplay:Ve.gallery,setSelectionDisplay:o=>i({selectionDisplay:o}),setSelectionGridSize:o=>i({selectionGridSize:o}),reset:()=>{i({points:[],clusters:[],selectedEventIds:new Set,selectedClusterId:null,eventIdToGroup:{}})},setDimension:async o=>{const l=r();i({dimension:o,dimensionMetadata:null});const c=await Bo(o).catch(()=>i({errorMessage:"Failed to load the dimension metadata"}));if(c){if(i({dimensionMetadata:c}),c.categories&&c.categories.length){const d=c.categories.length,u=d<=st.length?Ro:p=>lt(p/d);i({pointGroupVisibility:{...c.categories.reduce((p,f)=>({...p,[f]:!0}),{}),unknown:!0},pointGroupColors:{...c.categories.reduce((p,f,b)=>({...p,[f]:u(b)}),{}),unknown:ze},eventIdToGroup:Ce({points:l.points,coloringStrategy:l.coloringStrategy,pointsData:l.pointData??{},dimension:o,dimensionMetadata:c})})}else if(c.interval!==null){const d=ct(c.interval);i({pointGroupVisibility:{...d.reduce((g,u)=>({...g,[u.name]:!0}),{}),unknown:!0},pointGroupColors:{...d.reduce((g,u,p)=>({...g,[u.name]:$o(p)}),{}),unknown:ze},eventIdToGroup:Ce({points:l.points,coloringStrategy:l.coloringStrategy,pointsData:l.pointData??{},dimension:o,dimensionMetadata:c})})}}},setDimensionMetadata:o=>i({dimensionMetadata:o}),setUMAPParameters:o=>i({umapParameters:o}),setHDBSCANParameters:async o=>{const l=r();i({hdbscanParameters:o,clustersLoading:!0});const c=await jo({metric:l.metric,points:l.points,hdbscanParameters:o});l.setClusters(c)},getHDSCANParameters:()=>r().hdbscanParameters,getMetric:()=>r().metric,setErrorMessage:o=>i({errorMessage:o}),setLoading:o=>i({loading:o}),setMetric:async o=>{const l=r();i({metric:o,clustersLoading:!0});const c=await Go({metric:o,clusters:l.clusters,hdbscanParameters:l.hdbscanParameters});l.setClusters(c)},setSelectionSearchText:o=>i({selectionSearchText:o})});return Fe()(Xe(t))},Qn=new Intl.NumberFormat([],{maximumFractionDigits:2});function Ko({min:n,max:a}){return`${Qn.format(n)} - ${Qn.format(a)}`}function ct({min:n,max:a}){const i=(a-n)/u1,r=[];for(let o=0;o<u1;o++){const l=n+o*i,c=n+(o+1)*i;r.push({min:l,max:c,name:Ko({min:l,max:c})})}return r}function H1({numericGroupIntervals:n,numericValue:a}){let t=je,i=n.findIndex(r=>a>=r.min&&a<r.max);return i=i===-1?u1-1:i,t=n[i].name,t}function Ce(n){const{points:a,coloringStrategy:t,pointsData:i,dimension:r,dimensionMetadata:o}=n,l={},c=a.map(d=>d.eventId);switch(t){case V.inferences:{const{primaryEventIds:d,referenceEventIds:g,corpusEventIds:u}=Ln(c);d.forEach(p=>{l[p]=P.primary}),g.forEach(p=>{l[p]=P.reference}),u.forEach(p=>{l[p]=P.corpus});break}case V.correctness:{a.forEach(d=>{let g=Z.unknown;const{predictionLabel:u,actualLabel:p}=d.eventMetadata;u!==null&&p!==null&&(g=u===p?Z.correct:Z.incorrect),l[d.eventId]=g});break}case V.dimension:{let d;o&&(o==null?void 0:o.interval)!==null&&(d=ct(o.interval));const g=(r==null?void 0:r.type)==="prediction"&&(r==null?void 0:r.dataType)==="categorical",u=(r==null?void 0:r.type)==="prediction"&&(r==null?void 0:r.dataType)==="numeric",p=(r==null?void 0:r.type)==="actual"&&(r==null?void 0:r.dataType)==="categorical",f=(r==null?void 0:r.type)==="actual"&&(r==null?void 0:r.dataType)==="numeric";a.forEach(b=>{let v=je;const L=i[b.eventId];if(r!=null&&L!=null)if(g)v=L.eventMetadata.predictionLabel??je;else if(u){if(d==null)throw new Error("Cannot color by prediction score without numeric group intervals");const T=L.eventMetadata.predictionScore;typeof T=="number"&&(v=H1({numericGroupIntervals:d,numericValue:T}))}else if(f){if(d==null)throw new Error("Cannot color by actual score without numeric group intervals");const T=L.eventMetadata.actualScore;typeof T=="number"&&(v=H1({numericGroupIntervals:d,numericValue:T}))}else if(p)v=L.eventMetadata.actualLabel??je;else{const T=L.dimensions.find(j=>j.dimension.name===r.name);if(T!=null&&r.dataType==="categorical")v=T.value??je;else if(T!=null&&r.dataType==="numeric"&&d!=null){const j=typeof(T==null?void 0:T.value)=="string"?parseFloat(T.value):null;typeof j=="number"&&(v=H1({numericGroupIntervals:d,numericValue:j}))}}l[b.eventId]=v});break}default:I()}return l}async function Bo(n){const a=await N.fetchQuery(a1,Wa,{id:n.id,getDimensionMinMax:n.dataType==="numeric",getDimensionCategories:n.dataType==="categorical"}).toPromise(),t=a==null?void 0:a.dimension;if(!n)throw new Error("Dimension not found");let i=null;return typeof(t==null?void 0:t.min)=="number"&&typeof(t==null?void 0:t.max)=="number"&&(i={min:t.min,max:t.max}),{interval:i,categories:(t==null?void 0:t.categories)??null}}async function Zo(n){var g,u,p,f,b,v;const{primaryEventIds:a,referenceEventIds:t,corpusEventIds:i}=Ln([...n]),r=await N.fetchQuery(a1,Ua,{primaryEventIds:a,referenceEventIds:t,corpusEventIds:i}).toPromise(),o=((u=(g=r==null?void 0:r.model)==null?void 0:g.primaryInferences)==null?void 0:u.events)??[],l=((f=(p=r==null?void 0:r.model)==null?void 0:p.referenceInferences)==null?void 0:f.events)??[],c=((v=(b=r==null?void 0:r.model)==null?void 0:b.corpusInferences)==null?void 0:v.events)??[];return[...o,...l,...c].reduce((L,S)=>(L[S.id]=S,L),{})}async function jo({metric:n,points:a,hdbscanParameters:t}){const i=await N.fetchQuery(a1,Ga,{eventIds:a.map(r=>r.eventId),coordinates:a.map(r=>({x:r.position[0],y:r.position[1],z:r.position[2]})),fetchDataQualityMetric:n.type==="dataQuality",dataQualityMetricColumnName:n.type==="dataQuality"?n.dimension.name:null,fetchPerformanceMetric:n.type==="performance",performanceMetric:n.type==="performance"?n.metric:"accuracyScore",...t},{fetchPolicy:"network-only"}).toPromise();return(i==null?void 0:i.hdbscanClustering)??[]}async function Go({metric:n,clusters:a,hdbscanParameters:t}){const i=await N.fetchQuery(a1,ja,{clusters:a.map(r=>({id:r.id,eventIds:r.eventIds})),fetchDataQualityMetric:n.type==="dataQuality",dataQualityMetricColumnName:n.type==="dataQuality"?n.dimension.name:null,fetchPerformanceMetric:n.type==="performance",performanceMetric:n.type==="performance"?n.metric:"accuracyScore",...t},{fetchPolicy:"network-only"}).toPromise();return(i==null?void 0:i.clusters)??[]}const K1=n=>(a,t)=>{const{dir:i,column:r}=n,o=i==="asc",l=a[r],c=t[r];return l==null?1:c==null?-1:l>c?o?1:-1:l<c?o?-1:1:0};function qn(n){let a=n.driftRatio,t=null;return n.dataQualityMetric?(a=n.dataQualityMetric.primaryValue,t=n.dataQualityMetric.referenceValue):n.performanceMetric?(a=n.performanceMetric.primaryValue,t=n.performanceMetric.referenceValue):n.primaryToCorpusRatio!=null&&(a=(n.primaryToCorpusRatio+1)/2*100),{...n,size:n.eventIds.length,primaryMetricValue:a,referenceMetricValue:t}}const Uo=({projectId:n,tableId:a})=>`arize-phoenix-tracing-${n}-${a}`,v5=n=>{const a=t=>({...n,columnVisibility:{metadata:!1},columnSizing:{metadata:200},annotationColumnVisibility:{},setColumnVisibility:i=>{t({columnVisibility:i})},setAnnotationColumnVisibility:i=>{t({annotationColumnVisibility:i})},setColumnSizing:i=>{t(typeof i=="function"?r=>({columnSizing:i(r.columnSizing)}):{columnSizing:i})}});return Fe()(b1(Xe(a),{name:Uo(n)}))},ge={NONE:"NONE",FString:"F_STRING",Mustache:"MUSTACHE"},C5={OPENAI:"OpenAI",AZURE_OPENAI:"Azure OpenAI",ANTHROPIC:"Anthropic",GOOGLE:"Google"},dt="OPENAI",Wo="gpt-4o",Qo="user",y5=["2024-10-01-preview","2024-09-01-preview","2024-08-01-preview","2024-07-01-preview","2024-06-01","2024-05-01-preview","2024-04-01-preview","2024-03-01-preview","2024-02-15-preview","2024-02-01","2023-10-01-preview","2023-09-01-preview","2023-08-01-preview","2023-07-01-preview","2023-06-01-preview","2023-05-15","2023-03-15-preview"],ut=({parser:n,text:a})=>{const t=n.parse(a),i=[],r=t.cursor();do if(r.name==="Variable"){const o=a.slice(r.node.from,r.node.to).trim();i.push(o)}while(r.next());return i},gt=({parser:n,text:a,variables:t,postFormat:i})=>{if(!a)return"";let r=a,o=n.parse(r),l=o.cursor();do if(l.name==="Variable"){const c=r.slice(l.node.from,l.node.to).trim(),d=l.node.parent;c in t&&(r=`${r.slice(0,d.from)}${t[c]}${r.slice(d.to)}`,o=n.parse(r),l=o.cursor())}while(l.next());return i&&(r=i(r)),r},qo=wa.deserialize({version:14,states:"!WQQOPOOOcOQO'#C^OOOO'#Cb'#CbQQOPOOOOOO'#Cc'#CcOhOQO,58xOOOO-E6`-E6`OOOO-E6a-E6aOOOO1G.d1G.d",stateData:"v~ORPOXQOYQOZQO[QO~OSSO~OSSOTWO~OZRX[X~",goto:"iWPPXPPP]cTQORQRORURQTPRVT",nodeNames:"⚠ FStringTemplate Template LBrace Variable RBrace",maxTerm:12,skippedNodes:[0],repeatNodeCount:2,tokenData:"%[~RaXY!WYZ!W]^!Wpq!Wqr!Wrs!]sw!Wwx!bx#O!W#O#P!i#P#o!W#o#p$c#p#q!W#q#r$|#r;'S!W;'S;=`%U<%lO!W~!]OX~~!bO[~~!iOX~[~~!lYrs!W!P!Q!W#O#P!W#U#V!W#Y#Z!W#b#c!W#f#g!W#h#i!W#i#j#[#o#p$^~#_R!Q![#h!c!i#h#T#Z#h~#kR!Q![#t!c!i#t#T#Z#t~#wR!Q![$Q!c!i$Q#T#Z$Q~$TR!Q![!W!c!i!W#T#Z!W~$cOZ~~$jQR~X~#o#p$p#q#r$w~$wOZ~[~~$|OY~~%RPX~#q#r!]~%XP;=`<%l!W",tokenizers:[1,new xa("!p~RVO#Oh#O#P!P#P#qh#q#r!j#r;'Sh;'S;=`y<%lOh~mSS~O#qh#r;'Sh;'S;=`y<%lOh~|P;=`<%lh~!UTS~O#qh#q#r!e#r;'Sh;'S;=`y<%lOh~!jOS~~!oOT~~",77)],topRules:{FStringTemplate:[0,1]},tokenPrec:32}),xn=Ha.define({parser:qo.configure({props:[ka({"Template/LBrace":de.quote,"Template/RBrace":de.quote,"Template/Variable":de.variableName,"⚠":de.invalid})]}),languageData:{}}),Xo=({text:n,variables:a})=>gt({parser:xn.parser,text:n,variables:a,postFormat:t=>t.replaceAll("\\{","{").replaceAll("{{","{").replaceAll("}}","}")}),Yo=n=>ut({parser:xn.parser,text:n});function Jo(){return new Ka(xn)}const el=wa.deserialize({version:14,states:"!WQQOPOOOcOQO'#C^OOOO'#Cb'#CbQQOPOOOOOO'#Cc'#CcOhOQO,58xOOOO-E6`-E6`OOOO-E6a-E6aOOOO1G.d1G.d",stateData:"v~ORPOXQOYQOZQO[QO~OSSO~OSSOTWO~OZRX[X~",goto:"iWPPXPPP]cTQORQRORURQTPRVT",nodeNames:"⚠ MustacheLikeTemplate Template LBrace Variable RBrace",maxTerm:12,skippedNodes:[0],repeatNodeCount:2,tokenData:"%W~RaXY!WYZ!W]^!Wpq!Wqr!Wrs!]sw!Wwx!bx#O!W#O#P!i#P#o!W#o#p$c#p#q!W#q#r!b#r;'S!W;'S;=`%Q<%lO!W~!]OX~~!bO[~~!iOX~[~~!lYrs!W!P!Q!W#O#P!W#U#V!W#Y#Z!W#b#c!W#f#g!W#h#i!W#i#j#[#o#p$^~#_R!Q![#h!c!i#h#T#Z#h~#kR!Q![#t!c!i#t#T#Z#t~#wR!Q![$Q!c!i$Q#T#Z$Q~$TR!Q![!W!c!i!W#T#Z!W~$cOZ~~$jPX~[~#o#p$m~$rPR~#q#r$u~$xP#q#r${~%QOY~~%TP;=`<%l!W",tokenizers:[1,new xa("#e~RVO#oh#o#p!P#p#qh#q#r#X#r;'Sh;'S;=`y<%lOh~mSS~O#qh#r;'Sh;'S;=`y<%lOh~|P;=`<%lh~!USS~O#q!b#r;'S!b;'S;=`#R<%lO!b~!gVS~O#O!b#O#P!b#P#q!b#q#r!|#r;'S!b;'S;=`#R<%lO!b~#ROS~~#UP;=`<%l!b~#[P#q#r#_~#dOT~~",112)],topRules:{MustacheLikeTemplate:[0,1]},tokenPrec:32}),kn=Ha.define({parser:el.configure({props:[ka({"Template/LBrace":de.quote,"Template/RBrace":de.quote,"Template/Variable":de.variableName,"Template/⚠":de.invalid})]}),languageData:{}}),nl=({text:n,variables:a})=>gt({parser:kn.parser,text:n,variables:a,postFormat:t=>t.replaceAll("\\{{","{{")}),al=n=>ut({parser:kn.parser,text:n});function tl(){return new Ka(kn)}const L5=n=>{switch(n){case ge.FString:return{format:Xo,extractVariables:Yo};case ge.Mustache:return{format:nl,extractVariables:al};case ge.NONE:return{format:({text:a})=>a,extractVariables:()=>[]};default:I()}},il=C.union([C.string(),C.number(),C.boolean(),C.null()]),g1=C.lazy(()=>C.union([il,C.array(g1),C.record(g1)])),Xn=C.object({type:C.enum(["string","number","boolean","object","array","null","integer"]).describe("The type of the parameter"),description:C.string().optional().describe("A description of the parameter"),enum:C.array(C.string()).optional().describe("The allowed values")}).passthrough().describe("A map of parameter names to their definitions"),mt=C.object({type:C.literal("object"),properties:C.record(C.union([Xn,C.object({anyOf:C.array(Xn)}).describe("A list of possible parameter names to their definitions")])).optional(),required:C.array(C.string()).optional().describe("The required parameters"),additionalProperties:C.boolean().optional().describe("Whether or not additional properties are allowed in the schema")}).passthrough(),x1=C.object({type:C.literal("function").describe("The type of the tool"),function:C.object({name:C.string().describe("The name of the function"),description:C.string().optional().describe("A description of the function"),parameters:mt.extend({strict:C.boolean().optional().describe("Whether or not the arguments should exactly match the function definition, only supported for OpenAI models")}).describe("The parameters that the function accepts")}).passthrough().describe("The function definition")}).passthrough(),w5=v1(x1,{removeAdditionalStrategy:"passthrough"}),k1=C.object({name:C.string(),description:C.string(),input_schema:mt}),x5=v1(k1,{removeAdditionalStrategy:"passthrough"}),rl=k1.transform(n=>({type:"function",function:{name:n.name,description:n.description,parameters:n.input_schema}})),ol=x1.transform(n=>({name:n.function.name,description:n.function.description??n.function.name,input_schema:n.function.parameters})),pt=C.union([x1,k1,g1]),ll=n=>{const{success:a,data:t}=x1.safeParse(n);if(a)return{provider:"OPENAI",validatedToolDefinition:t};const{success:i,data:r}=k1.safeParse(n);return i?{provider:"ANTHROPIC",validatedToolDefinition:r}:{provider:"UNKNOWN",validatedToolDefinition:null}},Yn=n=>{const{provider:a,validatedToolDefinition:t}=ll(n);switch(a){case"AZURE_OPENAI":case"OPENAI":return t;case"ANTHROPIC":return rl.parse(t);case"UNKNOWN":return null;default:I()}},sl=({toolDefinition:n,targetProvider:a})=>{switch(a){case"AZURE_OPENAI":case"OPENAI":return n;case"ANTHROPIC":return ol.parse(n);case"GOOGLE":return n;default:I()}};function k5(n){return{type:"function",function:{name:`new_function_${n}`,description:"",parameters:{type:"object",properties:{new_arg:{type:"string"}},required:[]}}}}function S5(n){return{name:`new_function_${n}`,description:"",input_schema:{type:"object",properties:{new_arg:{type:"string"}},required:[]}}}const M5=n=>{const a=pt.safeParse(n);return!a.success||a.data===null||!J(a.data)?null:"function"in a.data&&J(a.data.function)&&"name"in a.data.function&&typeof a.data.function.name=="string"?a.data.function.name:"name"in a.data&&typeof a.data.name=="string"?a.data.name:null},T5=n=>{const a=pt.safeParse(n);return!a.success||a.data===null||!J(a.data)?null:"function"in a.data&&J(a.data.function)&&"description"in a.data.function&&typeof a.data.function.description=="string"?a.data.function.description:"description"in a.data&&typeof a.data.description=="string"?a.data.description:null};function cl({str:n,excludePrimitives:a=!1,excludeArray:t=!1,excludeNull:i=!1}){try{const r=JSON.parse(n);if(a&&typeof r!="object"||t&&Array.isArray(r)||i&&r===null)return!1}catch{return!1}return!0}function dl(n){return cl({str:n,excludeArray:!0,excludePrimitives:!0})}function S1(n){try{return{json:JSON.parse(n)}}catch(a){return{json:null,parseError:a}}}function z5(...n){try{return{json:JSON.stringify(...n)}}catch(a){return{json:null,stringifyError:a}}}function ht(n,a="",t="."){const i={};for(const[r,o]of Object.entries(n)){const l=a?`${a}${t}${r}`:r;o&&typeof o=="object"?Object.assign(i,ht(o,l,t)):i[l]=o}return i}function I5(n,a="."){try{const t=JSON.parse(n);return typeof t!="object"?{}:ht(t,"",a)}catch{}return{}}const M1=C.object({id:C.string().describe("The ID of the tool call"),type:C.literal("function").describe("The type of the tool call").default("function"),function:C.object({name:C.string().describe("The name of the function"),arguments:C.record(C.unknown()).describe("The arguments for the function")}).describe("The function that is being called").passthrough()}),ul=C.array(M1),A5=v1(ul,{removeAdditionalStrategy:"passthrough"}),T1=C.object({id:C.string().describe("The ID of the tool call"),type:C.literal("tool_use"),name:C.string().describe("The name of the tool"),input:C.record(C.unknown()).describe("The input for the tool")}).passthrough(),gl=C.array(T1),E5=v1(gl,{removeAdditionalStrategy:"passthrough"}),ml=T1.transform(n=>({id:n.id,type:"function",function:{name:n.name,arguments:n.input}})),pl=M1.transform(n=>({id:n.id,type:"tool_use",name:n.function.name,input:typeof n.function.arguments=="string"?{[n.function.arguments]:n.function.arguments}:n.function.arguments??{}})),hl=C.union([M1,T1,g1]);C.array(hl);const fl=n=>{const{success:a,data:t}=M1.safeParse(n);if(a)return{provider:"OPENAI",validatedToolCall:t};const{success:i,data:r}=T1.safeParse(n);return i?{provider:"ANTHROPIC",validatedToolCall:r}:{provider:"UNKNOWN",validatedToolCall:null}},Pe=n=>{const{provider:a,validatedToolCall:t}=fl(n);switch(a){case"AZURE_OPENAI":case"OPENAI":return t;case"ANTHROPIC":return ml.parse(t);case"UNKNOWN":return null;default:I()}},ft=({toolCall:n,targetProvider:a})=>{switch(a){case"AZURE_OPENAI":case"OPENAI":return n;case"ANTHROPIC":return pl.parse(n);case"GOOGLE":return n;default:I()}},V5=(n,a)=>{const t=Pe({id:n.toolCall.toolCallId,function:{name:n.toolCall.toolCall.name,arguments:S1(n.toolCall.toolCall.arguments).json||""}});return t?ft({toolCall:t,targetProvider:a}):null};function D5(){return{id:"",type:"function",function:{name:"",arguments:{}}}}function P5(){return{id:"",type:"tool_use",name:"",input:{}}}const Sn=C.object({id:C.string().optional(),name:C.string().optional(),arguments:C.record(C.unknown()).optional(),function:C.object({name:C.string().optional(),arguments:C.record(C.unknown()).optional()}).optional()});function O5(n){let a=n;typeof n=="string"&&(a=S1(n).json);const t=Pe(a);if(t)return t.id;const i=Sn.safeParse(a);return i.success?i.data.id??i.data.name??null:null}function F5(n){var r;let a=n;typeof n=="string"&&(a=S1(n).json);const t=Pe(a);if(t)return t.function.name;const i=Sn.safeParse(a);return i.success?((r=i.data.function)==null?void 0:r.name)??i.data.name??i.data.id??null:null}function _5(n){var r;let a=n;typeof n=="string"&&(a=S1(n).json);const t=Pe(a);if(t)return t.function.arguments;const i=Sn.safeParse(a);return i.success?i.data.arguments??((r=i.data.function)==null?void 0:r.arguments)??null:null}const Mn=Co()(C.union([C.literal("auto"),C.literal("none"),C.literal("required"),C.object({type:C.literal("function"),function:C.object({name:C.string()})})])),Tn=C.discriminatedUnion("type",[C.object({type:C.literal("none")}),C.object({type:C.literal("auto"),disable_parallel_tool_use:C.boolean().optional()}),C.object({type:C.literal("any"),disable_parallel_tool_use:C.boolean().optional()}),C.object({type:C.literal("tool"),name:C.string(),disable_parallel_tool_use:C.boolean().optional()})]),bl=Tn.transform(n=>{switch(n.type){case"any":return"required";case"auto":return"auto";case"tool":return n.name?{type:"function",function:{name:n.name}}:"auto";case"none":return"none";default:return"auto"}}),vl=Mn.transform(n=>{if(J(n))return{type:"tool",name:n.function.name};switch(n){case"none":return{type:"none"};case"auto":return{type:"auto"};case"required":return{type:"any"};default:I()}});C.union([Mn,Tn]);const Cl=n=>{const{success:a,data:t}=Mn.safeParse(n);if(a)return{provider:"OPENAI",toolChoice:t};const{success:i,data:r}=Tn.safeParse(n);return i?{provider:"ANTHROPIC",toolChoice:r}:{provider:null,toolChoice:null}},yl=n=>{const{provider:a,toolChoice:t}=Cl(n);if(a==null||t==null)throw new Error("Could not detect provider of tool choice");switch(a){case"AZURE_OPENAI":case"OPENAI":return t;case"ANTHROPIC":return bl.parse(t);default:I()}},Ll=({toolChoice:n,targetProvider:a})=>{switch(a){case"AZURE_OPENAI":case"OPENAI":return n;case"ANTHROPIC":return vl.parse(n);case"GOOGLE":return n;default:I()}},wl=({toolChoice:n,targetProvider:a})=>{try{const t=yl(n);return Ll({toolChoice:t,targetProvider:a})}catch{return null}},Jn=n=>n,ea=n=>n,xl=n=>J(n)?"function"in n&&J(n.function)&&"name"in n.function&&typeof n.function.name=="string"?n.function.name:"name"in n&&typeof n.name=="string"?n.name:null:null,kl=({instanceTools:n,provider:a})=>n.map(t=>{switch(a){case"OPENAI":case"AZURE_OPENAI":{const i=Yn(t.definition);return{...t,definition:i??t.definition}}case"ANTHROPIC":{const i=Yn(t.definition),r=i?sl({toolDefinition:i,targetProvider:a}):t.definition;return{...t,definition:r}}case"GOOGLE":return t;default:I()}}),Sl=({toolCalls:n,provider:a})=>{if(n!=null)return n.map(t=>{switch(a){case"OPENAI":case"AZURE_OPENAI":return Pe(t)??t;case"ANTHROPIC":{const i=Pe(t);return i!=null?ft({toolCall:i,targetProvider:a}):t}case"GOOGLE":return t;default:I()}})};let Ml=0,Tl=0,zl=1,Il=0;const bt=()=>Ml++,m1=()=>zl++,N5=()=>Il++,Al=()=>Tl++,vt=()=>({__type:"chat",messages:[{id:m1(),role:"system",content:"You are a chatbot"},{id:m1(),role:"user",content:"{{question}}"}]}),zn=n=>({template:{__type:"chat",messageIds:n.messages.map(a=>a.id)},messages:n.messages.reduce((a,t)=>(a[t.id]=t,a),{})}),El={__type:"text_completion",prompt:"{{question}}"},Vl=()=>({model:{provider:dt,modelName:Wo,invocationParameters:[],supportedInvocationParameters:[]},tools:[],toolChoice:"auto",output:void 0,spanId:null,activeRunId:null});function Dl(){const n=vt(),a=zn(n);return{instance:{id:bt(),template:a.template,...Vl()},instanceMessages:a.messages}}function R5(){return{type:"json_schema",json_schema:{name:"response",schema:{type:"object",properties:{},required:[],additionalProperties:!1},strict:!0}}}function Pl(n){if(n.instances!=null&&n.instances.length>0){let l={};return{instances:n.instances.map(d=>{if(d.template.__type==="chat"){const g=zn(d.template);return l={...l,...g.messages},{...d,template:g.template}}return d}),instanceMessages:l}}const{instance:a,instanceMessages:t}=Dl(),i=Object.values(n.modelConfigByProvider);if(!(i.length>0))return{instances:[a],instanceMessages:t};const o=i.find(l=>l.provider===dt)??i[0];return a.model={...a.model,...o},{instances:[a],instanceMessages:t}}const $5=n=>{const{instances:a,instanceMessages:t}=Pl(n);return Fe(Xe((r,o)=>({streaming:!0,operationType:"chat",inputMode:"manual",dirtyInstances:{},input:{variablesValueCache:{}},templateFormat:ge.Mustache,...n,instances:a,allInstanceMessages:t,setInput:l=>{r({input:l})},setOperationType:l=>{if(l==="chat"){const c=[];let d={};o().instances.forEach(g=>{const u=vt(),p=zn(u);d={...d,...p.messages},c.push({...g,template:p.template})}),r({instances:c,allInstanceMessages:d})}else r({instances:o().instances.map(c=>({...c,template:El}))});r({operationType:l})},addInstance:()=>{const l=o().instances,c=o().allInstanceMessages,d=o().instances[0];if(!d)return;let g=[],u={};if(d.template.__type==="chat"){const f=d.template.messageIds.map(b=>c[b]).map(b=>({...b,id:m1()}));g=f.map(b=>b.id),u=f.reduce((b,v)=>(b[v.id]=v,b),{})}r({allInstanceMessages:{...c,...u},instances:[...l,{...d,...d.template.__type==="chat"?{template:{...d.template,messageIds:g}}:{},id:bt(),activeRunId:null,experimentId:null,spanId:null}]})},updateModelSupportedInvocationParameters:({instanceId:l,supportedInvocationParameters:c,modelConfigByProvider:d})=>{const g=o().instances;r({instances:g.map(u=>{if(u.id===l){const{baseUrl:p,endpoint:f,apiVersion:b}=d[u.model.provider]??{},v=Pr(u.model.invocationParameters,c),L=Or(v,c);return{...u,model:{...u.model,baseUrl:u.model.baseUrl??p,endpoint:u.model.endpoint??f,apiVersion:u.model.apiVersion??b,supportedInvocationParameters:c,invocationParameters:L},tools:c.find(S=>S.canonicalName===Fr)?u.tools:[]}}return u})})},updateProvider:({instanceId:l,provider:c,modelConfigByProvider:d})=>{const g=o().instances,u=g.find(L=>L.id===l);if(!u||u.model.provider===c)return;const p=d[c],f=u.model.invocationParameters.find(L=>L.canonicalName===Vr||L.invocationName===Dr),b={model:p?{...u.model,...p,invocationParameters:[...p.invocationParameters,...f?[f]:[]],provider:c}:{...u.model,modelName:null,baseUrl:null,apiVersion:null,endpoint:null,provider:c},toolChoice:wl({toolChoice:u.toolChoice,targetProvider:c})??void 0,tools:kl({instanceTools:u.tools,provider:c})},v={};u.template.__type==="chat"&&u.template.messageIds.forEach(L=>{const S=o().allInstanceMessages[L];S&&(v[L]={...S,toolCalls:Sl({toolCalls:S.toolCalls,provider:c})})}),r({allInstanceMessages:{...o().allInstanceMessages,...v},dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:g.map(L=>L.id===l?{...L,...b}:L)})},updateModel:({instanceId:l,patch:c})=>{const d=o().instances;d.find(u=>u.id===l)&&r({dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:d.map(u=>u.id===l?{...u,model:{...u.model,...c}}:u)})},deleteInstance:l=>{const c=o().instances;r({instances:c.filter(d=>d.id!==l),dirtyInstances:{...o().dirtyInstances,[l]:!1}})},addMessage:({playgroundInstanceId:l,messages:c})=>{const d=o().instances;let g=[];Array.isArray(c)?g=c:c?g=[c]:g=[{id:m1(),role:Qo,content:""}],r({allInstanceMessages:{...o().allInstanceMessages,...g.reduce((u,p)=>(u[p.id]=p,u),{})},dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:d.map(u=>u.id===l&&(u!=null&&u.template)&&(u==null?void 0:u.template.__type)==="chat"?{...u,template:{...u.template,messageIds:[...u.template.messageIds,...g.map(p=>p.id)]}}:u)})},updateMessage:({messageId:l,patch:c,instanceId:d})=>{const g=o().allInstanceMessages;r({allInstanceMessages:{...g,[l]:{...g[l],...c}},dirtyInstances:{...o().dirtyInstances,[d]:!0}})},deleteMessage:({instanceId:l,messageId:c})=>{const d=o().instances,g=o().allInstanceMessages;r({allInstanceMessages:Object.fromEntries(Object.entries(g).filter(([,{id:u}])=>u!==c)),dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:d.map(u=>u.id===l&&(u!=null&&u.template)&&(u==null?void 0:u.template.__type)==="chat"?{...u,template:{...u.template,messageIds:u.template.messageIds.filter(p=>p!==c)}}:u)})},updateInstance:({instanceId:l,patch:c,dirty:d})=>{const g=o().instances;r({dirtyInstances:{...o().dirtyInstances,...d!=null?{[l]:d}:{}},instances:g.map(u=>u.id===l?{...u,...c}:u)})},runPlaygroundInstances:()=>{const l=o().instances;r({instances:l.map(c=>({...c,activeRunId:Al(),spanId:null}))})},cancelPlaygroundInstances:()=>{const l=o().instances;r({instances:l.map(c=>({...c,activeRunId:null,spanId:null}))})},markPlaygroundInstanceComplete:l=>{const c=o().instances;r({instances:c.map(d=>d.id===l?{...d,activeRunId:null}:d)})},setTemplateFormat:l=>{r({templateFormat:l})},setVariableValue:(l,c)=>{const d=o().input;r({input:{...d,variablesValueCache:{...d.variablesValueCache,[l]:c}}})},setStreaming:l=>{r({streaming:l})},updateInstanceModelInvocationParameters:({instanceId:l,invocationParameters:c})=>{o().instances.find(g=>g.id===l)&&r({dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:o().instances.map(g=>g.id===l?{...g,model:{...g.model,invocationParameters:c}}:g)})},upsertInvocationParameterInput:({instanceId:l,invocationParameterInput:c})=>{const d=o().instances.find(u=>u.id===l);if(!d)return;const g=d.model.invocationParameters.find(u=>Bn(u,c));r(g?{dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:o().instances.map(u=>u.id===l?{...u,model:{...u.model,invocationParameters:u.model.invocationParameters.map(p=>Bn(p,c)?c:p)}}:u)}:{dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:o().instances.map(u=>u.id===l?{...u,model:{...u.model,invocationParameters:[...u.model.invocationParameters,c]}}:u)})},deleteInvocationParameterInput:({instanceId:l,invocationParameterInputInvocationName:c})=>{o().instances.find(g=>g.id===l)&&r({dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:o().instances.map(g=>g.id===l?{...g,model:{...g.model,invocationParameters:g.model.invocationParameters.filter(u=>u.invocationName!==c)}}:g)})},setDirty:(l,c)=>{r({dirtyInstances:{...o().dirtyInstances,[l]:c}})}})))},H5=n=>{const a=t=>({setCredential:({provider:i,value:r})=>{t({[i]:r})},...n});return Fe()(b1(Xe(a),{name:"arize-phoenix-credentials"}))};function Ct(n){return e("div",{onClick:a=>a.stopPropagation(),css:m`
147
+ `}}}();Wa.hash="e8fa488a0d466b5e40fdadc1e5227a57";const so=30,_1=5,N1=100,co=0,R1=0,$1=.99,uo=500,Zn=300,jn=1e5,go=10,Gn=1,mo=2,po=1,ho=0;var V=(n=>(n.inferences="inferences",n.correctness="correctness",n.dimension="dimension",n))(V||{}),De=(n=>(n.list="list",n.gallery="gallery",n))(De||{}),Ve=(n=>(n.small="small",n.medium="medium",n.large="large",n))(Ve||{}),P=(n=>(n.primary="primary",n.reference="reference",n.corpus="corpus",n))(P||{}),Z=(n=>(n.correct="correct",n.incorrect="incorrect",n.unknown="unknown",n))(Z||{});const fo=["#05fbff","#cb8afd"],bo=["#00add0","#4500d9"],me="#a5a5a5",Ie=me;var te=(n=>(n.primary="primary",n.reference="reference",n.corpus="corpus",n))(te||{});function I(n){throw new Error("Unreachable")}function bn(n){return typeof n=="number"||n===null}function vo(n){return typeof n=="string"||n===null}function n5(n){return Array.isArray(n)?n.every(a=>typeof a=="string"):!1}function J(n){return typeof n=="object"&&n!==null}function a5(n){return J(n)&&Object.keys(n).every(a=>typeof a=="string")}const Co=()=>n=>n,vn=p.createContext(null);function L1(){const n=U.useContext(vn);if(n===null)throw new Error("useInferences must be used within a InferencesProvider");return n}function t5(n){return e(vn.Provider,{value:{primaryInferences:n.primaryInferences,referenceInferences:n.referenceInferences,corpusInferences:n.corpusInferences,getInferencesNameByRole:a=>{var t,i;switch(a){case te.primary:return n.primaryInferences.name;case te.reference:return((t=n.referenceInferences)==null?void 0:t.name)??"reference";case te.corpus:return((i=n.corpusInferences)==null?void 0:i.name)??"corpus";default:I()}}},children:n.children})}const Cn=p.createContext(null);function i5({children:n,...a}){const[t]=p.useState(()=>Ho(a));return e(Cn.Provider,{value:t,children:n})}function x(n,a){const t=p.useContext(Cn);if(!t)throw new Error("Missing PointCloudContext.Provider in the tree");return dn(t,n,a)}var ne=(n=>(n.last_hour="Last Hour",n.last_day="Last Day",n.last_week="Last Week",n.last_month="Last Month",n.last_3_months="Last 3 Months",n.first_hour="First Hour",n.first_day="First Day",n.first_week="First Week",n.first_month="First Month",n.all="All",n))(ne||{});const Qa=p.createContext(null);function yo(){const n=p.useContext(Qa);if(n===null)throw new Error("useTimeRange must be used within a TimeRangeProvider");return n}function Lo(n,a){return p.useMemo(()=>{switch(n){case"Last Hour":{const i=ze(ki(a.end),{roundingMethod:"ceil"});return{start:Y1(i,1),end:i}}case"Last Day":{const i=ze(xi(a.end),{roundingMethod:"ceil"});return{start:Le(i,1),end:i}}case"Last Week":{const i=ze(r1(a.end),{roundingMethod:"ceil"});return{start:Le(i,7),end:i}}case"Last Month":{const i=ze(r1(a.end),{roundingMethod:"ceil"});return{start:Le(i,30),end:i}}case"Last 3 Months":{const i=ze(r1(a.end),{roundingMethod:"ceil"});return{start:Le(i,90),end:i}}case"First Hour":{const i=X1(a.start);return{start:i,end:wi(i,1)}}case"First Day":{const i=Be(a.start);return{start:i,end:O1(i,1)}}case"First Week":{const i=P1(a.start);return{start:i,end:O1(i,7)}}case"First Month":{const i=P1(a.start);return{start:i,end:O1(i,30)}}case"All":{const i=ze(r1(a.end),{roundingMethod:"floor"});return{start:P1(a.start),end:i}}default:I()}},[n,a])}function r5(n){const[a,t]=p.useState("Last Month"),i=Lo(a,n.timeRangeBounds),r=p.useCallback(o=>{p.startTransition(()=>{t(o)})},[]);return e(Qa.Provider,{value:{timeRange:i,timePreset:a,setTimePreset:r},children:n.children})}const qa=p.createContext(null);function o5({children:n}){const[a,t]=Nr({style:{zIndex:1e3}}),i=p.useCallback(o=>{a({variant:"danger",...o})},[a]),r=p.useCallback(o=>{a({variant:"success",...o})},[a]);return s(qa.Provider,{value:{notify:a,notifyError:i,notifySuccess:r},children:[n,t]})}function Xa(){const n=p.useContext(qa);if(n===null)throw new Error("useGlobalNotification must be used within a NotificationProvider");return n}function wo(){return Xa().notifyError}function w1(){return Xa().notifySuccess}const Ya="arize-phoenix-theme";function Ja(){return localStorage.getItem(Ya)==="light"?"light":"dark"}const yn=p.createContext(null);function W(){const n=p.useContext(yn);if(n===null)throw new Error("useTheme must be used within a ThemeProvider");return n}function l5(n){const[a,t]=p.useState(()=>n.theme||Ja()),i=p.useCallback(r=>{localStorage.setItem(Ya,r),t(r)},[]);return p.useEffect(()=>{n.theme&&t(n.theme)},[n.theme,i]),p.useEffect(()=>(document.body.classList.add(`ac-theme--${a}`),()=>{document.body.classList.remove(`ac-theme--${a}`)}),[a]),e(yn.Provider,{value:{theme:a,setTheme:i},children:n.children})}const et=p.createContext({size:"M"});function nt({size:n="M",children:a}){return e(et.Provider,{value:{size:n},children:a})}function at(){return p.useContext(et).size}const xo=n=>`arize-phoenix-project-${n}`;function ko({projectId:n}){return{state:_e()(b1(t=>({defaultTab:"spans",setDefaultTab:i=>{t({defaultTab:i})},treatOrphansAsRoots:!1,setTreatOrphansAsRoots:i=>{t({treatOrphansAsRoots:i})}}),{name:xo(n)}))}}const tt=p.createContext(null);function s5({children:n,projectId:a}){const[t]=p.useState(()=>ko({projectId:a}));return e(tt.Provider,{value:t,children:n})}function c5(n,a){const t=U.useContext(tt);if(!t)throw new Error("Missing ProjectContext.Provider in the tree");return dn(t.state,n,a)}const So=n=>{const a=t=>({markdownDisplayMode:"text",setMarkdownDisplayMode:i=>{t({markdownDisplayMode:i})},traceStreamingEnabled:!0,setTraceStreamingEnabled:i=>{t({traceStreamingEnabled:i})},lastNTimeRangeKey:"7d",setLastNTimeRangeKey:i=>{t({lastNTimeRangeKey:i})},projectsAutoRefreshEnabled:!0,setProjectAutoRefreshEnabled:i=>{t({projectsAutoRefreshEnabled:i})},showMetricsInTraceTree:!0,setShowMetricsInTraceTree:i=>{t({showMetricsInTraceTree:i})},modelConfigByProvider:{},setModelConfigForProvider:({provider:i,modelConfig:r})=>{t(o=>({modelConfigByProvider:{...o.modelConfigByProvider,[i]:r}}))},playgroundStreamingEnabled:!0,setPlaygroundStreamingEnabled:i=>{t({playgroundStreamingEnabled:i})},isAnnotatingSpans:!0,setIsAnnotatingSpans:i=>{t({isAnnotatingSpans:i})},...n});return _e()(b1(Xe(a),{name:"arize-phoenix-preferences"}))},it=p.createContext(null);function d5({children:n,...a}){const[t]=p.useState(()=>So(a));return e(it.Provider,{value:t,children:n})}function Se(n,a){const t=U.useContext(it);if(!t)throw new Error("Missing PreferencesContext.Provider in the tree");return dn(t,n,a)}function Mo(n){return n.endsWith("/")?n.slice(0,-1):n}const To=Mo(window.Config.basename),n1=`${window.location.protocol}//${window.location.host}${To}`,u5=window.Config.platformVersion,We="returnUrl";function Un(n,a){const t=new URL(n,window.location.origin);return a.forEach((i,r)=>{t.searchParams.append(r,i)}),t.pathname+t.search}function zo(){const n=window.Config.basename,a=n==null||n===""||n==="/",t=n!=null&&n.startsWith("/")&&!n.endsWith("/");if(!(a||t))throw new Error(`Invalid basename: ${n}`);const i=window.location.pathname,r=window.location.origin,o=new URLSearchParams(window.location.search);if(a){const l=new URL("/login",r);return l.searchParams.set(We,Un(i,o)),l.pathname+l.search}if(i.startsWith(n)){const l=i.slice(n.length);if(l===""||l.startsWith("/")){const d=new URL(n+"/login",r);return d.searchParams.set(We,Un(l,o)),d.pathname+d.search}}return n+"/login"}function g5(n){const a=window.Config.basename,t=a==null||a===""||a==="/",i=a!=null&&a.startsWith("/")&&!a.endsWith("/");if(!(t||i))throw new Error(`Invalid basename: ${a}`);return t?n:a+n}const m5=({path:n,searchParams:a})=>{const i=new URL(window.location.href).searchParams.get(We),r=new URLSearchParams(a||{});i&&r.set(We,i);const o=r.toString();return`${n}${o?`?${o}`:""}`},Io=n=>!(typeof n!="string"||!n.startsWith("/")||n.replace(/\\/g,"/").startsWith("//")),Ao=n=>Io(n)?n:"/",p5=()=>{const n=new URL(window.location.href);return Ao(n.searchParams.get(We))},Eo=n1+"/auth/refresh";class Wn extends Error{constructor(){super("Unauthorized")}}async function Vo(n,a){try{return await fetch(n,a).then(t=>{if(t.status===401)throw new Wn;return t})}catch(t){if(t instanceof Wn)return await Do(),fetch(n,a);if(t instanceof Error&&t.name==="AbortError")throw t}throw new Error("An unexpected error occurred while fetching data")}let He=null;async function Do(){return He||(He=fetch(Eo,{method:"POST"}).then(n=>(n.ok||(window.location.href=zo()),He=null,n)),He)}const Po=n1+"/graphql",Oo=window.Config.authenticationEnabled,rt=Oo?Vo:fetch;function Fo(n,a,t){return Ze.Observable.create(i=>{const r=new AbortController;return rt(n,{...a,signal:r.signal}).then(o=>o.json()).then(o=>{const l=t==null?void 0:t(o);if(l)throw l;i.next(o),i.complete()}).catch(o=>{o.name==="AbortError"?i.complete():i.error(o)}),()=>{r.abort()}})}const _o=(n,a,t)=>Fo(Po,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:n.text,variables:a})},i=>{if(!(!J(i)||!("errors"in i))&&Array.isArray(i.errors))return new Error(`Error fetching GraphQL query '${n.name}' with variables '${JSON.stringify(a)}': ${JSON.stringify(i.errors)}`)}),No=Si("/graphql",{fetch:rt}),a1=new Ze.Environment({network:Ze.Network.create(_o,No),store:new Ze.Store(new Ze.RecordSource,{gcReleaseBufferSize:10})});function ot(n){return n.includes("PRIMARY")?te.primary:n.includes("CORPUS")?te.corpus:te.reference}function Ln(n){const a=[],t=[],i=[];return n.forEach(r=>{const o=ot(r);o==te.primary?a.push(r):o==te.corpus?i.push(r):t.push(r)}),{primaryEventIds:a,referenceEventIds:t,corpusEventIds:i}}const u1=10,je="unknown",lt=Ti,st=Mi,Ro=n=>st[n],$o=n=>lt(n/u1);var Pe=(n=>(n.move="move",n.select="select",n))(Pe||{}),wn=(n=>(n.default="default",n.highlight="highlight",n))(wn||{});const Ae=()=>Ja()==="light"?bo:fo;function h5(){const n=Ae();return{coloringStrategy:V.inferences,pointGroupVisibility:{[P.primary]:!0,[P.reference]:!0},pointGroupColors:{[P.primary]:n[0],[P.reference]:n[1],[P.corpus]:me},metric:{type:"drift",metric:"euclideanDistance"}}}function f5(){const n=Ae();return{coloringStrategy:V.inferences,pointGroupVisibility:{[P.primary]:!0,[P.corpus]:!0},pointGroupColors:{[P.primary]:n[0],[P.corpus]:me},metric:{type:"retrieval",metric:"queryDistance"},clusterSort:{dir:"desc",column:"primaryMetricValue"}}}function b5(){return{coloringStrategy:V.correctness,pointGroupVisibility:{[Z.correct]:!0,[Z.incorrect]:!0,[Z.unknown]:!0},pointGroupColors:{[Z.correct]:c1.Discrete2.LightBlueOrange[0],[Z.incorrect]:c1.Discrete2.LightBlueOrange[1],[Z.unknown]:Ie},metric:{type:"performance",metric:"accuracyScore"},clusterSort:{dir:"asc",column:"primaryMetricValue"}}}const Ho=n=>{const a={loading:!1,errorMessage:null,points:[],eventIdToDataMap:new Map,clusters:[],clusterSort:{dir:"desc",column:"driftRatio"},pointData:null,selectedEventIds:new Set,hoveredEventId:null,highlightedClusterId:null,selectedClusterId:null,canvasMode:"move",pointSizeScale:1,clusterColorMode:"default",coloringStrategy:V.inferences,inferencesVisibility:{primary:!0,reference:!0,corpus:!0},pointGroupVisibility:{[P.primary]:!0,[P.reference]:!0,[P.corpus]:!0},pointGroupColors:{[P.primary]:Ae()[0],[P.reference]:Ae()[1],[P.corpus]:me},eventIdToGroup:{},selectionDisplay:De.gallery,selectionGridSize:Ve.large,dimension:null,dimensionMetadata:null,umapParameters:{minDist:co,nNeighbors:so,nSamples:uo},hdbscanParameters:{minClusterSize:go,clusterMinSamples:po,clusterSelectionEpsilon:ho},clustersLoading:!1,metric:{type:"drift",metric:"euclideanDistance"},selectionSearchText:""},t=(i,r)=>({...a,...n,setInitialData:async({points:o,clusters:l,retrievals:c})=>{const d=r(),g=new Map,u=c.reduce((b,v)=>{const{queryId:L}=v;return b[L]?b[L].push(v):b[L]=[v],b},{});o.forEach(b=>{b={...b,retrievals:u[b.eventId]??[]},g.set(b.eventId,b)});const h=l.map(qn).sort(K1(d.clusterSort));i({loading:!1,points:o,eventIdToDataMap:g,clusters:h,clustersLoading:!1,selectedEventIds:new Set,selectedClusterId:null,pointData:null,eventIdToGroup:ye({points:o,coloringStrategy:d.coloringStrategy,pointsData:d.pointData??{},dimension:d.dimension||null,dimensionMetadata:d.dimensionMetadata})});const f=await Zo(o.map(b=>b.eventId)).catch(()=>i({errorMessage:"Failed to load the point events"}));f&&i({pointData:f,clusters:h,clustersLoading:!1,eventIdToGroup:ye({points:o,coloringStrategy:d.coloringStrategy,pointsData:f??{},dimension:d.dimension||null,dimensionMetadata:d.dimensionMetadata})})},setClusters:o=>{const l=r(),c=o.map(qn).sort(K1(l.clusterSort));i({clusters:c,clustersLoading:!1,selectedClusterId:null,highlightedClusterId:null})},setClusterSort:o=>{const c=[...r().clusters].sort(K1(o));i({clusterSort:o,clusters:c})},setSelectedEventIds:o=>i({selectedEventIds:o,selectionSearchText:""}),setHoveredEventId:o=>i({hoveredEventId:o}),setHighlightedClusterId:o=>i({highlightedClusterId:o}),setSelectedClusterId:o=>i({selectedClusterId:o,highlightedClusterId:null}),setPointSizeScale:o=>i({pointSizeScale:o}),setCanvasMode:o=>i({canvasMode:o}),setClusterColorMode:o=>i({clusterColorMode:o}),setColoringStrategy:o=>{const l=r();switch(i({coloringStrategy:o}),o){case V.correctness:i({pointGroupVisibility:{[Z.correct]:!0,[Z.incorrect]:!0,[Z.unknown]:!0},pointGroupColors:{[Z.correct]:c1.Discrete2.LightBlueOrange[0],[Z.incorrect]:c1.Discrete2.LightBlueOrange[1],[Z.unknown]:Ie},dimension:null,dimensionMetadata:null,eventIdToGroup:ye({points:l.points,coloringStrategy:o,pointsData:l.pointData??{},dimension:l.dimension||null,dimensionMetadata:l.dimensionMetadata})});break;case V.inferences:{i({pointGroupVisibility:{[P.primary]:!0,[P.reference]:!0,[P.corpus]:!0},pointGroupColors:{[P.primary]:Ae()[0],[P.reference]:Ae()[1],[P.corpus]:me},dimension:null,dimensionMetadata:null,eventIdToGroup:ye({points:l.points,coloringStrategy:o,pointsData:l.pointData??{},dimension:l.dimension||null,dimensionMetadata:l.dimensionMetadata})});break}case V.dimension:{i({pointGroupVisibility:{unknown:!0},pointGroupColors:{unknown:Ie},dimension:null,dimensionMetadata:null,eventIdToGroup:ye({points:l.points,coloringStrategy:o,pointsData:l.pointData??{},dimension:l.dimension||null,dimensionMetadata:l.dimensionMetadata})});break}default:I()}},inferencesVisibility:{primary:!0,reference:!0,corpus:!0},setInferencesVisibility:o=>i({inferencesVisibility:o}),setPointGroupVisibility:o=>i({pointGroupVisibility:o}),selectionDisplay:De.gallery,setSelectionDisplay:o=>i({selectionDisplay:o}),setSelectionGridSize:o=>i({selectionGridSize:o}),reset:()=>{i({points:[],clusters:[],selectedEventIds:new Set,selectedClusterId:null,eventIdToGroup:{}})},setDimension:async o=>{const l=r();i({dimension:o,dimensionMetadata:null});const c=await Bo(o).catch(()=>i({errorMessage:"Failed to load the dimension metadata"}));if(c){if(i({dimensionMetadata:c}),c.categories&&c.categories.length){const d=c.categories.length,u=d<=st.length?Ro:h=>lt(h/d);i({pointGroupVisibility:{...c.categories.reduce((h,f)=>({...h,[f]:!0}),{}),unknown:!0},pointGroupColors:{...c.categories.reduce((h,f,b)=>({...h,[f]:u(b)}),{}),unknown:Ie},eventIdToGroup:ye({points:l.points,coloringStrategy:l.coloringStrategy,pointsData:l.pointData??{},dimension:o,dimensionMetadata:c})})}else if(c.interval!==null){const d=ct(c.interval);i({pointGroupVisibility:{...d.reduce((g,u)=>({...g,[u.name]:!0}),{}),unknown:!0},pointGroupColors:{...d.reduce((g,u,h)=>({...g,[u.name]:$o(h)}),{}),unknown:Ie},eventIdToGroup:ye({points:l.points,coloringStrategy:l.coloringStrategy,pointsData:l.pointData??{},dimension:o,dimensionMetadata:c})})}}},setDimensionMetadata:o=>i({dimensionMetadata:o}),setUMAPParameters:o=>i({umapParameters:o}),setHDBSCANParameters:async o=>{const l=r();i({hdbscanParameters:o,clustersLoading:!0});const c=await jo({metric:l.metric,points:l.points,hdbscanParameters:o});l.setClusters(c)},getHDSCANParameters:()=>r().hdbscanParameters,getMetric:()=>r().metric,setErrorMessage:o=>i({errorMessage:o}),setLoading:o=>i({loading:o}),setMetric:async o=>{const l=r();i({metric:o,clustersLoading:!0});const c=await Go({metric:o,clusters:l.clusters,hdbscanParameters:l.hdbscanParameters});l.setClusters(c)},setSelectionSearchText:o=>i({selectionSearchText:o})});return _e()(Xe(t))},Qn=new Intl.NumberFormat([],{maximumFractionDigits:2});function Ko({min:n,max:a}){return`${Qn.format(n)} - ${Qn.format(a)}`}function ct({min:n,max:a}){const i=(a-n)/u1,r=[];for(let o=0;o<u1;o++){const l=n+o*i,c=n+(o+1)*i;r.push({min:l,max:c,name:Ko({min:l,max:c})})}return r}function H1({numericGroupIntervals:n,numericValue:a}){let t=je,i=n.findIndex(r=>a>=r.min&&a<r.max);return i=i===-1?u1-1:i,t=n[i].name,t}function ye(n){const{points:a,coloringStrategy:t,pointsData:i,dimension:r,dimensionMetadata:o}=n,l={},c=a.map(d=>d.eventId);switch(t){case V.inferences:{const{primaryEventIds:d,referenceEventIds:g,corpusEventIds:u}=Ln(c);d.forEach(h=>{l[h]=P.primary}),g.forEach(h=>{l[h]=P.reference}),u.forEach(h=>{l[h]=P.corpus});break}case V.correctness:{a.forEach(d=>{let g=Z.unknown;const{predictionLabel:u,actualLabel:h}=d.eventMetadata;u!==null&&h!==null&&(g=u===h?Z.correct:Z.incorrect),l[d.eventId]=g});break}case V.dimension:{let d;o&&(o==null?void 0:o.interval)!==null&&(d=ct(o.interval));const g=(r==null?void 0:r.type)==="prediction"&&(r==null?void 0:r.dataType)==="categorical",u=(r==null?void 0:r.type)==="prediction"&&(r==null?void 0:r.dataType)==="numeric",h=(r==null?void 0:r.type)==="actual"&&(r==null?void 0:r.dataType)==="categorical",f=(r==null?void 0:r.type)==="actual"&&(r==null?void 0:r.dataType)==="numeric";a.forEach(b=>{let v=je;const L=i[b.eventId];if(r!=null&&L!=null)if(g)v=L.eventMetadata.predictionLabel??je;else if(u){if(d==null)throw new Error("Cannot color by prediction score without numeric group intervals");const T=L.eventMetadata.predictionScore;typeof T=="number"&&(v=H1({numericGroupIntervals:d,numericValue:T}))}else if(f){if(d==null)throw new Error("Cannot color by actual score without numeric group intervals");const T=L.eventMetadata.actualScore;typeof T=="number"&&(v=H1({numericGroupIntervals:d,numericValue:T}))}else if(h)v=L.eventMetadata.actualLabel??je;else{const T=L.dimensions.find(j=>j.dimension.name===r.name);if(T!=null&&r.dataType==="categorical")v=T.value??je;else if(T!=null&&r.dataType==="numeric"&&d!=null){const j=typeof(T==null?void 0:T.value)=="string"?parseFloat(T.value):null;typeof j=="number"&&(v=H1({numericGroupIntervals:d,numericValue:j}))}}l[b.eventId]=v});break}default:I()}return l}async function Bo(n){const a=await N.fetchQuery(a1,Wa,{id:n.id,getDimensionMinMax:n.dataType==="numeric",getDimensionCategories:n.dataType==="categorical"}).toPromise(),t=a==null?void 0:a.dimension;if(!n)throw new Error("Dimension not found");let i=null;return typeof(t==null?void 0:t.min)=="number"&&typeof(t==null?void 0:t.max)=="number"&&(i={min:t.min,max:t.max}),{interval:i,categories:(t==null?void 0:t.categories)??null}}async function Zo(n){var g,u,h,f,b,v;const{primaryEventIds:a,referenceEventIds:t,corpusEventIds:i}=Ln([...n]),r=await N.fetchQuery(a1,Ua,{primaryEventIds:a,referenceEventIds:t,corpusEventIds:i}).toPromise(),o=((u=(g=r==null?void 0:r.model)==null?void 0:g.primaryInferences)==null?void 0:u.events)??[],l=((f=(h=r==null?void 0:r.model)==null?void 0:h.referenceInferences)==null?void 0:f.events)??[],c=((v=(b=r==null?void 0:r.model)==null?void 0:b.corpusInferences)==null?void 0:v.events)??[];return[...o,...l,...c].reduce((L,S)=>(L[S.id]=S,L),{})}async function jo({metric:n,points:a,hdbscanParameters:t}){const i=await N.fetchQuery(a1,Ga,{eventIds:a.map(r=>r.eventId),coordinates:a.map(r=>({x:r.position[0],y:r.position[1],z:r.position[2]})),fetchDataQualityMetric:n.type==="dataQuality",dataQualityMetricColumnName:n.type==="dataQuality"?n.dimension.name:null,fetchPerformanceMetric:n.type==="performance",performanceMetric:n.type==="performance"?n.metric:"accuracyScore",...t},{fetchPolicy:"network-only"}).toPromise();return(i==null?void 0:i.hdbscanClustering)??[]}async function Go({metric:n,clusters:a,hdbscanParameters:t}){const i=await N.fetchQuery(a1,ja,{clusters:a.map(r=>({id:r.id,eventIds:r.eventIds})),fetchDataQualityMetric:n.type==="dataQuality",dataQualityMetricColumnName:n.type==="dataQuality"?n.dimension.name:null,fetchPerformanceMetric:n.type==="performance",performanceMetric:n.type==="performance"?n.metric:"accuracyScore",...t},{fetchPolicy:"network-only"}).toPromise();return(i==null?void 0:i.clusters)??[]}const K1=n=>(a,t)=>{const{dir:i,column:r}=n,o=i==="asc",l=a[r],c=t[r];return l==null?1:c==null?-1:l>c?o?1:-1:l<c?o?-1:1:0};function qn(n){let a=n.driftRatio,t=null;return n.dataQualityMetric?(a=n.dataQualityMetric.primaryValue,t=n.dataQualityMetric.referenceValue):n.performanceMetric?(a=n.performanceMetric.primaryValue,t=n.performanceMetric.referenceValue):n.primaryToCorpusRatio!=null&&(a=(n.primaryToCorpusRatio+1)/2*100),{...n,size:n.eventIds.length,primaryMetricValue:a,referenceMetricValue:t}}const Uo=({projectId:n,tableId:a})=>`arize-phoenix-tracing-${n}-${a}`,v5=n=>{const a=t=>({...n,columnVisibility:{metadata:!1},columnSizing:{metadata:200},annotationColumnVisibility:{},setColumnVisibility:i=>{t({columnVisibility:i})},setAnnotationColumnVisibility:i=>{t({annotationColumnVisibility:i})},setColumnSizing:i=>{t(typeof i=="function"?r=>({columnSizing:i(r.columnSizing)}):{columnSizing:i})}});return _e()(b1(Xe(a),{name:Uo(n)}))},pe={NONE:"NONE",FString:"F_STRING",Mustache:"MUSTACHE"},C5={OPENAI:"OpenAI",AZURE_OPENAI:"Azure OpenAI",ANTHROPIC:"Anthropic",GOOGLE:"Google"},dt="OPENAI",Wo="gpt-4o",Qo="user",y5=["2024-10-01-preview","2024-09-01-preview","2024-08-01-preview","2024-07-01-preview","2024-06-01","2024-05-01-preview","2024-04-01-preview","2024-03-01-preview","2024-02-15-preview","2024-02-01","2023-10-01-preview","2023-09-01-preview","2023-08-01-preview","2023-07-01-preview","2023-06-01-preview","2023-05-15","2023-03-15-preview"],ut=({parser:n,text:a})=>{const t=n.parse(a),i=[],r=t.cursor();do if(r.name==="Variable"){const o=a.slice(r.node.from,r.node.to).trim();i.push(o)}while(r.next());return i},gt=({parser:n,text:a,variables:t,postFormat:i})=>{if(!a)return"";let r=a,o=n.parse(r),l=o.cursor();do if(l.name==="Variable"){const c=r.slice(l.node.from,l.node.to).trim(),d=l.node.parent;c in t&&(r=`${r.slice(0,d.from)}${t[c]}${r.slice(d.to)}`,o=n.parse(r),l=o.cursor())}while(l.next());return i&&(r=i(r)),r},qo=wa.deserialize({version:14,states:"!WQQOPOOOcOQO'#C^OOOO'#Cb'#CbQQOPOOOOOO'#Cc'#CcOhOQO,58xOOOO-E6`-E6`OOOO-E6a-E6aOOOO1G.d1G.d",stateData:"v~ORPOXQOYQOZQO[QO~OSSO~OSSOTWO~OZRX[X~",goto:"iWPPXPPP]cTQORQRORURQTPRVT",nodeNames:"⚠ FStringTemplate Template LBrace Variable RBrace",maxTerm:12,skippedNodes:[0],repeatNodeCount:2,tokenData:"%[~RaXY!WYZ!W]^!Wpq!Wqr!Wrs!]sw!Wwx!bx#O!W#O#P!i#P#o!W#o#p$c#p#q!W#q#r$|#r;'S!W;'S;=`%U<%lO!W~!]OX~~!bO[~~!iOX~[~~!lYrs!W!P!Q!W#O#P!W#U#V!W#Y#Z!W#b#c!W#f#g!W#h#i!W#i#j#[#o#p$^~#_R!Q![#h!c!i#h#T#Z#h~#kR!Q![#t!c!i#t#T#Z#t~#wR!Q![$Q!c!i$Q#T#Z$Q~$TR!Q![!W!c!i!W#T#Z!W~$cOZ~~$jQR~X~#o#p$p#q#r$w~$wOZ~[~~$|OY~~%RPX~#q#r!]~%XP;=`<%l!W",tokenizers:[1,new xa("!p~RVO#Oh#O#P!P#P#qh#q#r!j#r;'Sh;'S;=`y<%lOh~mSS~O#qh#r;'Sh;'S;=`y<%lOh~|P;=`<%lh~!UTS~O#qh#q#r!e#r;'Sh;'S;=`y<%lOh~!jOS~~!oOT~~",77)],topRules:{FStringTemplate:[0,1]},tokenPrec:32}),xn=Ha.define({parser:qo.configure({props:[ka({"Template/LBrace":ge.quote,"Template/RBrace":ge.quote,"Template/Variable":ge.variableName,"⚠":ge.invalid})]}),languageData:{}}),Xo=({text:n,variables:a})=>gt({parser:xn.parser,text:n,variables:a,postFormat:t=>t.replaceAll("\\{","{").replaceAll("{{","{").replaceAll("}}","}")}),Yo=n=>ut({parser:xn.parser,text:n});function Jo(){return new Ka(xn)}const el=wa.deserialize({version:14,states:"!WQQOPOOOcOQO'#C^OOOO'#Cb'#CbQQOPOOOOOO'#Cc'#CcOhOQO,58xOOOO-E6`-E6`OOOO-E6a-E6aOOOO1G.d1G.d",stateData:"v~ORPOXQOYQOZQO[QO~OSSO~OSSOTWO~OZRX[X~",goto:"iWPPXPPP]cTQORQRORURQTPRVT",nodeNames:"⚠ MustacheLikeTemplate Template LBrace Variable RBrace",maxTerm:12,skippedNodes:[0],repeatNodeCount:2,tokenData:"%W~RaXY!WYZ!W]^!Wpq!Wqr!Wrs!]sw!Wwx!bx#O!W#O#P!i#P#o!W#o#p$c#p#q!W#q#r!b#r;'S!W;'S;=`%Q<%lO!W~!]OX~~!bO[~~!iOX~[~~!lYrs!W!P!Q!W#O#P!W#U#V!W#Y#Z!W#b#c!W#f#g!W#h#i!W#i#j#[#o#p$^~#_R!Q![#h!c!i#h#T#Z#h~#kR!Q![#t!c!i#t#T#Z#t~#wR!Q![$Q!c!i$Q#T#Z$Q~$TR!Q![!W!c!i!W#T#Z!W~$cOZ~~$jPX~[~#o#p$m~$rPR~#q#r$u~$xP#q#r${~%QOY~~%TP;=`<%l!W",tokenizers:[1,new xa("#e~RVO#oh#o#p!P#p#qh#q#r#X#r;'Sh;'S;=`y<%lOh~mSS~O#qh#r;'Sh;'S;=`y<%lOh~|P;=`<%lh~!USS~O#q!b#r;'S!b;'S;=`#R<%lO!b~!gVS~O#O!b#O#P!b#P#q!b#q#r!|#r;'S!b;'S;=`#R<%lO!b~#ROS~~#UP;=`<%l!b~#[P#q#r#_~#dOT~~",112)],topRules:{MustacheLikeTemplate:[0,1]},tokenPrec:32}),kn=Ha.define({parser:el.configure({props:[ka({"Template/LBrace":ge.quote,"Template/RBrace":ge.quote,"Template/Variable":ge.variableName,"Template/⚠":ge.invalid})]}),languageData:{}}),nl=({text:n,variables:a})=>gt({parser:kn.parser,text:n,variables:a,postFormat:t=>t.replaceAll("\\{{","{{")}),al=n=>ut({parser:kn.parser,text:n});function tl(){return new Ka(kn)}const L5=n=>{switch(n){case pe.FString:return{format:Xo,extractVariables:Yo};case pe.Mustache:return{format:nl,extractVariables:al};case pe.NONE:return{format:({text:a})=>a,extractVariables:()=>[]};default:I()}},il=C.union([C.string(),C.number(),C.boolean(),C.null()]),g1=C.lazy(()=>C.union([il,C.array(g1),C.record(g1)])),Xn=C.object({type:C.enum(["string","number","boolean","object","array","null","integer"]).describe("The type of the parameter"),description:C.string().optional().describe("A description of the parameter"),enum:C.array(C.string()).optional().describe("The allowed values")}).passthrough().describe("A map of parameter names to their definitions"),mt=C.object({type:C.literal("object"),properties:C.record(C.union([Xn,C.object({anyOf:C.array(Xn)}).describe("A list of possible parameter names to their definitions")])).optional(),required:C.array(C.string()).optional().describe("The required parameters"),additionalProperties:C.boolean().optional().describe("Whether or not additional properties are allowed in the schema")}).passthrough(),x1=C.object({type:C.literal("function").describe("The type of the tool"),function:C.object({name:C.string().describe("The name of the function"),description:C.string().optional().describe("A description of the function"),parameters:mt.extend({strict:C.boolean().optional().describe("Whether or not the arguments should exactly match the function definition, only supported for OpenAI models")}).describe("The parameters that the function accepts")}).passthrough().describe("The function definition")}).passthrough(),w5=v1(x1,{removeAdditionalStrategy:"passthrough"}),k1=C.object({name:C.string(),description:C.string(),input_schema:mt}),x5=v1(k1,{removeAdditionalStrategy:"passthrough"}),rl=k1.transform(n=>({type:"function",function:{name:n.name,description:n.description,parameters:n.input_schema}})),ol=x1.transform(n=>({name:n.function.name,description:n.function.description??n.function.name,input_schema:n.function.parameters})),pt=C.union([x1,k1,g1]),ll=n=>{const{success:a,data:t}=x1.safeParse(n);if(a)return{provider:"OPENAI",validatedToolDefinition:t};const{success:i,data:r}=k1.safeParse(n);return i?{provider:"ANTHROPIC",validatedToolDefinition:r}:{provider:"UNKNOWN",validatedToolDefinition:null}},Yn=n=>{const{provider:a,validatedToolDefinition:t}=ll(n);switch(a){case"AZURE_OPENAI":case"OPENAI":return t;case"ANTHROPIC":return rl.parse(t);case"UNKNOWN":return null;default:I()}},sl=({toolDefinition:n,targetProvider:a})=>{switch(a){case"AZURE_OPENAI":case"OPENAI":return n;case"ANTHROPIC":return ol.parse(n);case"GOOGLE":return n;default:I()}};function k5(n){return{type:"function",function:{name:`new_function_${n}`,description:"",parameters:{type:"object",properties:{new_arg:{type:"string"}},required:[]}}}}function S5(n){return{name:`new_function_${n}`,description:"",input_schema:{type:"object",properties:{new_arg:{type:"string"}},required:[]}}}const M5=n=>{const a=pt.safeParse(n);return!a.success||a.data===null||!J(a.data)?null:"function"in a.data&&J(a.data.function)&&"name"in a.data.function&&typeof a.data.function.name=="string"?a.data.function.name:"name"in a.data&&typeof a.data.name=="string"?a.data.name:null},T5=n=>{const a=pt.safeParse(n);return!a.success||a.data===null||!J(a.data)?null:"function"in a.data&&J(a.data.function)&&"description"in a.data.function&&typeof a.data.function.description=="string"?a.data.function.description:"description"in a.data&&typeof a.data.description=="string"?a.data.description:null};function cl({str:n,excludePrimitives:a=!1,excludeArray:t=!1,excludeNull:i=!1}){try{const r=JSON.parse(n);if(a&&typeof r!="object"||t&&Array.isArray(r)||i&&r===null)return!1}catch{return!1}return!0}function dl(n){return cl({str:n,excludeArray:!0,excludePrimitives:!0})}function S1(n){try{return{json:JSON.parse(n)}}catch(a){return{json:null,parseError:a}}}function z5(...n){try{return{json:JSON.stringify(...n)}}catch(a){return{json:null,stringifyError:a}}}function ht(n,a="",t="."){const i={};for(const[r,o]of Object.entries(n)){const l=a?`${a}${t}${r}`:r;o&&typeof o=="object"?Object.assign(i,ht(o,l,t)):i[l]=o}return i}function I5(n,a="."){try{const t=JSON.parse(n);return typeof t!="object"?{}:ht(t,"",a)}catch{}return{}}const M1=C.object({id:C.string().describe("The ID of the tool call"),type:C.literal("function").describe("The type of the tool call").default("function"),function:C.object({name:C.string().describe("The name of the function"),arguments:C.record(C.unknown()).describe("The arguments for the function")}).describe("The function that is being called").passthrough()}),ul=C.array(M1),A5=v1(ul,{removeAdditionalStrategy:"passthrough"}),T1=C.object({id:C.string().describe("The ID of the tool call"),type:C.literal("tool_use"),name:C.string().describe("The name of the tool"),input:C.record(C.unknown()).describe("The input for the tool")}).passthrough(),gl=C.array(T1),E5=v1(gl,{removeAdditionalStrategy:"passthrough"}),ml=T1.transform(n=>({id:n.id,type:"function",function:{name:n.name,arguments:n.input}})),pl=M1.transform(n=>({id:n.id,type:"tool_use",name:n.function.name,input:typeof n.function.arguments=="string"?{[n.function.arguments]:n.function.arguments}:n.function.arguments??{}})),hl=C.union([M1,T1,g1]);C.array(hl);const fl=n=>{const{success:a,data:t}=M1.safeParse(n);if(a)return{provider:"OPENAI",validatedToolCall:t};const{success:i,data:r}=T1.safeParse(n);return i?{provider:"ANTHROPIC",validatedToolCall:r}:{provider:"UNKNOWN",validatedToolCall:null}},Oe=n=>{const{provider:a,validatedToolCall:t}=fl(n);switch(a){case"AZURE_OPENAI":case"OPENAI":return t;case"ANTHROPIC":return ml.parse(t);case"UNKNOWN":return null;default:I()}},ft=({toolCall:n,targetProvider:a})=>{switch(a){case"AZURE_OPENAI":case"OPENAI":return n;case"ANTHROPIC":return pl.parse(n);case"GOOGLE":return n;default:I()}},V5=(n,a)=>{const t=Oe({id:n.toolCall.toolCallId,function:{name:n.toolCall.toolCall.name,arguments:S1(n.toolCall.toolCall.arguments).json||""}});return t?ft({toolCall:t,targetProvider:a}):null};function D5(){return{id:"",type:"function",function:{name:"",arguments:{}}}}function P5(){return{id:"",type:"tool_use",name:"",input:{}}}const Sn=C.object({id:C.string().optional(),name:C.string().optional(),arguments:C.record(C.unknown()).optional(),function:C.object({name:C.string().optional(),arguments:C.record(C.unknown()).optional()}).optional()});function O5(n){let a=n;typeof n=="string"&&(a=S1(n).json);const t=Oe(a);if(t)return t.id;const i=Sn.safeParse(a);return i.success?i.data.id??i.data.name??null:null}function F5(n){var r;let a=n;typeof n=="string"&&(a=S1(n).json);const t=Oe(a);if(t)return t.function.name;const i=Sn.safeParse(a);return i.success?((r=i.data.function)==null?void 0:r.name)??i.data.name??i.data.id??null:null}function _5(n){var r;let a=n;typeof n=="string"&&(a=S1(n).json);const t=Oe(a);if(t)return t.function.arguments;const i=Sn.safeParse(a);return i.success?i.data.arguments??((r=i.data.function)==null?void 0:r.arguments)??null:null}const Mn=Co()(C.union([C.literal("auto"),C.literal("none"),C.literal("required"),C.object({type:C.literal("function"),function:C.object({name:C.string()})})])),Tn=C.discriminatedUnion("type",[C.object({type:C.literal("none")}),C.object({type:C.literal("auto"),disable_parallel_tool_use:C.boolean().optional()}),C.object({type:C.literal("any"),disable_parallel_tool_use:C.boolean().optional()}),C.object({type:C.literal("tool"),name:C.string(),disable_parallel_tool_use:C.boolean().optional()})]),bl=Tn.transform(n=>{switch(n.type){case"any":return"required";case"auto":return"auto";case"tool":return n.name?{type:"function",function:{name:n.name}}:"auto";case"none":return"none";default:return"auto"}}),vl=Mn.transform(n=>{if(J(n))return{type:"tool",name:n.function.name};switch(n){case"none":return{type:"none"};case"auto":return{type:"auto"};case"required":return{type:"any"};default:I()}});C.union([Mn,Tn]);const Cl=n=>{const{success:a,data:t}=Mn.safeParse(n);if(a)return{provider:"OPENAI",toolChoice:t};const{success:i,data:r}=Tn.safeParse(n);return i?{provider:"ANTHROPIC",toolChoice:r}:{provider:null,toolChoice:null}},yl=n=>{const{provider:a,toolChoice:t}=Cl(n);if(a==null||t==null)throw new Error("Could not detect provider of tool choice");switch(a){case"AZURE_OPENAI":case"OPENAI":return t;case"ANTHROPIC":return bl.parse(t);default:I()}},Ll=({toolChoice:n,targetProvider:a})=>{switch(a){case"AZURE_OPENAI":case"OPENAI":return n;case"ANTHROPIC":return vl.parse(n);case"GOOGLE":return n;default:I()}},wl=({toolChoice:n,targetProvider:a})=>{try{const t=yl(n);return Ll({toolChoice:t,targetProvider:a})}catch{return null}},Jn=n=>n,ea=n=>n,xl=n=>J(n)?"function"in n&&J(n.function)&&"name"in n.function&&typeof n.function.name=="string"?n.function.name:"name"in n&&typeof n.name=="string"?n.name:null:null,kl=({instanceTools:n,provider:a})=>n.map(t=>{switch(a){case"OPENAI":case"AZURE_OPENAI":{const i=Yn(t.definition);return{...t,definition:i??t.definition}}case"ANTHROPIC":{const i=Yn(t.definition),r=i?sl({toolDefinition:i,targetProvider:a}):t.definition;return{...t,definition:r}}case"GOOGLE":return t;default:I()}}),Sl=({toolCalls:n,provider:a})=>{if(n!=null)return n.map(t=>{switch(a){case"OPENAI":case"AZURE_OPENAI":return Oe(t)??t;case"ANTHROPIC":{const i=Oe(t);return i!=null?ft({toolCall:i,targetProvider:a}):t}case"GOOGLE":return t;default:I()}})};let Ml=0,Tl=0,zl=1,Il=0;const bt=()=>Ml++,m1=()=>zl++,N5=()=>Il++,Al=()=>Tl++,vt=()=>({__type:"chat",messages:[{id:m1(),role:"system",content:"You are a chatbot"},{id:m1(),role:"user",content:"{{question}}"}]}),zn=n=>({template:{__type:"chat",messageIds:n.messages.map(a=>a.id)},messages:n.messages.reduce((a,t)=>(a[t.id]=t,a),{})}),El={__type:"text_completion",prompt:"{{question}}"},Vl=()=>({model:{provider:dt,modelName:Wo,invocationParameters:[],supportedInvocationParameters:[]},tools:[],toolChoice:"auto",output:void 0,spanId:null,activeRunId:null});function Dl(){const n=vt(),a=zn(n);return{instance:{id:bt(),template:a.template,...Vl()},instanceMessages:a.messages}}function R5(){return{type:"json_schema",json_schema:{name:"response",schema:{type:"object",properties:{},required:[],additionalProperties:!1},strict:!0}}}function Pl(n){if(n.instances!=null&&n.instances.length>0){let l={};return{instances:n.instances.map(d=>{if(d.template.__type==="chat"){const g=zn(d.template);return l={...l,...g.messages},{...d,template:g.template}}return d}),instanceMessages:l}}const{instance:a,instanceMessages:t}=Dl(),i=Object.values(n.modelConfigByProvider);if(!(i.length>0))return{instances:[a],instanceMessages:t};const o=i.find(l=>l.provider===dt)??i[0];return a.model={...a.model,...o},{instances:[a],instanceMessages:t}}const $5=n=>{const{instances:a,instanceMessages:t}=Pl(n);return _e(Xe((r,o)=>({streaming:!0,operationType:"chat",inputMode:"manual",dirtyInstances:{},input:{variablesValueCache:{}},templateFormat:pe.Mustache,...n,instances:a,allInstanceMessages:t,setInput:l=>{r({input:l})},setOperationType:l=>{if(l==="chat"){const c=[];let d={};o().instances.forEach(g=>{const u=vt(),h=zn(u);d={...d,...h.messages},c.push({...g,template:h.template})}),r({instances:c,allInstanceMessages:d})}else r({instances:o().instances.map(c=>({...c,template:El}))});r({operationType:l})},addInstance:()=>{const l=o().instances,c=o().allInstanceMessages,d=o().instances[0];if(!d)return;let g=[],u={};if(d.template.__type==="chat"){const f=d.template.messageIds.map(b=>c[b]).map(b=>({...b,id:m1()}));g=f.map(b=>b.id),u=f.reduce((b,v)=>(b[v.id]=v,b),{})}r({allInstanceMessages:{...c,...u},instances:[...l,{...d,...d.template.__type==="chat"?{template:{...d.template,messageIds:g}}:{},id:bt(),activeRunId:null,experimentId:null,spanId:null}]})},updateModelSupportedInvocationParameters:({instanceId:l,supportedInvocationParameters:c,modelConfigByProvider:d})=>{const g=o().instances;r({instances:g.map(u=>{if(u.id===l){const{baseUrl:h,endpoint:f,apiVersion:b}=d[u.model.provider]??{},v=Pr(u.model.invocationParameters,c),L=Or(v,c);return{...u,model:{...u.model,baseUrl:u.model.baseUrl??h,endpoint:u.model.endpoint??f,apiVersion:u.model.apiVersion??b,supportedInvocationParameters:c,invocationParameters:L},tools:c.find(S=>S.canonicalName===Fr)?u.tools:[]}}return u})})},updateProvider:({instanceId:l,provider:c,modelConfigByProvider:d})=>{const g=o().instances,u=g.find(L=>L.id===l);if(!u||u.model.provider===c)return;const h=d[c],f=u.model.invocationParameters.find(L=>L.canonicalName===Vr||L.invocationName===Dr),b={model:h?{...u.model,...h,invocationParameters:[...h.invocationParameters,...f?[f]:[]],provider:c}:{...u.model,modelName:null,baseUrl:null,apiVersion:null,endpoint:null,provider:c},toolChoice:wl({toolChoice:u.toolChoice,targetProvider:c})??void 0,tools:kl({instanceTools:u.tools,provider:c})},v={};u.template.__type==="chat"&&u.template.messageIds.forEach(L=>{const S=o().allInstanceMessages[L];S&&(v[L]={...S,toolCalls:Sl({toolCalls:S.toolCalls,provider:c})})}),r({allInstanceMessages:{...o().allInstanceMessages,...v},dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:g.map(L=>L.id===l?{...L,...b}:L)})},updateModel:({instanceId:l,patch:c})=>{const d=o().instances;d.find(u=>u.id===l)&&r({dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:d.map(u=>u.id===l?{...u,model:{...u.model,...c}}:u)})},deleteInstance:l=>{const c=o().instances;r({instances:c.filter(d=>d.id!==l),dirtyInstances:{...o().dirtyInstances,[l]:!1}})},addMessage:({playgroundInstanceId:l,messages:c})=>{const d=o().instances;let g=[];Array.isArray(c)?g=c:c?g=[c]:g=[{id:m1(),role:Qo,content:""}],r({allInstanceMessages:{...o().allInstanceMessages,...g.reduce((u,h)=>(u[h.id]=h,u),{})},dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:d.map(u=>u.id===l&&(u!=null&&u.template)&&(u==null?void 0:u.template.__type)==="chat"?{...u,template:{...u.template,messageIds:[...u.template.messageIds,...g.map(h=>h.id)]}}:u)})},updateMessage:({messageId:l,patch:c,instanceId:d})=>{const g=o().allInstanceMessages;r({allInstanceMessages:{...g,[l]:{...g[l],...c}},dirtyInstances:{...o().dirtyInstances,[d]:!0}})},deleteMessage:({instanceId:l,messageId:c})=>{const d=o().instances,g=o().allInstanceMessages;r({allInstanceMessages:Object.fromEntries(Object.entries(g).filter(([,{id:u}])=>u!==c)),dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:d.map(u=>u.id===l&&(u!=null&&u.template)&&(u==null?void 0:u.template.__type)==="chat"?{...u,template:{...u.template,messageIds:u.template.messageIds.filter(h=>h!==c)}}:u)})},updateInstance:({instanceId:l,patch:c,dirty:d})=>{const g=o().instances;r({dirtyInstances:{...o().dirtyInstances,...d!=null?{[l]:d}:{}},instances:g.map(u=>u.id===l?{...u,...c}:u)})},runPlaygroundInstances:()=>{const l=o().instances;r({instances:l.map(c=>({...c,activeRunId:Al(),spanId:null}))})},cancelPlaygroundInstances:()=>{const l=o().instances;r({instances:l.map(c=>({...c,activeRunId:null,spanId:null}))})},markPlaygroundInstanceComplete:l=>{const c=o().instances;r({instances:c.map(d=>d.id===l?{...d,activeRunId:null}:d)})},setTemplateFormat:l=>{r({templateFormat:l})},setVariableValue:(l,c)=>{const d=o().input;r({input:{...d,variablesValueCache:{...d.variablesValueCache,[l]:c}}})},setStreaming:l=>{r({streaming:l})},updateInstanceModelInvocationParameters:({instanceId:l,invocationParameters:c})=>{o().instances.find(g=>g.id===l)&&r({dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:o().instances.map(g=>g.id===l?{...g,model:{...g.model,invocationParameters:c}}:g)})},upsertInvocationParameterInput:({instanceId:l,invocationParameterInput:c})=>{const d=o().instances.find(u=>u.id===l);if(!d)return;const g=d.model.invocationParameters.find(u=>Bn(u,c));r(g?{dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:o().instances.map(u=>u.id===l?{...u,model:{...u.model,invocationParameters:u.model.invocationParameters.map(h=>Bn(h,c)?c:h)}}:u)}:{dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:o().instances.map(u=>u.id===l?{...u,model:{...u.model,invocationParameters:[...u.model.invocationParameters,c]}}:u)})},deleteInvocationParameterInput:({instanceId:l,invocationParameterInputInvocationName:c})=>{o().instances.find(g=>g.id===l)&&r({dirtyInstances:{...o().dirtyInstances,[l]:!0},instances:o().instances.map(g=>g.id===l?{...g,model:{...g.model,invocationParameters:g.model.invocationParameters.filter(u=>u.invocationName!==c)}}:g)})},setDirty:(l,c)=>{r({dirtyInstances:{...o().dirtyInstances,[l]:c}})}})))},H5=n=>{const a=t=>({setCredential:({provider:i,value:r})=>{t({[i]:r})},...n});return _e()(b1(Xe(a),{name:"arize-phoenix-credentials"}))};function Ct(n){return e("div",{onClick:a=>a.stopPropagation(),css:m`
148
148
  display: inline-block;
149
149
  `,children:e(un,{css:m`
150
150
  color: var(--ac-global-link-color);
@@ -177,7 +177,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
177
177
  `,children:e(Pa,{isIndeterminate:!0,"aria-label":"loading"})});function B5(n){const{width:a="size-1250"}=n;return e(w,{width:a,backgroundColor:"light",borderStartWidth:"thin",borderStartColor:"dark",padding:"size-200",flex:"none",children:e(k,{direction:"column",alignItems:"end",justifyContent:"center",height:"100%",children:n.children})})}const Ol=2e3,Fl=m`
178
178
  flex: none;
179
179
  box-sizing: content-box;
180
- `;function In(n){const{text:a,size:t="S",...i}=n,[r,o]=h.useState(!1),l=h.useCallback(()=>{const c=typeof a=="string"?a:a.current||"";Sa(c),o(!0),setTimeout(()=>{o(!1)},Ol)},[a]);return e("div",{className:"copy-to-clipboard-button",css:Fl,children:s(re,{delay:0,offset:5,children:[e(D,{size:t,leadingVisual:e(M,{svg:r?e(xt,{}):e(Mt,{})}),onPress:l,...i}),e(me,{children:"Copy"})]})})}const yt={margin:["margin",A],marginStart:[q("marginLeft","marginRight"),A],marginEnd:[q("marginRight","marginLeft"),A],marginTop:["marginTop",A],marginBottom:["marginBottom",A],marginX:[["marginLeft","marginRight"],A],marginY:[["marginTop","marginBottom"],A],width:["width",A],height:["height",A],minWidth:["minWidth",A],minHeight:["minHeight",A],maxWidth:["maxWidth",A],maxHeight:["maxHeight",A],isHidden:["display",Bl],alignSelf:["alignSelf",Q],justifySelf:["justifySelf",Q],position:["position",Z1],zIndex:["zIndex",Z1],top:["top",A],bottom:["bottom",A],start:[q("left","right"),A],end:[q("right","left"),A],left:["left",A],right:["right",A],order:["order",Z1],flex:["flex",Zl],flexGrow:["flexGrow",Q],flexShrink:["flexShrink",Q],flexBasis:["flexBasis",Q],gridArea:["gridArea",Q],gridColumn:["gridColumn",Q],gridColumnEnd:["gridColumnEnd",Q],gridColumnStart:["gridColumnStart",Q],gridRow:["gridRow",Q],gridRowEnd:["gridRowEnd",Q],gridRowStart:["gridRowStart",Q]},_l={...yt,backgroundColor:["backgroundColor",Kl],borderWidth:["borderWidth",le],borderStartWidth:[q("borderLeftWidth","borderRightWidth"),le],borderEndWidth:[q("borderRightWidth","borderLeftWidth"),le],borderLeftWidth:["borderLeftWidth",le],borderRightWidth:["borderRightWidth",le],borderTopWidth:["borderTopWidth",le],borderBottomWidth:["borderBottomWidth",le],borderXWidth:[["borderLeftWidth","borderRightWidth"],le],borderYWidth:[["borderTopWidth","borderBottomWidth"],le],borderColor:["borderColor",oe],borderStartColor:[q("borderLeftColor","borderRightColor"),oe],borderEndColor:[q("borderRightColor","borderLeftColor"),oe],borderLeftColor:["borderLeftColor",oe],borderRightColor:["borderRightColor",oe],borderTopColor:["borderTopColor",oe],borderBottomColor:["borderBottomColor",oe],borderXColor:[["borderLeftColor","borderRightColor"],oe],borderYColor:[["borderTopColor","borderBottomColor"],oe],borderRadius:["borderRadius",se],borderTopStartRadius:[q("borderTopLeftRadius","borderTopRightRadius"),se],borderTopEndRadius:[q("borderTopRightRadius","borderTopLeftRadius"),se],borderBottomStartRadius:[q("borderBottomLeftRadius","borderBottomRightRadius"),se],borderBottomEndRadius:[q("borderBottomRightRadius","borderBottomLeftRadius"),se],borderTopLeftRadius:["borderTopLeftRadius",se],borderTopRightRadius:["borderTopRightRadius",se],borderBottomLeftRadius:["borderBottomLeftRadius",se],borderBottomRightRadius:["borderBottomRightRadius",se],padding:["padding",A],paddingStart:[q("paddingLeft","paddingRight"),A],paddingEnd:[q("paddingRight","paddingLeft"),A],paddingLeft:["paddingLeft",A],paddingRight:["paddingRight",A],paddingTop:["paddingTop",A],paddingBottom:["paddingBottom",A],paddingX:[["paddingLeft","paddingRight"],A],paddingY:[["paddingTop","paddingBottom"],A],overflow:["overflow",Q]},na={borderWidth:"borderStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle",borderTopWidth:"borderTopStyle",borderBottomWidth:"borderBottomStyle"},Nl=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,Rl=/^\s*\w+\(/,$l=/(static-)?size-\d+|single-line-(height|width)/g;function A(n){return typeof n=="number"?n+"px":Nl.test(n)?n:Rl.test(n)?n.replace($l,"var(--ac-global-dimension-$&)"):`var(--ac-global-dimension-${n})`}function B1(n,a){return n=An(n,a),A(n)}function Hl(n,a,t,i){const r={};for(const o in n){const l=a[o];if(!l||n[o]==null)continue;let[c,d]=l;typeof c=="function"&&(c=c(t));const g=An(n[o],i),u=d(g);if(Array.isArray(c))for(const p of c)r[p]=u;else r[c]=u}for(const o in na)r[o]&&(r[na[o]]="solid",r.boxSizing="border-box");return r}function q(n,a){return t=>t==="rtl"?a:n}function z1(n,a="default"){return`var(--ac-global-color-${n}, var(--ac-semantic-${n}-color-${a}))`}function Kl(n){return`var(--ac-global-background-color-${n}, ${z1(n,"background")})`}function oe(n){return n==="default"?"var(--ac-global-border-color)":`var(--ac-global-border-color-${n}, ${z1(n,"border")})`}function le(n){return`var(--ac-global-border-size-${n})`}function Q(n){return n}function se(n){return`var(--ac-global-rounding-${n})`}function Bl(n){return n?"none":void 0}function Z1(n){return n}function Zl(n){return typeof n=="boolean"?n?"1":void 0:""+n}function An(n,a){if(n&&typeof n=="object"&&!Array.isArray(n)){for(let t=0;t<a.length;t++){const i=a[t];if(n[i]!=null)return n[i]}return n.base}return n}function p1(n,a=yt,t={}){const{...i}=n,{direction:r}=zi(),{matchedBreakpoints:o=["base"]}=t,c={...Hl(n,a,r,o)};i.className&&console.warn("The className prop is unsafe and is unsupported in phoenix Components"),i.style&&console.warn("The style prop is unsafe and is unsupported in phoenix Components. ");const d={style:c};return An(n.isHidden,o)&&(d.hidden=!0),{styleProps:d}}const Lt=m`
180
+ `;function In(n){const{text:a,size:t="S",...i}=n,[r,o]=p.useState(!1),l=p.useCallback(()=>{const c=typeof a=="string"?a:a.current||"";Sa(c),o(!0),setTimeout(()=>{o(!1)},Ol)},[a]);return e("div",{className:"copy-to-clipboard-button",css:Fl,children:s(le,{delay:0,offset:5,children:[e(D,{size:t,leadingVisual:e(M,{svg:r?e(xt,{}):e(Mt,{})}),onPress:l,...i}),e(he,{children:"Copy"})]})})}const yt={margin:["margin",A],marginStart:[q("marginLeft","marginRight"),A],marginEnd:[q("marginRight","marginLeft"),A],marginTop:["marginTop",A],marginBottom:["marginBottom",A],marginX:[["marginLeft","marginRight"],A],marginY:[["marginTop","marginBottom"],A],width:["width",A],height:["height",A],minWidth:["minWidth",A],minHeight:["minHeight",A],maxWidth:["maxWidth",A],maxHeight:["maxHeight",A],isHidden:["display",Bl],alignSelf:["alignSelf",Q],justifySelf:["justifySelf",Q],position:["position",Z1],zIndex:["zIndex",Z1],top:["top",A],bottom:["bottom",A],start:[q("left","right"),A],end:[q("right","left"),A],left:["left",A],right:["right",A],order:["order",Z1],flex:["flex",Zl],flexGrow:["flexGrow",Q],flexShrink:["flexShrink",Q],flexBasis:["flexBasis",Q],gridArea:["gridArea",Q],gridColumn:["gridColumn",Q],gridColumnEnd:["gridColumnEnd",Q],gridColumnStart:["gridColumnStart",Q],gridRow:["gridRow",Q],gridRowEnd:["gridRowEnd",Q],gridRowStart:["gridRowStart",Q]},_l={...yt,backgroundColor:["backgroundColor",Kl],borderWidth:["borderWidth",ce],borderStartWidth:[q("borderLeftWidth","borderRightWidth"),ce],borderEndWidth:[q("borderRightWidth","borderLeftWidth"),ce],borderLeftWidth:["borderLeftWidth",ce],borderRightWidth:["borderRightWidth",ce],borderTopWidth:["borderTopWidth",ce],borderBottomWidth:["borderBottomWidth",ce],borderXWidth:[["borderLeftWidth","borderRightWidth"],ce],borderYWidth:[["borderTopWidth","borderBottomWidth"],ce],borderColor:["borderColor",se],borderStartColor:[q("borderLeftColor","borderRightColor"),se],borderEndColor:[q("borderRightColor","borderLeftColor"),se],borderLeftColor:["borderLeftColor",se],borderRightColor:["borderRightColor",se],borderTopColor:["borderTopColor",se],borderBottomColor:["borderBottomColor",se],borderXColor:[["borderLeftColor","borderRightColor"],se],borderYColor:[["borderTopColor","borderBottomColor"],se],borderRadius:["borderRadius",de],borderTopStartRadius:[q("borderTopLeftRadius","borderTopRightRadius"),de],borderTopEndRadius:[q("borderTopRightRadius","borderTopLeftRadius"),de],borderBottomStartRadius:[q("borderBottomLeftRadius","borderBottomRightRadius"),de],borderBottomEndRadius:[q("borderBottomRightRadius","borderBottomLeftRadius"),de],borderTopLeftRadius:["borderTopLeftRadius",de],borderTopRightRadius:["borderTopRightRadius",de],borderBottomLeftRadius:["borderBottomLeftRadius",de],borderBottomRightRadius:["borderBottomRightRadius",de],padding:["padding",A],paddingStart:[q("paddingLeft","paddingRight"),A],paddingEnd:[q("paddingRight","paddingLeft"),A],paddingLeft:["paddingLeft",A],paddingRight:["paddingRight",A],paddingTop:["paddingTop",A],paddingBottom:["paddingBottom",A],paddingX:[["paddingLeft","paddingRight"],A],paddingY:[["paddingTop","paddingBottom"],A],overflow:["overflow",Q]},na={borderWidth:"borderStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle",borderTopWidth:"borderTopStyle",borderBottomWidth:"borderBottomStyle"},Nl=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,Rl=/^\s*\w+\(/,$l=/(static-)?size-\d+|single-line-(height|width)/g;function A(n){return typeof n=="number"?n+"px":Nl.test(n)?n:Rl.test(n)?n.replace($l,"var(--ac-global-dimension-$&)"):`var(--ac-global-dimension-${n})`}function B1(n,a){return n=An(n,a),A(n)}function Hl(n,a,t,i){const r={};for(const o in n){const l=a[o];if(!l||n[o]==null)continue;let[c,d]=l;typeof c=="function"&&(c=c(t));const g=An(n[o],i),u=d(g);if(Array.isArray(c))for(const h of c)r[h]=u;else r[c]=u}for(const o in na)r[o]&&(r[na[o]]="solid",r.boxSizing="border-box");return r}function q(n,a){return t=>t==="rtl"?a:n}function z1(n,a="default"){return`var(--ac-global-color-${n}, var(--ac-semantic-${n}-color-${a}))`}function Kl(n){return`var(--ac-global-background-color-${n}, ${z1(n,"background")})`}function se(n){return n==="default"?"var(--ac-global-border-color)":`var(--ac-global-border-color-${n}, ${z1(n,"border")})`}function ce(n){return`var(--ac-global-border-size-${n})`}function Q(n){return n}function de(n){return`var(--ac-global-rounding-${n})`}function Bl(n){return n?"none":void 0}function Z1(n){return n}function Zl(n){return typeof n=="boolean"?n?"1":void 0:""+n}function An(n,a){if(n&&typeof n=="object"&&!Array.isArray(n)){for(let t=0;t<a.length;t++){const i=a[t];if(n[i]!=null)return n[i]}return n.base}return n}function p1(n,a=yt,t={}){const{...i}=n,{direction:r}=zi(),{matchedBreakpoints:o=["base"]}=t,c={...Hl(n,a,r,o)};i.className&&console.warn("The className prop is unsafe and is unsupported in phoenix Components"),i.style&&console.warn("The style prop is unsafe and is unsupported in phoenix Components. ");const d={style:c};return An(n.isHidden,o)&&(d.hidden=!0),{styleProps:d}}const Lt=m`
181
181
  margin: 0;
182
182
  font-weight: 400;
183
183
  &[data-size="XS"] {
@@ -234,10 +234,10 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
234
234
  `,Lt);function Wl(n,a){const{isDisabled:t=!1}=n,{children:i,color:r=t?"text-300":"text-900",size:o="S",weight:l="normal",fontStyle:c="normal",...d}=n,{styleProps:g}=p1(d);return e(Ma,{className:"ac-text",...d,...g,css:m`
235
235
  ${Ul(r)};
236
236
  font-style: ${c};
237
- `,"data-size":o,"data-weight":l,ref:a,children:i})}const y=h.forwardRef(Wl);function Ql(n,a){const{children:t,level:i=3,weight:r="normal",...o}=n;return e(Ta,{...o,css:m(Lt,jl),className:"ac-Heading",ref:a,level:i,"data-level":i,"data-weight":r,children:t})}const B=h.forwardRef(Ql),ql=m`
237
+ `,"data-size":o,"data-weight":l,ref:a,children:i})}const y=p.forwardRef(Wl);function Ql(n,a){const{children:t,level:i=3,weight:r="normal",...o}=n;return e(Ta,{...o,css:m(Lt,jl),className:"ac-Heading",ref:a,level:i,"data-level":i,"data-weight":r,children:t})}const B=p.forwardRef(Ql),ql=m`
238
238
  font-family: -apple-system, "system-ui", "Segoe UI", "Noto Sans", Helvetica,
239
239
  Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
240
- `,Z5=h.forwardRef(function(a,t){return e("kbd",{ref:t,css:ql,className:"ac-keyboard",children:a.children})}),Xl=m`
240
+ `,Z5=p.forwardRef(function(a,t){return e("kbd",{ref:t,css:ql,className:"ac-keyboard",children:a.children})}),Xl=m`
241
241
  border: 0;
242
242
  clip: rect(0 0 0 0);
243
243
  margin: -1px;
@@ -292,7 +292,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
292
292
  flex-shrink: 0;
293
293
  user-select: none;
294
294
  }
295
- `,i),...r,children:n})},e0=_e`
295
+ `,i),...r,children:n})},e0=Ne`
296
296
  100% {
297
297
  transform: rotate(360deg);
298
298
  }
@@ -480,7 +480,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
480
480
  }
481
481
  }
482
482
  }
483
- `,P0=({className:n,css:a,size:t,...i})=>e(Ei,{allowsMultipleExpanded:!0,className:X("ac-disclosure-group",n),css:m(V0,a),"data-size":t,...i}),It=({size:n,className:a,...t})=>e(Ai,{className:X("ac-disclosure",a),css:D0,"data-size":n,defaultExpanded:!0,...t}),At=({className:n,...a})=>e(Ii,{className:X("ac-disclosure-panel",n),...a}),Et=({children:n,arrowPosition:a,justifyContent:t,width:i})=>e(Ta,{className:"react-aria-Heading ac-disclosure-trigger",children:s(gn,{slot:"trigger","data-arrow-position":a,style:{width:i},children:[e(k,{justifyContent:t,alignItems:"center",width:"100%",gap:"size-100",children:n}),e(M,{svg:e(En,{})})]})}),he=m`
483
+ `,P0=({className:n,css:a,size:t,...i})=>e(Ei,{allowsMultipleExpanded:!0,className:X("ac-disclosure-group",n),css:m(V0,a),"data-size":t,...i}),It=({size:n,className:a,...t})=>e(Ai,{className:X("ac-disclosure",a),css:D0,"data-size":n,defaultExpanded:!0,...t}),At=({className:n,...a})=>e(Ii,{className:X("ac-disclosure-panel",n),...a}),Et=({children:n,arrowPosition:a,justifyContent:t,width:i})=>e(Ta,{className:"react-aria-Heading ac-disclosure-trigger",children:s(gn,{slot:"trigger","data-arrow-position":a,style:{width:i},children:[e(k,{justifyContent:t,alignItems:"center",width:"100%",gap:"size-100",children:n}),e(M,{svg:e(En,{})})]})}),be=m`
484
484
  &[data-required] {
485
485
  .react-aria-Label {
486
486
  &::after {
@@ -689,7 +689,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
689
689
  &[data-focus-visible] {
690
690
  outline: none;
691
691
  }
692
- `,j1=n=>{n.preventDefault(),n.stopPropagation()};function z4({label:n,placeholder:a,description:t,errorMessage:i,children:r,container:o,size:l="M",width:c,stopPropagation:d,renderEmptyState:g,isInvalid:u,...p}){return s(Vi,{...p,css:m(he,F0),"data-size":l,isInvalid:u||!!i,style:{width:c},children:[n&&e(O,{children:n}),s("div",{className:"px-combobox-container",onClick:d?j1:void 0,onKeyDown:d?j1:void 0,onKeyUp:d?j1:void 0,children:[e(H,{placeholder:a}),e(gn,{children:e(zt,{})})]}),t&&!i?e(Ma,{slot:"description",children:t}):null,e(R,{children:i}),e(Ia,{css:_0,UNSTABLE_portalContainer:o,children:e(za,{renderEmptyState:g,children:r})})]})}function I4(n){const{children:a,...t}=n;return e(d1,{...t,css:N0,children:({isSelected:i})=>s(K,{children:[a,i&&e(M,{svg:e(u0,{}),className:"px-menu-item__selected-checkmark"})]})})}const On=m`
692
+ `,j1=n=>{n.preventDefault(),n.stopPropagation()};function z4({label:n,placeholder:a,description:t,errorMessage:i,children:r,container:o,size:l="M",width:c,stopPropagation:d,renderEmptyState:g,isInvalid:u,...h}){return s(Vi,{...h,css:m(be,F0),"data-size":l,isInvalid:u||!!i,style:{width:c},children:[n&&e(O,{children:n}),s("div",{className:"px-combobox-container",onClick:d?j1:void 0,onKeyDown:d?j1:void 0,onKeyUp:d?j1:void 0,children:[e(H,{placeholder:a}),e(gn,{children:e(zt,{})})]}),t&&!i?e(Ma,{slot:"description",children:t}):null,e(R,{children:i}),e(Ia,{css:_0,UNSTABLE_portalContainer:o,children:e(za,{renderEmptyState:g,children:r})})]})}function I4(n){const{children:a,...t}=n;return e(d1,{...t,css:N0,children:({isSelected:i})=>s(K,{children:[a,i&&e(M,{svg:e(u0,{}),className:"px-menu-item__selected-checkmark"})]})})}const On=m`
693
693
  --button-border-color: var(--ac-global-input-field-border-color);
694
694
  border: 1px solid var(--button-border-color);
695
695
  font-size: var(--ac-global-dimension-static-font-size-100);
@@ -790,7 +790,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
790
790
  justify-content: center;
791
791
  gap: var(--ac-global-dimension-static-size-25);
792
792
  }
793
- `;function R0(n,a){const{size:t,variant:i="default",leadingVisual:r,trailingVisual:o,children:l,css:c,...d}=n,g=at(),u=t||g||"M",p=h.useCallback(f=>s(K,{children:[r,typeof l=="function"?l(f):l,o]}),[r,o,l]);return e(gn,{...d,ref:a,"data-size":u,"data-variant":i,"data-childless":!l,css:m(On,c),children:p})}const D=U.forwardRef(R0),$0=m`
793
+ `;function R0(n,a){const{size:t,variant:i="default",leadingVisual:r,trailingVisual:o,children:l,css:c,...d}=n,g=at(),u=t||g||"M",h=p.useCallback(f=>s(K,{children:[r,typeof l=="function"?l(f):l,o]}),[r,o,l]);return e(gn,{...d,ref:a,"data-size":u,"data-variant":i,"data-childless":!l,css:m(On,c),children:h})}const D=U.forwardRef(R0),$0=m`
794
794
  text-decoration: none;
795
795
  user-select: none;
796
796
  &[data-disabled="true"] {
@@ -801,9 +801,9 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
801
801
  `;function H0(n,a){const{size:t="M",variant:i="default",leadingVisual:r,trailingVisual:o,children:l,css:c,isDisabled:d,to:g}=n;return s(un,{ref:a,"data-size":t,"data-variant":i,"data-childless":!l,"data-disabled":d,css:m(On,$0,c),to:g,children:[r,l,o]})}const A4=U.forwardRef(H0);function K0(n,a){const{children:t,elementType:i="div",...r}=n,{styleProps:o}=p1(n,_l);return e(i,{...Aa(r),...o,ref:a,css:m`
802
802
  overflow: hidden;
803
803
  box-sizing: border-box;
804
- `,className:"ac-view",children:t})}const w=h.forwardRef(K0),B0=m`
804
+ `,className:"ac-view",children:t})}const w=p.forwardRef(K0),B0=m`
805
805
  display: flex;
806
- `,Z0={direction:["flexDirection",Q],wrap:["flexWrap",G0],justifyContent:["justifyContent",G1],alignItems:["alignItems",G1],alignContent:["alignContent",G1]};function j0(n,a){const{children:t,className:i,...r}=n,o=["base"],{styleProps:l}=p1(r),{styleProps:c}=p1(r,Z0),d={...l.style,...c.style};return n.gap!=null&&(d.gap=B1(n.gap,o)),n.columnGap!=null&&(d.columnGap=B1(n.columnGap,o)),n.rowGap!=null&&(d.rowGap=B1(n.rowGap,o)),e("div",{css:B0,...Aa(r),className:X("flex",i),style:d,ref:a,children:t})}function G1(n){return n==="start"?"flex-start":n==="end"?"flex-end":n}function G0(n){return typeof n=="boolean"?n?"wrap":"nowrap":n}const k=h.forwardRef(j0);function U0(n,a){const{size:t="M",...i}=n;return e(Di,{"data-size":t,className:"ac-textfield",ref:a,...i,css:m(he,Pn)})}const $=h.forwardRef(U0);function W0(n,a){const{size:t="M",...i}=n;return e(Pi,{"data-size":t,className:"ac-searchfield",ref:a,...i,css:m(he,Pn)})}const E4=h.forwardRef(W0),Q0=h.forwardRef(function(a,t){const{size:i="M",...r}=a;return e(Oi,{"data-size":i,className:"ac-textfield",ref:t,...r,css:m(he,Pn)})}),q0=m`
806
+ `,Z0={direction:["flexDirection",Q],wrap:["flexWrap",G0],justifyContent:["justifyContent",G1],alignItems:["alignItems",G1],alignContent:["alignContent",G1]};function j0(n,a){const{children:t,className:i,...r}=n,o=["base"],{styleProps:l}=p1(r),{styleProps:c}=p1(r,Z0),d={...l.style,...c.style};return n.gap!=null&&(d.gap=B1(n.gap,o)),n.columnGap!=null&&(d.columnGap=B1(n.columnGap,o)),n.rowGap!=null&&(d.rowGap=B1(n.rowGap,o)),e("div",{css:B0,...Aa(r),className:X("flex",i),style:d,ref:a,children:t})}function G1(n){return n==="start"?"flex-start":n==="end"?"flex-end":n}function G0(n){return typeof n=="boolean"?n?"wrap":"nowrap":n}const k=p.forwardRef(j0);function U0(n,a){const{size:t="M",...i}=n;return e(Di,{"data-size":t,className:"ac-textfield",ref:a,...i,css:m(be,Pn)})}const $=p.forwardRef(U0);function W0(n,a){const{size:t="M",...i}=n;return e(Pi,{"data-size":t,className:"ac-searchfield",ref:a,...i,css:m(be,Pn)})}const E4=p.forwardRef(W0),Q0=p.forwardRef(function(a,t){const{size:i="M",...r}=a;return e(Oi,{"data-size":i,className:"ac-textfield",ref:t,...r,css:m(be,Pn)})}),q0=m`
807
807
  border: 1px solid var(--ac-global-border-color-light);
808
808
  forced-color-adjust: none;
809
809
  border-radius: var(--ac-global-rounding-small);
@@ -830,13 +830,13 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
830
830
  border-color: var(--ac-global-color-primary);
831
831
  background: var(--ac-global-color-primary-700);
832
832
  }
833
- `;function X0(n,a){return e(Fi,{...n,ref:a,css:q0})}h.forwardRef(X0);function Y0(n,a){return e(_i,{...n,ref:a,css:he})}h.forwardRef(Y0);const J0=m`
833
+ `;function X0(n,a){return e(Fi,{...n,ref:a,css:q0})}p.forwardRef(X0);function Y0(n,a){return e(_i,{...n,ref:a,css:be})}p.forwardRef(Y0);const J0=m`
834
834
  display: flex;
835
835
  align-items: center;
836
836
  flex-wrap: wrap;
837
837
  gap: var(--ac-global-dimension-size-50);
838
838
  height: 28px;
839
- `;function e2(n,a){return e(Ni,{...n,ref:a,css:J0})}h.forwardRef(e2);function n2(n,a){return e(Ri,{...n,ref:a,children:e("svg",{width:12,height:12,viewBox:"0 0 12 12",children:e("path",{d:"M0 0 L6 6 L12 0"})})})}const a2=h.forwardRef(n2),ia=_e`
839
+ `;function e2(n,a){return e(Ni,{...n,ref:a,css:J0})}p.forwardRef(e2);function n2(n,a){return e(Ri,{...n,ref:a,children:e("svg",{width:12,height:12,viewBox:"0 0 12 12",children:e("path",{d:"M0 0 L6 6 L12 0"})})})}const a2=p.forwardRef(n2),ia=Ne`
840
840
  100% {
841
841
  from {
842
842
  transform: var(--origin);
@@ -937,14 +937,14 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
937
937
  & div[role="listbox"] {
938
938
  padding: var(--ac-global-dimension-size-25);
939
939
  }
940
- `;function i2(n,a){return e(Ia,{...n,ref:a,className:"ac-popover",css:t2})}const r2=h.forwardRef(i2),ra=_e`
940
+ `;function i2(n,a){return e(Ia,{...n,ref:a,className:"ac-popover",css:t2})}const r2=p.forwardRef(i2),ra=Ne`
941
941
  from {
942
942
  opacity: 0;
943
943
  }
944
944
  to {
945
945
  opacity: 1;
946
946
  }
947
- `,o2=_e`
947
+ `,o2=Ne`
948
948
  from {
949
949
  transform: scale(0.8);
950
950
  }
@@ -998,11 +998,11 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
998
998
  border-bottom: 1px solid var(--ac-global-border-color-light);
999
999
  }
1000
1000
  }
1001
- `;function s2(n,a){const{size:t="M",...i}=n;return e($i,{...i,"data-size":t,ref:a,css:l2})}const V4=U.forwardRef(s2),A1=[{key:"15m",label:"Last 15 Min"},{key:"1h",label:"Last Hour"},{key:"12h",label:"Last 12 Hours"},{key:"1d",label:"Last Day"},{key:"7d",label:"Last 7 Days"},{key:"30d",label:"Last Month"}];A1.reduce((n,a)=>({...n,[a.key]:a}),{});function tn(n){const a=Date.now();switch(n){case"15m":return{start:X1(Hi(a))};case"1h":return{start:X1(Y1(a,1))};case"12h":return{start:Be(Y1(a,12))};case"1d":return{start:Be(ye(a,1))};case"7d":return{start:Be(ye(a,7))};case"30d":return{start:Be(ye(a,30))};default:I()}}function rn(n){return A1.some(a=>a.key===n)}function c2(n){return rn(n)||n==="custom"}const Vt=h.createContext(null);function d2(){const n=U.useContext(Vt);if(n===null)throw new Error("useTimeRange must be used within a TimeRangeContextProvider");return n}function D4({children:n}){const a=ke(l=>l.lastNTimeRangeKey),t=ke(l=>l.setLastNTimeRangeKey),[i,r]=h.useState(()=>rn(a)?{timeRangeKey:a,...tn(a)}:{timeRangeKey:"7d",...tn("7d")}),o=h.useCallback(l=>{r(l),rn(l.timeRangeKey)&&t(l.timeRangeKey)},[t]);return e(Vt.Provider,{value:{timeRange:i,setTimeRange:o},children:n})}const Le=C1("%x %H:%M:%S %p");C1("%H:%M %p");const u2=n=>n.start&&n.end?`${Le(n.start)} - ${Le(n.end)}`:n.start?`From ${Le(n.start)}`:n.end?`Until ${Le(n.end)}`:"All Time";function P4(n){return new Intl.DateTimeFormat(n,{day:"2-digit",month:"2-digit",year:"numeric"}).formatToParts(new Date).map(i=>{switch(i.type){case"day":return"dd";case"month":return"mm";case"year":return"yyyy";case"literal":return i.value;default:return""}}).join("")}const g2=m`
1001
+ `;function s2(n,a){const{size:t="M",...i}=n;return e($i,{...i,"data-size":t,ref:a,css:l2})}const V4=U.forwardRef(s2),A1=[{key:"15m",label:"Last 15 Min"},{key:"1h",label:"Last Hour"},{key:"12h",label:"Last 12 Hours"},{key:"1d",label:"Last Day"},{key:"7d",label:"Last 7 Days"},{key:"30d",label:"Last Month"}];A1.reduce((n,a)=>({...n,[a.key]:a}),{});function tn(n){const a=Date.now();switch(n){case"15m":return{start:X1(Hi(a))};case"1h":return{start:X1(Y1(a,1))};case"12h":return{start:Be(Y1(a,12))};case"1d":return{start:Be(Le(a,1))};case"7d":return{start:Be(Le(a,7))};case"30d":return{start:Be(Le(a,30))};default:I()}}function rn(n){return A1.some(a=>a.key===n)}function c2(n){return rn(n)||n==="custom"}const Vt=p.createContext(null);function d2(){const n=U.useContext(Vt);if(n===null)throw new Error("useTimeRange must be used within a TimeRangeContextProvider");return n}function D4({children:n}){const a=Se(l=>l.lastNTimeRangeKey),t=Se(l=>l.setLastNTimeRangeKey),[i,r]=p.useState(()=>rn(a)?{timeRangeKey:a,...tn(a)}:{timeRangeKey:"7d",...tn("7d")}),o=p.useCallback(l=>{r(l),rn(l.timeRangeKey)&&t(l.timeRangeKey)},[t]);return e(Vt.Provider,{value:{timeRange:i,setTimeRange:o},children:n})}const we=C1("%x %H:%M:%S %p");C1("%H:%M %p");const u2=n=>n.start&&n.end?`${we(n.start)} - ${we(n.end)}`:n.start?`From ${we(n.start)}`:n.end?`Until ${we(n.end)}`:"All Time";function P4(n){return new Intl.DateTimeFormat(n,{day:"2-digit",month:"2-digit",year:"numeric"}).formatToParts(new Date).map(i=>{switch(i.type){case"day":return"dd";case"month":return"mm";case"year":return"yyyy";case"literal":return i.value;default:return""}}).join("")}const g2=m`
1002
1002
  width: 130px;
1003
1003
  `;function m2({timeRangeKey:n,start:a,end:t}){if(n==="custom")return u2({start:a,end:t});const i=A1.find(r=>r.key===n);return i?i.label:"invalid"}function p2(n){const{value:a,isDisabled:t,onChange:i}=n,{timeRangeKey:r,start:o,end:l}=a;return s(Bi,{children:[s(D,{size:"S",leadingVisual:e(M,{svg:e(o0,{})}),isDisabled:t,children:[m2(a),e(zt,{})]}),e(r2,{placement:"bottom end",children:e(Ki,{children:({close:c})=>s(K,{children:[e(a2,{}),s(k,{direction:"row",children:[e(h2,{visible:r==="custom",children:r==="custom"&&s(k,{direction:"column",gap:"size-100",justifyContent:"end",height:"100%",children:[e(B,{level:4,weight:"heavy",children:"Time Range"}),e(x2,{initialValue:{start:o,end:l},onSubmit:d=>{i&&i({timeRangeKey:"custom",...d}),c()}})]})}),s(z2,{"aria-label":"time range preset selection",selectionMode:"single",autoFocus:!0,selectedKeys:[r],css:g2,onSelectionChange:d=>{if(d==="all"){c();return}const g=d.keys().next().value;if(!c2(g)){c();return}if(g!=="custom"){i({timeRangeKey:g,...tn(g)}),c();return}else i({timeRangeKey:g,start:o,end:l})},children:[A1.map(({key:d,label:g})=>e(d1,{id:d,children:g},d)),e(d1,{id:"custom",children:"Custom"},"custom")]})]})]})})})]})}function h2({children:n,visible:a}){return e("div",{css:m`
1004
1004
  display: ${a?"block":"none"};
1005
- `,children:e(w,{borderEndWidth:"thin",borderColor:"light",padding:"size-100",height:"100%",children:n})})}function O4(){const{timeRange:n,setTimeRange:a}=d2(),t=h.useCallback(i=>{h.startTransition(()=>{a(i)})},[a]);return e(p2,{value:n,onChange:t})}const f2=m`
1005
+ `,children:e(w,{borderEndWidth:"thin",borderColor:"light",padding:"size-100",height:"100%",children:n})})}function O4(){const{timeRange:n,setTimeRange:a}=d2(),t=p.useCallback(i=>{p.startTransition(()=>{a(i)})},[a]);return e(p2,{value:n,onChange:t})}const f2=m`
1006
1006
  --date-field-vertical-padding: 6px;
1007
1007
  --date-field-horizontal-padding: 8px;
1008
1008
  color: var(--ac-global-text-color-900);
@@ -1054,7 +1054,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1054
1054
  caret-color: transparent;
1055
1055
  }
1056
1056
  }
1057
- `;function b2(n,a){const{css:t,...i}=n;return e(Zi,{css:m(he,f2,t),...i,ref:a})}const on=h.forwardRef(b2),v2=m`
1057
+ `;function b2(n,a){const{css:t,...i}=n;return e(Zi,{css:m(be,f2,t),...i,ref:a})}const on=p.forwardRef(b2),v2=m`
1058
1058
  --date-field-vertical-padding: 6px;
1059
1059
  --date-field-horizontal-padding: 8px;
1060
1060
  color: var(--ac-global-text-color-900);
@@ -1101,7 +1101,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1101
1101
  caret-color: transparent;
1102
1102
  }
1103
1103
  }
1104
- `;function C2(n,a){return e(ji,{css:m(he,v2),...n,ref:a})}h.forwardRef(C2);const y2=m`
1104
+ `;function C2(n,a){return e(ji,{css:m(be,v2),...n,ref:a})}p.forwardRef(C2);const y2=m`
1105
1105
  display: flex;
1106
1106
  flex-direction: column;
1107
1107
  gap: var(--ac-global-dimension-size-200);
@@ -1126,7 +1126,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1126
1126
  // Eliminate the re-sizing of the DateField as you type
1127
1127
  min-width: 200px;
1128
1128
  }
1129
- `;function w2(n){return{startDate:n.start?$n(n.start.toISOString()):null,endDate:n.end?$n(n.end.toISOString()):null}}function x2(n){const{initialValue:a,onSubmit:t}=n,{control:i,handleSubmit:r,formState:{isValid:o},resetField:l,setError:c,clearErrors:d}=Se({defaultValues:w2(a||{})}),g=h.useCallback(()=>{l("startDate",{defaultValue:null})},[l]),u=h.useCallback(()=>{l("endDate",{defaultValue:null})},[l]),p=h.useCallback(f=>{d();const{startDate:b,endDate:v}=f,L=b?b.toDate(J1()):null,S=v?v.toDate(J1()):null;if(L&&S&&L>S){c("endDate",{message:"End must be after the start date"});return}t({start:L,end:S})},[t,c,d]);return s(Me,{css:y2,"data-testid":"time-range-form",onSubmit:r(p),children:[s("div",{"data-testid":"start-time",css:oa,children:[e(_,{name:"startDate",control:i,render:({field:{onChange:f,onBlur:b,value:v},fieldState:{invalid:L}})=>s(on,{isInvalid:L,onChange:f,onBlur:b,value:v,granularity:"second",hideTimeZone:!0,css:la,children:[e(O,{children:"Start Date"}),e(en,{children:S=>e(nn,{segment:S})})]})}),e(D,{size:"S",excludeFromTabOrder:!0,onPress:g,"aria-label":"Clear start date and time",leadingVisual:e(M,{svg:e(ta,{})})})]}),s("div",{"data-testid":"end-time",css:oa,children:[e(_,{name:"endDate",control:i,render:({field:{onChange:f,onBlur:b,value:v},fieldState:{invalid:L,error:S}})=>s(on,{isInvalid:L,onChange:f,onBlur:b,value:v,granularity:"second",hideTimeZone:!0,css:la,children:[e(O,{children:"End Date"}),e(en,{children:T=>e(nn,{segment:T})}),S?e(R,{children:S.message}):null]})}),e(D,{size:"S",excludeFromTabOrder:!0,onPress:u,"aria-label":"Clear end date and time",leadingVisual:e(M,{svg:e(ta,{})})})]}),e("div",{"data-testid":"controls",css:L2,children:e(D,{isDisabled:!o,size:"S",type:"submit",variant:"primary",children:"Apply"})})]})}m(`
1129
+ `;function w2(n){return{startDate:n.start?$n(n.start.toISOString()):null,endDate:n.end?$n(n.end.toISOString()):null}}function x2(n){const{initialValue:a,onSubmit:t}=n,{control:i,handleSubmit:r,formState:{isValid:o},resetField:l,setError:c,clearErrors:d}=Me({defaultValues:w2(a||{})}),g=p.useCallback(()=>{l("startDate",{defaultValue:null})},[l]),u=p.useCallback(()=>{l("endDate",{defaultValue:null})},[l]),h=p.useCallback(f=>{d();const{startDate:b,endDate:v}=f,L=b?b.toDate(J1()):null,S=v?v.toDate(J1()):null;if(L&&S&&L>S){c("endDate",{message:"End must be after the start date"});return}t({start:L,end:S})},[t,c,d]);return s(Te,{css:y2,"data-testid":"time-range-form",onSubmit:r(h),children:[s("div",{"data-testid":"start-time",css:oa,children:[e(_,{name:"startDate",control:i,render:({field:{onChange:f,onBlur:b,value:v},fieldState:{invalid:L}})=>s(on,{isInvalid:L,onChange:f,onBlur:b,value:v,granularity:"second",hideTimeZone:!0,css:la,children:[e(O,{children:"Start Date"}),e(en,{children:S=>e(nn,{segment:S})})]})}),e(D,{size:"S",excludeFromTabOrder:!0,onPress:g,"aria-label":"Clear start date and time",leadingVisual:e(M,{svg:e(ta,{})})})]}),s("div",{"data-testid":"end-time",css:oa,children:[e(_,{name:"endDate",control:i,render:({field:{onChange:f,onBlur:b,value:v},fieldState:{invalid:L,error:S}})=>s(on,{isInvalid:L,onChange:f,onBlur:b,value:v,granularity:"second",hideTimeZone:!0,css:la,children:[e(O,{children:"End Date"}),e(en,{children:T=>e(nn,{segment:T})}),S?e(R,{children:S.message}):null]})}),e(D,{size:"S",excludeFromTabOrder:!0,onPress:u,"aria-label":"Clear end date and time",leadingVisual:e(M,{svg:e(ta,{})})})]}),e("div",{"data-testid":"controls",css:L2,children:e(D,{isDisabled:!o,size:"S",type:"submit",variant:"primary",children:"Apply"})})]})}m(`
1130
1130
  // fixes esoteric overflow bug with VisuallyHidden, which is used by Radio
1131
1131
  // If position is not set to relative, the radio group will explode the parent layout
1132
1132
  // This will impact any other react aria component that uses VisuallyHidden
@@ -1233,7 +1233,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1233
1233
  outline: 1px solid var(--ac-global-input-field-border-color-active);
1234
1234
  outline-offset: -2px;
1235
1235
  }
1236
- `),ie=({className:n,css:a,...t})=>{const{leadingVisual:i,trailingVisual:r,size:o,children:l,...c}=t,d=at(),g=o??d,u=h.useCallback(p=>s(K,{children:[i,typeof l=="function"?l(p):l,r]}),[i,r,l]);return e(Gi,{css:m(k2,a),"data-size":g,"data-childless":!l,className:X("ac-toggle-button",n),...c,children:u})},S2=m(`
1236
+ `),ie=({className:n,css:a,...t})=>{const{leadingVisual:i,trailingVisual:r,size:o,children:l,...c}=t,d=at(),g=o??d,u=p.useCallback(h=>s(K,{children:[i,typeof l=="function"?l(h):l,r]}),[i,r,l]);return e(Gi,{css:m(k2,a),"data-size":g,"data-childless":!l,className:X("ac-toggle-button",n),...c,children:u})},S2=m(`
1237
1237
  position: relative;
1238
1238
  display: flex;
1239
1239
  flex-direction: row;
@@ -1323,7 +1323,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1323
1323
  background: var(--ac-global-background-color-light-hover);
1324
1324
  }
1325
1325
  }
1326
- `;function T2(n,a){const{css:t,...i}=n,r=m(M2,t);return e(za,{css:r,ref:a,...i})}const z2=h.forwardRef(T2),I2=m`
1326
+ `;function T2(n,a){const{css:t,...i}=n,r=m(M2,t);return e(za,{css:r,ref:a,...i})}const z2=p.forwardRef(T2),I2=m`
1327
1327
  display: inline-flex;
1328
1328
  align-items: center;
1329
1329
  gap: var(--ac-global-dimension-static-size-100);
@@ -1407,7 +1407,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1407
1407
  &[data-size="L"] {
1408
1408
  margin-right: var(--ac-global-dimension-static-size-100);
1409
1409
  }
1410
- `,children:n})}function xe({children:n,isDisabled:a,css:t,color:i="var(--ac-global-color-grey-300)",onPress:r,onRemove:o,size:l="M",style:c,leadingVisual:d,...g}){const{theme:u}=W(),p=d&&l!=="S"?e(A2,{size:l,children:d}):null,f=o?e("button",{onClick:()=>{o()},disabled:a,"aria-label":"Remove",children:e(M,{svg:e(St,{})})}):null,b=()=>r&&o?s(K,{children:[s("button",{onClick:()=>{r()},disabled:a,children:[p,n]}),f]}):r?s("button",{onClick:()=>{r()},disabled:a,children:[p,n]}):o?s(K,{children:[s("span",{children:[p,n]}),f]}):s(K,{children:[p,n]});return e("div",{css:m(I2,t),style:{"--ac-internal-token-color":i,...c},"data-theme":u,"data-size":l,...r&&{"data-interactive":!0},...o&&{"data-removable":!0},...a&&{"data-disabled":!0},...g,children:b()})}const E2=m`
1410
+ `,children:n})}function ke({children:n,isDisabled:a,css:t,color:i="var(--ac-global-color-grey-300)",onPress:r,onRemove:o,size:l="M",style:c,leadingVisual:d,...g}){const{theme:u}=W(),h=d&&l!=="S"?e(A2,{size:l,children:d}):null,f=o?e("button",{onClick:()=>{o()},disabled:a,"aria-label":"Remove",children:e(M,{svg:e(St,{})})}):null,b=()=>r&&o?s(K,{children:[s("button",{onClick:()=>{r()},disabled:a,children:[h,n]}),f]}):r?s("button",{onClick:()=>{r()},disabled:a,children:[h,n]}):o?s(K,{children:[s("span",{children:[h,n]}),f]}):s(K,{children:[h,n]});return e("div",{css:m(I2,t),style:{"--ac-internal-token-color":i,...c},"data-theme":u,"data-size":l,...r&&{"data-interactive":!0},...o&&{"data-removable":!0},...a&&{"data-disabled":!0},...g,children:b()})}const E2=m`
1411
1411
  --ac-slider-track-height: var(--ac-global-dimension-size-30);
1412
1412
  --ac-slider-handle-width: var(--ac-global-dimension-size-250);
1413
1413
  --ac-slider-handle-height: var(--ac-global-dimension-size-250);
@@ -1559,7 +1559,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1559
1559
  z-index: 2;
1560
1560
  }
1561
1561
  }
1562
- `;function F4({label:n,thumbLabels:a,children:t,css:i,...r}){return s(Ji,{css:m(E2,i),...r,children:[n&&e(O,{className:"ac-slider-label",children:n}),e(qi,{className:"ac-slider-output",children:typeof t>"u"?e(V2,{}):t}),e(Yi,{className:"ac-slider-track",style:({state:o})=>o.values.length===1?{"--slider-start":"0%","--slider-end":`${o.getThumbPercent(0)*100}%`}:{"--slider-start":`${o.getThumbPercent(0)*100}%`,"--slider-end":`${o.getThumbPercent(1)*100}%`},children:({state:o})=>e(K,{children:o.values.map((l,c)=>e(Xi,{index:c,"aria-label":a==null?void 0:a[c],className:"ac-slider-thumb"},c))})})]})}function _4({value:n,onChange:a,...t}){const{step:i,getThumbMinValue:r,getThumbMaxValue:o,values:l,setThumbValue:c}=h.useContext(Ea),d=n??l[0].toString()??"",g=Wi(Qi);return e(Q0,{className:"ac-slider-number-field","aria-labelledby":g.id,value:Number(d),onChange:u=>{a?a(u):typeof u=="number"&&c(0,u)},step:i,maxValue:o(0),minValue:r(0),...t,children:e(H,{})})}function V2(){const n=h.useContext(Ea);return e(y,{children:n.values.map(a=>a.toString()).join(" – ")})}const D2=m`
1562
+ `;function F4({label:n,thumbLabels:a,children:t,css:i,...r}){return s(Ji,{css:m(E2,i),...r,children:[n&&e(O,{className:"ac-slider-label",children:n}),e(qi,{className:"ac-slider-output",children:typeof t>"u"?e(V2,{}):t}),e(Yi,{className:"ac-slider-track",style:({state:o})=>o.values.length===1?{"--slider-start":"0%","--slider-end":`${o.getThumbPercent(0)*100}%`}:{"--slider-start":`${o.getThumbPercent(0)*100}%`,"--slider-end":`${o.getThumbPercent(1)*100}%`},children:({state:o})=>e(K,{children:o.values.map((l,c)=>e(Xi,{index:c,"aria-label":a==null?void 0:a[c],className:"ac-slider-thumb"},c))})})]})}function _4({value:n,onChange:a,...t}){const{step:i,getThumbMinValue:r,getThumbMaxValue:o,values:l,setThumbValue:c}=p.useContext(Ea),d=n??l[0].toString()??"",g=Wi(Qi);return e(Q0,{className:"ac-slider-number-field","aria-labelledby":g.id,value:Number(d),onChange:u=>{a?a(u):typeof u=="number"&&c(0,u)},step:i,maxValue:o(0),minValue:r(0),...t,children:e(H,{})})}function V2(){const n=p.useContext(Ea);return e(y,{children:n.values.map(a=>a.toString()).join(" – ")})}const D2=m`
1563
1563
  display: inline-block;
1564
1564
  padding: 0 var(--ac-global-dimension-size-50);
1565
1565
  border-radius: var(--ac-global-rounding-large);
@@ -1675,7 +1675,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1675
1675
  width: 100%;
1676
1676
  height: 100%;
1677
1677
  gap: var(--ac-global-dimension-static-size-100);
1678
- `,children:[e(Pa,{isIndeterminate:!0,"aria-label":"loading",size:a}),n!=null?e(y,{children:n}):null]}),H2=_e`
1678
+ `,children:[e(Pa,{isIndeterminate:!0,"aria-label":"loading",size:a}),n!=null?e(y,{children:n}):null]}),H2=Ne`
1679
1679
  0% {
1680
1680
  opacity: 1;
1681
1681
  }
@@ -1685,7 +1685,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1685
1685
  100% {
1686
1686
  opacity: 1;
1687
1687
  }
1688
- `,K2=_e`
1688
+ `,K2=Ne`
1689
1689
  0% {
1690
1690
  transform: translateX(-100%);
1691
1691
  }
@@ -1754,7 +1754,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1754
1754
  color: var(--ac-text-color-placeholder);
1755
1755
  }
1756
1756
  }
1757
- `;function W2(n,a){const{size:t="M",...i}=n;return e(nt,{size:t,children:e(ir,{"data-size":t,className:"ac-select",ref:a,...i,css:m(he,U2)})})}h.forwardRef(W2);const Q2=h.forwardRef((n,a)=>{const{children:t,...i}=n;return e(d1,{...i,ref:a,children:({isSelected:r})=>s(k,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e("span",{children:t}),r&&e(M,{svg:e(xt,{})})]})})});Q2.displayName="SelectItem";const h1={OPENAI:["required","auto","none"],AZURE_OPENAI:["required","auto","none"],ANTHROPIC:["any","auto","none"]},q2=(n,a)=>{switch(n){case"AZURE_OPENAI":case"OPENAI":return J(a)&&"type"in a&&typeof a.type=="string"?a.type:a;case"ANTHROPIC":return J(a)&&"type"in a&&typeof a.type=="string"?a.type:a;case"GOOGLE":return"auto";default:I()}},H4=n=>n in h1,ca=(n,a)=>{var t;return((t=h1[n])==null?void 0:t.includes(a))??!1},f1="tool_",da=n=>`${f1}${n}`,ua=n=>n.startsWith(f1)?n.slice(f1.length):n,X2=({choiceType:n})=>{switch(n){case"any":case"required":return s(k,{gap:"size-100",width:"100%",children:["Use at least one tool"," ",e(xe,{color:"var(--ac-global-color-grey-900)",size:"S",children:n})]});case"none":return s(k,{gap:"size-100",width:"100%",children:["Don't use any tools"," ",e(xe,{color:"var(--ac-global-color-grey-900)",size:"S",children:n})]});case"auto":default:return s(k,{gap:"size-100",width:"100%",children:["Tools auto-selected by LLM"," ",e(xe,{color:"var(--ac-global-color-grey-900)",size:"S",children:n})]})}};function K4({choice:n,onChange:a,toolNames:t,provider:i}){const r=q2(i,n),l=ca(i,r)?r:da(xl(n)??"");return e(Ne,{selectedKey:l,label:"Tool Choice","aria-label":"Tool Choice for an LLM",onSelectionChange:c=>{if(typeof c=="string"){if(c.startsWith(f1))switch(i){case"AZURE_OPENAI":case"OPENAI":a(Jn({type:"function",function:{name:ua(c)}}));break;case"ANTHROPIC":a(ea({type:"tool",name:ua(c)}));break;default:I()}else if(ca(i,c))switch(i){case"AZURE_OPENAI":case"OPENAI":a(Jn(c));break;case"ANTHROPIC":a(ea({type:c}));break;default:I()}}},children:[...h1[i]?h1[i].map(c=>e(F,{textValue:c,children:e(X2,{choiceType:c})},c)):[],...t.map(c=>e(F,{textValue:c,children:c},da(c)))]})}const Y2=({height:n})=>s("svg",{viewBox:"0 0 24 24",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",children:[e("title",{children:"Azure"}),e("path",{d:"M11.49 2H2v9.492h9.492V2h-.002z",fill:"#F25022"}),e("path",{d:"M22 2h-9.492v9.492H22V2z",fill:"#7FBA00"}),e("path",{d:"M11.49 12.508H2V22h9.492v-9.492h-.002z",fill:"#00A4EF"}),e("path",{d:"M22 12.508h-9.492V22H22v-9.492z",fill:"#FFB900"})]}),J2=({height:n})=>s("svg",{viewBox:"0 0 24 24",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",children:[e("title",{children:"Google"}),e("defs",{children:s("linearGradient",{id:"lobe-icons-google-fill",x1:"0%",x2:"68.73%",y1:"100%",y2:"30.395%",children:[e("stop",{offset:"0%",stopColor:"#1C7DFF"}),e("stop",{offset:"52.021%",stopColor:"#1C69FF"}),e("stop",{offset:"100%",stopColor:"#F0DCD6"})]})}),e("path",{d:"M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-12 12",fill:"url(#lobe-icons-google-fill)",fillRule:"nonzero"})]}),es=({height:n})=>s("svg",{fill:"var(--ac-global-text-color-900)",fillRule:"evenodd",viewBox:"0 0 24 24",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",children:[e("title",{children:"OpenAI"}),e("path",{d:"M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z"})]}),ns=({height:n})=>s("svg",{fill:"var(--ac-global-text-color-900)",fillRule:"evenodd",viewBox:"0 0 24 24",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",children:[e("title",{children:"Anthropic"}),e("path",{d:"M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"})]}),as={AZURE_OPENAI:Y2,GOOGLE:J2,OPENAI:es,ANTHROPIC:ns};function B4({provider:n,height:a=18}){return as[n]({height:a})}const Dt=m`
1757
+ `;function W2(n,a){const{size:t="M",...i}=n;return e(nt,{size:t,children:e(ir,{"data-size":t,className:"ac-select",ref:a,...i,css:m(be,U2)})})}p.forwardRef(W2);const Q2=p.forwardRef((n,a)=>{const{children:t,...i}=n;return e(d1,{...i,ref:a,children:({isSelected:r})=>s(k,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e("span",{children:t}),r&&e(M,{svg:e(xt,{})})]})})});Q2.displayName="SelectItem";const h1={OPENAI:["required","auto","none"],AZURE_OPENAI:["required","auto","none"],ANTHROPIC:["any","auto","none"]},q2=(n,a)=>{switch(n){case"AZURE_OPENAI":case"OPENAI":return J(a)&&"type"in a&&typeof a.type=="string"?a.type:a;case"ANTHROPIC":return J(a)&&"type"in a&&typeof a.type=="string"?a.type:a;case"GOOGLE":return"auto";default:I()}},H4=n=>n in h1,ca=(n,a)=>{var t;return((t=h1[n])==null?void 0:t.includes(a))??!1},f1="tool_",da=n=>`${f1}${n}`,ua=n=>n.startsWith(f1)?n.slice(f1.length):n,X2=({choiceType:n})=>{switch(n){case"any":case"required":return s(k,{gap:"size-100",width:"100%",children:["Use at least one tool"," ",e(ke,{color:"var(--ac-global-color-grey-900)",size:"S",children:n})]});case"none":return s(k,{gap:"size-100",width:"100%",children:["Don't use any tools"," ",e(ke,{color:"var(--ac-global-color-grey-900)",size:"S",children:n})]});case"auto":default:return s(k,{gap:"size-100",width:"100%",children:["Tools auto-selected by LLM"," ",e(ke,{color:"var(--ac-global-color-grey-900)",size:"S",children:n})]})}};function K4({choice:n,onChange:a,toolNames:t,provider:i}){const r=q2(i,n),l=ca(i,r)?r:da(xl(n)??"");return e(Re,{selectedKey:l,label:"Tool Choice","aria-label":"Tool Choice for an LLM",onSelectionChange:c=>{if(typeof c=="string"){if(c.startsWith(f1))switch(i){case"AZURE_OPENAI":case"OPENAI":a(Jn({type:"function",function:{name:ua(c)}}));break;case"ANTHROPIC":a(ea({type:"tool",name:ua(c)}));break;default:I()}else if(ca(i,c))switch(i){case"AZURE_OPENAI":case"OPENAI":a(Jn(c));break;case"ANTHROPIC":a(ea({type:c}));break;default:I()}}},children:[...h1[i]?h1[i].map(c=>e(F,{textValue:c,children:e(X2,{choiceType:c})},c)):[],...t.map(c=>e(F,{textValue:c,children:c},da(c)))]})}const Y2=({height:n})=>s("svg",{viewBox:"0 0 24 24",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",children:[e("title",{children:"Azure"}),e("path",{d:"M11.49 2H2v9.492h9.492V2h-.002z",fill:"#F25022"}),e("path",{d:"M22 2h-9.492v9.492H22V2z",fill:"#7FBA00"}),e("path",{d:"M11.49 12.508H2V22h9.492v-9.492h-.002z",fill:"#00A4EF"}),e("path",{d:"M22 12.508h-9.492V22H22v-9.492z",fill:"#FFB900"})]}),J2=({height:n})=>s("svg",{viewBox:"0 0 24 24",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",children:[e("title",{children:"Google"}),e("defs",{children:s("linearGradient",{id:"lobe-icons-google-fill",x1:"0%",x2:"68.73%",y1:"100%",y2:"30.395%",children:[e("stop",{offset:"0%",stopColor:"#1C7DFF"}),e("stop",{offset:"52.021%",stopColor:"#1C69FF"}),e("stop",{offset:"100%",stopColor:"#F0DCD6"})]})}),e("path",{d:"M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-12 12",fill:"url(#lobe-icons-google-fill)",fillRule:"nonzero"})]}),es=({height:n})=>s("svg",{fill:"var(--ac-global-text-color-900)",fillRule:"evenodd",viewBox:"0 0 24 24",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",children:[e("title",{children:"OpenAI"}),e("path",{d:"M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z"})]}),ns=({height:n})=>s("svg",{fill:"var(--ac-global-text-color-900)",fillRule:"evenodd",viewBox:"0 0 24 24",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",children:[e("title",{children:"Anthropic"}),e("path",{d:"M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"})]}),as={AZURE_OPENAI:Y2,GOOGLE:J2,OPENAI:es,ANTHROPIC:ns};function B4({provider:n,height:a=18}){return as[n]({height:a})}const Dt=m`
1758
1758
  font-size: var(--ac-global-font-size-s);
1759
1759
  width: 100%;
1760
1760
  border-collapse: separate;
@@ -1852,11 +1852,11 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1852
1852
  padding: var(--ac-global-dimension-size-100);
1853
1853
  gap: var(--ac-global-dimension-size-50);
1854
1854
  border-top: 1px solid var(--ac-global-color-grey-300);
1855
- `;function G4(n){const{isCommitting:a,onSubmit:t,defaultName:i}=n,{control:r,handleSubmit:o,formState:{isDirty:l,isValid:c}}=Se({defaultValues:{name:i??"New Key",description:"",expiresAt:null}});return e(pe,{title:"Create an API Key",isDismissable:!0,children:s(rr,{onSubmit:o(t),children:[s(w,{padding:"size-200",children:[e(_,{name:"name",control:r,rules:{required:"System key name is required"},render:({field:{onChange:d,onBlur:g,value:u},fieldState:{invalid:p,error:f}})=>s($,{isInvalid:p,onChange:d,onBlur:g,value:u.toString(),size:"S",children:[e(O,{children:"Name"}),e(H,{}),f!=null&&f.message?e(R,{children:f.message}):e(y,{slot:"description",children:"A name to identify the key"})]})}),e(_,{name:"description",control:r,render:({field:{onChange:d,onBlur:g,value:u},fieldState:{invalid:p,error:f}})=>s($,{isInvalid:p,onChange:d,onBlur:g,value:u==null?void 0:u.toString(),size:"S",children:[e(O,{children:"Description"}),e(mn,{}),f!=null&&f.message?e(R,{children:f.message}):e(y,{slot:"description",children:"A description of the system key"})]})}),e(_,{name:"expiresAt",control:r,rules:{validate:d=>d&&d.toDate(J1())<new Date?"Date must be in the future":!0},render:({field:{name:d,onChange:g,onBlur:u,value:p},fieldState:{invalid:f,error:b}})=>s(on,{isInvalid:f,onChange:g,onBlur:u,value:p,name:d,granularity:"minute",css:m`
1855
+ `;function G4(n){const{isCommitting:a,onSubmit:t,defaultName:i}=n,{control:r,handleSubmit:o,formState:{isDirty:l,isValid:c}}=Me({defaultValues:{name:i??"New Key",description:"",expiresAt:null}});return e(fe,{title:"Create an API Key",isDismissable:!0,children:s(rr,{onSubmit:o(t),children:[s(w,{padding:"size-200",children:[e(_,{name:"name",control:r,rules:{required:"System key name is required"},render:({field:{onChange:d,onBlur:g,value:u},fieldState:{invalid:h,error:f}})=>s($,{isInvalid:h,onChange:d,onBlur:g,value:u.toString(),size:"S",children:[e(O,{children:"Name"}),e(H,{}),f!=null&&f.message?e(R,{children:f.message}):e(y,{slot:"description",children:"A name to identify the key"})]})}),e(_,{name:"description",control:r,render:({field:{onChange:d,onBlur:g,value:u},fieldState:{invalid:h,error:f}})=>s($,{isInvalid:h,onChange:d,onBlur:g,value:u==null?void 0:u.toString(),size:"S",children:[e(O,{children:"Description"}),e(mn,{}),f!=null&&f.message?e(R,{children:f.message}):e(y,{slot:"description",children:"A description of the system key"})]})}),e(_,{name:"expiresAt",control:r,rules:{validate:d=>d&&d.toDate(J1())<new Date?"Date must be in the future":!0},render:({field:{name:d,onChange:g,onBlur:u,value:h},fieldState:{invalid:f,error:b}})=>s(on,{isInvalid:f,onChange:g,onBlur:u,value:h,name:d,granularity:"minute",css:m`
1856
1856
  .react-aria-DateInput {
1857
1857
  width: 100%;
1858
1858
  }
1859
- `,children:[e(O,{children:"Expires At"}),e(en,{children:v=>e(nn,{segment:v})}),b!=null&&b.message?e(R,{children:b.message}):e(y,{slot:"description",children:"The date at which the key will expire. Optional"})]})})]}),e(w,{paddingStart:"size-200",paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderColor:"dark",borderTopWidth:"thin",children:e(k,{direction:"row",gap:"size-100",justifyContent:"end",children:e(D,{variant:l?"primary":"default",type:"submit",size:"S",isDisabled:!c||a,children:a?"Creating...":"Create Key"})})})]})})}function is(n){var u;const{theme:a}=W(),{jsonSchema:t,optionalLint:i,basicSetup:r,...o}=n,l=a==="light"?Ye:Je,c=(u=n.value)==null?void 0:u.length,d=!i||c&&c>0,g=h.useMemo(()=>{const p=[Ue.json(),fn.lineWrapping,Ba.of([...Za.filter(f=>f.key!=="Mod-Enter")])];return d&&p.push(an(Ue.jsonParseLinter())),t&&p.push(an(eo(),{needsRefresh:Jr}),Ue.jsonLanguage.data.of({autocomplete:no()}),ao(to()),io(t)),p},[t,d]);return e(e1,{value:n.value,extensions:g,editable:!0,theme:l,basicSetup:{...r,defaultKeymap:!1},...o})}function Pt(n){const{theme:a}=W(),t=a==="light"?Ye:Je;return e(e1,{value:n.value,extensions:[Ue.json(),fn.lineWrapping,an(Ue.jsonParseLinter())],editable:!1,theme:t,...n,basicSetup:{lineNumbers:!0,foldGutter:!0,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1}})}function rs(n){const{theme:a}=W(),t=a==="light"?Ye:Je,{basicSetup:i={}}=n,r=h.useMemo(()=>({lineNumbers:!1,foldGutter:!0,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1,...i}),[i]);return e(e1,{value:n.value,extensions:[ro()],editable:!1,theme:t,...n,basicSetup:r})}const Ot=m`
1859
+ `,children:[e(O,{children:"Expires At"}),e(en,{children:v=>e(nn,{segment:v})}),b!=null&&b.message?e(R,{children:b.message}):e(y,{slot:"description",children:"The date at which the key will expire. Optional"})]})})]}),e(w,{paddingStart:"size-200",paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderColor:"dark",borderTopWidth:"thin",children:e(k,{direction:"row",gap:"size-100",justifyContent:"end",children:e(D,{variant:l?"primary":"default",type:"submit",size:"S",isDisabled:!c||a,children:a?"Creating...":"Create Key"})})})]})})}function is(n){var u;const{theme:a}=W(),{jsonSchema:t,optionalLint:i,basicSetup:r,...o}=n,l=a==="light"?Ye:Je,c=(u=n.value)==null?void 0:u.length,d=!i||c&&c>0,g=p.useMemo(()=>{const h=[Ue.json(),fn.lineWrapping,Ba.of([...Za.filter(f=>f.key!=="Mod-Enter")])];return d&&h.push(an(Ue.jsonParseLinter())),t&&h.push(an(eo(),{needsRefresh:Jr}),Ue.jsonLanguage.data.of({autocomplete:no()}),ao(to()),io(t)),h},[t,d]);return e(e1,{value:n.value,extensions:g,editable:!0,theme:l,basicSetup:{...r,defaultKeymap:!1},...o})}function Pt(n){const{theme:a}=W(),t=a==="light"?Ye:Je;return e(e1,{value:n.value,extensions:[Ue.json(),fn.lineWrapping,an(Ue.jsonParseLinter())],editable:!1,theme:t,...n,basicSetup:{lineNumbers:!0,foldGutter:!0,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1}})}function rs(n){const{theme:a}=W(),t=a==="light"?Ye:Je,{basicSetup:i={}}=n,r=p.useMemo(()=>({lineNumbers:!1,foldGutter:!0,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1,...i}),[i]);return e(e1,{value:n.value,extensions:[ro()],editable:!1,theme:t,...n,basicSetup:r})}const Ot=m`
1860
1860
  position: relative;
1861
1861
  --code-block-min-height: 40px;
1862
1862
  min-height: var(--code-block-min-height);
@@ -1884,7 +1884,7 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1884
1884
  right: var(--ac-global-dimension-size-100);
1885
1885
  z-index: 1;
1886
1886
  }
1887
- `;function ae(n){const{value:a}=n;return s("div",{className:"python-code-block",css:Ot,children:[e(In,{text:a}),e(rs,{value:a})]})}function Y({children:n,...a}){return e(w,{borderColor:"light",borderWidth:"thin",borderRadius:"small",...a,children:n})}function os(n){const{theme:a}=W(),t=a==="light"?Ye:Je,{basicSetup:i}=n,r=h.useMemo(()=>({lineNumbers:!1,foldGutter:!0,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1,...i}),[i]);return e(e1,{value:n.value,extensions:[oo({typescript:!0})],editable:!1,theme:t,...n,basicSetup:r})}const ls=m`
1887
+ `;function ae(n){const{value:a}=n;return s("div",{className:"python-code-block",css:Ot,children:[e(In,{text:a}),e(rs,{value:a})]})}function Y({children:n,...a}){return e(w,{borderColor:"light",borderWidth:"thin",borderRadius:"small",...a,children:n})}function os(n){const{theme:a}=W(),t=a==="light"?Ye:Je,{basicSetup:i}=n,r=p.useMemo(()=>({lineNumbers:!1,foldGutter:!0,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1,...i}),[i]);return e(e1,{value:n.value,extensions:[oo({typescript:!0})],editable:!1,theme:t,...n,basicSetup:r})}const ls=m`
1888
1888
  &.is-hovered {
1889
1889
  border: 1px solid var(--ac-global-input-field-border-color-active);
1890
1890
  }
@@ -1906,11 +1906,11 @@ import{r as h,R as U,j as e,u as dn,a as Te,e as r1,s as P1,b as O1,c as Be,d as
1906
1906
  outline: none;
1907
1907
  }
1908
1908
  transition: all 0.2s ease-in-out;
1909
- `;function ss({children:n,validationState:a,...t}){const[i,r]=h.useState(!1),[o,l]=h.useState(!1),c=a==="invalid";return e(Rr,{...t,validationState:c?"invalid":"valid",children:e("div",{className:X("json-editor-wrap",{"is-hovered":o,"is-focused":i,"is-invalid":c}),onFocus:()=>r(!0),onBlur:()=>r(!1),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),css:ls,children:n})})}const cs=["Python","TypeScript"];function ds(n){return typeof n=="string"&&cs.includes(n)}function U4({language:n,onChange:a,size:t}){return s(i1,{size:t,selectedKeys:[n],"aria-label":"Code Language",onSelectionChange:i=>{if(i.size===0)return;const r=i.keys().next().value;if(ds(r))a(r);else throw new Error(`Unknown language: ${r}`)},children:[e(ie,{"aria-label":"Python",id:"Python",children:"Python"}),e(ie,{"aria-label":"TypeScript",id:"TypeScript",children:"TypeScript"})]})}function W4(n){const{jwt:a}=n;return s(pe,{title:"New API Key Created",isDismissable:!0,size:"M",children:[e(t1,{variant:"success",banner:!0,children:"You have successfully created a new API key. The API key will only be displayed once below. Please copy and save it in a secure location."}),s("div",{css:m`
1909
+ `;function ss({children:n,validationState:a,...t}){const[i,r]=p.useState(!1),[o,l]=p.useState(!1),c=a==="invalid";return e(Rr,{...t,validationState:c?"invalid":"valid",children:e("div",{className:X("json-editor-wrap",{"is-hovered":o,"is-focused":i,"is-invalid":c}),onFocus:()=>r(!0),onBlur:()=>r(!1),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),css:ls,children:n})})}const cs=["Python","TypeScript"];function ds(n){return typeof n=="string"&&cs.includes(n)}function U4({language:n,onChange:a,size:t}){return s(i1,{size:t,selectedKeys:[n],"aria-label":"Code Language",onSelectionChange:i=>{if(i.size===0)return;const r=i.keys().next().value;if(ds(r))a(r);else throw new Error(`Unknown language: ${r}`)},children:[e(ie,{"aria-label":"Python",id:"Python",children:"Python"}),e(ie,{"aria-label":"TypeScript",id:"TypeScript",children:"TypeScript"})]})}function W4(n){const{jwt:a}=n;return s(fe,{title:"New API Key Created",isDismissable:!0,size:"M",children:[e(t1,{variant:"success",banner:!0,children:"You have successfully created a new API key. The API key will only be displayed once below. Please copy and save it in a secure location."}),s("div",{css:m`
1910
1910
  .ac-field {
1911
1911
  width: 100%;
1912
1912
  }
1913
- `,children:[e(w,{padding:"size-200",children:s(k,{direction:"row",gap:"size-100",alignItems:"end",children:[s($,{isReadOnly:!0,value:a,children:[e(O,{children:"API Key"}),e(H,{})]}),e(In,{text:a,size:"M"})]})}),s(w,{padding:"size-200",borderTopColor:"light",borderTopWidth:"thin",children:[e(B,{level:2,weight:"heavy",children:"How to Use the API Key"}),e(w,{paddingBottom:"size-100",paddingTop:"size-100",children:e(y,{children:"When interacting with Phoenix clients and OTEL SDKs, set the environment variable"})}),e(Y,{children:e(ae,{value:`PHOENIX_API_KEY=${a}`})}),e(w,{paddingBottom:"size-100",paddingTop:"size-100",children:e(y,{children:"When using OpenTelemetry SDKs pass the API key in the headers"})}),e(Y,{children:e(ae,{value:`OTEL_EXPORTER_OTLP_HEADERS='Authorization=Bearer ${a}'`})}),e(w,{paddingBottom:"size-100",paddingTop:"size-100",children:s(y,{children:["When using the Phoenix REST and GraphQL APIs, pass the API key as a"," ",e(G,{href:"https://swagger.io/docs/specification/authentication/bearer-authentication/",children:"bearer token"}),"."]})}),e(Y,{children:e(ae,{value:`Authorization: Bearer ${a}`})})]})]})]})}function Q4({handleDelete:n}){const[a,t]=h.useState(null);return s(K,{children:[e(D,{variant:"danger",size:"S",leadingVisual:e(M,{svg:e(I1,{})}),"aria-label":"Delete System Key",onPress:()=>{t(s(pe,{title:"Delete API Key",children:[e(w,{padding:"size-200",children:e(y,{color:"danger",children:"Are you sure you want to delete this key? This cannot be undone and will disable all uses of this key."})}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:e(k,{direction:"row",justifyContent:"end",children:e(D,{variant:"danger",onPress:()=>{n(),t(null)},children:"Delete Key"})})})]}))}}),e(y1,{isDismissable:!0,onDismiss:()=>{t(null)},children:a})]})}const Ft=function(){var n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ViewerContextRefetchQuery",selections:[{args:null,kind:"FragmentSpread",name:"ViewerContext_viewer"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"ViewerContextRefetchQuery",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"viewer",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profilePictureUrl",storageKey:null},{alias:null,args:null,concreteType:"UserRole",kind:"LinkedField",name:"role",plural:!1,selections:[a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authMethod",storageKey:null},{alias:null,args:null,concreteType:"UserApiKey",kind:"LinkedField",name:"apiKeys",plural:!0,selections:[n,a,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiresAt",storageKey:null}],storageKey:null}],storageKey:null}]},params:{cacheID:"12e359dfec5f96fcfcbeff2e8110b80f",id:null,metadata:{},name:"ViewerContextRefetchQuery",operationKind:"query",text:`query ViewerContextRefetchQuery {
1913
+ `,children:[e(w,{padding:"size-200",children:s(k,{direction:"row",gap:"size-100",alignItems:"end",children:[s($,{isReadOnly:!0,value:a,children:[e(O,{children:"API Key"}),e(H,{})]}),e(In,{text:a,size:"M"})]})}),s(w,{padding:"size-200",borderTopColor:"light",borderTopWidth:"thin",children:[e(B,{level:2,weight:"heavy",children:"How to Use the API Key"}),e(w,{paddingBottom:"size-100",paddingTop:"size-100",children:e(y,{children:"When interacting with Phoenix clients and OTEL SDKs, set the environment variable"})}),e(Y,{children:e(ae,{value:`PHOENIX_API_KEY=${a}`})}),e(w,{paddingBottom:"size-100",paddingTop:"size-100",children:e(y,{children:"When using OpenTelemetry SDKs pass the API key in the headers"})}),e(Y,{children:e(ae,{value:`OTEL_EXPORTER_OTLP_HEADERS='Authorization=Bearer ${a}'`})}),e(w,{paddingBottom:"size-100",paddingTop:"size-100",children:s(y,{children:["When using the Phoenix REST and GraphQL APIs, pass the API key as a"," ",e(G,{href:"https://swagger.io/docs/specification/authentication/bearer-authentication/",children:"bearer token"}),"."]})}),e(Y,{children:e(ae,{value:`Authorization: Bearer ${a}`})})]})]})]})}function Q4({handleDelete:n}){const[a,t]=p.useState(null);return s(K,{children:[e(D,{variant:"danger",size:"S",leadingVisual:e(M,{svg:e(I1,{})}),"aria-label":"Delete System Key",onPress:()=>{t(s(fe,{title:"Delete API Key",children:[e(w,{padding:"size-200",children:e(y,{color:"danger",children:"Are you sure you want to delete this key? This cannot be undone and will disable all uses of this key."})}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:e(k,{direction:"row",justifyContent:"end",children:e(D,{variant:"danger",onPress:()=>{n(),t(null)},children:"Delete Key"})})})]}))}}),e(y1,{isDismissable:!0,onDismiss:()=>{t(null)},children:a})]})}const Ft=function(){var n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ViewerContextRefetchQuery",selections:[{args:null,kind:"FragmentSpread",name:"ViewerContext_viewer"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"ViewerContextRefetchQuery",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"viewer",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profilePictureUrl",storageKey:null},{alias:null,args:null,concreteType:"UserRole",kind:"LinkedField",name:"role",plural:!1,selections:[a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authMethod",storageKey:null},{alias:null,args:null,concreteType:"UserApiKey",kind:"LinkedField",name:"apiKeys",plural:!0,selections:[n,a,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiresAt",storageKey:null}],storageKey:null}],storageKey:null}]},params:{cacheID:"12e359dfec5f96fcfcbeff2e8110b80f",id:null,metadata:{},name:"ViewerContextRefetchQuery",operationKind:"query",text:`query ViewerContextRefetchQuery {
1914
1914
  ...ViewerContext_viewer
1915
1915
  }
1916
1916
 
@@ -1938,17 +1938,17 @@ fragment ViewerContext_viewer on Query {
1938
1938
  ...APIKeysTableFragment
1939
1939
  }
1940
1940
  }
1941
- `}}}();Ft.hash="bec0ae2a629134a5b9afe1846eaec2c9";const _t={argumentDefinitions:[],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:[],operation:Ft}},name:"ViewerContext_viewer",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profilePictureUrl",storageKey:null},{alias:null,args:null,concreteType:"UserRole",kind:"LinkedField",name:"role",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authMethod",storageKey:null},{args:null,kind:"FragmentSpread",name:"APIKeysTableFragment"}],storageKey:null}],type:"Query",abstractKey:null};_t.hash="bec0ae2a629134a5b9afe1846eaec2c9";const Nt=U.createContext({viewer:null,refetchViewer:()=>{}});function Rt(){const n=U.useContext(Nt);if(n==null)throw new Error("useViewer must be used within a ViewerProvider");return n}function q4({query:n,children:a}){const[t,i]=N.useRefetchableFragment(_t,n),r=()=>{h.startTransition(()=>{i({},{fetchPolicy:"network-only"})})};return e(Nt.Provider,{value:{viewer:t.viewer,refetchViewer:r},children:a})}function us(n){const{fallback:a=null,children:t}=n,{viewer:i}=Rt();return i?t:e(K,{children:a})}function $t(n){const{fallback:a=null,children:t}=n,{viewer:i}=Rt();return!i||i.role.name!=="ADMIN"?e(K,{children:a}):t}function gs(n){const{message:a="No Data"}=n;return e("tbody",{className:"is-empty",children:e("tr",{children:e("td",{colSpan:100,css:m`
1941
+ `}}}();Ft.hash="bec0ae2a629134a5b9afe1846eaec2c9";const _t={argumentDefinitions:[],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:[],operation:Ft}},name:"ViewerContext_viewer",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profilePictureUrl",storageKey:null},{alias:null,args:null,concreteType:"UserRole",kind:"LinkedField",name:"role",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"authMethod",storageKey:null},{args:null,kind:"FragmentSpread",name:"APIKeysTableFragment"}],storageKey:null}],type:"Query",abstractKey:null};_t.hash="bec0ae2a629134a5b9afe1846eaec2c9";const Nt=U.createContext({viewer:null,refetchViewer:()=>{}});function Rt(){const n=U.useContext(Nt);if(n==null)throw new Error("useViewer must be used within a ViewerProvider");return n}function q4({query:n,children:a}){const[t,i]=N.useRefetchableFragment(_t,n),r=()=>{p.startTransition(()=>{i({},{fetchPolicy:"network-only"})})};return e(Nt.Provider,{value:{viewer:t.viewer,refetchViewer:r},children:a})}function us(n){const{fallback:a=null,children:t}=n,{viewer:i}=Rt();return i?t:e(K,{children:a})}function $t(n){const{fallback:a=null,children:t}=n,{viewer:i}=Rt();return!i||i.role.name!=="ADMIN"?e(K,{children:a}):t}function gs(n){const{message:a="No Data"}=n;return e("tbody",{className:"is-empty",children:e("tr",{children:e("td",{colSpan:100,css:m`
1942
1942
  text-align: center;
1943
1943
  padding: var(--ac-global-dimension-size-300)
1944
1944
  var(--ac-global-dimension-size-300) !important;
1945
- `,children:a})})})}function Ht({columns:n,data:a}){const t=or({columns:n,data:a,getCoreRowModel:cr(),getPaginationRowModel:sr(),getSortedRowModel:lr()}),i=t.getRowModel().rows,o=i.length>0?e("tbody",{children:i.map(l=>e("tr",{children:l.getVisibleCells().map(c=>e("td",{children:Hn(c.column.columnDef.cell,c.getContext())},c.id))},l.id))}):e(gs,{});return s(K,{children:[s("table",{css:Dt,children:[e("thead",{children:t.getHeaderGroups().map(l=>e("tr",{children:l.headers.map(c=>e("th",{colSpan:c.colSpan,children:c.isPlaceholder?null:e("div",{children:Hn(c.column.columnDef.header,c.getContext())})},c.id))},l.id))}),o]}),s("div",{css:ts,children:[e(D,{variant:"default",size:"S",onPress:t.previousPage,isDisabled:!t.getCanPreviousPage(),"aria-label":"Previous Page",leadingVisual:e(M,{svg:e(n0,{})})}),e(D,{size:"S",onPress:t.nextPage,isDisabled:!t.getCanNextPage(),"aria-label":"Next Page",leadingVisual:e(M,{svg:e(En,{})})})]})]})}function Kt(n){return Math.abs(n)<1e6?Ae(",")(n):Ae("0.2s")(n)}function Oe(n){const a=Math.abs(n);return a===0?"0.00":a<.01?Ae(".2e")(n):a<1e3?Ae("0.2f")(n):Ae("0.2s")(n)}function ms(n){return Ae(".2f")(n)+"%"}function sn(n){return Number.isInteger(n)?Kt(n):Oe(n)}function E1(n){return a=>typeof a!="number"?"--":n(a)}const ps=E1(Kt),Bt=E1(Oe),ga=E1(sn),hs=E1(ms);function Ge({getValue:n}){const a=n();if(!bn(a))throw new Error("IntCell only supports number or null values.");return e("span",{title:a!=null?String(a):"",children:Bt(a)})}const fs=m`
1945
+ `,children:a})})})}function Ht({columns:n,data:a}){const t=or({columns:n,data:a,getCoreRowModel:cr(),getPaginationRowModel:sr(),getSortedRowModel:lr()}),i=t.getRowModel().rows,o=i.length>0?e("tbody",{children:i.map(l=>e("tr",{children:l.getVisibleCells().map(c=>e("td",{children:Hn(c.column.columnDef.cell,c.getContext())},c.id))},l.id))}):e(gs,{});return s(K,{children:[s("table",{css:Dt,children:[e("thead",{children:t.getHeaderGroups().map(l=>e("tr",{children:l.headers.map(c=>e("th",{colSpan:c.colSpan,children:c.isPlaceholder?null:e("div",{children:Hn(c.column.columnDef.header,c.getContext())})},c.id))},l.id))}),o]}),s("div",{css:ts,children:[e(D,{variant:"default",size:"S",onPress:t.previousPage,isDisabled:!t.getCanPreviousPage(),"aria-label":"Previous Page",leadingVisual:e(M,{svg:e(n0,{})})}),e(D,{size:"S",onPress:t.nextPage,isDisabled:!t.getCanNextPage(),"aria-label":"Next Page",leadingVisual:e(M,{svg:e(En,{})})})]})]})}function Kt(n){return Math.abs(n)<1e6?Ee(",")(n):Ee("0.2s")(n)}function Fe(n){const a=Math.abs(n);return a===0?"0.00":a<.01?Ee(".2e")(n):a<1e3?Ee("0.2f")(n):Ee("0.2s")(n)}function ms(n){return Ee(".2f")(n)+"%"}function sn(n){return Number.isInteger(n)?Kt(n):Fe(n)}function E1(n){return a=>typeof a!="number"?"--":n(a)}const ps=E1(Kt),Bt=E1(Fe),ga=E1(sn),hs=E1(ms);function Ge({getValue:n}){const a=n();if(!bn(a))throw new Error("IntCell only supports number or null values.");return e("span",{title:a!=null?String(a):"",children:Bt(a)})}const fs=m`
1946
1946
  float: right;
1947
1947
  `;function bs({getValue:n}){const a=n();if(!bn(a))throw new Error("IntCell only supports number or null values.");return e("span",{title:a!=null?String(a):"",css:fs,children:ps(a)})}function vs({getValue:n}){const a=n();if(!bn(a))throw new Error("IntCell only supports number or null values.");return e("span",{title:a!=null?String(a):"",children:hs(a)})}const ma=100;function Cs(n){return n.length>ma?`${n.slice(0,ma)}...`:n}function X4({getValue:n}){const a=n(),t=a!=null&&typeof a=="string"?Cs(a):"--";return e("span",{children:t})}function Y4({getValue:n}){const a=n(),t=a!=null&&typeof a=="string"?a:"--";return e("pre",{style:{whiteSpace:"pre-wrap"},children:t})}const ys=m`
1948
1948
  margin: 0;
1949
1949
  white-space: pre-wrap;
1950
1950
  word-wrap: break-word;
1951
- `;function pa(n,a){return n.length>a?`${n.slice(0,a)}...`:n}function Ls({json:n,maxLength:a,space:t=0,disableTitle:i=!1,collapseSingleKey:r=!0}){const o=typeof a=="number",l=h.useMemo(()=>JSON.stringify(n,null,t),[n,t]),c=h.useMemo(()=>JSON.stringify(n,null,2),[n]),d=i?void 0:c;if(!J(n))return console.warn("JSONText component received a non-object value",n),e("span",{title:d,children:String(n)});const g=n;if(Object.keys(g).length===0)return e("span",{title:d,children:"--"});if(Object.keys(g).length===1&&r){const b=Object.keys(g)[0],v=g[b];if(typeof v=="string"){const L=o?pa(v,a):v;return e("span",{title:d,children:L})}}const u=o?pa(l,a):l;return e(o?"span":"pre",{title:d,css:o?void 0:ys,children:u})}const ws=100;function J4({getValue:n}){const a=n();return e(Ls,{json:a,maxLength:ws})}const xs=m`
1951
+ `;function pa(n,a){return n.length>a?`${n.slice(0,a)}...`:n}function Ls({json:n,maxLength:a,space:t=0,disableTitle:i=!1,collapseSingleKey:r=!0}){const o=typeof a=="number",l=p.useMemo(()=>JSON.stringify(n,null,t),[n,t]),c=p.useMemo(()=>JSON.stringify(n,null,2),[n]),d=i?void 0:c;if(!J(n))return console.warn("JSONText component received a non-object value",n),e("span",{title:d,children:String(n)});const g=n;if(Object.keys(g).length===0)return e("span",{title:d,children:"--"});if(Object.keys(g).length===1&&r){const b=Object.keys(g)[0],v=g[b];if(typeof v=="string"){const L=o?pa(v,a):v;return e("span",{title:d,children:L})}}const u=o?pa(l,a):l;return e(o?"span":"pre",{title:d,css:o?void 0:ys,children:u})}const ws=100;function J4({getValue:n}){const a=n();return e(Ls,{json:a,maxLength:ws})}const xs=m`
1952
1952
  position: relative;
1953
1953
  height: 100%;
1954
1954
  min-height: 100%;
@@ -2022,11 +2022,11 @@ fragment ViewerContext_viewer on Query {
2022
2022
  `};function Ds({color:n,shape:a="line"}){return e("div",{css:m(Vs(a),m`
2023
2023
  background-color: ${n};
2024
2024
  flex: none;
2025
- `)})}const l9={dataKey:"timestamp",stroke:"var(--ac-global-colo-grey-400)",style:{fill:"var(--ac-global-text-color-700)"},scale:"time",type:"number",domain:["auto","auto"],padding:"gap"},s9={stroke:"var(--ac-global-color-grey-900)",label:{value:"▼",position:"top",style:{fill:"#fabe32",fontSize:"var(--ac-global-font-size-xs)"}}},c9={cursor:{fill:"var(--ac-global-color-grey-300)"}},Qe=60,qe=Qe*24,U1=2*qe;function d9(n){const{start:a,end:t}=n,i=Math.floor((t.valueOf()-a.valueOf())/1e3/60/60);return i<=1?{evaluationWindowMinutes:1,samplingIntervalMinutes:1}:i<=24?{evaluationWindowMinutes:Qe,samplingIntervalMinutes:Qe}:{evaluationWindowMinutes:qe,samplingIntervalMinutes:qe}}function u9(n){const{start:a,end:t}=n,i=Math.floor((t.valueOf()-a.valueOf())/1e3/60/60);return i<=1?{evaluationWindowMinutes:U1,samplingIntervalMinutes:1}:i<=24?{evaluationWindowMinutes:U1,samplingIntervalMinutes:Qe}:{evaluationWindowMinutes:U1,samplingIntervalMinutes:qe}}function Ps(n){let a;return n<Qe?a="%H:%M %p":n<qe?a="%x %H:%M %p":a="%-m/%-d",a}function g9(n){const a=n.samplingIntervalMinutes;return h.useMemo(()=>C1(Ps(a)),[a])}const Os=Object.freeze({blue100:"#A4C7E0",blue200:"#7EB0D2",blue300:"#5899C5",blue400:"#3C80AE",blue500:"#2F6488",orange100:"#FECC95",orange200:"#FDB462",orange300:"#FC9C31",orange400:"#F78403",orange500:"#C46903",purple100:"#BEBADA",purple200:"#9E98C8",purple300:"#7F77B6",purple400:"#6157A3",purple500:"#4D4581",pink100:"#FCCDE5",pink200:"#F99FCD",pink300:"#F66FB4",pink400:"#F33F9B",pink500:"#F10E82",gray100:"#f0f0f0",gray200:"#d9d9d9",gray300:"#bdbdbd",gray400:"#969696",gray500:"#737373",gray600:"#525252",gray700:"#252525",default:"#ffffff",primary:"#9efcfd",reference:"#baa1f9"}),Fs=Object.freeze({default:"#000000",blue100:"#2F6488",blue200:"#3C80AE",blue300:"#5899C5",blue400:"#7EB0D2",blue500:"#A4C7E0",orange100:"#C46903",orange200:"#F78403",orange300:"#FC9C31",orange400:"#FDB462",orange500:"#FECC95",purple100:"#4D4581",purple200:"#6157A3",purple300:"#7F77B6",purple400:"#9E98C8",purple500:"#BEBADA",pink100:"#F10E82",pink200:"#F33F9B",pink300:"#F66FB4",pink400:"#F99FCD",pink500:"#FCCDE5",gray100:"#252525",gray200:"#525252",gray300:"#737373",gray400:"#969696",gray500:"#bdbdbd",gray600:"#d9d9d9",gray700:"#f0f0f0",primary:"#00add0",reference:"#4500d9"}),m9=()=>{const{theme:n}=W();return h.useMemo(()=>n==="dark"?Os:Fs,[n])};function p9(n){switch(n.__typename){case"NominalBin":return n.name;case"IntervalBin":return`${sn(n.range.start)} - ${sn(n.range.end)}`;case"MissingValueBin":return"(empty)";case"%other":throw new Error("Unexpected bin type %other");default:I()}}var V1=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n))(V1||{});function _s(n){return n.toLocaleLowerCase()}function Ns(n){return typeof n=="string"&&n in V1}const Rs=24*60*60*1e3,h9=30*Rs,W1=2147483647,f9=[{name:"production",description:"The version deployed to production"},{name:"staging",description:"The version deployed to staging"},{name:"development",description:"The version deployed for development"}],$s=Object.values(V1),Hs=m`
2025
+ `)})}const l9={dataKey:"timestamp",stroke:"var(--ac-global-colo-grey-400)",style:{fill:"var(--ac-global-text-color-700)"},scale:"time",type:"number",domain:["auto","auto"],padding:"gap"},s9={stroke:"var(--ac-global-color-grey-900)",label:{value:"▼",position:"top",style:{fill:"#fabe32",fontSize:"var(--ac-global-font-size-xs)"}}},c9={cursor:{fill:"var(--ac-global-color-grey-300)"}},Qe=60,qe=Qe*24,U1=2*qe;function d9(n){const{start:a,end:t}=n,i=Math.floor((t.valueOf()-a.valueOf())/1e3/60/60);return i<=1?{evaluationWindowMinutes:1,samplingIntervalMinutes:1}:i<=24?{evaluationWindowMinutes:Qe,samplingIntervalMinutes:Qe}:{evaluationWindowMinutes:qe,samplingIntervalMinutes:qe}}function u9(n){const{start:a,end:t}=n,i=Math.floor((t.valueOf()-a.valueOf())/1e3/60/60);return i<=1?{evaluationWindowMinutes:U1,samplingIntervalMinutes:1}:i<=24?{evaluationWindowMinutes:U1,samplingIntervalMinutes:Qe}:{evaluationWindowMinutes:U1,samplingIntervalMinutes:qe}}function Ps(n){let a;return n<Qe?a="%H:%M %p":n<qe?a="%x %H:%M %p":a="%-m/%-d",a}function g9(n){const a=n.samplingIntervalMinutes;return p.useMemo(()=>C1(Ps(a)),[a])}const Os=Object.freeze({blue100:"#A4C7E0",blue200:"#7EB0D2",blue300:"#5899C5",blue400:"#3C80AE",blue500:"#2F6488",orange100:"#FECC95",orange200:"#FDB462",orange300:"#FC9C31",orange400:"#F78403",orange500:"#C46903",purple100:"#BEBADA",purple200:"#9E98C8",purple300:"#7F77B6",purple400:"#6157A3",purple500:"#4D4581",pink100:"#FCCDE5",pink200:"#F99FCD",pink300:"#F66FB4",pink400:"#F33F9B",pink500:"#F10E82",gray100:"#f0f0f0",gray200:"#d9d9d9",gray300:"#bdbdbd",gray400:"#969696",gray500:"#737373",gray600:"#525252",gray700:"#252525",default:"#ffffff",primary:"#9efcfd",reference:"#baa1f9"}),Fs=Object.freeze({default:"#000000",blue100:"#2F6488",blue200:"#3C80AE",blue300:"#5899C5",blue400:"#7EB0D2",blue500:"#A4C7E0",orange100:"#C46903",orange200:"#F78403",orange300:"#FC9C31",orange400:"#FDB462",orange500:"#FECC95",purple100:"#4D4581",purple200:"#6157A3",purple300:"#7F77B6",purple400:"#9E98C8",purple500:"#BEBADA",pink100:"#F10E82",pink200:"#F33F9B",pink300:"#F66FB4",pink400:"#F99FCD",pink500:"#FCCDE5",gray100:"#252525",gray200:"#525252",gray300:"#737373",gray400:"#969696",gray500:"#bdbdbd",gray600:"#d9d9d9",gray700:"#f0f0f0",primary:"#00add0",reference:"#4500d9"}),m9=()=>{const{theme:n}=W();return p.useMemo(()=>n==="dark"?Os:Fs,[n])};function p9(n){switch(n.__typename){case"NominalBin":return n.name;case"IntervalBin":return`${sn(n.range.start)} - ${sn(n.range.end)}`;case"MissingValueBin":return"(empty)";case"%other":throw new Error("Unexpected bin type %other");default:I()}}var V1=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n))(V1||{});function _s(n){return n.toLocaleLowerCase()}function Ns(n){return typeof n=="string"&&n in V1}const Rs=24*60*60*1e3,h9=30*Rs,W1=2147483647,f9=[{name:"production",description:"The version deployed to production"},{name:"staging",description:"The version deployed to staging"},{name:"development",description:"The version deployed for development"}],$s=Object.values(V1),Hs=m`
2026
2026
  .ac-field-label {
2027
2027
  display: none;
2028
2028
  }
2029
- `;function Ks({onChange:n,role:a,includeLabel:t=!0,...i}){return e(Ne,{css:t?void 0:Hs,label:"Role",className:"role-picker",defaultSelectedKey:a??void 0,"aria-label":"User Role",onSelectionChange:r=>{Ns(r)&&n(r)},width:"100%",...i,children:$s.map(r=>e(F,{children:_s(r)},r))})}const o1=4;function b9({onSubmit:n,email:a,username:t,password:i,role:r,isSubmitting:o}){const{control:l,handleSubmit:c,formState:{isDirty:d}}=Se({defaultValues:{email:a??"",username:t??"",password:i??"",confirmPassword:"",role:r??V1.MEMBER}});return e("div",{css:m`
2029
+ `;function Ks({onChange:n,role:a,includeLabel:t=!0,...i}){return e(Re,{css:t?void 0:Hs,label:"Role",className:"role-picker",defaultSelectedKey:a??void 0,"aria-label":"User Role",onSelectionChange:r=>{Ns(r)&&n(r)},width:"100%",...i,children:$s.map(r=>e(F,{children:_s(r)},r))})}const o1=4;function b9({onSubmit:n,email:a,username:t,password:i,role:r,isSubmitting:o}){const{control:l,handleSubmit:c,formState:{isDirty:d}}=Me({defaultValues:{email:a??"",username:t??"",password:i??"",confirmPassword:"",role:r??V1.MEMBER}});return e("div",{css:m`
2030
2030
  .role-picker {
2031
2031
  width: 100%;
2032
2032
  .ac-dropdown--picker,
@@ -2034,7 +2034,7 @@ fragment ViewerContext_viewer on Query {
2034
2034
  width: 100%;
2035
2035
  }
2036
2036
  }
2037
- `,children:s(Me,{onSubmit:c(n),children:[e(w,{padding:"size-200",children:s(k,{direction:"column",gap:"size-100",children:[e(_,{name:"email",control:l,rules:{required:"Email is required",pattern:{value:/^[^@\s]+@[^@\s]+[.][^@\s]+$/,message:"Invalid email format"}},render:({field:{name:g,onChange:u,onBlur:p,value:f},fieldState:{invalid:b,error:v}})=>s($,{type:"email",name:g,isRequired:!0,onChange:u,isInvalid:b,onBlur:p,value:f,children:[e(O,{children:"Email"}),e(H,{}),v?e(R,{children:v==null?void 0:v.message}):e(y,{slot:"description",children:"The user's email address. Must be unique."})]})}),e(_,{name:"username",control:l,rules:{required:"Email is required"},render:({field:{name:g,onChange:u,onBlur:p,value:f},fieldState:{invalid:b,error:v}})=>s($,{name:g,isRequired:!0,onChange:u,isInvalid:b,onBlur:p,value:f,children:[e(O,{children:"Username"}),e(H,{}),v?e(R,{children:v==null?void 0:v.message}):e(y,{slot:"description",children:"A unique username."})]})}),e(_,{name:"password",control:l,rules:{required:"Password is required",minLength:{value:o1,message:`Password must be at least ${o1} characters`}},render:({field:{name:g,onChange:u,onBlur:p,value:f},fieldState:{invalid:b,error:v}})=>s($,{type:"password",isRequired:!0,name:g,isInvalid:b,onChange:u,onBlur:p,defaultValue:f,autoComplete:"new-password",children:[e(O,{children:"Password"}),e(H,{}),v?e(R,{children:v==null?void 0:v.message}):e(y,{slot:"description",children:"Password must be at least 4 characters"})]})}),e(_,{name:"confirmPassword",control:l,rules:{required:"Please confirm your password",minLength:{value:o1,message:`Password must be at least ${o1} characters`},validate:(g,u)=>g===u.password||"Passwords do not match"},render:({field:{name:g,onChange:u,onBlur:p,value:f},fieldState:{invalid:b,error:v}})=>s($,{isRequired:!0,type:"password",name:g,isInvalid:b,onChange:u,onBlur:p,defaultValue:f??void 0,autoComplete:"new-password",children:[e(O,{children:"Confirm Password"}),e(H,{}),v?e(R,{children:v==null?void 0:v.message}):e(y,{slot:"description",children:"Confirm the new password"})]})}),e(_,{name:"role",control:l,render:({field:{onChange:g,value:u},fieldState:{invalid:p,error:f}})=>e(Ks,{onChange:g,role:u,validationState:p?"invalid":"valid",errorMessage:f==null?void 0:f.message})})]})}),e(w,{paddingStart:"size-200",paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderColor:"dark",borderTopWidth:"thin",children:e(k,{direction:"row",gap:"size-100",justifyContent:"end",children:e(D,{variant:d?"primary":"default",type:"submit",size:"S",isDisabled:o,children:o?"Adding...":"Add User"})})})]})})}const jt=n=>h.useMemo(()=>{const t=n.charCodeAt(0);return Va(t%26/26)},[n]);function v9({name:n,profilePictureUrl:a,size:t=75}){const i=n.length?n[0].toUpperCase():"?",r=jt(n),{theme:o}=W(),l=h.useMemo(()=>m`
2037
+ `,children:s(Te,{onSubmit:c(n),children:[e(w,{padding:"size-200",children:s(k,{direction:"column",gap:"size-100",children:[e(_,{name:"email",control:l,rules:{required:"Email is required",pattern:{value:/^[^@\s]+@[^@\s]+[.][^@\s]+$/,message:"Invalid email format"}},render:({field:{name:g,onChange:u,onBlur:h,value:f},fieldState:{invalid:b,error:v}})=>s($,{type:"email",name:g,isRequired:!0,onChange:u,isInvalid:b,onBlur:h,value:f,children:[e(O,{children:"Email"}),e(H,{}),v?e(R,{children:v==null?void 0:v.message}):e(y,{slot:"description",children:"The user's email address. Must be unique."})]})}),e(_,{name:"username",control:l,rules:{required:"Email is required"},render:({field:{name:g,onChange:u,onBlur:h,value:f},fieldState:{invalid:b,error:v}})=>s($,{name:g,isRequired:!0,onChange:u,isInvalid:b,onBlur:h,value:f,children:[e(O,{children:"Username"}),e(H,{}),v?e(R,{children:v==null?void 0:v.message}):e(y,{slot:"description",children:"A unique username."})]})}),e(_,{name:"password",control:l,rules:{required:"Password is required",minLength:{value:o1,message:`Password must be at least ${o1} characters`}},render:({field:{name:g,onChange:u,onBlur:h,value:f},fieldState:{invalid:b,error:v}})=>s($,{type:"password",isRequired:!0,name:g,isInvalid:b,onChange:u,onBlur:h,defaultValue:f,autoComplete:"new-password",children:[e(O,{children:"Password"}),e(H,{}),v?e(R,{children:v==null?void 0:v.message}):e(y,{slot:"description",children:"Password must be at least 4 characters"})]})}),e(_,{name:"confirmPassword",control:l,rules:{required:"Please confirm your password",minLength:{value:o1,message:`Password must be at least ${o1} characters`},validate:(g,u)=>g===u.password||"Passwords do not match"},render:({field:{name:g,onChange:u,onBlur:h,value:f},fieldState:{invalid:b,error:v}})=>s($,{isRequired:!0,type:"password",name:g,isInvalid:b,onChange:u,onBlur:h,defaultValue:f??void 0,autoComplete:"new-password",children:[e(O,{children:"Confirm Password"}),e(H,{}),v?e(R,{children:v==null?void 0:v.message}):e(y,{slot:"description",children:"Confirm the new password"})]})}),e(_,{name:"role",control:l,render:({field:{onChange:g,value:u},fieldState:{invalid:h,error:f}})=>e(Ks,{onChange:g,role:u,validationState:h?"invalid":"valid",errorMessage:f==null?void 0:f.message})})]})}),e(w,{paddingStart:"size-200",paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderColor:"dark",borderTopWidth:"thin",children:e(k,{direction:"row",gap:"size-100",justifyContent:"end",children:e(D,{variant:d?"primary":"default",type:"submit",size:"S",isDisabled:o,children:o?"Adding...":"Add User"})})})]})})}const jt=n=>p.useMemo(()=>{const t=n.charCodeAt(0);return Va(t%26/26)},[n]);function v9({name:n,profilePictureUrl:a,size:t=75}){const i=n.length?n[0].toUpperCase():"?",r=jt(n),{theme:o}=W(),l=p.useMemo(()=>m`
2038
2038
  width: ${t}px;
2039
2039
  height: ${t}px;
2040
2040
  border-radius: 50%;
@@ -2213,7 +2213,7 @@ fragment ViewerContext_viewer on Query {
2213
2213
  font-size: var(--ac-global-font-size-xl);
2214
2214
  text-decoration: none;
2215
2215
  margin: 0 0 var(--ac-global-dimension-static-size-200) 0;
2216
- `;function Us(n){return s("a",{href:n.href,target:"_blank",css:D1,rel:"noreferrer",children:[n.leadingVisual,e(y,{children:n.text})]})}function C9(){return e(Us,{href:"https://docs.arize.com/phoenix",leadingVisual:e(M,{svg:e(r0,{})}),text:"Documentation"})}function y9(){const{theme:n,setTheme:a}=W(),t=n==="dark";return s("button",{css:D1,onClick:()=>a(t?"light":"dark"),className:"button--reset",children:[e(M,{svg:t?e(C0,{}):e(x0,{})}),e(y,{children:t?"Dark":"Light"})]})}function L9(){return e(un,{to:"/",css:Gs,title:`version: ${window.Config.platformVersion}`,children:e(Bs,{})})}function w9({children:n}){return e("nav",{css:Zs,children:n})}function x9({children:n}){const[a,t]=h.useState(!1);return e("nav",{"data-expanded":a,css:js,onMouseOver:()=>{t(!0)},onMouseOut:()=>{t(!1)},children:n})}function k9(n){return s(dr,{to:n.to,css:D1,children:[n.leadingVisual,e(y,{children:n.text})]})}function S9(n){return s("button",{className:"button--reset",css:D1,onClick:n.onClick,children:[n.leadingVisual,e(y,{children:n.text})]})}function Ws(n){var a;return typeof n.handle=="object"&&typeof((a=n.handle)==null?void 0:a.crumb)=="function"}function M9(){const n=Da(),t=ur().filter(Ws);return e($r,{onAction:i=>{n(t[Number(i)].pathname)},children:t.map((i,r)=>e(F,{children:i.handle.crumb(i.data)},r))})}const Qs={lineNumbers:!0,highlightActiveLine:!1,foldGutter:!1,highlightActiveLineGutter:!1,bracketMatching:!1,defaultKeymap:!1},qs=[fn.lineWrapping,Ba.of([...Za.filter(n=>n.key!=="Mod-Enter")])],T9=({templateFormat:n,defaultValue:a,readOnly:t,...i})=>{const[r,o]=h.useState(()=>a),{theme:l}=W(),c=l==="light"?Ye:Je,d=h.useMemo(()=>{const g=[...qs];switch(n){case ge.FString:g.push(Jo());break;case ge.Mustache:g.push(tl());break;case ge.NONE:break;default:I()}return g},[n]);return h.useEffect(()=>{t&&o(a)},[t,a]),e(e1,{theme:c,extensions:d,basicSetup:Qs,readOnly:t,...i,value:r})},z9=({readOnly:n,children:a})=>e("div",{css:m`
2216
+ `;function Us(n){return s("a",{href:n.href,target:"_blank",css:D1,rel:"noreferrer",children:[n.leadingVisual,e(y,{children:n.text})]})}function C9(){return e(Us,{href:"https://docs.arize.com/phoenix",leadingVisual:e(M,{svg:e(r0,{})}),text:"Documentation"})}function y9(){const{theme:n,setTheme:a}=W(),t=n==="dark";return s("button",{css:D1,onClick:()=>a(t?"light":"dark"),className:"button--reset",children:[e(M,{svg:t?e(C0,{}):e(x0,{})}),e(y,{children:t?"Dark":"Light"})]})}function L9(){return e(un,{to:"/",css:Gs,title:`version: ${window.Config.platformVersion}`,children:e(Bs,{})})}function w9({children:n}){return e("nav",{css:Zs,children:n})}function x9({children:n}){const[a,t]=p.useState(!1);return e("nav",{"data-expanded":a,css:js,onMouseOver:()=>{t(!0)},onMouseOut:()=>{t(!1)},children:n})}function k9(n){return s(dr,{to:n.to,css:D1,children:[n.leadingVisual,e(y,{children:n.text})]})}function S9(n){return s("button",{className:"button--reset",css:D1,onClick:n.onClick,children:[n.leadingVisual,e(y,{children:n.text})]})}function Ws(n){var a;return typeof n.handle=="object"&&typeof((a=n.handle)==null?void 0:a.crumb)=="function"}function M9(){const n=Da(),t=ur().filter(Ws);return e($r,{onAction:i=>{n(t[Number(i)].pathname)},children:t.map((i,r)=>e(F,{children:i.handle.crumb(i.data)},r))})}const Qs={lineNumbers:!0,highlightActiveLine:!1,foldGutter:!1,highlightActiveLineGutter:!1,bracketMatching:!1,defaultKeymap:!1},qs=[fn.lineWrapping,Ba.of([...Za.filter(n=>n.key!=="Mod-Enter")])],T9=({templateFormat:n,defaultValue:a,readOnly:t,...i})=>{const[r,o]=p.useState(()=>a),{theme:l}=W(),c=l==="light"?Ye:Je,d=p.useMemo(()=>{const g=[...qs];switch(n){case pe.FString:g.push(Jo());break;case pe.Mustache:g.push(tl());break;case pe.NONE:break;default:I()}return g},[n]);return p.useEffect(()=>{t&&o(a)},[t,a]),e(e1,{theme:c,extensions:d,basicSetup:Qs,readOnly:t,...i,value:r})},z9=({readOnly:n,children:a})=>e("div",{css:m`
2217
2217
  & .cm-editor,
2218
2218
  & .cm-gutters {
2219
2219
  background-color: ${n?"transparent !important":"auto"};
@@ -2240,7 +2240,7 @@ fragment ViewerContext_viewer on Query {
2240
2240
  text-overflow: ellipsis;
2241
2241
  overflow: hidden;
2242
2242
  white-space: nowrap;
2243
- `,I9=({children:n,maxWidth:a})=>e("div",{css:Xs,style:{maxWidth:a},children:n});function Ys({blocker:n}){return e(w,{padding:"size-100",borderTopColor:"dark",borderTopWidth:"thin",children:s(k,{justifyContent:"end",gap:"size-100",children:[e(D,{onPress:()=>n.reset&&n.reset(),size:"S",children:"Cancel"}),e(D,{variant:"primary",onPress:()=>n.proceed&&n.proceed(),size:"S",children:"Confirm"})]})})}function A9({blocker:n,message:a="Are you sure you want to leave the page? Some changes may not be saved."}){if(n.state==="blocked")return e(y1,{type:"modal",isDismissable:!0,onDismiss:()=>n.reset(),children:s(pe,{title:"Confirm Navigation",size:"S",children:[e(w,{padding:"size-200",children:e(y,{children:a})}),e(Ys,{blocker:n})]})})}const E9=m`
2243
+ `,I9=({children:n,maxWidth:a})=>e("div",{css:Xs,style:{maxWidth:a},children:n});function Ys({blocker:n}){return e(w,{padding:"size-100",borderTopColor:"dark",borderTopWidth:"thin",children:s(k,{justifyContent:"end",gap:"size-100",children:[e(D,{onPress:()=>n.reset&&n.reset(),size:"S",children:"Cancel"}),e(D,{variant:"primary",onPress:()=>n.proceed&&n.proceed(),size:"S",children:"Confirm"})]})})}function A9({blocker:n,message:a="Are you sure you want to leave the page? Some changes may not be saved."}){if(n.state==="blocked")return e(y1,{type:"modal",isDismissable:!0,onDismiss:()=>n.reset(),children:s(fe,{title:"Confirm Navigation",size:"S",children:[e(w,{padding:"size-200",children:e(y,{children:a})}),e(Ys,{blocker:n})]})})}const E9=m`
2244
2244
  transition: 250ms linear all;
2245
2245
  background-color: var(--ac-global-color-grey-200);
2246
2246
  display: flex;
@@ -2331,9 +2331,9 @@ fragment ViewerContext_viewer on Query {
2331
2331
  overflow: hidden;
2332
2332
  text-overflow: ellipsis;
2333
2333
  }
2334
- `,tc=(n,a)=>{switch(a){case"label":return n.label||typeof n.score=="number"&&Oe(n.score)||"n/a";case"score":return typeof n.score=="number"&&Oe(n.score)||n.label||"n/a";default:I()}};function D9({annotation:n,onClick:a,annotationDisplayPreference:t="score"}){const i=typeof a=="function",r=tc(n,t);return e("div",{role:i?"button":void 0,css:m(ac,i&&"cursor: pointer;"),"aria-label":i?"Click to view the annotation trace":`Annotation: ${n.name}`,onClick:o=>{o.stopPropagation(),o.preventDefault(),a&&a()},children:s(k,{direction:"row",gap:"size-100",alignItems:"center",children:[e(nc,{annotationName:n.name}),e("div",{css:ha,children:e(y,{weight:"heavy",size:"XS",color:"inherit",children:n.name})}),e("div",{css:m(ha,m`
2334
+ `,tc=(n,a)=>{switch(a){case"label":return n.label||typeof n.score=="number"&&Fe(n.score)||"n/a";case"score":return typeof n.score=="number"&&Fe(n.score)||n.label||"n/a";default:I()}};function D9({annotation:n,onClick:a,annotationDisplayPreference:t="score"}){const i=typeof a=="function",r=tc(n,t);return e("div",{role:i?"button":void 0,css:m(ac,i&&"cursor: pointer;"),"aria-label":i?"Click to view the annotation trace":`Annotation: ${n.name}`,onClick:o=>{o.stopPropagation(),o.preventDefault(),a&&a()},children:s(k,{direction:"row",gap:"size-100",alignItems:"center",children:[e(nc,{annotationName:n.name}),e("div",{css:ha,children:e(y,{weight:"heavy",size:"XS",color:"inherit",children:n.name})}),e("div",{css:m(ha,m`
2335
2335
  margin-left: var(--ac-global-dimension-100);
2336
- `),children:e(y,{size:"XS",children:r})}),i?e(M,{svg:e(En,{})}):null]})})}function P9({annotation:n,children:a,extra:t,layout:i="vertical",width:r}){return s(re,{delay:500,offset:3,children:[e(ce,{children:a}),e(Hr,{UNSAFE_style:{minWidth:r},children:s(k,{direction:i==="horizontal"?"row":"column",alignItems:"center",children:[s(w,{children:[e(y,{weight:"heavy",color:"inherit",size:"L",elementType:"h3",children:n.name}),s(w,{paddingTop:"size-50",minWidth:"150px",children:[s(k,{direction:"row",justifyContent:"space-between",children:[e(y,{weight:"heavy",color:"inherit",children:"label"}),e(y,{color:"inherit",children:n.label||"--"})]}),s(k,{direction:"row",justifyContent:"space-between",children:[e(y,{weight:"heavy",color:"inherit",children:"score"}),e(y,{color:"inherit",children:Bt(n.score)})]}),n.annotatorKind?s(k,{direction:"row",justifyContent:"space-between",children:[e(y,{weight:"heavy",color:"inherit",children:"annotator kind"}),e(y,{color:"inherit",children:n.annotatorKind})]}):null]}),n.explanation?e(w,{paddingTop:"size-50",children:s(k,{direction:"column",children:[e(y,{weight:"heavy",color:"inherit",children:"explanation"}),e(w,{maxHeight:"300px",overflow:"auto",children:e(y,{color:"inherit",children:n.explanation})})]})}):null]}),t]})})]})}function ic({latencyMs:n,size:a="M",showIcon:t=!0}){const i=h.useMemo(()=>n<3e3?"green-1200":n<8e3?"yellow-1200":n<12e3?"orange-1200":"red-1200",[n]),r=h.useMemo(()=>n<10?Oe(n)+"ms":Oe(n/1e3)+"s",[n]);return s(k,{direction:"row",alignItems:"center",justifyContent:"start",gap:"size-50",className:"latency-text",children:[t?e(y,{color:i,size:a,children:e(M,{svg:e(d0,{}),css:m`
2336
+ `),children:e(y,{size:"XS",children:r})}),i?e(M,{svg:e(En,{})}):null]})})}function P9({annotation:n,children:a,extra:t,layout:i="vertical",width:r}){return s(le,{delay:500,offset:3,children:[e(ue,{children:a}),e(Hr,{UNSAFE_style:{minWidth:r},children:s(k,{direction:i==="horizontal"?"row":"column",alignItems:"center",children:[s(w,{children:[e(y,{weight:"heavy",color:"inherit",size:"L",elementType:"h3",children:n.name}),s(w,{paddingTop:"size-50",minWidth:"150px",children:[s(k,{direction:"row",justifyContent:"space-between",children:[e(y,{weight:"heavy",color:"inherit",children:"label"}),e(y,{color:"inherit",children:n.label||"--"})]}),s(k,{direction:"row",justifyContent:"space-between",children:[e(y,{weight:"heavy",color:"inherit",children:"score"}),e(y,{color:"inherit",children:Bt(n.score)})]}),n.annotatorKind?s(k,{direction:"row",justifyContent:"space-between",children:[e(y,{weight:"heavy",color:"inherit",children:"annotator kind"}),e(y,{color:"inherit",children:n.annotatorKind})]}):null]}),n.explanation?e(w,{paddingTop:"size-50",children:s(k,{direction:"column",children:[e(y,{weight:"heavy",color:"inherit",children:"explanation"}),e(w,{maxHeight:"300px",overflow:"auto",children:e(y,{color:"inherit",children:n.explanation})})]})}):null]}),t]})})]})}function ic({latencyMs:n,size:a="M",showIcon:t=!0}){const i=p.useMemo(()=>n<3e3?"green-1200":n<8e3?"yellow-1200":n<12e3?"orange-1200":"red-1200",[n]),r=p.useMemo(()=>n<10?Fe(n)+"ms":Fe(n/1e3)+"s",[n]);return s(k,{direction:"row",alignItems:"center",justifyContent:"start",gap:"size-50",className:"latency-text",children:[t?e(y,{color:i,size:a,children:e(M,{svg:e(d0,{}),css:m`
2337
2337
  font-size: 1.1em;
2338
2338
  `})}):null,e(y,{color:i,size:a,children:r})]})}const Gt=function(){var n={defaultValue:null,kind:"LocalArgument",name:"description"},a={defaultValue:null,kind:"LocalArgument",name:"metadata"},t={defaultValue:null,kind:"LocalArgument",name:"name"},i=[{alias:null,args:[{fields:[{kind:"Variable",name:"description",variableName:"description"},{kind:"Variable",name:"metadata",variableName:"metadata"},{kind:"Variable",name:"name",variableName:"name"}],kind:"ObjectValue",name:"input"}],concreteType:"DatasetMutationPayload",kind:"LinkedField",name:"createDataset",plural:!1,selections:[{alias:null,args:null,concreteType:"Dataset",kind:"LinkedField",name:"dataset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"metadata",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exampleCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"experimentCount",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[n,a,t],kind:"Fragment",metadata:null,name:"CreateDatasetFormMutation",selections:i,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,n,a],kind:"Operation",name:"CreateDatasetFormMutation",selections:i},params:{cacheID:"6aa615e27e1ccaa5431ba481842b43d0",id:null,metadata:{},name:"CreateDatasetFormMutation",operationKind:"mutation",text:`mutation CreateDatasetFormMutation(
2339
2339
  $name: String!
@@ -2352,7 +2352,7 @@ fragment ViewerContext_viewer on Query {
2352
2352
  }
2353
2353
  }
2354
2354
  }
2355
- `}}}();Gt.hash="5921369d33cc0fb1dffb5d943469a378";function Ut({datasetName:n,datasetDescription:a,datasetMetadata:t,onSubmit:i,isSubmitting:r,submitButtonText:o,formMode:l}){const{control:c,handleSubmit:d,formState:{isDirty:g}}=Se({defaultValues:{name:n??"Dataset "+new Date().toISOString(),description:a??"",metadata:JSON.stringify(t,null,2)??"{}"}});return s(Me,{children:[s(w,{padding:"size-200",children:[e(_,{name:"name",control:c,rules:{required:"Dataset name is required"},render:({field:{onChange:u,onBlur:p,value:f},fieldState:{invalid:b,error:v}})=>s($,{isInvalid:b,onChange:u,onBlur:p,value:f.toString(),children:[e(O,{children:"Dataset Name"}),e(H,{placeholder:"e.x. Golden Dataset"}),v!=null&&v.message?e(R,{children:v.message}):e(y,{slot:"description",children:"The name of the dataset"})]})}),e(_,{name:"description",control:c,render:({field:{onChange:u,onBlur:p,value:f},fieldState:{invalid:b,error:v}})=>s($,{isInvalid:b,onChange:u,onBlur:p,value:f.toString(),children:[e(O,{children:"Description"}),e(mn,{placeholder:"e.x. A golden dataset for structured data extraction"}),v!=null&&v.message?e(R,{children:v.message}):e(y,{slot:"description",children:"The description of the dataset"})]})}),e(_,{name:"metadata",control:c,rules:{validate:u=>dl(u)?!0:"metadata must be a valid JSON object"},render:({field:{onChange:u,onBlur:p,value:f},fieldState:{invalid:b,error:v}})=>e(ss,{validationState:b?"invalid":"valid",label:"metadata",errorMessage:v==null?void 0:v.message,description:"A JSON object containing metadata for the dataset",children:e(is,{value:f,onChange:u,onBlur:p})})})]}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:e(k,{direction:"row",justifyContent:"end",children:e(D,{isDisabled:(l==="edit"?!g:!1)||r,variant:g?"primary":"default",size:"S",onPress:()=>{d(i)()},children:o})})})]})}function rc(n){const{onDatasetCreated:a,onDatasetCreateError:t}=n,[i,r]=N.useMutation(Gt),o=h.useCallback(l=>{i({variables:{...l,metadata:JSON.parse(l.metadata)},onCompleted:c=>{a(c.createDataset.dataset)},updater:c=>{const d=N.ConnectionHandler.getConnectionID("client:root","DatasetPicker__datasets"),u=c.getRootField("createDataset").getLinkedRecord("dataset"),p=c.get(d);if(p&&u){const f=N.ConnectionHandler.createEdge(c,p,u,"DatasetEdge");N.ConnectionHandler.insertEdgeAfter(p,f)}},onError:c=>{t(c)}})},[i,a,t]);return e(Ut,{isSubmitting:r,onSubmit:o,submitButtonText:r?"Creating...":"Create Dataset",formMode:"create"})}const Wt=function(){var n={defaultValue:null,kind:"LocalArgument",name:"datasetId"},a={defaultValue:null,kind:"LocalArgument",name:"description"},t={defaultValue:null,kind:"LocalArgument",name:"metadata"},i={defaultValue:null,kind:"LocalArgument",name:"name"},r=[{alias:null,args:[{fields:[{kind:"Variable",name:"datasetId",variableName:"datasetId"},{kind:"Variable",name:"description",variableName:"description"},{kind:"Variable",name:"metadata",variableName:"metadata"},{kind:"Variable",name:"name",variableName:"name"}],kind:"ObjectValue",name:"input"}],concreteType:"DatasetMutationPayload",kind:"LinkedField",name:"patchDataset",plural:!1,selections:[{alias:null,args:null,concreteType:"Dataset",kind:"LinkedField",name:"dataset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"metadata",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[n,a,t,i],kind:"Fragment",metadata:null,name:"EditDatasetFormMutation",selections:r,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,i,a,t],kind:"Operation",name:"EditDatasetFormMutation",selections:r},params:{cacheID:"d68da97aac0aaababba2324b7d10e250",id:null,metadata:{},name:"EditDatasetFormMutation",operationKind:"mutation",text:`mutation EditDatasetFormMutation(
2355
+ `}}}();Gt.hash="5921369d33cc0fb1dffb5d943469a378";function Ut({datasetName:n,datasetDescription:a,datasetMetadata:t,onSubmit:i,isSubmitting:r,submitButtonText:o,formMode:l}){const{control:c,handleSubmit:d,formState:{isDirty:g}}=Me({defaultValues:{name:n??"Dataset "+new Date().toISOString(),description:a??"",metadata:JSON.stringify(t,null,2)??"{}"}});return s(Te,{children:[s(w,{padding:"size-200",children:[e(_,{name:"name",control:c,rules:{required:"Dataset name is required"},render:({field:{onChange:u,onBlur:h,value:f},fieldState:{invalid:b,error:v}})=>s($,{isInvalid:b,onChange:u,onBlur:h,value:f.toString(),children:[e(O,{children:"Dataset Name"}),e(H,{placeholder:"e.x. Golden Dataset"}),v!=null&&v.message?e(R,{children:v.message}):e(y,{slot:"description",children:"The name of the dataset"})]})}),e(_,{name:"description",control:c,render:({field:{onChange:u,onBlur:h,value:f},fieldState:{invalid:b,error:v}})=>s($,{isInvalid:b,onChange:u,onBlur:h,value:f.toString(),children:[e(O,{children:"Description"}),e(mn,{placeholder:"e.x. A golden dataset for structured data extraction"}),v!=null&&v.message?e(R,{children:v.message}):e(y,{slot:"description",children:"The description of the dataset"})]})}),e(_,{name:"metadata",control:c,rules:{validate:u=>dl(u)?!0:"metadata must be a valid JSON object"},render:({field:{onChange:u,onBlur:h,value:f},fieldState:{invalid:b,error:v}})=>e(ss,{validationState:b?"invalid":"valid",label:"metadata",errorMessage:v==null?void 0:v.message,description:"A JSON object containing metadata for the dataset",children:e(is,{value:f,onChange:u,onBlur:h})})})]}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:e(k,{direction:"row",justifyContent:"end",children:e(D,{isDisabled:(l==="edit"?!g:!1)||r,variant:g?"primary":"default",size:"S",onPress:()=>{d(i)()},children:o})})})]})}function rc(n){const{onDatasetCreated:a,onDatasetCreateError:t}=n,[i,r]=N.useMutation(Gt),o=p.useCallback(l=>{i({variables:{...l,metadata:JSON.parse(l.metadata)},onCompleted:c=>{a(c.createDataset.dataset)},updater:c=>{const d=N.ConnectionHandler.getConnectionID("client:root","DatasetPicker__datasets"),u=c.getRootField("createDataset").getLinkedRecord("dataset"),h=c.get(d);if(h&&u){const f=N.ConnectionHandler.createEdge(c,h,u,"DatasetEdge");N.ConnectionHandler.insertEdgeAfter(h,f)}},onError:c=>{t(c)}})},[i,a,t]);return e(Ut,{isSubmitting:r,onSubmit:o,submitButtonText:r?"Creating...":"Create Dataset",formMode:"create"})}const Wt=function(){var n={defaultValue:null,kind:"LocalArgument",name:"datasetId"},a={defaultValue:null,kind:"LocalArgument",name:"description"},t={defaultValue:null,kind:"LocalArgument",name:"metadata"},i={defaultValue:null,kind:"LocalArgument",name:"name"},r=[{alias:null,args:[{fields:[{kind:"Variable",name:"datasetId",variableName:"datasetId"},{kind:"Variable",name:"description",variableName:"description"},{kind:"Variable",name:"metadata",variableName:"metadata"},{kind:"Variable",name:"name",variableName:"name"}],kind:"ObjectValue",name:"input"}],concreteType:"DatasetMutationPayload",kind:"LinkedField",name:"patchDataset",plural:!1,selections:[{alias:null,args:null,concreteType:"Dataset",kind:"LinkedField",name:"dataset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"metadata",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[n,a,t,i],kind:"Fragment",metadata:null,name:"EditDatasetFormMutation",selections:r,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,i,a,t],kind:"Operation",name:"EditDatasetFormMutation",selections:r},params:{cacheID:"d68da97aac0aaababba2324b7d10e250",id:null,metadata:{},name:"EditDatasetFormMutation",operationKind:"mutation",text:`mutation EditDatasetFormMutation(
2356
2356
  $datasetId: GlobalID!
2357
2357
  $name: String!
2358
2358
  $description: String = null
@@ -2385,7 +2385,7 @@ fragment ViewerContext_viewer on Query {
2385
2385
  }
2386
2386
  }
2387
2387
  }
2388
- `}}}();Qt.hash="5949a605c226a9ac97df28e12c7858bd";function F9(n){const a=N.useLazyLoadQuery(Qt,{},{fetchPolicy:"store-and-network"});return e(Ne,{label:n.label,"data-testid":"dataset-picker",size:n.size,className:"dataset-picker","aria-label":"select a dataset",onSelectionChange:n.onSelectionChange,placeholder:n.placeholder??"Select a dataset",onBlur:n.onBlur,isRequired:!0,validationState:n.validationState,errorMessage:n.errorMessage,selectedKey:n.selectedKey,children:a.datasets.edges.map(({dataset:t})=>e(F,{"aria-label":t.name,children:s(k,{direction:"column",justifyContent:"space-between",width:"100%",children:[e(y,{children:t.name}),s(y,{color:"text-700",size:"XS",children:[t.exampleCount," examples"]})]})},t.id))})}function _9({onDatasetCreated:n}){const[a,t]=h.useState(null),[i,r]=h.useState(!1),o=w1();return s(hn,{placement:"bottom right",isOpen:i,onOpenChange:l=>{t(null),r(l)},children:[e(ce,{children:e(D,{variant:"default",leadingVisual:e(M,{svg:e(Tt,{})}),"aria-label":"Create a new dataset",onPress:()=>{t(null),r(!0)}})}),e(Fa,{title:"Create New Dataset",bodyStyle:{padding:0},variant:"compact",borderColor:"light",backgroundColor:"light",children:s(w,{width:"500px",children:[a?e(t1,{variant:"danger",children:a}):null,e(rc,{onDatasetCreateError:l=>{const c=Zt(l);t((c==null?void 0:c[0])??l.message)},onDatasetCreated:({id:l,name:c})=>{t(null),r(!1),o({title:"Dataset Created",message:`Dataset "${c}" created successfully`}),n&&n(l)}})]})})]})}function oc(n){const a=65+n;return String.fromCharCode(a)}function N9({index:n}){const a=h.useMemo(()=>oc(n),[n]),t=h.useMemo(()=>gr[n%8],[n]),i=h.useMemo(()=>pn(.8,t),[t]);return e("div",{css:m`
2388
+ `}}}();Qt.hash="5949a605c226a9ac97df28e12c7858bd";function F9(n){const a=N.useLazyLoadQuery(Qt,{},{fetchPolicy:"store-and-network"});return e(Re,{label:n.label,"data-testid":"dataset-picker",size:n.size,className:"dataset-picker","aria-label":"select a dataset",onSelectionChange:n.onSelectionChange,placeholder:n.placeholder??"Select a dataset",onBlur:n.onBlur,isRequired:!0,validationState:n.validationState,errorMessage:n.errorMessage,selectedKey:n.selectedKey,children:a.datasets.edges.map(({dataset:t})=>e(F,{"aria-label":t.name,children:s(k,{direction:"column",justifyContent:"space-between",width:"100%",children:[e(y,{children:t.name}),s(y,{color:"text-700",size:"XS",children:[t.exampleCount," examples"]})]})},t.id))})}function _9({onDatasetCreated:n}){const[a,t]=p.useState(null),[i,r]=p.useState(!1),o=w1();return s(hn,{placement:"bottom right",isOpen:i,onOpenChange:l=>{t(null),r(l)},children:[e(ue,{children:e(D,{variant:"default",leadingVisual:e(M,{svg:e(Tt,{})}),"aria-label":"Create a new dataset",onPress:()=>{t(null),r(!0)}})}),e(Fa,{title:"Create New Dataset",bodyStyle:{padding:0},variant:"compact",borderColor:"light",backgroundColor:"light",children:s(w,{width:"500px",children:[a?e(t1,{variant:"danger",children:a}):null,e(rc,{onDatasetCreateError:l=>{const c=Zt(l);t((c==null?void 0:c[0])??l.message)},onDatasetCreated:({id:l,name:c})=>{t(null),r(!1),o({title:"Dataset Created",message:`Dataset "${c}" created successfully`}),n&&n(l)}})]})})]})}function oc(n){const a=65+n;return String.fromCharCode(a)}function N9({index:n}){const a=p.useMemo(()=>oc(n),[n]),t=p.useMemo(()=>gr[n%8],[n]),i=p.useMemo(()=>pn(.8,t),[t]);return e("div",{css:m`
2389
2389
  color: ${t};
2390
2390
  background-color: ${i};
2391
2391
  width: 24px;
@@ -2395,13 +2395,13 @@ fragment ViewerContext_viewer on Query {
2395
2395
  justify-content: center;
2396
2396
  align-items: center;
2397
2397
  border-radius: var(--ac-global-rounding-small);
2398
- `,children:a})}function lc(n){return s(re,{children:[e(ce,{children:e(Q1,{size:n.size,children:n.tokenCountTotal})}),e(me,{children:s(k,{direction:"column",gap:"size-50",children:[s(k,{direction:"row",gap:"size-100",justifyContent:"space-between",children:["prompt tokens",e(Q1,{children:n.tokenCountPrompt})]}),s(k,{direction:"row",gap:"size-100",justifyContent:"space-between",children:["completion tokens",e(Q1,{children:n.tokenCountCompletion})]})]})})]})}function Q1({children:n,...a}){return s(k,{direction:"row",gap:"size-50",alignItems:"center",className:"token-count-item",children:[e(M,{svg:e(M0,{}),css:m`
2398
+ `,children:a})}function lc(n){return s(le,{children:[e(ue,{children:e(Q1,{size:n.size,children:n.tokenCountTotal})}),e(he,{children:s(k,{direction:"column",gap:"size-50",children:[s(k,{direction:"row",gap:"size-100",justifyContent:"space-between",children:["prompt tokens",e(Q1,{children:n.tokenCountPrompt})]}),s(k,{direction:"row",gap:"size-100",justifyContent:"space-between",children:["completion tokens",e(Q1,{children:n.tokenCountCompletion})]})]})})]})}function Q1({children:n,...a}){return s(k,{direction:"row",gap:"size-50",alignItems:"center",className:"token-count-item",children:[e(M,{svg:e(M0,{}),css:m`
2399
2399
  color: var(--ac-global-text-color-900);
2400
2400
  `}),e(y,{...a,children:n})]})}function sc(n){switch(n){case"OK":return"success";case"ERROR":return"danger";case"UNSET":return"grey-500";default:I()}}function cc({statusCode:n,...a}){let t=e(aa,{});const i=sc(n);switch(n){case"OK":t=e(kt,{});break;case"ERROR":t=e(Vn,{});break;case"UNSET":t=e(aa,{});break;default:I()}return e(M,{svg:t,color:i,"aria-label":n,...a})}const dc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.9"}),e("mask",{id:"path-2-inside-1_33_16916",fill:"currentColor",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 8C13 8.64491 12.8779 9.2613 12.6556 9.82732L17.1924 14.3641L14.364 17.1926L9.82706 12.6557C9.26111 12.8779 8.64481 13 8 13C5.23858 13 3 10.7614 3 8C3 7.13361 3.22036 6.31869 3.60809 5.60822L6 8L7.5 7.50016L8 6.00016L5.60803 3.60819C6.31854 3.2204 7.13353 3 8 3C10.7614 3 13 5.23858 13 8Z"})}),e("path",{d:"M12.6556 9.82732L11.7248 9.46171L11.4853 10.0713L11.9485 10.5344L12.6556 9.82732ZM17.1924 14.3641L17.8995 15.0713L18.6066 14.3641L17.8995 13.657L17.1924 14.3641ZM14.364 17.1926L13.6569 17.8997L14.364 18.6068L15.0711 17.8997L14.364 17.1926ZM9.82706 12.6557L10.5342 11.9486L10.0711 11.4855L9.4615 11.7249L9.82706 12.6557ZM3.60809 5.60822L4.31518 4.90109L3.37037 3.95634L2.7303 5.12917L3.60809 5.60822ZM6 8L5.29291 8.70713L5.72988 9.14407L6.31613 8.94871L6 8ZM7.5 7.50016L7.81614 8.44888L8.29055 8.29079L8.44869 7.81639L7.5 7.50016ZM8 6.00016L8.94869 6.31639L9.14413 5.73007L8.70711 5.29306L8 6.00016ZM5.60803 3.60819L5.12895 2.73042L3.95616 3.37053L4.90093 4.3153L5.60803 3.60819ZM13.5863 10.1929C13.8537 9.51235 14 8.77206 14 8H12C12 8.51776 11.9021 9.01026 11.7248 9.46171L13.5863 10.1929ZM17.8995 13.657L13.3627 9.12022L11.9485 10.5344L16.4853 15.0713L17.8995 13.657ZM15.0711 17.8997L17.8995 15.0713L16.4853 13.657L13.6569 16.4855L15.0711 17.8997ZM9.11995 13.3628L13.6569 17.8997L15.0711 16.4855L10.5342 11.9486L9.11995 13.3628ZM8 14C8.77194 14 9.51211 13.8537 10.1926 13.5865L9.4615 11.7249C9.0101 11.9022 8.51768 12 8 12V14ZM2 8C2 11.3137 4.68629 14 8 14V12C5.79086 12 4 10.2091 4 8H2ZM2.7303 5.12917C2.2644 5.98288 2 6.96206 2 8H4C4 7.30516 4.17633 6.65449 4.48588 6.08727L2.7303 5.12917ZM6.70709 7.29287L4.31518 4.90109L2.901 6.31535L5.29291 8.70713L6.70709 7.29287ZM7.18387 6.55145L5.68387 7.05129L6.31613 8.94871L7.81614 8.44888L7.18387 6.55145ZM7.05132 5.68394L6.55132 7.18394L8.44869 7.81639L8.94869 6.31639L7.05132 5.68394ZM4.90093 4.3153L7.2929 6.70727L8.70711 5.29306L6.31514 2.90109L4.90093 4.3153ZM8 2C6.96197 2 5.98271 2.26444 5.12895 2.73042L6.08712 4.48596C6.65437 4.17636 7.3051 4 8 4V2ZM14 8C14 4.68629 11.3137 2 8 2V4C10.2091 4 12 5.79086 12 8H14Z",fill:"currentColor",fillOpacity:"0.9",mask:"url(#path-2-inside-1_33_16916)"})]}),uc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",fill:"currentColor",stroke:"currentColor"}),e("mask",{id:"path-2-inside-1_2321_643",fill:"white",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 8C13 8.64491 12.8779 9.2613 12.6556 9.82732L17.1924 14.3641L14.364 17.1926L9.82706 12.6557C9.26111 12.8779 8.64481 13 8 13C5.23858 13 3 10.7614 3 8C3 7.13361 3.22036 6.31869 3.60809 5.60822L6 8L7.5 7.50016L8 6.00016L5.60803 3.60819C6.31854 3.2204 7.13353 3 8 3C10.7614 3 13 5.23858 13 8Z"})}),e("path",{d:"M12.6556 9.82732L11.7248 9.46171L11.4853 10.0713L11.9485 10.5344L12.6556 9.82732ZM17.1924 14.3641L17.8995 15.0713L18.6066 14.3641L17.8995 13.657L17.1924 14.3641ZM14.364 17.1926L13.6569 17.8997L14.364 18.6068L15.0711 17.8997L14.364 17.1926ZM9.82706 12.6557L10.5342 11.9486L10.0711 11.4855L9.4615 11.7249L9.82706 12.6557ZM3.60809 5.60822L4.31518 4.90109L3.37037 3.95634L2.7303 5.12917L3.60809 5.60822ZM6 8L5.29291 8.70713L5.72988 9.14407L6.31613 8.94871L6 8ZM7.5 7.50016L7.81614 8.44888L8.29055 8.29079L8.44869 7.81639L7.5 7.50016ZM8 6.00016L8.94869 6.31639L9.14413 5.73007L8.70711 5.29306L8 6.00016ZM5.60803 3.60819L5.12895 2.73042L3.95616 3.37053L4.90093 4.3153L5.60803 3.60819ZM13.5863 10.1929C13.8537 9.51235 14 8.77206 14 8H12C12 8.51776 11.9021 9.01026 11.7248 9.46171L13.5863 10.1929ZM17.8995 13.657L13.3627 9.12022L11.9485 10.5344L16.4853 15.0713L17.8995 13.657ZM15.0711 17.8997L17.8995 15.0713L16.4853 13.657L13.6569 16.4855L15.0711 17.8997ZM9.11995 13.3628L13.6569 17.8997L15.0711 16.4855L10.5342 11.9486L9.11995 13.3628ZM8 14C8.77194 14 9.51211 13.8537 10.1926 13.5865L9.4615 11.7249C9.0101 11.9022 8.51768 12 8 12V14ZM2 8C2 11.3137 4.68629 14 8 14V12C5.79086 12 4 10.2091 4 8H2ZM2.7303 5.12917C2.2644 5.98288 2 6.96206 2 8H4C4 7.30516 4.17633 6.65449 4.48588 6.08727L2.7303 5.12917ZM6.70709 7.29287L4.31518 4.90109L2.901 6.31535L5.29291 8.70713L6.70709 7.29287ZM7.18387 6.55145L5.68387 7.05129L6.31613 8.94871L7.81614 8.44888L7.18387 6.55145ZM7.05132 5.68394L6.55132 7.18394L8.44869 7.81639L8.94869 6.31639L7.05132 5.68394ZM4.90093 4.3153L7.2929 6.70727L8.70711 5.29306L6.31514 2.90109L4.90093 4.3153ZM8 2C6.96197 2 5.98271 2.26444 5.12895 2.73042L6.08712 4.48596C6.65437 4.17636 7.3051 4 8 4V2ZM14 8C14 4.68629 11.3137 2 8 2V4C10.2091 4 12 5.79086 12 8H14Z",fill:"black",mask:"url(#path-2-inside-1_2321_643)"})]}),gc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.9"}),e("path",{d:"M4.43782 6.78868L10 3.57735L15.5622 6.78868V13.2113L10 16.4226L4.43782 13.2113V6.78868Z",stroke:"currentColor",strokeOpacity:"0.9"})]}),mc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",fill:"currentColor",stroke:"currentColor"}),e("path",{d:"M4.43782 6.78868L10 3.57735L15.5622 6.78868V13.2113L10 16.4226L4.43782 13.2113V6.78868Z",stroke:"black"})]}),pc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.9"}),e("path",{d:"M5 16C5 16 5 11 10 11C15 11 15 16 15 16",stroke:"currentColor",strokeOpacity:"0.9"}),e("rect",{x:"6.5",y:"4.5",width:"7",height:"5",rx:"0.5",stroke:"currentColor",strokeOpacity:"0.9"})]}),hc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{width:"20",height:"20",rx:"4",fill:"currentColor"}),e("path",{d:"M10 11C5 11 5 16 5 16H15C15 16 15 11 10 11Z",stroke:"black"}),e("rect",{x:"6.5",y:"4.5",width:"7",height:"5",rx:"0.5",stroke:"black"})]}),fc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.9"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 6C10 7.10457 9.10457 8 8 8C6.89543 8 6 7.10457 6 6C6 4.89543 6.89543 4 8 4C9.10457 4 10 4.89543 10 6ZM10.0558 8.18487C9.51887 8.6903 8.7956 9 8 9C7.91155 9 7.824 8.99617 7.7375 8.98867L7.10304 11.2093C8.21409 11.6488 9 12.7326 9 14C9 15.6569 7.65685 17 6 17C4.34315 17 3 15.6569 3 14C3 12.3431 4.34315 11 6 11C6.0409 11 6.08161 11.0008 6.12212 11.0024L6.76944 8.73682C5.72625 8.26703 5 7.21833 5 6C5 4.34315 6.34315 3 8 3C9.65685 3 11 4.34315 11 6C11 6.50075 10.8773 6.97285 10.6604 7.38788L12.1873 8.6094C12.6908 8.22697 13.3189 8 14 8C15.6569 8 17 9.34315 17 11C17 12.6569 15.6569 14 14 14C12.3431 14 11 12.6569 11 11C11 10.3864 11.1842 9.81579 11.5004 9.34053L10.0558 8.18487ZM16 11C16 12.1046 15.1046 13 14 13C12.8954 13 12 12.1046 12 11C12 9.89543 12.8954 9 14 9C15.1046 9 16 9.89543 16 11ZM6 16C7.10457 16 8 15.1046 8 14C8 12.8954 7.10457 12 6 12C4.89543 12 4 12.8954 4 14C4 15.1046 4.89543 16 6 16Z",fill:"currentColor",fillOpacity:"0.9"})]}),bc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",fill:"currentColor",stroke:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 6.00003C10 7.1046 9.10457 8.00003 8 8.00003C6.89543 8.00003 6 7.1046 6 6.00003C6 4.89546 6.89543 4.00003 8 4.00003C9.10457 4.00003 10 4.89546 10 6.00003ZM10.0558 8.1849C9.51887 8.69033 8.7956 9.00003 8 9.00003C7.91155 9.00003 7.824 8.9962 7.7375 8.9887L7.10304 11.2093C8.21409 11.6488 9 12.7326 9 14C9 15.6569 7.65685 17 6 17C4.34315 17 3 15.6569 3 14C3 12.3432 4.34315 11 6 11C6.0409 11 6.08161 11.0008 6.12212 11.0025L6.76944 8.73685C5.72625 8.26706 5 7.21836 5 6.00003C5 4.34318 6.34315 3.00003 8 3.00003C9.65685 3.00003 11 4.34318 11 6.00003C11 6.50078 10.8773 6.97288 10.6604 7.38791L12.1873 8.60943C12.6908 8.227 13.3189 8.00003 14 8.00003C15.6569 8.00003 17 9.34318 17 11C17 12.6569 15.6569 14 14 14C12.3431 14 11 12.6569 11 11C11 10.3864 11.1842 9.81582 11.5004 9.34056L10.0558 8.1849ZM16 11C16 12.1046 15.1046 13 14 13C12.8954 13 12 12.1046 12 11C12 9.89546 12.8954 9.00003 14 9.00003C15.1046 9.00003 16 9.89546 16 11ZM6 16C7.10457 16 8 15.1046 8 14C8 12.8955 7.10457 12 6 12C4.89543 12 4 12.8955 4 14C4 15.1046 4.89543 16 6 16Z",fill:"black"})]}),vc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.9"}),e("path",{d:"M14.65 6.5C14.65 6.98637 14.2466 7.52091 13.379 7.95472C12.5323 8.37806 11.3382 8.65 10 8.65C8.66184 8.65 7.46767 8.37806 6.62099 7.95472C5.75338 7.52091 5.35 6.98637 5.35 6.5C5.35 6.01363 5.75338 5.47909 6.62099 5.04528C7.46767 4.62194 8.66184 4.35 10 4.35C11.3382 4.35 12.5323 4.62194 13.379 5.04528C14.2466 5.47909 14.65 6.01363 14.65 6.5Z",stroke:"currentColor",strokeOpacity:"0.9",strokeWidth:"0.7"}),e("path",{d:"M14.6875 6.83482V9.62479C14.6875 9.62479 13.0769 11.1873 10 11.1873C6.92308 11.1873 5.3125 9.62479 5.3125 9.62479V6.7437",stroke:"currentColor",strokeOpacity:"0.9",strokeWidth:"0.7"}),e("path",{d:"M14.6875 9.625V12.125C14.6875 12.125 13.0769 13.6875 10 13.6875C6.92308 13.6875 5.3125 12.125 5.3125 12.125V9.625",stroke:"currentColor",strokeOpacity:"0.9",strokeWidth:"0.7"}),e("path",{d:"M14.6875 12.125V14.625C14.6875 14.625 13.0769 16.1875 10 16.1875C6.92308 16.1875 5.3125 14.625 5.3125 14.625V12.125",stroke:"currentColor",strokeOpacity:"0.9",strokeWidth:"0.7"})]}),Cc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",fill:"currentColor",stroke:"currentColor"}),e("path",{d:"M14.65 6.5C14.65 6.98637 14.2466 7.52091 13.379 7.95472C12.5323 8.37806 11.3382 8.65 10 8.65C8.66184 8.65 7.46767 8.37806 6.62099 7.95472C5.75338 7.52091 5.35 6.98637 5.35 6.5C5.35 6.01363 5.75338 5.47909 6.62099 5.04528C7.46767 4.62194 8.66184 4.35 10 4.35C11.3382 4.35 12.5323 4.62194 13.379 5.04528C14.2466 5.47909 14.65 6.01363 14.65 6.5Z",stroke:"black",strokeWidth:"0.7"}),e("path",{d:"M14.6875 6.83504V9.625C14.6875 9.625 13.0769 11.1875 10 11.1875C6.92308 11.1875 5.3125 9.625 5.3125 9.625V6.74392",stroke:"black",strokeWidth:"0.7"}),e("path",{d:"M14.6875 9.625V12.125C14.6875 12.125 13.0769 13.6875 10 13.6875C6.92308 13.6875 5.3125 12.125 5.3125 12.125V9.625",stroke:"black",strokeWidth:"0.7"}),e("path",{d:"M14.6875 12.125V14.625C14.6875 14.625 13.0769 16.1875 10 16.1875C6.92308 16.1875 5.3125 14.625 5.3125 14.625V12.125",stroke:"black",strokeWidth:"0.7"})]}),yc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor"}),e("path",{d:"M4.5359 10L8 4L11.4641 10H4.5359Z",stroke:"currentColor"}),e("path",{d:"M8.5359 10L12 16L15.4641 10H8.5359Z",stroke:"currentColor"})]}),Lc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",fill:"currentColor",stroke:"currentColor"}),e("path",{d:"M4.5359 10L8 4L11.4641 10H4.5359Z",stroke:"black"}),e("path",{d:"M8.5359 10L12 16L15.4641 10H8.5359Z",stroke:"black"})]}),wc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.9"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 15C12.7614 15 15 12.7614 15 10C15 7.23858 12.7614 5 10 5C7.23858 5 5 7.23858 5 10C5 12.7614 7.23858 15 10 15ZM10 16C13.3137 16 16 13.3137 16 10C16 6.68629 13.3137 4 10 4C6.68629 4 4 6.68629 4 10C4 13.3137 6.68629 16 10 16Z",fill:"currentColor",fillOpacity:"0.9"})]}),xc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",fill:"currentColor",stroke:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 15C12.7614 15 15 12.7614 15 10C15 7.23858 12.7614 5 10 5C7.23858 5 5 7.23858 5 10C5 12.7614 7.23858 15 10 15ZM10 16C13.3137 16 16 13.3137 16 10C16 6.68629 13.3137 4 10 4C6.68629 4 4 6.68629 4 10C4 13.3137 6.68629 16 10 16Z",fill:"black"})]}),kc=()=>e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.9"})}),Sc=()=>e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",fill:"currentColor",stroke:"currentColor"})}),Mc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor"}),e("path",{d:"M14.4254 5.58523L15.744 6.87427L15.7249 6.89333L15.7043 6.91394L15.6837 6.93453L15.6631 6.95509L15.6425 6.97562L15.622 6.99612L15.6015 7.01659L15.581 7.03703L15.5606 7.05745L15.5402 7.07783L15.5198 7.09819L15.4995 7.11852L15.4791 7.13882L15.4588 7.15909L15.4386 7.17934L15.4183 7.19956L15.3981 7.21974L15.3779 7.23991L15.3578 7.26004L15.3377 7.28015L15.3176 7.30022L15.2975 7.32028L15.2774 7.3403L15.2574 7.3603L15.2374 7.38027L15.2175 7.40021L15.1975 7.42013L15.1776 7.44002L15.1577 7.45988L15.1379 7.47972L15.118 7.49953L15.0982 7.51931L15.0784 7.53907L15.0587 7.5588L15.0389 7.57851L15.0192 7.59819L14.9996 7.61785L14.9799 7.63748L14.9603 7.65708L14.9407 7.67666L14.9211 7.69621L14.9016 7.71574L14.882 7.73524L14.8625 7.75472L14.8431 7.77417L14.8236 7.7936L14.8042 7.81301L14.7848 7.83239L14.7654 7.85174L14.746 7.87107L14.7267 7.89038L14.7074 7.90966L14.6881 7.92892L14.6689 7.94815L14.6496 7.96736L14.6304 7.98655L14.6113 8.00571L14.5921 8.02485L14.573 8.04397L14.5538 8.06306L14.5347 8.08213L14.5157 8.10118L14.4966 8.1202L14.4776 8.1392L14.4586 8.15818L14.4396 8.17714L14.4207 8.19607L14.4017 8.21498L14.3828 8.23387L14.3639 8.25274L14.3451 8.27158L14.3262 8.2904L14.3074 8.3092L14.2886 8.32798L14.2698 8.34674L14.2511 8.36547L14.2323 8.38418L14.2136 8.40288L14.1949 8.42155L14.1763 8.4402L14.1576 8.45883L14.139 8.47743L14.1204 8.49602L14.1018 8.51459L14.0832 8.53313L14.0647 8.55166L14.0462 8.57016L14.0277 8.58864L14.0092 8.60711L13.9907 8.62555L13.9723 8.64397L13.9538 8.66238L13.9354 8.68076L13.917 8.69913L13.8987 8.71747L13.8803 8.73579L13.862 8.7541L13.8437 8.77239L13.8254 8.79065L13.8071 8.8089L13.7889 8.82713L13.7707 8.84534L13.7524 8.86353L13.7343 8.8817L13.7161 8.89986L13.6979 8.91799L13.6798 8.93611L13.6617 8.95421L13.6436 8.97229L13.6255 8.99036L13.6074 9.0084L13.5894 9.02643L13.5713 9.04444L13.5533 9.06243L13.5353 9.0804L13.5173 9.09836L13.4994 9.1163L13.4814 9.13422L13.4635 9.15213L13.4456 9.17002L13.4277 9.18789L13.4098 9.20574L13.392 9.22358L13.3741 9.2414L13.3563 9.25921L13.3385 9.277L13.3207 9.29477L13.3029 9.31253L13.2852 9.33027L13.2674 9.34799L13.2497 9.3657L13.232 9.38339L13.2143 9.40107L13.1966 9.41873L13.1789 9.43638L13.1613 9.45401L13.1436 9.47163L13.126 9.48923L13.1084 9.50681L13.0908 9.52438L13.0733 9.54194L13.0557 9.55948L13.0381 9.57701L13.0206 9.59452L13.0031 9.61202L12.9856 9.6295L12.9681 9.64697L12.9506 9.66443L12.9332 9.68187L12.9157 9.6993L12.8983 9.71671L12.8809 9.73412L12.8634 9.7515L12.8461 9.76888L12.8287 9.78624L12.8113 9.80358L12.794 9.82092L12.7766 9.83824L12.7593 9.85555L12.742 9.87284L12.7247 9.89013L12.7074 9.9074L12.6901 9.92466L12.6728 9.9419L12.6556 9.95913L12.6383 9.97636L12.6211 9.99356L12.6039 10.0108L12.5867 10.0279L12.5695 10.0451L12.5523 10.0623L12.5351 10.0794L12.518 10.0966L12.5008 10.1137L12.4837 10.1308L12.4666 10.1479L12.4495 10.165L12.4324 10.1821L12.4153 10.1992L12.3982 10.2162L12.3811 10.2333L12.364 10.2503L12.347 10.2674L12.33 10.2844L12.3129 10.3014L12.2959 10.3184L12.2789 10.3354L12.2619 10.3524L12.2449 10.3693L12.2279 10.3863L12.211 10.4032L12.194 10.4202L12.177 10.4371L12.1601 10.454L12.1432 10.471L12.1262 10.4879L12.1093 10.5048L12.0924 10.5216L12.0755 10.5385L12.0586 10.5554L12.0417 10.5723L12.0249 10.5891L12.008 10.606L11.9911 10.6228L11.9743 10.6396L11.9575 10.6565L11.9406 10.6733L11.9238 10.6901L11.907 10.7069L11.8902 10.7237L11.8734 10.7404L11.8566 10.7572L11.8398 10.774L11.823 10.7907L11.8062 10.8075L11.7895 10.8243L11.7727 10.841L11.7559 10.8577L11.7392 10.8745L11.7225 10.8912L11.7057 10.9079L11.689 10.9246L11.6723 10.9413L11.6556 10.958L11.6389 10.9747L11.6221 10.9914L11.6054 11.0081L11.5888 11.0247L11.5721 11.0414L11.5554 11.0581L11.5387 11.0747L11.522 11.0914L11.5054 11.108L11.4887 11.1247L11.4721 11.1413L11.4554 11.1579L11.4388 11.1746L11.4221 11.1912L11.4055 11.2078L11.3888 11.2244L11.3722 11.241L11.3556 11.2576L11.339 11.2742L11.3224 11.2908L11.3057 11.3074L11.2891 11.324L11.2725 11.3406L11.2559 11.3572L11.2393 11.3738L11.2227 11.3903L11.2061 11.4069L11.1895 11.4235L11.173 11.44L11.1564 11.4566L11.1398 11.4732L11.1232 11.4897L11.1066 11.5063L11.0901 11.5228L11.0735 11.5394L11.0569 11.5559L11.0404 11.5725L11.0238 11.589L11.0072 11.6056L10.9907 11.6221L10.9741 11.6386L10.9576 11.6552L10.941 11.6717L10.9245 11.6883L10.9079 11.7048L10.8914 11.7213L10.8748 11.7378L10.8583 11.7544L10.8417 11.7709L10.8252 11.7874L10.8086 11.804L10.7921 11.8205L10.7755 11.837L10.759 11.8535L10.7424 11.8701L10.7259 11.8866L10.7094 11.9031L10.6928 11.9196L10.6763 11.9362L10.6597 11.9527L10.6432 11.9692L10.6266 11.9857L10.6101 12.0023L10.5935 12.0188L10.577 12.0353L10.5604 12.0519L10.5439 12.0684L10.5273 12.0849L10.5108 12.1015L10.4942 12.118L10.4777 12.1345L10.4611 12.1511L10.4446 12.1676L10.428 12.1841L10.4114 12.2007L10.3949 12.2172L10.3783 12.2338L10.3618 12.2503L10.3452 12.2669L10.3286 12.2834L10.312 12.3L10.2955 12.3165L10.2789 12.3331L10.2623 12.3497L10.2457 12.3662L10.2291 12.3828L10.2125 12.3994L10.1959 12.4159L10.1793 12.4325L10.1627 12.4491L10.1461 12.4657L10.1295 12.4823L10.1129 12.4989L10.0963 12.5155L10.0797 12.5321L10.0631 12.5487L10.0464 12.5653L10.0298 12.5819L10.0132 12.5985L9.99652 12.6151L9.97987 12.6318L9.96322 12.6484L9.94657 12.665L9.92991 12.6817L9.91324 12.6983L9.89657 12.715L9.87989 12.7316L9.86321 12.7483L9.84653 12.7649L9.82984 12.7816L9.81314 12.7983L9.79644 12.815L9.77973 12.8317L9.76301 12.8484L9.74629 12.8651L9.72957 12.8818L9.71283 12.8985L9.69609 12.9152L9.67935 12.9319L9.6626 12.9487L9.64584 12.9654L9.62907 12.9822L9.6123 12.9989L9.59552 13.0157L9.57873 13.0324L9.56194 13.0492L9.54514 13.066L9.52833 13.0828L9.51151 13.0996L9.49469 13.1164L9.47786 13.1332L9.46102 13.15L9.44417 13.1668L9.42732 13.1837L9.41045 13.2005L9.39358 13.2174L9.3767 13.2342L9.35981 13.2511L9.34292 13.268L9.32601 13.2849L9.3091 13.3018L9.29217 13.3187L9.27524 13.3356L9.2583 13.3525L9.24135 13.3694L9.22439 13.3864L9.20742 13.4033L9.19044 13.4203L9.17345 13.4372L9.15645 13.4542L9.13945 13.4712L9.12243 13.4882L9.1054 13.5052L9.08836 13.5222L9.07131 13.5393L9.05426 13.5563L9.03719 13.5734L9.02011 13.5904L9.00302 13.6075L8.98592 13.6246L8.9688 13.6417L8.95168 13.6588L8.93455 13.6759L8.9174 13.693L8.90024 13.7101L8.88308 13.7273L8.8659 13.7444L8.84871 13.7616L8.8315 13.7788L8.81429 13.796L8.79706 13.8132L8.77983 13.8304L8.76257 13.8477L8.74531 13.8649L8.72804 13.8821L8.71075 13.8994L8.69345 13.9167L8.67614 13.934L8.65881 13.9513L8.64147 13.9686L8.62412 13.9859L8.60676 14.0033L8.58938 14.0206L8.57199 14.038L8.55458 14.0554L8.53716 14.0728L8.51973 14.0902L8.50229 14.1076L8.48483 14.1251L8.46736 14.1425L8.44987 14.16L8.43237 14.1775L8.41485 14.195L8.39732 14.2125L8.37978 14.23L8.36222 14.2475L8.34465 14.2651L8.32706 14.2827L8.30945 14.3002L8.29184 14.3178L8.2742 14.3355L8.25656 14.3531L8.23889 14.3707L8.22121 14.3884L8.20352 14.4061L8.18581 14.4238L8.16808 14.4415L8.15034 14.4592L8.13258 14.4769L8.11481 14.4947L8.09702 14.5124L8.07921 14.5302L8.06139 14.548L8.04355 14.5658L8.0257 14.5837L8.00783 14.6015L7.98994 14.6194L7.97203 14.6373L7.95411 14.6552L7.93617 14.6731L7.91821 14.691L7.90024 14.709L7.88225 14.727L7.86424 14.7449L7.84621 14.763L7.82817 14.781L7.81011 14.799L7.79203 14.8171L7.77393 14.8352L7.75581 14.8533L7.73768 14.8714L7.71952 14.8895L7.70135 14.9076L7.68316 14.9258L7.66495 14.944L7.64673 14.9622L7.62848 14.9804L7.61022 14.9987L7.59193 15.0169L7.57363 15.0352L7.55531 15.0535L7.53697 15.0718L7.5186 15.0902L7.50022 15.1085L7.48182 15.1269L7.4634 15.1453L7.44496 15.1637L7.4265 15.1822L7.40802 15.2006L7.38952 15.2191L7.371 15.2376L7.35246 15.2561L7.33389 15.2747L7.31531 15.2932L7.29671 15.3118L7.27808 15.3304L7.25944 15.3491L7.24077 15.3677L7.22208 15.3864L7.20337 15.4051L7.18464 15.4238L7.16589 15.4425L7.14712 15.4612L7.12832 15.48L7.10951 15.4988L7.09067 15.5176L7.07181 15.5365L7.05292 15.5553L7.03402 15.5742L7.01509 15.5931L6.99614 15.612C6.27167 16.3357 5.09652 16.3361 4.37259 15.613C3.64838 14.8896 3.64838 13.7168 4.37259 12.9935L13.1214 4.2547L14.4178 5.57764L14.4177 5.57772L14.4254 5.58523Z",stroke:"currentColor"}),e("path",{d:"M12.5299 10.2848L7.32791 15.5545C7.12956 15.7555 6.88934 15.9156 6.62689 16.0225C6.08679 16.2424 5.46752 16.2239 4.94171 15.972L4.77945 16.31L4.94171 15.972C4.6339 15.8246 4.36574 15.6007 4.16736 15.3245L4.02179 15.1219C3.60142 14.5367 3.60138 13.749 4.02169 13.1637C4.12291 13.0228 4.24539 12.8984 4.38476 12.7949L5.72374 11.8006L5.76816 11.7676L5.80115 11.7232L5.91056 11.576C6.30572 11.0443 6.96187 10.4244 7.58765 10.0864C7.90229 9.91646 8.17215 9.83813 8.37711 9.84461C8.55555 9.85025 8.69852 9.9179 8.81563 10.1071C8.88186 10.2141 8.92418 10.3701 8.97238 10.5823C8.97507 10.5942 8.9778 10.6063 8.98058 10.6186C9.00013 10.7052 9.02201 10.8022 9.04751 10.8896C9.07575 10.9865 9.11828 11.1086 9.19239 11.2146C9.29475 11.361 9.4504 11.4075 9.53763 11.4247C9.63768 11.4444 9.74477 11.4446 9.84616 11.436C10.0516 11.4187 10.299 11.3594 10.5607 11.2642C11.0498 11.0864 11.6345 10.7668 12.1516 10.2848L12.5299 10.2848Z",stroke:"currentColor",strokeWidth:"0.75"})]}),Tc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",fill:"currentColor",stroke:"currentColor"}),e("path",{d:"M14.4254 5.58523L15.744 6.87427L15.7249 6.89333L15.7043 6.91394L15.6837 6.93453L15.6631 6.95509L15.6425 6.97562L15.622 6.99612L15.6015 7.01659L15.581 7.03703L15.5606 7.05745L15.5402 7.07783L15.5198 7.09819L15.4995 7.11852L15.4791 7.13882L15.4588 7.15909L15.4386 7.17934L15.4183 7.19956L15.3981 7.21974L15.3779 7.23991L15.3578 7.26004L15.3377 7.28015L15.3176 7.30022L15.2975 7.32028L15.2774 7.3403L15.2574 7.3603L15.2374 7.38027L15.2175 7.40021L15.1975 7.42013L15.1776 7.44002L15.1577 7.45988L15.1379 7.47972L15.118 7.49953L15.0982 7.51931L15.0784 7.53907L15.0587 7.5588L15.0389 7.57851L15.0192 7.59819L14.9996 7.61785L14.9799 7.63748L14.9603 7.65708L14.9407 7.67666L14.9211 7.69621L14.9016 7.71574L14.882 7.73524L14.8625 7.75472L14.8431 7.77417L14.8236 7.7936L14.8042 7.81301L14.7848 7.83239L14.7654 7.85174L14.746 7.87107L14.7267 7.89038L14.7074 7.90966L14.6881 7.92892L14.6689 7.94815L14.6496 7.96736L14.6304 7.98655L14.6113 8.00571L14.5921 8.02485L14.573 8.04397L14.5538 8.06306L14.5347 8.08213L14.5157 8.10118L14.4966 8.1202L14.4776 8.1392L14.4586 8.15818L14.4396 8.17714L14.4207 8.19607L14.4017 8.21498L14.3828 8.23387L14.3639 8.25274L14.3451 8.27158L14.3262 8.2904L14.3074 8.3092L14.2886 8.32798L14.2698 8.34674L14.2511 8.36547L14.2323 8.38418L14.2136 8.40288L14.1949 8.42155L14.1763 8.4402L14.1576 8.45883L14.139 8.47743L14.1204 8.49602L14.1018 8.51459L14.0832 8.53313L14.0647 8.55166L14.0462 8.57016L14.0277 8.58864L14.0092 8.60711L13.9907 8.62555L13.9723 8.64397L13.9538 8.66238L13.9354 8.68076L13.917 8.69913L13.8987 8.71747L13.8803 8.73579L13.862 8.7541L13.8437 8.77239L13.8254 8.79065L13.8071 8.8089L13.7889 8.82713L13.7707 8.84534L13.7524 8.86353L13.7343 8.8817L13.7161 8.89986L13.6979 8.91799L13.6798 8.93611L13.6617 8.95421L13.6436 8.97229L13.6255 8.99036L13.6074 9.0084L13.5894 9.02643L13.5713 9.04444L13.5533 9.06243L13.5353 9.0804L13.5173 9.09836L13.4994 9.1163L13.4814 9.13422L13.4635 9.15213L13.4456 9.17002L13.4277 9.18789L13.4098 9.20574L13.392 9.22358L13.3741 9.2414L13.3563 9.25921L13.3385 9.277L13.3207 9.29477L13.3029 9.31253L13.2852 9.33027L13.2674 9.34799L13.2497 9.3657L13.232 9.38339L13.2143 9.40107L13.1966 9.41873L13.1789 9.43638L13.1613 9.45401L13.1436 9.47163L13.126 9.48923L13.1084 9.50681L13.0908 9.52438L13.0733 9.54194L13.0557 9.55948L13.0381 9.57701L13.0206 9.59452L13.0031 9.61202L12.9856 9.6295L12.9681 9.64697L12.9506 9.66443L12.9332 9.68187L12.9157 9.6993L12.8983 9.71671L12.8809 9.73412L12.8634 9.7515L12.8461 9.76888L12.8287 9.78624L12.8113 9.80358L12.794 9.82092L12.7766 9.83824L12.7593 9.85555L12.742 9.87284L12.7247 9.89013L12.7074 9.9074L12.6901 9.92466L12.6728 9.9419L12.6556 9.95913L12.6383 9.97636L12.6211 9.99356L12.6039 10.0108L12.5867 10.0279L12.5695 10.0451L12.5523 10.0623L12.5351 10.0794L12.518 10.0966L12.5008 10.1137L12.4837 10.1308L12.4666 10.1479L12.4495 10.165L12.4324 10.1821L12.4153 10.1992L12.3982 10.2162L12.3811 10.2333L12.364 10.2503L12.347 10.2674L12.33 10.2844L12.3129 10.3014L12.2959 10.3184L12.2789 10.3354L12.2619 10.3524L12.2449 10.3693L12.2279 10.3863L12.211 10.4032L12.194 10.4202L12.177 10.4371L12.1601 10.454L12.1432 10.471L12.1262 10.4879L12.1093 10.5048L12.0924 10.5216L12.0755 10.5385L12.0586 10.5554L12.0417 10.5723L12.0249 10.5891L12.008 10.606L11.9911 10.6228L11.9743 10.6396L11.9575 10.6565L11.9406 10.6733L11.9238 10.6901L11.907 10.7069L11.8902 10.7237L11.8734 10.7404L11.8566 10.7572L11.8398 10.774L11.823 10.7907L11.8062 10.8075L11.7895 10.8243L11.7727 10.841L11.7559 10.8577L11.7392 10.8745L11.7225 10.8912L11.7057 10.9079L11.689 10.9246L11.6723 10.9413L11.6556 10.958L11.6389 10.9747L11.6221 10.9914L11.6054 11.0081L11.5888 11.0247L11.5721 11.0414L11.5554 11.0581L11.5387 11.0747L11.522 11.0914L11.5054 11.108L11.4887 11.1247L11.4721 11.1413L11.4554 11.1579L11.4388 11.1746L11.4221 11.1912L11.4055 11.2078L11.3888 11.2244L11.3722 11.241L11.3556 11.2576L11.339 11.2742L11.3224 11.2908L11.3057 11.3074L11.2891 11.324L11.2725 11.3406L11.2559 11.3572L11.2393 11.3738L11.2227 11.3903L11.2061 11.4069L11.1895 11.4235L11.173 11.44L11.1564 11.4566L11.1398 11.4732L11.1232 11.4897L11.1066 11.5063L11.0901 11.5228L11.0735 11.5394L11.0569 11.5559L11.0404 11.5725L11.0238 11.589L11.0072 11.6056L10.9907 11.6221L10.9741 11.6386L10.9576 11.6552L10.941 11.6717L10.9245 11.6883L10.9079 11.7048L10.8914 11.7213L10.8748 11.7378L10.8583 11.7544L10.8417 11.7709L10.8252 11.7874L10.8086 11.804L10.7921 11.8205L10.7755 11.837L10.759 11.8535L10.7424 11.8701L10.7259 11.8866L10.7094 11.9031L10.6928 11.9196L10.6763 11.9362L10.6597 11.9527L10.6432 11.9692L10.6266 11.9857L10.6101 12.0023L10.5935 12.0188L10.577 12.0353L10.5604 12.0519L10.5439 12.0684L10.5273 12.0849L10.5108 12.1015L10.4942 12.118L10.4777 12.1345L10.4611 12.1511L10.4446 12.1676L10.428 12.1841L10.4114 12.2007L10.3949 12.2172L10.3783 12.2338L10.3618 12.2503L10.3452 12.2669L10.3286 12.2834L10.312 12.3L10.2955 12.3165L10.2789 12.3331L10.2623 12.3497L10.2457 12.3662L10.2291 12.3828L10.2125 12.3994L10.1959 12.4159L10.1793 12.4325L10.1627 12.4491L10.1461 12.4657L10.1295 12.4823L10.1129 12.4989L10.0963 12.5155L10.0797 12.5321L10.0631 12.5487L10.0464 12.5653L10.0298 12.5819L10.0132 12.5985L9.99652 12.6151L9.97987 12.6318L9.96322 12.6484L9.94657 12.665L9.92991 12.6817L9.91324 12.6983L9.89657 12.715L9.87989 12.7316L9.86321 12.7483L9.84653 12.7649L9.82984 12.7816L9.81314 12.7983L9.79644 12.815L9.77973 12.8317L9.76301 12.8484L9.74629 12.8651L9.72957 12.8818L9.71283 12.8985L9.69609 12.9152L9.67935 12.9319L9.6626 12.9487L9.64584 12.9654L9.62907 12.9822L9.6123 12.9989L9.59552 13.0157L9.57873 13.0324L9.56194 13.0492L9.54514 13.066L9.52833 13.0828L9.51151 13.0996L9.49469 13.1164L9.47786 13.1332L9.46102 13.15L9.44417 13.1668L9.42732 13.1837L9.41045 13.2005L9.39358 13.2174L9.3767 13.2342L9.35981 13.2511L9.34292 13.268L9.32601 13.2849L9.3091 13.3018L9.29217 13.3187L9.27524 13.3356L9.2583 13.3525L9.24135 13.3694L9.22439 13.3864L9.20742 13.4033L9.19044 13.4203L9.17345 13.4372L9.15645 13.4542L9.13945 13.4712L9.12243 13.4882L9.1054 13.5052L9.08836 13.5222L9.07131 13.5393L9.05426 13.5563L9.03719 13.5734L9.02011 13.5904L9.00302 13.6075L8.98592 13.6246L8.9688 13.6417L8.95168 13.6588L8.93455 13.6759L8.9174 13.693L8.90024 13.7101L8.88308 13.7273L8.8659 13.7444L8.84871 13.7616L8.8315 13.7788L8.81429 13.796L8.79706 13.8132L8.77983 13.8304L8.76257 13.8477L8.74531 13.8649L8.72804 13.8821L8.71075 13.8994L8.69345 13.9167L8.67614 13.934L8.65881 13.9513L8.64147 13.9686L8.62412 13.9859L8.60676 14.0033L8.58938 14.0206L8.57199 14.038L8.55458 14.0554L8.53716 14.0728L8.51973 14.0902L8.50229 14.1076L8.48483 14.1251L8.46736 14.1425L8.44987 14.16L8.43237 14.1775L8.41485 14.195L8.39732 14.2125L8.37978 14.23L8.36222 14.2475L8.34465 14.2651L8.32706 14.2827L8.30945 14.3002L8.29184 14.3178L8.2742 14.3355L8.25656 14.3531L8.23889 14.3707L8.22121 14.3884L8.20352 14.4061L8.18581 14.4238L8.16808 14.4415L8.15034 14.4592L8.13258 14.4769L8.11481 14.4947L8.09702 14.5124L8.07921 14.5302L8.06139 14.548L8.04355 14.5658L8.0257 14.5837L8.00783 14.6015L7.98994 14.6194L7.97203 14.6373L7.95411 14.6552L7.93617 14.6731L7.91821 14.691L7.90024 14.709L7.88225 14.727L7.86424 14.7449L7.84621 14.763L7.82817 14.781L7.81011 14.799L7.79203 14.8171L7.77393 14.8352L7.75581 14.8533L7.73768 14.8714L7.71952 14.8895L7.70135 14.9076L7.68316 14.9258L7.66495 14.944L7.64673 14.9622L7.62848 14.9804L7.61022 14.9987L7.59193 15.0169L7.57363 15.0352L7.55531 15.0535L7.53697 15.0718L7.5186 15.0902L7.50022 15.1085L7.48182 15.1269L7.4634 15.1453L7.44496 15.1637L7.4265 15.1822L7.40802 15.2006L7.38952 15.2191L7.371 15.2376L7.35246 15.2561L7.33389 15.2747L7.31531 15.2932L7.29671 15.3118L7.27808 15.3304L7.25944 15.3491L7.24077 15.3677L7.22208 15.3864L7.20337 15.4051L7.18464 15.4238L7.16589 15.4425L7.14712 15.4612L7.12832 15.48L7.10951 15.4988L7.09067 15.5176L7.07181 15.5365L7.05292 15.5553L7.03402 15.5742L7.01509 15.5931L6.99614 15.612C6.27167 16.3357 5.09652 16.3361 4.37259 15.613C3.64838 14.8896 3.64838 13.7168 4.37259 12.9935L13.1214 4.2547L14.4178 5.57764L14.4177 5.57772L14.4254 5.58523Z",stroke:"black"}),e("path",{d:"M12.5299 10.2849L7.32791 15.5546C7.12956 15.7556 6.88934 15.9156 6.62689 16.0225C6.08679 16.2425 5.46752 16.224 4.94171 15.9721L4.77945 16.31L4.94171 15.9721C4.6339 15.8246 4.36574 15.6008 4.16736 15.3246L4.02179 15.122C3.60142 14.5368 3.60138 13.749 4.02169 13.1638C4.12291 13.0229 4.24539 12.8984 4.38476 12.795L5.72374 11.8006L5.76816 11.7677L5.80115 11.7233L5.91056 11.5761C6.30572 11.0444 6.96187 10.4244 7.58765 10.0865C7.90229 9.91653 8.17215 9.83821 8.37711 9.84469C8.55555 9.85033 8.69852 9.91798 8.81563 10.1072C8.88186 10.2142 8.92418 10.3701 8.97238 10.5824C8.97507 10.5942 8.9778 10.6063 8.98058 10.6187C9.00013 10.7053 9.02201 10.8022 9.04751 10.8897C9.07575 10.9866 9.11828 11.1087 9.19239 11.2147C9.29475 11.3611 9.4504 11.4075 9.53763 11.4247C9.63768 11.4445 9.74477 11.4447 9.84616 11.4361C10.0516 11.4187 10.299 11.3594 10.5607 11.2643C11.0498 11.0864 11.6345 10.7669 12.1516 10.2849L12.5299 10.2849Z",stroke:"black",strokeWidth:"0.75"})]}),zc=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"currentColor"}),e("path",{d:"M15.4237 6.90042C15.5191 6.92315 15.6152 6.94413 15.7074 6.96092C15.7135 7.05035 15.7162 7.16454 15.7138 7.30375C15.7056 7.77188 15.6408 8.43317 15.515 9.1653C15.2592 10.6537 14.774 12.3014 14.1 13.2C13.4011 14.1319 12.332 14.9694 11.4101 15.584C10.9538 15.8882 10.5429 16.1317 10.2465 16.2989C10.1617 16.3467 10.0865 16.3882 10.0224 16.423C9.97538 16.3925 9.92211 16.3576 9.86327 16.3183C9.61299 16.1515 9.26304 15.908 8.86735 15.6037C8.07099 14.9911 7.11105 14.148 6.4 13.2C5.71286 12.2838 5.10686 10.6159 4.73507 9.12872C4.55136 8.39389 4.4322 7.73262 4.38844 7.26582C4.37726 7.14653 4.37171 7.04688 4.37029 6.96627C4.68202 6.91822 5.07002 6.82212 5.46167 6.6997C6.04643 6.51692 6.71066 6.25305 7.25513 5.93001C7.78069 5.61819 8.40348 5.00685 8.92133 4.49851C8.96063 4.45994 8.99932 4.42196 9.03732 4.38474C9.32127 4.10667 9.57222 3.86458 9.78023 3.69195C9.86978 3.61763 9.94141 3.56465 9.99619 3.52986C10.0511 3.56629 10.1228 3.62162 10.2126 3.69902C10.4221 3.8796 10.6732 4.13028 10.9589 4.41605L10.9643 4.42138C11.2419 4.69905 11.5471 5.00425 11.8469 5.27159C12.1431 5.53579 12.4648 5.79139 12.7764 5.94721C13.307 6.2125 13.989 6.47149 14.5895 6.66369C14.8912 6.76025 15.179 6.8421 15.4237 6.90042ZM9.92522 3.48908C9.92521 3.48905 9.92594 3.48931 9.92744 3.48994C9.92598 3.48943 9.92523 3.48911 9.92522 3.48908Z",stroke:"currentColor"})]}),Ic=()=>s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",fill:"currentColor",stroke:"currentColor"}),e("path",{d:"M9.92516 3.4891C9.92515 3.48907 9.92588 3.48933 9.92738 3.48997C9.92592 3.48946 9.92517 3.48914 9.92516 3.4891ZM9.99613 3.52989C10.051 3.56631 10.1227 3.62164 10.2125 3.69904C10.422 3.87963 10.6731 4.1303 10.9589 4.41608L10.9642 4.4214C11.2419 4.69907 11.5471 5.00428 11.8468 5.27161C12.1431 5.53582 12.4647 5.79142 12.7763 5.94724C13.3069 6.21253 13.9889 6.47151 14.5894 6.66371C14.8911 6.76027 15.179 6.84213 15.4236 6.90044C15.519 6.92317 15.6151 6.94416 15.7074 6.96095C15.7134 7.05037 15.7162 7.16456 15.7137 7.30377C15.7056 7.7719 15.6407 8.4332 15.5149 9.16533C15.2592 10.6537 14.7739 12.3014 14.0999 13.2C13.401 14.1319 12.3319 14.9694 11.4101 15.584C10.9538 15.8882 10.5428 16.1317 10.2465 16.2989C10.1617 16.3467 10.0864 16.3882 10.0223 16.423C9.97532 16.3925 9.92205 16.3576 9.86321 16.3184C9.61293 16.1515 9.26298 15.9081 8.86729 15.6037C8.07092 14.9911 7.11099 14.1481 6.39994 13.2C5.7128 12.2838 5.10679 10.6159 4.73501 9.12874C4.5513 8.39391 4.43214 7.73264 4.38838 7.26584C4.3772 7.14656 4.37164 7.0469 4.37023 6.9663C4.68196 6.91824 5.06996 6.82215 5.46161 6.69972C6.04637 6.51694 6.7106 6.25307 7.25507 5.93003C7.78063 5.61822 8.40342 5.00687 8.92127 4.49853C8.96057 4.45996 8.99926 4.42198 9.03726 4.38477C9.32121 4.1067 9.57216 3.8646 9.78016 3.69197C9.86972 3.61765 9.94135 3.56467 9.99613 3.52989Z",stroke:"black"})]});function Ac({spanKind:n,variant:a="fill"}){const{theme:t}=W(),i=t==="dark",r=a==="fill";let o=r?e(Sc,{}):e(kc,{}),l=i?"--ac-global-color-grey-600":"--ac-global-color-grey-200";switch(n){case"llm":l=i?"--ac-global-color-orange-1000":"--ac-global-color-orange-500",o=r?e(mc,{}):e(gc,{});break;case"chain":l=i?"--ac-global-color-blue-1000":"--ac-global-color-blue-500",o=r?e(xc,{}):e(wc,{});break;case"retriever":l=i?"--ac-global-color-seafoam-1000":"--ac-global-color-seafoam-500",o=r?e(Cc,{}):e(vc,{});break;case"embedding":l=i?"--ac-global-color-indigo-1000":"--ac-global-color-indigo-500",o=r?e(bc,{}):e(fc,{});break;case"agent":l=i?"--ac-global-color-grey-600":"--ac-global-color-grey-300",o=r?e(hc,{}):e(pc,{});break;case"tool":l=i?"--ac-global-color-yellow-1200":"--ac-global-color-yellow-500",o=r?e(uc,{}):e(dc,{});break;case"reranker":l=i?"--ac-global-color-celery-1000":"--ac-global-color-celery-500",o=r?e(Lc,{}):e(yc,{});break;case"evaluator":l=i?"--ac-global-color-indigo-1000":"--ac-global-color-indigo-500",o=r?e(Tc,{}):e(Mc,{});break;case"guardrail":l=i?"--ac-global-color-fuchsia-1200":"--ac-global-color-fuchsia-500",o=r?e(Ic,{}):e(zc,{});break}return e("div",{css:m`
2401
2401
  color: var(${l});
2402
2402
  width: 20px;
2403
2403
  height: 20px;
2404
- `,title:n,children:o})}const qt=h.createContext(null);function Xt(){const n=h.useContext(qt);if(n===null)throw new Error("useTraceTree must be used within a TraceTreeProvider");return n}function Ec(n){const[a,t]=h.useState(!1),i=h.useCallback(r=>{h.startTransition(()=>{t(r)})},[]);return e(qt.Provider,{value:{isCollapsed:a,setIsCollapsed:i},children:n.children})}function Vc(n){const a=n.reduce((i,r)=>(i.set(r.spanId,{span:r,children:[]}),i),new Map),t=[];for(const i of n){const r=a.get(i.spanId);if(i.parentId===null||!a.has(i.parentId))t.push(r);else{const o=a.get(i.parentId);o&&o.children.push(r)}}for(const i of a.values())i.children.sort((r,o)=>new Date(r.span.startTime).valueOf()-new Date(o.span.startTime).valueOf());return t.sort((i,r)=>new Date(i.span.startTime).valueOf()-new Date(r.span.startTime).valueOf()),t}const Fn=30,Yt="200px";function R9(n){const{spans:a,onSpanClick:t,selectedSpanNodeId:i}=n,r=Vc(a);return e(Ec,{children:s("div",{css:m`
2404
+ `,title:n,children:o})}const qt=p.createContext(null);function Xt(){const n=p.useContext(qt);if(n===null)throw new Error("useTraceTree must be used within a TraceTreeProvider");return n}function Ec(n){const[a,t]=p.useState(!1),i=p.useCallback(r=>{p.startTransition(()=>{t(r)})},[]);return e(qt.Provider,{value:{isCollapsed:a,setIsCollapsed:i},children:n.children})}function Vc(n){const a=n.reduce((i,r)=>(i.set(r.spanId,{span:r,children:[]}),i),new Map),t=[];for(const i of n){const r=a.get(i.spanId);if(i.parentId===null||!a.has(i.parentId))t.push(r);else{const o=a.get(i.parentId);o&&o.children.push(r)}}for(const i of a.values())i.children.sort((r,o)=>new Date(r.span.startTime).valueOf()-new Date(o.span.startTime).valueOf());return t.sort((i,r)=>new Date(i.span.startTime).valueOf()-new Date(r.span.startTime).valueOf()),t}const Fn=30,Yt="200px";function R9(n){const{spans:a,onSpanClick:t,selectedSpanNodeId:i}=n,r=Vc(a);return e(Ec,{children:s("div",{css:m`
2405
2405
  display: flex;
2406
2406
  flex-direction: column;
2407
2407
  overflow: hidden;
@@ -2431,7 +2431,7 @@ fragment ViewerContext_viewer on Query {
2431
2431
  padding-left: var(--ac-global-dimension-static-size-200);
2432
2432
  }
2433
2433
  }
2434
- `,"data-testid":"trace-tree",children:r.map(o=>e(Jt,{node:o,onSpanClick:t,selectedSpanNodeId:i},o.span.id))})]})})}function Dc(){const n=ke(r=>r.showMetricsInTraceTree),a=ke(r=>r.setShowMetricsInTraceTree),{isCollapsed:t,setIsCollapsed:i}=Xt();return e("div",{className:"trace-tree-toolbar",css:m`
2434
+ `,"data-testid":"trace-tree",children:r.map(o=>e(Jt,{node:o,onSpanClick:t,selectedSpanNodeId:i},o.span.id))})]})})}function Dc(){const n=Se(r=>r.showMetricsInTraceTree),a=Se(r=>r.setShowMetricsInTraceTree),{isCollapsed:t,setIsCollapsed:i}=Xt();return e("div",{className:"trace-tree-toolbar",css:m`
2435
2435
  display: flex;
2436
2436
  flex-direction: row;
2437
2437
  justify-content: space-between;
@@ -2446,25 +2446,25 @@ fragment ViewerContext_viewer on Query {
2446
2446
  display: none;
2447
2447
  }
2448
2448
  }
2449
- `,children:s(k,{direction:"row",justifyContent:"space-between",alignItems:"center",flex:"none",gap:"size-100",width:"100%",children:[e(B,{level:3,children:"Trace"}),s(k,{direction:"row",gap:"size-100",className:"trace-tree-controls",children:[s(re,{offset:5,children:[e(ce,{children:e(D,{variant:"default",size:"S","aria-label":t?"Expand all":"Collapse all",onPress:()=>{i(!t)},leadingVisual:e(M,{svg:t?e(L0,{}):e(w0,{})})})}),e(me,{children:t?"Expand all nested spans":"Collapse all nested spans"})]}),s(re,{offset:5,children:[e(ce,{children:e(D,{size:"S","aria-label":n?"Hide metrics in trace tree":"Show metrics in trace tree",onPress:()=>{a(!n)},leadingVisual:e(M,{svg:n?e(k0,{}):e(S0,{})})})}),e(me,{children:n?"Hide metrics in trace tree":"Show metrics in trace tree"})]})]})]})})}const Pc=m`
2449
+ `,children:s(k,{direction:"row",justifyContent:"space-between",alignItems:"center",flex:"none",gap:"size-100",width:"100%",children:[e(B,{level:3,children:"Trace"}),s(k,{direction:"row",gap:"size-100",className:"trace-tree-controls",children:[s(le,{offset:5,children:[e(ue,{children:e(D,{variant:"default",size:"S","aria-label":t?"Expand all":"Collapse all",onPress:()=>{i(!t)},leadingVisual:e(M,{svg:t?e(L0,{}):e(w0,{})})})}),e(he,{children:t?"Expand all nested spans":"Collapse all nested spans"})]}),s(le,{offset:5,children:[e(ue,{children:e(D,{size:"S","aria-label":n?"Hide metrics in trace tree":"Show metrics in trace tree",onPress:()=>{a(!n)},leadingVisual:e(M,{svg:n?e(k0,{}):e(S0,{})})})}),e(he,{children:n?"Hide metrics in trace tree":"Show metrics in trace tree"})]})]})]})})}const Pc=m`
2450
2450
  font-weight: 500;
2451
2451
  color: var(--ac-global-text-color-900);
2452
2452
  display: inline-block;
2453
2453
  white-space: nowrap;
2454
2454
  overflow: hidden;
2455
2455
  text-overflow: ellipsis;
2456
- `;function Jt(n){const{node:a,selectedSpanNodeId:t,onSpanClick:i,nestingLevel:r=0}=n,o=a.children,[l,c]=h.useState(!1),{isCollapsed:d}=Xt(),g=o.length>0,u=ke(T=>T.showMetricsInTraceTree);h.useEffect(()=>{c(d)},[d]);const{name:p,latencyMs:f,statusCode:b,tokenCountTotal:v,tokenCountPrompt:L,tokenCountCompletion:S}=a.span;return s("div",{children:[e("button",{className:"button--reset",css:m`
2456
+ `;function Jt(n){const{node:a,selectedSpanNodeId:t,onSpanClick:i,nestingLevel:r=0}=n,o=a.children,[l,c]=p.useState(!1),{isCollapsed:d}=Xt(),g=o.length>0,u=Se(re=>re.showMetricsInTraceTree),h=t===a.span.id,f=p.useRef(null);p.useEffect(()=>{h&&f.current&&f.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[h]),p.useEffect(()=>{c(d)},[d]);const{name:b,latencyMs:v,statusCode:L,tokenCountTotal:S,tokenCountPrompt:T,tokenCountCompletion:j}=a.span;return s("div",{ref:f,children:[e("button",{className:"button--reset",css:m`
2457
2457
  width: 100%;
2458
2458
  overflow: hidden;
2459
2459
  cursor: pointer;
2460
- `,onClick:()=>{h.startTransition(()=>{i&&i(a.span)})},children:s(Oc,{isSelected:t===a.span.id,nestingLevel:r,children:[s(k,{direction:"row",gap:"size-100",justifyContent:"start",alignItems:"center",flex:"1 1 auto",minWidth:0,children:[e(Ac,{spanKind:a.span.spanKind}),e("span",{css:Pc,title:p,children:p}),b==="ERROR"?e(cc,{statusCode:"ERROR",css:m`
2460
+ `,onClick:()=>{p.startTransition(()=>{i&&i(a.span)})},children:s(Oc,{isSelected:t===a.span.id,nestingLevel:r,children:[s(k,{direction:"row",gap:"size-100",justifyContent:"start",alignItems:"center",flex:"1 1 auto",minWidth:0,children:[e(Ac,{spanKind:a.span.spanKind}),e("span",{css:Pc,title:b,children:b}),L==="ERROR"?e(cc,{statusCode:"ERROR",css:m`
2461
2461
  font-size: var(--ac-global-font-size-m);
2462
- `}):null,typeof v=="number"&&v>0&&u?e(lc,{tokenCountTotal:v,tokenCountPrompt:L??0,tokenCountCompletion:S??0}):null,f!=null&&u?e(ic,{latencyMs:f,showIcon:!1,size:"XS"}):null]}),e("div",{css:Nc,"data-testid":"span-controls",className:"span-controls",children:g?e($c,{isCollapsed:l,onClick:()=>{c(!l)}}):null})]})}),o.length?e("ul",{css:m`
2462
+ `}):null,typeof S=="number"&&S>0&&u?e(lc,{tokenCountTotal:S,tokenCountPrompt:T??0,tokenCountCompletion:j??0}):null,v!=null&&u?e(ic,{latencyMs:v,showIcon:!1,size:"XS"}):null]}),e("div",{css:Nc,"data-testid":"span-controls",className:"span-controls",children:g?e($c,{isCollapsed:l,onClick:()=>{c(!l)}}):null})]})}),o.length?e("ul",{css:m`
2463
2463
  display: ${l?"none":"flex"};
2464
2464
  flex-direction: column;
2465
- `,children:o.map((T,j)=>{const fe=o[j+1];return s("li",{css:m`
2465
+ `,children:o.map((re,ve)=>{const oe=o[ve+1];return s("li",{css:m`
2466
2466
  position: relative;
2467
- `,children:[fe?e(Fc,{...fe.span,nestingLevel:r}):null,e(_c,{...T.span,nestingLevel:r}),e(Jt,{node:T,onSpanClick:i,selectedSpanNodeId:t,nestingLevel:r+1})]},T.span.spanId)})}):null]})}function Oc(n){return e("div",{className:X("span-node-wrap",{"is-selected":n.isSelected}),css:m`
2467
+ `,children:[oe?e(Fc,{...oe.span,nestingLevel:r}):null,e(_c,{...re.span,nestingLevel:r}),e(Jt,{node:re,onSpanClick:i,selectedSpanNodeId:t,nestingLevel:r+1})]},re.span.spanId)})}):null]})}function Oc(n){return e("div",{className:X("span-node-wrap",{"is-selected":n.isSelected}),css:m`
2468
2468
  width: 100%;
2469
2469
  display: flex;
2470
2470
  flex-direction: row;
@@ -2531,13 +2531,13 @@ fragment ViewerContext_viewer on Query {
2531
2531
  &.is-collapsed {
2532
2532
  transform: rotate(-90deg);
2533
2533
  }
2534
- `;function $c({isCollapsed:n,onClick:a}){return e("button",{onClick:t=>{t.stopPropagation(),t.preventDefault(),a()},className:X("button--reset collapse-toggle-button",{"is-collapsed":n}),css:Rc,children:e(M,{svg:e(wt,{})})})}function Hc(n){return h.useMemo(()=>{try{const a=JSON.parse(n);return{text:JSON.stringify(a,null,2),textType:"json"}}catch{return{text:n,textType:"string"}}},[n])}function Kc({children:n}){const{text:a,textType:t}=Hc(n);if(t==="string")return e("pre",{css:m`
2534
+ `;function $c({isCollapsed:n,onClick:a}){return e("button",{onClick:t=>{t.stopPropagation(),t.preventDefault(),a()},className:X("button--reset collapse-toggle-button",{"is-collapsed":n}),css:Rc,children:e(M,{svg:e(wt,{})})})}function Hc(n){return p.useMemo(()=>{try{const a=JSON.parse(n);return{text:JSON.stringify(a,null,2),textType:"json"}}catch{return{text:n,textType:"string"}}},[n])}function Kc({children:n}){const{text:a,textType:t}=Hc(n);if(t==="string")return e("pre",{css:m`
2535
2535
  white-space: pre-wrap;
2536
2536
  text-wrap: wrap;
2537
2537
  overflow-wrap: anywhere;
2538
2538
  font-size: var(--ac-global-font-size-s);
2539
2539
  margin: 0;
2540
- `,children:a});if(t==="json")return e(Pt,{value:a});I()}const ei=h.createContext(null);function ni(){let n=h.useContext(ei);return n===null&&(console.warn("useMarkdownMode must be used within a MarkdownDisplayProvider"),n={mode:"text",setMode:()=>{}}),n}function $9(n){const a=ke(r=>r.markdownDisplayMode),t=ke(r=>r.setMarkdownDisplayMode),i=h.useCallback(r=>{h.startTransition(()=>{t(r)})},[t]);return e(ei.Provider,{value:{mode:a,setMode:i},children:n.children})}const Bc=m`
2540
+ `,children:a});if(t==="json")return e(Pt,{value:a});I()}const ei=p.createContext(null);function ni(){let n=p.useContext(ei);return n===null&&(console.warn("useMarkdownMode must be used within a MarkdownDisplayProvider"),n={mode:"text",setMode:()=>{}}),n}function $9(n){const a=Se(r=>r.markdownDisplayMode),t=Se(r=>r.setMarkdownDisplayMode),i=p.useCallback(r=>{p.startTransition(()=>{t(r)})},[t]);return e(ei.Provider,{value:{mode:a,setMode:i},children:n.children})}const Bc=m`
2541
2541
  a {
2542
2542
  color: var(--ac-global-link-color);
2543
2543
  &:visited {
@@ -2551,7 +2551,7 @@ fragment ViewerContext_viewer on Query {
2551
2551
  p:last-child {
2552
2552
  margin-bottom: 0;
2553
2553
  }
2554
- `;function Zc({children:n,mode:a}){return a==="markdown"?e("div",{css:Bc,children:e(mr,{remarkPlugins:[pr],children:n})}):e(Kc,{children:n})}function H9({children:n}){const{mode:a}=ni();return e(Zc,{mode:a,children:n})}const jc=["text","markdown"];function Gc(n){return typeof n=="string"&&jc.includes(n)}function Uc({mode:n,onModeChange:a}){return s(i1,{"aria-label":"Markdown Mode",selectedKeys:[n],size:"S",onSelectionChange:t=>{if(t.size===0)return;const i=t.keys().next().value;if(Gc(i))a(i);else throw new Error(`Unknown markdown mode: ${i}`)},children:[e(ie,{"aria-label":"text",id:"text",children:"Text"}),e(ie,{"aria-label":"markdown",id:"markdown",children:"Markdown"})]})}function K9(){const{mode:n,setMode:a}=ni();return e(Uc,{mode:n,onModeChange:a})}function B9(n){const{spanKind:a,size:t="M"}=n,i=h.useMemo(()=>{let r="var(--ac-global-color-grey-300)";switch(a){case"llm":r="var(--ac-global-color-orange-500)";break;case"chain":r="var(--ac-global-color-blue-500)";break;case"retriever":r="var(--ac-global-color-seafoam-500)";break;case"reranker":r="var(--ac-global-color-celery-500)";break;case"embedding":r="var(--ac-global-color-indigo-500)";break;case"agent":r="var(--ac-global-color-grey-500)";break;case"tool":r="var(--ac-global-color-yellow-500)";break;case"evaluator":r="var(--ac-global-color-indigo-500)";break;case"guardrail":r="var(--ac-global-color-fuchsia-500)";break}return r},[a]);return e(xe,{color:i,size:t,children:a})}const Wc=h.forwardRef(({children:n,title:a,panelProps:t,panelResizeHandleProps:i,resizable:r=!1,bordered:o=!0},l)=>{const c=h.useRef(null);h.useImperativeHandle(l,()=>c.current);const[d,g]=h.useState(!1),u=()=>{const p=c.current;p!=null&&p.isCollapsed()?p==null||p.expand(35):p==null||p.collapse()};return s(K,{children:[r&&e(hr,{...i,"data-bordered":o,css:m(Js,m`
2554
+ `;function Zc({children:n,mode:a}){return a==="markdown"?e("div",{css:Bc,children:e(mr,{remarkPlugins:[pr],children:n})}):e(Kc,{children:n})}function H9({children:n}){const{mode:a}=ni();return e(Zc,{mode:a,children:n})}const jc=["text","markdown"];function Gc(n){return typeof n=="string"&&jc.includes(n)}function Uc({mode:n,onModeChange:a}){return s(i1,{"aria-label":"Markdown Mode",selectedKeys:[n],size:"S",onSelectionChange:t=>{if(t.size===0)return;const i=t.keys().next().value;if(Gc(i))a(i);else throw new Error(`Unknown markdown mode: ${i}`)},children:[e(ie,{"aria-label":"text",id:"text",children:"Text"}),e(ie,{"aria-label":"markdown",id:"markdown",children:"Markdown"})]})}function K9(){const{mode:n,setMode:a}=ni();return e(Uc,{mode:n,onModeChange:a})}function B9(n){const{spanKind:a,size:t="M"}=n,i=p.useMemo(()=>{let r="var(--ac-global-color-grey-300)";switch(a){case"llm":r="var(--ac-global-color-orange-500)";break;case"chain":r="var(--ac-global-color-blue-500)";break;case"retriever":r="var(--ac-global-color-seafoam-500)";break;case"reranker":r="var(--ac-global-color-celery-500)";break;case"embedding":r="var(--ac-global-color-indigo-500)";break;case"agent":r="var(--ac-global-color-grey-500)";break;case"tool":r="var(--ac-global-color-yellow-500)";break;case"evaluator":r="var(--ac-global-color-indigo-500)";break;case"guardrail":r="var(--ac-global-color-fuchsia-500)";break}return r},[a]);return e(ke,{color:i,size:t,children:a})}const Wc=p.forwardRef(({children:n,title:a,panelProps:t,panelResizeHandleProps:i,resizable:r=!1,bordered:o=!0},l)=>{const c=p.useRef(null);p.useImperativeHandle(l,()=>c.current);const[d,g]=p.useState(!1),u=()=>{const h=c.current;h!=null&&h.isCollapsed()?h==null||h.expand(35):h==null||h.collapse()};return s(K,{children:[r&&e(hr,{...i,"data-bordered":o,css:m(Js,m`
2555
2555
  border-radius: var(--ac-global-rounding-small);
2556
2556
  opacity: 1;
2557
2557
  background-color: unset;
@@ -2571,7 +2571,7 @@ fragment ViewerContext_viewer on Query {
2571
2571
  &:not([data-resize-handle-state="drag"]) ~ [data-panel] {
2572
2572
  // transition: flex 0.2s ease-in-out;
2573
2573
  }
2574
- `)}),e(qc,{onClick:u,collapsed:d,bordered:o,children:a}),e(fr,{maxSize:100,...t,ref:c,collapsible:!0,onCollapse:()=>{var p;g(!0),(p=t==null?void 0:t.onCollapse)==null||p.call(t)},onExpand:()=>{var p;g(!1),(p=t==null?void 0:t.onExpand)==null||p.call(t)},children:n})]})});Wc.displayName="TitledPanel";const Qc=m`
2574
+ `)}),e(qc,{onClick:u,collapsed:d,bordered:o,children:a}),e(fr,{maxSize:100,...t,ref:c,collapsible:!0,onCollapse:()=>{var h;g(!0),(h=t==null?void 0:t.onCollapse)==null||h.call(t)},onExpand:()=>{var h;g(!1),(h=t==null?void 0:t.onExpand)==null||h.call(t)},children:n})]})});Wc.displayName="TitledPanel";const Qc=m`
2575
2575
  all: unset;
2576
2576
  width: 100%;
2577
2577
  &:hover {
@@ -2700,7 +2700,7 @@ fragment SpanAnnotationsEditor_spanAnnotations on Span {
2700
2700
  explanation
2701
2701
  }
2702
2702
  }
2703
- `}}}();oi.hash="3d3c7c9086ae7d0cf5e7b43478407571";function Xc(n){const{kind:a}=n;return e(xe,{size:"S",color:a==="HUMAN"?"var(--ac-global-color-blue-500) ":"var(--ac-global-color-orange-500)",children:a})}const li=function(){var n=[{defaultValue:null,kind:"LocalArgument",name:"input"},{defaultValue:null,kind:"LocalArgument",name:"spanId"}],a=[{items:[{kind:"Variable",name:"input.0",variableName:"input"}],kind:"ListValue",name:"input"}],t=[{kind:"Variable",name:"id",variableName:"spanId"}],i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"NewSpanAnnotationFormMutation",selections:[{alias:null,args:a,concreteType:"SpanAnnotationMutationPayload",kind:"LinkedField",name:"createSpanAnnotations",plural:!1,selections:[{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"SpanAnnotationsEditor_spanAnnotations"}],type:"Span",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"NewSpanAnnotationFormMutation",selections:[{alias:null,args:a,concreteType:"SpanAnnotationMutationPayload",kind:"LinkedField",name:"createSpanAnnotations",plural:!1,selections:[{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},i,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SpanAnnotation",kind:"LinkedField",name:"spanAnnotations",plural:!0,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"annotatorKind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explanation",storageKey:null}],storageKey:null}],type:"Span",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{cacheID:"5fd2a41b2892f32d1bfb9c613543b337",id:null,metadata:{},name:"NewSpanAnnotationFormMutation",operationKind:"mutation",text:`mutation NewSpanAnnotationFormMutation(
2703
+ `}}}();oi.hash="3d3c7c9086ae7d0cf5e7b43478407571";function Xc(n){const{kind:a}=n;return e(ke,{size:"S",color:a==="HUMAN"?"var(--ac-global-color-blue-500) ":"var(--ac-global-color-orange-500)",children:a})}const li=function(){var n=[{defaultValue:null,kind:"LocalArgument",name:"input"},{defaultValue:null,kind:"LocalArgument",name:"spanId"}],a=[{items:[{kind:"Variable",name:"input.0",variableName:"input"}],kind:"ListValue",name:"input"}],t=[{kind:"Variable",name:"id",variableName:"spanId"}],i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"NewSpanAnnotationFormMutation",selections:[{alias:null,args:a,concreteType:"SpanAnnotationMutationPayload",kind:"LinkedField",name:"createSpanAnnotations",plural:!1,selections:[{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"SpanAnnotationsEditor_spanAnnotations"}],type:"Span",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"NewSpanAnnotationFormMutation",selections:[{alias:null,args:a,concreteType:"SpanAnnotationMutationPayload",kind:"LinkedField",name:"createSpanAnnotations",plural:!1,selections:[{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},i,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SpanAnnotation",kind:"LinkedField",name:"spanAnnotations",plural:!0,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"annotatorKind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explanation",storageKey:null}],storageKey:null}],type:"Span",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{cacheID:"5fd2a41b2892f32d1bfb9c613543b337",id:null,metadata:{},name:"NewSpanAnnotationFormMutation",operationKind:"mutation",text:`mutation NewSpanAnnotationFormMutation(
2704
2704
  $input: CreateSpanAnnotationInput!
2705
2705
  $spanId: GlobalID!
2706
2706
  ) {
@@ -2732,7 +2732,7 @@ fragment SpanAnnotationsEditor_spanAnnotations on Span {
2732
2732
  `}}}();li.hash="acaf5ff43538a6846f388c51e176a2a6";const Yc=m`
2733
2733
  color: var(--ac-global-text-color-900);
2734
2734
  font-size: 12px;
2735
- `;function si(n){const{initialData:a,isReadOnly:t,onSubmit:i,isSubmitting:r=!1}=n,{control:o,handleSubmit:l,formState:{isDirty:c,isValid:d},setError:g,reset:u}=Se({defaultValues:a,disabled:t}),p=h.useCallback(b=>{const v=!b.label,L=b.score===""||b.score==null;if(v&&L){g("label",{type:"manual",message:"Label or score is required"}),g("score",{type:"manual",message:"Label or score is required"});return}const S={...b,score:b.score!=null?parseFloat(b.score.toString()):null};i&&i(S),u(S)},[i,g,u]),f=!a.explanation;return s(Me,{onSubmit:l(p),children:[e(w,{padding:"size-100",children:s(k,{direction:"column",gap:"size-100",children:[s("div",{css:m`
2735
+ `;function si(n){const{initialData:a,isReadOnly:t,onSubmit:i,isSubmitting:r=!1}=n,{control:o,handleSubmit:l,formState:{isDirty:c,isValid:d},setError:g,reset:u}=Me({defaultValues:a,disabled:t}),h=p.useCallback(b=>{const v=!b.label,L=b.score===""||b.score==null;if(v&&L){g("label",{type:"manual",message:"Label or score is required"}),g("score",{type:"manual",message:"Label or score is required"});return}const S={...b,score:b.score!=null?parseFloat(b.score.toString()):null};i&&i(S),u(S)},[i,g,u]),f=!a.explanation;return s(Te,{onSubmit:l(h),children:[e(w,{padding:"size-100",children:s(k,{direction:"column",gap:"size-100",children:[s("div",{css:m`
2736
2736
  display: flex;
2737
2737
  flex-direction: row;
2738
2738
  width: 100%;
@@ -2781,16 +2781,16 @@ fragment SpanAnnotationsEditor_spanAnnotations on Span {
2781
2781
  explanation
2782
2782
  }
2783
2783
  }
2784
- `}}}();ci.hash="43544621e6f7772b43f67ebf95f80505";function ed(n){const{onDelete:a,isDisabled:t=!1,buttonVariant:i="quiet",buttonSize:r="compact"}=n;return e("div",{onClick:o=>{o.preventDefault(),o.stopPropagation()},children:e(_a,{align:"end",buttonVariant:i,buttonSize:r,isDisabled:t,onAction:o=>{switch(o){case"deleteAnnotation":a();break}},children:e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(I1,{})}),e(y,{children:"Delete"})]})},"deleteAnnotation")})})}function nd(n){const{annotationId:a,spanNodeId:t,annotationName:i,onSpanAnnotationActionSuccess:r,onSpanAnnotationActionError:o,buttonVariant:l="quiet",buttonSize:c="compact"}=n,[d,g]=h.useState(null),[u,p]=N.useMutation(ci),f=h.useCallback(()=>{h.startTransition(()=>{u({variables:{annotationId:a,spanId:t},onCompleted:()=>{r({title:"Annotation Deleted",message:`Annotation ${i} has been deleted.`})},onError:v=>{o(v)}})})},[u,a,t,r,i,o]),b=h.useCallback(()=>{g(s(pe,{size:"S",title:"Delete Annotation",children:[e(w,{padding:"size-200",children:e(y,{color:"danger",children:`Are you sure you want to delete annotation ${i}? This cannot be undone.`})}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:e(k,{direction:"row",justifyContent:"end",children:e(D,{variant:"danger",onPress:()=>{f(),g(null)},children:"Delete Annotation"})})})]}))},[f,i]);return s("div",{children:[e(ed,{onDelete:b,isDisabled:p,buttonVariant:l,buttonSize:c}),e(y1,{type:"modal",isDismissable:!0,onDismiss:()=>g(null),children:d})]})}function ad(n){const{projectId:a,spanNodeId:t}=n,[i,r]=h.useState(null),o=w1();return e(w,{height:"100%",maxHeight:"100%",overflow:"auto",children:s(k,{direction:"column",height:"100%",children:[e(h.Suspense,{children:e(rd,{extraAnnotationCards:i?e(ld,{spanNodeId:t,name:i,onDelete:()=>{r(null)},onCreated:()=>{r(null),o({title:"New Span Annotation",message:`Annotation ${i} has been created.`})}}):null,...n})}),e(w,{paddingY:"size-100",paddingX:"size-100",borderTopWidth:"thin",borderColor:"dark",width:"100%",flex:"none",children:e(k,{direction:"row",alignItems:"center",justifyContent:"end",width:"100%",children:e(td,{projectId:a,spanNodeId:t,disabled:i!==null,onAnnotationNameSelect:r})})})]})})}function td(n){const{projectId:a,disabled:t=!1,spanNodeId:i,onAnnotationNameSelect:r}=n,[o,l]=h.useState(!1);return s(hn,{placement:"bottom end",crossOffset:300,isOpen:o,onOpenChange:c=>{l(c)},children:[e(ce,{children:e(D,{variant:t?"default":"primary",isDisabled:t,size:"S",leadingVisual:e(M,{svg:e(Tt,{})}),onPress:()=>{l(!0)},children:"New Annotation"})}),e(id,{projectId:a,spanNodeId:i,onAnnotationNameSelect:c=>{r(c),l(!1)}})]})}function id(n){const{projectId:a,spanNodeId:t,onAnnotationNameSelect:i}=n;return e(Fa,{title:"New Annotation",backgroundColor:"light",borderColor:"light",variant:"compact",bodyStyle:{padding:0},children:e(h.Suspense,{children:e(cd,{projectId:a,spanId:t,onAnnotationNameSelect:i})})})}function rd(n){const a=N.useLazyLoadQuery(oi,{spanId:n.spanNodeId},{fetchPolicy:"store-and-network"});return e(od,{span:a.span,extraAnnotationCards:n.extraAnnotationCards})}function od(n){const{span:a,extraAnnotationCards:t}=n,[i]=N.useRefetchableFragment(ri,a),r=i.spanAnnotations||[],o=r.length>0,l=r.length;return s(w,{height:"100%",maxHeight:"100%",overflow:"auto",children:[!o&&!t&&e(Yl,{graphicKey:"documents",message:"No annotations for this span"}),s(P0,{defaultExpandedKeys:[...r.map(c=>c.id),"new-annotation"],size:"S",children:[r.map((c,d)=>e(sd,{annotation:c,spanNodeId:i.id},`${d}_${c.name}`)),t]},l)]})}function ld(n){const{spanNodeId:a,name:t,onDelete:i,onCreated:r}=n;return s(It,{id:"new-annotation",children:[e(Et,{arrowPosition:"start",children:s(k,{gap:"size-100",alignItems:"center",width:"100%",justifyContent:"space-between",css:m`
2784
+ `}}}();ci.hash="43544621e6f7772b43f67ebf95f80505";function ed(n){const{onDelete:a,isDisabled:t=!1,buttonVariant:i="quiet",buttonSize:r="compact"}=n;return e("div",{onClick:o=>{o.preventDefault(),o.stopPropagation()},children:e(_a,{align:"end",buttonVariant:i,buttonSize:r,isDisabled:t,onAction:o=>{switch(o){case"deleteAnnotation":a();break}},children:e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(I1,{})}),e(y,{children:"Delete"})]})},"deleteAnnotation")})})}function nd(n){const{annotationId:a,spanNodeId:t,annotationName:i,onSpanAnnotationActionSuccess:r,onSpanAnnotationActionError:o,buttonVariant:l="quiet",buttonSize:c="compact"}=n,[d,g]=p.useState(null),[u,h]=N.useMutation(ci),f=p.useCallback(()=>{p.startTransition(()=>{u({variables:{annotationId:a,spanId:t},onCompleted:()=>{r({title:"Annotation Deleted",message:`Annotation ${i} has been deleted.`})},onError:v=>{o(v)}})})},[u,a,t,r,i,o]),b=p.useCallback(()=>{g(s(fe,{size:"S",title:"Delete Annotation",children:[e(w,{padding:"size-200",children:e(y,{color:"danger",children:`Are you sure you want to delete annotation ${i}? This cannot be undone.`})}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:e(k,{direction:"row",justifyContent:"end",children:e(D,{variant:"danger",onPress:()=>{f(),g(null)},children:"Delete Annotation"})})})]}))},[f,i]);return s("div",{children:[e(ed,{onDelete:b,isDisabled:h,buttonVariant:l,buttonSize:c}),e(y1,{type:"modal",isDismissable:!0,onDismiss:()=>g(null),children:d})]})}function ad(n){const{projectId:a,spanNodeId:t}=n,[i,r]=p.useState(null),o=w1();return e(w,{height:"100%",maxHeight:"100%",overflow:"auto",children:s(k,{direction:"column",height:"100%",children:[e(p.Suspense,{children:e(rd,{extraAnnotationCards:i?e(ld,{spanNodeId:t,name:i,onDelete:()=>{r(null)},onCreated:()=>{r(null),o({title:"New Span Annotation",message:`Annotation ${i} has been created.`})}}):null,...n})}),e(w,{paddingY:"size-100",paddingX:"size-100",borderTopWidth:"thin",borderColor:"dark",width:"100%",flex:"none",children:e(k,{direction:"row",alignItems:"center",justifyContent:"end",width:"100%",children:e(td,{projectId:a,spanNodeId:t,disabled:i!==null,onAnnotationNameSelect:r})})})]})})}function td(n){const{projectId:a,disabled:t=!1,spanNodeId:i,onAnnotationNameSelect:r}=n,[o,l]=p.useState(!1);return s(hn,{placement:"bottom end",crossOffset:300,isOpen:o,onOpenChange:c=>{l(c)},children:[e(ue,{children:e(D,{variant:t?"default":"primary",isDisabled:t,size:"S",leadingVisual:e(M,{svg:e(Tt,{})}),onPress:()=>{l(!0)},children:"New Annotation"})}),e(id,{projectId:a,spanNodeId:i,onAnnotationNameSelect:c=>{r(c),l(!1)}})]})}function id(n){const{projectId:a,spanNodeId:t,onAnnotationNameSelect:i}=n;return e(Fa,{title:"New Annotation",backgroundColor:"light",borderColor:"light",variant:"compact",bodyStyle:{padding:0},children:e(p.Suspense,{children:e(cd,{projectId:a,spanId:t,onAnnotationNameSelect:i})})})}function rd(n){const a=N.useLazyLoadQuery(oi,{spanId:n.spanNodeId},{fetchPolicy:"store-and-network"});return e(od,{span:a.span,extraAnnotationCards:n.extraAnnotationCards})}function od(n){const{span:a,extraAnnotationCards:t}=n,[i]=N.useRefetchableFragment(ri,a),r=i.spanAnnotations||[],o=r.length>0,l=r.length;return s(w,{height:"100%",maxHeight:"100%",overflow:"auto",children:[!o&&!t&&e(Yl,{graphicKey:"documents",message:"No annotations for this span"}),s(P0,{defaultExpandedKeys:[...r.map(c=>c.id),"new-annotation"],size:"S",children:[r.map((c,d)=>e(sd,{annotation:c,spanNodeId:i.id},`${d}_${c.name}`)),t]},l)]})}function ld(n){const{spanNodeId:a,name:t,onDelete:i,onCreated:r}=n;return s(It,{id:"new-annotation",children:[e(Et,{arrowPosition:"start",children:s(k,{gap:"size-100",alignItems:"center",width:"100%",justifyContent:"space-between",css:m`
2785
2785
  .ac-button[data-size="compact"] {
2786
2786
  padding: 0;
2787
2787
  }
2788
- `,children:[t,e(k,{direction:"row",alignItems:"center",gap:"size-100",children:e(D,{size:"S","aria-label":"delete annotation",variant:"quiet",leadingVisual:e(M,{svg:e(I1,{})}),onPress:i})})]})}),s(At,{children:[e(t1,{variant:"info",banner:!0,children:"Fill out the fields below and click save to create a new annotation."}),e(Jc,{annotationName:t,spanNodeId:a,onCreated:r})]})]})}function sd(n){const{annotation:a,spanNodeId:t}=n,[i,r]=h.useState(null),o=w1(),[l,c]=N.useMutation(ti),d=h.useCallback(g=>{h.startTransition(()=>{l({variables:{annotationId:a.id,spanId:t,...g},onCompleted:()=>{o({title:"Annotation Updated",message:`Annotation ${a.name} has been updated.`})},onError:u=>{r(u)}})})},[a.id,a.name,l,o,t]);return s(It,{id:a.id,children:[e(Et,{arrowPosition:"start",children:s(k,{gap:"size-100",alignItems:"center",width:"100%",justifyContent:"space-between",css:m`
2788
+ `,children:[t,e(k,{direction:"row",alignItems:"center",gap:"size-100",children:e(D,{size:"S","aria-label":"delete annotation",variant:"quiet",leadingVisual:e(M,{svg:e(I1,{})}),onPress:i})})]})}),s(At,{children:[e(t1,{variant:"info",banner:!0,children:"Fill out the fields below and click save to create a new annotation."}),e(Jc,{annotationName:t,spanNodeId:a,onCreated:r})]})]})}function sd(n){const{annotation:a,spanNodeId:t}=n,[i,r]=p.useState(null),o=w1(),[l,c]=N.useMutation(ti),d=p.useCallback(g=>{p.startTransition(()=>{l({variables:{annotationId:a.id,spanId:t,...g},onCompleted:()=>{o({title:"Annotation Updated",message:`Annotation ${a.name} has been updated.`})},onError:u=>{r(u)}})})},[a.id,a.name,l,o,t]);return s(It,{id:a.id,children:[e(Et,{arrowPosition:"start",children:s(k,{gap:"size-100",alignItems:"center",width:"100%",justifyContent:"space-between",css:m`
2789
2789
  button[data-size="compact"],
2790
2790
  button {
2791
2791
  padding: 0;
2792
2792
  }
2793
- `,children:[a.name,s(k,{direction:"row",alignItems:"center",gap:"size-100",children:[a.annotatorKind==="HUMAN"&&e(Xc,{kind:a.annotatorKind}),e(nd,{annotationId:a.id,spanNodeId:t,annotationName:a.name,onSpanAnnotationActionSuccess:g=>{o(g)},onSpanAnnotationActionError:g=>{r(g)}})]})]})}),s(At,{children:[i&&e(t1,{variant:"danger",banner:!0,children:i.message}),e(si,{initialData:a,isReadOnly:a.annotatorKind==="LLM",isSubmitting:c,onSubmit:g=>{d(g)}})]})]})}function cd(n){const{projectId:a,spanId:t,onAnnotationNameSelect:i}=n,r=N.useLazyLoadQuery(ai,{projectId:a,spanId:t}),[o,l]=h.useState(""),c=h.useMemo(()=>{var u,p;return((p=(u=r==null?void 0:r.span)==null?void 0:u.spanAnnotations)==null?void 0:p.map(f=>f.name))||[]},[r.span.spanAnnotations]),d=h.useMemo(()=>(r.project.spanAnnotationNames||[]).filter(p=>!c.includes(p)),[r.project.spanAnnotationNames,c]),g=d.length>0;return s(K,{children:[e(w,{padding:"size-200",children:e(Me,{onSubmit:u=>{u.preventDefault(),i(o)},children:s(k,{direction:"row",gap:"size-100",alignItems:"end",children:[s($,{value:o,onChange:u=>{l(u)},children:[e(O,{children:"Annotation Name"}),e(H,{placeholder:"e.x. correctness"})]}),e(D,{variant:"primary",type:"submit",children:"Create"})]})})}),g&&s(K,{children:[e(w,{borderTopWidth:"thin",borderBottomWidth:"thin",borderColor:"light",paddingStart:"size-200",paddingTop:"size-100",paddingBottom:"size-100",backgroundColor:"grey-300",children:e("label",{children:"select from existing"})}),e(Kr,{selectionMode:"single",onSelectionChange:u=>{if(u==="all"||u.size===0)return;const f=u.values().next().value;l(f||"")},disabledKeys:c,children:d.map(u=>e(F,{children:u},u))})]})]})}function Z9(n){return e(pe,{title:"Annotate",size:"M",isDismissable:!0,children:e(ad,{...n})})}function dd({listeners:n,attributes:a},t){return e("button",{ref:t,...n,...a,"aria-roledescription":"draggable","aria-pressed":"false","aria-disabled":"false",className:"button--reset",css:m`
2793
+ `,children:[a.name,s(k,{direction:"row",alignItems:"center",gap:"size-100",children:[a.annotatorKind==="HUMAN"&&e(Xc,{kind:a.annotatorKind}),e(nd,{annotationId:a.id,spanNodeId:t,annotationName:a.name,onSpanAnnotationActionSuccess:g=>{o(g)},onSpanAnnotationActionError:g=>{r(g)}})]})]})}),s(At,{children:[i&&e(t1,{variant:"danger",banner:!0,children:i.message}),e(si,{initialData:a,isReadOnly:a.annotatorKind==="LLM",isSubmitting:c,onSubmit:g=>{d(g)}})]})]})}function cd(n){const{projectId:a,spanId:t,onAnnotationNameSelect:i}=n,r=N.useLazyLoadQuery(ai,{projectId:a,spanId:t}),[o,l]=p.useState(""),c=p.useMemo(()=>{var u,h;return((h=(u=r==null?void 0:r.span)==null?void 0:u.spanAnnotations)==null?void 0:h.map(f=>f.name))||[]},[r.span.spanAnnotations]),d=p.useMemo(()=>(r.project.spanAnnotationNames||[]).filter(h=>!c.includes(h)),[r.project.spanAnnotationNames,c]),g=d.length>0;return s(K,{children:[e(w,{padding:"size-200",children:e(Te,{onSubmit:u=>{u.preventDefault(),i(o)},children:s(k,{direction:"row",gap:"size-100",alignItems:"end",children:[s($,{value:o,onChange:u=>{l(u)},children:[e(O,{children:"Annotation Name"}),e(H,{placeholder:"e.x. correctness"})]}),e(D,{variant:"primary",type:"submit",children:"Create"})]})})}),g&&s(K,{children:[e(w,{borderTopWidth:"thin",borderBottomWidth:"thin",borderColor:"light",paddingStart:"size-200",paddingTop:"size-100",paddingBottom:"size-100",backgroundColor:"grey-300",children:e("label",{children:"select from existing"})}),e(Kr,{selectionMode:"single",onSelectionChange:u=>{if(u==="all"||u.size===0)return;const f=u.values().next().value;l(f||"")},disabledKeys:c,children:d.map(u=>e(F,{children:u},u))})]})]})}function Z9(n){return e(fe,{title:"Annotate",size:"M",isDismissable:!0,children:e(ad,{...n})})}function dd({listeners:n,attributes:a},t){return e("button",{ref:t,...n,...a,"aria-roledescription":"draggable","aria-pressed":"false","aria-disabled":"false",className:"button--reset",css:m`
2794
2794
  cursor: grab;
2795
2795
  background-color: var(--ac-global-color-grey-200);
2796
2796
  border: 1px solid var(--ac-global-color-grey-400);
@@ -2802,9 +2802,9 @@ fragment SpanAnnotationsEditor_spanAnnotations on Span {
2802
2802
  var(--ac-global-dimension-size-50);
2803
2803
  border-radius: var(--ac-global-rounding-small);
2804
2804
  overflow: hidden;
2805
- `,children:e("svg",{viewBox:"0 0 20 20",width:"12",fill:"currentColor",children:e("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})}const j9=U.forwardRef(dd);function G9({preInitializationMinHeight:n,children:a}){const[t,i]=h.useState(!1),[r,o]=h.useState(!1),l=h.useRef(null);return h.useEffect(()=>{const c=new IntersectionObserver(([g])=>{i(g.isIntersecting)});l.current&&c.observe(l.current);const d=l.current;return()=>{d&&c.unobserve(d)}},[]),h.useLayoutEffect(()=>{t&&!r&&o(!0)},[r,t]),e("div",{ref:l,css:m`
2805
+ `,children:e("svg",{viewBox:"0 0 20 20",width:"12",fill:"currentColor",children:e("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})}const j9=U.forwardRef(dd);function G9({preInitializationMinHeight:n,children:a}){const[t,i]=p.useState(!1),[r,o]=p.useState(!1),l=p.useRef(null);return p.useEffect(()=>{const c=new IntersectionObserver(([g])=>{i(g.isIntersecting)});l.current&&c.observe(l.current);const d=l.current;return()=>{d&&c.unobserve(d)}},[]),p.useLayoutEffect(()=>{t&&!r&&o(!0)},[r,t]),e("div",{ref:l,css:m`
2806
2806
  min-height: ${r?"auto":`${n}px`};
2807
- `,children:a})}function U9(n){return Object.values(ge).includes(n)}function W9(n){return s("div",{role:"toolbar",css:m`
2807
+ `,children:a})}function U9(n){return Object.values(pe).includes(n)}function W9(n){return s("div",{role:"toolbar",css:m`
2808
2808
  padding: var(--ac-global-dimension-static-size-50)
2809
2809
  var(--ac-global-dimension-static-size-200);
2810
2810
  display: flex;
@@ -2820,15 +2820,15 @@ fragment SpanAnnotationsEditor_spanAnnotations on Span {
2820
2820
  flex-direction: row;
2821
2821
  gap: var(--ac-global-dimension-static-size-100);
2822
2822
  }
2823
- `,children:[e("div",{"data-testid":"toolbar-main",className:"toolbar__main",children:n.children}),n.extra?e("div",{"data-testid":"toolbar-extra",children:n.extra}):null]})}function Q9(n){const{timeRange:a,timePreset:t,setTimePreset:i}=yo(),{primaryInferences:{name:r}}=L1(),o=r.slice(0,10);return e(Na,{color:"designationTurquoise",children:s(re,{delay:0,placement:"bottom right",children:[e(ce,{children:s(Ne,{label:"primary inferences",defaultSelectedKey:t,"data-testid":"inferences-time-range","aria-label":"Time range for the primary inferences",addonBefore:o,onSelectionChange:l=>{l!==t&&i(l)},children:[e(F,{children:"All"},ne.all),e(F,{children:"Last Hour"},ne.last_hour),e(F,{children:"Last Day"},ne.last_day),e(F,{children:"Last Week"},ne.last_week),e(F,{children:"Last Month"},ne.last_month),e(F,{children:"Last 3 Months"},ne.last_3_months),e(F,{children:"First Hour"},ne.first_hour),e(F,{children:"First Day"},ne.first_day),e(F,{children:"First Week"},ne.first_week),e(F,{children:"First Month"},ne.first_month)]})}),e(me,{children:s("section",{css:m`
2823
+ `,children:[e("div",{"data-testid":"toolbar-main",className:"toolbar__main",children:n.children}),n.extra?e("div",{"data-testid":"toolbar-extra",children:n.extra}):null]})}function Q9(n){const{timeRange:a,timePreset:t,setTimePreset:i}=yo(),{primaryInferences:{name:r}}=L1(),o=r.slice(0,10);return e(Na,{color:"designationTurquoise",children:s(le,{delay:0,placement:"bottom right",children:[e(ue,{children:s(Re,{label:"primary inferences",defaultSelectedKey:t,"data-testid":"inferences-time-range","aria-label":"Time range for the primary inferences",addonBefore:o,onSelectionChange:l=>{l!==t&&i(l)},children:[e(F,{children:"All"},ne.all),e(F,{children:"Last Hour"},ne.last_hour),e(F,{children:"Last Day"},ne.last_day),e(F,{children:"Last Week"},ne.last_week),e(F,{children:"Last Month"},ne.last_month),e(F,{children:"Last 3 Months"},ne.last_3_months),e(F,{children:"First Hour"},ne.first_hour),e(F,{children:"First Day"},ne.first_day),e(F,{children:"First Week"},ne.first_week),e(F,{children:"First Month"},ne.first_month)]})}),e(he,{children:s("section",{css:m`
2824
2824
  h4 {
2825
2825
  margin-bottom: 0.5rem;
2826
2826
  }
2827
- `,children:[e(B,{level:4,children:"primary inferences time range"}),s("div",{children:["start: ",Le(a.start)]}),s("div",{children:["end: ",Le(a.end)]})]})})]})})}const fa=C1("%x %X");function q9({timeRange:n}){const{referenceInferences:a}=L1(),i=((a==null?void 0:a.name)??"reference").slice(0,10);return e("div",{css:m`
2827
+ `,children:[e(B,{level:4,children:"primary inferences time range"}),s("div",{children:["start: ",we(a.start)]}),s("div",{children:["end: ",we(a.end)]})]})})]})})}const fa=C1("%x %X");function q9({timeRange:n}){const{referenceInferences:a}=L1(),i=((a==null?void 0:a.name)??"reference").slice(0,10);return e("div",{css:m`
2828
2828
  .ac-textfield {
2829
2829
  min-width: 331px;
2830
2830
  }
2831
- `,children:e(Na,{color:"designationPurple",children:s(re,{children:[e(ce,{children:s($,{isReadOnly:!0,"aria-label":"reference inferences time range",value:`${fa(n.start)} - ${fa(n.end)}`,children:[e(O,{children:`${i} inferences`}),e(H,{})]})}),e(me,{children:"The static time range of the reference inferences"})]})})})}const di=function(){var n=[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"endTime"},{defaultValue:null,kind:"LocalArgument",name:"startTime"}],a=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"}],t={fields:[{kind:"Variable",name:"end",variableName:"endTime"},{kind:"Variable",name:"start",variableName:"startTime"}],kind:"ObjectValue",name:"timeRange"};return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"ModelSchemaTableDimensionsQuery",selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},{kind:"Variable",name:"endTime",variableName:"endTime"},{kind:"Variable",name:"startTime",variableName:"startTime"}],kind:"FragmentSpread",name:"ModelSchemaTable_dimensions"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"ModelSchemaTableDimensionsQuery",selections:[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:null,args:a,concreteType:"DimensionConnection",kind:"LinkedField",name:"dimensions",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"dimension",args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dataType",storageKey:null},{alias:"cardinality",args:[{kind:"Literal",name:"metric",value:"cardinality"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"percentEmpty",args:[{kind:"Literal",name:"metric",value:"percentEmpty"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"min",args:[{kind:"Literal",name:"metric",value:"min"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"mean",args:[{kind:"Literal",name:"metric",value:"mean"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"max",args:[{kind:"Literal",name:"metric",value:"max"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"psi",args:[{kind:"Literal",name:"metric",value:"psi"},t],kind:"ScalarField",name:"driftMetric",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:a,filters:null,handle:"connection",key:"ModelSchemaTable_dimensions",kind:"LinkedHandle",name:"dimensions"}],storageKey:null}]},params:{cacheID:"0f5ec2a75c6234eefab01cbd1181c564",id:null,metadata:{},name:"ModelSchemaTableDimensionsQuery",operationKind:"query",text:`query ModelSchemaTableDimensionsQuery(
2831
+ `,children:e(Na,{color:"designationPurple",children:s(le,{children:[e(ue,{children:s($,{isReadOnly:!0,"aria-label":"reference inferences time range",value:`${fa(n.start)} - ${fa(n.end)}`,children:[e(O,{children:`${i} inferences`}),e(H,{})]})}),e(he,{children:"The static time range of the reference inferences"})]})})})}const di=function(){var n=[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"endTime"},{defaultValue:null,kind:"LocalArgument",name:"startTime"}],a=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"}],t={fields:[{kind:"Variable",name:"end",variableName:"endTime"},{kind:"Variable",name:"start",variableName:"startTime"}],kind:"ObjectValue",name:"timeRange"};return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"ModelSchemaTableDimensionsQuery",selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},{kind:"Variable",name:"endTime",variableName:"endTime"},{kind:"Variable",name:"startTime",variableName:"startTime"}],kind:"FragmentSpread",name:"ModelSchemaTable_dimensions"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"ModelSchemaTableDimensionsQuery",selections:[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:null,args:a,concreteType:"DimensionConnection",kind:"LinkedField",name:"dimensions",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"dimension",args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dataType",storageKey:null},{alias:"cardinality",args:[{kind:"Literal",name:"metric",value:"cardinality"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"percentEmpty",args:[{kind:"Literal",name:"metric",value:"percentEmpty"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"min",args:[{kind:"Literal",name:"metric",value:"min"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"mean",args:[{kind:"Literal",name:"metric",value:"mean"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"max",args:[{kind:"Literal",name:"metric",value:"max"},t],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"psi",args:[{kind:"Literal",name:"metric",value:"psi"},t],kind:"ScalarField",name:"driftMetric",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:a,filters:null,handle:"connection",key:"ModelSchemaTable_dimensions",kind:"LinkedHandle",name:"dimensions"}],storageKey:null}]},params:{cacheID:"0f5ec2a75c6234eefab01cbd1181c564",id:null,metadata:{},name:"ModelSchemaTableDimensionsQuery",operationKind:"query",text:`query ModelSchemaTableDimensionsQuery(
2832
2832
  $count: Int = 50
2833
2833
  $cursor: String = null
2834
2834
  $endTime: DateTime!
@@ -2865,7 +2865,7 @@ fragment ModelSchemaTable_dimensions_4sIU9C on Query {
2865
2865
  }
2866
2866
  }
2867
2867
  }
2868
- `}}}();di.hash="fb4c57e0ea77548c4e96ceb418e06614";const ui=function(){var n=["model","dimensions"],a={fields:[{kind:"Variable",name:"end",variableName:"endTime"},{kind:"Variable",name:"start",variableName:"startTime"}],kind:"ObjectValue",name:"timeRange"};return{argumentDefinitions:[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"endTime"},{defaultValue:null,kind:"LocalArgument",name:"startTime"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:n}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:n},fragmentPathInResult:[],operation:di}},name:"ModelSchemaTable_dimensions",selections:[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:"dimensions",args:null,concreteType:"DimensionConnection",kind:"LinkedField",name:"__ModelSchemaTable_dimensions_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"dimension",args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dataType",storageKey:null},{alias:"cardinality",args:[{kind:"Literal",name:"metric",value:"cardinality"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"percentEmpty",args:[{kind:"Literal",name:"metric",value:"percentEmpty"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"min",args:[{kind:"Literal",name:"metric",value:"min"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"mean",args:[{kind:"Literal",name:"metric",value:"mean"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"max",args:[{kind:"Literal",name:"metric",value:"max"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"psi",args:[{kind:"Literal",name:"metric",value:"psi"},a],kind:"ScalarField",name:"driftMetric",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();ui.hash="fb4c57e0ea77548c4e96ceb418e06614";function X9(n){const{data:a}=N.usePaginationFragment(ui,n.model),t=h.useMemo(()=>a.model.dimensions.edges.map(({dimension:r})=>({...r})),[a]),i=U.useMemo(()=>[{header:"name",accessorKey:"name",cell:o=>e(Ct,{to:`dimensions/${o.row.original.id}`,children:o.renderValue()})},{header:"type",accessorKey:"type"},{header:"data type",accessorKey:"dataType"},{header:"cardinality",accessorKey:"cardinality",cell:bs},{header:"% empty",accessorKey:"percentEmpty",cell:vs},{header:"min",accessorKey:"min",cell:Ge},{header:"mean",accessorKey:"mean",cell:Ge},{header:"max",accessorKey:"max",cell:Ge},{header:"PSI",accessorKey:"psi",cell:Ge}],[]);return e(Ht,{columns:i,data:t})}const gi=function(){var n=[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"endTime"},{defaultValue:null,kind:"LocalArgument",name:"startTime"}],a=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"}];return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"ModelEmbeddingsTableEmbeddingDimensionsQuery",selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},{kind:"Variable",name:"endTime",variableName:"endTime"},{kind:"Variable",name:"startTime",variableName:"startTime"}],kind:"FragmentSpread",name:"ModelEmbeddingsTable_embeddingDimensions"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"ModelEmbeddingsTableEmbeddingDimensionsQuery",selections:[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:null,args:a,concreteType:"EmbeddingDimensionConnection",kind:"LinkedField",name:"embeddingDimensions",plural:!1,selections:[{alias:null,args:null,concreteType:"EmbeddingDimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"embedding",args:null,concreteType:"EmbeddingDimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:"euclideanDistance",args:[{kind:"Literal",name:"metric",value:"euclideanDistance"},{fields:[{kind:"Variable",name:"end",variableName:"endTime"},{kind:"Variable",name:"start",variableName:"startTime"}],kind:"ObjectValue",name:"timeRange"}],kind:"ScalarField",name:"driftMetric",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"EmbeddingDimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:a,filters:null,handle:"connection",key:"ModelEmbeddingsTable_embeddingDimensions",kind:"LinkedHandle",name:"embeddingDimensions"}],storageKey:null}]},params:{cacheID:"d0057a41a1d9795383a58de89e72ad76",id:null,metadata:{},name:"ModelEmbeddingsTableEmbeddingDimensionsQuery",operationKind:"query",text:`query ModelEmbeddingsTableEmbeddingDimensionsQuery(
2868
+ `}}}();di.hash="fb4c57e0ea77548c4e96ceb418e06614";const ui=function(){var n=["model","dimensions"],a={fields:[{kind:"Variable",name:"end",variableName:"endTime"},{kind:"Variable",name:"start",variableName:"startTime"}],kind:"ObjectValue",name:"timeRange"};return{argumentDefinitions:[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"endTime"},{defaultValue:null,kind:"LocalArgument",name:"startTime"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:n}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:n},fragmentPathInResult:[],operation:di}},name:"ModelSchemaTable_dimensions",selections:[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:"dimensions",args:null,concreteType:"DimensionConnection",kind:"LinkedField",name:"__ModelSchemaTable_dimensions_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"dimension",args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dataType",storageKey:null},{alias:"cardinality",args:[{kind:"Literal",name:"metric",value:"cardinality"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"percentEmpty",args:[{kind:"Literal",name:"metric",value:"percentEmpty"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"min",args:[{kind:"Literal",name:"metric",value:"min"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"mean",args:[{kind:"Literal",name:"metric",value:"mean"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"max",args:[{kind:"Literal",name:"metric",value:"max"},a],kind:"ScalarField",name:"dataQualityMetric",storageKey:null},{alias:"psi",args:[{kind:"Literal",name:"metric",value:"psi"},a],kind:"ScalarField",name:"driftMetric",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();ui.hash="fb4c57e0ea77548c4e96ceb418e06614";function X9(n){const{data:a}=N.usePaginationFragment(ui,n.model),t=p.useMemo(()=>a.model.dimensions.edges.map(({dimension:r})=>({...r})),[a]),i=U.useMemo(()=>[{header:"name",accessorKey:"name",cell:o=>e(Ct,{to:`dimensions/${o.row.original.id}`,children:o.renderValue()})},{header:"type",accessorKey:"type"},{header:"data type",accessorKey:"dataType"},{header:"cardinality",accessorKey:"cardinality",cell:bs},{header:"% empty",accessorKey:"percentEmpty",cell:vs},{header:"min",accessorKey:"min",cell:Ge},{header:"mean",accessorKey:"mean",cell:Ge},{header:"max",accessorKey:"max",cell:Ge},{header:"PSI",accessorKey:"psi",cell:Ge}],[]);return e(Ht,{columns:i,data:t})}const gi=function(){var n=[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"endTime"},{defaultValue:null,kind:"LocalArgument",name:"startTime"}],a=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"}];return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"ModelEmbeddingsTableEmbeddingDimensionsQuery",selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},{kind:"Variable",name:"endTime",variableName:"endTime"},{kind:"Variable",name:"startTime",variableName:"startTime"}],kind:"FragmentSpread",name:"ModelEmbeddingsTable_embeddingDimensions"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"ModelEmbeddingsTableEmbeddingDimensionsQuery",selections:[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:null,args:a,concreteType:"EmbeddingDimensionConnection",kind:"LinkedField",name:"embeddingDimensions",plural:!1,selections:[{alias:null,args:null,concreteType:"EmbeddingDimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"embedding",args:null,concreteType:"EmbeddingDimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:"euclideanDistance",args:[{kind:"Literal",name:"metric",value:"euclideanDistance"},{fields:[{kind:"Variable",name:"end",variableName:"endTime"},{kind:"Variable",name:"start",variableName:"startTime"}],kind:"ObjectValue",name:"timeRange"}],kind:"ScalarField",name:"driftMetric",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"EmbeddingDimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:a,filters:null,handle:"connection",key:"ModelEmbeddingsTable_embeddingDimensions",kind:"LinkedHandle",name:"embeddingDimensions"}],storageKey:null}]},params:{cacheID:"d0057a41a1d9795383a58de89e72ad76",id:null,metadata:{},name:"ModelEmbeddingsTableEmbeddingDimensionsQuery",operationKind:"query",text:`query ModelEmbeddingsTableEmbeddingDimensionsQuery(
2869
2869
  $count: Int = 50
2870
2870
  $cursor: String = null
2871
2871
  $endTime: DateTime!
@@ -2895,12 +2895,12 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
2895
2895
  }
2896
2896
  }
2897
2897
  }
2898
- `}}}();gi.hash="fb7f125f75d1d33a555c16e198dbcbf8";const mi=function(){var n=["model","embeddingDimensions"];return{argumentDefinitions:[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"endTime"},{defaultValue:null,kind:"LocalArgument",name:"startTime"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:n}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:n},fragmentPathInResult:[],operation:gi}},name:"ModelEmbeddingsTable_embeddingDimensions",selections:[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:"embeddingDimensions",args:null,concreteType:"EmbeddingDimensionConnection",kind:"LinkedField",name:"__ModelEmbeddingsTable_embeddingDimensions_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"EmbeddingDimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"embedding",args:null,concreteType:"EmbeddingDimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:"euclideanDistance",args:[{kind:"Literal",name:"metric",value:"euclideanDistance"},{fields:[{kind:"Variable",name:"end",variableName:"endTime"},{kind:"Variable",name:"start",variableName:"startTime"}],kind:"ObjectValue",name:"timeRange"}],kind:"ScalarField",name:"driftMetric",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"EmbeddingDimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();mi.hash="fb7f125f75d1d33a555c16e198dbcbf8";function Y9(n){const{data:a}=N.usePaginationFragment(mi,n.model),t=h.useMemo(()=>a.model.embeddingDimensions.edges.map(({embedding:r})=>({...r})),[a]),i=U.useMemo(()=>[{header:"name",accessorKey:"name",cell:({row:o,renderValue:l})=>e(Ct,{to:`embeddings/${o.original.id}`,children:l()})},{header:"euclidean distance",accessorKey:"euclideanDistance",cell:Ge}],[]);return e(Ht,{columns:i,data:t})}const pi=h.createContext(null),ud=()=>{const n=h.useContext(pi);if(n===null)throw new Error("useTimeSlice must be used within a TimeSliceProvider");return n},J9=({initialTimestamp:n,children:a})=>{const[t,i]=h.useState(n),r=o=>{h.startTransition(()=>{i(o)})};return e(pi.Provider,{value:{selectedTimestamp:t,setSelectedTimestamp:r},children:a})};function gd(){const n=x(t=>t.setPointSizeScale),a=x(t=>t.pointSizeScale);return s(hn,{placement:"bottom left",children:[e(jr,{variant:"default",size:"compact",icon:e(Br,{svg:e(Zr.OptionsOutline,{})}),"aria-label":"Display Settings"}),e(Qr,{children:e(Gr,{padding:"size-100",children:e(Ur,{direction:"column",gap:"size-100",children:e(Wr,{label:"Point Scale",minValue:0,maxValue:3,step:.1,value:a,onChange:n})})})})]})}const ba=m`
2898
+ `}}}();gi.hash="fb7f125f75d1d33a555c16e198dbcbf8";const mi=function(){var n=["model","embeddingDimensions"];return{argumentDefinitions:[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"endTime"},{defaultValue:null,kind:"LocalArgument",name:"startTime"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:n}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:n},fragmentPathInResult:[],operation:gi}},name:"ModelEmbeddingsTable_embeddingDimensions",selections:[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:"embeddingDimensions",args:null,concreteType:"EmbeddingDimensionConnection",kind:"LinkedField",name:"__ModelEmbeddingsTable_embeddingDimensions_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"EmbeddingDimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"embedding",args:null,concreteType:"EmbeddingDimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:"euclideanDistance",args:[{kind:"Literal",name:"metric",value:"euclideanDistance"},{fields:[{kind:"Variable",name:"end",variableName:"endTime"},{kind:"Variable",name:"start",variableName:"startTime"}],kind:"ObjectValue",name:"timeRange"}],kind:"ScalarField",name:"driftMetric",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"EmbeddingDimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();mi.hash="fb7f125f75d1d33a555c16e198dbcbf8";function Y9(n){const{data:a}=N.usePaginationFragment(mi,n.model),t=p.useMemo(()=>a.model.embeddingDimensions.edges.map(({embedding:r})=>({...r})),[a]),i=U.useMemo(()=>[{header:"name",accessorKey:"name",cell:({row:o,renderValue:l})=>e(Ct,{to:`embeddings/${o.original.id}`,children:l()})},{header:"euclidean distance",accessorKey:"euclideanDistance",cell:Ge}],[]);return e(Ht,{columns:i,data:t})}const pi=p.createContext(null),ud=()=>{const n=p.useContext(pi);if(n===null)throw new Error("useTimeSlice must be used within a TimeSliceProvider");return n},J9=({initialTimestamp:n,children:a})=>{const[t,i]=p.useState(n),r=o=>{p.startTransition(()=>{i(o)})};return e(pi.Provider,{value:{selectedTimestamp:t,setSelectedTimestamp:r},children:a})};function gd(){const n=x(t=>t.setPointSizeScale),a=x(t=>t.pointSizeScale);return s(hn,{placement:"bottom left",children:[e(jr,{variant:"default",size:"compact",icon:e(Br,{svg:e(Zr.OptionsOutline,{})}),"aria-label":"Display Settings"}),e(Qr,{children:e(Gr,{padding:"size-100",children:e(Ur,{direction:"column",gap:"size-100",children:e(Wr,{label:"Point Scale",minValue:0,maxValue:3,step:.1,value:a,onChange:n})})})})]})}const ba=m`
2899
2899
  display: flex;
2900
2900
  flex-direction: row;
2901
2901
  gap: var(--ac-global-dimension-static-size-50);
2902
2902
  align-items: center;
2903
- `;function md(n){return typeof n=="string"&&n in De}function pd(n){return s(i1,{selectedKeys:[n.mode],"aria-label":"Canvas Mode",size:"S",onSelectionChange:a=>{if(a.size===0)return;const t=a.keys().next().value;if(md(t))n.onChange(t);else throw new Error(`Unknown canvas mode: ${a}`)},children:[s(re,{placement:"top",delay:0,offset:10,children:[e(ie,{"aria-label":"Move",id:De.move,children:s("div",{css:ba,children:[e(M,{svg:e(y0,{})})," Move"]})}),e(me,{children:"Move around the canvas using orbital controls"})]}),s(re,{placement:"top",delay:0,offset:10,children:[e(ie,{"aria-label":"Select",id:De.select,children:s("div",{css:ba,children:[e(M,{svg:e(f0,{})})," Select"]})}),e(me,{children:"Select points using the lasso tool"})]})]})}function hd({radius:n}){const a=x(d=>d.eventIdToDataMap),t=x(d=>d.highlightedClusterId),i=x(d=>d.selectedClusterId),r=x(d=>d.clusters),{theme:o}=W(),l=x(d=>d.clusterColorMode),c=h.useMemo(()=>r.map(d=>{const{eventIds:g}=d,u=g.map(p=>{var b;return{position:(b=a.get(p))==null?void 0:b.position}}).filter(p=>p.position!==null);return{...d,data:u}}).filter(d=>d.data.length>0),[r,a]);return e(K,{children:c.map((d,g)=>{const u=bd({selected:d.id===i,highlighted:d.id===t,clusterColorMode:l});return e(br,{data:d.data,opacity:u,wireframe:!0,pointRadius:n,color:fd({theme:o,clusterColorMode:l,index:g,clusterCount:c.length})},`${d.id}__opacity_${String(u)}`)})})}function fd({theme:n,clusterColorMode:a,index:t,clusterCount:i}){return a===wn.default?n==="dark"?"#999999":"#bbbbbb":Va(t/i)}function bd({selected:n,highlighted:a,clusterColorMode:t}){return t===wn.highlight?1:n?.7:a?.5:0}const vd=2;function Cd({pointRadius:n}){const a=x(g=>g.hoveredEventId),t=x(g=>g.pointSizeScale),i=x(g=>g.eventIdToDataMap),r=x(g=>g.pointGroupColors),o=x(g=>g.eventIdToGroup);if(a==null||i==null)return null;const l=i.get(a),c=o[a],d=r[c];return l==null?null:e(vr,{position:l.position,args:[n*vd],scale:[t,t,t],children:e("meshMatcapMaterial",{color:d,opacity:.7,transparent:!0})})}const va=1;function yd(){const n=x(r=>r.hoveredEventId),a=x(r=>r.eventIdToDataMap),t=h.useRef(null);Cr((r,o)=>{t.current&&t.current.children.forEach(l=>l.children[0].material.uniforms.dashOffset.value-=o*5)});const i=h.useMemo(()=>{if(n==null)return[];const r=a.get(n);if(r==null)return[];const o=r.retrievals??[];return(o==null?void 0:o.length)===0?[]:o.map(c=>{const d=a.get(c.documentId);return d==null?null:[r.position,d.position]}).filter(c=>c!=null)},[a,n]);return e("group",{ref:t,children:i.map((r,o)=>s("group",{children:[e(Kn,{start:r[0],end:r[1],color:16777215,opacity:1,transparent:!0,dashed:!0,dashScale:50,gapSize:20,linewidth:va}),e(Kn,{start:r[0],end:r[1],color:16777215,linewidth:va/2,transparent:!0,opacity:.8})]},o))})}const Ld=.5,wd=.5,xd=100,Ca=1.7;function ya(n,a){return typeof a=="function"?a(n):a}function kd({primaryData:n,referenceData:a,corpusData:t,color:i,radius:r}){const o=x(E=>E.inferencesVisibility),l=x(E=>E.coloringStrategy),{theme:c}=W(),d=x(E=>E.setSelectedEventIds),g=x(E=>E.selectedEventIds),u=x(E=>E.setSelectedClusterId),p=x(E=>E.setHoveredEventId),f=x(E=>E.pointSizeScale),b=h.useMemo(()=>yr(p,xd),[p]),v=h.useMemo(()=>l!==V.inferences?"cube":"sphere",[l]),L=h.useMemo(()=>l!==V.inferences?"octahedron":"sphere",[l]),S=h.useMemo(()=>c==="dark"?Lr(Ld):wr(wd),[c]),T=h.useMemo(()=>typeof i=="function"?E=>S(i(E)):S(i),[i,S]),j=h.useCallback(E=>!g.has(E.metaData.id)&&g.size>0?ya(E,T):ya(E,i),[g,i,T]),fe=o.reference&&a,Re=o.corpus&&t,be=h.useCallback(E=>{h.startTransition(()=>{d(new Set([E.metaData.id])),u(null)})},[u,d]),ve=h.useCallback(E=>{E==null||E.metaData==null||b(E.metaData.id)},[b]),$e=h.useCallback(()=>{b(null)},[b]);return s(K,{children:[o.primary?e(F1,{data:n,pointProps:{color:j,radius:r,scale:f},onPointClicked:be,onPointHovered:ve,onPointerLeave:$e}):null,fe?e(F1,{data:a,pointProps:{color:j,radius:r,size:r?r*Ca:void 0,scale:f},onPointHovered:ve,onPointerLeave:$e,pointShape:v,onPointClicked:be}):null,Re?e(F1,{data:t,pointProps:{color:j,radius:r,size:r?r*Ca:void 0,scale:f},onPointHovered:ve,onPointerLeave:$e,pointShape:L,onPointClicked:be}):null]})}const Sd=/\.(mp4|mov|webm|ogg)(\?|$)/i,Md=/\.(mp3|wav)(\?|$)/i;function Td(n){return Sd.test(n)}function zd(n){return Md.test(n)}var we=(n=>(n.square="square",n.circle="circle",n.diamond="diamond",n))(we||{});const Id=()=>e("svg",{width:"12px",height:"12px",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("rect",{width:"12",height:"12",rx:"1",fill:"currentColor"})}),Ad=()=>e("svg",{width:"12px",height:"12px",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("circle",{cx:"6",cy:"6",r:"6",fill:"currentColor"})}),Ed=()=>e("svg",{width:"12px",height:"12px",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M6 0L12 6L6 12L0 6L6 0Z",fill:"currentColor"})});function hi(n){const{shape:a,color:t}=n,i=h.useMemo(()=>{switch(a){case"square":return e(Id,{});case"circle":return e(Ad,{});case"diamond":return e(Ed,{});default:I()}},[a]);return e("i",{className:"shape-icon",style:{color:t},css:m`
2903
+ `;function md(n){return typeof n=="string"&&n in Pe}function pd(n){return s(i1,{selectedKeys:[n.mode],"aria-label":"Canvas Mode",size:"S",onSelectionChange:a=>{if(a.size===0)return;const t=a.keys().next().value;if(md(t))n.onChange(t);else throw new Error(`Unknown canvas mode: ${a}`)},children:[s(le,{placement:"top",delay:0,offset:10,children:[e(ie,{"aria-label":"Move",id:Pe.move,children:s("div",{css:ba,children:[e(M,{svg:e(y0,{})})," Move"]})}),e(he,{children:"Move around the canvas using orbital controls"})]}),s(le,{placement:"top",delay:0,offset:10,children:[e(ie,{"aria-label":"Select",id:Pe.select,children:s("div",{css:ba,children:[e(M,{svg:e(f0,{})})," Select"]})}),e(he,{children:"Select points using the lasso tool"})]})]})}function hd({radius:n}){const a=x(d=>d.eventIdToDataMap),t=x(d=>d.highlightedClusterId),i=x(d=>d.selectedClusterId),r=x(d=>d.clusters),{theme:o}=W(),l=x(d=>d.clusterColorMode),c=p.useMemo(()=>r.map(d=>{const{eventIds:g}=d,u=g.map(h=>{var b;return{position:(b=a.get(h))==null?void 0:b.position}}).filter(h=>h.position!==null);return{...d,data:u}}).filter(d=>d.data.length>0),[r,a]);return e(K,{children:c.map((d,g)=>{const u=bd({selected:d.id===i,highlighted:d.id===t,clusterColorMode:l});return e(br,{data:d.data,opacity:u,wireframe:!0,pointRadius:n,color:fd({theme:o,clusterColorMode:l,index:g,clusterCount:c.length})},`${d.id}__opacity_${String(u)}`)})})}function fd({theme:n,clusterColorMode:a,index:t,clusterCount:i}){return a===wn.default?n==="dark"?"#999999":"#bbbbbb":Va(t/i)}function bd({selected:n,highlighted:a,clusterColorMode:t}){return t===wn.highlight?1:n?.7:a?.5:0}const vd=2;function Cd({pointRadius:n}){const a=x(g=>g.hoveredEventId),t=x(g=>g.pointSizeScale),i=x(g=>g.eventIdToDataMap),r=x(g=>g.pointGroupColors),o=x(g=>g.eventIdToGroup);if(a==null||i==null)return null;const l=i.get(a),c=o[a],d=r[c];return l==null?null:e(vr,{position:l.position,args:[n*vd],scale:[t,t,t],children:e("meshMatcapMaterial",{color:d,opacity:.7,transparent:!0})})}const va=1;function yd(){const n=x(r=>r.hoveredEventId),a=x(r=>r.eventIdToDataMap),t=p.useRef(null);Cr((r,o)=>{t.current&&t.current.children.forEach(l=>l.children[0].material.uniforms.dashOffset.value-=o*5)});const i=p.useMemo(()=>{if(n==null)return[];const r=a.get(n);if(r==null)return[];const o=r.retrievals??[];return(o==null?void 0:o.length)===0?[]:o.map(c=>{const d=a.get(c.documentId);return d==null?null:[r.position,d.position]}).filter(c=>c!=null)},[a,n]);return e("group",{ref:t,children:i.map((r,o)=>s("group",{children:[e(Kn,{start:r[0],end:r[1],color:16777215,opacity:1,transparent:!0,dashed:!0,dashScale:50,gapSize:20,linewidth:va}),e(Kn,{start:r[0],end:r[1],color:16777215,linewidth:va/2,transparent:!0,opacity:.8})]},o))})}const Ld=.5,wd=.5,xd=100,Ca=1.7;function ya(n,a){return typeof a=="function"?a(n):a}function kd({primaryData:n,referenceData:a,corpusData:t,color:i,radius:r}){const o=x(E=>E.inferencesVisibility),l=x(E=>E.coloringStrategy),{theme:c}=W(),d=x(E=>E.setSelectedEventIds),g=x(E=>E.selectedEventIds),u=x(E=>E.setSelectedClusterId),h=x(E=>E.setHoveredEventId),f=x(E=>E.pointSizeScale),b=p.useMemo(()=>yr(h,xd),[h]),v=p.useMemo(()=>l!==V.inferences?"cube":"sphere",[l]),L=p.useMemo(()=>l!==V.inferences?"octahedron":"sphere",[l]),S=p.useMemo(()=>c==="dark"?Lr(Ld):wr(wd),[c]),T=p.useMemo(()=>typeof i=="function"?E=>S(i(E)):S(i),[i,S]),j=p.useCallback(E=>!g.has(E.metaData.id)&&g.size>0?ya(E,T):ya(E,i),[g,i,T]),re=o.reference&&a,ve=o.corpus&&t,oe=p.useCallback(E=>{p.startTransition(()=>{d(new Set([E.metaData.id])),u(null)})},[u,d]),Ce=p.useCallback(E=>{E==null||E.metaData==null||b(E.metaData.id)},[b]),$e=p.useCallback(()=>{b(null)},[b]);return s(K,{children:[o.primary?e(F1,{data:n,pointProps:{color:j,radius:r,scale:f},onPointClicked:oe,onPointHovered:Ce,onPointerLeave:$e}):null,re?e(F1,{data:a,pointProps:{color:j,radius:r,size:r?r*Ca:void 0,scale:f},onPointHovered:Ce,onPointerLeave:$e,pointShape:v,onPointClicked:oe}):null,ve?e(F1,{data:t,pointProps:{color:j,radius:r,size:r?r*Ca:void 0,scale:f},onPointHovered:Ce,onPointerLeave:$e,pointShape:L,onPointClicked:oe}):null]})}const Sd=/\.(mp4|mov|webm|ogg)(\?|$)/i,Md=/\.(mp3|wav)(\?|$)/i;function Td(n){return Sd.test(n)}function zd(n){return Md.test(n)}var xe=(n=>(n.square="square",n.circle="circle",n.diamond="diamond",n))(xe||{});const Id=()=>e("svg",{width:"12px",height:"12px",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("rect",{width:"12",height:"12",rx:"1",fill:"currentColor"})}),Ad=()=>e("svg",{width:"12px",height:"12px",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("circle",{cx:"6",cy:"6",r:"6",fill:"currentColor"})}),Ed=()=>e("svg",{width:"12px",height:"12px",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M6 0L12 6L6 12L0 6L6 0Z",fill:"currentColor"})});function hi(n){const{shape:a,color:t}=n,i=p.useMemo(()=>{switch(a){case"square":return e(Id,{});case"circle":return e(Ad,{});case"diamond":return e(Ed,{});default:I()}},[a]);return e("i",{className:"shape-icon",style:{color:t},css:m`
2904
2904
  display: flex;
2905
2905
  flex-direction: row;
2906
2906
  align-items: center;
@@ -3095,16 +3095,16 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
3095
3095
  flex-direction: row;
3096
3096
  align-items: center;
3097
3097
  gap: var(--ac-global-dimension-static-size-50);
3098
- `,children:[e(hi,{shape:we.circle,color:n}),a]}),t?e("div",{title:"the inferences the point belongs to",children:i}):null]})}const Ke=200,l1=10,Bd=new lo,Zd=()=>{const{getInferencesNameByRole:n}=L1(),a=x(f=>f.hoveredEventId),t=x(f=>f.eventIdToDataMap),i=x(f=>f.pointData),r=x(f=>f.pointGroupColors),o=x(f=>f.eventIdToGroup);if(a==null||i==null||i==null)return null;const l=t.get(a),c=i[a];if(l==null||c==null)return null;const d=o[a],g=r[o[a]],u=ot(a),p=n(u);return e(xr,{position:l.position,pointerEvents:"none",zIndexRange:[0,1],calculatePosition:(f,b,v)=>{const L=Bd.setFromMatrixPosition(f.matrixWorld);L.project(b);const S=v.width/2,T=v.height/2;return[Math.min(v.width-Ke-l1,Math.max(0,L.x*S+S+l1)),Math.min(v.height-Ke-l1,Math.max(0,-(L.y*T)+T+l1))]},children:e("div",{css:m`
3098
+ `,children:[e(hi,{shape:xe.circle,color:n}),a]}),t?e("div",{title:"the inferences the point belongs to",children:i}):null]})}const Ke=200,l1=10,Bd=new lo,Zd=()=>{const{getInferencesNameByRole:n}=L1(),a=x(f=>f.hoveredEventId),t=x(f=>f.eventIdToDataMap),i=x(f=>f.pointData),r=x(f=>f.pointGroupColors),o=x(f=>f.eventIdToGroup);if(a==null||i==null||i==null)return null;const l=t.get(a),c=i[a];if(l==null||c==null)return null;const d=o[a],g=r[o[a]],u=ot(a),h=n(u);return e(xr,{position:l.position,pointerEvents:"none",zIndexRange:[0,1],calculatePosition:(f,b,v)=>{const L=Bd.setFromMatrixPosition(f.matrixWorld);L.project(b);const S=v.width/2,T=v.height/2;return[Math.min(v.width-Ke-l1,Math.max(0,L.x*S+S+l1)),Math.min(v.height-Ke-l1,Math.max(0,-(L.y*T)+T+l1))]},children:e("div",{css:m`
3099
3099
  --grid-item-min-width: ${Ke}px;
3100
3100
  width: ${Ke}px;
3101
3101
  height: ${Ke}px;
3102
3102
  background-color: var(--ac-global-background-color-dark);
3103
3103
  border-radius: var(--ac-global-rounding-medium);
3104
- `,children:e(Pd,{rawData:l.embeddingMetadata.rawData,linkToData:l.embeddingMetadata.linkToData,predictionLabel:l.eventMetadata.predictionLabel,actualLabel:l.eventMetadata.actualLabel,promptAndResponse:c.promptAndResponse,documentText:c.documentText,inferencesName:p,group:d,color:g,size:"medium",autoPlay:!0})})})},jd=300,Gd=3,Ud=.2,Wd=function(){const{selectedTimestamp:a}=ud(),t=x(d=>d.points),i=x(d=>d.hdbscanParameters),r=x(d=>d.umapParameters),[o,l,c]=h.useMemo(()=>{const{primaryEventIds:d,referenceEventIds:g,corpusEventIds:u}=Ln(t.map(p=>p.eventId));return[d.length,g.length,u.length]},[t]);return a?s("section",{css:m`
3104
+ `,children:e(Pd,{rawData:l.embeddingMetadata.rawData,linkToData:l.embeddingMetadata.linkToData,predictionLabel:l.eventMetadata.predictionLabel,actualLabel:l.eventMetadata.actualLabel,promptAndResponse:c.promptAndResponse,documentText:c.documentText,inferencesName:h,group:d,color:g,size:"medium",autoPlay:!0})})})},jd=300,Gd=3,Ud=.2,Wd=function(){const{selectedTimestamp:a}=ud(),t=x(d=>d.points),i=x(d=>d.hdbscanParameters),r=x(d=>d.umapParameters),[o,l,c]=p.useMemo(()=>{const{primaryEventIds:d,referenceEventIds:g,corpusEventIds:u}=Ln(t.map(h=>h.eventId));return[d.length,g.length,u.length]},[t]);return a?s("section",{css:m`
3105
3105
  width: 300px;
3106
3106
  padding: var(--ac-global-dimension-static-size-100);
3107
- `,children:[s("dl",{css:q1,children:[s("div",{children:[e("dt",{children:"Timestamp"}),e("dd",{children:Le(a)})]}),s("div",{children:[e("dt",{children:"primary points"}),e("dd",{children:o})]}),l>0?s("div",{children:[e("dt",{children:"reference points"}),e("dd",{children:l})]}):null,c>0?s("div",{children:[e("dt",{children:"corpus points"}),e("dd",{children:c})]}):null]}),e("br",{}),e(B,{level:4,weight:"heavy",children:"Clustering Parameters"}),s("dl",{css:q1,children:[s("div",{children:[e("dt",{children:"min cluster size"}),e("dd",{children:i.minClusterSize})]}),s("div",{children:[e("dt",{children:"cluster min samples"}),e("dd",{children:i.clusterMinSamples})]}),s("div",{children:[e("dt",{children:"cluster selection epsilon"}),e("dd",{children:i.clusterSelectionEpsilon})]})]}),e("br",{}),e(B,{level:4,weight:"heavy",children:"UMAP Parameters"}),s("dl",{css:q1,children:[s("div",{children:[e("dt",{children:"min distance"}),e("dd",{children:r.minDist})]}),s("div",{children:[e("dt",{children:"n neighbors"}),e("dd",{children:r.nNeighbors})]}),s("div",{children:[e("dt",{children:"n samples per inferences"}),e("dd",{children:r.nSamples})]})]})]}):null},q1=m`
3107
+ `,children:[s("dl",{css:q1,children:[s("div",{children:[e("dt",{children:"Timestamp"}),e("dd",{children:we(a)})]}),s("div",{children:[e("dt",{children:"primary points"}),e("dd",{children:o})]}),l>0?s("div",{children:[e("dt",{children:"reference points"}),e("dd",{children:l})]}):null,c>0?s("div",{children:[e("dt",{children:"corpus points"}),e("dd",{children:c})]}):null]}),e("br",{}),e(B,{level:4,weight:"heavy",children:"Clustering Parameters"}),s("dl",{css:q1,children:[s("div",{children:[e("dt",{children:"min cluster size"}),e("dd",{children:i.minClusterSize})]}),s("div",{children:[e("dt",{children:"cluster min samples"}),e("dd",{children:i.clusterMinSamples})]}),s("div",{children:[e("dt",{children:"cluster selection epsilon"}),e("dd",{children:i.clusterSelectionEpsilon})]})]}),e("br",{}),e(B,{level:4,weight:"heavy",children:"UMAP Parameters"}),s("dl",{css:q1,children:[s("div",{children:[e("dt",{children:"min distance"}),e("dd",{children:r.minDist})]}),s("div",{children:[e("dt",{children:"n neighbors"}),e("dd",{children:r.nNeighbors})]}),s("div",{children:[e("dt",{children:"n samples per inferences"}),e("dd",{children:r.nSamples})]})]})]}):null},q1=m`
3108
3108
  margin: 0;
3109
3109
  padding: 0;
3110
3110
  div {
@@ -3123,7 +3123,7 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
3123
3123
  flex-direction: row;
3124
3124
  align-items: center;
3125
3125
  gap: var(--ac-global-dimension-static-size-100);
3126
- `,children:[e(pd,{mode:n,onChange:a}),e(gd,{}),e(qd,{})]})}function qd(){return s(re,{placement:"bottom left",delay:0,children:[e(ce,{children:e(D,{size:"S",leadingVisual:e(M,{svg:e(Dn,{})}),"aria-label":"Information bout the point-cloud display"})}),e(qr,{title:"Point Cloud Summary",children:e(Wd,{})})]})}function Xd({children:n}){const{theme:a}=W();return e("div",{css:m`
3126
+ `,children:[e(pd,{mode:n,onChange:a}),e(gd,{}),e(qd,{})]})}function qd(){return s(le,{placement:"bottom left",delay:0,children:[e(ue,{children:e(D,{size:"S",leadingVisual:e(M,{svg:e(Dn,{})}),"aria-label":"Information bout the point-cloud display"})}),e(qr,{title:"Point Cloud Summary",children:e(Wd,{})})]})}function Xd({children:n}){const{theme:a}=W();return e("div",{css:m`
3127
3127
  flex: 1 1 auto;
3128
3128
  height: 100%;
3129
3129
  position: relative;
@@ -3136,7 +3136,7 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
3136
3136
  &[data-theme="light"] {
3137
3137
  background: linear-gradient(#f2f6fd 0%, #dbe6fc 74%);
3138
3138
  }
3139
- `,"data-theme":a,children:n})}function e6(){return s(Xd,{children:[e(Qd,{},"canvas-tools"),e(Yd,{},"projection")]})}const Yd=U.memo(function(){const a=x(z=>z.points),t=x(z=>z.canvasMode),i=x(z=>z.setSelectedEventIds),r=x(z=>z.setSelectedClusterId),o=x(z=>z.pointGroupColors),l=x(z=>z.pointGroupVisibility),{theme:c}=W(),d=x(z=>z.inferencesVisibility),[g,u]=h.useState(!0),p=h.useMemo(()=>kr(a.map(z=>z.position)),[a]),f=(p.maxX-p.minX+(p.maxY-p.minY))/2/jd,b=f*Gd,v=t===De.move,L=x(z=>z.eventIdToGroup),S=h.useCallback(z=>{const ee=L[z.metaData.id]||"unknown";return o[ee]||ze},[o,L]),T=h.useMemo(()=>a.filter(z=>z.eventId.includes("PRIMARY")),[a]),j=h.useMemo(()=>a.filter(z=>z.eventId.includes("REFERENCE")),[a]),fe=h.useMemo(()=>a.filter(z=>z.eventId.includes("CORPUS")),[a]),Re=h.useMemo(()=>T.filter(z=>{const ee=L[z.eventId];return l[ee]}),[T,L,l]),be=h.useMemo(()=>!j||j.length===0?null:j.filter(z=>{const ee=L[z.eventId];return l[ee]}),[j,L,l]),ve=h.useMemo(()=>fe.filter(z=>{const ee=L[z.eventId];return l[ee]}),[fe,L,l]),$e=h.useMemo(()=>{const z=d.primary?Re:[],ee=d.reference?be:[],Li=d.corpus?ve:[];return[...z,...ee||[],...Li||[]]},[Re,be,ve,d]),E=Sr(Cn,vn,Er,yn);return e(Ar,{camera:{position:[3,3,3]},children:s(E,{children:[e(Mr,{autoRotate:g,autoRotateSpeed:2,enableRotate:v,enablePan:v,onEnd:()=>{u(!1)}}),s(Tr,{bounds:p,boundsZoomPaddingFactor:Ud,children:[e(zr,{points:$e,onChange:z=>{i(new Set(z.map(ee=>ee.metaData.id))),r(null)},enabled:t===De.select}),e(Ir,{size:(p.maxX-p.minX)/4,color:c=="dark"?"#fff":"#505050"}),e(kd,{primaryData:Re,referenceData:be,corpusData:ve,color:S,radius:f}),e(hd,{radius:b}),e(Zd,{}),e(Cd,{pointRadius:f}),e(yd,{})]})]})})}),fi=function(){var n=[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionConnection",kind:"LinkedField",name:"dimensions",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dataType",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DimensionPickerQuery",selections:n,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"DimensionPickerQuery",selections:n},params:{cacheID:"56e356d226d322dabfd9db8010884e4f",id:null,metadata:{},name:"DimensionPickerQuery",operationKind:"query",text:`query DimensionPickerQuery {
3139
+ `,"data-theme":a,children:n})}function e6(){return s(Xd,{children:[e(Qd,{},"canvas-tools"),e(Yd,{},"projection")]})}const Yd=U.memo(function(){const a=x(z=>z.points),t=x(z=>z.canvasMode),i=x(z=>z.setSelectedEventIds),r=x(z=>z.setSelectedClusterId),o=x(z=>z.pointGroupColors),l=x(z=>z.pointGroupVisibility),{theme:c}=W(),d=x(z=>z.inferencesVisibility),[g,u]=p.useState(!0),h=p.useMemo(()=>kr(a.map(z=>z.position)),[a]),f=(h.maxX-h.minX+(h.maxY-h.minY))/2/jd,b=f*Gd,v=t===Pe.move,L=x(z=>z.eventIdToGroup),S=p.useCallback(z=>{const ee=L[z.metaData.id]||"unknown";return o[ee]||Ie},[o,L]),T=p.useMemo(()=>a.filter(z=>z.eventId.includes("PRIMARY")),[a]),j=p.useMemo(()=>a.filter(z=>z.eventId.includes("REFERENCE")),[a]),re=p.useMemo(()=>a.filter(z=>z.eventId.includes("CORPUS")),[a]),ve=p.useMemo(()=>T.filter(z=>{const ee=L[z.eventId];return l[ee]}),[T,L,l]),oe=p.useMemo(()=>!j||j.length===0?null:j.filter(z=>{const ee=L[z.eventId];return l[ee]}),[j,L,l]),Ce=p.useMemo(()=>re.filter(z=>{const ee=L[z.eventId];return l[ee]}),[re,L,l]),$e=p.useMemo(()=>{const z=d.primary?ve:[],ee=d.reference?oe:[],Li=d.corpus?Ce:[];return[...z,...ee||[],...Li||[]]},[ve,oe,Ce,d]),E=Sr(Cn,vn,Er,yn);return e(Ar,{camera:{position:[3,3,3]},children:s(E,{children:[e(Mr,{autoRotate:g,autoRotateSpeed:2,enableRotate:v,enablePan:v,onEnd:()=>{u(!1)}}),s(Tr,{bounds:h,boundsZoomPaddingFactor:Ud,children:[e(zr,{points:$e,onChange:z=>{i(new Set(z.map(ee=>ee.metaData.id))),r(null)},enabled:t===Pe.select}),e(Ir,{size:(h.maxX-h.minX)/4,color:c=="dark"?"#fff":"#505050"}),e(kd,{primaryData:ve,referenceData:oe,corpusData:Ce,color:S,radius:f}),e(hd,{radius:b}),e(Zd,{}),e(Cd,{pointRadius:f}),e(yd,{})]})]})})}),fi=function(){var n=[{alias:null,args:null,concreteType:"Model",kind:"LinkedField",name:"model",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionConnection",kind:"LinkedField",name:"dimensions",plural:!1,selections:[{alias:null,args:null,concreteType:"DimensionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Dimension",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dataType",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DimensionPickerQuery",selections:n,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"DimensionPickerQuery",selections:n},params:{cacheID:"56e356d226d322dabfd9db8010884e4f",id:null,metadata:{},name:"DimensionPickerQuery",operationKind:"query",text:`query DimensionPickerQuery {
3140
3140
  model {
3141
3141
  dimensions {
3142
3142
  edges {
@@ -3150,32 +3150,32 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
3150
3150
  }
3151
3151
  }
3152
3152
  }
3153
- `}}}();fi.hash="747256fac1de97803ae6f96e3cb58d98";function Jd(n){const{type:a}=n;let t="gray",i="";switch(a){case"feature":t="blue",i="FEA";break;case"tag":t="purple",i="TAG";break;case"prediction":t="white",i="PRE";break;case"actual":t="orange",i="ACT";break;default:I()}return e(xe,{color:t,"aria-Token":a,title:"type",children:i})}const e3=s($a,{children:[e(B,{weight:"heavy",level:4,children:"Model Dimension"}),e(Ra,{children:e(y,{children:"A dimension is a feature, tag, prediction, or actual value that is associated with a model inference. Features represent inputs, tags represent metadata, predictions represent outputs, and actuals represent ground truth."})})]});function n3(n){const{selectedDimension:a,dimensions:t,onChange:i,isLoading:r,...o}=n;return e(Ne,{...o,defaultSelectedKey:a?a.name:void 0,"aria-Token":"Select a dimension",onSelectionChange:l=>{const c=t.find(d=>d.name===l);c&&h.startTransition(()=>i(c))},label:"Dimension",labelExtra:e3,isDisabled:r,placeholder:r?"Loading...":"Select a dimension...",children:t.map(l=>e(F,{textValue:l.name,children:s("div",{css:m`
3153
+ `}}}();fi.hash="747256fac1de97803ae6f96e3cb58d98";function Jd(n){const{type:a}=n;let t="gray",i="";switch(a){case"feature":t="blue",i="FEA";break;case"tag":t="purple",i="TAG";break;case"prediction":t="white",i="PRE";break;case"actual":t="orange",i="ACT";break;default:I()}return e(ke,{color:t,"aria-Token":a,title:"type",children:i})}const e3=s($a,{children:[e(B,{weight:"heavy",level:4,children:"Model Dimension"}),e(Ra,{children:e(y,{children:"A dimension is a feature, tag, prediction, or actual value that is associated with a model inference. Features represent inputs, tags represent metadata, predictions represent outputs, and actuals represent ground truth."})})]});function n3(n){const{selectedDimension:a,dimensions:t,onChange:i,isLoading:r,...o}=n;return e(Re,{...o,defaultSelectedKey:a?a.name:void 0,"aria-Token":"Select a dimension",onSelectionChange:l=>{const c=t.find(d=>d.name===l);c&&p.startTransition(()=>i(c))},label:"Dimension",labelExtra:e3,isDisabled:r,placeholder:r?"Loading...":"Select a dimension...",children:t.map(l=>e(F,{textValue:l.name,children:s("div",{css:m`
3154
3154
  .ac-Token {
3155
3155
  margin-right: var(--ac-global-dimension-static-size-100);
3156
3156
  }
3157
- `,children:[e(Jd,{type:l.type}),l.name]})},l.name))})}function a3(n){const[a,t]=h.useState([]),[i,r]=h.useState(!0),{selectedDimension:o,onChange:l,...c}=n;return h.useEffect(()=>{N.fetchQuery(a1,fi,{},{fetchPolicy:"store-or-network"}).toPromise().then(d=>{const g=(d==null?void 0:d.model.dimensions.edges.map(u=>u.node))??[];t(g),r(!1)})},[]),e(n3,{...c,onChange:l,dimensions:a,label:"Dimension",selectedDimension:o,isLoading:i})}function t3(n){return typeof n=="string"&&n in V}const i3=Object.values(V),r3=s($a,{children:[e(B,{weight:"heavy",level:4,children:"Coloring Strategy"}),e(Ra,{children:e(y,{children:"The way in which inference point is colored. Each point in the point-cloud represents a model inference. These inferences can be colored by a particular attribute (such as inferences and dimension) or by a performance value such as correctness (predicted value equals the actual value)"})})]});function o3(n){const{strategy:a,onChange:t}=n;return e(Ne,{defaultSelectedKey:a,"aria-label":"Coloring strategy",onSelectionChange:i=>{t3(i)&&t(i)},label:"Color By",labelExtra:r3,children:i3.map(i=>e(F,{children:i},i))})}const l3=m`
3157
+ `,children:[e(Jd,{type:l.type}),l.name]})},l.name))})}function a3(n){const[a,t]=p.useState([]),[i,r]=p.useState(!0),{selectedDimension:o,onChange:l,...c}=n;return p.useEffect(()=>{N.fetchQuery(a1,fi,{},{fetchPolicy:"store-or-network"}).toPromise().then(d=>{const g=(d==null?void 0:d.model.dimensions.edges.map(u=>u.node))??[];t(g),r(!1)})},[]),e(n3,{...c,onChange:l,dimensions:a,label:"Dimension",selectedDimension:o,isLoading:i})}function t3(n){return typeof n=="string"&&n in V}const i3=Object.values(V),r3=s($a,{children:[e(B,{weight:"heavy",level:4,children:"Coloring Strategy"}),e(Ra,{children:e(y,{children:"The way in which inference point is colored. Each point in the point-cloud represents a model inference. These inferences can be colored by a particular attribute (such as inferences and dimension) or by a performance value such as correctness (predicted value equals the actual value)"})})]});function o3(n){const{strategy:a,onChange:t}=n;return e(Re,{defaultSelectedKey:a,"aria-label":"Coloring strategy",onSelectionChange:i=>{t3(i)&&t(i)},label:"Color By",labelExtra:r3,children:i3.map(i=>e(F,{children:i},i))})}const l3=m`
3158
3158
  display: flex;
3159
3159
  flex-direction: row;
3160
3160
  gap: var(--ac-global-dimension-size-50);
3161
3161
  align-items: center;
3162
- `;function s1(n){const{name:a,checked:t,onChange:i,color:r,iconShape:o=we.circle}=n;return s("label",{css:l3,children:[e("input",{type:"checkbox",checked:t,name:a,onChange:i}),e(hi,{shape:o,color:r}),a]},a)}function s3({hasReference:n,hasCorpus:a}){const t=x(f=>f.inferencesVisibility),i=x(f=>f.setInferencesVisibility),r=x(f=>f.coloringStrategy),o=h.useCallback(f=>{const{name:b,checked:v}=f.target;i({...t,[b]:v})},[t,i]),l=_r(),c=h.useMemo(()=>{switch(r){case V.inferences:return l[0];case V.correctness:case V.dimension:return ue;default:I()}},[r,l]),d=h.useMemo(()=>{switch(r){case V.inferences:return l[1];case V.correctness:case V.dimension:return ue;default:I()}},[r,l]),g=ue,u=r===V.inferences?we.circle:we.square,p=r===V.inferences?we.circle:we.diamond;return s("form",{css:m`
3162
+ `;function s1(n){const{name:a,checked:t,onChange:i,color:r,iconShape:o=xe.circle}=n;return s("label",{css:l3,children:[e("input",{type:"checkbox",checked:t,name:a,onChange:i}),e(hi,{shape:o,color:r}),a]},a)}function s3({hasReference:n,hasCorpus:a}){const t=x(f=>f.inferencesVisibility),i=x(f=>f.setInferencesVisibility),r=x(f=>f.coloringStrategy),o=p.useCallback(f=>{const{name:b,checked:v}=f.target;i({...t,[b]:v})},[t,i]),l=_r(),c=p.useMemo(()=>{switch(r){case V.inferences:return l[0];case V.correctness:case V.dimension:return me;default:I()}},[r,l]),d=p.useMemo(()=>{switch(r){case V.inferences:return l[1];case V.correctness:case V.dimension:return me;default:I()}},[r,l]),g=me,u=r===V.inferences?xe.circle:xe.square,h=r===V.inferences?xe.circle:xe.diamond;return s("form",{css:m`
3163
3163
  display: flex;
3164
3164
  flex-direction: column;
3165
3165
  padding: var(--ac-global-dimension-static-size-100);
3166
- `,children:[e(s1,{checked:t.primary,name:"primary",color:c,onChange:o}),n?e(s1,{checked:t.reference,name:"reference",onChange:o,color:d,iconShape:u}):null,a?e(s1,{checked:t.corpus,name:"corpus",onChange:o,color:g,iconShape:p}):null]})}function c3(){const n=x(o=>o.pointGroupVisibility),a=x(o=>o.setPointGroupVisibility),t=x(o=>o.pointGroupColors),i=h.useMemo(()=>Object.keys(n),[n]),r=h.useCallback(o=>{const{name:l,checked:c}=o.target;a({...n,[l]:c})},[n,a]);return s("form",{css:m`
3166
+ `,children:[e(s1,{checked:t.primary,name:"primary",color:c,onChange:o}),n?e(s1,{checked:t.reference,name:"reference",onChange:o,color:d,iconShape:u}):null,a?e(s1,{checked:t.corpus,name:"corpus",onChange:o,color:g,iconShape:h}):null]})}function c3(){const n=x(o=>o.pointGroupVisibility),a=x(o=>o.setPointGroupVisibility),t=x(o=>o.pointGroupColors),i=p.useMemo(()=>Object.keys(n),[n]),r=p.useCallback(o=>{const{name:l,checked:c}=o.target;a({...n,[l]:c})},[n,a]);return s("form",{css:m`
3167
3167
  display: flex;
3168
3168
  flex-direction: column;
3169
3169
  `,children:[e(d3,{}),e("div",{css:m`
3170
3170
  padding: var(--ac-global-dimension-static-size-100);
3171
- `,children:i.map(o=>{const l=n[o],c=t[o];return e(s1,{name:o,checked:l,color:c,onChange:r},o)})})]})}function d3(){const n=x(o=>o.pointGroupVisibility),a=x(o=>o.setPointGroupVisibility),t=x(o=>o.coloringStrategy),i=h.useMemo(()=>Object.values(n).every(o=>!o),[n]),r=h.useCallback(o=>{const{checked:l}=o.target,c=Object.keys(n).reduce((d,g)=>(d[g]=l,d),{});a(c)},[n,a]);return s("label",{css:()=>m`
3171
+ `,children:i.map(o=>{const l=n[o],c=t[o];return e(s1,{name:o,checked:l,color:c,onChange:r},o)})})]})}function d3(){const n=x(o=>o.pointGroupVisibility),a=x(o=>o.setPointGroupVisibility),t=x(o=>o.coloringStrategy),i=p.useMemo(()=>Object.values(n).every(o=>!o),[n]),r=p.useCallback(o=>{const{checked:l}=o.target,c=Object.keys(n).reduce((d,g)=>(d[g]=l,d),{});a(c)},[n,a]);return s("label",{css:()=>m`
3172
3172
  display: flex;
3173
3173
  flex-direction: row;
3174
3174
  gap: var(--ac-global-dimension-size-50);
3175
3175
  padding: var(--ac-global-dimension-static-size-50)
3176
3176
  var(--ac-global-dimension-static-size-100);
3177
3177
  background-color: var(--ac-global-background-color-light);
3178
- `,children:[e("input",{type:"checkbox",checked:!i,onChange:r}),`${t}`]})}function n6(){const{referenceInferences:n,corpusInferences:a}=L1(),t=x(p=>p.coloringStrategy),i=x(p=>p.setColoringStrategy),r=x(p=>p.dimension),o=x(p=>p.dimensionMetadata),l=x(p=>p.setDimension),c=n!=null||a!=null,d=t===V.dimension&&r==null,g=t===V.dimension&&r!=null&&o==null,u=t!==V.inferences&&!d&&!g;return s("section",{css:m`
3178
+ `,children:[e("input",{type:"checkbox",checked:!i,onChange:r}),`${t}`]})}function n6(){const{referenceInferences:n,corpusInferences:a}=L1(),t=x(h=>h.coloringStrategy),i=x(h=>h.setColoringStrategy),r=x(h=>h.dimension),o=x(h=>h.dimensionMetadata),l=x(h=>h.setDimension),c=n!=null||a!=null,d=t===V.dimension&&r==null,g=t===V.dimension&&r!=null&&o==null,u=t!==V.inferences&&!d&&!g;return s("section",{css:m`
3179
3179
  & > .ac-form {
3180
3180
  padding: var(--ac-global-dimension-static-size-100)
3181
3181
  var(--ac-global-dimension-static-size-100) 0
@@ -3184,14 +3184,14 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
3184
3184
  & > .ac-alert {
3185
3185
  margin: var(--ac-global-dimension-static-size-100);
3186
3186
  }
3187
- `,children:[e(Xr,{children:s(K,{children:[e(o3,{strategy:t,onChange:i}),t===V.dimension?e(a3,{selectedDimension:null,onChange:p=>{l(p)}}):null]})}),c?e(s3,{hasReference:n!=null,hasCorpus:a!=null}):null,u?e(c3,{}):null,d?e(t1,{variant:"info",showIcon:!1,children:"Please select a dimension to color the point cloud by"}):null,g?e("div",{css:m`
3187
+ `,children:[e(Xr,{children:s(K,{children:[e(o3,{strategy:t,onChange:i}),t===V.dimension?e(a3,{selectedDimension:null,onChange:h=>{l(h)}}):null]})}),c?e(s3,{hasReference:n!=null,hasCorpus:a!=null}):null,u?e(c3,{}):null,d?e(t1,{variant:"info",showIcon:!1,children:"Please select a dimension to color the point cloud by"}):null,g?e("div",{css:m`
3188
3188
  padding: var(--ac-global-dimension-static-size-100);
3189
3189
  min-height: 100px;
3190
3190
  display: flex;
3191
3191
  flex-direction: column;
3192
3192
  justify-content: center;
3193
3193
  align-items: center;
3194
- `,children:e($2,{message:"Calculating point colors"})}):null]})}function u3(n){return typeof n=="string"&&n in Ve}function a6(n){return s(i1,{selectedKeys:[n.mode],size:"L",onSelectionChange:a=>{if(a.size===0)return;const t=a.keys().next().value;if(u3(t))n.onChange(t);else throw new Error(`Unknown view mode: ${t}`)},children:[e(ie,{"aria-label":"List",id:Ve.list,children:e(M,{svg:e(b0,{})})}),e(ie,{"aria-label":"Grid",id:Ve.gallery,children:e(M,{svg:e(p0,{})})})]})}function t6(n){const{driftRatio:a,primaryToCorpusRatio:t,clusterId:i,isSelected:r,onClick:o,onMouseEnter:l,onMouseLeave:c,metricName:d,primaryMetricValue:g,referenceMetricValue:u,hideReference:p}=n,{percentage:f,comparisonInferencesRole:b}=h.useMemo(()=>typeof t=="number"?{percentage:(t+1)/2*100,comparisonInferencesRole:te.corpus}:typeof a=="number"?{percentage:(a+1)/2*100,comparisonInferencesRole:te.reference}:{percentage:100,comparisonInferencesRole:null},[a,t]);return s("div",{css:m`
3194
+ `,children:e($2,{message:"Calculating point colors"})}):null]})}function u3(n){return typeof n=="string"&&n in De}function a6(n){return s(i1,{selectedKeys:[n.mode],size:"L",onSelectionChange:a=>{if(a.size===0)return;const t=a.keys().next().value;if(u3(t))n.onChange(t);else throw new Error(`Unknown view mode: ${t}`)},children:[e(ie,{"aria-label":"List",id:De.list,children:e(M,{svg:e(b0,{})})}),e(ie,{"aria-label":"Grid",id:De.gallery,children:e(M,{svg:e(p0,{})})})]})}function t6(n){const{driftRatio:a,primaryToCorpusRatio:t,clusterId:i,isSelected:r,onClick:o,onMouseEnter:l,onMouseLeave:c,metricName:d,primaryMetricValue:g,referenceMetricValue:u,hideReference:h}=n,{percentage:f,comparisonInferencesRole:b}=p.useMemo(()=>typeof t=="number"?{percentage:(t+1)/2*100,comparisonInferencesRole:te.corpus}:typeof a=="number"?{percentage:(a+1)/2*100,comparisonInferencesRole:te.reference}:{percentage:100,comparisonInferencesRole:null},[a,t]);return s("div",{css:m`
3195
3195
  border: 1px solid var(--ac-global-border-color-light);
3196
3196
  border-radius: var(--ac-global-rounding-medium);
3197
3197
  overflow: hidden;
@@ -3215,7 +3215,7 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
3215
3215
  display: flex;
3216
3216
  flex-direction: column;
3217
3217
  align-items: end;
3218
- `,children:[e(y,{color:"text-700",size:"XS",children:d}),e(y,{color:"text-900",size:"S",children:ga(g)}),p?null:e(y,{color:"purple-800",size:"XS",children:ga(u)})]})]}),e(g3,{primaryPercentage:f,comparisonInferencesRole:b})]})}function g3({primaryPercentage:n,comparisonInferencesRole:a}){return s("div",{"data-testid":"inferences-distribution",css:m`
3218
+ `,children:[e(y,{color:"text-700",size:"XS",children:d}),e(y,{color:"text-900",size:"S",children:ga(g)}),h?null:e(y,{color:"purple-800",size:"XS",children:ga(u)})]})]}),e(g3,{primaryPercentage:f,comparisonInferencesRole:b})]})}function g3({primaryPercentage:n,comparisonInferencesRole:a}){return s("div",{"data-testid":"inferences-distribution",css:m`
3219
3219
  display: flex;
3220
3220
  flex-direction: row;
3221
3221
  `,children:[e("div",{"data-testid":"primary-distribution",css:m`
@@ -3244,25 +3244,25 @@ fragment ModelEmbeddingsTable_embeddingDimensions_4sIU9C on Query {
3244
3244
 
3245
3245
  height: var(--px-gradient-bar-height);
3246
3246
  width: ${100-n}%;
3247
- `})]})}function i6(){const n=x(d=>d.umapParameters),a=x(d=>d.setUMAPParameters),{handleSubmit:t,control:i,setError:r,formState:{isDirty:o,isValid:l}}=Se({reValidateMode:"onChange",defaultValues:n}),c=h.useCallback(d=>{const g=parseFloat(d.minDist);if(g<R1||g>$1){r("minDist",{message:`must be between ${R1} and ${$1}`});return}a({minDist:g,nNeighbors:parseInt(d.nNeighbors,10),nSamples:parseInt(d.nSamples,10)})},[a,r]);return e("section",{css:m`
3247
+ `})]})}function i6(){const n=x(d=>d.umapParameters),a=x(d=>d.setUMAPParameters),{handleSubmit:t,control:i,setError:r,formState:{isDirty:o,isValid:l}}=Me({reValidateMode:"onChange",defaultValues:n}),c=p.useCallback(d=>{const g=parseFloat(d.minDist);if(g<R1||g>$1){r("minDist",{message:`must be between ${R1} and ${$1}`});return}a({minDist:g,nNeighbors:parseInt(d.nNeighbors,10),nSamples:parseInt(d.nSamples,10)})},[a,r]);return e("section",{css:m`
3248
3248
  & > .ac-form {
3249
3249
  padding: var(--ac-global-dimension-static-size-100)
3250
3250
  var(--ac-global-dimension-static-size-100) 0
3251
3251
  var(--ac-global-dimension-static-size-100);
3252
3252
  }
3253
- `,children:e(Me,{onSubmit:t(c),children:s(w,{padding:"size-100",children:[e(_,{name:"minDist",control:i,rules:{required:"field is required"},render:({field:{onChange:d,onBlur:g,value:u},fieldState:{invalid:p,error:f}})=>s($,{type:"number",isInvalid:p,onChange:b=>d(parseFloat(b)),onBlur:g,value:u.toString(),size:"S",children:[e(O,{children:"min distance"}),e(H,{step:.01,min:R1,max:$1}),f?e(R,{children:f.message}):e(y,{slot:"description",children:"how tightly to pack points"})]})}),e(_,{name:"nNeighbors",control:i,rules:{required:"n neighbors is required",min:{value:_1,message:`greater than or equal to ${_1}`},max:{value:N1,message:`less than or equal to ${N1}`}},render:({field:d,fieldState:{invalid:g,error:u}})=>s($,{type:"number",isInvalid:g,...d,value:d.value,size:"S",children:[e(O,{children:"n neighbors"}),e(H,{step:.01,min:_1,max:N1}),u?e(R,{children:u.message}):e(y,{slot:"description",children:"Balances local versus global structure"})]})}),e(_,{name:"nSamples",control:i,rules:{required:"n samples is required",max:{value:jn,message:`must be below ${jn}`},min:{value:Zn,message:`must be above ${Zn}`}},render:({field:{onChange:d,onBlur:g,value:u},fieldState:{invalid:p,error:f}})=>s($,{type:"number",isInvalid:p,onChange:b=>d(parseInt(b,10)),onBlur:g,value:u.toString(),size:"S",children:[e(O,{children:"n samples"}),e(H,{}),f?e(R,{children:f.message}):e(y,{slot:"description",children:"number of points to use per inferences"})]})}),e(D,{variant:o?"primary":"default",type:"submit",isDisabled:!l,css:m`
3253
+ `,children:e(Te,{onSubmit:t(c),children:s(w,{padding:"size-100",children:[e(_,{name:"minDist",control:i,rules:{required:"field is required"},render:({field:{onChange:d,onBlur:g,value:u},fieldState:{invalid:h,error:f}})=>s($,{type:"number",isInvalid:h,onChange:b=>d(parseFloat(b)),onBlur:g,value:u.toString(),size:"S",children:[e(O,{children:"min distance"}),e(H,{step:.01,min:R1,max:$1}),f?e(R,{children:f.message}):e(y,{slot:"description",children:"how tightly to pack points"})]})}),e(_,{name:"nNeighbors",control:i,rules:{required:"n neighbors is required",min:{value:_1,message:`greater than or equal to ${_1}`},max:{value:N1,message:`less than or equal to ${N1}`}},render:({field:d,fieldState:{invalid:g,error:u}})=>s($,{type:"number",isInvalid:g,...d,value:d.value,size:"S",children:[e(O,{children:"n neighbors"}),e(H,{step:.01,min:_1,max:N1}),u?e(R,{children:u.message}):e(y,{slot:"description",children:"Balances local versus global structure"})]})}),e(_,{name:"nSamples",control:i,rules:{required:"n samples is required",max:{value:jn,message:`must be below ${jn}`},min:{value:Zn,message:`must be above ${Zn}`}},render:({field:{onChange:d,onBlur:g,value:u},fieldState:{invalid:h,error:f}})=>s($,{type:"number",isInvalid:h,onChange:b=>d(parseInt(b,10)),onBlur:g,value:u.toString(),size:"S",children:[e(O,{children:"n samples"}),e(H,{}),f?e(R,{children:f.message}):e(y,{slot:"description",children:"number of points to use per inferences"})]})}),e(D,{variant:o?"primary":"default",type:"submit",isDisabled:!l,css:m`
3254
3254
  width: 100%;
3255
3255
  margin-top: var(--ac-global-dimension-static-size-100);
3256
- `,children:"Apply UMAP Parameters"})]})})})}function r6(){const n=x(g=>g.hdbscanParameters),a=x(g=>g.setHDBSCANParameters),t=x(g=>g.clustersLoading),{control:i,handleSubmit:r,formState:{isDirty:o,isValid:l},reset:c}=Se({defaultValues:n}),d=h.useCallback(g=>{const u={minClusterSize:parseInt(g.minClusterSize,10),clusterMinSamples:parseInt(g.clusterMinSamples,10),clusterSelectionEpsilon:parseFloat(g.clusterSelectionEpsilon)};a(u),c(u)},[a,c]);return e("section",{css:m`
3256
+ `,children:"Apply UMAP Parameters"})]})})})}function r6(){const n=x(g=>g.hdbscanParameters),a=x(g=>g.setHDBSCANParameters),t=x(g=>g.clustersLoading),{control:i,handleSubmit:r,formState:{isDirty:o,isValid:l},reset:c}=Me({defaultValues:n}),d=p.useCallback(g=>{const u={minClusterSize:parseInt(g.minClusterSize,10),clusterMinSamples:parseInt(g.clusterMinSamples,10),clusterSelectionEpsilon:parseFloat(g.clusterSelectionEpsilon)};a(u),c(u)},[a,c]);return e("section",{css:m`
3257
3257
  & > .ac-form {
3258
3258
  padding: var(--ac-global-dimension-static-size-100)
3259
3259
  var(--ac-global-dimension-static-size-100) 0
3260
3260
  var(--ac-global-dimension-static-size-100);
3261
3261
  }
3262
- `,children:e(Me,{onSubmit:r(d),children:s(w,{padding:"size-100",children:[e(_,{name:"minClusterSize",control:i,rules:{required:"field is required",min:{value:mo,message:"must be greater than 1"},max:{value:W1,message:"must be less than 2,147,483,647"}},render:({field:{onChange:g,onBlur:u,value:p},fieldState:{invalid:f,error:b}})=>s($,{type:"number",isInvalid:f,onChange:v=>g(parseInt(v,10)),onBlur:u,value:p.toString(),size:"S",children:[e(O,{children:"Min Cluster Size"}),e(H,{}),b?e(R,{children:b.message}):e(y,{slot:"description",children:"The smallest size for a cluster."})]})}),e(_,{name:"clusterMinSamples",control:i,rules:{required:"field is required",min:{value:Gn,message:`must be greater than ${Gn}`},max:{value:W1,message:"must be less than 2,147,483,647"}},render:({field:{onBlur:g,onChange:u,value:p},fieldState:{invalid:f,error:b}})=>s($,{type:"number",isInvalid:f,onChange:v=>u(parseInt(v,10)),onBlur:g,value:p.toString(),size:"S",children:[e(O,{children:"Cluster Minimum Samples"}),e(H,{}),b?e(R,{children:b.message}):e(y,{slot:"description",children:"Determines if a point is a core point"})]})}),e(_,{name:"clusterSelectionEpsilon",control:i,rules:{required:"field is required",min:{value:0,message:"must be a non-negative number"},max:{value:W1,message:"must be less than 2,147,483,647"}},render:({field:{onBlur:g,onChange:u,value:p},fieldState:{invalid:f,error:b}})=>s($,{type:"number",isInvalid:f,onChange:v=>u(parseInt(v,10)),onBlur:g,value:p.toString(),size:"S",children:[e(O,{children:"Cluster Selection Epsilon"}),e(H,{}),b?e(R,{children:b.message}):e(y,{slot:"description",children:"A distance threshold"})]})}),e(D,{variant:o?"primary":"default",type:"submit",isDisabled:!l||t,css:m`
3262
+ `,children:e(Te,{onSubmit:r(d),children:s(w,{padding:"size-100",children:[e(_,{name:"minClusterSize",control:i,rules:{required:"field is required",min:{value:mo,message:"must be greater than 1"},max:{value:W1,message:"must be less than 2,147,483,647"}},render:({field:{onChange:g,onBlur:u,value:h},fieldState:{invalid:f,error:b}})=>s($,{type:"number",isInvalid:f,onChange:v=>g(parseInt(v,10)),onBlur:u,value:h.toString(),size:"S",children:[e(O,{children:"Min Cluster Size"}),e(H,{}),b?e(R,{children:b.message}):e(y,{slot:"description",children:"The smallest size for a cluster."})]})}),e(_,{name:"clusterMinSamples",control:i,rules:{required:"field is required",min:{value:Gn,message:`must be greater than ${Gn}`},max:{value:W1,message:"must be less than 2,147,483,647"}},render:({field:{onBlur:g,onChange:u,value:h},fieldState:{invalid:f,error:b}})=>s($,{type:"number",isInvalid:f,onChange:v=>u(parseInt(v,10)),onBlur:g,value:h.toString(),size:"S",children:[e(O,{children:"Cluster Minimum Samples"}),e(H,{}),b?e(R,{children:b.message}):e(y,{slot:"description",children:"Determines if a point is a core point"})]})}),e(_,{name:"clusterSelectionEpsilon",control:i,rules:{required:"field is required",min:{value:0,message:"must be a non-negative number"},max:{value:W1,message:"must be less than 2,147,483,647"}},render:({field:{onBlur:g,onChange:u,value:h},fieldState:{invalid:f,error:b}})=>s($,{type:"number",isInvalid:f,onChange:v=>u(parseInt(v,10)),onBlur:g,value:h.toString(),size:"S",children:[e(O,{children:"Cluster Selection Epsilon"}),e(H,{}),b?e(R,{children:b.message}):e(y,{slot:"description",children:"A distance threshold"})]})}),e(D,{variant:o?"primary":"default",type:"submit",isDisabled:!l||t,css:m`
3263
3263
  width: 100%;
3264
3264
  margin-top: var(--ac-global-dimension-static-size-100);
3265
- `,children:t?"Applying...":"Apply Clustering Config"})]})})})}function m3(n){return typeof n=="string"&&n in Ee}function o6(n){return s(i1,{selectedKeys:[n.size],size:"L","aria-label":"Selection Grid Size",onSelectionChange:a=>{if(a.size===0)return;const t=a.keys().next().value;if(m3(t))n.onChange(t);else throw new Error(`Unknown grid size: ${t}`)},children:[e(ie,{"aria-label":"Small",id:Ee.small,children:"S"}),e(ie,{"aria-label":"Medium",id:Ee.medium,children:"M"}),e(ie,{"aria-label":"Large",id:Ee.large,children:"L"})]})}function p3(n){const{value:a}=n;return s("div",{className:"typescript-code-block",css:Ot,children:[e(In,{text:a}),e(os,{value:a})]})}function l6({indeterminate:n,...a}){const t=h.useRef(null);return U.useEffect(()=>{typeof n=="boolean"&&(t.current.indeterminate=!a.checked&&n)},[t,n,a.checked]),e("div",{onClick:i=>{i.stopPropagation()},children:e("input",{type:"checkbox",ref:t,css:m`
3265
+ `,children:t?"Applying...":"Apply Clustering Config"})]})})})}function m3(n){return typeof n=="string"&&n in Ve}function o6(n){return s(i1,{selectedKeys:[n.size],size:"L","aria-label":"Selection Grid Size",onSelectionChange:a=>{if(a.size===0)return;const t=a.keys().next().value;if(m3(t))n.onChange(t);else throw new Error(`Unknown grid size: ${t}`)},children:[e(ie,{"aria-label":"Small",id:Ve.small,children:"S"}),e(ie,{"aria-label":"Medium",id:Ve.medium,children:"M"}),e(ie,{"aria-label":"Large",id:Ve.large,children:"L"})]})}function p3(n){const{value:a}=n;return s("div",{className:"typescript-code-block",css:Ot,children:[e(In,{text:a}),e(os,{value:a})]})}function l6({indeterminate:n,...a}){const t=p.useRef(null);return U.useEffect(()=>{typeof n=="boolean"&&(t.current.indeterminate=!a.checked&&n)},[t,n,a.checked]),e("div",{onClick:i=>{i.stopPropagation()},children:e("input",{type:"checkbox",ref:t,css:m`
3266
3266
  cursor: pointer;
3267
3267
  `,...a})})}const _n="https://app.phoenix.arize.com",h3="https://llamatrace.com",f3=[_n,h3],bi=f3.includes(n1),cn=()=>s("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.25",y:"0.25",width:"31.5",height:"31.5"}),e("g",{mask:"url(#mask0_1112_37116)",children:e("path",{d:"M26.2795 13.8229C26.824 12.1886 26.6365 10.3984 25.7657 8.91186C24.4562 6.63186 21.8237 5.45886 19.2527 6.01086C18.109 4.72236 16.4657 3.98961 14.743 4.00011C12.115 3.99411 9.78324 5.68611 8.97474 8.18661C7.28649 8.53236 5.82924 9.58911 4.97649 11.0869C3.65724 13.3609 3.95799 16.2274 5.72049 18.1774C5.17599 19.8116 5.36349 21.6019 6.23424 23.0884C7.54374 25.3684 10.1762 26.5414 12.7472 25.9894C13.8902 27.2779 15.5342 28.0106 17.257 27.9994C19.8865 28.0061 22.219 26.3126 23.0275 23.8099C24.7157 23.4641 26.173 22.4074 27.0257 20.9096C28.3435 18.6356 28.042 15.7714 26.2802 13.8214L26.2795 13.8229ZM17.2585 26.4311C16.2062 26.4326 15.187 26.0644 14.3792 25.3901C14.416 25.3706 14.4797 25.3354 14.521 25.3099L19.3 22.5499C19.5445 22.4111 19.6945 22.1509 19.693 21.8696V15.1324L21.7127 16.2986C21.7345 16.3091 21.7487 16.3301 21.7517 16.3541V21.9334C21.7487 24.4144 19.7395 26.4259 17.2585 26.4311ZM7.59549 22.3039C7.06824 21.3934 6.87849 20.3261 7.05924 19.2904C7.09449 19.3114 7.15674 19.3496 7.20099 19.3751L11.98 22.1351C12.2222 22.2769 12.5222 22.2769 12.7652 22.1351L18.5995 18.7661V21.0986C18.601 21.1226 18.5897 21.1459 18.571 21.1609L13.7402 23.9501C11.5885 25.1891 8.84049 24.4526 7.59624 22.3039H7.59549ZM6.33774 11.8721C6.86274 10.9601 7.69149 10.2626 8.67849 9.90036C8.67849 9.94161 8.67624 10.0144 8.67624 10.0654V15.5861C8.67474 15.8666 8.82474 16.1269 9.06849 16.2656L14.9027 19.6339L12.883 20.8001C12.8627 20.8136 12.8372 20.8159 12.8147 20.8061L7.98324 18.0146C5.83599 16.7711 5.09949 14.0239 6.33699 11.8729L6.33774 11.8721ZM22.9322 15.7339L17.098 12.3649L19.1177 11.1994C19.138 11.1859 19.1635 11.1836 19.186 11.1934L24.0175 13.9826C26.1685 15.2254 26.9057 17.9771 25.663 20.1281C25.1372 21.0386 24.3092 21.7361 23.323 22.0991V16.4134C23.3252 16.1329 23.176 15.8734 22.933 15.7339H22.9322ZM24.9422 12.7084C24.907 12.6866 24.8447 12.6491 24.8005 12.6236L20.0215 9.86361C19.7792 9.72186 19.4792 9.72186 19.2362 9.86361L13.402 13.2326V10.9001C13.4005 10.8761 13.4117 10.8529 13.4305 10.8379L18.2612 8.05086C20.413 6.80961 23.164 7.54836 24.4045 9.70086C24.9287 10.6099 25.1185 11.6741 24.9407 12.7084H24.9422ZM12.304 16.8656L10.2835 15.6994C10.2617 15.6889 10.2475 15.6679 10.2445 15.6439V10.0646C10.246 7.58061 12.2612 5.56761 14.7452 5.56911C15.796 5.56911 16.813 5.93811 17.6207 6.61011C17.584 6.62961 17.521 6.66486 17.479 6.69036L12.7 9.45036C12.4555 9.58911 12.3055 9.84861 12.307 10.1299L12.304 16.8641V16.8656ZM13.4012 14.5001L16 12.9994L18.5987 14.4994V17.5001L16 19.0001L13.4012 17.5001V14.5001Z",fill:"var(--ac-global-text-color-900)"})})]}),b3=()=>s("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M24.3968 1.6001H7.60314C4.28768 1.6001 1.59998 4.28781 1.59998 7.60326V24.3969C1.59998 27.7124 4.28768 30.4001 7.60314 30.4001H24.3968C27.7123 30.4001 30.4 27.7124 30.4 24.3969V7.60326C30.4 4.28781 27.7123 1.6001 24.3968 1.6001Z",fill:"black"}),e("path",{d:"M20.4595 22.9326C20.3942 22.8597 20.3287 22.7869 20.2634 22.7142C19.8027 22.2107 19.5742 21.6292 19.7557 20.8584C18.0112 21.4241 16.3359 21.5521 14.6059 21.1564C14.5605 21.6739 14.5424 22.1469 14.4722 22.6121C14.3864 23.1814 14.2552 23.7437 14.1477 24.3097C14.1102 24.5069 14.069 24.7054 14.0567 24.9049C14.02 25.4989 14.0332 26.0987 13.9532 26.6862C13.912 26.9884 13.7144 27.2694 13.5982 27.535H12.303L12.31 27.5189C12.3792 27.3307 12.4482 27.1426 12.5174 26.9544L12.5139 26.9589C12.5839 26.8887 12.6537 26.8184 12.7237 26.7482L12.7192 26.7527C12.7545 26.7172 12.7899 26.6819 12.8252 26.6464L13.0159 26.6244C13.0344 26.3096 13.0315 26.4252 13.0344 26.3096C13.0482 25.7476 13.04 25.184 13.0099 24.6227C12.9987 24.4167 12.9055 24.215 12.8499 24.0114C12.8112 24.0124 12.7725 24.0134 12.7339 24.0144C12.5274 24.7594 12.3209 25.5046 12.1144 26.2496L12.1235 26.2456C11.9757 26.5136 11.7677 27.0334 11.6199 27.3014C11.436 27.318 10.9177 27.2861 10.4885 27.2886C10.5235 26.9346 10.6549 26.7491 10.878 26.5487C11.3579 26.118 11.487 25.4862 11.4852 24.8812C11.4827 24.0362 11.3699 23.1917 11.3042 22.3469C11.3974 22.1771 11.4514 21.9604 11.5899 21.8451C12.5272 21.0642 13.2919 20.1312 14.0057 19.1537C14.6967 18.2074 15.3922 17.2629 16.0434 16.2891C16.7605 15.2164 17.5035 14.1457 17.668 12.8106C18.8827 12.9386 20.0424 13.2344 21.131 13.8176C21.4637 13.9957 21.8812 14.0157 22.2597 14.1082C22.4 14.2166 22.608 14.2959 22.6692 14.4382C22.9775 15.1554 23.2792 15.8786 23.523 16.6194C23.8229 17.5306 23.903 18.4651 23.748 19.4289C23.5624 20.5829 23.0542 21.576 22.3997 22.5182C22.2909 22.675 22.2555 22.8829 22.1862 23.0672L22.1887 23.0642C22.075 23.1445 21.9549 23.2172 21.849 23.3065C21.5627 23.548 21.4935 24.0167 21.0379 24.0824C21.0317 24.0576 21.0287 24.0326 21.0292 24.0069C21.0052 23.9615 20.9814 23.9164 20.9574 23.8711C20.7914 23.5582 20.6252 23.2456 20.4592 22.9327L20.4595 22.9326ZM8.62136 9.51022C8.44703 9.50288 8.26653 9.63839 8.08886 9.70789C8.08886 9.70789 7.92619 11.0549 7.92619 11.7327C7.92619 12.4106 8.15803 12.9852 8.19736 13.6229C8.22536 14.0771 8.24753 14.5626 8.42353 14.9684C8.63486 15.4552 8.7267 15.9257 8.70036 16.4434C8.62736 17.8817 9.37319 18.8549 10.5164 19.5961C11.0305 19.0374 11.5887 18.5127 12.0495 17.9131C12.9719 16.7127 13.7595 15.4267 14.1932 13.9569C14.2835 13.6507 14.343 13.3357 14.4312 12.9639C14.4792 12.9149 14.5777 12.8141 14.6762 12.7132L12.3105 12.7066C12.2757 12.6751 12.2514 12.6529 12.2165 12.6214L11.9172 9.70205C10.8187 9.63455 9.72053 9.55639 8.62103 9.51005L8.62136 9.51022ZM11.0974 6.03072C10.7014 5.23139 10.1199 4.61372 9.23886 4.26172C9.22486 4.50289 9.21353 4.69605 9.2012 4.90972C8.90686 4.69755 8.64653 4.51005 8.31036 4.26772C8.35336 4.70072 8.39503 5.00289 8.41103 5.30655C8.44253 5.90689 8.18469 6.20839 7.58003 6.29239C7.46219 6.30872 7.33986 6.29239 7.22136 6.30622C6.86669 6.34722 6.67719 6.54672 6.62953 6.90005C6.56719 7.36139 6.80303 7.66355 7.18053 7.84722C7.57336 8.03839 7.99219 8.17639 8.47136 8.36605C8.40119 8.60255 8.32986 8.83639 8.26286 9.07139C8.20253 9.28289 8.14703 9.49572 8.08936 9.70805C8.26703 9.63855 8.44736 9.50305 8.62186 9.51039C9.72136 9.55672 10.8195 9.63472 11.918 9.70238C11.856 8.43122 11.6695 7.18522 11.0977 6.03105L11.0974 6.03072ZM22.7327 23.7432C22.7654 23.7774 22.7979 23.8114 22.8305 23.8456C22.8647 23.8799 22.8989 23.9142 22.933 23.9484C22.967 23.9811 23.0009 24.0137 23.0349 24.0464C23.1599 24.1296 23.2849 24.2129 23.4097 24.2961C23.4704 23.9702 23.8405 23.5016 24.1502 23.2742C24.278 23.1804 24.3344 22.9924 24.4334 22.8546C24.4887 22.7776 24.5649 22.7156 24.6317 22.6469C24.6047 22.4296 24.5622 22.2131 24.5539 21.9951C24.53 21.3696 24.5692 20.7522 24.3732 20.1277C24.1377 19.3777 24.2292 18.5857 24.2729 17.7916C24.9915 17.6471 25.2974 17.1784 25.3377 16.5476C25.3864 15.7856 25.2435 15.0506 24.7662 14.4271C24.424 13.9802 23.9605 13.7294 23.3855 13.8199C23.0047 13.8797 22.6349 14.0094 22.26 14.1079C22.4004 14.2162 22.6084 14.2956 22.6695 14.4379C22.9779 15.1551 23.2795 15.8782 23.5234 16.6191C23.8232 17.5302 23.9034 18.4647 23.7484 19.4286C23.5627 20.5826 23.0545 21.5757 22.4 22.5179C22.2912 22.6747 22.2559 22.8826 22.1865 23.0669C22.3687 23.2924 22.5507 23.5177 22.7329 23.7432H22.7327ZM16.429 12.7566C16.3242 14.1091 15.68 15.2467 14.965 16.3461C14.3355 17.3139 13.7025 18.2844 12.9959 19.1956C12.4884 19.8499 11.857 20.4084 11.2809 21.0096C11.2887 21.4552 11.2965 21.9011 11.3044 22.3467C11.3975 22.1769 11.4515 21.9602 11.59 21.8449C12.5274 21.0641 13.292 20.1311 14.0059 19.1536C14.6969 18.2072 15.3924 17.2627 16.0435 16.2889C16.7607 15.2162 17.5037 14.1456 17.6682 12.8104C17.2552 12.7924 16.8422 12.7746 16.4292 12.7566H16.429ZM11.0757 19.9797C11.6089 19.3922 12.2085 18.8511 12.6599 18.2062C13.3574 17.2101 13.9809 16.1586 14.582 15.1002C14.923 14.5001 15.171 13.8462 15.203 13.1314C15.2087 13.0027 15.3402 12.8799 15.4135 12.7542C15.3532 12.7559 15.293 12.7576 15.2327 12.7592C15.1554 12.7434 15.078 12.7274 15.0009 12.7116C14.8927 12.7122 14.7847 12.7127 14.6765 12.7134C14.578 12.8142 14.4794 12.9151 14.4315 12.9641C14.3434 13.3357 14.2837 13.6509 14.1935 13.9571C13.7599 15.4269 12.9722 16.7129 12.0499 17.9132C11.589 18.5129 11.0309 19.0376 10.5167 19.5962C10.703 19.7241 10.8894 19.8519 11.0757 19.9799V19.9797ZM15.712 12.7541C15.752 13.8777 15.2507 14.8322 14.7135 15.7546C14.1947 16.6451 13.6115 17.5002 13.0197 18.3452C12.6715 18.8424 12.2557 19.2926 11.8627 19.7576C11.6777 19.9764 11.4749 20.1802 11.28 20.3907C11.2804 20.5971 11.2805 20.8032 11.2809 21.0096C11.857 20.4084 12.4884 19.8499 12.9959 19.1956C13.7025 18.2846 14.3357 17.3141 14.965 16.3461C15.68 15.2467 16.3242 14.1091 16.429 12.7566C16.19 12.7557 15.951 12.7549 15.7119 12.7541H15.712ZM23.4289 24.3776C23.5199 24.5641 23.6867 24.7499 23.6879 24.9369C23.692 25.6002 23.6439 26.2644 23.6017 26.9272C23.598 26.9859 23.4942 27.0382 23.4369 27.0935C23.3985 27.1222 23.36 27.1509 23.3217 27.1796C23.2885 27.2149 23.2554 27.2502 23.2222 27.2854C23.186 27.3172 23.1497 27.3489 23.1135 27.3807C23.1704 27.4447 23.2244 27.5609 23.2844 27.564C23.6212 27.582 23.9594 27.5727 24.3122 27.5727C24.6089 26.8482 24.7105 26.1406 24.6009 25.4002C24.5792 25.2536 24.5384 25.0701 24.6017 24.9571C25.0337 24.1864 24.9189 23.4202 24.6317 22.6467C24.5649 22.7154 24.4887 22.7774 24.4334 22.8544C24.3344 22.9922 24.278 23.1802 24.1502 23.2741C23.8405 23.5014 23.4704 23.9701 23.4097 24.2959C23.4145 24.3234 23.4209 24.3505 23.4289 24.3774V24.3776ZM15.4137 12.7541C15.3404 12.8796 15.2089 13.0026 15.2032 13.1312C15.1712 13.8461 14.9232 14.4999 14.5822 15.1001C13.9809 16.1586 13.3575 17.2101 12.66 18.2061C12.2085 18.8509 11.609 19.3919 11.0759 19.9796C11.144 20.1166 11.212 20.2536 11.2802 20.3906C11.475 20.1799 11.6779 19.9762 11.8629 19.7574C12.2559 19.2926 12.6717 18.8422 13.0199 18.345C13.6115 17.5001 14.1949 16.6449 14.7137 15.7544C15.2509 14.8321 15.7522 13.8776 15.7122 12.7539C15.6127 12.7539 15.5134 12.7539 15.4139 12.7539L15.4137 12.7541ZM15.0009 12.7114C15.0782 12.7272 15.1555 12.7432 15.2327 12.7591C15.1554 12.7432 15.078 12.7272 15.0009 12.7114ZM12.2212 12.6641C12.251 12.6782 12.281 12.6924 12.3109 12.7066C12.2842 12.6857 12.2542 12.6716 12.2212 12.6641ZM20.2559 26.4779C20.1152 26.5756 19.9745 26.6732 19.8339 26.7709C19.8065 26.9284 19.7792 27.0859 19.7505 27.2509H20.9545C20.9545 27.0077 20.9384 26.7889 20.9602 26.5741C20.9747 26.4314 21.0054 26.2596 21.0949 26.1604C21.8912 25.2774 22.2055 24.2307 22.189 23.064C22.0754 23.1444 21.9552 23.2171 21.8494 23.3064C21.563 23.5479 21.4939 24.0166 21.0382 24.0822C21.0512 24.9702 20.7829 25.7662 20.256 26.4779H20.2559Z",fill:"url(#paint0_linear_1119_37286)"}),e("defs",{children:s("linearGradient",{id:"paint0_linear_1119_37286",x1:"3.72803",y1:"12.2264",x2:"26.5747",y2:"25.3626",gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#F6DDD7"}),e("stop",{offset:"0.25",stopColor:"#FCABE6"}),e("stop",{offset:"0.3",stopColor:"#F3ADE6"}),e("stop",{offset:"0.38",stopColor:"#DDB3E8"}),e("stop",{offset:"0.48",stopColor:"#B8BCEC"}),e("stop",{offset:"0.59",stopColor:"#85CAF1"}),e("stop",{offset:"0.7",stopColor:"#50D8F6"}),e("stop",{offset:"0.76",stopColor:"#50D8F6"}),e("stop",{offset:"0.86",stopColor:"#B58FE8"})]})})]}),vi=()=>s("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"0.25",y:"0.25",width:"31.5",height:"31.5"}),e("path",{d:"M24.0371 13.2112C24.5781 13.7522 24.5781 14.6325 24.0371 15.1734L22.8253 16.3657L22.813 16.2974C22.7245 15.8074 22.4915 15.3627 22.1398 15.011C21.875 14.7467 21.5619 14.5513 21.2091 14.4303C20.9902 14.6504 20.8698 14.9388 20.8698 15.2423C20.8698 15.3039 20.8754 15.3678 20.8866 15.4316C21.0809 15.5016 21.2528 15.6097 21.3973 15.7542C21.9382 16.2951 21.9382 17.1754 21.3973 17.7164L20.3422 18.7714C20.0718 19.0419 19.7167 19.1769 19.3611 19.1769C19.0055 19.1769 18.6505 19.0419 18.38 18.7714C17.839 18.2305 17.839 17.3502 18.38 16.8092L19.5918 15.6175L19.6042 15.6858C19.6921 16.1747 19.925 16.6194 20.2778 16.9716C20.5433 17.237 20.8373 17.4134 21.1895 17.5338L21.2545 17.4689C21.4516 17.2718 21.5597 17.0097 21.5597 16.7302C21.5597 16.6681 21.5541 16.6059 21.5434 16.5449C21.3402 16.4777 21.1727 16.3819 21.0204 16.2296C20.8009 16.0101 20.6642 15.7295 20.6262 15.4187C20.6234 15.3963 20.6217 15.3745 20.6194 15.3521C20.5892 14.9472 20.7354 14.5518 21.0204 14.2674L22.0754 13.2123C22.337 12.9508 22.6853 12.8063 23.0566 12.8063C23.4278 12.8063 23.7762 12.9502 24.0377 13.2123L24.0371 13.2112ZM29.5464 16C29.5464 19.8601 26.4059 23 22.5464 23H9C5.14048 23 2 19.8601 2 16C2 12.1399 5.14048 9 9 9H22.5464C26.4065 9 29.5464 12.1405 29.5464 16ZM15.4904 19.5106C15.6007 19.3768 15.0911 18.9999 14.987 18.8616C14.7753 18.632 14.7742 18.3016 14.6314 18.0334C14.2819 17.2236 13.8804 16.42 13.3187 15.7346C12.7251 14.9847 11.9926 14.3642 11.3492 13.6603C10.8715 13.1692 10.7438 12.4698 10.3222 11.9417C9.74088 11.0832 7.90296 10.8491 7.6336 12.0615C7.63472 12.0996 7.62296 12.1237 7.58992 12.1478C7.44096 12.2558 7.30824 12.3796 7.1968 12.5291C6.92408 12.9088 6.88208 13.5528 7.22256 13.8938C7.23376 13.7141 7.23992 13.5444 7.38216 13.4156C7.64536 13.6413 8.04296 13.7214 8.34816 13.5528C9.0224 14.5154 8.8544 15.8471 9.38976 16.8842C9.5376 17.1295 9.68656 17.3798 9.8764 17.5949C10.0304 17.8346 10.5624 18.1174 10.5938 18.3391C10.5994 18.7199 10.5546 19.136 10.8043 19.4546C10.9219 19.6932 10.633 19.9329 10.4 19.9032C10.0976 19.9446 9.72856 19.6999 9.46368 19.8506C9.37016 19.9519 9.18704 19.8399 9.1064 19.9805C9.0784 20.0533 8.9272 20.1558 9.01736 20.2258C9.1176 20.1496 9.21056 20.0701 9.34552 20.1154C9.32536 20.2252 9.41216 20.2409 9.48104 20.2728C9.4788 20.3473 9.43512 20.4234 9.49224 20.4867C9.55888 20.4195 9.59864 20.3243 9.70448 20.2963C10.0562 20.765 10.414 19.822 11.175 20.2465C11.0205 20.2386 10.8833 20.2582 10.7791 20.3854C10.7534 20.4139 10.7315 20.4475 10.7769 20.4845C11.1874 20.2196 11.1851 20.5752 11.4517 20.466C11.6566 20.359 11.8605 20.2252 12.1041 20.2633C11.8672 20.3316 11.8577 20.522 11.7188 20.6827C11.6953 20.7074 11.6841 20.7354 11.7115 20.7762C12.2032 20.7348 12.2435 20.5713 12.6406 20.3708C12.9368 20.1899 13.2319 20.6284 13.4884 20.3786C13.545 20.3243 13.6222 20.3428 13.6922 20.3355C13.6026 19.8578 12.6176 20.4229 12.6333 19.7822C12.9502 19.5666 12.8774 19.1539 12.8987 18.8207C13.2633 19.0229 13.6687 19.1405 14.026 19.3337C14.2063 19.6249 14.4891 20.0096 14.866 19.9844C14.8761 19.9553 14.885 19.9295 14.8957 19.8998C15.0099 19.9194 15.1566 19.995 15.2194 19.8506C15.3902 20.0292 15.641 20.0202 15.8645 19.9743C16.0297 19.8399 15.5537 19.6484 15.4898 19.5101L15.4904 19.5106ZM25.4926 14.1923C25.4926 13.5405 25.2394 12.9284 24.7797 12.4686C24.3199 12.0089 23.7078 11.7558 23.0554 11.7558C22.403 11.7558 21.791 12.0089 21.3312 12.4686L20.2762 13.5237C20.0298 13.7701 19.8427 14.0596 19.7201 14.3838L19.7128 14.4023L19.6938 14.4079C19.3107 14.5261 18.973 14.7288 18.6902 15.0116L17.6352 16.0666C16.6849 17.0175 16.6849 18.5642 17.6352 19.5146C18.095 19.9743 18.707 20.2274 19.3589 20.2274C20.0107 20.2274 20.6234 19.9743 21.0831 19.5146L22.1382 18.4595C22.3834 18.2142 22.5694 17.9258 22.692 17.6022L22.6993 17.5837L22.7183 17.5775C23.0946 17.4622 23.4418 17.2527 23.7235 16.9716L24.7786 15.9166C25.2383 15.4568 25.4914 14.8447 25.4914 14.1923H25.4926ZM11.6533 18.7216C11.5626 19.0755 11.5329 19.6786 11.0726 19.696C11.0345 19.9004 11.2142 19.9771 11.3772 19.9116C11.539 19.8371 11.6158 19.9704 11.6701 20.1031C11.9198 20.1395 12.2894 20.0197 12.3034 19.724C11.9305 19.509 11.8151 19.1002 11.6527 18.7216H11.6533Z",fill:"var(--ac-global-text-color-900)"})]}),v3=()=>s("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M29.5341 0H2.46593C1.10403 0 0 1.10403 0 2.46593V29.5341C0 30.896 1.10403 32 2.46593 32H29.5341C30.896 32 32 30.896 32 29.5341V2.46593C32 1.10403 30.896 0 29.5341 0Z",fill:"#0EAF9C"}),e("path",{d:"M24.1471 21.3058C24.1471 21.4934 23.9942 21.6447 23.806 21.6447C22.1086 21.6447 20.7328 20.2777 20.7328 18.5913V13.1026C20.7328 10.6667 18.7453 8.69255 16.2944 8.69255C13.8435 8.69255 11.9651 10.6674 11.9651 13.1026V15.1358C11.9611 15.3197 12.1082 15.4716 12.2925 15.4749C12.2951 15.4749 12.2971 15.4749 12.2997 15.4749H14.2389C14.4271 15.4787 14.5833 15.33 14.5872 15.1424C14.5872 15.1398 14.5872 15.1378 14.5872 15.1352V13.0201C14.5872 12.083 15.3513 11.3239 16.2944 11.3239C17.2375 11.3239 18.0016 12.083 18.0016 13.0201V25.7697C17.9976 25.9606 17.8388 26.1126 17.6466 26.1086C15.9571 26.1086 14.5872 24.7475 14.5872 23.0689C14.5872 23.0643 14.5872 23.0597 14.5872 23.0552V18.9842C14.5833 18.7958 14.4284 18.6451 14.2389 18.6451H12.2997C12.1147 18.6451 11.9651 18.7939 11.9651 18.9776C11.9651 18.9802 11.9651 18.9822 11.9651 18.9848V20.342C11.9651 22.0285 10.4801 23.3955 8.78276 23.3955C8.59391 23.3955 8.44165 23.2436 8.44165 23.0565V13.1033C8.44165 8.79386 11.9572 5.30078 16.2944 5.30078C20.6315 5.30078 24.1471 8.79386 24.1471 13.1033V21.3058Z",fill:"white"})]}),C3=()=>s("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("g",{clipPath:"url(#clip0_1112_37203)",children:[e("path",{d:"M29.0909 0H23.2727V6.39251H29.0909V0Z",fill:"black"}),e("path",{d:"M32 0H26.1818V6.39251H32V0Z",fill:"#F7D046"}),e("path",{d:"M5.81818 0H0V6.39251H5.81818V0Z",fill:"black"}),e("path",{d:"M5.81818 6.39258H0V12.7851H5.81818V6.39258Z",fill:"black"}),e("path",{d:"M5.81818 12.7852H0V19.1777H5.81818V12.7852Z",fill:"black"}),e("path",{d:"M5.81818 19.1777H0V25.5702H5.81818V19.1777Z",fill:"black"}),e("path",{d:"M5.81818 25.5698H0V31.9623H5.81818V25.5698Z",fill:"black"}),e("path",{d:"M8.7273 0H2.90912V6.39251H8.7273V0Z",fill:"#F7D046"}),e("path",{d:"M32 6.39258H26.1818V12.7851H32V6.39258Z",fill:"#F2A73B"}),e("path",{d:"M8.7273 6.39258H2.90912V12.7851H8.7273V6.39258Z",fill:"#F2A73B"}),e("path",{d:"M23.2727 6.39258H17.4545V12.7851H23.2727V6.39258Z",fill:"black"}),e("path",{d:"M26.1818 6.39258H20.3636V12.7851H26.1818V6.39258Z",fill:"#F2A73B"}),e("path",{d:"M14.5455 6.39258H8.72729V12.7851H14.5455V6.39258Z",fill:"#F2A73B"}),e("path",{d:"M20.3637 12.7852H14.5455V19.1777H20.3637V12.7852Z",fill:"#EE792F"}),e("path",{d:"M26.1818 12.7852H20.3636V19.1777H26.1818V12.7852Z",fill:"#EE792F"}),e("path",{d:"M14.5455 12.7852H8.72729V19.1777H14.5455V12.7852Z",fill:"#EE792F"}),e("path",{d:"M17.4545 19.1777H11.6364V25.5702H17.4545V19.1777Z",fill:"black"}),e("path",{d:"M20.3637 19.1777H14.5455V25.5702H20.3637V19.1777Z",fill:"#EB5829"}),e("path",{d:"M32 12.7852H26.1818V19.1777H32V12.7852Z",fill:"#EE792F"}),e("path",{d:"M8.7273 12.7852H2.90912V19.1777H8.7273V12.7852Z",fill:"#EE792F"}),e("path",{d:"M29.0909 19.1777H23.2727V25.5702H29.0909V19.1777Z",fill:"black"}),e("path",{d:"M32 19.1777H26.1818V25.5702H32V19.1777Z",fill:"#EB5829"}),e("path",{d:"M29.0909 25.5698H23.2727V31.9623H29.0909V25.5698Z",fill:"black"}),e("path",{d:"M8.7273 19.1777H2.90912V25.5702H8.7273V19.1777Z",fill:"#EB5829"}),e("path",{d:"M32 25.5698H26.1818V31.9623H32V25.5698Z",fill:"#EA3326"}),e("path",{d:"M8.7273 25.5698H2.90912V31.9623H8.7273V25.5698Z",fill:"#EA3326"})]}),e("defs",{children:e("clipPath",{id:"clip0_1112_37203",children:e("rect",{width:"32",height:"32",fill:"white"})})})]}),y3=()=>s("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M26.6667 18.52C26.5078 18.3292 26.2852 18.2025 26.04 18.1633C25.7949 18.1241 25.5438 18.175 25.3333 18.3067L16 25.16V25.4533C16.1347 25.4374 16.2712 25.4501 16.4005 25.4908C16.5299 25.5314 16.6492 25.5989 16.7506 25.689C16.852 25.7791 16.9331 25.8896 16.9887 26.0133C17.0442 26.137 17.0729 26.2711 17.0729 26.4067C17.0729 26.5423 17.0442 26.6763 16.9887 26.8C16.9331 26.9237 16.852 27.0342 16.7506 27.1243C16.6492 27.2144 16.5299 27.2819 16.4005 27.3226C16.2712 27.3632 16.1347 27.3759 16 27.36C16.2165 27.361 16.4274 27.2907 16.6 27.16L26.48 19.8667C26.6725 19.7053 26.7982 19.4781 26.8327 19.2293C26.8672 18.9804 26.808 18.7277 26.6667 18.52Z",fill:"#669DF6"}),e("path",{d:"M16 27.3598C15.7666 27.3322 15.5514 27.2198 15.3953 27.0441C15.2392 26.8684 15.153 26.6415 15.153 26.4065C15.153 26.1714 15.2392 25.9446 15.3953 25.7689C15.5514 25.5931 15.7666 25.4808 16 25.4532V25.1598L6.66669 18.3065C6.45707 18.172 6.20525 18.1194 5.95931 18.1587C5.71337 18.1981 5.49054 18.3266 5.33335 18.5198C5.19277 18.7276 5.13659 18.981 5.17621 19.2287C5.21584 19.4764 5.34831 19.6997 5.54669 19.8532L15.4267 27.1465C15.5952 27.2753 15.8012 27.3455 16.0134 27.3465L16 27.3598Z",fill:"#AECBFA"}),e("path",{d:"M16 24.4531C15.6123 24.4531 15.2334 24.5681 14.9111 24.7834C14.5887 24.9988 14.3375 25.3049 14.1892 25.6631C14.0408 26.0212 14.002 26.4153 14.0776 26.7955C14.1533 27.1757 14.3399 27.5249 14.614 27.7991C14.8882 28.0732 15.2374 28.2598 15.6176 28.3355C15.9978 28.4111 16.3919 28.3723 16.75 28.2239C17.1082 28.0756 17.4143 27.8244 17.6297 27.502C17.845 27.1797 17.96 26.8008 17.96 26.4131C17.96 25.8933 17.7535 25.3948 17.3859 25.0272C17.0183 24.6596 16.5198 24.4531 16 24.4531ZM16 27.3598C15.8095 27.3598 15.6234 27.3031 15.4653 27.197C15.3071 27.0909 15.1841 26.9402 15.1119 26.764C15.0396 26.5878 15.0214 26.3941 15.0595 26.2075C15.0977 26.021 15.1904 25.85 15.326 25.7162C15.4616 25.5825 15.6339 25.4922 15.821 25.4566C16.0081 25.4211 16.2015 25.442 16.3767 25.5168C16.5519 25.5915 16.7008 25.7166 16.8047 25.8762C16.9086 26.0358 16.9626 26.2227 16.96 26.4131C16.96 26.5386 16.9351 26.6628 16.8867 26.7785C16.8383 26.8942 16.7673 26.9992 16.678 27.0873C16.5887 27.1754 16.4827 27.2448 16.3663 27.2916C16.25 27.3384 16.1254 27.3616 16 27.3598Z",fill:"#4285F4"}),e("path",{d:"M8.00001 8.14679C7.73587 8.14333 7.48352 8.03687 7.29673 7.85008C7.10993 7.66328 7.00347 7.41093 7.00001 7.14679V4.64012C6.98365 4.4982 6.99749 4.35441 7.04061 4.21821C7.08373 4.08201 7.15517 3.95647 7.25023 3.84982C7.34529 3.74317 7.46183 3.65782 7.5922 3.59939C7.72256 3.54095 7.86382 3.51074 8.00668 3.51074C8.14955 3.51074 8.2908 3.54095 8.42117 3.59939C8.55153 3.65782 8.66807 3.74317 8.76313 3.84982C8.85819 3.95647 8.92963 4.08201 8.97275 4.21821C9.01587 4.35441 9.02971 4.4982 9.01335 4.64012V7.14679C9.00984 7.41322 8.90153 7.66756 8.71188 7.85472C8.52222 8.04188 8.26647 8.14681 8.00001 8.14679Z",fill:"#AECBFA"}),e("path",{d:"M7.97336 17.0135C8.533 17.0135 8.98669 16.5598 8.98669 16.0002C8.98669 15.4405 8.533 14.9868 7.97336 14.9868C7.41371 14.9868 6.96002 15.4405 6.96002 16.0002C6.96002 16.5598 7.41371 17.0135 7.97336 17.0135Z",fill:"#AECBFA"}),e("path",{d:"M7.97336 14.0667C8.533 14.0667 8.98669 13.613 8.98669 13.0534C8.98669 12.4937 8.533 12.04 7.97336 12.04C7.41371 12.04 6.96002 12.4937 6.96002 13.0534C6.96002 13.613 7.41371 14.0667 7.97336 14.0667Z",fill:"#AECBFA"}),e("path",{d:"M7.97336 11.1067C8.533 11.1067 8.98669 10.6531 8.98669 10.0934C8.98669 9.53376 8.533 9.08008 7.97336 9.08008C7.41371 9.08008 6.96002 9.53376 6.96002 10.0934C6.96002 10.6531 7.41371 11.1067 7.97336 11.1067Z",fill:"#AECBFA"}),e("path",{d:"M24 11.0801C23.7336 11.0766 23.4792 10.9682 23.2921 10.7786C23.1049 10.5889 23 10.3332 23 10.0667V7.56006C23 7.29484 23.1054 7.04049 23.2929 6.85295C23.4804 6.66542 23.7348 6.56006 24 6.56006C24.2652 6.56006 24.5196 6.66542 24.7071 6.85295C24.8946 7.04049 25 7.29484 25 7.56006V10.0667C25.0018 10.1992 24.9772 10.3306 24.9277 10.4535C24.8783 10.5764 24.8049 10.6882 24.7119 10.7825C24.6188 10.8767 24.508 10.9516 24.3858 11.0027C24.2636 11.0538 24.1325 11.0801 24 11.0801Z",fill:"#4285F4"}),e("path",{d:"M24.0266 17.0267C24.5863 17.0267 25.04 16.573 25.04 16.0133C25.04 15.4537 24.5863 15 24.0266 15C23.467 15 23.0133 15.4537 23.0133 16.0133C23.0133 16.573 23.467 17.0267 24.0266 17.0267Z",fill:"#4285F4"}),e("path",{d:"M24.0266 14.0267C24.5863 14.0267 25.04 13.573 25.04 13.0133C25.04 12.4537 24.5863 12 24.0266 12C23.467 12 23.0133 12.4537 23.0133 13.0133C23.0133 13.573 23.467 14.0267 24.0266 14.0267Z",fill:"#4285F4"}),e("path",{d:"M24.0266 5.65313C24.5863 5.65313 25.04 5.19945 25.04 4.6398C25.04 4.08015 24.5863 3.62646 24.0266 3.62646C23.467 3.62646 23.0133 4.08015 23.0133 4.6398C23.0133 5.19945 23.467 5.65313 24.0266 5.65313Z",fill:"#4285F4"}),e("path",{d:"M16 20.0001C15.7359 19.9967 15.4835 19.8902 15.2967 19.7034C15.1099 19.5166 15.0035 19.2642 15 19.0001V16.4534C15.0285 16.2064 15.1468 15.9785 15.3324 15.813C15.518 15.6476 15.758 15.5562 16.0067 15.5562C16.2553 15.5562 16.4953 15.6476 16.6809 15.813C16.8665 15.9785 16.9849 16.2064 17.0133 16.4534V18.9734C17.0151 19.1076 16.9902 19.2408 16.9401 19.3653C16.8899 19.4898 16.8156 19.6031 16.7213 19.6986C16.627 19.7941 16.5147 19.87 16.3909 19.9217C16.2671 19.9735 16.1342 20.0001 16 20.0001Z",fill:"#669DF6"}),e("path",{d:"M16 22.9466C16.5597 22.9466 17.0134 22.4929 17.0134 21.9333C17.0134 21.3736 16.5597 20.9199 16 20.9199C15.4404 20.9199 14.9867 21.3736 14.9867 21.9333C14.9867 22.4929 15.4404 22.9466 16 22.9466Z",fill:"#669DF6"}),e("path",{d:"M16 14.5335C16.5597 14.5335 17.0134 14.0798 17.0134 13.5202C17.0134 12.9605 16.5597 12.5068 16 12.5068C15.4404 12.5068 14.9867 12.9605 14.9867 13.5202C14.9867 14.0798 15.4404 14.5335 16 14.5335Z",fill:"#669DF6"}),e("path",{d:"M16 11.5735C16.5597 11.5735 17.0134 11.1199 17.0134 10.5602C17.0134 10.0006 16.5597 9.54688 16 9.54688C15.4404 9.54688 14.9867 10.0006 14.9867 10.5602C14.9867 11.1199 15.4404 11.5735 16 11.5735Z",fill:"#669DF6"}),e("path",{d:"M20 14.0535C19.7359 14.0501 19.4835 13.9436 19.2967 13.7568C19.1099 13.57 19.0035 13.3177 19 13.0535V10.5469C18.9837 10.4049 18.9975 10.2612 19.0406 10.125C19.0837 9.98875 19.1552 9.8632 19.2502 9.75655C19.3453 9.64991 19.4618 9.56456 19.5922 9.50613C19.7226 9.44769 19.8638 9.41748 20.0067 9.41748C20.1495 9.41748 20.2908 9.44769 20.4212 9.50613C20.5515 9.56456 20.6681 9.64991 20.7631 9.75655C20.8582 9.8632 20.9296 9.98875 20.9728 10.125C21.0159 10.2612 21.0297 10.4049 21.0133 10.5469V13.0535C21.0098 13.32 20.9015 13.5743 20.7119 13.7615C20.5222 13.9486 20.2665 14.0535 20 14.0535Z",fill:"#4285F4"}),e("path",{d:"M20.0133 8.59991C20.573 8.59991 21.0267 8.14622 21.0267 7.58658C21.0267 7.02693 20.573 6.57324 20.0133 6.57324C19.4537 6.57324 19 7.02693 19 7.58658C19 8.14622 19.4537 8.59991 20.0133 8.59991Z",fill:"#4285F4"}),e("path",{d:"M20.0133 19.9334C20.573 19.9334 21.0267 19.4797 21.0267 18.9201C21.0267 18.3604 20.573 17.9067 20.0133 17.9067C19.4537 17.9067 19 18.3604 19 18.9201C19 19.4797 19.4537 19.9334 20.0133 19.9334Z",fill:"#4285F4"}),e("path",{d:"M20.0133 16.9734C20.573 16.9734 21.0267 16.5198 21.0267 15.9601C21.0267 15.4005 20.573 14.9468 20.0133 14.9468C19.4537 14.9468 19 15.4005 19 15.9601C19 16.5198 19.4537 16.9734 20.0133 16.9734Z",fill:"#4285F4"}),e("path",{d:"M11.9867 19.9334C12.5463 19.9334 13 19.4797 13 18.9201C13 18.3604 12.5463 17.9067 11.9867 17.9067C11.427 17.9067 10.9733 18.3604 10.9733 18.9201C10.9733 19.4797 11.427 19.9334 11.9867 19.9334Z",fill:"#AECBFA"}),e("path",{d:"M11.9867 11.5735C12.5463 11.5735 13 11.1199 13 10.5602C13 10.0006 12.5463 9.54688 11.9867 9.54688C11.427 9.54688 10.9733 10.0006 10.9733 10.5602C10.9733 11.1199 11.427 11.5735 11.9867 11.5735Z",fill:"#AECBFA"}),e("path",{d:"M11.9867 8.59991C12.5463 8.59991 13 8.14622 13 7.58658C13 7.02693 12.5463 6.57324 11.9867 6.57324C11.427 6.57324 10.9733 7.02693 10.9733 7.58658C10.9733 8.14622 11.427 8.59991 11.9867 8.59991Z",fill:"#AECBFA"}),e("path",{d:"M12 16.9735C11.7381 16.9737 11.4862 16.8724 11.2973 16.6909C11.1083 16.5095 10.997 16.2619 10.9867 16.0001V13.4668C10.9867 13.2016 11.0921 12.9472 11.2796 12.7597C11.4671 12.5722 11.7215 12.4668 11.9867 12.4668C12.2519 12.4668 12.5063 12.5722 12.6938 12.7597C12.8813 12.9472 12.9867 13.2016 12.9867 13.4668V16.0001C12.9798 16.2584 12.8733 16.504 12.6893 16.6854C12.5054 16.8669 12.2584 16.9701 12 16.9735Z",fill:"#AECBFA"})]}),L3=()=>s("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("g",{clipPath:"url(#clip0_1148_5989)",children:e("path",{d:"M1.96742 0.421623C1.1852 0.496042 0.711124 0.64488 0.616309 0.868135C0.379272 1.5379 0.189642 30.6108 0.42668 30.9829C0.592605 31.2309 1.75409 31.3798 4.64594 31.5286C9.88446 31.8511 30.9571 31.7022 31.2652 31.3798C31.4074 31.2309 31.5259 25.7239 31.5733 16.1736C31.6445 2.15806 31.6208 1.19061 31.2415 0.892941C31.0045 0.719297 29.9852 0.496042 28.9896 0.421623C27.1171 0.24798 4.21927 0.272786 1.96742 0.421623ZM15.7867 2.10844C15.8815 2.3317 15.8578 3.10069 15.763 3.84488C15.6208 5.18441 15.5971 5.20922 14.8385 5.20922C11.6148 5.20922 11.5674 11.386 14.7911 11.4852C15.2652 11.51 15.6445 11.6092 15.6445 11.7332C15.6445 11.8325 15.5259 12.7255 15.36 13.6929L15.0993 15.4294L14.0089 15.2805C10.8326 14.8092 10.2874 14.8092 9.86075 15.2557C9.60001 15.5286 9.5052 15.9007 9.57631 16.2232C10.1452 18.2573 9.83705 18.8526 8.29631 18.8526C6.58964 18.8526 6.3052 18.4061 6.92149 16.6201C7.15853 15.8759 7.13483 15.7519 6.63705 15.3301C6.21038 14.9581 5.6889 14.8836 3.84001 14.8836H1.58816L1.73038 12.8247C1.8252 11.7084 1.89631 8.80612 1.89631 6.39992V2.00922L2.56001 1.91C2.91557 1.86038 5.99705 1.78596 9.43409 1.76116C14.7911 1.73635 15.6682 1.78596 15.7867 2.10844ZM30.0326 2.05883C30.1985 2.23248 30.1985 15.3798 30.0326 15.5286C30.0089 15.5534 29.1556 15.6278 28.1363 15.6774L26.2874 15.8015L26.4296 15.2061C26.643 14.2387 26.1215 12.9488 25.363 12.527C24.4859 12.0557 22.5185 12.0557 21.4519 12.5022C20.4326 12.9488 20.0771 13.6681 20.1956 15.0325L20.2667 16.0991L19.2 15.9751C16.6163 15.6774 16.5452 15.6526 16.6874 15.0325C16.7585 14.71 16.9482 13.5937 17.0904 12.5519C17.3274 10.865 17.3274 10.5922 16.9719 10.1953C16.6637 9.82317 16.3556 9.74875 15.6208 9.84798C14.4593 10.0216 13.9852 9.62472 13.9852 8.50844C13.9852 7.04488 14.3171 6.67279 15.5971 6.7472C16.5452 6.82162 16.7111 6.7472 16.9956 6.20147C17.1615 5.85418 17.3037 4.7379 17.3037 3.64643V1.68674L23.5615 1.78596C26.9985 1.81077 29.9141 1.95961 30.0326 2.05883ZM24.4385 13.9162C24.8415 14.1395 24.8889 14.3875 24.8415 15.7022L24.7704 17.2402L27.4963 17.1906L30.2222 17.1658L30.1985 18.679C30.1748 19.5224 30.1511 22.4743 30.1274 25.2278L30.1037 30.2635H23.2296H16.3556V28.527V26.8154L17.5408 26.9643C18.6548 27.0883 18.7496 27.0635 19.5793 26.1953C20.4326 25.3022 20.4326 25.2774 20.3378 23.541C20.2667 21.9534 20.1719 21.7053 19.5556 21.1596C18.963 20.6139 18.7022 20.5395 17.4696 20.6387L16.0711 20.7379L16.2133 20.0185C16.2845 19.6216 16.3556 18.8278 16.3556 18.2325V17.1906L17.4933 17.3891C18.1096 17.4883 19.2711 17.5875 20.0533 17.5875C21.9259 17.6123 22.2104 17.3146 21.8311 15.7519C21.6889 15.1069 21.6178 14.4867 21.7126 14.3627C22.0919 13.7177 23.6563 13.4697 24.4385 13.9162ZM5.09631 17.6371C5.12001 19.1751 5.6889 19.9937 6.92149 20.341C8.34372 20.7627 9.88446 20.4402 10.7141 19.5968C11.2593 19.0263 11.3778 18.679 11.3778 17.7115V16.5457L12.4682 16.7193C13.0845 16.7937 13.8193 16.8681 14.1274 16.8681C14.6963 16.8681 14.6963 16.9177 14.6963 19.3488C14.6963 21.4573 14.7674 21.9038 15.1467 22.3007C15.5971 22.772 15.6682 22.772 16.7822 22.3999C17.4222 22.1767 18.1096 22.0774 18.323 22.1519C18.7971 22.3255 19.0341 23.8387 18.7259 24.6821C18.4889 25.3022 18.3941 25.3519 17.4696 25.2278C16.9245 25.1782 16.3082 25.0294 16.1185 24.955C15.9052 24.8557 15.5496 24.955 15.2889 25.1534C14.8859 25.4511 14.7911 25.8728 14.7437 27.8821L14.6489 30.2635H11.7571C10.1452 30.2635 7.22964 30.1891 5.26224 30.0898L1.65927 29.941V23.1441V16.3472L3.38964 16.4216L5.09631 16.496V17.6371Z",fill:"#EF4036"})}),e("defs",{children:e("clipPath",{id:"clip0_1148_5989",children:e("rect",{width:"32",height:"32",fill:"transparent"})})})]}),w3=()=>s("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M18.2835 6L26.4963 26.5994H31L22.7873 6H18.2835Z",fill:"var(--ac-global-text-color-900)"}),e("path",{d:"M8.75587 18.4479L11.566 11.2087L14.3762 18.4479H8.75587ZM9.21147 6L1 26.5994H5.59136L7.27074 22.2735H15.8616L17.5407 26.5994H22.132L13.9206 6H9.21147Z",fill:"var(--ac-global-text-color-900)"})]}),x3=()=>s("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M18.9623 11.0195C16.8877 11.0195 15.208 12.6992 15.208 14.7739C15.208 16.8485 16.8877 18.5282 18.9623 18.5282C21.037 18.5282 22.7167 16.8485 22.7167 14.7739C22.7167 12.6992 21.0332 11.0195 18.9623 11.0195ZM18.9623 17.1208C17.6662 17.1208 16.6154 16.07 16.6154 14.7739C16.6154 13.4777 17.6662 12.4269 18.9623 12.4269C20.2585 12.4269 21.3093 13.4777 21.3093 14.7739C21.3093 16.07 20.2585 17.1208 18.9623 17.1208Z",fill:"var(--ac-global-text-color-900)"}),e("path",{d:"M13.7781 11.0308C13.6515 11.0155 13.5212 11.0078 13.3908 11.0078C13.3256 11.0078 13.2642 11.0078 13.2029 11.0078C13.1415 11.0078 13.0763 11.0155 13.015 11.0193C12.7619 11.0385 12.5126 11.0807 12.2672 11.1459C11.7648 11.2801 11.2969 11.514 10.8904 11.84C10.4763 12.1736 10.1426 12.5954 9.91639 13.0786C9.80518 13.3202 9.72081 13.5733 9.67096 13.8341C9.64411 13.9607 9.62494 14.091 9.61343 14.2214C9.6096 14.2866 9.60193 14.348 9.60193 14.417V14.5129V14.6011V15.8589L9.6096 17.1167L9.61727 18.3746H11.0247L11.0323 17.1167V15.8589L11.04 14.6011V14.4707C11.04 14.4323 11.0477 14.3902 11.0515 14.3518C11.0592 14.2751 11.0707 14.1946 11.086 14.1179C11.1167 13.9683 11.1666 13.8188 11.2317 13.6807C11.3621 13.4008 11.5539 13.1553 11.7955 12.9598C12.0486 12.7603 12.3362 12.6108 12.6468 12.5264C12.8079 12.4842 12.9689 12.4536 13.1377 12.4382C13.1798 12.4382 13.222 12.4305 13.2642 12.4305C13.3064 12.4305 13.3486 12.4305 13.3908 12.4305C13.4713 12.4305 13.5518 12.4344 13.6324 12.442C13.9545 12.4727 14.2651 12.5724 14.5451 12.7297L15.2468 11.5102C14.7982 11.2494 14.2996 11.0845 13.7858 11.027L13.7781 11.0308Z",fill:"var(--ac-global-text-color-900)"}),e("path",{d:"M4.789 11.0002C2.71434 10.981 1.01934 12.6453 1.00016 14.72C0.98099 16.7946 2.64532 18.4896 4.71997 18.5088H6.02383V17.1014H4.789C3.49282 17.1168 2.43057 16.0775 2.41523 14.7813C2.39989 13.4852 3.43913 12.4229 4.73531 12.4076H4.789C6.08518 12.4076 7.13593 13.4583 7.13977 14.7545V18.2135C7.13977 19.4982 6.09285 20.5451 4.81201 20.5605C4.19843 20.5566 3.6117 20.3074 3.17836 19.874L2.1813 20.8711C2.87157 21.5652 3.80728 21.9602 4.78517 21.9717H4.83502C6.88283 21.941 8.52799 20.2805 8.53949 18.2327V14.6663C8.48964 12.6261 6.82531 11.0002 4.789 11.0002Z",fill:"var(--ac-global-text-color-900)"}),e("path",{d:"M27.2533 11.0195C25.1787 11.0195 23.499 12.6992 23.499 14.7739C23.499 16.8485 25.1787 18.5282 27.2533 18.5282H28.538V17.1208H27.2533C25.9572 17.1208 24.9064 16.07 24.9064 14.7739C24.9064 13.4777 25.9572 12.4269 27.2533 12.4269C28.469 12.4269 29.4852 13.3588 29.5926 14.5706V21.7801H31V14.7739C30.9962 12.703 29.3242 11.0195 27.2533 11.0195Z",fill:"var(--ac-global-text-color-900)"})]}),k3=()=>e("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"32",height:"32",viewBox:"0 0 400 400",enableBackground:"new 0 0 400 400",xmlSpace:"preserve",children:e("path",{fill:"var(--ac-global-text-color-900)",stroke:"none",d:`
3268
3268
  M108.357758,374.748016
@@ -3388,11 +3388,11 @@ resource: new Resource({
3388
3388
  &:hover {
3389
3389
  color: var(--ac-global-color-primary);
3390
3390
  }
3391
- `,children:e(M,{svg:n.isExpanded?e(c0,{}):e(s0,{})})})}function u6({sequenceNumber:n}){return s(xe,{color:"var(--ac-global-color-yellow-500)",size:"S",children:["#",n]})}const yi=function(){var n=[{defaultValue:null,kind:"LocalArgument",name:"input"}],a=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"ExperimentMutationPayload",kind:"LinkedField",name:"deleteExperiments",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"ExperimentActionMenuDeleteExperimentMutation",selections:a,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"ExperimentActionMenuDeleteExperimentMutation",selections:a},params:{cacheID:"7fcd7830853f4b8f55b104d75dc5312b",id:null,metadata:{},name:"ExperimentActionMenuDeleteExperimentMutation",operationKind:"mutation",text:`mutation ExperimentActionMenuDeleteExperimentMutation(
3391
+ `,children:e(M,{svg:n.isExpanded?e(c0,{}):e(s0,{})})})}function u6({sequenceNumber:n}){return s(ke,{color:"var(--ac-global-color-yellow-500)",size:"S",children:["#",n]})}const yi=function(){var n=[{defaultValue:null,kind:"LocalArgument",name:"input"}],a=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"ExperimentMutationPayload",kind:"LinkedField",name:"deleteExperiments",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"ExperimentActionMenuDeleteExperimentMutation",selections:a,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"ExperimentActionMenuDeleteExperimentMutation",selections:a},params:{cacheID:"7fcd7830853f4b8f55b104d75dc5312b",id:null,metadata:{},name:"ExperimentActionMenuDeleteExperimentMutation",operationKind:"mutation",text:`mutation ExperimentActionMenuDeleteExperimentMutation(
3392
3392
  $input: DeleteExperimentsInput!
3393
3393
  ) {
3394
3394
  deleteExperiments(input: $input) {
3395
3395
  __typename
3396
3396
  }
3397
3397
  }
3398
- `}}}();yi.hash="c7f4f68f0256356c77264cc16b83e638";function g6(n){const[a,t]=N.useMutation(yi),{projectId:i,isQuiet:r=!1}=n,o=Da(),[l,c]=h.useState(null),d=w1(),g=wo(),u=n.onExperimentDeleted,p=h.useCallback(v=>{a({variables:{input:{experimentIds:[v]}},onCompleted:()=>{d({title:"Experiment deleted",message:"The experiment has been deleted."})},onError:L=>{const S=Zt(L);g({title:"An error occurred",message:`Failed to delete experiment: ${(S==null?void 0:S[0])??L.message}`})}}),u==null||u()},[a,d,g,u]),f=h.useCallback(v=>{c(s(pe,{size:"S",title:"Delete Experiment",isDismissable:!0,onDismiss:()=>c(null),children:[e(w,{padding:"size-200",children:e(y,{color:"danger",children:"Are you sure you want to delete this experiment and its annotations and traces?"})}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:e(k,{direction:"row",justifyContent:"end",children:e(D,{variant:"danger",onPress:()=>{p(v),c(null)},children:"Delete Experiment"})})})]}))},[p]),b=[e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(T0,{})}),e(y,{children:"View run traces"})]})},"GO_TO_EXPERIMENT_RUN_TRACES"),e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(Dn,{})}),e(y,{children:"View metadata"})]})},"VIEW_METADATA"),e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(Mt,{})}),e(y,{children:"Copy experiment ID"})]})},"COPY_EXPERIMENT_ID")];return n.canDeleteExperiment&&b.push(e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(I1,{})}),e(y,{children:t?"Deleting...":"Delete"})]})},"DELETE_EXPERIMENT")),s("div",{onClick:v=>{v.preventDefault(),v.stopPropagation()},children:[e(_a,{buttonSize:"compact",align:"end",isQuiet:r,disabledKeys:i?[]:["GO_TO_EXPERIMENT_RUN_TRACES"],onAction:v=>{switch(v){case"GO_TO_EXPERIMENT_RUN_TRACES":return o(`/projects/${i}`);case"VIEW_METADATA":{c(e(pe,{title:"Metadata",onDismiss:()=>c(null),children:e(Pt,{value:JSON.stringify(n.metadata,null,2)})}));break}case"COPY_EXPERIMENT_ID":{Sa(n.experimentId),d({title:"Copied",message:"The experiment ID has been copied to your clipboard"});break}case"DELETE_EXPERIMENT":{f(n.experimentId);break}default:I()}},children:b}),e(y1,{type:"modal",isDismissable:!0,onDismiss:()=>{c(null)},children:l})]})}export{i9 as $,$ as A,wo as B,w1 as C,dt as D,s4 as E,Zt as F,B4 as G,X4 as H,M as I,a9 as J,Y5 as K,X5 as L,gs as M,Q4 as N,$2 as O,Tt as P,W4 as Q,a1 as R,_2 as S,ge as T,sa as U,R4 as V,O2 as W,G4 as X,hs as Y,r9 as Z,k as _,S1 as a,Wo as a$,b9 as a0,I1 as a1,ta as a2,_s as a3,Rt as a4,v9 as a5,Ns as a6,Ks as a7,n1 as a8,u5 as a9,It as aA,Pt as aB,T5 as aC,M5 as aD,G5 as aE,P0 as aF,B as aG,V4 as aH,O5 as aI,F5 as aJ,_5 as aK,z9 as aL,T9 as aM,V5 as aN,M1 as aO,T1 as aP,pl as aQ,U4 as aR,os as aS,rs as aT,xe as aU,I9 as aV,Ct as aW,l4 as aX,c4 as aY,N4 as aZ,Vl as a_,In as aa,$t as ab,M9 as ac,w9 as ad,g5 as ae,L9 as af,k9 as ag,a4 as ah,p4 as ai,r4 as aj,L4 as ak,b4 as al,n4 as am,M4 as an,C9 as ao,h4 as ap,y9 as aq,y4 as ar,S9 as as,f4 as at,x9 as au,c5 as av,s5 as aw,Et as ax,C5 as ay,At as az,pt as b,Z5 as b$,$5 as b0,dl as b1,t1 as b2,is as b3,v0 as b4,k4 as b5,j4 as b6,ic as b7,P9 as b8,D9 as b9,d4 as bA,_9 as bB,w4 as bC,ke as bD,ie as bE,U5 as bF,Js as bG,W as bH,a0 as bI,n5 as bJ,$9 as bK,K9 as bL,H9 as bM,ga as bN,g4 as bO,Ac as bP,R9 as bQ,sc as bR,fl as bS,N9 as bT,Z4 as bU,t9 as bV,u4 as bW,Y as bX,Sl as bY,Z9 as bZ,j5 as b_,Dn as ba,T0 as bb,E9 as bc,A4 as bd,Yl as be,G as bf,F9 as bg,St as bh,Vn as bi,B5 as bj,P4 as bk,Oe as bl,ac as bm,ec as bn,B9 as bo,cc as bp,Le as bq,lc as br,Mt as bs,Wc as bt,ad as bu,Y4 as bv,Xc as bw,Ls as bx,nd as by,i4 as bz,mt as c,i5 as c$,I4 as c0,z4 as c1,Q0 as c2,_4 as c3,F4 as c4,y5 as c5,cl as c6,E5 as c7,A5 as c8,i1 as c9,Xa as cA,o4 as cB,ud as cC,d9 as cD,u9 as cE,g9 as cF,l9 as cG,s9 as cH,m9 as cI,o9 as cJ,Td as cK,zd as cL,ot as cM,Pd as cN,Ge as cO,we as cP,hi as cQ,ln as cR,Ve as cS,o6 as cT,a6 as cU,wn as cV,t6 as cW,r6 as cX,f5 as cY,h5 as cZ,b5 as c_,R5 as ca,G9 as cb,x5 as cc,w5 as cd,xl as ce,H4 as cf,K4 as cg,j9 as ch,U9 as ci,V9 as cj,A9 as ck,x4 as cl,r2 as cm,a2 as cn,f9 as co,En as cp,L1 as cq,yo as cr,W9 as cs,Q9 as ct,q9 as cu,Y9 as cv,X9 as cw,bo as cx,fo as cy,x as cz,a5 as d,J9 as d0,K5 as d1,n6 as d2,i6 as d3,e6 as d4,ps as d5,c9 as d6,p9 as d7,Bt as d8,d2 as d9,D4 as dA,h9 as dB,on as dC,$4 as dD,O9 as dE,J4 as dF,d0 as dG,us as dH,q5 as dI,nc as dJ,u6 as dK,g6 as dL,e9 as dM,aa as dN,m0 as dO,h0 as dP,p5 as dQ,m5 as dR,Q5 as dS,q4 as dT,J5 as dU,m4 as dV,T4 as dW,l5 as dX,d5 as dY,o5 as dZ,jt as da,ms as db,Kt as dc,W5 as dd,O4 as de,v5 as df,S4 as dg,t4 as dh,ae as di,p3 as dj,bs as dk,I5 as dl,C4 as dm,s6 as dn,c6 as dp,e4 as dq,E4 as dr,rc as ds,n9 as dt,l6 as du,Vc as dv,v4 as dw,d6 as dx,r5 as dy,t5 as dz,z5 as e,Dl as f,m1 as g,N5 as h,J as i,g1 as j,Qo as k,hl as l,I as m,L5 as n,wl as o,D5 as p,P5 as q,k5 as r,Co as s,S5 as t,ll as u,H5 as v,y as w,D as x,Dt as y,w as z};
3398
+ `}}}();yi.hash="c7f4f68f0256356c77264cc16b83e638";function g6(n){const[a,t]=N.useMutation(yi),{projectId:i,isQuiet:r=!1}=n,o=Da(),[l,c]=p.useState(null),d=w1(),g=wo(),u=n.onExperimentDeleted,h=p.useCallback(v=>{a({variables:{input:{experimentIds:[v]}},onCompleted:()=>{d({title:"Experiment deleted",message:"The experiment has been deleted."})},onError:L=>{const S=Zt(L);g({title:"An error occurred",message:`Failed to delete experiment: ${(S==null?void 0:S[0])??L.message}`})}}),u==null||u()},[a,d,g,u]),f=p.useCallback(v=>{c(s(fe,{size:"S",title:"Delete Experiment",isDismissable:!0,onDismiss:()=>c(null),children:[e(w,{padding:"size-200",children:e(y,{color:"danger",children:"Are you sure you want to delete this experiment and its annotations and traces?"})}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:e(k,{direction:"row",justifyContent:"end",children:e(D,{variant:"danger",onPress:()=>{h(v),c(null)},children:"Delete Experiment"})})})]}))},[h]),b=[e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(T0,{})}),e(y,{children:"View run traces"})]})},"GO_TO_EXPERIMENT_RUN_TRACES"),e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(Dn,{})}),e(y,{children:"View metadata"})]})},"VIEW_METADATA"),e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(Mt,{})}),e(y,{children:"Copy experiment ID"})]})},"COPY_EXPERIMENT_ID")];return n.canDeleteExperiment&&b.push(e(F,{children:s(k,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(M,{svg:e(I1,{})}),e(y,{children:t?"Deleting...":"Delete"})]})},"DELETE_EXPERIMENT")),s("div",{onClick:v=>{v.preventDefault(),v.stopPropagation()},children:[e(_a,{buttonSize:"compact",align:"end",isQuiet:r,disabledKeys:i?[]:["GO_TO_EXPERIMENT_RUN_TRACES"],onAction:v=>{switch(v){case"GO_TO_EXPERIMENT_RUN_TRACES":return o(`/projects/${i}`);case"VIEW_METADATA":{c(e(fe,{title:"Metadata",onDismiss:()=>c(null),children:e(Pt,{value:JSON.stringify(n.metadata,null,2)})}));break}case"COPY_EXPERIMENT_ID":{Sa(n.experimentId),d({title:"Copied",message:"The experiment ID has been copied to your clipboard"});break}case"DELETE_EXPERIMENT":{f(n.experimentId);break}default:I()}},children:b}),e(y1,{type:"modal",isDismissable:!0,onDismiss:()=>{c(null)},children:l})]})}export{i9 as $,$ as A,wo as B,w1 as C,dt as D,s4 as E,Zt as F,B4 as G,X4 as H,M as I,a9 as J,Y5 as K,X5 as L,gs as M,Q4 as N,$2 as O,Tt as P,W4 as Q,a1 as R,_2 as S,pe as T,sa as U,R4 as V,O2 as W,G4 as X,hs as Y,r9 as Z,k as _,S1 as a,Wo as a$,b9 as a0,I1 as a1,ta as a2,_s as a3,Rt as a4,v9 as a5,Ns as a6,Ks as a7,n1 as a8,u5 as a9,It as aA,Pt as aB,T5 as aC,M5 as aD,G5 as aE,P0 as aF,B as aG,V4 as aH,O5 as aI,F5 as aJ,_5 as aK,z9 as aL,T9 as aM,V5 as aN,M1 as aO,T1 as aP,pl as aQ,U4 as aR,os as aS,rs as aT,ke as aU,I9 as aV,Ct as aW,l4 as aX,c4 as aY,N4 as aZ,Vl as a_,In as aa,$t as ab,M9 as ac,w9 as ad,g5 as ae,L9 as af,k9 as ag,a4 as ah,p4 as ai,r4 as aj,L4 as ak,b4 as al,n4 as am,M4 as an,C9 as ao,h4 as ap,y9 as aq,y4 as ar,S9 as as,f4 as at,x9 as au,c5 as av,s5 as aw,Et as ax,C5 as ay,At as az,pt as b,Z5 as b$,$5 as b0,dl as b1,t1 as b2,is as b3,v0 as b4,k4 as b5,j4 as b6,ic as b7,P9 as b8,D9 as b9,d4 as bA,_9 as bB,w4 as bC,Se as bD,ie as bE,U5 as bF,Js as bG,W as bH,a0 as bI,n5 as bJ,$9 as bK,K9 as bL,H9 as bM,ga as bN,g4 as bO,Ac as bP,R9 as bQ,sc as bR,fl as bS,N9 as bT,Z4 as bU,t9 as bV,u4 as bW,Y as bX,Sl as bY,Z9 as bZ,j5 as b_,Dn as ba,T0 as bb,E9 as bc,A4 as bd,Yl as be,G as bf,F9 as bg,St as bh,Vn as bi,B5 as bj,P4 as bk,Fe as bl,ac as bm,ec as bn,B9 as bo,cc as bp,we as bq,lc as br,Mt as bs,Wc as bt,ad as bu,Y4 as bv,Xc as bw,Ls as bx,nd as by,i4 as bz,mt as c,i5 as c$,I4 as c0,z4 as c1,Q0 as c2,_4 as c3,F4 as c4,y5 as c5,cl as c6,E5 as c7,A5 as c8,i1 as c9,Xa as cA,o4 as cB,ud as cC,d9 as cD,u9 as cE,g9 as cF,l9 as cG,s9 as cH,m9 as cI,o9 as cJ,Td as cK,zd as cL,ot as cM,Pd as cN,Ge as cO,xe as cP,hi as cQ,ln as cR,De as cS,o6 as cT,a6 as cU,wn as cV,t6 as cW,r6 as cX,f5 as cY,h5 as cZ,b5 as c_,R5 as ca,G9 as cb,x5 as cc,w5 as cd,xl as ce,H4 as cf,K4 as cg,j9 as ch,U9 as ci,V9 as cj,A9 as ck,x4 as cl,r2 as cm,a2 as cn,f9 as co,En as cp,L1 as cq,yo as cr,W9 as cs,Q9 as ct,q9 as cu,Y9 as cv,X9 as cw,bo as cx,fo as cy,x as cz,a5 as d,J9 as d0,K5 as d1,n6 as d2,i6 as d3,e6 as d4,ps as d5,c9 as d6,p9 as d7,Bt as d8,d2 as d9,D4 as dA,h9 as dB,on as dC,$4 as dD,O9 as dE,J4 as dF,d0 as dG,us as dH,q5 as dI,nc as dJ,u6 as dK,g6 as dL,e9 as dM,aa as dN,m0 as dO,h0 as dP,p5 as dQ,m5 as dR,Q5 as dS,q4 as dT,J5 as dU,m4 as dV,T4 as dW,l5 as dX,d5 as dY,o5 as dZ,jt as da,ms as db,Kt as dc,W5 as dd,O4 as de,v5 as df,S4 as dg,t4 as dh,ae as di,p3 as dj,bs as dk,I5 as dl,C4 as dm,s6 as dn,c6 as dp,e4 as dq,E4 as dr,rc as ds,n9 as dt,l6 as du,Vc as dv,v4 as dw,d6 as dx,r5 as dy,t5 as dz,z5 as e,Dl as f,m1 as g,N5 as h,J as i,g1 as j,Qo as k,hl as l,I as m,L5 as n,wl as o,D5 as p,P5 as q,k5 as r,Co as s,S5 as t,ll as u,H5 as v,y as w,D as x,Dt as y,w as z};