PageSourceSearch

https://app.croct.com/chunks/page-2LyDCJJp.js

js croct.com collected 2026-10-01 10:40:43 UTC 285,051 bytes, 1,107 lines download raw bytes

1import{s as Zr,t as il,j as m,b as ce,u as kt,c3 as Uc,cj as Mc,ap as Ac,a7 as xt,a9 as Qr,aa as Ht,ab as Bc,ac as Nc,ad as Vc,ae as Hc,c as rl,B as an,q as Sn,b5 as wa,$ as pn,ag as Wc,r as Gc,a1 as Yr,a as sl,ck as Zc,bj as Qc,x as Re,g as Xr,o as Mo,l as Xe,F as Yc,y as Oo,cg as Xc,m as bn,n as gn,cl as Xi,v as Jr,L as Jc,bp as Ji,z as qc,bw as eu,T as Mt,R as qr,e as Ao,D as es,cm as Pe,cn as ns,co as nu,cp as tu,cq as au,bx as lu}from"./index-Dfn_Lcrw.js";import{P as ou}from"./index-DpNUEpSf.js";import{r as ts}from"./composite-DF6SizVk.js";import{c as iu,C as Lt}from"./colors-CbHuh0ma.js";import{b as dl,a as ru}from"./index-CYwZqF1v.js";import{L as su,a as du,Q as as,Z as cu,k as uu,d as mu,W as pu}from"./WJWRXAE2-yp30YUY7.js";import{E as gu,A as fu,T as ls}from"./NA6K3SI7-DsxNIOmq.js";import{a as yu}from"./CalendarIcon-fQMHXxaP.js";import{a as os,g as hu,S as is}from"./index-BamBtAWL.js";import{a as vu}from"./index-DUwt-5OC.js";import{a as rs}from"./index-C55Jgjbw.js";import{b as cl,T as Bo}from"./index-Cc3U2QIv.js";import{A as ss,a as ds}from"./CrossIcon-Dc0ScbFs.js";import{f as ku}from"./index-BHlYalrW.js";import{a as No}from"./index-C8E74WVa.js";import{a as xu}from"./LinkIcon-D3WX6gnb.js";import{a as bu}from"./SparklesIcon-CUc96LgG.js";import{C as Su,a as Iu}from"./index-Bp3DVH2W.js";import{f as Tu,a as Cu}from"./formatDuration-B2X5bQYz.js";import{C as _u,a as wu}from"./index-DO9qMEE2.js";import{G as Fu,a as Pu}from"./GlobeEarthIcon-CA3rxkLF.js";import{a as Eu}from"./index-VKohi0_z.js";import{H as ju,I as Ku}from"./index-Cdp8mErw.js";import{C as Ou}from"./CheckIcon--YCLvNgS.js";import{a as Lu,C as zu}from"./CounterclockwiseIcon-JQS6Aj2z.js";import{f as Ta}from"./filterNodes-Bi1mqyS5.js";import{u as $u}from"./usePolling-BbkkVCvO.js";import{S as Ru}from"./index-C3vZ1D3D.js";import{u as Du,S as Uu}from"./index-DfsiKrmg.js";import{R as Mu}from"./index-C6rHGP1c.js";import{B as Au}from"./index-_KTFObSD.js";import{M as cs,u as Vo}from"./index-C2an8EPJ.js";import{T as qi}from"./TagIcon-0fyqiiOu.js";import{f as Bu}from"./formatNumber-CVztaU0D.js";import{T as Ho}from"./TrayArrowOutIcon-Bl71xh4g.js";import{I as Nu}from"./index-wcwuDP4Q.js";import{U as Vu}from"./index-BoKyKFyR.js";import{P as Hu}from"./PointerActionIcon-1qn4gO2H.js";import{C as us}from"./index-BdcbULFc.js";import{D as Gn}from"./index-C8d98Y9L.js";import{E as ms}from"./EllipsisVerticalIcon-BmAVuCxI.js";import{T as ps}from"./TrayArrowDownIcon-rWixWn7d.js";import{d as gs,f as fs}from"./json-BCsgVfYg.js";import{u as ys}from"./useCustomerDataExporter-Rn8nNTZK.js";import{u as hs}from"./useAdminNotification-Bpk8wose.js";import{B as Wu}from"./BookOpenedIcon-Wda_VlOL.js";import{a as Gu}from"./CopyIcon-JHZgigam.js";import{s as Zu}from"./index-MNkp1Usd.js";import"./UN4MKOLN-DLLyW0zn.js";import"./5EKYTDKF-CKOcePcy.js";import"./O7HGX5PA-DSXj575p.js";import"./7BWVJDM5-B5SPSFz7.js";import"./index-CR_uxl3C.js";import"./index-DUXrkEwn.js";import"./useUpdateEffect-DpRzLXGI.js";import"./util-9DzFDDMP.js";import"./useMeasure-DnDCvNLW.js";import"./useTimeoutFn-DjBpwTFq.js";import"./useEffectOnce-CAtJ0vhH.js";import"./index-BXPuadBa.js";import"./useLocalStorage-BiuFuDNo.js";import"./useTheme-DpnuMcId.js";import"./index-_dgsuOr1.js";import"./index-DeeOzUqx.js";import"./utils-tzx-sBBq.js";import"./colors-Dy6RmWIP.js";import"./index-CoR1rjHq.js";import"./useTruncatedList-BOHFycXs.js";import"./useIsomorphicLayoutEffect-D6SpqBFH.js";import"./useContent-BJ356L08.js";import"./[email protected]";import"./[email protected]";import"./[email protected]";import"./[email protected]";import"./[email protected]";import"./[email protected]";import"./[email protected]";import"./dialog-C0LjA-Jg.js";import"./index-W0E0i1oE.js";import"./index-Cem4O6gn.js";import"./index-BSJFkDl3.js";import"./index-BjiaaNNe.js";import"./index-CM74g51D.js";import"./EyeIcon-CGJsXnEU.js";import"./EyeStrikeIcon-BpoLKZrF.js";import"./index-rNzQ5C9e.js";import"./XOGGS4JT-B145iad0.js";import"./queueMicrotask-CB6DvF5l.js";import"./index-DhhSyKqn.js";import"./index-vKyjOKYt.js";import"./index-BclioYJ1.js";import"./index-BJ55rUaj.js";import"./index-DsfNRLJm.js";import"./index-BoF2SZMZ.js";import"./menu-DqY64vl3.js";import"./ZXXHG5BK-BcKRnyK3.js";import"./S5ZSEKI4-DBX3d1KE.js";import"./WarningCircleIcon-B5Me1Z2s.js";import"./index-Dj6wjUVd.js";import"./react-toastify-TS68KI69.js";import"./CheckCircleIcon-BsjgywB0.js";import"./index-CAG7uXH_.js";import"./cache-Gjjj90P_.js";const vs=function(){var e={defaultValue:null,kind:"LocalArgument",name:"aroundTime"},a={defaultValue:null,kind:"LocalArgument",name:"endUserId"},l={defaultValue:null,kind:"LocalArgument",name:"organizationSlug"},o={defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}
1,r=[{kind:"Variable",name:"slug",variableName:"organizationSlug"}],u=[{kind:"Variable",name:"slug",variableName:"workspaceSlug"}],y=[{kind:"Variable",name:"id",variableName:"endUserId"}],k={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"firstName",storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"lastName",storageKey:null},g={kind:"Variable",name:"aroundTime",variableName:"aroundTime"},S={alias:"firstUserEvents",args:[{kind:"Literal",name:"first",value:1}],concreteType:"EndUserEventConnection",kind:"LinkedField",name:"endUserEvents",plural:!1,selections:[{alias:null,args:null,concreteType:"EndUserEventEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"EndUserEvent",kind:"LinkedField",name:"node",plural:!1,selections:[k],storageKey:null}],storageKey:null}],storageKey:"endUserEvents(first:1)"},C={alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},A={alias:null,args:null,kind:"ScalarField",name:"userId",storageKey:null},Z={alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null},M={alias:null,args:null,kind:"ScalarField",name:"windowStart",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"windowEnd",storageKey:null},oe={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},N=[oe],w={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"externalUserId",storageKey:null},J={alias:null,args:null,concreteType:"EndUser",kind:"LinkedField",name:"endUser",plural:!1,selections:[j,v,I,{alias:null,args:null,kind:"ScalarField",name:"avatar",storageKey:null},k],storageKey:null},Q=[{alias:null,args:null,kind:"ScalarField",name:"customId",storageKey:null},oe,k],O={alias:null,args:null,kind:"ScalarField",name:"total",storageKey:null},ne={alias:null,args:null,kind:"ScalarField",name:"coupon",storageKey:null},me={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},ke={alias:null,args:null,kind:"ScalarField",name:"shippingPrice",storageKey:null},se=[Z],Y={alias:null,args:null,concreteType:"CartItem",kind:"LinkedField",name:"items",plural:!0,selections:se,storageKey:null},V=[{alias:null,args:null,concreteType:"Cart",kind:"LinkedField",name:"cart",plural:!1,selections:[O,ne,me,ke,{alias:null,args:null,kind:"ScalarField",name:"lastUpdateTime",storageKey:null},Y],storageKey:null}],be=[{alias:null,args:null,concreteType:"Cart",kind:"LinkedField",name:"cart",plural:!1,selections:[O,ne,me,ke,Y],storageKey:null}],x={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},he=[x,{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],Ke=[x],Oe=[{alias:null,args:null,concreteType:"AtomicPatch",kind:"LinkedField",name:"patch",plural:!1,selections:[{alias:null,args:null,concreteType:"PatchOperation",kind:"LinkedField",name:"operations",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"path",storageKey:null}],storageKey:null}],storageKey:null}],ee={alias:null,args:null,kind:"ScalarField",name:"variantId",storageKey:null},Mn=[k,oe],An=[{alias:null,args:null,kind:"ScalarField",name:"x",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"y",storageKey:null}],R=[j];return{fragment:{argumentDefinitions:[e,a,l,o],kind:"Fragment",metadata:null,name:"pageUserProfileTimelineResourceQuery",selections:[{kind:"RequiredField",field:{alias:null,args:r,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{args:[{kind:"Variable",name:"workspaceSlug",variableName:"workspaceSlug"}],kind:"FragmentSpread",name:"UserProfileTimelineOrganizationFragment"},{kind:"RequiredField",field:{alias:null,args:u,concreteType:"Workspace",kind:"LinkedField",name:"workspace",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"UserProfileTimelineWorkspaceFragment"},{kind:"RequiredField",field:{alias:null,args:y,concreteType:"EndUser",kind:"LinkedField",name:"endUser",plural:!1,selections:[k,v,I,{args:[g],kind:"FragmentSpread",name:"UserProfileTimelineEndUserFragment"},S],storageKey:null},action:"THROW"}],storageKey:null},action:"THROW"}],storageKey:null},action:"THROW"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[l,o,a,e],kind:"Operation",name:"pageUserProfileTimelineResourceQuery",selections:[{alias:null,args:r,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[C,{alias:null,args:null,concreteType:"BillingSubscription",kind:"LinkedField",name:"subscription",plural:!1,selections:[{alias:null,args:null,concreteType:"PlanItem",kind:"LinkedField",name:"plan",plural:!1,selections:[{alias:null,args:null,concreteType:"Product",kind:"LinkedField",name:"product",plural:!1,selections:[k,{alias:null,args:null,concreteType:"PlanQuota",kind:"LinkedField",name:"quotas",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"userRetentionPeriod",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},k],storageKey:null},{alias:null,args:u,concreteType:"Workspace",kind:"LinkedField",name:"workspace",plural:!1,selections:[C,k,{alias:null,args:y,concreteType:"EndUser",kind:"LinkedField",name:"endUser",plural:!1,selections:[k,v,I,{alias:null,args:[g,{kind:"Literal",name:"eventTypes",value:["audienceMatched","campaignDetected","cartAbandoned","cartModified","cartViewed","checkoutStarted","eventOccurred","goalCompleted","interestShown","leadGenerated","linkOpened","orderPlaced","pageLoaded","pageOpened","postViewed","productViewed","sessionAttributesChanged","sessionStarted","slotPersonalized","tabOpened","tabUrlChanged","tabVisibilityChanged","userClicked","userProfileChanged","userScrolled","userSignedIn","userSignedOut","userSignedUp"]},{kind:"Literal",name:"first",value:30}
1],concreteType:"EndUserEventConnection",kind:"LinkedField",name:"endUserEvents",plural:!1,selections:[{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},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"EndUserEventEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"EndUserEvent",kind:"LinkedField",name:"node",plural:!1,selections:[k,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"systemTimestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isSessionLast",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUserFirst",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"organizationId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"workspaceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"applicationId",storageKey:null},A,{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"session",plural:!1,selections:[k,Z,M,B,{alias:null,args:null,kind:"ScalarField",name:"isClosed",storageKey:null},{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[{alias:null,args:null,concreteType:"Browser",kind:"LinkedField",name:"browser",plural:!1,selections:N,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Location",kind:"LinkedField",name:"location",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"city",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"regionCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"timezone",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"application",plural:!1,selections:[w,oe,{alias:null,args:null,kind:"ScalarField",name:"environment",storageKey:null},k],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"previousSessions",plural:!0,selections:[k,Z,A,B,J],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"nextSession",plural:!1,selections:[k,Z,A,M,J],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payload",plural:!1,selections:[w,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audiences",plural:!0,selections:Q,storageKey:null}],type:"AudienceMatchedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"EndUserEventCampaign",kind:"LinkedField",name:"campaign",plural:!1,selections:[oe,{alias:null,args:null,kind:"ScalarField",name:"source",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"medium",storageKey:null}],storageKey:null}],type:"CampaignDetectedPayload",abstractKey:null},{kind:"InlineFragment",selections:V,type:"CartAbandonedPayload",abstractKey:null},{kind:"InlineFragment",selections:V,type:"CartModifiedPayload",abstractKey:null},{kind:"InlineFragment",selections:be,type:"CartViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:be,type:"CheckoutStartedPayload",abstractKey:null},{kind:"InlineFragment",selections:N,type:"EventOccurredPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"goalId",storageKey:null}],type:"GoalCompletedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"interests",storageKey:null}],type:"InterestShownPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"leadId",storageKey:null}],type:"LeadGeneratedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],type:"LinkOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OrderDetails",kind:"LinkedField",name:"order",plural:!1,selections:[O,ne,me,ke,{alias:null,args:null,concreteType:"OrderItem",kind:"LinkedField",name:"items",plural:!0,selections:se,storageKey:null}],storageKey:null}],type:"OrderPlacedPayload",abstractKey:null},{kind:"InlineFragment",selections:he,type:"PageLoadedPayload",abstractKey:null},{kind:"InlineFragment",selections:Ke,type:"PageOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"PostDetails",kind:"LinkedField",name:"post",plural:!1,selections:he,storageKey:null}],type:"PostViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"ProductDetails",kind:"LinkedField",name:"product",plural:!1,selections:[oe,{alias:null,args:null,kind:"ScalarField",name:"displayPrice",storageKey:null},me,x],storageKey:null}],type:"ProductViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:Oe,type:"SessionAttributesChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SlotPersonalization",kind:"LinkedField",name:"personalization",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slotId",storageKey:null},{alias:null,args:null,concreteType:"SlotVersion",kind:"LinkedField",name:"slotVersion",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"majorVersion",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"audienceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"experienceId",storageKey:null},{alias:null,args:null,concreteType:"AssignedVariant",kind:"LinkedField",name:"assignedVariant",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"experimentId",storageKey:null},ee],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Slot",kind:"LinkedField",name:"slot",plural:!1,selections:Q,storageKey:null},{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audience",plural:!1,selections:Q,storageKey:null},{alias:null,args:null,concreteType:"Experience",kind:"LinkedField",name:"experience",plural:!1,selections:Mn,storageKey:null},{alias:null,args:null,concreteType:"Experiment",kind:"LinkedField",name:"experiment",plural:!1,selections:Mn,storageKey:null},{alias:null,args:null,concreteType:"Variant",kind:"LinkedField",name:"variant",plural:!1,selections:[ee,oe],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"previewToken",storageKey:null}],type:"SlotPersonalizedPayload",abstractKey:null},{kind:"InlineFragment",selections:Ke,type:"TabUrlChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"visibility",storageKey:null}],type:"TabVisibilityChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:Oe,type:"UserProfileChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Size",kind:"LinkedField",name:"surfaceSize",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Point",kind:"LinkedField",name:"start",plural:!1,selections:An,storageKey:null},{alias:null,args:null,concreteType:"Point",kind:"LinkedField",name:"end",plural:!1,selections:An,storageKey:null}],type:"UserScrolledPayload",abstractKey:null},{kind:"InlineFragment",selections:R,type:"UserSignedInPayload",abstractKey:null},{kind:"InlineFragment",selections:R,type:"UserSignedOutPayload",abstractKey:null},{kind:"InlineFragment",selections:R,type:"UserSignedUpPayload",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"context",plural:!1,selections:[w,{kind:"InlineFragment",selections:[x,{alias:null,args:null,kind:"ScalarField",name:"timeZone",storageKey:null}],type:"WebContext",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},S],storageKey:null}],storageKey:null},k],storageKey:null}]}
1,params:{cacheID:"74abca107e63bc1238868789c6fe48a5",id:null,metadata:{},name:"pageUserProfileTimelineResourceQuery",operationKind:"query",text:`query pageUserProfileTimelineResourceQuery(
2  $organizationSlug: ReadableId!
3  $workspaceSlug: ReadableId!
4  $endUserId: EndUserId!
5  $aroundTime: Instant
6) {
7  organization(slug: $organizationSlug) {
8    ...UserProfileTimelineOrganizationFragment_1Ljbxb
9    workspace(slug: $workspaceSlug) {
10      ...UserProfileTimelineWorkspaceFragment
11      endUser(id: $endUserId) {
12        id
13        firstName
14        lastName
15        ...UserProfileTimelineEndUserFragment_3hD2t9
16        firstUserEvents: endUserEvents(first: 1) {
17          edges {
18            node {
19              id
20            }
21          }
22        }
23      }
24      id
25    }
26    id
27  }
28}
29
30fragment EventCardOrganizationFragment_1Ljbxb on Organization {
31  ...EventDetailsDrawerOrganizationFragment_1Ljbxb
32  ...SessionDetailsDrawerOrganizationFragment_1Ljbxb
33}
34
35fragment EventDetailsDrawerOrganizationFragment_1Ljbxb on Organization {
36  ...EventDetailsDropdownOrganizationFragment_1Ljbxb
37}
38
39fragment EventDetailsDropdownOrganizationFragment_1Ljbxb on Organization {
40  ...ExportEventItemOrganizationFragment_1Ljbxb
41}
42
43fragment ExportEventItemOrganizationFragment_1Ljbxb on Organization {
44  slug
45  workspace(slug: $workspaceSlug) {
46    slug
47    id
48  }
49}
50
51fragment ExportSessionItemOrganizationFragment_1Ljbxb on Organization {
52  slug
53  workspace(slug: $workspaceSlug) {
54    slug
55    id
56  }
57}
58
59fragment NextSessionEventCardOrganizationFragment_1Ljbxb on Organization {
60  ...SessionDetailsDrawerOrganizationFragment_1Ljbxb
61}
62
63fragment RetentionLimitReachedOrganizationFragment on Organization {
64  ...UpgradeBannerTimelineOrganizationFragment
65}
66
67fragment SessionDetailsDrawerOrganizationFragment_1Ljbxb on Organization {
68  ...SessionDetailsDropdownOrganizationFragment_1Ljbxb
69}
70
71fragment SessionDetailsDropdownOrganizationFragment_1Ljbxb on Organization {
72  ...ExportSessionItemOrganizationFragment_1Ljbxb
73}
74
75fragment SessionMarkerOrganizationFragment_1Ljbxb on Organization {
76  ...SessionDetailsDrawerOrganizationFragment_1Ljbxb
77}
78
79fragment UpgradeBannerTimelineOrganizationFragment on Organization {
80  slug
81  subscription {
82    plan {
83      product {
84        id
85        quotas {
86          userRetentionPeriod
87        }
88      }
89    }
90    id
91  }
92}
93
94fragment UserProfileTimelineEndUserFragment_3hD2t9 on EndUser {
95  ...useEndUserEventsEndUserFragment_3hD2t9
96}
97
98fragment UserProfileTimelineOrganizationFragment_1Ljbxb on Organization {
99  ...useEndUserEventsOrganizationFragment
100  ...RetentionLimitReachedOrganizationFragment
101  ...useEventRendererOrganizationFragment_1Ljbxb
102}
103
104fragment UserProfileTimelineWorkspaceFragment on Workspace {
105  ...useEndUserEventsWorkspaceFragment
106}
107
108fragment endUserEventsFragment_3low1V on EndUser {
109  endUserEvents(first: 30, aroundTime: $aroundTime, eventTypes: [audienceMatched, campaignDetected, cartAbandoned, cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, leadGenerated, linkOpened, orderPlaced, pageLoaded, pageOpened, postViewed, productViewed, sessionAttributesChanged, sessionStarted, slotPersonalized, tabOpened, tabUrlChanged, tabVisibilityChanged, userClicked, userProfileChanged, userScrolled, userSignedIn, userSignedOut, userSignedUp]) {
110    pageInfo {
111      endCursor
112      hasNextPage
113      hasPreviousPage
114      startCursor
115    }
116    edges {
117      node {
118        id
119        type
120        systemTimestamp
121        isSessionLast
122        isUserFirst
123        organizationId
124        workspaceId
125        applicationId
126        userId
127        session {
128          id
129          index
130          windowStart
131          windowEnd
132          isClosed
133          client {
134            browser {
135              name
136            }
137          }
138          location {
139            city
140            country
141            regionCode
142            timezone
143          }
144          application {
145            __typename
146            name
147            environment
148            id
149          }
150          previousSessions {
151            id
152            index
153            userId
154            windowEnd
155            endUser {
156              externalUserId
157              firstName
158              lastName
159              avatar
160              id
161            }
162          }
163          nextSession {
164            id
165            index
166            userId
167            windowStart
168            endUser {
169              externalUserId
170              firstName
171              lastName
172              avatar
173              id
174            }
175          }
176        }
177        payload {
178          __typename
179          ... on AudienceMatchedPayload {
180            __typename
181            audiences {
182              customId
183              name
184              id
185            }
186          }
187          ... on CampaignDetectedPayload {
188            __typename
189            campaign {
190              name
191              source
192              medium
193            }
194          }
195          ... on CartAbandonedPayload {
196            __typename
197            cart {
198              total
199              coupon
200              currency
201              shippingPrice
202              lastUpdateTime
203              items {
204                index
205              }
206            }
207          }
208          ... on CartModifiedPayload {
209            __typename
210            cart {
211              total
212              coupon
213              currency
214              shippingPrice
215              lastUpdateTime
216              items {
217                index
218              }
219            }
220          }
221          ... on CartViewedPayload {
222            __typename
223            cart {
224              total
225              coupon
226              currency
227              shippingPrice
228              items {
229                index
230              }
231            }
232          }
233          ... on CheckoutStartedPayload {
234            __typename
235            cart {
236              total
237              coupon
238              currency
239              shippingPrice
240              items {
241                index
242              }
243            }
244          }
245          ... on EventOccurredPayload {
246            __typename
247            name
248          }
249          ... on GoalCompletedPayload {
250            __typename
251            goalId
252          }
253          ... on InterestShownPayload {
254            __typename
255            interests
256          }
257          ... on LeadGeneratedPayload {
258            __typename
259            leadId
260          }
261          ... on LinkOpenedPayload {
262            __typename
263            link
264          }
265          ... on OrderPlacedPayload {
266            __typename
267            order {
268              total
269              coupon
270              currency
271              shippingPrice
272              items {
273                index
274              }
275            }
276          }
277          ... on PageLoadedPayload {
278            __typename
279            url
280            title
281          }
282          ... on PageOpenedPayload {
283            __typename
284            url
285          }
286          ... on PostViewedPayload {
287            __typename
288            post {
289              url
290              title
291            }
292          }
293          ... on ProductViewedPayload {
294            __typename
295            product {
296              name
297              displayPrice
298              currency
299              url
300            }
301          }
302          ... on SessionAttributesChangedPayload {
303            __typename
304            patch {
305              operations {
306                path
307              }
308            }
309          }
310          ... on SessionStartedPayload {
311            __typename
312          }
313          ... on SlotPersonalizedPayload {
314            __typename
315            personalization {
316              slotId
317              slotVersion {
318                majorVersion
319              }
320              audienceId
321              experienceId
322              assignedVariant {
323                experimentId
324                variantId
325              }
326            }
327            slot {
328              customId
329              name
330              id
331            }
332            audience {
333              customId
334              name
335              id
336            }
337            experience {
338              id
339              name
340            }
341            experiment {
342              id
343              name
344            }
345            variant {
346              variantId
347              name
348            }
349            previewToken
350          }
351          ... on TabOpenedPayload {
352            __typename
353          }
354          ... on TabUrlChangedPayload {
355            __typename
356            url
357          }
358          ... on TabVisibilityChangedPayload {
359            __typename
360            visibility
361          }
362          ... on UserProfileChangedPayload {
363            __typename
364            patch {
365              operations {
366                path
367              }
368            }
369          }
370          ... on UserClickedPayload {
371            __typename
372          }
373          ... on UserScrolledPayload {
374            __typename
375            surfaceSize {
376              width
377              height
378            }
379            start {
380              x
381              y
382            }
383            end {
384              x
385              y
386            }
387          }
388          ... on UserSignedInPayload {
389            __typename
390            externalUserId
391          }
392          ... on UserSignedOutPayload {
393            __typename
394            externalUserId
395          }
396          ... on UserSignedUpPayload {
397            __typename
398            externalUserId
399          }
400        }
401        context {
402          __typename
403          ... on WebContext {
404            __typename
405            url
406            timeZone
407          }
408        }
409      }
410    }
411  }
412}
413
414fragment useEndUserEventsEndUserFragment_3hD2t9 on EndUser {
415  id
416  ...endUserEventsFragment_3low1V
417}
418
419fragment useEndUserEventsOrganizationFragment on Organization {
420  slug
421}
422
423fragment useEndUserEventsWorkspaceFragment on Workspace {
424  slug
425}
426
427fragment useEventRendererOrganizationFragment_1Ljbxb on Organization {
428  ...EventCardOrganizationFragment_1Ljbxb
429  ...NextSessionEventCardOrganizationFragment_1Ljbxb
430  ...SessionMarkerOrganizationFragment_1Ljbxb
431}
432`}}}();vs.hash="079cca390c1b824db19fd5b083a86ffc";
432const ks={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"UserProfileTimelineOrganizationFragment",selections:[{args:null,kind:"FragmentSpread",name:"useEndUserEventsOrganizationFragment"},{args:null,kind:"FragmentSpread",name:"RetentionLimitReachedOrganizationFragment"},{args:[{kind:"Variable",name:"workspaceSlug",variableName:"workspaceSlug"}],kind:"FragmentSpread",name:"useEventRendererOrganizationFragment"}],type:"Organization",abstractKey:null};ks.hash="2266106fc0e387c5a64d5ff66050ec34";const xs={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UserProfileTimelineWorkspaceFragment",selections:[{args:null,kind:"FragmentSpread",name:"useEndUserEventsWorkspaceFragment"}],type:"Workspace",abstractKey:null};xs.hash="fbde00d3ec569de4b60c3832596afd8b";const bs={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"aroundTime"}],kind:"Fragment",metadata:null,name:"UserProfileTimelineEndUserFragment",selections:[{args:[{kind:"Variable",name:"aroundTime",variableName:"aroundTime"}],kind:"FragmentSpread",name:"useEndUserEventsEndUserFragment"}],type:"EndUser",abstractKey:null};bs.hash="23e1177d1c8529e59124858cde35bc6b";var mn={},ul={},ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.style=void 0;const Qu=Zr,er=il,zt="ui.component.timeline.refreshEventsButton";ml.style={display:"flex",alignItems:"center",justifyContent:"center",gap:2,width:"100%",height:8,backgroundColor:`${zt}.background`,border:1,borderStyle:"solid",borderColor:`${zt}.border`,borderRadius:4,cursor:"pointer",transitionProperty:"background-color, border-color",transitionDuration:er.transition.duration[100],transitionTimingFunction:er.transition.func.easeInOut,"&:focus-visible":(0,Qu.ring)("emphasized","outer"),"&:hover":{backgroundColor:`${zt}.backgroundHover`,borderColor:`${zt}.borderHover`},"& > .label":{color:`${zt}.text`,fontSize:2,lineHeight:"normal",fontWeight:"medium"},"& > .icon":{color:`${zt}.icon`}};var pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.translationKey=void 0;pl.translationKey="ui:component.timeline.refreshEventsButton";Object.defineProperty(ul,"__esModule",{value:!0});ul.RefreshEventsButton=void 0;const Ga=m,Yu=ce,Xu=kt,Ju=Uc,qu=Mc,em=ml,nm=pl,tm=e=>{const{onClick:a}=e,{t:l}=(0,Xu.useTranslation)(nm.translationKey),r=`${(0,Yu.useId)()}-label`;return(0,Ga.jsxs)(Ju.UnstyledButton,{style:em.style,onClick:a,"aria-labelledby":r,children:[(0,Ga.jsx)("span",{className:"label",children:l("text")}),(0,Ga.jsx)("div",{className:"icon",children:(0,Ga.jsx)(qu.ArrowClockwiseCircleIcon,{size:"xs"})})]})};ul.RefreshEventsButton=tm;var Wo={},Ss={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const a=m,l=ce,o=Ac,r=0,u=1,y=2,k=4;function v(n){return()=>n}function I(n){n()}function g(n,t){return i=>n(t(i))}function S(n,t){return()=>n(t)}function C(n,t){return i=>n(t,i)}function A(n){return n!==void 0}function Z(...n){return()=>{n.map(I)}}function M(){}function B(n,t){return t(n),n}function oe(n,t){return t(n)}function N(...n){return n}function w(n,t){return n(u,t)}function j(n,t){n(r,t)}function J(n){n(y)}function Q(n){return n(k)}function O(n,t){return w(n,C(t,r))}function ne(n,t){const i=n(u,s=>{i(),t(s)});return i}function me(n){let t,i;return s=>d=>{t=d,i&&clearTimeout(i),i=setTimeout(()=>{s(t)},n)}}function ke(n,t){return n===t}function se(n=ke){let t;return i=>s=>{n(t,s)||(t=s,i(s))}}function Y(n){return t=>i=>{n(i)&&t(i)}}function V(n){return t=>g(t,n)}function be(n){return t=>()=>{t(n)}}function x(n,...t){const i=Mn(...t);return(s,d)=>{switch(s){case y:J(n);return;case u:return w(n,i(d))}}}function he(n,t){return i=>s=>{i(t=n(t,s))}}function Ke(n){return t=>i=>{n>0?n--:t(i)}}function Oe(n){let t=null,i;return s=>d=>{t=d,!i&&(i=setTimeout(()=>{i=void 0,s(t)},n))}}function ee(...n){const t=new Array(n.length);let i=0,s=null;const d=2**n.length-1;return n.forEach((c,p)=>{const f=2**p;w(c,h=>{const _=i;i|=f,t[p]=h,_!==d&&i===d&&s&&(s(),s=null)})}),c=>p=>{const f=()=>{c([p].concat(t))};i===d?f():s=f}}function Mn(...n){return t=>n.reduceRight(oe,t)}function An(n){let t,i;const s=()=>t==null?void 0:t();return function(d,c){switch(d){case u:return c?i===c?void 0:(s(),i=c,t=w(n,c),t):(s(),M);case y:s(),i=null;return}}}function R(n){let t=n;const i=ie();return(s,d)=>{switch(s){case r:t=d;break;case u:{d(t);break}case k:return t}return i(s,d)}}function Ne(n,t){return B(R(t),i=>O(n,i))}function ie(){const n=[];return(t,i)=>
432{switch(t){case r:n.slice().forEach(s=>{s(i)});return;case y:n.splice(0,n.length);return;case u:return n.push(i),()=>{const s=n.indexOf(i);s>-1&&n.splice(s,1)}}}}function We(n){return B(ie(),t=>O(n,t))}function ve(n,t=[],{singleton:i}={singleton:!0}){return{constructor:n,dependencies:t,id:It(),singleton:i}}const It=()=>Symbol();function yn(n){const t=new Map,i=({constructor:s,dependencies:d,id:c,singleton:p})=>{if(p&&t.has(c))return t.get(c);const f=s(d.map(h=>i(h)));return p&&t.set(c,f),f};return i(n)}function Ie(...n){const t=ie(),i=new Array(n.length);let s=0;const d=2**n.length-1;return n.forEach((c,p)=>{const f=2**p;w(c,h=>{i[p]=h,s|=f,s===d&&j(t,i)})}),function(c,p){switch(c){case y:{J(t);return}case u:return s===d&&p(i),w(t,p)}}}function re(n,t=ke){return x(n,se(t))}function Pn(...n){return function(t,i){switch(t){case y:return;case u:return Z(...n.map(s=>w(s,i)))}}}const Me={DEBUG:0,INFO:1,WARN:2,ERROR:3},za={[Me.DEBUG]:"debug",[Me.ERROR]:"error",[Me.INFO]:"log",[Me.WARN]:"warn"},$a=()=>typeof globalThis>"u"?window:globalThis,In=ve(()=>{const n=R(Me.ERROR);return{log:R((t,i,s=Me.INFO)=>{const d=$a().VIRTUOSO_LOG_LEVEL??Q(n);s>=d&&console[za[s]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,i)}),logLevel:n}},[],{singleton:!0});function cn(n,t,i){return Tt(n,t,i).callbackRef}function Tt(n,t,i){const s=l.useRef(null);let d=p=>{};const c=l.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(p=>{const f=()=>{const h=p[0].target;h.offsetParent!==null&&n(h)};i?f():requestAnimationFrame(f)}):null,[n,i]);return d=p=>{p&&t?(c==null||c.observe(p),s.current=p):(s.current&&(c==null||c.unobserve(s.current)),s.current=null)},{callbackRef:d,ref:s}}function Qt(n,t,i,s,d,c,p,f,h){const _=l.useCallback(E=>{const U=Ra(E.children,t,f?"offsetWidth":"offsetHeight",d);let K=E.parentElement;for(;K.dataset.virtuosoScroller===void 0;)K=K.parentElement;const D=K.lastElementChild.dataset.viewportType==="window";let $;D&&($=K.ownerDocument.defaultView);const W=p?f?p.scrollLeft:p.scrollTop:D?f?$.scrollX||$.document.documentElement.scrollLeft:$.scrollY||$.document.documentElement.scrollTop:f?K.scrollLeft:K.scrollTop,L=p?f?p.scrollWidth:p.scrollHeight:D?f?$.document.documentElement.scrollWidth:$.document.documentElement.scrollHeight:f?K.scrollWidth:K.scrollHeight,T=p?f?p.offsetWidth:p.offsetHeight:D?f?$.innerWidth:$.innerHeight:f?K.offsetWidth:K.offsetHeight;s({scrollHeight:L,scrollTop:Math.max(W,0),viewportHeight:T}),c==null||c(f?Yt("column-gap",getComputedStyle(E).columnGap,d):Yt("row-gap",getComputedStyle(E).rowGap,d)),U!==null&&n(U)},[n,t,d,c,p,s,f]);return Tt(_,i,h)}function Ra(n,t,i,s){const d=n.length;if(d===0)return null;const c=[];for(let p=0;p<d;p++){const f=n.item(p);if(f.dataset.index===void 0)continue;const h=parseInt(f.dataset.index),_=parseFloat(f.dataset.knownSize),E=t(f,i);if(E===0&&s("Zero-sized element, this should not happen",{child:f},Me.ERROR),E===_)continue;const U=c[c.length-1];c.length===0||U.size!==E||U.endIndex!==h-1?c.push({endIndex:h,size:E,startIndex:h}):c[c.length-1].endIndex++}return c}function Yt(n,t,i){return t!=="normal"&&(t==null?void 0:t.endsWith("px"))!==!0&&i(`${n} was not resolved to pixel value correctly`,t,Me.WARN),t==="normal"?0:parseInt(t??"0",10)}function Ct(n,t,i){const s=l.useRef(null),d=l.useCallback(h=>{if(!(h!=null&&h.offsetParent))return;const _=h.getBoundingClientRect(),E=_.width;let U,K;if(t){const D=t.getBoundingClientRect(),$=_.top-D.top;K=D.height-Math.max(0,$),U=$+t.scrollTop}else{const D=p.current.ownerDocument.defaultView;K=D.innerHeight-Math.max(0,_.top),U=_.top+D.scrollY}s.current={listHeight:_.height,offsetTop:U,visibleHeight:K,visibleWidth:E},n(s.current)},[n,t]),{callbackRef:c,ref:p}=Tt(d,!0,i),f=l.useCallback(()=>{d(p.current)},[d,p]);return l.useEffect(()=>{var _;if(t){t.addEventListener("scroll",f);const E=new ResizeObserver(()=>{requestAnimationFrame(f)});return E.observe(t),()=>{t.removeEventListener("scroll",f),E.unobserve(t)}}const h=(_=p.current)==null?void 0:_.ownerDocument.defaultView;return h==null||h.addEventListener("scroll",f),h==null||h.addEventListener("resize",f),()=>{h==null||h.removeEventListener("scroll",f),h==null||h.removeEventListener("resize",f)}}
432,[f,t,p]),c}const Je=ve(()=>{const n=ie(),t=ie(),i=R(0),s=ie(),d=R(0),c=ie(),p=ie(),f=R(0),h=R(0),_=R(0),E=R(0),U=ie(),K=ie(),D=R(!1),$=R(!1),W=R(!1);return O(x(n,V(({scrollTop:L})=>L)),t),O(x(n,V(({scrollHeight:L})=>L)),p),O(t,d),{deviation:i,fixedFooterHeight:_,fixedHeaderHeight:h,footerHeight:E,headerHeight:f,horizontalDirection:$,scrollBy:K,scrollContainerState:n,scrollHeight:p,scrollingInProgress:D,scrollTo:U,scrollTop:t,skipAnimationFrameInResizeObserver:W,smoothScrollTargetReached:s,statefulScrollTop:d,viewportHeight:c}},[],{singleton:!0}),un={lvl:0};function Xt(n,t){const i=n.length;if(i===0)return[];let{index:s,value:d}=t(n[0]);const c=[];for(let p=1;p<i;p++){const{index:f,value:h}=t(n[p]);c.push({end:f-1,start:s,value:d}),s=f,d=h}return c.push({end:1/0,start:s,value:d}),c}function Ce(n){return n===un}function Zn(n,t){if(!Ce(n))return t===n.k?n.v:t<n.k?Zn(n.l,t):Zn(n.r,t)}function rn(n,t,i="k"){if(Ce(n))return[-1/0,void 0];if(Number(n[i])===t)return[n.k,n.v];if(Number(n[i])<t){const s=rn(n.r,t,i);return s[0]===-1/0?[n.k,n.v]:s}return rn(n.l,t,i)}function en(n,t,i){return Ce(n)?ea(t,i,1):t===n.k?Be(n,{k:t,v:i}):t<n.k?na(Be(n,{l:en(n.l,t,i)})):na(Be(n,{r:en(n.r,t,i)}))}function Bn(){return un}function Nn(n,t,i){if(Ce(n))return[];const s=rn(n,t)[0];return Da(_t(n,s,i))}function lt(n,t){if(Ce(n))return un;const{k:i,l:s,r:d}=n;if(t===i){if(Ce(s))return d;if(Ce(d))return s;const[c,p]=qt(s);return ot(Be(n,{k:c,l:Jt(s),v:p}))}return t<i?ot(Be(n,{l:lt(s,t)})):ot(Be(n,{r:lt(d,t)}))}function En(n){return Ce(n)?[]:[...En(n.l),{k:n.k,v:n.v},...En(n.r)]}function _t(n,t,i){if(Ce(n))return[];const{k:s,l:d,r:c,v:p}=n;let f=[];return s>t&&(f=f.concat(_t(d,t,i))),s>=t&&s<=i&&f.push({k:s,v:p}),s<=i&&(f=f.concat(_t(c,t,i))),f}function ot(n){const{l:t,lvl:i,r:s}=n;if(s.lvl>=i-1&&t.lvl>=i-1)return n;if(i>s.lvl+1){if(wt(t))return ta(Be(n,{lvl:i-1}));if(!Ce(t)&&!Ce(t.r))return Be(t.r,{l:Be(t,{r:t.r.l}),lvl:i,r:Be(n,{l:t.r.r,lvl:i-1})});throw new Error("Unexpected empty nodes")}if(wt(n))return Ft(Be(n,{lvl:i-1}));if(!Ce(s)&&!Ce(s.l)){const d=s.l,c=wt(d)?s.lvl-1:s.lvl;return Be(d,{l:Be(n,{lvl:i-1,r:d.l}),lvl:d.lvl+1,r:Ft(Be(s,{l:d.r,lvl:c}))})}throw new Error("Unexpected empty nodes")}function Be(n,t){return ea(t.k!==void 0?t.k:n.k,t.v!==void 0?t.v:n.v,t.lvl!==void 0?t.lvl:n.lvl,t.l!==void 0?t.l:n.l,t.r!==void 0?t.r:n.r)}function Jt(n){return Ce(n.r)?n.l:ot(Be(n,{r:Jt(n.r)}))}function wt(n){return Ce(n)||n.lvl>n.r.lvl}function qt(n){return Ce(n.r)?[n.k,n.v]:qt(n.r)}function ea(n,t,i,s=un,d=un){return{k:n,l:s,lvl:i,r:d,v:t}}function na(n){return Ft(ta(n))}function ta(n){const{l:t}=n;return!Ce(t)&&t.lvl===n.lvl?Be(t,{r:Be(n,{l:t.r})}):n}function Ft(n){const{lvl:t,r:i}=n;return!Ce(i)&&!Ce(i.r)&&i.lvl===t&&i.r.lvl===t?Be(i,{l:Be(n,{r:i.l}),lvl:t+1}):n}function Da(n){return Xt(n,({k:t,v:i})=>({index:t,value:i}))}function Pt(n,t){return!!(n&&n.startIndex===t.startIndex&&n.endIndex===t.endIndex)}function Qn(n,t){return!!(n&&n[0]===t[0]&&n[1]===t[1])}const Et=ve(()=>({recalcInProgress:R(!1)}),[],{singleton:!0});function aa(n,t,i){return n[Yn(n,t,i)]}function Yn(n,t,i,s=0){let d=n.length-1;for(;s<=d;){const c=Math.floor((s+d)/2),p=n[c],f=i(p,t);if(f===0)return c;if(f===-1){if(d-s<2)return c-1;d=c-1}else{if(d===s)return c;s=c+1}}throw new Error(`Failed binary finding record in array - ${n.join(",")}, searched for ${t}`)}function Ua(n,t,i,s){const d=Yn(n,t,s),c=Yn(n,i,s,d);return n.slice(d,c+1)}function sn(n,t){return Math.round(n.getBoundingClientRect()[t])}function it(n){return!Ce(n.groupOffsetTree)}function jt({index:n},t){return t===n?0:t<n?-1:1}function la(){return{groupIndices:[],groupOffsetTree:Bn(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:Bn()}}function gd(n,t){let i=Ce(n)?0:1/0;for(const s of t){const{endIndex:d,size:c,startIndex:p}=s;if(i=Math.min(i,p),Ce(n)){n=en(n,0,c);continue}const f=Nn(n,p-1,d+1);if(f.some(bd(s)))continue;let h=!1,_=!1;for(const{end:E,start:U,value:K}of f)h?(d>=U||c===K)&&(n=lt(n,U)):(_=K!==c,h=!0),E>d&&d>=U&&K!==c&&(n=en(n,d+1,K));_&&(n=en(n,p,c))}return[n,i]}function fd(n){return typeof n.groupIndex<"u"}function yd({offset:n},t){return t===n?0:t<n?-1:1}function oa(n,t,i){if(t.length===0)return 0;const{index:s,offset:d,size:c}=aa(t,n,jt),p=n-s,f=c*p+(p-1)*i+d;return f>0?f+i:f}function si(n,t){if(!it(t))return n;let i=0;for(;t.groupIndices[i]<=n+i;)i++;return n+i}function di(n,t,i){if(fd(n))return t.groupIndices[n.groupIndex]+1;const s=n.index==="LAST"?i:n.index;let d=si(s,t);return d=Math.max(0,d,Math.min(i,d)),d}function hd(n,t,i,s=0){return s>0&&(t=Math.max(t,aa(n,s,jt).offset)),Xt(Ua(n,t,i,yd),xd)}function vd(n,[t,i,s,d]){t.length>0&&s("received item sizes",t,Me.DEBUG);const c=n.sizeTree;let p=c,f=0;if(i.length>0&&Ce(c)&&t.length===2){const K=t[0].size,D=t[1].size;p=i.reduce(($,W)=>en(en($,W,K),W+1,D),p)}else[p,f]=gd(p,t);if(p===c)return n;const{lastIndex:h,lastOffset:_,lastSize:E,offsetTree:U}=Jl(n.offsetTree,f,p,d);return{groupIndices:i,groupOffsetTree:i.reduce((K,D)=>en(K,D,oa(D,U,d)),Bn()),lastIndex:h,lastOffset:_,lastSize:E,offsetTree:U,sizeTree:p}}function kd(n){return En(n).map(({k:t,v:i},s,d)=>{const c=d[s+1];return{endIndex:c!==void 0?c.k-1:1/0,size:i,startIndex:t}})}function ci(n,t){let i=0,s=0;for(;i<n;)i+=t[s+1]-t[s]-1,s++;return s-(i===n?0:1)}function Jl(n,t,i,s){let d=n,c=0,p=0,f=0,h=0;if(t!==0){h=Yn(d,t-1,jt),f=d[h].offset;const _=rn(i,t-1);c=_[0],p=_[1],d.length&&d[h].size===rn(i,t)[1]&&(h-=1),d=d.slice(0,h+1)}else d=[];for(const{start:_,value:E}of Nn(i,t,1/0)){const U=_-c,K=U*p+f+U*s;d.push({index:_,offset:K,size:E}),c=_,f=K,p=E}return{lastIndex:c,lastOffset:f,lastSize:p,offsetTree:d}}function xd(n){return{index:n.index,value:n}}function bd(n){const{endIndex:t,size:i,startIndex:s}=n;return d=>d.start===s&&(d.end===t||d.end===1/0)&&d.value===i}const Sd={offsetHeight:"height",offsetWidth:"width"},jn=ve(([{log:n},{recalcInProgress:t}])=>{const i=ie(),s=ie(),d=Ne(s,0),c=ie(),p=ie(),f=R(0),h=R([]),_=R(void 0),E=R(void 0),U=R(void 0),K=R(void 0),D=R((b,z)=>sn(b,Sd[z])),$=R(void 0),W=R(0),L=la(),T=Ne(x(i,ee(h,n,W),he(vd,L),se()),L),P=Ne(x(h,se(),he((b,z)=>({current:z,prev:b.current}),{current:[],prev:[]}),V(({prev:b})=>b)),[]);O(x(h,Y(b=>b.length>0),ee(T,W),V(([b,z,G])=>{const le=b.reduce((ae,fe,ye)=>en(ae,fe,oa(fe,z.offsetTree,G)||ye),Bn());return{...z,groupIndices:b,groupOffsetTree:le}})),T),O(x(s,ee(T),Y(([b,{lastIndex:z}])=>b<z),V(([b,{lastIndex:z,lastSize:G}])=>[{endIndex:z,size:G,startIndex:b}])),i),O(_,E);const H=Ne(x(_,V(b=>b===void 0)),!0);O(x(E,Y(b=>b!==void 0&&Ce(Q(T).sizeTree)),V(b=>{const z=Q(U),G=Q(h).length>0;return z!==void 0&&z!==0?G?[{endIndex:0,size:z,startIndex:0},{endIndex:1,size:b,startIndex:1}]:[]:[{endIndex:0,size:b,startIndex:0}]})),i),O(x(K,Y(b=>b!==void 0&&b.length>0&&Ce(Q(T).sizeTree)),V(b=>{const z=[];let G=b[0],le=0;for(let ae=1;ae<b.length;ae++){const fe=b[ae];fe!==G&&(z.push({endIndex:ae-1,size:G,startIndex:le}),G=fe,le=ae)}return z.push({endIndex:b.length-1,size:G,startIndex:le}),z})),i),O(x(h,ee(U,E),Y(([,b,z])=>b!==void 0&&z!==void 0),V(([b,z,G])=>{const le=[];for(let ae=0;ae<b.length;ae++){const fe=b[ae],ye=b[ae+1];le.push({startIndex:fe,endIndex:fe,size:z}),ye!==void 0&&le.push({startIndex:fe+1,endIndex:ye-1,size:G})}return le})),i);const te=We(x(i,ee(T),he(({sizes:b},[z,G])=>({changed:G!==b,sizes:G}),{changed:!1,sizes:L}),V(b=>b.changed)));w(x(f,he((b,z)=>({diff:b.prev-z,prev:z}),{diff:0,prev:0}),V(b=>b.diff)),b=>{const{groupIndices:z}=Q(T);if(b>0)j(t,!0),j(c,b+ci(b,z));else if(b<0){const G=Q(P);G.length>0&&(b-=ci(-b,G)),j(p,b)}}),w(x(f,ee(n)),([b,z])=>{b<0&&z("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:f},Me.ERROR)});const X=We(c);O(x(c,ee(T),V(([b,z])=>{const G=z.groupIndices.length>0,le=[],ae=z.lastSize;if(G){const fe=Zn(z.sizeTree,0);let ye=0,ue=0;for(;ye<b;){const we=z.groupIndices[ue],Te=z.groupIndices.length===ue+1?1/0:z.groupIndices[ue+1]-we-1;le.push({endIndex:we,size:fe,startIndex:we}),le.push({endIndex:we+1+Te-1,size:ae,startIndex:we+1}),ue++,ye+=Te+1}const Se=En(z.sizeTree);return ye!==b&&Se.shift(),Se.reduce((we,{k:Te,v:Ze})=>{let kn=we.ranges;return we.prevSize!==0&&(kn=[...we.ranges,{endIndex:Te+b-1,size:we.prevSize,startIndex:we.prevIndex}]),{prevIndex:Te+b,prevSize:Ze,ranges:kn}},{prevIndex:b,prevSize:0,ranges:le}).ranges}return En(z.sizeTree).reduce((fe,{k:ye,v:ue})=>({prevIndex:ye+b,prevSize:ue,ranges:[...fe.ranges,{endIndex:ye+b-1,size:fe.prevSize,startIndex:fe.prevIndex}]}),{prevIndex:0,prevSize:ae,ranges:[]}).ranges})),i);const de=We(x(p,ee(T,W),V(([b,{offsetTree:z},G])=>{const le=-b;return oa(le,z,G)})));return O(x(p,ee(T,W),V(([b,z,G])=>
432{if(z.groupIndices.length>0){if(Ce(z.sizeTree))return z;let ae=Bn();const fe=Q(P);let ye=0,ue=0,Se=0;for(;ye<-b;){Se=fe[ue];const we=fe[ue+1]-Se-1;ue++,ye+=we+1}if(ae=En(z.sizeTree).reduce((we,{k:Te,v:Ze})=>en(we,Math.max(0,Te+b),Ze),ae),ye!==-b){const we=Zn(z.sizeTree,Se);ae=en(ae,0,we);const Te=rn(z.sizeTree,-b+1)[1];ae=en(ae,1,Te)}return{...z,sizeTree:ae,...Jl(z.offsetTree,0,ae,G)}}const le=En(z.sizeTree).reduce((ae,{k:fe,v:ye})=>en(ae,Math.max(0,fe+b),ye),Bn());return{...z,sizeTree:le,...Jl(z.offsetTree,0,le,G)}})),T),{beforeUnshiftWith:X,data:$,defaultItemSize:E,firstItemIndex:f,fixedItemSize:_,fixedGroupSize:U,gap:W,groupIndices:h,heightEstimates:K,itemSize:D,listRefresh:te,shiftWith:p,shiftWithOffset:de,sizeRanges:i,sizes:T,statefulTotalCount:d,totalCount:s,trackItemSizes:H,unshiftWith:c}},N(In,Et),{singleton:!0});function Id(n){return n.reduce((t,i)=>(t.groupIndices.push(t.totalCount),t.totalCount+=i+1,t),{groupIndices:[],totalCount:0})}const ui=ve(([{groupIndices:n,sizes:t,totalCount:i},{headerHeight:s,scrollTop:d}])=>{const c=ie(),p=ie(),f=We(x(c,V(Id)));return O(x(f,V(h=>h.totalCount)),i),O(x(f,V(h=>h.groupIndices)),n),O(x(Ie(d,t,s),Y(([h,_])=>it(_)),V(([h,_,E])=>rn(_.groupOffsetTree,Math.max(h-E,0),"v")[0]),se(),V(h=>[h])),p),{groupCounts:c,topItemsIndexes:p}},N(jn,Je)),Xn=ve(([{log:n}])=>{const t=R(!1),i=We(x(t,Y(s=>s),se()));return w(t,s=>{s&&Q(n)("props updated",{},Me.DEBUG)}),{didMount:i,propsReady:t}},N(In),{singleton:!0}),Td=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function mi(n){const t=typeof n=="number"?{index:n}:n;return t.align||(t.align="start"),(!t.behavior||!Td)&&(t.behavior="auto"),t.offset===void 0&&(t.offset=0),t}const ia=ve(([{gap:n,listRefresh:t,sizes:i,totalCount:s},{fixedFooterHeight:d,fixedHeaderHeight:c,footerHeight:p,headerHeight:f,scrollingInProgress:h,scrollTo:_,smoothScrollTargetReached:E,viewportHeight:U},{log:K}])=>{const D=ie(),$=ie(),W=R(0);let L=null,T=null,P=null;function H(){L!==null&&(L(),L=null),P!==null&&(P(),P=null),T&&(clearTimeout(T),T=null),j(h,!1)}return O(x(D,ee(i,U,s,W,f,p,K),ee(n,c,d),V(([[te,X,de,b,z,G,le,ae],fe,ye,ue])=>{const Se=mi(te),{align:we,behavior:Te,offset:Ze}=Se,kn=b-1,ln=di(Se,X,kn);let dn=oa(ln,X.offsetTree,fe)+G;we==="end"?(dn+=ye+rn(X.sizeTree,ln)[1]-de+ue,ln===kn&&(dn+=le)):we==="center"?dn+=(ye+rn(X.sizeTree,ln)[1]-de+ue)/2:dn-=z,Ze!==void 0&&Ze!==0&&(dn+=Ze);const Jn=nn=>{H(),nn?(ae("retrying to scroll to",{location:te},Me.DEBUG),j(D,te)):(j($,!0),ae("list did not change, scroll successful",{},Me.DEBUG))};if(H(),Te==="smooth"){let nn=!1;P=w(t,Kt=>{nn=nn||Kt}),L=ne(E,()=>{Jn(nn)})}else L=ne(x(t,Cd(150)),Jn);return T=setTimeout(()=>{H()},1200),j(h,!0),ae("scrolling from index to",{behavior:Te,index:ln,top:dn},Me.DEBUG),{behavior:Te,top:dn}})),_),{scrollTargetReached:$,scrollToIndex:D,topListHeight:W}},N(jn,Je,In),{singleton:!0});function Cd(n){return t=>{const i=setTimeout(()=>{t(!1)},n);return s=>{s&&(t(!0),clearTimeout(i))}}}function ql(n,t){n===0?t():requestAnimationFrame(()=>{ql(n-1,t)})}function eo(n,t){const i=t-1;return typeof n=="number"?n:n.index==="LAST"?i:n.index}const ra=ve(([{defaultItemSize:n,listRefresh:t,sizes:i},{scrollTop:s},{scrollTargetReached:d,scrollToIndex:c},{didMount:p}])=>{const f=R(!0),h=R(0),_=R(!0);return O(x(p,ee(h),Y(([E,U])=>U!==0),be(!1)),f),O(x(p,ee(h),Y(([E,U])=>U!==0),be(!1)),_),w(x(Ie(t,p),ee(f,i,n,_),Y(([[,E],U,{sizeTree:K},D,$])=>E&&(!Ce(K)||A(D))&&!U&&!$),ee(h)),([,E])=>{ne(d,()=>{j(_,!0)}),ql(4,()=>{ne(s,()=>{j(f,!0)}),j(c,E)})}),{initialItemFinalLocationReached:_,initialTopMostItemIndex:h,scrolledToInitialItem:f}},N(jn,Je,ia,Xn),{singleton:!0});function pi(n,t){return Math.abs(n-t)<1.01}const sa="up",da="down",_d="none",wd={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},Fd=0,ca=ve(([{footerHeight:n,headerHeight:t,scrollBy:i,scrollContainerState:s,scrollTop:d,viewportHeight:c}])=>{const p=R(!1),f=R(!0),h=ie(),_=ie(),E=R(4),U=R(Fd),K=Ne(x(Pn(x(re(d),Ke(1),be(!0)),x(re(d),Ke(1),be(!1),me(100))),se()),!1),D=Ne(x(Pn(x(i,be(!0)),x(i,be(!1),me(200))),se()),!1);O(x(Ie(re(d),re(U)),V(([P,H])=>P<=H),se()),f),O(x(f,Oe(50)),_);const $=We(x(Ie(s,re(c),re(t),re(n),re(E)),he((P,[{scrollHeight:H,scrollTop:te},X,de,b,z])=>{const G=te+X-H>
432-z,le={scrollHeight:H,scrollTop:te,viewportHeight:X};if(G){let fe,ye;return te>P.state.scrollTop?(fe="SCROLLED_DOWN",ye=P.state.scrollTop-te):(fe="SIZE_DECREASED",ye=P.state.scrollTop-te||P.scrollTopDelta),{atBottom:!0,atBottomBecause:fe,scrollTopDelta:ye,state:le}}let ae;return le.scrollHeight>P.state.scrollHeight?ae="SIZE_INCREASED":X<P.state.viewportHeight?ae="VIEWPORT_HEIGHT_DECREASING":te<P.state.scrollTop?ae="SCROLLING_UPWARDS":ae="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:ae,state:le}},wd),se((P,H)=>P!==void 0&&P.atBottom===H.atBottom))),W=Ne(x(s,he((P,{scrollHeight:H,scrollTop:te,viewportHeight:X})=>{if(!pi(P.scrollHeight,H)){const de=H-(te+X)<1;return P.scrollTop!==te&&de?{changed:!0,jump:P.scrollTop-te,scrollHeight:H,scrollTop:te}:{changed:!0,jump:0,scrollHeight:H,scrollTop:te}}return{changed:!1,jump:0,scrollHeight:H,scrollTop:te}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),Y(P=>P.changed),V(P=>P.jump)),0);O(x($,V(P=>P.atBottom)),p),O(x(p,Oe(50)),h);const L=R(da);O(x(s,V(({scrollTop:P})=>P),se(),he((P,H)=>Q(D)?{direction:P.direction,prevScrollTop:H}:{direction:H<P.prevScrollTop?sa:da,prevScrollTop:H},{direction:da,prevScrollTop:0}),V(P=>P.direction)),L),O(x(s,Oe(50),be(_d)),L);const T=R(0);return O(x(K,Y(P=>!P),be(0)),T),O(x(d,Oe(100),ee(K),Y(([P,H])=>H),he(([P,H],[te])=>[H,te],[0,0]),V(([P,H])=>H-P)),T),{atBottomState:$,atBottomStateChange:h,atBottomThreshold:E,atTopStateChange:_,atTopThreshold:U,isAtBottom:p,isAtTop:f,isScrolling:K,lastJumpDueToItemResize:W,scrollDirection:L,scrollVelocity:T}},N(Je)),ua="top",ma="bottom",gi="none";function fi(n,t,i){return typeof n=="number"?i===sa&&t===ua||i===da&&t===ma?n:0:i===sa?t===ua?n.main:n.reverse:t===ma?n.main:n.reverse}function yi(n,t){return typeof n=="number"?n:n[t]??0}const no=ve(([{deviation:n,fixedHeaderHeight:t,headerHeight:i,scrollTop:s,viewportHeight:d}])=>{const c=ie(),p=R(0),f=R(0),h=R(0),_=Ne(x(Ie(re(s),re(d),re(i),re(c,Qn),re(h),re(p),re(t),re(n),re(f)),V(([E,U,K,[D,$],W,L,T,P,H])=>{const te=E-P,X=L+T,de=Math.max(K-te,0);let b=gi;const z=yi(H,ua),G=yi(H,ma);return D-=P,D+=K+T,$+=K+T,$-=P,D>E+X-z&&(b=sa),$<E-de+U+G&&(b=da),b!==gi?[Math.max(te-K-fi(W,ua,b)-z,0),te-de-T+U+fi(W,ma,b)+G]:null}),Y(E=>E!==null),se(Qn)),[0,0]);return{increaseViewportBy:f,listBoundary:c,overscan:h,topListHeight:p,visibleRange:_}},N(Je),{singleton:!0});function Pd(n,t,i){if(it(t)){const s=si(n,t);return[{index:rn(t.groupOffsetTree,s)[0],offset:0,size:0},{data:i==null?void 0:i[0],index:s,offset:0,size:0}]}return[{data:i==null?void 0:i[0],index:n,offset:0,size:0}]}const to={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function Ma(n,t,i,s,d,c){const{lastIndex:p,lastOffset:f,lastSize:h}=d;let _=0,E=0;if(n.length>0){_=n[0].offset;const W=n[n.length-1];E=W.offset+W.size}const U=i-p,K=f+U*h+(U-1)*s,D=_,$=K-E;return{bottom:E,firstItemIndex:c,items:vi(n,d,c),offsetBottom:$,offsetTop:_,top:D,topItems:vi(t,d,c),topListHeight:t.reduce((W,L)=>L.size+W,0),totalCount:i}}function hi(n,t,i,s,d,c){let p=0;if(i.groupIndices.length>0)for(const E of i.groupIndices){if(E-p>=n)break;p++}const f=n+p,h=eo(t,f),_=Array.from({length:f}).map((E,U)=>({data:c[U+h],index:U+h,offset:0,size:0}));return Ma(_,[],f,d,i,s)}function vi(n,t,i){if(n.length===0)return[];if(!it(t))return n.map(_=>({..._,index:_.index+i,originalIndex:_.index}));const s=n[0].index,d=n[n.length-1].index,c=[],p=Nn(t.groupOffsetTree,s,d);let f,h=0;for(const _ of n){(!f||f.end<_.index)&&(f=p.shift(),h=t.groupIndices.indexOf(f.start));let E;_.index===f.start?E={index:h,type:"group"}:E={groupIndex:h,index:_.index-(h+1)+i},c.push({...E,data:_.data,offset:_.offset,originalIndex:_.index,size:_.size})}return c}function ki(n,t){return n===void 0?0:typeof n=="number"?n:n[t]??0}const rt=ve(([{data:n,firstItemIndex:t,gap:i,sizes:s,totalCount:d},c,{listBoundary:p,topListHeight:f,visibleRange:h},{initialTopMostItemIndex:_,scrolledToInitialItem:E},{topListHeight:U},K,{didMount:D},{recalcInProgress:$}])=>{const W=R([]),L=R(0),T=ie(),P=R(0);O(c.topItemsIndexes,W);const H=Ne(x(Ie(D,$,re(h,Qn),re(d),re(s),re(_),E,re(W),re(t),re(i),re(P),n),Y(([b,z,,G,,,,,,,,le])=>{const ae=le!==void 0&&le.length!==G;return b&&!z&&!ae}),V(([,,[b,z],G,le,ae,fe,ye,ue,Se,we,Te])=>{var Fe,Qe;const Ze=le,{offsetTree:kn,sizeTree:ln}=Ze,dn=Q(L);if(G===0)return{...to,totalCount:G};if(b===0&&z===0)return dn===0?{...to,totalCount:G}:hi(dn,ae,le,ue,Se,Te||[]);if(Ce(ln))return dn>0?null:Ma(Pd(eo(ae,G),Ze,Te),[],G,Se,Ze,ue);const Jn=[];if(ye.length>0){const $e=ye[0],De=ye[ye.length-1];let Ye=0;for(const Ve of Nn(ln,$e,De)){const je=Ve.value,Ae=Math.max(Ve.start,$e),on=Math.min(Ve.end,De);for(let He=Ae;He<=on;He++)Jn.push({data:Te==null?void 0:Te[He],index:He,offset:Ye,size:je}),Ye+=je}}if(!fe)return Ma([],Jn,G,Se,Ze,ue);const nn=ye.length>0?ye[ye.length-1]+1:0,Kt=hd(kn,b,z,nn);if(Kt.length===0)return null;const fa=G-1,Kn=B([],$e=>{for(const De of Kt){const Ye=De.value;let Ve=Ye.offset,je=De.start;const Ae=Ye.size;if(Ye.offset<b){je+=Math.floor((b-Ye.offset+Se)/(Ae+Se));const He=je-De.start;Ve+=He*Ae+He*Se}je<nn&&(Ve+=(nn-je)*Ae,je=nn);const on=Math.min(De.end,fa);for(let He=je;He<=on&&!(Ve>=z);He++)$e.push({data:Te==null?void 0:Te[He],index:He,offset:Ve,size:Ae}),Ve+=Ae+Se}}),ya=ki(we,ua),q=ki(we,ma);if(Kn.length>0&&(ya>0||q>0)){const $e=Kn[0],De=Kn[Kn.length-1];if(ya>0&&$e.index>
432nn){const Ye=Math.min(ya,$e.index-nn),Ve=[];let je=$e.offset;for(let Ae=$e.index-1;Ae>=$e.index-Ye;Ae--){const on=((Fe=Nn(ln,Ae,Ae)[0])==null?void 0:Fe.value)??$e.size;je-=on+Se,Ve.unshift({data:Te==null?void 0:Te[Ae],index:Ae,offset:je,size:on})}Kn.unshift(...Ve)}if(q>0&&De.index<fa){const Ye=Math.min(q,fa-De.index);let Ve=De.offset+De.size+Se;for(let je=De.index+1;je<=De.index+Ye;je++){const Ae=((Qe=Nn(ln,je,je)[0])==null?void 0:Qe.value)??De.size;Kn.push({data:Te==null?void 0:Te[je],index:je,offset:Ve,size:Ae}),Ve+=Ae+Se}}}return Ma(Kn,Jn,G,Se,Ze,ue)}),Y(b=>b!==null),se()),to);O(x(n,Y(A),V(b=>b==null?void 0:b.length)),d),O(x(H,V(b=>b.topListHeight)),U),O(U,f),O(x(H,V(b=>[b.top,b.bottom])),p),O(x(H,V(b=>b.items)),T);const te=We(x(H,Y(({items:b})=>b.length>0),ee(d,n),Y(([{items:b},z])=>b[b.length-1].originalIndex===z-1),V(([,b,z])=>[b-1,z]),se(Qn),V(([b])=>b))),X=We(x(H,Oe(200),Y(({items:b,topItems:z})=>b.length>0&&b[0].originalIndex===z.length),V(({items:b})=>b[0].index),se())),de=We(x(H,Y(({items:b})=>b.length>0),V(({items:b})=>{let z=0,G=b.length-1;for(;b[z].type==="group"&&z<G;)z++;for(;b[G].type==="group"&&G>z;)G--;return{endIndex:b[G].index,startIndex:b[z].index}}),se(Pt)));return{endReached:te,initialItemCount:L,itemsRendered:T,listState:H,minOverscanItemCount:P,rangeChanged:de,startReached:X,topItemsIndexes:W,...K}},N(jn,ui,no,ra,ia,ca,Xn,Et),{singleton:!0}),xi=ve(([{fixedFooterHeight:n,fixedHeaderHeight:t,footerHeight:i,headerHeight:s},{listState:d}])=>{const c=ie(),p=Ne(x(Ie(i,n,s,t,d),V(([f,h,_,E,U])=>f+h+_+E+U.offsetBottom+U.bottom)),0);return O(re(p),c),{totalListHeight:p,totalListHeightChanged:c}},N(Je,rt),{singleton:!0}),Ed=ve(([{viewportHeight:n},{totalListHeight:t}])=>{const i=R(!1),s=Ne(x(Ie(i,n,t),Y(([d])=>d),V(([,d,c])=>Math.max(0,d-c)),Oe(0),se()),0);return{alignToBottom:i,paddingTopAddition:s}},N(Je,xi),{singleton:!0}),bi=ve(()=>({context:R(null)})),jd=({itemBottom:n,itemTop:t,locationParams:{align:i,behavior:s,...d},viewportBottom:c,viewportTop:p})=>t<p?{...d,align:i??"start",...s!==void 0?{behavior:s}:{}}:n>c?{...d,align:i??"end",...s!==void 0?{behavior:s}:{}}:null,Si=ve(([{gap:n,sizes:t,totalCount:i},{fixedFooterHeight:s,fixedHeaderHeight:d,headerHeight:c,scrollingInProgress:p,scrollTop:f,viewportHeight:h},{scrollToIndex:_}])=>{const E=ie();return O(x(E,ee(t,h,i,c,d,s,f),ee(n),V(([[U,K,D,$,W,L,T,P],H])=>{const{calculateViewLocation:te=jd,done:X,...de}=U,b=di(U,K,$-1),z=oa(b,K.offsetTree,H)+W+L,G=z+rn(K.sizeTree,b)[1],le=P+L,ae=P+D-T,fe=te({itemBottom:G,itemTop:z,locationParams:de,viewportBottom:ae,viewportTop:le});return fe!==null?X&&ne(x(p,Y(ye=>!ye),Ke(Q(p)?1:2)),X):X==null||X(),fe}),Y(U=>U!==null)),_),{scrollIntoView:E}},N(jn,Je,ia,rt,In),{singleton:!0});function Ii(n){return n===!1?!1:n==="smooth"?"smooth":"auto"}const Kd=(n,t)=>typeof n=="function"?Ii(n(t)):t&&Ii(n),Od=ve(([{listRefresh:n,totalCount:t,fixedItemSize:i,data:s},{atBottomState:d,isAtBottom:c},{scrollToIndex:p},{scrolledToInitialItem:f},{didMount:h,propsReady:_},{log:E},{scrollingInProgress:U},{context:K},{scrollIntoView:D}])=>{const $=R(!1),W=ie();let L=null;function T(X){j(p,{align:"end",behavior:X,index:"LAST"})}w(x(Ie(x(re(t),Ke(1)),h),ee(re($),c,f,U),V(([[X,de],b,z,G,le])=>{let ae=de&&G,fe="auto";return ae&&(fe=Kd(b,z||le),ae=ae&&fe!==!1),{followOutputBehavior:fe,shouldFollow:ae,totalCount:X}}),Y(({shouldFollow:X})=>X)),({followOutputBehavior:X,totalCount:de})=>{L!==null&&(L(),L=null),Q(i)!==void 0?requestAnimationFrame(()=>{Q(E)("following output to ",{totalCount:de},Me.DEBUG),T(X)}):L=ne(n,()=>{Q(E)("following output to ",{totalCount:de},Me.DEBUG),T(X),L=null})});function P(X){const de=ne(d,b=>{X&&!b.atBottom&&b.notAtBottomBecause==="SIZE_INCREASED"&&L===null&&(Q(E)("scrolling to bottom due to increased size",{},Me.DEBUG),T("auto"))});setTimeout(de,100)}w(x(Ie(re($),t,_),Y(([X,,de])=>X!==!1&&de),he(({value:X},[,de])=>({refreshed:X===de,value:de}),{refreshed:!1,value:0}),Y(({refreshed:X})=>X),ee($,t)),([,X])=>{Q(f)&&P(X!==!1)}),w(W,()=>{P(Q($)!==!1)}),w(Ie(re($),d),([X,de])=>{X!==!1&&!de.atBottom&&de.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&T("auto")});const H=R(null),te=ie();return O(Pn(x(re(s),V(X=>(X==null?void 0:X.length)??0)),x(re(t))),te),w(x(Ie(x(te,Ke(1)),h),ee(re(H),f,U,K),V(([[X,de],b,z,G,le])=>de&&z&&(b==null?void 0:b({context:le,totalCount:X,scrollingInProgress:G}))),Y(X=>!!X),Oe(0)),X=>{L!==null&&(L(),L=null),Q(i)!==void 0?requestAnimationFrame(()=>{Q(E)("scrolling into view",{}),j(D,X)}):L=ne(n,()=>{Q(E)("scrolling into view",{}),j(D,X),L=null})}),{autoscrollToBottom:W,followOutput:$,scrollIntoViewOnChange:H}},N(jn,ca,ia,ra,Xn,In,Je,bi,Si)),Ld=ve(([{data:n,firstItemIndex:t,gap:i,sizes:s}
vendor: 4,162 bytes, line 432
432,{initialTopMostItemIndex:d},{initialItemCount:c,listState:p},{didMount:f}])=>(O(x(f,ee(c),Y(([,h])=>h!==0),ee(d,s,t,i,n),V(([[,h],_,E,U,K,D=[]])=>hi(h,_,E,U,K,D))),p),{}),N(jn,ra,rt,Xn),{singleton:!0}),zd=ve(([{didMount:n},{scrollTo:t},{listState:i}])=>{const s=R(0);return w(x(n,ee(s),Y(([,d])=>d!==0),V(([,d])=>({top:d}))),d=>{ne(x(i,Ke(1),Y(c=>c.items.length>1)),()=>{requestAnimationFrame(()=>{j(t,d)})})}),{initialScrollTop:s}},N(Xn,Je,rt),{singleton:!0}),Ti=ve(([{scrollVelocity:n}])=>{const t=R(!1),i=ie(),s=R(!1);return O(x(n,ee(s,t,i),Y(([d,c])=>c!==!1&&c!==void 0),V(([d,c,p,f])=>{const{enter:h,exit:_}=c;if(p){if(_(d,f))return!1}else if(h(d,f))return!0;return p}),se()),t),w(x(Ie(t,n,i),ee(s)),([[d,c,p],f])=>{d&&f!==!1&&f!==void 0&&f.change&&f.change(c,p)}),{isSeeking:t,scrollSeekConfiguration:s,scrollSeekRangeChanged:i,scrollVelocity:n}},N(ca),{singleton:!0}),ao=ve(([{scrollContainerState:n,scrollTo:t}])=>{const i=ie(),s=ie(),d=ie(),c=R(!1),p=R(void 0);return O(x(Ie(i,s),V(([{scrollTop:f,viewportHeight:h},{offsetTop:_,listHeight:E}])=>({scrollHeight:E,scrollTop:Math.max(0,f-_),viewportHeight:h}))),n),O(x(t,ee(s),V(([f,{offsetTop:h}])=>({...f,top:f.top+h}))),d),{customScrollParent:p,useWindowScroll:c,windowScrollContainerState:i,windowScrollTo:d,windowViewportRect:s}},N(Je)),$d=ve(([{sizeRanges:n,sizes:t},{headerHeight:i,scrollTop:s},{initialTopMostItemIndex:d},{didMount:c},{useWindowScroll:p,windowScrollContainerState:f,windowViewportRect:h}])=>{const _=ie(),E=R(void 0),U=R(null),K=R(null);return O(f,U),O(h,K),w(x(_,ee(t,s,p,U,K,i)),([D,$,W,L,T,P,H])=>{const te=kd($.sizeTree);L&&T!==null&&P!==null&&(W=T.scrollTop-P.offsetTop),W-=H,D({ranges:te,scrollTop:W})}),O(x(E,Y(A),V(Rd)),d),O(x(c,ee(E),Y(([,D])=>D!==void 0),se(),V(([,D])=>D.ranges)),n),{getState:_,restoreStateFrom:E}},N(jn,Je,ra,Xn,ao));function Rd(n){return{align:"start",index:0,offset:n.scrollTop}}const Dd=ve(([{topItemsIndexes:n}])=>{const t=R(0);return O(x(t,Y(i=>i>=0),V(i=>Array.from({length:i}).map((s,d)=>d))),n),{topItemCount:t}},N(rt));function Ci(n){let t=!1,i;return()=>(t||(t=!0,i=n()),i)}const Ud=Ci(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),Md=ve(([{deviation:n,scrollBy:t,scrollingInProgress:i,scrollTop:s},{isAtBottom:d,isScrolling:c,lastJumpDueToItemResize:p,scrollDirection:f},{listState:h},{beforeUnshiftWith:_,gap:E,shiftWithOffset:U,sizes:K},{log:D},{recalcInProgress:$}])=>{const W=We(x(h,ee(p),he(([,T,P,H],[{bottom:te,items:X,offsetBottom:de,totalCount:b},z])=>{const G=te+de;let le=0;return P===b&&T.length>0&&X.length>0&&(X[0].originalIndex===0&&T[0].originalIndex===0||(le=G-H,le!==0&&(le+=z))),[le,X,b,G]},[0,[],0,0]),Y(([T])=>T!==0),ee(s,f,i,d,D,$),Y(([,T,P,H,,,te])=>!te&&!H&&T!==0&&P===sa),V(([[T],,,,,P])=>(P("Upward scrolling compensation",{amount:T},Me.DEBUG),T))));function L(T){T>0?(j(t,{behavior:"auto",top:-T}),j(n,0)):(j(n,0),j(t,{behavior:"auto",top:-T}))}return w(x(W,ee(n,c)),([T,P,H])=>{H&&Ud()?j(n,P-T):L(-T)}),w(x(Ie(Ne(c,!1),n,$),Y(([T,P,H])=>!T&&!H&&P!==0),V(([T,P])=>P),Oe(1)),L),O(x(U,V(T=>({top:-T}))),t),w(x(_,ee(K,E),V(([T,{groupIndices:P,lastSize:H,sizeTree:te},X])=>{function de(ae){return ae*(H+X)}if(P.length===0)return de(T);let b=0;const z=Zn(te,0);let G=0,le=0;for(;G<T;){G++,b+=z;let ae=P.length===le+1?1/0:P[le+1]-P[le]-1;G+ae>T&&(b-=z,ae=T-G+1),G+=ae,b+=de(ae),le++}return b})),T=>{j(n,T),requestAnimationFrame(()=>{j(t,{top:T}),requestAnimationFrame(()=>{j(n,0),j($,!1)})})}),{deviation:n}},N(Je,ca,rt,jn,In,Et)),Ad=ve(([n,t,i,s,d,c,p,f,h,_,E])=>({...n,...t,...i,...s,...d,...c,...p,...f,...h,..._,...E}),N(no,Ld,Xn,Ti,xi,zd,Ed,ao,Si,In,bi)),_i=ve(([{data:n,defaultItemSize:t,firstItemIndex:i,fixedItemSize:s,fixedGroupSize:d,gap:c,groupIndices:p,heightEstimates:f,itemSize:h,sizeRanges:_,sizes:E,statefulTotalCount:U,totalCount:K,trackItemSizes:D},{initialItemFinalLocationReached:$,initialTopMostItemIndex:W,scrolledToInitialItem:L},T,P,H,te,{scrollToIndex:X},de,{topItemCount:b},{groupCounts:z},G])=>{const{listState:le,minOverscanItemCount:ae,topItemsIndexes:fe,rangeChanged:ye,...ue}=te;return O(ye,G.scrollSeekRangeChanged),O(x(G.windowViewportRect,V(Se=>
432Se.visibleHeight)),T.viewportHeight),{data:n,defaultItemHeight:t,firstItemIndex:i,fixedItemHeight:s,fixedGroupHeight:d,gap:c,groupCounts:z,heightEstimates:f,initialItemFinalLocationReached:$,initialTopMostItemIndex:W,scrolledToInitialItem:L,sizeRanges:_,topItemCount:b,topItemsIndexes:fe,totalCount:K,...H,groupIndices:p,itemSize:h,listState:le,minOverscanItemCount:ae,scrollToIndex:X,statefulTotalCount:U,trackItemSizes:D,rangeChanged:ye,...ue,...G,...T,sizes:E,...P}},N(jn,ra,Je,$d,Od,rt,ia,Md,Dd,ui,Ad));function Bd(n,t){const i={},s={};let d=0;const c=n.length;for(;d<c;)s[n[d]]=1,d+=1;for(const p in t)Object.hasOwn(s,p)||(i[p]=t[p]);return i}const Aa=typeof document<"u"?l.useLayoutEffect:l.useEffect;function lo(n,t,i){const s=Object.keys(t.required||{}),d=Object.keys(t.optional||{}),c=Object.keys(t.methods||{}),p=Object.keys(t.events||{}),f=l.createContext({});function h(L,T){L.propsReady!==void 0&&j(L.propsReady,!1);for(const P of s){const H=L[t.required[P]];j(H,T[P])}for(const P of d)if(P in T){const H=L[t.optional[P]];j(H,T[P])}L.propsReady!==void 0&&j(L.propsReady,!0)}function _(L){return c.reduce((T,P)=>(T[P]=H=>{const te=L[t.methods[P]];j(te,H)},T),{})}function E(L){return p.reduce((T,P)=>(T[P]=An(L[t.events[P]]),T),{})}const U=l.forwardRef(function(L,T){const{children:P,...H}=L,[te]=l.useState(()=>B(yn(n),b=>{h(b,H)})),[X]=l.useState(S(E,te));Aa(()=>{for(const b of p)b in H&&w(X[b],H[b]);return()=>{Object.values(X).map(J)}},[H,X,te]),Aa(()=>{h(te,H)}),l.useImperativeHandle(T,v(_(te)));const de=i;return a.jsx(f.Provider,{value:te,children:i!==void 0?a.jsx(de,{...Bd([...s,...d,...p],H),children:P}):P})}),K=L=>{const T=l.useContext(f);return l.useCallback(P=>{j(T[L],P)},[T,L])},D=L=>{const T=l.useContext(f)[L],P=l.useCallback(H=>w(T,H),[T]);return l.useSyncExternalStore(P,()=>Q(T),()=>Q(T))},$=L=>{const T=l.useContext(f)[L],[P,H]=l.useState(S(Q,T));return Aa(()=>w(T,te=>{te!==P&&H(v(te))}),[T,P]),P},W=parseInt(l.version)>=18?D:$;return{Component:U,useEmitter:(L,T)=>{const P=l.useContext(f)[L];Aa(()=>w(P,T),[T,P])},useEmitterValue:W,usePublisher:K}}const pa=l.createContext(void 0),oo=l.createContext(void 0),io="-webkit-sticky",wi="sticky",ro=Ci(()=>{if(typeof document>"u")return wi;const n=document.createElement("div");return n.style.position=io,n.style.position===io?io:wi}),Fi=typeof document<"u"?l.useLayoutEffect:l.useEffect;function so(n){return"self"in n}function Nd(n){return"body"in n}function Pi(n,t,i,s=M,d,c){const p=l.useRef(null),f=l.useRef(null),h=l.useRef(null),_=l.useCallback(K=>{let D,$,W;const L=K.target;if(Nd(L)||so(L)){const P=so(L)?L:L.defaultView;W=c===!0?P.scrollX:P.scrollY,D=c===!0?P.document.documentElement.scrollWidth:P.document.documentElement.scrollHeight,$=c===!0?P.innerWidth:P.innerHe
432ight}else W=c===!0?L.scrollLeft:L.scrollTop,D=c===!0?L.scrollWidth:L.scrollHeight,$=c===!0?L.offsetWidth:L.offsetHeight;const T=()=>{n({scrollHeight:D,scrollTop:Math.max(W,0),viewportHeight:$})};K.suppressFlushSync===!0?T():o.flushSync(T),f.current!==null&&(W===f.current||W<=0||W===D-$)&&(f.current=null,t(!0),h.current&&(clearTimeout(h.current),h.current=null))},[n,t,c]);l.useEffect(()=>{const K=d||p.current;return s(d||p.current),_({suppressFlushSync:!0,target:K}),K.addEventListener("scroll",_,{passive:!0}),()=>{s(null),K.removeEventListener("scroll",_)}},[p,_,i,s,d]);function E(K){const D=p.current;if(!D||(c===!0?"offsetWidth"in D&&D.offsetWidth===0:"offsetHeight"in D&&D.offsetHeight===0))return;const $=K.behavior==="smooth";let W,L,T;so(D)?(L=Math.max(sn(D.document.documentElement,c===!0?"width":"height"),c===!0?D.document.documentElement.scrollWidth:D.document.documentElement.scrollHeight),W=c===!0?D.innerWidth:D.innerHeight,T=c===!0?window.scrollX:window.scrollY):(L=D[c===!0?"scrollWidth":"scrollHeight"],W=sn(D,c===!0?"width":"height"),T=D[c===!0?"scrollLeft":"scrollTop"]);const P=L-W;if(K.top=Math.ceil(Math.max(Math.min(P,K.top),0)),pi(W,L)||K.top===T){n({scrollHeight:L,scrollTop:T,viewportHeight:W}),$&&t(!0);return}$?(f.current=K.top,h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{h.current=null,f.current=null,t(!0)},1e3)):f.current=null,c===!0&&(K={...K.behavior!==void 0?{behavior:K.behavior}:{},left:K.top}),D.scrollTo(K)}function U(K){c===!0&&(K={...K.behavior!==void 0?{behavior:K.behavior}:{},...K.top!==void 0?{left:K.top}:{}}),p.current.scrollBy(K)}return{scrollByCallback:U,scrollerRef:p,scrollToCallback:E}}function co(n){return n}const Vd=ve(()=>{const n=R(f=>`Item ${f}`),t=R(f=>`Group ${f}`),i=R({}),s=R(co),d=R("div"),c=R(M),p=(f,h=null)=>Ne(x(i,V(_=>_[f]),se()),h);return{components:i,computeItemKey:s,EmptyPlaceholder:p("EmptyPlaceholder"),FooterComponent:p("Footer"),GroupComponent:p("Group","div"),groupContent:t,HeaderComponent:p("Header"),HeaderFooterTag:d,ItemComponent:p("Item","div"),itemContent:n,ListComponent:p("List","div"),ScrollerComponent:p("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:p("ScrollSeekPlaceholder"),TopItemListComponent:p("TopItemList")}}),Hd=ve(([n,t])=>({...n,...t}),N(_i,Vd)),Wd=({height:n})=>a.jsx("div",{style:{height:n}}),Gd={overflowAnchor:"none",position:ro(),zIndex:1},Ei={overflowAnchor:"none"},Zd={...Ei,display:"inline-block",height:"100%"},ji=l.memo(function({showTopList:n=!1}){const t=pe("listState"),i=hn("sizeRanges"),s=pe("useWindowScroll"),d=pe("customScrollParent"),c=hn("windowScrollContainerState"),p=hn("scrollContainerState"),f=d||s?c:p,h=pe("itemContent"),_=pe("context"),E=pe("groupContent"),U=pe("trackItemSizes"),K=pe("itemSize"),D=pe("log"),$=hn("gap"),W=pe("horizontalDirection"),{callbackRef:L}=Qt(i,K,U,n?M:f,D,$,d,W,pe("skipAnimationFrameInResizeObserver")),[T,P]=l.useState(0);go("deviation",ue=>{T!==ue&&P(ue)});const H=pe("EmptyPlaceholder"),te=pe("ScrollSeekPlaceholder")??Wd,X=pe("ListComponent"),de=pe("ItemComponent"),b=pe("GroupComponent"),z=pe("computeItemKey"),G=pe("isSeeking"),le=pe("groupIndices").length>0,ae=pe("alignToBottom"),fe=pe("initialItemFinalLocationReached"),ye=n?{}:{boxSizing:"border-box",...W?{display:"inline-block",height:"100%",marginLeft:T!==0?T:ae?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:T!==0?T:ae?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...fe?{}:{visibility:"hidden"}};return!n&&t.totalCount===0&&H!==null&&H!==void 0?a.jsx(H,{...Le(H,_)}):a.jsx(X,{...Le(X,_),"data-testid":n?"virtuoso-top-item-list":"virtuoso-item-list",ref:L,style:ye,children:(n?t.topItems:t.items).map(ue=>{const Se=ue.originalIndex,we=z(Se+t.firstItemIndex,ue.data,_);return G?l.createElement(te,{...Le(te,_),height:ue.size,index:ue.index,key:we,type:ue.type||"item",...ue.type==="group"?{}:{groupIndex:ue.groupIndex}}):ue.type==="group"?l.createElement(b,{...Le(b,_),"data-index":Se,"data-item-index":ue.index,"data-known-size":ue.size,key:we,style:Gd},E(ue.index,_)):l.createElement(de,{...Le(de,_),...Ki(de,ue.data),"data-index":Se,"data-item-group-index":ue.groupIndex,"data-item-index":ue.index,"data-known-size":ue.size,key:we,style:W?Zd:Ei},le?h(ue.index,ue.groupIndex,ue.data,_):h(ue.index,ue.data,_))})})}),Qd={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Yd={outline:"none",overflowX:"auto",position:"relative"},Ba=n=>({height:"100%",position:"absolute",top:0,width:"100%",...n?{display:"flex",flexDirection:"column"}:void 0}),uo=(n,t,i=0)=>({...Ba(n),position:t?"relative":"absolute",top:t?-i:0}),Xd={position:ro(),top:0,width:"100%",zIndex:1};
432function Le(n,t){if(typeof n!="string")return{context:t}}function Ki(n,t){return{item:typeof n=="string"?void 0:t}}const Jd=l.memo(function(){const n=pe("HeaderComponent"),t=hn("headerHeight"),i=pe("HeaderFooterTag"),s=cn(l.useMemo(()=>c=>{t(sn(c,"height"))},[t]),!0,pe("skipAnimationFrameInResizeObserver")),d=pe("context");return n!=null?a.jsx(i,{ref:s,children:a.jsx(n,{...Le(n,d)})}):null}),qd=l.memo(function(){const n=pe("FooterComponent"),t=hn("footerHeight"),i=pe("HeaderFooterTag"),s=cn(l.useMemo(()=>c=>{t(sn(c,"height"))},[t]),!0,pe("skipAnimationFrameInResizeObserver")),d=pe("context");return n!=null?a.jsx(i,{ref:s,children:a.jsx(n,{...Le(n,d)})}):null});function mo({useEmitter:n,useEmitterValue:t,usePublisher:i}){return l.memo(function({children:s,style:d,context:c,...p}){const f=i("scrollContainerState"),h=t("ScrollerComponent"),_=i("smoothScrollTargetReached"),E=t("scrollerRef"),U=t("horizontalDirection")||!1,{scrollByCallback:K,scrollerRef:D,scrollToCallback:$}=Pi(f,_,h,E,void 0,U);n("scrollTo",$),n("scrollBy",K);const W=U?Yd:Qd;return a.jsx(h,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:D,style:{...W,...d},tabIndex:0,...p,...Le(h,c),children:s})})}function po({useEmitter:n,useEmitterValue:t,usePublisher:i}){return l.memo(function({children:s,style:d,context:c,...p}){const f=i("windowScrollContainerState"),h=t("ScrollerComponent"),_=i("smoothScrollTargetReached"),E=t("totalListHeight"),U=t("deviation"),K=t("customScrollParent"),D=l.useRef(null),$=t("scrollerRef"),{scrollByCallback:W,scrollerRef:L,scrollToCallback:T}=Pi(f,_,h,$,K);return Fi(()=>{var P;return L.current=K||((P=D.current)==null?void 0:P.ownerDocument.defaultView),()=>{L.current=null}},[L,K]),n("windowScrollTo",T),n("scrollBy",W),a.jsx(h,{ref:D,"data-virtuoso-scroller":!0,style:{position:"relative",...d,...E!==0?{height:E+U}:void 0},...p,...Le(h,c),children:s})})}const ec=({children:n})=>{const t=l.useContext(pa),i=hn("viewportHeight"),s=hn("fixedItemHeight"),d=pe("alignToBottom"),c=pe("horizontalDirection"),p=l.useMemo(()=>g(i,h=>sn(h,c?"width":"height")),[i,c]),f=cn(p,!0,pe("skipAnimationFrameInResizeObserver"));return l.useEffect(()=>{t&&(i(t.viewportHeight),s(t.itemHeight))},[t,i,s]),a.jsx("div",{"data-viewport-type":"element",ref:f,style:Ba(d),children:n})},nc=({children:n})=>{const t=l.useContext(pa),i=hn("windowViewportRect"),s=hn("fixedItemHeight"),d=pe("customScrollParent"),c=pe("useWindowScroll"),p=pe("topListHeight"),f=Ct(i,d,pe("skipAnimationFrameInResizeObserver")),h=pe("alignToBottom");return l.useEffect(()=>{t&&(s(t.itemHeight),i({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,i,s]),a.jsx("div",{"data-viewport-type":"window",ref:f,style:uo(h,c,p),children:n})},tc=({children:n})=>{const t=pe("TopItemListComponent")??"div",i=pe("headerHeight"),s={...Xd,marginTop:`${i}px`},d=pe("context");return a.jsx(t,{style:s,...Le(t,d),children:n})},ac=l.memo(function(n){const t=pe("useWindowScroll"),i=pe("topItemsIndexes").length>0,s=pe("customScrollParent"),d=pe("context"),c=s||t?oc:lc,p=s||t?nc:ec;return a.jsxs(c,{...n,context:d,children:[i&&a.jsx(tc,{children:a.jsx(ji,{showTopList:!0})}),a.jsxs(p,{children:[a.jsx(Jd,{}),a.jsx(ji,{}),a.jsx(qd,{})]})]})}),{Component:Oi,useEmitter:go,useEmitterValue:pe,usePublisher:hn}=lo(Hd,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"get
432State"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},ac),lc=mo({useEmitter:go,useEmitterValue:pe,usePublisher:hn}),oc=po({useEmitter:go,useEmitterValue:pe,usePublisher:hn}),ic=Oi,rc=Oi,sc=ve(()=>{const n=R(_=>a.jsxs("td",{children:["Item $",_]})),t=R(null),i=R(_=>a.jsxs("td",{colSpan:1e3,children:["Group ",_]})),s=R(null),d=R(null),c=R({}),p=R(co),f=R(M),h=(_,E=null)=>Ne(x(c,V(U=>U[_]),se()),E);return{components:c,computeItemKey:p,context:t,EmptyPlaceholder:h("EmptyPlaceholder"),FillerRow:h("FillerRow"),fixedFooterContent:d,fixedHeaderContent:s,itemContent:n,groupContent:i,ScrollerComponent:h("Scroller","div"),scrollerRef:f,ScrollSeekPlaceholder:h("ScrollSeekPlaceholder"),TableBodyComponent:h("TableBody","tbody"),TableComponent:h("Table","table"),TableFooterComponent:h("TableFoot","tfoot"),TableHeadComponent:h("TableHead","thead"),TableRowComponent:h("TableRow","tr"),GroupComponent:h("Group","tr")}}),dc=ve(([n,t])=>({...n,...t}),N(_i,sc)),cc=({height:n})=>a.jsx("tr",{children:a.jsx("td",{style:{height:n}})}),uc=({height:n})=>a.jsx("tr",{children:a.jsx("td",{style:{border:0,height:n,padding:0}})}),mc={overflowAnchor:"none"},Li={position:ro(),zIndex:2,overflowAnchor:"none"},zi=l.memo(function({showTopList:n=!1}){const t=ge("listState"),i=ge("computeItemKey"),s=ge("firstItemIndex"),d=ge("context"),c=ge("isSeeking"),p=ge("fixedHeaderHeight"),f=ge("groupIndices").length>0,h=ge("itemContent"),_=ge("groupContent"),E=ge("ScrollSeekPlaceholder")??cc,U=ge("GroupComponent"),K=ge("TableRowComponent"),D=(n?t.topItems:[]).reduce(($,W,L)=>(L===0?$.push(W.size):$.push($[L-1]+W.size),$),[]);return(n?t.topItems:t.items).map($=>{const W=$.originalIndex,L=i(W+s,$.data,d),T=n?W===0?0:D[W-1]:0;return c?l.createElement(E,{...Le(E,d),height:$.size,index:$.index,key:L,type:$.type||"item"}):$.type==="group"?l.createElement(U,{...Le(U,d),"data-index":W,"data-item-index":$.index,"data-known-size":$.size,key:L,style:{...Li,top:p}},_($.index,d)):l.createElement(K,{...Le(K,d),...Ki(K,$.data),"data-index":W,"data-item-index":$.index,"data-known-size":$.size,"data-item-group-index":$.groupIndex,key:L,style:n?{...Li,top:p+T}:mc},f?h($.index,$.groupIndex,$.data,d):h($.index,$.data,d))})}),pc=l.memo(function(){const n=ge("listState"),t=ge("topItemsIndexes").length>0,i=Tn("sizeRanges"),s=ge("useWindowScroll"),d=ge("customScrollParent"),c=Tn("windowScrollContainerState"),p=Tn("scrollContainerState"),f=d||s?c:p,h=ge("trackItemSizes"),_=ge("itemSize"),E=ge("log"),{callbackRef:U,ref:K}=Qt(i,_,h,f,E,void 0,d,!1,ge("skipAnimationFrameInResizeObserver")),[D,$]=l.useState(0);fo("deviation",le=>{D!==le&&(K.current.style.marginTop=`${le}px`,$(le))});const W=ge("EmptyPlaceholder"),L=ge("FillerRow")??uc,T=ge("TableBodyComponent"),P=ge("paddingTopAddition"),H=ge("statefulTotalCount"),te=ge("context");if(H===0&&W!==null&&W!==void 0)return a.jsx(W,{...Le(W,te)});const X=(t?n.topItems:[]).reduce((le,ae)=>le+ae.size,0),de=n.offsetTop+P+D-X,b=n.offsetBottom,z=de>0?a.jsx(L,{context:te,height:de},"padding-top"):null,G=b>0?a.jsx(L,{context:te,height:b},"padding-bottom"):null;return a.jsxs(T,{"data-testid":"virtuoso-item-list",ref:U,...Le(T,te),children:[z,t&&a.jsx(zi,{showTopList:!0}),a.jsx(zi,{}),G]})}),gc=({children:n})=>{const t=l.useContext(pa),i=Tn("viewportHeight"),s=Tn("fixedItemHeight"),d=cn(l.useMemo(()=>g(i,c=>sn(c,"height")),[i]),!0,ge("skipAnimationFrameInResizeObserver"));return l.useEffect(()=>{t&&(i(t.viewportHeight),s(t.itemHeight))},[t,i,s]),a.jsx("div",{"data-viewport-type":"element",ref:d,style:Ba(!1),children:n})},fc=({children:n})=>{const t=l.useContext(pa),i=Tn("windowViewportRect"),s=Tn("fixedItemHeight"),d=ge("customScrollParent"),c=ge("useWindowScroll"),p=Ct(i,d,ge("skipAnimationFrameInResizeObserver"));return l.useEffect(()=>{t&&(s(t.itemHeight),i({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,i,s]),a.jsx("div",{"data-viewport-type":"window",ref:p,style:uo(!1,c),children:n})},yc=l.memo(function(n){const t=ge("useWindowScroll"),i=ge("customScrollParent"),s=Tn("fixedHeaderHeight"),d=Tn("fixedFooterHeight"),c=ge("fixedHeaderContent"),p=ge("fixedFooterContent"),f=ge("context"),h=cn(l.useMemo(()=>g(s,T=>sn(T,"height")),[s]),!0,ge("skipAnimationFrameInResizeObserver")),_=cn(l.useMemo(()=>g(d,T=>sn(T,"height")),[d]),!0,ge("skipAnimationFrameInResizeObserver")),E=i||t?vc:hc,U=i||t?fc:gc,K=ge("TableComponent"),D=ge("TableHeadComponent"),$=ge("TableFooterComponent"),W=c?a.jsx(D,{ref:h,style:{position:"sticky",top:0,zIndex:2},...Le(D,f),children:c()}
432,"TableHead"):null,L=p?a.jsx($,{ref:_,style:{bottom:0,position:"sticky",zIndex:1},...Le($,f),children:p()},"TableFoot"):null;return a.jsx(E,{...n,...Le(E,f),children:a.jsx(U,{children:a.jsxs(K,{style:{borderSpacing:0,overflowAnchor:"none"},...Le(K,f),children:[W,a.jsx(pc,{},"TableBody"),L]})})})}),{Component:$i,useEmitter:fo,useEmitterValue:ge,usePublisher:Tn}=lo(dc,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},yc),hc=mo({useEmitter:fo,useEmitterValue:ge,usePublisher:Tn}),vc=po({useEmitter:fo,useEmitterValue:ge,usePublisher:Tn}),kc=$i,xc=$i,Ri={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},bc={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:Di,floor:Na,max:ga,min:yo,round:Ui}=Math;function Mi(n,t,i){return Array.from({length:t-n+1}).map((s,d)=>({data:i===null?null:i[d+n],index:d+n}))}function Sc(n){return{...bc,items:n}}function Va(n,t){return n!==void 0&&n.width===t.width&&n.height===t.height}function Ic(n,t){return n!==void 0&&n.column===t.column&&n.row===t.row}const Tc=ve(([{increaseViewportBy:n,listBoundary:t,overscan:i,visibleRange:s},{footerHeight:d,headerHeight:c,scrollBy:p,scrollContainerState:f,scrollTo:h,scrollTop:_,smoothScrollTargetReached:E,viewportHeight:U},K,D,{didMount:$,propsReady:W},{customScrollParent:L,useWindowScroll:T,windowScrollContainerState:P,windowScrollTo:H,windowViewportRect:te},X])=>{const de=R(0),b=R(0),z=R(Ri),G=R({height:0,width:0}),le=R({height:0,width:0}),ae=ie(),fe=ie(),ye=R(0),ue=R(null),Se=R({column:0,row:0}),we=ie(),Te=ie(),Ze=R(!1),kn=R(0),ln=R(!0),dn=R(!1),Jn=R(!1);w(x($,ee(kn),Y(([q,Fe])=>Fe!==0)),()=>{j(ln,!1)}),w(x(Ie($,ln,le,G,kn,dn),Y(([q,Fe,Qe,$e,,De])=>q&&!Fe&&Qe.height!==0&&$e.height!==0&&!De)),([,,,,q])=>{j(dn,!0),ql(1,()=>{j(ae,q)}),ne(x(_),()=>{j(t,[0,0]),j(ln,!0)})}),O(x(Te,Y(q=>q!=null&&q.scrollTop>0),be(0)),b),w(x($,ee(Te),Y(([,q])=>q!=null)),([,q])=>{q&&(j(G,q.viewport),j(le,q.item),j(Se,q.gap),q.scrollTop>0&&(j(Ze,!0),ne(x(_,Ke(1)),Fe=>{j(Ze,!1)}),j(h,{top:q.scrollTop})))}),O(x(G,V(({height:q})=>q)),U),O(x(Ie(re(G,Va),re(le,Va),re(Se,(q,Fe)=>q!==void 0&&q.column===Fe.column&&q.row===Fe.row),re(_)),V(([q,Fe,Qe,$e])=>({gap:Qe,item:Fe,scrollTop:$e,viewport:q}))),we),O(x(Ie(re(de),s,re(Se,Ic),re(le,Va),re(G,Va),re(ue),re(b),re(Ze),re(ln),re(kn)),Y(([,,,,,,,q])=>!q),V(([q,[Fe,Qe],$e,De,Ye,Ve,je,,Ae,on])=>{const{column:He,row:ha}=$e,{height:Ha,width:vo}=De,{width:Hi}=Ye;if(je===0&&(q===0||Hi===0))return Ri;if(vo===0){const Yi=eo(on,q),Dc=Yi+Math.max(je-1,0);return Sc(Mi(Yi,Dc,Ve))}const Wa=Ai(Hi,vo,He);let Ot,st;Ae?Fe===0&&Qe===0&&je>0?(Ot=0,st=je-1):(Ot=Wa*Na((Fe+ha)/(Ha+ha)),st=Wa*Di((Qe+ha)/(Ha+ha))-1,st=yo(q-1,ga(st,Wa-1)),Ot=yo(st,ga(0,Ot))):(Ot=0,st=-1);const Wi=Mi(Ot,st,Ve),{bottom:Gi,top:Zi}
432=Bi(Ye,$e,De,Wi),Qi=Di(q/Wa),Rc=Qi*Ha+(Qi-1)*ha-Gi;return{bottom:Gi,itemHeight:Ha,items:Wi,itemWidth:vo,offsetBottom:Rc,offsetTop:Zi,top:Zi}})),z),O(x(ue,Y(q=>q!==null),V(q=>q.length)),de),O(x(Ie(G,le,z,Se),Y(([q,Fe,{items:Qe}])=>Qe.length>0&&Fe.height!==0&&q.height!==0),V(([q,Fe,{items:Qe},$e])=>{const{bottom:De,top:Ye}=Bi(q,$e,Fe,Qe);return[Ye,De]}),se(Qn)),t);const nn=R(!1);O(x(_,ee(nn),V(([q,Fe])=>Fe||q!==0)),nn);const Kt=We(x(Ie(z,de),Y(([{items:q}])=>q.length>0),ee(nn),Y(([[q,Fe],Qe])=>{const $e=q.items[q.items.length-1].index===Fe-1;return(Qe||q.bottom>0&&q.itemHeight>0&&q.offsetBottom===0&&q.items.length===Fe)&&$e}),V(([[,q]])=>q-1),se())),fa=We(x(re(z),Y(({items:q})=>q.length>0&&q[0].index===0),be(0),se())),Kn=We(x(re(z),ee(Ze),Y(([{items:q},Fe])=>q.length>0&&!Fe),V(([{items:q}])=>({endIndex:q[q.length-1].index,startIndex:q[0].index})),se(Pt),Oe(0)));O(Kn,D.scrollSeekRangeChanged),O(x(ae,ee(G,le,de,Se),V(([q,Fe,Qe,$e,De])=>{const Ye=mi(q),{align:Ve,behavior:je,offset:Ae}=Ye;let on=Ye.index;on==="LAST"&&(on=$e-1),on=ga(0,on,yo($e-1,on));let He=ho(Fe,De,Qe,on);return Ve==="end"?He=Ui(He-Fe.height+Qe.height):Ve==="center"&&(He=Ui(He-Fe.height/2+Qe.height/2)),Ae!==void 0&&Ae!==0&&(He+=Ae),{behavior:je,top:He}})),h);const ya=Ne(x(z,V(q=>q.offsetBottom+q.bottom)),0);return O(x(te,V(q=>({height:q.visibleHeight,width:q.visibleWidth}))),G),{customScrollParent:L,data:ue,deviation:ye,footerHeight:d,gap:Se,headerHeight:c,increaseViewportBy:n,initialItemCount:b,itemDimensions:le,overscan:i,restoreStateFrom:Te,scrollBy:p,scrollContainerState:f,scrollHeight:fe,scrollTo:h,scrollToIndex:ae,scrollTop:_,smoothScrollTargetReached:E,totalCount:de,useWindowScroll:T,viewportDimensions:G,windowScrollContainerState:P,windowScrollTo:H,windowViewportRect:te,...D,gridState:z,horizontalDirection:Jn,initialTopMostItemIndex:kn,totalListHeight:ya,...K,endReached:Kt,propsReady:W,rangeChanged:Kn,startReached:fa,stateChanged:we,stateRestoreInProgress:Ze,...X}},N(no,Je,ca,Ti,Xn,ao,In));function Ai(n,t,i){return ga(1,Na((n+i)/(Na(t)+i)))}function Bi(n,t,i,s){const{height:d}=i;if(d===void 0||s.length===0)return{bottom:0,top:0};const c=ho(n,t,i,s[0].index);return{bottom:ho(n,t,i,s[s.length-1].index)+d,top:c}}function ho(n,t,i,s){const d=Ai(n.width,i.width,t.column),c=Na(s/d),p=c*i.height+ga(0,c-1)*t.row;return p>0?p+t.row:p}const Cc=ve(()=>{const n=R(U=>`Item ${U}`),t=R({}),i=R(null),s=R("virtuoso-grid-item"),d=R("virtuoso-grid-list"),c=R(co),p=R("div"),f=R(M),h=(U,K=null)=>Ne(x(t,V(D=>D[U]),se()),K),_=R(!1),E=R(!1);return O(re(E),_),{components:t,computeItemKey:c,context:i,FooterComponent:h("Footer"),HeaderComponent:h("Header"),headerFooterTag:p,itemClassName:s,ItemComponent:h("Item","div"),itemContent:n,listClassName:d,ListComponent:h("List","div"),readyStateChanged:_,reportReadyState:E,ScrollerComponent:h("Scroller","div"),scrollerRef:f,ScrollSeekPlaceholder:h("ScrollSeekPlaceholder","div")}}),_c=ve(([n,t])=>({...n,...t}),N(Tc,Cc)),wc=l.memo(function(){const n=ze("gridState"),t=ze("listClassName"),i=ze("itemClassName"),s=ze("itemContent"),d=ze("computeItemKey"),c=ze("isSeeking"),p=vn("scrollHeight"),f=ze("ItemComponent"),h=ze("ListComponent"),_=ze("ScrollSeekPlaceholder"),E=ze("context"),U=vn("itemDimensions"),K=vn("gap"),D=ze("log"),$=ze("stateRestoreInProgress"),W=vn("reportReadyState"),L=cn(l.useMemo(()=>T=>{const P=T.parentElement.parentElement.scrollHeight;p(P);const H=T.firstChild;if(H!==null){const{height:te,width:X}=H.getBoundingClientRect();U({height:te,width:X})}K({column:Vi("column-gap",getComputedStyle(T).columnGap,D),row:Vi("row-gap",getComputedStyle(T).rowGap,D)})},[p,U,K,D]),!0,!1);return Fi(()=>{n.itemHeight>0&&n.itemWidth>0&&W(!0)},[n]),$?null:a.jsx(h,{className:t,ref:L,...Le(h,E),"data-testid":"virtuoso-item-list",style:{paddingBottom:n.offsetBottom,paddingTop:n.offsetTop},children:n.items.map(T=>{const P=d(T.index,T.data,E);return c?a.jsx(_,{...Le(_,E),height:n.itemHeight,index:T.index,width:n.itemWidth},P):l.createElement(f,{...Le(f,E),className:i,"data-index":T.index,key:P},s(T.index,T.data,E))})})}),Fc=l.memo(function(){const n=ze("HeaderComponent"),t=vn("headerHeight"),i=ze("headerFooterTag"),s=cn(l.useMemo(()=>c=>{t(sn(c,"height"))},[t]),!0,!1),d=ze("context");return n!=null?a.jsx(i,{ref:s,children:a.jsx(n,{...Le(n,d)})}):null}),Pc=l.memo(function(){const n=ze("FooterComponent"),t=vn("footerHeight"),i=ze("headerFooterTag"),s=cn(l.useMemo(()=>c=>{t(sn(c,"height"))},[t]),!0,!1),d=ze("context");return n!=null?a.jsx(i,{ref:s,children:a.jsx(n,{...Le(n,d)})}):null}),Ec=({children:n})=>{const t=l.useContext(oo),i=vn("itemDimensions"),s=vn("viewportDimensions"),d=cn(l.useMemo(()=>c=>{s(c.getBoundingClientRect())},[s]),!0,!1);return l.useEffect(()=>
432{t&&(s({height:t.viewportHeight,width:t.viewportWidth}),i({height:t.itemHeight,width:t.itemWidth}))},[t,s,i]),a.jsx("div",{ref:d,style:Ba(!1),children:n})},jc=({children:n})=>{const t=l.useContext(oo),i=vn("windowViewportRect"),s=vn("itemDimensions"),d=ze("customScrollParent"),c=ze("useWindowScroll"),p=Ct(i,d,!1);return l.useEffect(()=>{t&&(s({height:t.itemHeight,width:t.itemWidth}),i({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,i,s]),a.jsx("div",{ref:p,style:uo(!1,c),children:n})},Kc=l.memo(function({...n}){const t=ze("useWindowScroll"),i=ze("customScrollParent"),s=i||t?zc:Lc,d=i||t?jc:Ec,c=ze("context");return a.jsx(s,{...n,...Le(s,c),children:a.jsxs(d,{children:[a.jsx(Fc,{}),a.jsx(wc,{}),a.jsx(Pc,{})]})})}),{Component:Oc,useEmitter:Ni,useEmitterValue:ze,usePublisher:vn}=lo(_c,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},Kc),Lc=mo({useEmitter:Ni,useEmitterValue:ze,usePublisher:vn}),zc=po({useEmitter:Ni,useEmitterValue:ze,usePublisher:vn});function Vi(n,t,i){return t!=="normal"&&(t==null?void 0:t.endsWith("px"))!==!0&&i(`${n} was not resolved to pixel value correctly`,t,Me.WARN),t==="normal"?0:parseInt(t??"0",10)}const $c=Oc;e.GroupedTableVirtuoso=xc,e.GroupedVirtuoso=rc,e.LogLevel=Me,e.TableVirtuoso=kc,e.Virtuoso=ic,e.VirtuosoGrid=$c,e.VirtuosoGridMockContext=oo,e.VirtuosoMockContext=pa})(Ss);var Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.useTimelineLayout=cm;const am=ce,dt=iu,nr=dl,tr=[dt.Color.FIBONACCI,dt.Color.PYTHAGORAS,dt.Color.NOETHER,dt.Color.HYPATIA,dt.Color.GERMAIN,dt.Color.BHASKARA,dt.Color.LOVELACE],lm=new Set(["UTC","Etc/UTC","Etc/GMT","GMT"]);function ar(e){return lm.has(e)}function om(e){const a=new Map;for(const l of e)!ar(l.timezone)&&!a.has(l.sessionIndex)&&a.set(l.sessionIndex,l.timezone);return a.size===0?e:e.map(l=>{const o=a.get(l.sessionIndex);return o===void 0||!ar(l.timezone)?l:Object.assign(Object.assign({},l),{timezone:o})})}function im(e,a,l){const o={locale:"en-US",timeZone:l,year:"numeric",month:"2-digit",day:"2-digit"};return(0,nr.formatTime)(e,o)===(0,nr.formatTime)(a,o)}function rm(e){const a=new Map;for(const l of e){const o=a.get(l.sessionIndex);o===void 0?a.set(l.sessionIndex,{start:l.timestamp,end:l.timestamp}):(o.start=Math.min(o.start,l.timestamp),o.end=Math.max(o.end,l.timestamp))}return a}function sm(e){for(let a=0;;a++)if(!Array.from(e.occupants.values()).some(o=>o.trackIndex===a&&e.candidateStart<o.end&&e.candidateEnd>o.start))return a}function dm(e){const a=Array.from(e.intervals.entries()).filter(([r,u])=>!(e.timestamp<u.start||e.timestamp>u.end||e.closedSessions.has(r)&&!e.reachableSessions.has(r))).map(([r])=>r),l=a.map(r=>{var u;return{sessionIndex:r,globalTrack:(u=e.trackAssignments.get(r))!==null&&u!==void 0?u:0}}).sort((r,u)=>r.globalTrack-u.globalTrack),o=new Map;for(let r=0;r<l.length;r++)o.set(l[r].sessionIndex,r);return{activeSessions:a,trackPositions:o}}function cm(e){return(0,am.useMemo)(()=>{var a,l,o;
432const r=!e.hasNewer,u=!e.hasOlder,y=om(e.events),k=rm(y),v=new Set;for(const M of y)((a=M.session)===null||a===void 0?void 0:a.closed)===!0&&v.add(M.sessionIndex);for(const[M,B]of k)v.has(M)?B.start===B.end&&k.delete(M):B.end=Number.MAX_SAFE_INTEGER;const I=new Map,g=new Map,S=Array.from(k.entries()).sort((M,B)=>M[0]-B[0]);for(const[M,B]of S){const oe=sm({occupants:g,candidateStart:B.start,candidateEnd:B.end});I.set(M,oe),g.set(M,{start:B.start,end:B.end,trackIndex:oe})}const C=[...y].sort((M,B)=>B.timestamp-M.timestamp),A=[],Z=new Set;for(let M=0;M<C.length;M++){const B=C[M];Z.add(B.sessionIndex);const{activeSessions:oe,trackPositions:N}=dm({timestamp:B.timestamp,intervals:k,trackAssignments:I,reachableSessions:Z,closedSessions:v}),w=k.get(B.sessionIndex),j=M>0?A[M-1]:void 0,J=j!==void 0&&!im(B.timestamp,j.timestamp,B.timezone),Q=(l=N.get(B.sessionIndex))!==null&&l!==void 0?l:0,O=oe.reduce((me,ke)=>{var se;return Math.max(me,(se=N.get(ke))!==null&&se!==void 0?se:0)},Q),ne=Object.assign(Object.assign({},B),{color:tr[B.sessionIndex%tr.length],trackIndex:Q,trackCount:O+1,activeSessions:oe,trackPositions:N,isSessionStart:B.timestamp===(w==null?void 0:w.start),isSessionEnd:((o=B.session)===null||o===void 0?void 0:o.closed)===!0,previousEvent:j,nextEvent:void 0,previousTrackPositions:j!==void 0?j.trackPositions:null,isDateBoundary:J});M>0&&(A[M-1].nextEvent=ne),A.push(ne)}return{rows:A,intervals:k,isAtEnd:r,isAtStart:u}},[e.events,e.hasNewer,e.hasOlder])}var gl={},Dn={},Un={},fl={},Wt={},Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});var um=su,lr=gu,or=fu;function mm(e={}){var a;const l=(a=e.store)==null?void 0:a.getState();return um.createCompositeStore.call(void 0,or.__spreadProps.call(void 0,or.__spreadValues.call(void 0,{},e),{orientation:lr.defaultValue.call(void 0,e.orientation,l==null?void 0:l.orientation,"horizontal"),focusLoop:lr.defaultValue.call(void 0,e.focusLoop,l==null?void 0:l.focusLoop,!0)}))}Zo.createToolbarStore=mm;Object.defineProperty(Wt,"__esModule",{value:!0});function pm(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(a[l]=e[l]);return a.default=e,a}var gm=du,fm=ls,ym=Zo,hm=pm(ym);function Is(e,a,l){return gm.useCompositeStoreProps.call(void 0,e,a,l)}function vm(e={}){const[a,l]=fm.useStore.call(void 0,hm.createToolbarStore,e);return Is(a,l,e)}Wt.useToolbarStoreProps=Is;Wt.useToolbarStore=vm;Object.defineProperty(fl,"__esModule",{value:!0});var Ts=Wt;fl.useToolbarStore=Ts.useToolbarStore;fl.useToolbarStoreProps=Ts.useToolbarStoreProps;var bt={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});var ir=as,km=xt,Fa=km.createStoreContext.call(void 0,[ir.CompositeContextProvider],[ir.CompositeScopedContextProvider]),xm=Fa.useContext,bm=Fa.useScopedContext,Sm=Fa.useProviderContext,Im=Fa.ContextProvider,Tm=Fa.ScopedContextProvider;fn.useToolbarContext=xm;fn.useToolbarScopedContext=bm;fn.useToolbarProviderContext=Sm;fn.ToolbarContextProvider=Im;fn.ToolbarScopedContextProvider=Tm;Object.defineProperty(bt,"__esModule",{value:!0});var Pa=fn;bt.ToolbarContextProvider=Pa.ToolbarContextProvider;bt.ToolbarScopedContextProvider=Pa.ToolbarScopedContextProvider;bt.useToolbarContext=Pa.useToolbarContext;bt.useToolbarProviderContext=Pa.useToolbarProviderContext;bt.useToolbarScopedContext=Pa.useToolbarScopedContext;var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var Cm=cu,_m=Wt,rr=fn,Lo=xt,wm=Qr,ko=Ht,Fm=m,Pm="div",Cs=Lo.createHook.call(void 0,function(a){var l=a,{store:o,orientation:r,virtualFocus:u,focusLoop:y,rtl:k}=l,v=ko.__objRest.call(void 0,l,["store","orientation","virtualFocus","focusLoop","rtl"]);const I=rr.useToolbarProviderContext.call(void 0);o=o||I;const g=_m.useToolbarStore.call(void 0,{store:o,orientation:r,virtualFocus:u,focusLoop:y,rtl:k}),S=g.useState(C=>C.orientation==="both"?void 0:C.orientation);return v=wm.useWrapElement.call(void 0,v,C=>Fm.jsx.call(void 0,rr.ToolbarScopedContextProvider,{value:g,children:C}),[g]),v=ko.__spreadValues.call(void 0,{role:"toolbar","aria-orientation":S},v),v=Cm.useComposite.call(void 0,ko.__spreadValues.call(void 0,{store:g},v)),v}),Em=Lo.forwardRef.call(void 0,function(a){const l=Cs(a);return Lo.createElement.call(void 0,Pm,l)});yl.Toolbar=Em;yl.useToolbar=Cs;var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});var jm=Wt,Km=fn,Om=m;function Lm(e={}){const a=jm.useToolbarStore.call(void 0,e);return Om.jsx.call(void 0,Km.ToolbarContextProvider,{value:a,children:e.children})}Qo.ToolbarProvider=Lm;var hl={},vl={};
432Object.defineProperty(vl,"__esModule",{value:!0});var zm=uu,$m=as,zo=xt,Rm=ls,va=Qr,xo=Ht,Za=Bc,Qa=Nc,On=Vc,Dm=Hc,bo=ce,Um="div";function sr(e){On.restoreFocusIn.call(void 0,e);const a=On.getFirstTabbableIn.call(void 0,e);return On.disableFocusIn.call(void 0,e),a}var _s=zo.createHook.call(void 0,function(a){var l=a,{store:o}=l,r=xo.__objRest.call(void 0,l,["store"]);const u=$m.useCompositeContext.call(void 0);o=o||u;const y=bo.useRef.call(void 0,null),k=bo.useRef.call(void 0,!1),v=(w=!1)=>{const j=y.current;if(!j)return;On.restoreFocusIn.call(void 0,j);const J=On.getFirstTabbableIn.call(void 0,j);if(!J){On.disableFocusIn.call(void 0,j);return}k.current=!0,queueMicrotask(()=>{J.focus(),(Za.isTextField.call(void 0,J)||J.isContentEditable)&&zm.selectTextField.call(void 0,J,w)})},I=()=>{const w=y.current;w&&(k.current=!1,On.disableFocusIn.call(void 0,w))},g=Rm.useStoreState.call(void 0,o,"renderedItems");bo.useEffect.call(void 0,()=>{const w=y.current;if(!w)return;!k.current&&(g!=null&&g.length)&&On.disableFocusIn.call(void 0,w)},[g]);const S=r.onFocus,C=va.useEvent.call(void 0,w=>{if(S==null||S(w),w.defaultPrevented||!o)return;const j=k.current;if(Qa.isSelfTarget.call(void 0,w)){k.current=!1;const{baseElement:J}=o.getState(),Q=J,ne=Q==null?void 0:Q.querySelectorAll("[data-composite-container]");if(ne)for(const me of ne)On.disableFocusIn.call(void 0,me)}else j||(k.current=!0,On.restoreFocusIn.call(void 0,w.currentTarget),o==null||o.setState("moves",0))}),A=r.onBlur,Z=va.useEvent.call(void 0,w=>{A==null||A(w),!w.defaultPrevented&&Qa.isFocusEventOutside.call(void 0,w)&&I()}),M=r.onKeyDown,B=va.useEvent.call(void 0,w=>{if(M==null||M(w),w.defaultPrevented||w.altKey||w.ctrlKey||w.metaKey||w.shiftKey)return;const j=w.currentTarget;if(Qa.isSelfTarget.call(void 0,w)){if(w.key.length===1&&w.key!==" "){const J=sr(j);if(!J)return;(Za.isTextField.call(void 0,J)||J.isContentEditable)&&(w.stopPropagation(),v())}else if(w.key==="Delete"||w.key==="Backspace"){const J=sr(j);if(!J)return;if(Za.isTextField.call(void 0,J)||J.isContentEditable){v();const Q=()=>queueMicrotask(()=>j.focus());j.addEventListener("input",Q,{once:!0})}}}else if(w.key==="Escape")queueMicrotask(()=>j.focus());else if(w.key==="Enter"){const J=w.target;(J.tagName==="INPUT"&&!Za.isButton.call(void 0,J)||J.tagName==="TEXTAREA"||J.isContentEditable)&&(w.preventDefault(),queueMicrotask(()=>j.focus()))}}),oe=r.onClick,N=va.useEvent.call(void 0,w=>{oe==null||oe(w),!w.defaultPrevented&&Qa.isSelfTarget.call(void 0,w)&&!w.detail&&v(!0)});return r=xo.__spreadProps.call(void 0,xo.__spreadValues.call(void 0,{"data-composite-container":""},r),{ref:va.useMergeRefs.call(void 0,y,r.ref),onFocus:C,onBlur:Z,onKeyDown:B,onClick:N}),Dm.removeUndefinedValues.call(void 0,r)}),Mm=zo.forwardRef.call(void 0,function(a){const l=_s(a);return zo.createElement.call(void 0,Um,l)});vl.useCompositeContainer=_s;vl.CompositeContainer=Mm;var Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});var Am=mu,Bm=fn,tl=xt,dr=Ht,Nm="button",ws=tl.createHook.call(void 0,function(a){var l=a,{store:o}=l,r=dr.__objRest.call(void 0,l,["store"]);const u=Bm.useToolbarContext.call(void 0);return o=o||u,r=Am.useCompositeItem.call(void 0,dr.__spreadValues.call(void 0,{store:o},r)),r}),Vm=tl.memo.call(void 0,tl.forwardRef.call(void 0,function(a){const l=ws(a);return tl.createElement.call(void 0,Nm,l)}));Gt.useToolbarItem=ws;Gt.ToolbarItem=Vm;Object.defineProperty(hl,"__esModule",{value:!0});var Hm=vl,Wm=Gt,Gm=fn,al=xt,So=Ht,Zm="div",Fs=al.createHook.call(void 0,function(a){var l=a,{store:o}=l,r=So.__objRest.call(void 0,l,["store"]);const u=Gm.useToolbarContext.call(void 0);return o=o||u,r=Hm.useCompositeContainer.call(void 0,So.__spreadValues.call(void 0,{store:o},r)),r=Wm.useToolbarItem.call(void 0,So.__spreadValues.call(void 0,{store:o},r)),r}),Qm=al.memo.call(void 0,al.forwardRef.call(void 0,function(a){const l=Fs(a);return al.createElement.call(void 0,Zm,l)}));hl.ToolbarContainer=Qm;hl.useToolbarContainer=Fs;var kl={};Object.defineProperty(kl,"__esModule",{value:!0});var Ym=Gt,Xm=fn,ll=xt,cr=Ht,Jm="input",Ps=ll.createHook.call(void 0,function(a){var l=a,{store:o}=l,r=cr.__objRest.call(void 0,l,["store"]);const u=Xm.useToolbarContext.call(void 0);return o=o||u,r=Ym.useToolbarItem.call(void 0,cr.__spreadValues.call(void 0,{store:o},r)),r}),qm=ll.memo.call(void 0,ll.forwardRef.call(void 0,function(a){const l=Ps(a);return ll.createElement.call(void 0,Jm,l)}));kl.ToolbarInput=qm;kl.useToolbarInput=Ps;var xl={};
432Object.defineProperty(xl,"__esModule",{value:!0});var Es=Gt;xl.ToolbarItem=Es.ToolbarItem;xl.useToolbarItem=Es.useToolbarItem;var bl={};Object.defineProperty(bl,"__esModule",{value:!0});var ep=pu,np=fn,$o=xt,ur=Ht,tp="hr",js=$o.createHook.call(void 0,function(a){var l=a,{store:o}=l,r=ur.__objRest.call(void 0,l,["store"]);const u=np.useToolbarContext.call(void 0);return o=o||u,r=ep.useCompositeSeparator.call(void 0,ur.__spreadValues.call(void 0,{store:o},r)),r}),ap=$o.forwardRef.call(void 0,function(a){const l=js(a);return $o.createElement.call(void 0,tp,l)});bl.ToolbarSeparator=ap;bl.useToolbarSeparator=js;Object.defineProperty(Un,"__esModule",{value:!0});var lp=fl,op=bt,ip=yl,rp=Qo,sp=hl,dp=kl,cp=xl,up=bl;Un.useToolbarStore=lp.useToolbarStore;Un.useToolbarContext=op.useToolbarContext;Un.Toolbar=ip.Toolbar;Un.ToolbarProvider=rp.ToolbarProvider;Un.ToolbarContainer=sp.ToolbarContainer;Un.ToolbarInput=dp.ToolbarInput;Un.ToolbarItem=cp.ToolbarItem;Un.ToolbarSeparator=up.ToolbarSeparator;Object.defineProperty(Dn,"__esModule",{value:!0});var at=Un;Dn.Toolbar=at.Toolbar;Dn.ToolbarContainer=at.ToolbarContainer;Dn.ToolbarInput=at.ToolbarInput;Dn.ToolbarItem=at.ToolbarItem;Dn.ToolbarProvider=at.ToolbarProvider;Dn.ToolbarSeparator=at.ToolbarSeparator;Dn.useToolbarContext=at.useToolbarContext;Dn.useToolbarStore=at.useToolbarStore;var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.TriangleUpBarIcon=void 0;const mr=m,mp=ce,pp=rl;Sl.TriangleUpBarIcon=(0,mp.forwardRef)((e,a)=>(0,mr.jsx)(pp.SvgIcon,Object.assign({ref:a},e,{children:(0,mr.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.38893 15.994C2.27544 15.7644 2.2298 15.5071 2.25823 15.2518C2.28664 14.9968 2.38763 14.7563 2.54775 14.5575M2.54775 14.5575L8.93582 6.62668C9.06446 6.46692 9.22748 6.33887 9.41166 6.25136C9.59584 6.16385 9.79711 6.1187 10.0005 6.1187C10.2039 6.1187 10.4052 6.16385 10.5894 6.25136C10.7736 6.3389 10.9365 6.46686 11.0652 6.62668L17.4521 14.5573C17.6122 14.7559 17.7132 14.9963 17.7417 15.2513C17.7702 15.5063 17.7248 15.7635 17.6116 15.993C17.4984 16.2223 17.3228 16.4137 17.1067 16.5467C16.8907 16.6797 16.6423 16.7497 16.3896 16.75L3.61263 16.75C3.3599 16.75 3.11096 16.6804 2.89474 16.5476C2.67831 16.4147 2.50234 16.2234 2.38893 15.994M10.0005 7.6961L3.91607 15.25L16.084 15.25L10.0005 7.6961ZM4.14976 4C4.14976 3.58579 4.48555 3.25 4.89976 3.25L15.1013 3.25C15.5155 3.25 15.8513 3.58579 15.8513 4C15.8513 4.41421 15.5155 4.75 15.1013 4.75L4.89976 4.75C4.48555 4.75 4.14976 4.41421 4.14976 4Z",fill:"currentColor"})})));var Il={};Object.defineProperty(Il,"__esModule",{value:!0});Il.TriangleDownBarIcon=void 0;const pr=m,gp=ce,fp=rl;Il.TriangleDownBarIcon=(0,gp.forwardRef)((e,a)=>(0,pr.jsx)(fp.SvgIcon,Object.assign({ref:a},e,{children:(0,pr.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.38893 4.006C2.27544 4.23558 2.2298 4.49294 2.25823 4.74815C2.28664 5.00322 2.38763 5.24374 2.54775 5.44247M2.54775 5.44247L8.93582 13.3733V13.3733C9.06446 13.5331 9.22748 13.6611 9.41166 13.7486C9.59584 13.8362 9.79711 13.8813 10.0005 13.8813C10.2039 13.8813 10.4052 13.8362 10.5894 13.7486C10.7736 13.6611 10.9365 13.5331 11.0652 13.3733L17.4521 5.4427C17.6122 5.24409 17.7132 5.00369 17.7417 4.74872C17.7702 4.49371 17.7248 4.23652 17.6116 4.00702C17.4984 3.77766 17.3228 3.58632 17.1067 3.45326C16.8907 3.32028 16.6423 3.25032 16.3896 3.25L3.61263 3.25V3.25C3.3599 3.24996 3.11096 3.31962 2.89474 3.45238C2.67831 3.58527 2.50234 3.77657 2.38893 4.006M10.0005 12.3039L3.91607 4.75L16.084 4.75L10.0005 12.3039ZM9.89687 12.4326V12.4326ZM3.61204 4.75V4.75ZM4.14976 16C4.14976 16.4142 4.48555 16.75 4.89976 16.75L15.1013 16.75C15.5155 16.75 15.8513 16.4142 15.8513 16C15.8513 15.5858 15.5155 15.25 15.1013 15.25L4.89976 15.25C4.48555 15.25 4.14976 15.5858 4.14976 16Z",fill:"currentColor"})})));var Ea={},Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.style=void 0;const Io="ui.component.timeline.separator";Tl.style={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:24,fontSize:1,lineHeight:1,color:`${Io}.text`,fontFamily:"default",userSelect:"none",backgroundColor:`${Io}.background`,paddingX:2,paddingY:1,borderWidth:"1px",borderStyle:"solid",borderColor:`${Io}.border`,borderRadius:"full","& > .shimmer":{display:"inline-block",width:20}};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.DatePill=void 0;const To=m,yp=an,hp=os,vp=Tl,kp=({children:e})=>(0,To.jsx)(yp.Box,{style:vp.style,children:e??(0,To.jsx)("div",{className:"shimmer",children:(0,To.jsx)(hp.Skeleton,{height:2,radius:1})})});Ea.DatePill=kp;var Cl={};
432Object.defineProperty(Cl,"__esModule",{value:!0});Cl.style=void 0;const xp=hu;Cl.style={position:"sticky",top:0,isolation:"isolate",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:6,backgroundColor:"ui.component.timeline.background","&::after":{content:'""',position:"absolute",left:0,right:0,top:"100%",height:4,pointerEvents:"none",zIndex:-1,background:({colors:e})=>(0,xp.linearGradient)("to bottom",e.ui.component.timeline.background,"transparent")},"& > .date":{marginLeft:12,transform:"translateX(-50%)"},"& > .actions":{display:"flex",gap:4,alignItems:"center"}};var _l={};Object.defineProperty(_l,"__esModule",{value:!0});_l.translationKey=void 0;_l.translationKey="ui:component.timeline.timelineToolbar";var Zt={},wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.style=void 0;wl.style={"& > .timezone-offset":{marginLeft:1,"&::before":{content:'"•" / ", "',marginRight:1}}};var bp=Sn&&Sn.__rest||function(e,a){var l={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(l[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)a.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(l[o[r]]=e[o[r]]);return l};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.RelativeDate=void 0;const Co=m,Sp=an,Ip=ru,Tp=wa,Cp=wl,_p=e=>{const{timestamp:a,timezone:l}=e,{locale:{code:o}}=(0,Tp.useLocale)(),r=wp(a,o,l);return(0,Co.jsxs)(Sp.Box,{as:"span",style:Cp.style,children:[(0,Co.jsx)(Ip.TimeAgo,{disabledTooltip:!0,timestamp:a}),r!==null&&(0,Co.jsx)("span",{className:"timezone-offset",children:r})]})};Zt.RelativeDate=_p;function wp(e,a,l){try{return Fp({locale:a,timeZone:l,timeZoneName:"shortOffset"}).formatToParts(e).find(r=>r.type==="timeZoneName").value}catch{return null}}function Fp(e){const{locale:a}=e,l=bp(e,["locale"]);return new Intl.DateTimeFormat(a,l)}Object.defineProperty(gl,"__esModule",{value:!0});gl.TimelineToolbar=void 0;const tn=m,ol=ce,Pp=pn,Ks=Dn,Ep=an,jp=Sl,Kp=Il,Op=yu,gr=Ea,Lp=vu,zp=rs,$p=Cl,Rp=kt,Dp=_l,_o=cl,Up=ss,wo=Wc,Mp=Zt;gl.TimelineToolbar=(0,ol.forwardRef)((e,a)=>{const l=e.status!=="idle",{t:o}=(0,Rp.useTranslation)(Dp.translationKey),r=(0,ol.useRef)(null),{onJumpToDate:u,disableScrollToNewest:y=!1,disableScrollToOldest:k=!1,datePickerStore:v}=e,I=Pp.LocalDateTime.now().getLocalDate(),g=(0,zp.usePopoverState)({externalStore:v}),S=g.useState("mounted"),C=(0,ol.useCallback)(A=>{u(A),g.hide()},[u,g]);return(0,tn.jsxs)(Ep.Box,{as:Ks.Toolbar,"aria-label":o("label"),ref:a,style:$p.style,children:[(0,tn.jsx)("div",{className:"date",children:e.timestamp!==void 0&&e.timezone!==void 0?(0,tn.jsx)(_o.Tooltip,{content:(0,tn.jsx)(Mp.RelativeDate,{timestamp:e.timestamp,timezone:e.timezone}),anchorProps:{tabIndex:-1},children:(0,tn.jsx)("div",{children:(0,tn.jsx)(gr.DatePill,{children:e.date})})}):(0,tn.jsx)(gr.DatePill,{children:e.date})}),(0,tn.jsxs)("div",{className:"actions",children:[(0,tn.jsx)(_o.Tooltip,{content:y?o("action.scrollToNewest.tooltip"):void 0,children:(0,tn.jsx)(Fo,{accessibleWhenDisabled:!0,size:"md",onClick:e.onScrollToNewest,disabled:y||l,"aria-label":o("action.scrollToNewest.label"),icon:e.status==="jumping_to_newest"?wo.LoadingIndicator:jp.TriangleUpBarIcon})}),(0,tn.jsx)(_o.Tooltip,{content:k?o("action.scrollToOldest.tooltip"):void 0,children:(0,tn.jsx)(Fo,{accessibleWhenDisabled:!0,size:"md",onClick:e.onScrollToOldest,disabled:k||l,"aria-label":o("action.scrollToOldest.label"),icon:e.status==="jumping_to_oldest"?wo.LoadingIndicator:Kp.TriangleDownBarIcon})}),(0,tn.jsx)(Fo,{accessibleWhenDisabled:!0,ref:r,size:"md",onClick:g.toggle,disabled:l,"aria-label":o("action.jumpToDate.label"),icon:e.status==="jumping_to_date"?wo.LoadingIndicator:Op.CalendarIcon}),S&&(0,tn.jsx)(Lp.DatePicker,{mode:"single",state:g,anchorRef:r,maxDate:I,onConfirm:C})]})]})});const Fo=(0,ol.forwardRef)((e,a)=>(0,tn.jsx)(Ks.ToolbarItem,{ref:a,render:l=>(0,tn.jsx)(Up.AddonButton,Object.assign({},l,e))}));var Fl={},St={},ja={},Yo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TrackLayoutContext=void 0,e.useTrackLayout=l;const a=ce;e.TrackLayoutContext=(0,a.createContext)(null);function l(){const o=(0,a.useContext)(e.TrackLayoutContext);if(o===null)throw new Error("useTrackLayout must be used within a TrackLayoutProvider");return o}})(Yo);var tt={};
432Object.defineProperty(tt,"__esModule",{value:!0});tt.solidBackgroundStyle=tt.solidForegroundStyle=tt.dashedLineStyle=void 0;const Xo="ui.component.timeline";tt.dashedLineStyle={stroke:`${Xo}.trackLine`,strokeWidth:2};tt.solidForegroundStyle={stroke:`${Xo}.trackLine`,strokeWidth:1};tt.solidBackgroundStyle={stroke:`${Xo}.background`,strokeWidth:3};Object.defineProperty(ja,"__esModule",{value:!0});ja.Track=void 0;const Cn=m,Ya=ce,ct=an,Ap=Yo,ut=tt,Bp=({segments:e})=>{const{trackCenter:a,dotOffsetY:l,dashOffset:o,height:r}=(0,Ap.useTrackLayout)();return(0,Cn.jsx)(Ya.Fragment,{children:e.map((u,y)=>{const k=a(u.track);let v;u.extent==="bottom"?v=l:u.dashed===!0?v=-1:v=0;let I;if(u.extent==="top"?I=l:u.dashed===!0?I=r+1:I="100%",u.dashed===!0){const S=u.from!==void 0?a(u.from):k;if(S!==k){const C=`M ${S} 0 C ${S} ${l*.3}, ${k} ${l*.7}, ${k} ${l}`;return(0,Cn.jsxs)(Ya.Fragment,{children:[(0,Cn.jsx)(ct.Box,{as:"path",d:C,pathLength:l,fill:"none",strokeDasharray:"0 5",strokeDashoffset:o,strokeLinecap:"round",style:ut.dashedLineStyle}),u.extent!=="top"&&(0,Cn.jsx)(ct.Box,{as:"line",x1:k,y1:l,x2:k,y2:r+1,strokeDasharray:"0 5",strokeDashoffset:o,strokeLinecap:"round",style:ut.dashedLineStyle})]},y)}return(0,Cn.jsx)(ct.Box,{as:"line",x1:k,y1:v,x2:k,y2:I,strokeDasharray:"0 5",strokeDashoffset:o,strokeLinecap:"round",style:ut.dashedLineStyle},y)}const g=u.from!==void 0?a(u.from):k;if(g!==k){const S=`M ${g} 0 C ${g} ${l*.3}, ${k} ${l*.7}, ${k} ${l}`;return(0,Cn.jsxs)(Ya.Fragment,{children:[(0,Cn.jsx)(ct.Box,{as:"path",d:S,fill:"none",style:ut.solidBackgroundStyle}),(0,Cn.jsx)(ct.Box,{as:"path",d:S,fill:"none",style:ut.solidForegroundStyle})]},y)}return(0,Cn.jsxs)(Ya.Fragment,{children:[(0,Cn.jsx)(ct.Box,{as:"line",x1:k,y1:v,x2:k,y2:I,style:ut.solidBackgroundStyle}),(0,Cn.jsx)(ct.Box,{as:"line",x1:k,y1:v,x2:k,y2:I,style:ut.solidForegroundStyle})]},y)})})};ja.Track=Bp;var Ka={},Pl={},El={};Object.defineProperty(El,"__esModule",{value:!0});El.style=void 0;const Np=Gc,Po=il,Vp="ui.component.timeline",Hp=(0,Np.keyframes)({"0%":{transform:"scale(1)",opacity:0},"10%":{opacity:.5},"100%":{transform:"scale(2.2)",opacity:0}
432});El.style={width:3,height:3,borderRadius:"full",backgroundColor:`${Vp}.background`,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:e=>`0 0 0 2px ${e.colors.ui.component.timeline.background}`,"& > .fill":{width:2,height:2,borderRadius:"full",backgroundColor:"var(--dot-background-hover, var(--dot-background))",transitionProperty:"background-color",transitionDuration:Po.transition.duration[150],transitionTimingFunction:Po.transition.func.easeInOut},"&.current":{position:"relative",color:"var(--dot-pulse)","&::after":{content:'""',position:"absolute",inset:0,borderRadius:"full",border:"1.5px solid currentColor",animationName:`${Hp}`,animationDuration:"2s",animationTimingFunction:Po.transition.func.easeInOut,animationIterationCount:"infinite"}},"&.lovelace":{"--dot-background":({colors:e})=>e.ui.component.timeline.dot.session.lovelace.fill,"&.current":{"--dot-pulse":({colors:e})=>e.ui.component.timeline.dot.session.lovelace.pulse}},"&.fibonacci":{"--dot-background":({colors:e})=>e.ui.component.timeline.dot.session.fibonacci.fill,"&.current":{"--dot-pulse":({colors:e})=>e.ui.component.timeline.dot.session.fibonacci.pulse}},"&.noether":{"--dot-background":({colors:e})=>e.ui.component.timeline.dot.session.noether.fill,"&.current":{"--dot-pulse":({colors:e})=>e.ui.component.timeline.dot.session.noether.pulse}},"&.hypatia":{"--dot-background":({colors:e})=>e.ui.component.timeline.dot.session.hypatia.fill,"&.current":{"--dot-pulse":({colors:e})=>e.ui.component.timeline.dot.session.hypatia.pulse}},"&.pythagoras":{"--dot-background":({colors:e})=>e.ui.component.timeline.dot.session.pythagoras.fill,"&.current":{"--dot-pulse":({colors:e})=>e.ui.component.timeline.dot.session.pythagoras.pulse}},"&.germain":{"--dot-background":({colors:e})=>e.ui.component.timeline.dot.session.germain.fill,"&.current":{"--dot-pulse":({colors:e})=>e.ui.component.timeline.dot.session.germain.pulse}},"&.bhaskara":{"--dot-background":({colors:e})=>e.ui.component.timeline.dot.session.bhaskara.fill,"&.current":{"--dot-pulse":({colors:e})=>e.ui.component.timeline.dot.session.bhaskara.pulse}},"&.last":{"--dot-background":({colors:e})=>e.ui.component.timeline.trackLine},"&.loading":{"--dot-background":({colors:e})=>e.ui.component.timeline.trackLine}};var Wp=Sn&&Sn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pl,"__esModule",{value:!0});Pl.TimelineDot=void 0;const fr=m,Gp=Wp(Yr),Zp=an,Qp=El,Yp=({variant:e,color:a})=>(0,fr.jsx)(Zp.Box,{style:Qp.style,className:(0,Gp.default)(e,a),children:(0,fr.jsx)("div",{className:"fill"})});Pl.TimelineDot=Yp;var At={};Object.defineProperty(At,"__esModule",{value:!0});At.computeDotAnchorStyle=At.style=void 0;const $t=il,Xp=Zr,qn=sl,yr="ui.component.timeline";At.style={position:"relative",paddingTop:(0,qn.responsive)({_:0,md:3}),paddingBottom:(0,qn.responsive)({_:0,md:3}),paddingLeft:(0,qn.responsive)({_:0,md:9}),paddingRight:0,"&.empty":{paddingTop:0,paddingBottom:0},"& > .rail":{position:"absolute",top:0,bottom:0,left:(0,qn.responsive)({_:3,md:9}),width:"var(--tracks-width)",transition:`width ${$t.transition.duration[300]} ${$t.transition.func.easeInOut}`,"& > .lines":{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",overflow:"hidden",clipPath:"inset(-1px 0px)"}},"&:has(.body:hover)":{"&.noether":{"--dot-background-hover":({colors:e})=>e.ui.component.timeline.dot.session.noether.fillHover},"&.pythagoras":{"--dot-background-hover":({colors:e})=>e.ui.component.timeline.dot.session.pythagoras.fillHover},"&.lovelace":{"--dot-background-hover":({colors:e})=>e.ui.component.timeline.dot.session.lovelace.fillHover},"&.germain":{"--dot-background-hover":({colors:e})=>e.ui.component.timeline.dot.session.germain.fillHover},"&.fibonacci":{"--dot-background-hover":({colors:e})=>e.ui.component.timeline.dot.session.fibonacci.fillHover},"&.hypatia":{"--dot-background-hover":({colors:e})=>e.ui.component.timeline.dot.session.hypatia.fillHover},"&.bhaskara":{"--dot-background-hover":({colors:e})=>e.ui.component.timeline.dot.session.bhaskara.fillHover}},"& > .body":{maxWidth:"fill-available",background:"none",border:"none",display:"block",textAlign:"left",position:"relative",marginLeft:"var(--tracks-width)",minWidth:0,width:({sizes:e})=>`calc(100% - ${e[14]})`,padding:(0,qn.responsive)({_:4,md:3}),paddingX:(0,qn.responsive)({_:"1px",md:3}),overflow:"hidden",borderRadius:5,"&.empty":{padding:0,"&.badge":{height:(0,qn.responsive)({_:12,md:"initial"})}},"&.clickable":{cursor:"pointer",outlineColor:"transparent",outlineWidth:"2px",outlineStyle:"solid",transitionProperty:"outline-color, background-color",transitionDuration:`${$t.transition.duration[100]}, ${$t.transition.duration[150]}`,transitionTimingFunction:`${$t.transition.func.linear}, ${$t.transition.func.easeInOut}`,"&[data-focus-visible]":(0,Xp.ring)("emphasized"),"&.highlighted":{backgroundColor:`${yr}.content.backgroundHighlight`},"&:hover":{backgroundColor:(0,qn.responsive)({_:"none",md:`${yr}.content.backgroundHighlight`}),".link":{opacity:1}}}}};const Jp=(e,a)=>({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",transform:"translate(-50%, -50%)",left:`${e}px`,top:`${a}px`});At.computeDotAnchorStyle=Jp;
432var qp=Sn&&Sn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.TimelineRow=void 0;const Ln=m,vt=ce,hr=qp(Yr),eg=ku,ng=ts,vr=an,tg=Yo,ag=Pl,kr=At,Ro=20,lg=e=>{var a,l;const o=(a=e.trackCount)!==null&&a!==void 0?a:1,r=(l=e.trackIndex)!==null&&l!==void 0?l:0,u=o*Ro+16,y=xr(r),k=(0,vt.useRef)(null),v=(0,vt.useRef)(null),[I,g]=(0,vt.useState)(null);(0,vt.useLayoutEffect)(()=>{const B=v.current,oe=k.current;if(B===null||oe===null)return;const N=oe.parentElement,w=N.getBoundingClientRect(),j=B.firstElementChild;let J;if(j!==null){const Q=j.getBoundingClientRect(),O=parseFloat(getComputedStyle(j).fontSize);J=Q.top-w.top+O/2}else J=N.offsetHeight/2;g({dotCenterY:J,height:w.height,dashOffset:-((5-ig(oe)%5)%5)})},[]);const S=(0,vt.useMemo)(()=>{var B,oe,N;return{trackCenter:xr,dotOffsetY:(B=I==null?void 0:I.dotCenterY)!==null&&B!==void 0?B:0,dashOffset:(oe=I==null?void 0:I.dashOffset)!==null&&oe!==void 0?oe:0,height:(N=I==null?void 0:I.height)!==null&&N!==void 0?N:0}},[I]),C=e.children==null&&e.dot===void 0&&e.badge===void 0,A=(0,hr.default)(e.color,{empty:C}),Z=e.onClick!==void 0,M=(0,hr.default)("body",{empty:e.children==null,badge:e.badge!==void 0,clickable:Z,highlighted:e.highlighted===!0&&Z});return(0,Ln.jsx)(tg.TrackLayoutContext.Provider,{value:S,children:(0,Ln.jsxs)(vr.Box,{className:A,style:Object.assign(Object.assign({},kr.style),{"--tracks-width":`${u}px`}),children:[(0,Ln.jsxs)("div",{ref:k,className:"rail",children:[e.track!==void 0&&I!==null&&(0,Ln.jsx)("svg",{className:"lines",children:e.track}),e.dot!==void 0&&I!==null&&(0,Ln.jsx)(vr.Box,{style:(0,kr.computeDotAnchorStyle)(y,I.dotCenterY),children:(0,Ln.jsx)(ag.TimelineDot,{variant:e.dot,color:e.color})})]}),(0,Ln.jsx)(og,{ref:v,onClick:e.onClick,className:M,children:e.children}),e.badge]})})};Ka.TimelineRow=lg;const og=(0,vt.forwardRef)((e,a)=>{const l=e.onClick!==void 0,o=(0,vt.useCallback)(r=>{r.currentTarget.scrollIntoView({block:"center",behavior:"smooth"})},[]);return l?(0,Ln.jsx)(ng.CompositeItem,{tabbable:!0,render:r=>(0,Ln.jsx)("div",Object.assign({},r)),role:"presentation",className:e.className,focusable:l,onClick:e.onClick,onFocusVisible:o,ref:a,children:e.children}):(0,Ln.jsx)(eg.Focusable,{role:"presentation",className:e.className,focusable:l,onClick:e.onClick,onFocusVisible:o,ref:a,children:e.children})});function ig(e){let a=0,l=e;for(;l!==null;)a+=l.offsetTop,l=l.offsetParent;return a}function xr(e){return e*Ro+Ro/2}var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});Oa.TimelineBoundaryContext=void 0;const rg=ce;Oa.TimelineBoundaryContext=(0,rg.createContext)({trackCount:1,segments:[{track:0,dashed:!0}]});Object.defineProperty(St,"__esModule",{value:!0});St.TimelineExtraRow=void 0;const br=m,Sr=ce,sg=ja,dg=Ka,cg=Oa,ug=e=>{const a=(0,Sr.useContext)(cg.TimelineBoundaryContext),l=(0,Sr.useMemo)(()=>e.dot==="last"?a.segments.map(o=>Object.assign(Object.assign({},o),{extent:"top"})):a.segments,[a.segments,e.dot]);return(0,br.jsx)(dg.TimelineRow,{trackCount:a.trackCount,color:e.color,dot:e.dot,track:l.length>0?(0,br.jsx)(sg.Track,{segments:l}):void 0,children:e.children})};St.TimelineExtraRow=ug;var jl={};Object.defineProperty(jl,"__esModule",{value:!0});jl.style=void 0;jl.style={"& > .time":{display:"block",fontSize:1,paddingBottom:2}};Object.defineProperty(Fl,"__esModule",{value:!0});Fl.SkeletonRows=void 0;const et=m,mg=ce,pg=an,Eo=os,gg=St,fg=jl;Fl.SkeletonRows=(0,mg.forwardRef)(({count:e},a)=>(0,et.jsx)("div",{ref:a,children:Array.from({length:e},(l,o)=>(0,et.jsx)(gg.TimelineExtraRow,{dot:"loading",children:(0,et.jsxs)(pg.Box,{style:fg.style,children:[(0,et.jsx)("div",{className:"time",children:(0,et.jsx)(Eo.Skeleton,{width:18,height:4,radius:2})}),(0,et.jsxs)("div",{className:"body",children:[(0,et.jsx)(Eo.Skeleton,{width:40,height:6,radius:2}),(0,et.jsx)(Eo.Skeleton,{width:72,height:5,radius:2,spacingTop:2})]})]})},o))}));var Jo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TimelineItemContext=void 0,e.useTimelineItemState=l;const a=ce;e.TimelineItemContext=(0,a.createContext)(null);function l(){const o=(0,a.useContext)(e.TimelineItemContext);if(o===null)throw new Error("useTimelineItemState must be used within a TimelineItemContext.Provider");return o}})(Jo);var qo={},Kl={};
432Object.defineProperty(Kl,"__esModule",{value:!0});Kl.daySeparatorLabelStyle=void 0;Kl.daySeparatorLabelStyle={position:"absolute",top:"50%",transform:"translate(-50%, -50%)",left:0,marginLeft:12};Object.defineProperty(qo,"__esModule",{value:!0});qo.TimelineItem=Ig;const xn=m,Ca=ce,yg=an,Ir=Ka,Tr=ja,Cr=Ea,hg=Jo,vg=wa,kg=dl,xg=Kl,bg=cl,Sg=Zt;function Ig(e){var a;const{event:l}=e,o=(0,hg.useTimelineItemState)(),{locale:{code:r}}=(0,vg.useLocale)(),u=l===o.firstRow,y=l===o.lastRow,k=u&&o.isAtEnd&&!o.hasHeader&&!o.hasHeaderSegments,v=y&&o.isAtStart&&!o.hasFooter,I=l.nextEvent,g=(a=I==null?void 0:I.isDateBoundary)!==null&&a!==void 0?a:!1,S=(0,Ca.useMemo)(()=>{if(!(!g||I===void 0))return{timezone:I.timezone,timestamp:I.timestamp}},[g,I]),C=(0,Ca.useMemo)(()=>{if(S!==void 0)return(0,kg.formatTime)(S.timestamp,{locale:r,timeZone:S.timezone,month:"short",day:"numeric",year:"numeric"})},[S,r]),A=S!==void 0?o.registerBoundary(S.timestamp,S.timezone):void 0,Z=o.onEventClick!==void 0?()=>o.onEventClick(l):void 0,M=o.renderEvent(l),B=M.length>1,oe=g?l.activeSessions.map(N=>l.trackPositions.get(N)).filter(N=>N!==void 0).map(N=>({track:N,dashed:N!==l.trackIndex})):void 0;return(0,xn.jsxs)(Ca.Fragment,{children:[M.map((N,w)=>{const j=Tg(N),J=j?N:N.content,Q=w===0,O=w===M.length-1,ne=B&&!Q,me=B&&!O,ke=`${l.id}-${w}`,se=_g(l,o.intervals,{subRowAbove:ne,subRowBelow:me,isTopBoundary:Q&&k,isBottomBoundary:O&&v});return(0,xn.jsx)(Ir.TimelineRow,{trackCount:l.trackCount,trackIndex:l.trackIndex,color:l.color,track:(0,xn.jsx)(Tr.Track,{segments:se}),onClick:Z,dot:j?"past":N.variant,highlighted:j?void 0:N.highlighted,children:J},ke)}),oe!==void 0&&(0,xn.jsx)(Ir.TimelineRow,{trackCount:l.trackCount,track:(0,xn.jsx)(Tr.Track,{segments:oe}),badge:(0,xn.jsx)(Cg,Object.assign({boundaryRef:A},I!==void 0&&{timestamp:I.timestamp,timezone:I.timezone},{children:C})),children:null})]})}function Tg(e){return!("content"in e)}function Cg(e){const{children:a,timestamp:l,timezone:o,boundaryRef:r}=e,u=(0,Ca.useRef)(null);return(0,Ca.useEffect)(()=>{const y=u.current;if(!(y===null||r===void 0))return r(y)},[r]),(0,xn.jsx)(yg.Box,{as:"span",ref:u,style:xg.daySeparatorLabelStyle,children:l!==void 0&&o!==void 0?(0,xn.jsx)(bg.Tooltip,{content:(0,xn.jsx)(Sg.RelativeDate,{timestamp:l,timezone:o}),anchorProps:{tabIndex:-1},children:(0,xn.jsx)("div",{children:(0,xn.jsx)(Cr.DatePill,{children:a})})}):(0,xn.jsx)(Cr.DatePill,{children:a})})}function _g(e,a,l){var o,r;const u=[];for(const y of Array.from(a.keys())){const k=e.trackPositions.get(y);if(k===void 0||!e.activeSessions.includes(y))continue;const v=(o=e.previousTrackPositions)===null||o===void 0?void 0:o.get(y),I=!l.subRowAbove&&v!==void 0&&v!==k?v:void 0,g=l.subRowAbove||(e.previousEvent!==void 0?e.previousEvent.activeSessions.includes(y):!l.isTopBoundary),S=l.subRowBelow||(e.nextEvent!==void 0?e.nextEvent.activeSessions.includes(y):!l.isBottomBoundary);let C="full";g&&!S?C="top":!g&&S&&(C="bottom"),u.push({track:k,dashed:!0,from:I,extent:C})}if((l.subRowBelow||e.nextEvent!==void 0||!l.isBottomBoundary)&&u.push({track:e.trackIndex,extent:"bottom"}),l.subRowAbove)u.push({track:e.trackIndex,extent:"top"});else if(e.previousEvent!==void 0){const y=e.previousEvent.sessionIndex,k=(r=e.previousTrackPositions)===null||r===void 0?void 0:r.get(y),v=k!==void 0&&k!==e.trackIndex?k:void 0;u.push({track:e.trackIndex,extent:"top",from:v})}return u}var ei={};Object.defineProperty(ei,"__esModule",{value:!0});ei.useDateBoundary=wg;const mt=ce;function wg(e){var a,l;const[o,r]=(0,mt.useState)(null),u=(0,mt.useRef)(new Map),y=(0,mt.useRef)(0),k=(0,mt.useCallback)(()=>{const g=e.current;if(g===null)return;const S=g.getBoundingClientRect().bottom;let C=null,A=-1/0;for(const[Z,M]of u.current){if(!Z.isConnected){u.current.delete(Z);continue}const{top:B}=Z.getBoundingClientRect(),oe=B<=S,N=B>A;oe&&N&&(A=B,C=M)}r(C)},[e]),v=(0,mt.useCallback)(()=>{cancelAnimationFrame(y.current),y.current=requestAnimationFrame(k)},[k]);return(0,mt.useEffect)(()=>(window.addEventListener("scroll",v,{passive:!0}),k(),()=>{window.removeEventListener("scroll",v),cancelAnimationFrame(y.current)}),[v,k]),{register:(0,mt.useCallback)((g,S)=>C=>(u.current.set(C,{timestamp:g,timezone:S}
432),v(),()=>{u.current.delete(C),v()}),[v]),timestamp:(a=o==null?void 0:o.timestamp)!==null&&a!==void 0?a:null,timezone:(l=o==null?void 0:o.timezone)!==null&&l!==void 0?l:null}}var ni={};Object.defineProperty(ni,"__esModule",{value:!0});ni.useTimelineBoundaries=Fg;const jo=ce;function Fg(e){const a=(0,jo.useMemo)(()=>{if(e.length===0)return{trackCount:1,segments:[]};const r=e[0],y=r.activeSessions.filter(k=>!(r.isSessionEnd&&k===r.sessionIndex)).map(k=>r.trackPositions.get(k)).filter(k=>k!==void 0).map(k=>({track:k,dashed:!0}));return{trackCount:r.trackCount,segments:y}},[e]),l=(0,jo.useMemo)(()=>{if(e.length===0)return{trackCount:1,segments:[{track:0,dashed:!0}]};const r=e[0],u=r.activeSessions.map(y=>r.trackPositions.get(y)).filter(y=>y!==void 0).map(y=>({track:y,dashed:!0}));return u.length===0?{trackCount:r.trackCount,segments:[{track:r.trackIndex,dashed:!0}]}:{trackCount:r.trackCount,segments:u}},[e]),o=(0,jo.useMemo)(()=>{if(e.length===0)return{trackCount:1,segments:[]};const r=e[e.length-1],u=r.activeSessions.map(y=>r.trackPositions.get(y)).filter(y=>y!==void 0).map(y=>({track:y,dashed:y!==r.trackIndex}));return{trackCount:r.trackCount,segments:u}},[e]);return{headerBoundary:a,topSkeletonBoundary:l,footerBoundary:o}}var ti={},ai={};Object.defineProperty(ai,"__esModule",{value:!0});ai.smoothScroll=Eg;const Pg=400;function Eg(e){const{virtuoso:a,scroller:l,target:o,itemCount:r}=e,u=_r(l);o==="top"?a.scrollToIndex({index:0,align:"start",offset:-99999}):a.scrollToIndex({index:r-1,align:"end"});const y=_r(l);if(Math.abs(y-u)<1)return;wr(l,u);const k=performance.now();function v(){const I=performance.now()-k,g=Math.min(I/Pg,1),S=1-Math.pow(1-g,3),C=u+(y-u)*S;wr(l,C),g<1?requestAnimationFrame(v):o==="top"?a.scrollToIndex({index:0,align:"start",offset:-99999}):a.scrollToIndex({index:r-1,align:"end"})}requestAnimationFrame(v)}function _r(e){return e instanceof Window?e.scrollY:e.scrollTop}function wr(e,a){e.scrollTo({top:a})}Object.defineProperty(ti,"__esModule",{value:!0});ti.useTimelineScrollState=jg;const _n=ce,Fr=ai;function jg(e){const{loader:a,isAtEnd:l,isAtStart:o,rowCount:r,virtuosoReference:u}=e,{hasNewer:y,hasOlder:k,status:v,onLoadNewer:I,onJumpToNewest:g,onJumpToOldest:S,onJumpToDate:C}=a,A=v==="jumping_to_newest"||v==="jumping_to_oldest"||v==="jumping_to_date",[Z,M]=(0,_n.useState)(!0),[B,oe]=(0,_n.useState)(!1),[N,w]=(0,_n.useState)(!1),[j,J]=(0,_n.useState)(!1);y&&Z&&!j&&!A&&J(!0);const Q=(0,_n.useRef)(null),O=(0,_n.useCallback)(x=>{Q.current=x},[]),ne=!(Z&&!y),me=!(B&&!k),ke=(0,_n.useCallback)(()=>{if(l&&u.current!==null&&Q.current!==null){(0,Fr.smoothScroll)({virtuoso:u.current,scroller:Q.current,target:"top",itemCount:r});return}J(!1),M(!0),oe(!1),g()},[l,r,g,u]),se=(0,_n.useCallback)(()=>{if(o&&u.current!==null&&Q.current!==null){(0,Fr.smoothScroll)({virtuoso:u.current,scroller:Q.current,target:"bottom",itemCount:r});return}J(!1),M(!1),oe(!0),w(!0),S()},[o,r,S,u]),Y=(0,_n.useCallback)(x=>{J(!1),M(!1),oe(!1),C(x)},[C]),V=(0,_n.useCallback)(()=>{if(!y){J(!1);return}J(!0),I()},[y,I]),be=(0,_n.useCallback)(x=>{oe(x),x||w(!1)},[]);return{headerVisible:j,canScrollToNewest:ne,canScrollToOldest:me,alignToBottom:N,scrollToNewest:ke,scrollToOldest:se,jumpToDate:Y,startReached:V,scrollerRef:O,atTopStateChange:M,atBottomStateChange:be}}var li={};Object.defineProperty(li,"__esModule",{value:!0});li.useTimelineLoader=Kg;const qe=ce,ka=1e4;function Kg(e){var a,l,o,r,u,y;const[k,v]=(0,qe.useState)((l=(a=e.initialPage)===null||a===void 0?void 0:a.events)!==null&&l!==void 0?l:[]),[I,g]=(0,qe.useState)((r=(o=e.initialPage)===null||o===void 0?void 0:o.hasNewer)!==null&&r!==void 0?r:!1),[S,C]=(0,qe.useState)((y=(u=e.initialPage)===null||u===void 0?void 0:u.hasOlder)!==null&&y!==void 0?y:!0),[A,Z]=(0,qe.useState)(e.initialPage!==void 0?"idle":"loading_older"),[M,B]=(0,qe.useState)(ka),[oe,N]=(0,qe.useState)(()=>{if(e.initialPage!==void 0){const x=e.initialPage;if(x.anchorIndex!==void 0)return x.anchorIndex-1}return 0}),w=(0,qe.useRef)(A);w.current=A;const j=(0,qe.useRef)(I);j.current=I;const J=(0,qe.useRef)(S);J.current=S;const Q=(0,qe.useRef)(e);Q.current=e;const O=(0,qe.useRef)(!1),{initialPage:ne,onLoadOlder:me}=e;(0,qe.useEffect)(()=>{O.current||(O.current=!0,ne===void 0&&me().then(x=>{v(x.events),C(x.hasOlder),J.current=x.hasOlder,x.hasNewer===!0&&(g(!0),j.current=!0),x.anchorIndex!==void 0&&N(x.anchorIndex-1),Z("idle"),w.current="idle"}))},[ne,me]);const ke=(0,qe.useCallback)(()=>{w.current==="idle"&&J.current&&(w.current="loading_older",Z("loading_older"),Q.current.onLoadOlder().then(x=>{v(he=>[...he,...x.events]),C(x.hasOlder),J.current=x.hasOlder,Z("idle"),w.current="idle"}))},[]),se=(0,qe.useCallback)(()=>{w.current==="idle"&&j.current&&(w.current="loading_newer",Z("loading_newer"),Q.current.onLoadNewer().then(x=>{var he;const Ke=x.events.length,Oe=(he=x.hasNewer)!==null&&he!==void 0?he:!1;B(ee=>ee-Ke),v(ee=>[...x.events,...ee]),g(Oe),j.current=Oe,Z("idle"),w.current="idle"}))},[]),Y=(0,qe.useCallback)(()=>{w.current==="idle"&&(w.current="jumping_to_newest",Z("jumping_to_newest"),Q.current.onJumpToNewest().then(x=>{B(ka),N(-1),v(x.events),g(!1),j.current=!1,C(x.hasOlder),J.current=x.hasOlder,Z("idle"),w.current="idle"}))},[]),V=(0,qe.useCallback)(()=>{w.current==="idle"&&(w.current="jumping_to_oldest",Z("jumping_to_oldest"),Q.current.onJumpToOldest().then(x=>{var he;const Ke=(he=x.hasNewer)!==null&&he!==void 0?he:!1;B(ka),N(ka+x.events.length-1),v(x.events),C(!1),J.current=!1,g(Ke),j.current=Ke,Z("idle"),w.current="idle"}))},[]),be=(0,qe.useCallback)(x=>{w.current==="idle"&&(w.current="jumping_to_date",Z("jumping_to_date"),Q.current.onJumpToDate(x).then(he=>{var Ke;const Oe=(Ke=he.hasNewer)!==null&&Ke!==void 0?Ke:!1;B(ka);const ee=he.anchorIndex!==void 0?he.anchorIndex-1:0;N(ee),v(he.events),g(Oe),j.current=Oe,C(he.hasOlder),J.current=he.hasOlder,Z("idle"),w.current="idle"}))},[]);
432return{events:k,status:A,hasNewer:I,hasOlder:S,initialTopMostItemIndex:oe,firstIndex:M,onLoadNewer:se,onLoadOlder:ke,onJumpToNewest:Y,onJumpToOldest:V,onJumpToDate:be}}var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.headerStyle=Rn.contentStyle=Rn.listStyle=Rn.rootStyle=void 0;const Og=sl;Rn.rootStyle={display:"flex",flexDirection:"column",flex:1,backgroundColor:"ui.component.timeline.background",fontFamily:"default",isolation:"isolate","& :where(h1, h2, h3, h4, h5, h6, p)":{margin:0}};const Os={position:"relative",zIndex:-1};Rn.listStyle=Object.assign(Object.assign({},Os),{paddingBottom:12});Rn.contentStyle=Os;Rn.headerStyle={marginY:4,marginX:(0,Og.responsive)({_:4,md:0})};var Ol={},Ll={};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.Illustration=void 0;const F=m,Lg=Zc,zg=()=>(0,F.jsx)(Lg.CircularIconFrame,{children:(0,F.jsxs)("svg",{width:"72",height:"72",viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsxs)("g",{clipPath:"url(#clip0_5986_42599)",children:[(0,F.jsx)("rect",{width:"72",height:"72",rx:"36",fill:"#F7F7FF"}),(0,F.jsx)("circle",{opacity:"0.5",cx:"36",cy:"36",r:"30.3404",fill:"url(#paint0_linear_5986_42599)",stroke:"url(#paint1_linear_5986_42599)",strokeWidth:"1.31915"}),(0,F.jsx)("circle",{opacity:"0.9",cx:"36",cy:"36",r:"26.3939",fill:"url(#paint2_linear_5986_42599)",stroke:"url(#paint3_linear_5986_42599)",strokeWidth:"0.787879"}),(0,F.jsx)("line",{x1:"16.5",y1:"0.5",x2:"16.5",y2:"87.5",stroke:"#CBCDFE",strokeLinecap:"round"}),(0,F.jsxs)("g",{filter:"url(#filter0_ddd_5986_42599)",children:[(0,F.jsx)("circle",{cx:"16.5",cy:"13.5",r:"3.5",fill:"url(#paint4_linear_5986_42599)"}),(0,F.jsx)("circle",{cx:"16.5",cy:"13.5",r:"3.5",stroke:"white"})]}),(0,F.jsxs)("g",{filter:"url(#filter1_ddd_5986_42599)",children:[(0,F.jsx)("circle",{cx:"16.5",cy:"36.5",r:"3.5",fill:"url(#paint5_linear_5986_42599)"}),(0,F.jsx)("circle",{cx:"16.5",cy:"36.5",r:"3.5",stroke:"white"})]}),(0,F.jsxs)("g",{filter:"url(#filter2_d_5986_42599)",children:[(0,F.jsx)("path",{d:"M27 11.8491C27 10.8279 27.8279 10 28.8491 10H86.1509C87.1721 10 88 10.8279 88 11.8491V23.1509C88 24.1721 87.1721 25 86.1509 25H28.8491C27.8279 25 27 24.1721 27 23.1509V11.8491Z",fill:"white",shapeRendering:"crispEdges"}),(0,F.jsx)("path",{d:"M27 11.8491C27 10.8279 27.8279 10 28.8491 10H86.1509C87.1721 10 88 10.8279 88 11.8491V23.1509C88 24.1721 87.1721 25 86.1509 25H28.8491C27.8279 25 27 24.1721 27 23.1509V11.8491Z",stroke:"white",strokeOpacity:"0.2",shapeRendering:"crispEdges"})]}),(0,F.jsx)("path",{d:"M32 18H80",stroke:"#E0E1FF",strokeWidth:"4.77",strokeLinecap:"round"}),(0,F.jsxs)("g",{filter:"url(#filter3_d_5986_42599)",children:[(0,F.jsx)("path",{d:"M27 34.8491C27 33.8279 27.8279 33 28.8491 33H86.1509C87.1721 33 88 33.8279 88 34.8491V46.1509C88 47.1721 87.1721 48 86.1509 48H28.8491C27.8279 48 27 47.1721 27 46.1509V34.8491Z",fill:"white",shapeRendering:"crispEdges"}),(0,F.jsx)("path",{d:"M27 34.8491C27 33.8279 27.8279 33 28.8491 33H86.1509C87.1721 33 88 33.8279 88 34.8491V46.1509C88 47.1721 87.1721 48 86.1509 48H28.8491C27.8279 48 27 47.1721 27 46.1509V34.8491Z",stroke:"white",strokeOpacity:"0.2",shapeRendering:"crispEdges"})]}),(0,F.jsx)("path",{d:"M32 41H80",stroke:"#E0E1FF",strokeWidth:"4.77",strokeLinecap:"round"}),(0,F.jsxs)("g",{filter:"url(#filter4_ddd_5986_42599)",children:[(0,F.jsx)("circle",{cx:"16.5",cy:"59.5",r:"3.5",fill:"url(#paint6_linear_5986_42599)"}),(0,F.jsx)("circle",{cx:"16.5",cy:"59.5",r:"3.5",stroke:"white"})]}),(0,F.jsxs)("g",{filter:"url(#filter5_d_5986_42599)",children:[(0,F.jsx)("path",{d:"M27 57.8491C27 56.8279 27.8279 56 28.8491 56H86.1509C87.1721 56 88 56.8279 88 57.8491V69.1509C88 70.1721 87.1721 71 86.1509 71H28.8491C27.8279 71 27 70.1721 27 69.1509V57.8491Z",fill:"white",shapeRendering:"crispEdges"}),(0,F.jsx)("path",{d:"M27 57.8491C27 56.8279 27.8279 56 28.8491 56H86.1509C87.1721 56 88 56.8279 88 57.8491V69.1509C88 70.1721 87.1721 71 86.1509 71H28.8491C27.8279 71 27 70.1721 27 69.1509V57.8491Z",stroke:"white",strokeOpacity:"0.2",shapeRendering:"crispEdges"})]}),(0,F.jsx)("path",{d:"M32 64H80",stroke:"#E0E1FF",strokeWidth:"4.77",strokeLinecap:"round"})]}),(0,F.jsxs)("defs",{children:[(0,F.jsxs)("filter",{id:"filter0_ddd_5986_42599",x:"11.5",y:"9.5",width:"10",height:"12",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,F.jsx)("feFlood",{floodOpacity:"0",result:"Backgroun
432dImageFix"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"1"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.443137 0 0 0 0 0.454902 0 0 0 0 0.756863 0 0 0 0.09 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_5986_42599"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"2"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.443137 0 0 0 0 0.454902 0 0 0 0 0.756863 0 0 0 0.05 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_5986_42599",result:"effect2_dropShadow_5986_42599"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"3"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.443137 0 0 0 0 0.454902 0 0 0 0 0.756863 0 0 0 0.01 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"effect2_dropShadow_5986_42599",result:"effect3_dropShadow_5986_42599"}),(0,F.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_5986_42599",result:"shape"})]}),(0,F.jsxs)("filter",{id:"filter1_ddd_5986_42599",x:"11.5",y:"32.5",width:"10",height:"12",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,F.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"1"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.443137 0 0 0 0 0.454902 0 0 0 0 0.756863 0 0 0 0.09 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_5986_42599"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"2"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.443137 0 0 0 0 0.454902 0 0 0 0 0.756863 0 0 0 0.05 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_5986_42599",result:"effect2_dropShadow_5986_42599"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"3"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.443137 0 0 0 0 0.454902 0 0 0 0 0.756863 0 0 0 0.01 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"effect2_dropShadow_5986_42599",result:"effect3_dropShadow_5986_42599"}),(0,F.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_5986_42599",result:"shape"})]}),(0,F.jsxs)("filter",{id:"filter2_d_5986_42599",x:"16.5",y:"1.5",width:"82",height:"36",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,F.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"2"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"5"}),(0,F.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.762674 0 0 0 0 0.768985 0 0 0 0 0.958333 0 0 0 0.5 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_5986_42599"}),(0,F.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_5986_42599",result:"shape"})]}),(0,F.jsxs)("filter",{id:"filter3_d_5986_42599",x:"16.5",y:"24.5",width:"82",height:"36",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,F.jsx)("feFlood",{floodOpacity:"0",result:"Backgroun
432dImageFix"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"2"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"5"}),(0,F.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.762674 0 0 0 0 0.768985 0 0 0 0 0.958333 0 0 0 0.5 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_5986_42599"}),(0,F.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_5986_42599",result:"shape"})]}),(0,F.jsxs)("filter",{id:"filter4_ddd_5986_42599",x:"11.5",y:"55.5",width:"10",height:"12",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,F.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"1"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.443137 0 0 0 0 0.454902 0 0 0 0 0.756863 0 0 0 0.09 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_5986_42599"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"2"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.443137 0 0 0 0 0.454902 0 0 0 0 0.756863 0 0 0 0.05 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_5986_42599",result:"effect2_dropShadow_5986_42599"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"3"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.443137 0 0 0 0 0.454902 0 0 0 0 0.756863 0 0 0 0.01 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"effect2_dropShadow_5986_42599",result:"effect3_dropShadow_5986_42599"}),(0,F.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_5986_42599",result:"shape"})]}),(0,F.jsxs)("filter",{id:"filter5_d_5986_42599",x:"16.5",y:"47.5",width:"82",height:"36",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,F.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,F.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,F.jsx)("feOffset",{dy:"2"}),(0,F.jsx)("feGaussianBlur",{stdDeviation:"5"}),(0,F.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,F.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.762674 0 0 0 0 0.768985 0 0 0 0 0.958333 0 0 0 0.5 0"}),(0,F.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_5986_42599"}),(0,F.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_5986_42599",result:"shape"})]}),(0,F.jsxs)("linearGradient",{id:"paint0_linear_5986_42599",x1:"36",y1:"5",x2:"36",y2:"67",gradientUnits:"userSpaceOnUse",children:[(0,F.jsx)("stop",{stopColor:"#E0E1FF"}),(0,F.jsx)("stop",{offset:"1",stopColor:"#F7F7FF"})]}),(0,F.jsxs)("linearGradient",{id:"paint1_linear_5986_42599",x1:"36",y1:"5",x2:"36",y2:"67",gradientUnits:"userSpaceOnUse",children:[(0,F.jsx)("stop",{stopColor:"#CBCDFE",stopOpacity:"0"}),(0,F.jsx)("stop",{offset:"1",stopColor:"#F7F7FF",stopOpacity:"0.46"})]}),(0,F.jsxs)("linearGradient",{id:"paint2_linear_5986_42599",x1:"36",y1:"10",x2:"36",y2:"62",gradientUnits:"userSpaceOnUse",children:[(0,F.jsx)("stop",{stopColor:"#E0E1FF"}),(0,F.jsx)("stop",{offset:"1",stopColor:"#F7F7FF"})]}),(0,F.jsxs)("linearGradient",{id:"paint3_linear_5986_42599",x1:"36",y1:"10",x2:"36",y2:"62",gradientUnits:"userSpaceOnUse",children:[(0,F.jsx)("stop",{stopColor:"#CBCDFE",stopOpacity:"0"}),(0,F.jsx)("stop",{offset:"1",stopColor:"#F7F7FF",stopOpacity:"0.46"})]}),(0,F.jsxs)("linearGradient",{id:"paint4_linear_5986_42599",x1:"16.5",y1:"10",x2:"16.5",y2:"17",gradientUnits:"userSpaceOnUse",children:[(0,F.jsx)("stop",{stopColor:"#AAADFF"}),(0,F.jsx)("stop",{offset:"1",stopColor:"#8286FC"})]}),(0,F.jsxs)("linearGradient",{id:"paint5_linear_5986_42599",x1:"16.5",y1:"33",x2:"16.5",y2:"40",gradientUnits:"userSpaceOnUse",children:[(0,F.jsx)("stop",{stopColor:"#AAADFF"}),(0,F.jsx)("stop",{offset:"1",stopColor:"#8286FC"})]}),(0,F.jsxs)("linearGradient",{id:"paint6_linear_5986_42599",x1:"16.5",y1:"56",x2:"16.5",y2:"63",gradientUnits:"userSpaceOnUse",children:[(0,F.jsx)("stop",{stopColor:"#AAADFF"}),(0,F.jsx)("stop",{offset:"1",stopColor:"#8286FC"})]}),(0,F.jsx)("clipPath",{id:"clip0_5986_42599",children:(0,F.jsx)("rect",{width:"72",he
432ight:"72",rx:"36",fill:"white"})})]})]})});Ll.Illustration=zg;var zl={};Object.defineProperty(zl,"__esModule",{value:!0});zl.style=void 0;const Pr="ui.component.timeline.emptyState";zl.style={alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",flex:1,"& > .illustration":{width:"100%",display:"flex",justifyContent:"center"},"& > .title":{color:`${Pr}.title`,fontSize:4,fontWeight:"medium",marginTop:8,textAlign:"center"},"& > .description":{color:`${Pr}.description`,fontSize:2,lineHeight:"normal",marginTop:4,textAlign:"center"}};var $l={};Object.defineProperty($l,"__esModule",{value:!0});$l.translationKey=void 0;$l.translationKey="ui:component.timeline.emptyState";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.EmptyState=void 0;const xa=m,$g=Ll,Rg=zl,Dg=$l,Ug=kt,Mg=an,Ag=()=>{const{t:e}=(0,Ug.useTranslation)(Dg.translationKey);return(0,xa.jsxs)(Mg.Box,{style:Rg.style,children:[(0,xa.jsx)("div",{className:"illustration",children:(0,xa.jsx)($g.Illustration,{})}),(0,xa.jsx)("span",{className:"title",children:e("title")}),(0,xa.jsx)("p",{className:"description",children:e("description")})]})};Ol.EmptyState=Ag;var Er=Sn&&Sn.__rest||function(e,a){var l={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(l[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)a.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(l[o[r]]=e[o[r]]);return l};Object.defineProperty(Wo,"__esModule",{value:!0});Wo.Timeline=nf;const Ue=m,Vn=ce,Bg=Ss,jr=ts,pt=an,Ng=Go,Kr=gl,Xa=Fl,Vg=St,ba=Oa,Hg=Jo,Wg=qo,Gg=ei,Zg=ni,Qg=ti,Yg=li,Xg=wa,Jg=dl,gt=Rn,qg=rs,ef=Ol,Or=2,Lr=7;function nf(e){var a,l,o,r,u,y,k,v;const{renderEvent:I,onEventClick:g,header:S,footer:C,loadMoreThreshold:A=0}=e,Z=Er(e,["renderEvent","onEventClick","header","footer","loadMoreThreshold"]),M=(0,Yg.useTimelineLoader)(Z),{rows:B,intervals:oe,isAtEnd:N,isAtStart:w}=(0,Ng.useTimelineLayout)({events:M.events,hasNewer:M.hasNewer,hasOlder:M.hasOlder}),[j,J]=(0,Vn.useState)(null),{locale:{code:Q}}=(0,Xg.useLocale)(),{status:O}=M,ne=tf(O),me=M.firstIndex,ke=(0,Vn.useRef)(null),se=(0,Vn.useRef)(null),Y=(0,qg.usePopoverState)(),V=(0,Gg.useDateBoundary)(se),{register:be}=V,x=Er(V,["register"]),{headerBoundary:he,topSkeletonBoundary:Ke,footerBoundary:Oe}=(0,Zg.useTimelineBoundaries)(B),ee=(0,Qg.useTimelineScrollState)({loader:M,isAtEnd:N,isAtStart:w,rowCount:B.length,virtuosoReference:ke}),Mn=(0,Vn.useCallback)(({startIndex:yn})=>{const Ie=Math.max(0,yn-me),re=B[Ie];re!==void 0&&J({timestamp:re.timestamp,timezone:re.timezone})},[B,me]),An=(0,Vn.useMemo)(()=>({renderEvent:I,onEventClick:g,intervals:oe,registerBoundary:be,isAtEnd:N,isAtStart:w,hasHeader:S!==void 0,hasFooter:C!==void 0,hasHeaderSegments:he.segments.length>0,firstRow:B[0],lastRow:B[B.length-1]}),[I,g,oe,be,N,w,S,C,he,B]),R=(0,Vn.useCallback)((yn,Ie)=>(0,Ue.jsx)(Wg.TimelineItem,{event:Ie}),[]),Ne=(0,Vn.useCallback)(()=>ee.headerVisible?(0,Ue.jsx)(ba.TimelineBoundaryContext.Provider,{value:Ke,children:(0,Ue.jsx)(Xa.SkeletonRows,{count:Or})}):N?S!==void 0?(0,Ue.jsx)(ba.TimelineBoundaryContext.Provider,{value:he,children:(0,Ue.jsx)(pt.Box,{style:gt.headerStyle,children:S})}):he.segments.length>0?(0,Ue.jsx)(ba.TimelineBoundaryContext.Provider,{value:he,children:(0,Ue.jsx)(Vg.TimelineExtraRow,{})}):null:null,[ee.headerVisible,N,S,he,Ke]),ie=(0,Vn.useCallback)(()=>M.hasOlder?(0,Ue.jsx)(ba.TimelineBoundaryContext.Provider,{value:Oe,children:(0,Ue.jsx)(Xa.SkeletonRows,{count:Or})}):w&&C!==void 0?(0,Ue.jsx)(ba.TimelineBoundaryContext.Provider,{value:Oe,children:C}):null,[M.hasOlder,w,C,Oe]),We=(a=j==null?void 0:j.timestamp)!==null&&a!==void 0?a:(l=B[0])===null||l===void 0?void 0:l.timestamp,ve=(o=j==null?void 0:j.timezone)!==null&&o!==void 0?o:(r=B[0])===null||r===void 0?void 0:r.timezone,It=(0,Vn.useMemo)(()=>{var yn,Ie;const re=(yn=x==null?void 0:x.timestamp)!==null&&yn!==void 0?yn:We,Pn=(Ie=x==null?void 0:x.timezone)!==null&&Ie!==void 0?Ie:ve;return re===void 0||Pn===void 0?"":(0,Jg.formatTime)(re,{locale:Q,timeZone:Pn,month:"short",day:"numeric",year:"numeric"})},[x,We,ve,Q]);return B.length===0&&O==="idle"?(0,Ue.jsx)(pt.Box,{style:gt.rootStyle,children:(0,Ue.jsx)(ef.EmptyState,{})}):B.length===0?(0,Ue.jsxs)(pt.Box,{style:gt.rootStyle,children:[(0,Ue.jsx)(Kr.TimelineToolbar,{ref:se,status:O,onScrollToNewest:M.onJumpToNewest,onScrollToOldest:M.onJumpToOldest,onJumpToDate:ee.jumpToDate}),(0,Ue.jsx)(pt.Box,{style:gt.listStyle,children:(0,Ue.jsx)(Xa.SkeletonRows,{count:Lr})})]}):(0,Ue.jsxs)(pt.Box,{style:gt.rootStyle,children:[(0,Ue.jsx)(Kr.TimelineToolbar,Object.assign({ref:se,date:ne?void 0:It,status:O,disableScrollToNewest:!ee.canScrollToNewest,disableScrollToOldest:!ee.canScrollToOldest,onScrollToNewest:ee.scrollToNewest,onScrollToOldest:ee.scrollToOldest,onJumpToDate:ee.jumpToDate,datePickerStore:Y},!ne&&{timestamp:(u=x==null?void 0:x.timestamp)!==null&&u!==void 0?u:We,timezone:(y=x==null?void 0:x.timezone)!==null&&y!==void 0?y:ve})),ne&&(0,Ue.jsx)(pt.Box,{style:gt.listStyle,children:(0,Ue.jsx)(Xa.SkeletonRows,{count:Lr})}),!ne&&(0,Ue.jsx)(Hg.TimelineItemContext.Provider,{value:An,children:(0,Ue.jsx)(jr.CompositeProvider,{children:(0,Ue.jsx)(pt.Box,{as:jr.Composite,style:gt.contentStyle,children:(0,Ue.jsx)(Bg.Virtuoso,{ref:ke,scrollerRef:ee.scrollerRef,useWindowScroll:!0,skipAnimationFrameInResizeObserver:!0,firstItemIndex:me,data:B,components:{Header:Ne,Footer:ie},startReached:ee.startReached,endReached:M.onLoadOlder,itemContent:R,rangeChanged:Mn,alignToBottom:ee.alignToBottom,atTopStateChange:ee.atTopStateChange,atBottomStateChange:ee.atBottomStateChange,isScrolling:Y.hide,increaseViewportBy:{top:A,bottom:A}
432,initialTopMostItemIndex:M.initialTopMostItemIndex!==0?{index:M.initialTopMostItemIndex===-1?0:M.initialTopMostItemIndex,align:"start",offset:-((v=(k=se.current)===null||k===void 0?void 0:k.offsetHeight)!==null&&v!==void 0?v:0)}:M.initialTopMostItemIndex})})})})]})}function tf(e){return e==="jumping_to_newest"||e==="jumping_to_oldest"||e==="jumping_to_date"}var Rl={},Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});Dl.style=void 0;Dl.style={fontWeight:"medium",fontStyle:"italic",fontSize:3,lineHeight:"normal",color:"ui.component.timeline.startMarker.text"};var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.translationKey=void 0;Ul.translationKey="ui:component.timeline.startMarker";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.StartMarker=void 0;const zr=m,af=an,lf=St,of=Dl,rf=kt,sf=Ul,df=()=>{const{t:e}=(0,rf.useTranslation)(sf.translationKey);return(0,zr.jsx)(lf.TimelineExtraRow,{dot:"last",children:(0,zr.jsx)(af.Box,{style:of.style,children:e("title")})})};Rl.StartMarker=df;var Ml={},Al={},Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.style=void 0;const ft="ui.component.timeline.eventCard";Bl.style={"&.lovelace":{color:`${ft}.session.lovelace.confetti`},"&.fibonacci":{color:`${ft}.session.fibonacci.confetti`},"&.noether":{color:`${ft}.session.noether.confetti`},"&.hypatia":{color:`${ft}.session.hypatia.confetti`},"&.pythagoras":{color:`${ft}.session.pythagoras.confetti`},"&.germain":{color:`${ft}.session.germain.confetti`},"&.bhaskara":{color:`${ft}.session.bhaskara.confetti`},"& > .confetti":{display:"block",position:"absolute",top:0,right:0,bottom:0,left:0,width:"100%",height:"100%",pointerEvents:"none"}};Object.defineProperty(Al,"__esModule",{value:!0});Al.Confetti=void 0;const $r=m,Rr=ce,cf=an,uf=Bl;class $n{constructor(a,l){this.path=a,this.renderStyle=l}draw(a){this.renderStyle==="stroke"?a.stroke(this.path):a.fill(this.path)}static random(){return $n.SHAPES[Math.floor(Math.random()*$n.SHAPES.length)]}}$n.SHAPES=[new $n(new Path2D("M -4 0 A 4 4 0 0 1 4 0"),"stroke"),new $n(new Path2D("M -2.5 -2.5 H 2.5 V 2.5 H -2.5 Z"),"fill"),new $n(new Path2D("M 0 -3 L 3 2 L -3 2 Z"),"fill"),new $n(new Path2D("M -2.5 0 A 2.5 2.5 0 1 0 2.5 0 A 2.5 2.5 0 1 0 -2.5 0"),"fill"),new $n(new Path2D("M -5 0 Q -2.5 -5 0 0 T 5 0"),"stroke")];class xe{constructor(a,l,o,r){this.x=a,this.y=l,this.velocityX=o,this.velocityY=r,this.rotation=Math.random()*360,this.rotationSpeed=(Math.random()-.5)*4,this.scale=.8+Math.random()*.4,this.verticalScale=.4+Math.random()*.6,this.opacity=xe.randomOpacity(),this.shape=$n.random()}static createBurstParticle(a,l){const o=Math.random()*Math.PI-Math.PI,r=xe.randomSpeed(xe.BURST_SPEED_MIN,xe.BURST_SPEED_MAX);return new xe(a,l,Math.cos(o)*r,Math.sin(o)*r)}static createRainParticle(a){const l=Math.PI/2+(Math.random()-.5)*.5,o=xe.randomSpeed(xe.RAIN_SPEED_MIN,xe.RAIN_SPEED_MAX);return new xe(Math.random()*a,-10,Math.cos(l)*o,Math.sin(l)*o)}update(a){this.velocityY+=xe.GRAVITY,this.velocityX*=xe.FRICTION,this.x+=this.velocityX,this.y+=this.velocityY,this.rotation+=this.rotationSpeed,a||(this.opacity-=xe.FADE_RATE)}computeEdgeAlpha(a){const l=a-xe.FADE_OUT_ZONE;return this.y<xe.FADE_IN_ZONE?Math.max(0,this.y/xe.FADE_IN_ZONE):this.y>l?Math.max(0,1-(this.y-l)/xe.FADE_OUT_ZONE):1}isExpired(a,l){return this.y>l+xe.OFF_SCREEN_MARGIN||this.x<-xe.OFF_SCREEN_MARGIN||this.x>a+xe.OFF_SCREEN_MARGIN||this.opacity<=0}draw(a,l,o){const r=this.computeEdgeAlpha(o),u=Math.max(0,this.opacity)*r;a.save(),a.translate(this.x,this.y),a.rotate(this.rotation*Math.PI/180),a.scale(this.scale,this.scale*this.verticalScale),a.globalAlpha=u,a.fillStyle=l,a.strokeStyle=l,a.lineWidth=1.2,this.shape.draw(a),a.restore()}static randomOpacity(){return xe.OPACITY_PRESETS[Math.floor(Math.random()*xe.OPACITY_PRESETS.length)]}static randomSpeed(a,l){return Math.random()*(l-a)+a}}xe.OPACITY_PRESETS=[.2,.3,.4,.5];xe.GRAVITY=2e-4;xe.FRICTION=.999;xe.FADE_RATE=.008;xe.FADE_IN_ZONE=20;xe.FADE_OUT_ZONE=30;xe.OFF_SCREEN_MARGIN=20;xe.BURST_SPEED_MIN=.2;xe.BURST_SPEED_MAX=2.3;xe.RAIN_SPEED_MIN=.1;xe.RAIN_SPEED_MAX=.2;class Bt{constructor(a,l){this.particles=[],this.animationFrameId=0,this.canvasWidth=0,this.canvasHeight=0,this.isActive=!1,this.canvas=a,this.resolveColor=l;const o=a.getContext("2d");if(o===null)throw new Error("Failed to get 2D rendering context");this.context=o}resize(){const a=this.canvas.offsetParent;if(a===null)return;const l=a.getBoundingClientRect();this.canvasWidth=l.width,this.canvasHeight=l.height,this.canvas.width=l.width*window.devicePixelRatio,this.canvas.height=l.height*window.devicePixelRatio,this.context.setTransform(window.devicePixelRatio,0,0,window.devicePixelRatio,0,0)}emitBurst(a,l){for(let o=0;o<Bt.BURST_COUNT;o++)this.particles.push(xe.createBurstParticle(a,l))}
432spawnRainParticle(){this.isActive&&Math.random()<Bt.RAIN_PROBABILITY&&this.particles.push(xe.createRainParticle(this.canvasWidth))}start(){const a=()=>{const l=this.resolveColor();this.context.clearRect(0,0,this.canvasWidth,this.canvasHeight),this.spawnRainParticle();for(let o=this.particles.length-1;o>=0;o--){const r=this.particles[o];r.update(this.isActive),r.draw(this.context,l,this.canvasHeight),r.isExpired(this.canvasWidth,this.canvasHeight)&&this.particles.splice(o,1)}this.animationFrameId=requestAnimationFrame(a)};this.animationFrameId=requestAnimationFrame(a)}stop(){cancelAnimationFrame(this.animationFrameId),this.particles.length=0}}Bt.BURST_COUNT=4;Bt.RAIN_PROBABILITY=.25;const mf=250,Dr=300,pf=({color:e})=>{const a=(0,Rr.useRef)(null);return(0,Rr.useEffect)(()=>{const l=a.current;if(l===null)return;const o=l.offsetParent;if(o===null||l.parentElement===null)return;const r=l.parentElement,u=new Bt(l,()=>getComputedStyle(r).color);u.resize(),u.start();let y=0,k=0,v=0;function I(){u.resize()}function g(){u.isActive=!0,setTimeout(()=>{u.isActive&&u.emitBurst(k,v)},Dr)}function S(){u.isActive=!1}function C(A){const Z=o.getBoundingClientRect();if(k=A.clientX-Z.left,v=A.clientY-Z.top,!u.isActive)return;const M=Date.now();M-y<=mf||(y=M,setTimeout(()=>{u.isActive&&u.emitBurst(k,v)},Dr))}return window.addEventListener("resize",I),o.addEventListener("mouseenter",g),o.addEventListener("mouseleave",S),o.addEventListener("mousemove",C),()=>{u.stop(),window.removeEventListener("resize",I),o.removeEventListener("mouseenter",g),o.removeEventListener("mouseleave",S),o.removeEventListener("mousemove",C)}},[]),(0,$r.jsx)(cf.Box,{style:uf.style,className:e,children:(0,$r.jsx)("canvas",{ref:a,className:"confetti"})})};Al.Confetti=pf;var La={},Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.timeStyle=void 0;Nl.timeStyle={display:"inline-block",fontSize:1,lineHeight:1,marginBottom:2,color:"ui.component.timeline.time.text",whiteSpace:"nowrap",cursor:"default",userSelect:"none"};Object.defineProperty(La,"__esModule",{value:!0});La.TimelinePoint=void 0;const Ja=m,Ur=ce,gf=an,ff=cl,yf=wa,hf=dl,vf=Nl,kf=Zt,xf=e=>{const{timestamp:a,timezone:l,children:o}=e,{locale:{code:r}}=(0,yf.useLocale)(),{dateTime:u,localTime:y}=(0,Ur.useMemo)(()=>({dateTime:new Date(a).toISOString(),localTime:(0,hf.formatTime)(a,{locale:r,timeZone:l,hour:"numeric",minute:"numeric",second:"numeric"})}),[a,l,r]);return(0,Ja.jsxs)(Ur.Fragment,{children:[(0,Ja.jsx)(ff.Tooltip,{placement:"right",anchorProps:{tabIndex:-1},content:(0,Ja.jsx)(kf.RelativeDate,{timestamp:a,timezone:l}),children:(0,Ja.jsx)(gf.Box,{as:"time",dateTime:u,style:vf.timeStyle,children:y})}),o]})};La.TimelinePoint=xf;var Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.style=void 0;const Mr=sl,Ar=il,qa="ui.component.timeline.eventCard";Vl.style={"&:hover > .header > .link":{opacity:1},"& > .confetti":{display:(0,Mr.responsive)({_:"none",md:"initial"})},"& > .header":{display:"flex",alignItems:"center",gap:2,position:"relative","& > .title":{fontWeight:"medium",color:`${qa}.title`,fontSize:(0,Mr.responsive)({_:2,sm:3}),lineHeight:"normal"},"& > .link":{display:"flex",alignItems:"center",color:`${qa}.link`,opacity:0,transitionProperty:"opacity, color",transitionDuration:Ar.transition.duration[150],transitionTimingFunction:Ar.transition.func.easeInOut,"&:has(:focus-visible)":{opacity:1},"&:hover":{color:`${qa}.linkHover`}}},"& > .subtitle":{fontSize:2,lineHeight:"normal",color:`${qa}.subtitle`,marginTop:2},"& > .tags":{display:"flex",flexWrap:"wrap",gap:2,marginTop:2}};var Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});Hl.translationKey=void 0;Hl.translationKey="ui:component.timeline.eventCard";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.EventCard=void 0;const wn=m,bf=an,Sf=No,If=xu,Tf=Al,Cf=La,_f=Vl,wf=bu,Ff=Su,Pf=kt,Ef=Hl,jf=ss,Kf=e=>{const{color:a,timestamp:l,timezone:o,title:r,eventUrl:u,keyEvent:y=!1,subtitle:k}=e,{t:v}=(0,Pf.useTranslation)(Ef.translationKey);return(0,wn.jsx)(Cf.TimelinePoint,{timestamp:l,timezone:o,children:(0,wn.jsxs)(bf.Box,{style:_f.style,className:a,children:[y&&(0,wn.jsx)("div",{className:"confetti",children:(0,wn.jsx)(Tf.Confetti,{color:a})}),(0,wn.jsxs)("div",{className:"header",children:[(0,wn.jsx)("h4",{className:"title",children:r}),y&&(0,wn.jsx)(Sf.Tag,{size:"xs",label:v("keyEvent"),appearance:a,icon:wf.SparklesIcon}),u!==void 0&&(0,wn.jsx)("div",{className:"link",children:(0,wn.jsx)(Ff.CopyToClipboard,{value:u,tooltipPlacement:"right",anchorProps:{onClick:I=>I.stopPropagation()},children:(0,wn.jsx)(jf.AddonButton,{size:"xs",icon:If.LinkIcon,"aria-label":v("action.copyLink")})})})]}),k!==void 0&&(0,wn.jsx)("div",{className:"subtitle",children:k})]})})};Ml.EventCard=Kf;var Wl={},Gl={};
432Object.defineProperty(Gl,"__esModule",{value:!0});var Ls=Gl.SignalWavesIcon=void 0;const Br=m,Of=ce,Lf=rl;Ls=Gl.SignalWavesIcon=(0,Of.forwardRef)((e,a)=>(0,Br.jsx)(Lf.SvgIcon,Object.assign({ref:a},e,{children:(0,Br.jsx)("path",{d:"M1.22363 3.93941C1.39523 3.56252 1.83986 3.39588 2.2168 3.56734C2.59373 3.73891 2.76031 4.18355 2.58887 4.56051C1.9097 6.05267 1.50001 7.93857 1.5 9.99997C1.5 12.0614 1.90971 13.9473 2.58887 15.4394C2.76036 15.8164 2.59373 16.261 2.2168 16.4326C1.83982 16.6041 1.39521 16.4375 1.22363 16.0605C0.44599 14.3519 1.57429e-08 12.2509 0 9.99997C1.28503e-05 7.749 0.445979 5.64802 1.22363 3.93941ZM17.7832 3.56734C18.1601 3.39589 18.6048 3.56252 18.7764 3.93941C19.554 5.64802 20 7.749 20 9.99997C20 12.2509 19.554 14.3519 18.7764 16.0605C18.6048 16.4375 18.1602 16.6041 17.7832 16.4326C17.4063 16.261 17.2396 15.8164 17.4111 15.4394C18.0903 13.9473 18.5 12.0614 18.5 9.99997C18.5 7.93857 18.0903 6.05267 17.4111 4.56051C17.2397 4.18355 17.4063 3.73891 17.7832 3.56734ZM4.77637 6.0986C5.02572 5.76814 5.49553 5.70206 5.82617 5.95114C6.15678 6.20044 6.22272 6.67024 5.97363 7.00094C5.34496 7.83465 4.96882 8.8761 4.96875 9.99997C4.96879 11.1237 5.34513 12.1644 5.97363 12.998C6.22298 13.3287 6.15677 13.7994 5.82617 14.0488C5.4955 14.2979 5.02569 14.2319 4.77637 13.9013C3.95992 12.8185 3.46879 11.4633 3.46875 9.99997C3.46882 8.53664 3.95992 7.18138 4.77637 6.0986ZM14.1738 5.95114C14.5045 5.70205 14.9743 5.76814 15.2236 6.0986C16.0401 7.18138 16.5312 8.53664 16.5312 9.99997C16.5312 11.4633 16.0401 12.8185 15.2236 13.9013C14.9743 14.2319 14.5045 14.2979 14.1738 14.0488C13.8432 13.7994 13.777 13.3287 14.0264 12.998C14.6549 12.1644 15.0312 11.1237 15.0312 9.99997C15.0312 8.8761 14.655 7.83465 14.0264 7.00094C13.7773 6.67024 13.8432 6.20044 14.1738 5.95114ZM10 6.95114C11.7034 6.95114 13.0625 8.35245 13.0625 10.0537C13.0622 11.7547 11.7032 13.1553 10 13.1553C8.2968 13.1553 6.93778 11.7547 6.9375 10.0537C6.9375 8.35245 8.29662 6.95114 10 6.95114ZM10 8.45114C9.14906 8.45114 8.4375 9.15666 8.4375 10.0537C8.43778 10.9505 9.14923 11.6552 10 11.6552C10.8508 11.6552 11.5622 10.9505 11.5625 10.0537C11.5625 9.15666 10.8509 8.45114 10 8.45114Z",fill:"currentColor"})})));var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.locationStyle=Nt.style=void 0;const zn=sl,Ge="ui.component.timeline.sessionMarker";Nt.style={padding:3,borderRadius:4,backgroundColor:"ui.component.timeline.background",position:"relative","&::before":{content:'""',position:"absolute",inset:0,borderRadius:4,padding:"1px",backgroundImage:({colors:e})=>{const{border:a}=e.ui.component.timeline.sessionMarker;return`
433                linear-gradient(180deg, var(--border) 0%, var(--border) 100%),
434                linear-gradient(0deg, ${a}, ${a})
435            `},mask:"linear-gradient(white 0 0) content-box, linear-gradient(white 0 0)",maskComposite:"exclude",WebkitMaskComposite:"xor"},"& > .session":{isolation:"isolate",display:"flex",justifyContent:"space-between",alignItems:"center",gap:4,"& > .details":{display:"flex",gap:3,flex:"1 1 auto",minWidth:0,"& > .badge":{width:6,height:6,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,borderRadius:3,padding:1,backgroundColor:"ui.component.timeline.trackLine",color:"ui.component.timeline.trackLine"},"& > .info":{flex:"1 1 auto",minWidth:0,"& > .heading":{display:"flex",alignItems:"center",gap:2,marginBottom:2,"& > h3":{fontWeight:"medium",fontSize:2,color:`${Ge}.title`}},"& > .description":{display:"flex",alignItems:"center",gap:1,fontSize:1,lineHeight:"tight",color:`${Ge}.subtitle.text`,"& > .duration":{flexShrink:0,"&::after":{content:'"•" / ", "',color:`${Ge}.subtitle.separator`,marginLeft:1}},"& > .meta":Object.assign(Object.assign({},(0,zn.responsiveStyle)({_:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},sm:{display:"grid",gridAutoColumns:"auto",gridAutoFlow:"column",gap:1}})),{"& > .browser":{display:(0,zn.responsive)({_:"inline",sm:"inline-flex"}),marginLeft:(0,zn.responsive)({_:1,sm:0}),overflow:"hidden","& > .value":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"&::after":{content:'"•" / ", "',color:`${Ge}.subtitle.separator`,marginLeft:1,flexShrink:0}},"& > .application":{display:(0,zn.responsive)({_:"inline",sm:"inline-flex"}),marginLeft:(0,zn.responsive)({_:1,sm:0}),overflow:"hidden","& > .value":{display:(0,zn.responsive)({_:"inline",sm:"initial"}),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"&::after":{content:"attr(data-environment)",marginLeft:1,flexShrink:0}}})}}},"& > .highlights":{display:(0,zn.responsive)({_:"none",sm:"flex"}),maxWidth:60}},"&.lovelace":{"--border":({colors:e})=>e.ui.component.timeline.sessionMarker.session.lovelace.border,"& > .session > .details > .badge":{backgroundColor:`${Ge}
435.session.lovelace.iconBackground`,color:`${Ge}.session.lovelace.icon`}},"&.fibonacci":{"--border":({colors:e})=>e.ui.component.timeline.sessionMarker.session.fibonacci.border,"& > .session > .details > .badge":{backgroundColor:`${Ge}.session.fibonacci.iconBackground`,color:`${Ge}.session.fibonacci.icon`}},"&.noether":{"--border":({colors:e})=>e.ui.component.timeline.sessionMarker.session.noether.border,"& > .session > .details > .badge":{backgroundColor:`${Ge}.session.noether.iconBackground`,color:`${Ge}.session.noether.icon`}},"&.hypatia":{"--border":({colors:e})=>e.ui.component.timeline.sessionMarker.session.hypatia.border,"& > .session > .details > .badge":{backgroundColor:`${Ge}.session.hypatia.iconBackground`,color:`${Ge}.session.hypatia.icon`}},"&.pythagoras":{"--border":({colors:e})=>e.ui.component.timeline.sessionMarker.session.pythagoras.border,"& > .session > .details > .badge":{backgroundColor:`${Ge}.session.pythagoras.iconBackground`,color:`${Ge}.session.pythagoras.icon`}},"&.germain":{"--border":({colors:e})=>e.ui.component.timeline.sessionMarker.session.germain.border,"& > .session > .details > .badge":{backgroundColor:`${Ge}.session.germain.iconBackground`,color:`${Ge}.session.germain.icon`}},"&.bhaskara":{"--border":({colors:e})=>e.ui.component.timeline.sessionMarker.session.bhaskara.border,"& > .session > .details > .badge":{backgroundColor:`${Ge}.session.bhaskara.iconBackground`,color:`${Ge}.session.bhaskara.icon`}}};Nt.locationStyle={display:(0,zn.responsive)({_:"inline",sm:"inline-flex"}),alignItems:"center",gap:1,fontSize:1,lineHeight:"tight",color:`${Ge}.subtitle.text`,overflow:"hidden","&::after":{content:'"•" / ", "',color:`${Ge}.subtitle.separator`,flexShrink:0,marginLeft:(0,zn.responsive)({_:1,sm:0})},"& > img":{flexShrink:0,verticalAlign:(0,zn.responsive)({_:"middle",sm:"initial"})},"& > .icon":{flexShrink:0},"& > .value":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}};var Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.translationKey=void 0;Zl.translationKey="ui:component.timeline.sessionMarker";var Ql={},Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.hovercardStyle=Vt.style=void 0;const Nr="ui.component.timeline.sessionMarker.highlights";Vt.style={width:"100%",display:"flex",gap:1};Vt.hovercardStyle={display:"flex",flexDirection:"column",gap:2,listStyle:"none","& > .highlight":{display:"inline-flex",gap:1,alignItems:"center",color:`${Nr}.hovercard.text`,lineHeight:"normal","& > .icon":{color:`${Nr}.hovercard.icon`}}};var Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});Yl.translationKey=void 0;Yl.translationKey="ui:component.timeline.sessionMarker.sessionHighlights";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.SessionHighlights=void 0;const Fn=m,zf=ce,zs=an,$f=Eu,$s=No,Rs=Vt,Vr=ju,Rf=Ku,Df=Ou,Uf=kt,Mf=Yl,Af=e=>{const{color:a,highlights:l}=e,o=(0,zf.useMemo)(()=>l.map(r=>(0,Fn.jsx)($s.Tag,{size:"xs",label:r,appearance:a})),[l,a]);return(0,Fn.jsx)(zs.Box,{style:Rs.style,children:(0,Fn.jsx)($f.TruncatedList,{items:o,separator:" ",renderHiddenItem:r=>(0,Fn.jsx)(Bf,{color:a,highlights:l,hiddenCount:r})})})};Ql.SessionHighlights=Af;const Bf=e=>{const{highlights:a,color:l,hiddenCount:o}=e,{t:r}=(0,Uf.useTranslation)(Mf.translationKey);return(0,Fn.jsxs)(Vr.HoverCardProvider,{placement:"bottom-start",children:[(0,Fn.jsx)(Vr.HoverCardAnchor,{toggleOnTap:!0,toggleOnFocus:!0,render:u=>(0,Fn.jsx)($s.Tag,Object.assign({},u,{size:"xs",label:r("rest",{count:o}),appearance:l}))}),(0,Fn.jsx)(Rf.InfoHoverCard,{title:r("title"),description:(0,Fn.jsx)(zs.Box,{as:"ul",style:Rs.hovercardStyle,children:a.map((u,y)=>(0,Fn.jsxs)("li",{className:"highlight","aria-label":u,children:[(0,Fn.jsx)(Df.CheckIcon,{size:"xs",className:"icon"}),u]},y))})})]})};Object.defineProperty(Wl,"__esModule",{value:!0});Wl.SessionMarker=void 0;const Ee=m,Ds=ce,Ko=pn,Us=an,Nf=No,Vf=Gl,Hf=La,Wf=wa,Gf=Tu,Ms=Nt,Zf=_u,As=kt,Qf=Qc,Bs=Zl,Yf=Fu,Xf=cl,Jf=Ql,qf=Lu,e0=e=>{const{live:a=!1,location:l,browser:o,timestamp:r,timezone:u,sessionNumber:y,color:k,application:v,highlights:I=[]}=e,{t:g}=(0,As.useTranslation)(Bs.translationKey),{locale:{code:S}}=(0,Wf.useLocale)(),{isoDuration:C,displayDuration:A}=(0,Ds.useMemo)(()=>t0(e.duration,S,g),[e.duration,S,g]),Z=a===!0;return(0,Ee.jsx)(Hf.TimelinePoint,{timestamp:r,timezone:u,children:(0,Ee.jsxs)(Us.Box,{style:Ms.style,className:k,children:[(0,Ee.jsx)("div",{className:"fade"}),(0,Ee.jsxs)("div",{className:"session",children:[(0,Ee.jsxs)("div",{className:"details",children:[(0,Ee.jsx)("div",{className:"badge",children:Z?(0,Ee.jsx)(Vf.SignalWavesIcon,{size:"sm"}):(0,Ee.jsx)(qf.CounterclockwiseIcon,{size:"sm"})}),(0,Ee.jsxs)("div",{className:"info",children:[(0,Ee.jsxs)("div",{className:"heading",children:[(0,Ee.jsx)("h3",{children:g("heading",{count:y})}),Z&&(0,Ee.jsx)(Nf.Tag,{size:"xs",appearance:"positive",label:g("live")})]}),(0,Ee.jsxs)("div",{className:"description",children:[(0,Ee.jsx)("time",{dateTime:C,className:"duration",children:A}),(0,Ee.jsxs)("div",{className:"meta",children:[l!==void 0&&(0,Ee.jsx)(n0,Object.assign({},l,{t:g})),o!==void 0&&(0,Ee.jsx)("span",{className:"browser",children:(0,Ee.jsx)("span",{className:"value",children:o})}),v!==void 0&&(0,Ee.jsx)("span",{className:"application","data-environment":`(${v.environment})`,children:(0,Ee.jsx)("div",{className:"value",children:v.name})})]})]})]})]}),(0,Ee.jsx)("div",{className:"highlights",children:I.length>0&&(0,Ee.jsx)(Jf.SessionHighlights,{color:k,highlights:I})})]})]})})};Wl.SessionMarker=e0;const n0=e=>{const{t:a,city:l,country:o,regionCode:r}=e,{t:u}=(0,As.useTranslation)(),y=(0,Ds.useMemo)(()=>u("country:list",{returnObjects:!0}),[u]);return(0,Ee.jsx)(Xf.Tooltip,{content:a("location.tooltip",{city:l,regionCode:r}),anchorProps:{tabIndex:-1},children:(0,Ee.jsx)(Us.Box,{as:"span",style:Ms.locationStyle,children:(0,Ee.jsxs)(Qf.Trans,{i18nKey:`${Bs.translationKey}.location.value`,values:{city:l,regionCode:r},children:[(0,Ee.jsx)(Zf.CountryFlag,{fallback:(0,Ee.jsx)(Yf.GlobeEarthIcon,{size:"sm",className:"icon"}),code:o,size:"xs",alt:a("location.flag",{country:y[o]})}),(0,Ee.jsx)("span",{className:"value"})]})})})};function t0(e,a,l){const o=Ko.Duration.ofMillis(e);
435if(o.isShorterThan(Ko.Duration.ofMinutes(1)))return{isoDuration:o.toString(),displayDuration:l("duration.lessThanOneMinute")};const r={days:o.toDaysPart(),hours:o.toHoursPart(),minutes:o.toMinutesPart()};return{isoDuration:o.toString(),displayDuration:(0,Gf.formatDuration)(r,{locale:a,style:o.isLongerThan(Ko.Duration.ofHours(1))?"narrow":"short"})}}(function(e){var a=Sn&&Sn.__createBinding||(Object.create?function(v,I,g,S){S===void 0&&(S=g);var C=Object.getOwnPropertyDescriptor(I,g);(!C||("get"in C?!I.__esModule:C.writable||C.configurable))&&(C={enumerable:!0,get:function(){return I[g]}}),Object.defineProperty(v,S,C)}:function(v,I,g,S){S===void 0&&(S=g),v[S]=I[g]}),l=Sn&&Sn.__exportStar||function(v,I){for(var g in v)g!=="default"&&!Object.prototype.hasOwnProperty.call(I,g)&&a(I,v,g)};Object.defineProperty(e,"__esModule",{value:!0}),e.SessionMarker=e.EventCard=e.StartMarker=e.TimelineExtraRow=e.Timeline=void 0,l(ul,e);var o=Wo;Object.defineProperty(e,"Timeline",{enumerable:!0,get:function(){return o.Timeline}});var r=St;Object.defineProperty(e,"TimelineExtraRow",{enumerable:!0,get:function(){return r.TimelineExtraRow}});var u=Rl;Object.defineProperty(e,"StartMarker",{enumerable:!0,get:function(){return u.StartMarker}});var y=Ml;Object.defineProperty(e,"EventCard",{enumerable:!0,get:function(){return y.EventCard}});var k=Wl;Object.defineProperty(e,"SessionMarker",{enumerable:!0,get:function(){return k.SessionMarker}})})(mn);const Ns={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useEndUserEventsOrganizationFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null}],type:"Organization",abstractKey:null};Ns.hash="ecc0405e527b0f65e4f56d369e05a7a9";const Vs={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useEndUserEventsWorkspaceFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null}],type:"Workspace",abstractKey:null};Vs.hash="ce2a2ef330ecb04c62a6c0b36566aacf";const Hs=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"aroundTime"},{defaultValue:null,kind:"LocalArgument",name:"id"}],a=[{kind:"Variable",name:"id",variableName:"id"}],l={kind:"Variable",name:"aroundTime",variableName:"aroundTime"},o={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"userId",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"windowStart",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"windowEnd",storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},g=[I],S={alias:null,args:null,kind:"ScalarField",name:"externalUserId",storageKey:null},C={alias:null,args:null,concreteType:"EndUser",kind:"LinkedField",name:"endUser",plural:!1,selections:[S,{alias:null,args:null,kind:"ScalarField",name:"firstName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lastName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"avatar",storageKey:null},r],storageKey:null},A=[{alias:null,args:null,kind:"ScalarField",name:"customId",storageKey:null},I,r],Z={alias:null,args:null,kind:"ScalarField",name:"total",storageKey:null},M={alias:null,args:null,kind:"ScalarField",name:"coupon",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},oe={alias:null,args:null,kind:"ScalarField",name:"shippingPrice",storageKey:null},N=[y],w={alias:null,args:null,concreteType:"CartItem",kind:"LinkedField",name:"items",plural:!0,selections:N,storageKey:null},j=[{alias:null,args:null,concreteType:"Cart",kind:"LinkedField",name:"cart",plural:!1,selections:[Z,M,B,oe,{alias:null,args:null,kind:"ScalarField",name:"lastUpdateTime",storageKey:null},w],storageKey:null}],J=[{alias:null,args:null,concreteType:"Cart",kind:"LinkedField",name:"cart",plural:!1,selections:[Z,M,B,oe,w],storageKey:null}],Q={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},O=[Q,{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],ne=[Q],me=[{alias:null,args:null,concreteType:"AtomicPatch",kind:"LinkedField",name:"patch",plural:!1,selections:[{alias:null,args:null,concreteType:"PatchOperation",kind:"LinkedField",name:"operations",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"path",storageKey:null}],storageKey:null}],storageKey:null}],ke={alias:null,args:null,kind:"ScalarField",name:"variantId",storageKey:null},se=[r,I],Y=[{alias:null,args:null,kind:"ScalarField",name:"x",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"y",storageKey:null}],V=[S];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"useEndUserEventsQuery",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[l],kind:"FragmentSpread",name:"useEndUserEventsEndUserFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"useEndUserEventsQuery",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[o,r,{kind:"InlineFragment",selections:[{alias:null,args:[l,{kind:"Literal",name:"eventTypes",value:["audienceMatched","campaignDetected","cartAbandoned","cartModified","cartViewed","checkoutStarted","eventOccurred","goalCompleted","interestShown","leadGenerated","linkOpened","orderPlaced","pageLoaded","pageOpened","postViewed","productViewed","sessionAttributesChanged","sessionStarted","slotPersonalized","tabOpened","tabUrlChanged","tabVisibilityChanged","userClicked","userProfileChanged","userScrolled","userSignedIn","userSignedOut","userSignedUp"]},{kind:"Literal",name:"first",value:30}
435],concreteType:"EndUserEventConnection",kind:"LinkedField",name:"endUserEvents",plural:!1,selections:[{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},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"EndUserEventEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"EndUserEvent",kind:"LinkedField",name:"node",plural:!1,selections:[r,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"systemTimestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isSessionLast",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUserFirst",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"organizationId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"workspaceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"applicationId",storageKey:null},u,{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"session",plural:!1,selections:[r,y,k,v,{alias:null,args:null,kind:"ScalarField",name:"isClosed",storageKey:null},{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[{alias:null,args:null,concreteType:"Browser",kind:"LinkedField",name:"browser",plural:!1,selections:g,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Location",kind:"LinkedField",name:"location",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"city",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"regionCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"timezone",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"application",plural:!1,selections:[o,I,{alias:null,args:null,kind:"ScalarField",name:"environment",storageKey:null},r],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"previousSessions",plural:!0,selections:[r,y,u,v,C],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"nextSession",plural:!1,selections:[r,y,u,k,C],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payload",plural:!1,selections:[o,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audiences",plural:!0,selections:A,storageKey:null}],type:"AudienceMatchedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"EndUserEventCampaign",kind:"LinkedField",name:"campaign",plural:!1,selections:[I,{alias:null,args:null,kind:"ScalarField",name:"source",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"medium",storageKey:null}],storageKey:null}],type:"CampaignDetectedPayload",abstractKey:null},{kind:"InlineFragment",selections:j,type:"CartAbandonedPayload",abstractKey:null},{kind:"InlineFragment",selections:j,type:"CartModifiedPayload",abstractKey:null},{kind:"InlineFragment",selections:J,type:"CartViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:J,type:"CheckoutStartedPayload",abstractKey:null},{kind:"InlineFragment",selections:g,type:"EventOccurredPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"goalId",storageKey:null}],type:"GoalCompletedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"interests",storageKey:null}],type:"InterestShownPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"leadId",storageKey:null}],type:"LeadGeneratedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],type:"LinkOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OrderDetails",kind:"LinkedField",name:"order",plural:!1,selections:[Z,M,B,oe,{alias:null,args:null,concreteType:"OrderItem",kind:"LinkedField",name:"items",plural:!0,selections:N,storageKey:null}],storageKey:null}],type:"OrderPlacedPayload",abstractKey:null},{kind:"InlineFragment",selections:O,type:"PageLoadedPayload",abstractKey:null},{kind:"InlineFragment",selections:ne,type:"PageOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"PostDetails",kind:"LinkedField",name:"post",plural:!1,selections:O,storageKey:null}],type:"PostViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"ProductDetails",kind:"LinkedField",name:"product",plural:!1,selections:[I,{alias:null,args:null,kind:"ScalarField",name:"displayPrice",storageKey:null},B,Q],storageKey:null}],type:"ProductViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:me,type:"SessionAttributesChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SlotPersonalization",kind:"LinkedField",name:"personalization",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slotId",storageKey:null},{alias:null,args:null,concreteType:"SlotVersion",kind:"LinkedField",name:"slotVersion",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"majorVersion",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"audienceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"experienceId",storageKey:null},{alias:null,args:null,concreteType:"AssignedVariant",kind:"LinkedField",name:"assignedVariant",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"experimentId",storageKey:null},ke],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Slot",kind:"LinkedField",name:"slot",plural:!1,selections:A,storageKey:null},{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audience",plural:!1,selections:A,storageKey:null},{alias:null,args:null,concreteType:"Experience",kind:"LinkedField",name:"experience",plural:!1,selections:se,storageKey:null},{alias:null,args:null,concreteType:"Experiment",kind:"LinkedField",name:"experiment",plural:!1,selections:se,storageKey:null},{alias:null,args:null,concreteType:"Variant",kind:"LinkedField",name:"variant",plural:!1,selections:[ke,I],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"previewToken",storageKey:null}],type:"SlotPersonalizedPayload",abstractKey:null},{kind:"InlineFragment",selections:ne,type:"TabUrlChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"visibility",storageKey:null}],type:"TabVisibilityChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:me,type:"UserProfileChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Size",kind:"LinkedField",name:"surfaceSize",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Point",kind:"LinkedField",name:"start",plural:!1,selections:Y,storageKey:null},{alias:null,args:null,concreteType:"Point",kind:"LinkedField",name:"end",plural:!1,selections:Y,storageKey:null}],type:"UserScrolledPayload",abstractKey:null},{kind:"InlineFragment",selections:V,type:"UserSignedInPayload",abstractKey:null},{kind:"InlineFragment",selections:V,type:"UserSignedOutPayload",abstractKey:null},{kind:"InlineFragment",selections:V,type:"UserSignedUpPayload",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"context",plural:!1,selections:[o,{kind:"InlineFragment",selections:[Q,{alias:null,args:null,kind:"ScalarField",name:"timeZone",storageKey:null}],type:"WebContext",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"EndUser",abstractKey:null}],storageKey:null}]}
435,params:{cacheID:"43feae792d5d78730eae2bf3c8c4fdb0",id:null,metadata:{},name:"useEndUserEventsQuery",operationKind:"query",text:`query useEndUserEventsQuery(
436  $aroundTime: Instant = null
437  $id: ID!
438) {
439  node(id: $id) {
440    __typename
441    ...useEndUserEventsEndUserFragment_3hD2t9
442    id
443  }
444}
445
446fragment endUserEventsFragment_3low1V on EndUser {
447  endUserEvents(first: 30, aroundTime: $aroundTime, eventTypes: [audienceMatched, campaignDetected, cartAbandoned, cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, leadGenerated, linkOpened, orderPlaced, pageLoaded, pageOpened, postViewed, productViewed, sessionAttributesChanged, sessionStarted, slotPersonalized, tabOpened, tabUrlChanged, tabVisibilityChanged, userClicked, userProfileChanged, userScrolled, userSignedIn, userSignedOut, userSignedUp]) {
448    pageInfo {
449      endCursor
450      hasNextPage
451      hasPreviousPage
452      startCursor
453    }
454    edges {
455      node {
456        id
457        type
458        systemTimestamp
459        isSessionLast
460        isUserFirst
461        organizationId
462        workspaceId
463        applicationId
464        userId
465        session {
466          id
467          index
468          windowStart
469          windowEnd
470          isClosed
471          client {
472            browser {
473              name
474            }
475          }
476          location {
477            city
478            country
479            regionCode
480            timezone
481          }
482          application {
483            __typename
484            name
485            environment
486            id
487          }
488          previousSessions {
489            id
490            index
491            userId
492            windowEnd
493            endUser {
494              externalUserId
495              firstName
496              lastName
497              avatar
498              id
499            }
500          }
501          nextSession {
502            id
503            index
504            userId
505            windowStart
506            endUser {
507              externalUserId
508              firstName
509              lastName
510              avatar
511              id
512            }
513          }
514        }
515        payload {
516          __typename
517          ... on AudienceMatchedPayload {
518            __typename
519            audiences {
520              customId
521              name
522              id
523            }
524          }
525          ... on CampaignDetectedPayload {
526            __typename
527            campaign {
528              name
529              source
530              medium
531            }
532          }
533          ... on CartAbandonedPayload {
534            __typename
535            cart {
536              total
537              coupon
538              currency
539              shippingPrice
540              lastUpdateTime
541              items {
542                index
543              }
544            }
545          }
546          ... on CartModifiedPayload {
547            __typename
548            cart {
549              total
550              coupon
551              currency
552              shippingPrice
553              lastUpdateTime
554              items {
555                index
556              }
557            }
558          }
559          ... on CartViewedPayload {
560            __typename
561            cart {
562              total
563              coupon
564              currency
565              shippingPrice
566              items {
567                index
568              }
569            }
570          }
571          ... on CheckoutStartedPayload {
572            __typename
573            cart {
574              total
575              coupon
576              currency
577              shippingPrice
578              items {
579                index
580              }
581            }
582          }
583          ... on EventOccurredPayload {
584            __typename
585            name
586          }
587          ... on GoalCompletedPayload {
588            __typename
589            goalId
590          }
591          ... on InterestShownPayload {
592            __typename
593            interests
594          }
595          ... on LeadGeneratedPayload {
596            __typename
597            leadId
598          }
599          ... on LinkOpenedPayload {
600            __typename
601            link
602          }
603          ... on OrderPlacedPayload {
604            __typename
605            order {
606              total
607              coupon
608              currency
609              shippingPrice
610              items {
611                index
612              }
613            }
614          }
615          ... on PageLoadedPayload {
616            __typename
617            url
618            title
619          }
620          ... on PageOpenedPayload {
621            __typename
622            url
623          }
624          ... on PostViewedPayload {
625            __typename
626            post {
627              url
628              title
629            }
630          }
631          ... on ProductViewedPayload {
632            __typename
633            product {
634              name
635              displayPrice
636              currency
637              url
638            }
639          }
640          ... on SessionAttributesChangedPayload {
641            __typename
642            patch {
643              operations {
644                path
645              }
646            }
647          }
648          ... on SessionStartedPayload {
649            __typename
650          }
651          ... on SlotPersonalizedPayload {
652            __typename
653            personalization {
654              slotId
655              slotVersion {
656                majorVersion
657              }
658              audienceId
659              experienceId
660              assignedVariant {
661                experimentId
662                variantId
663              }
664            }
665            slot {
666              customId
667              name
668              id
669            }
670            audience {
671              customId
672              name
673              id
674            }
675            experience {
676              id
677              name
678            }
679            experiment {
680              id
681              name
682            }
683            variant {
684              variantId
685              name
686            }
687            previewToken
688          }
689          ... on TabOpenedPayload {
690            __typename
691          }
692          ... on TabUrlChangedPayload {
693            __typename
694            url
695          }
696          ... on TabVisibilityChangedPayload {
697            __typename
698            visibility
699          }
700          ... on UserProfileChangedPayload {
701            __typename
702            patch {
703              operations {
704                path
705              }
706            }
707          }
708          ... on UserClickedPayload {
709            __typename
710          }
711          ... on UserScrolledPayload {
712            __typename
713            surfaceSize {
714              width
715              height
716            }
717            start {
718              x
719              y
720            }
721            end {
722              x
723              y
724            }
725          }
726          ... on UserSignedInPayload {
727            __typename
728            externalUserId
729          }
730          ... on UserSignedOutPayload {
731            __typename
732            externalUserId
733          }
734          ... on UserSignedUpPayload {
735            __typename
736            externalUserId
737          }
738        }
739        context {
740          __typename
741          ... on WebContext {
742            __typename
743            url
744            timeZone
745          }
746        }
747      }
748    }
749  }
750}
751
752fragment useEndUserEventsEndUserFragment_3hD2t9 on EndUser {
753  id
754  ...endUserEventsFragment_3low1V
755}
756`}}}();Hs.hash="630837b4a493e992ac29fd3b692b4918";const Ws=function(){var e={defaultValue:null,kind:"LocalArgument",name:"aroundTime"},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},l={kind:"Variable",name:"aroundTime",variableName:"aroundTime"},o={alias:null,args:null,kind:"ScalarField",name:"userId",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"windowStart",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"windowEnd",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"externalUserId",storageKey:null},I={alias:null,args:null,concreteType:"EndUser",kind:"LinkedField",name:"endUser",plural:!1,selections:[v,{alias:null,args:null,kind:"ScalarField",name:"firstName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lastName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"avatar",storageKey:null}],storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},S=[{alias:null,args:null,kind:"ScalarField",name:"customId",storageKey:null},k],C={alias:null,args:null,kind:"ScalarField",name:"total",storageKey:null},A={alias:null,args:null,kind:"ScalarField",name:"coupon",storageKey:null},Z={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},M={alias:null,args:null,kind:"ScalarField",name:"shippingPrice",storageKey:null},B=[r],oe={alias:null,args:null,concreteType:"CartItem",kind:"LinkedField",name:"items",plural:!0,selections:B,storageKey:null},N=[g,{alias:null,args:null,concreteType:"Cart",kind:"LinkedField",name:"cart",plural:!1,selections:[C,A,Z,M,{alias:null,args:null,kind:"ScalarField",name:"lastUpdateTime",storageKey:null},oe],storageKey:null}],w=[g,{alias:null,args:null,concreteType:"Cart",kind:"LinkedField",name:"cart",plural:!1,selections:[C,A,Z,M,oe],storageKey:null}],j={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},J={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},Q=[g,j],O=[g,{alias:null,args:null,concreteType:"AtomicPatch",kind:"LinkedField",name:"patch",plural:!1,selections:[{alias:null,args:null,concreteType:"PatchOperation",kind:"LinkedField",name:"operations",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"path",storageKey:null}],storageKey:null}],storageKey:null}],ne=[g],me={alias:null,args:null,kind:"ScalarField",name:"variantId",storageKey:null},ke=[a,k],se=[{alias:null,args:null,kind:"ScalarField",name:"x",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"y",storageKey:null}],Y=[g,v];return{argumentDefinitions:[e],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:["node"],operation:Hs,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"useEndUserEventsEndUserFragment",selections:[a,{kind:"InlineDataFragmentSpread",name:"endUserEventsFragment",selections:[{alias:null,args:[{kind:"V
756ariable",name:"after",variableName:"after"},l,{kind:"Variable",name:"before",variableName:"before"},{kind:"Variable",name:"eventTypes",variableName:"eventTypes"},{kind:"Variable",name:"first",variableName:"first"},{kind:"Variable",name:"last",variableName:"last"}],concreteType:"EndUserEventConnection",kind:"LinkedField",name:"endUserEvents",plural:!1,selections:[{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},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"EndUserEventEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"EndUserEvent",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"systemTimestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isSessionLast",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isUserFirst",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"organizationId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"workspaceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"applicationId",storageKey:null},o,{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"session",plural:!1,selections:[a,r,u,y,{alias:null,args:null,kind:"ScalarField",name:"isClosed",storageKey:null},{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[{alias:null,args:null,concreteType:"Browser",kind:"LinkedField",name:"browser",plural:!1,selections:[k],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Location",kind:"LinkedField",name:"location",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"city",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"regionCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"timezone",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"application",plural:!1,selections:[k,{alias:null,args:null,kind:"ScalarField",name:"environment",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"previousSessions",plural:!0,selections:[a,r,o,y,I],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"nextSession",plural:!1,selections:[a,r,o,u,I],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payload",plural:!1,selections:[{kind:"InlineFragment",selections:[g,{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audiences",plural:!0,selections:S,storageKey:null}],type:"AudienceMatchedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,concreteType:"EndUserEventCampaign",kind:"LinkedField",name:"campaign",plural:!1,selections:[k,{alias:null,args:null,kind:"ScalarField",name:"source",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"medium",storageKey:null}],storageKey:null}],type:"CampaignDetectedPayload",abstractKey:null},{kind:"InlineFragment",selections:N,type:"CartAbandonedPayload",abstractKey:null},{kind:"InlineFragment",selections:N,type:"CartModifiedPayload",abstractKey:null},{kind:"InlineFragment",selections:w,type:"CartViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:w,type:"CheckoutStartedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,k],type:"EventOccurredPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,kind:"ScalarField",name:"goalId",storageKey:null}],type:"GoalCompletedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,kind:"ScalarField",name:"interests",storageKey:null}],type:"InterestShownPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,kind:"ScalarField",name:"leadId",storageKey:null}],type:"LeadGeneratedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null}],type:"LinkOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,concreteType:"OrderDetails",kind:"LinkedField",name:"order",plural:!1,selections:[C,A,Z,M,{alias:null,args:null,concreteType:"OrderItem",kind:"LinkedField",name:"items",plural:!0,selections:B,storageKey:null}],storageKey:null}],type:"OrderPlacedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,j,J],type:"PageLoadedPayload",abstractKey:null},{kind:"InlineFragment",selections:Q,type:"PageOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,concreteType:"PostDetails",kind:"LinkedField",name:"post",plural:!1,selections:[j,J],storageKey:null}],type:"PostViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,concreteType:"ProductDetails",kind:"LinkedField",name:"product",plural:!1,selections:[k,{alias:null,args:null,kind:"ScalarField",name:"displayPrice",storageKey:null},Z,j],storageKey:null}],type:"ProductViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:O,type:"SessionAttributesChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:ne,type:"SessionStartedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,concreteType:"SlotPersonalization",kind:"LinkedField",name:"personalization",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slotId",storageKey:null},{alias:null,args:null,concreteType:"SlotVersion",kind:"LinkedField",name:"slotVersion",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"majorVersion",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"audienceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"experienceId",storageKey:null},{alias:null,args:null,concreteType:"AssignedVariant",kind:"LinkedField",name:"assignedVariant",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"experimentId",storageKey:null},me],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Slot",kind:"LinkedField",name:"slot",plural:!1,selections:S,storageKey:null},{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audience",plural:!1,selections:S,storageKey:null},{alias:null,args:null,concreteType:"Experience",kind:"LinkedField",name:"experience",plural:!1,selections:ke,storageKey:null},{alias:null,args:null,concreteType:"Experiment",kind:"LinkedField",name:"experiment",plural:!1,selections:ke,storageKey:null},{alias:null,args:null,concreteType:"Variant",kind:"LinkedField",name:"variant",plural:!1,selections:[me,k],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"previewToken",storageKey:null}],type:"SlotPersonalizedPayload",abstractKey:null},{kind:"InlineFragment",selections:ne,type:"TabOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:Q,type:"TabUrlChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,kind:"ScalarField",name:"visibility",storageKey:null}],type:"TabVisibilityChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:O,type:"UserProfileChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:ne,type:"UserClickedPayload",abstractKey:null},{kind:"InlineFragment",selections:[g,{alias:null,args:null,concreteType:"Size",kind:"LinkedField",name:"surfaceSize",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Point",kind:"LinkedField",name:"start",plural:!1,selections:se,storageKey:null},{alias:null,args:null,concreteType:"Point",kind:"LinkedField",name:"end",plural:!1,selections:se,storageKey:null}],type:"UserScrolledPayload",abstractKey:null},{kind:"InlineFragment",selections:Y,type:"UserSignedInPayload",abstractKey:null},{kind:"InlineFragment",selections:Y,type:"UserSignedOutPayload",abstractKey:null},{kind:"InlineFragment",selections:Y,type:"UserSignedUpPayload",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"context",plural:!1,selections:[{kind:"InlineFragment",selections:[g,j,{alias:null,args:null,kind:"ScalarField",name:"timeZone",storageKey:null}],type:"WebContext",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],args:[l,{kind:"Literal",name:"first",value:30}],argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"after"},e,{defaultValue:null,kind:"LocalArgument",name:"before"},{defaultValue:["audienceMatched","campaignDetected","cartAbandoned","cartModified","cartViewed","checkoutStarted","eventOccurred","goalCompleted","interestShown","leadGenerated","linkOpened","orderPlaced","pageLoaded","pageOpened","postViewed","productViewed","sessionAttributesChanged","sessionStarted","slotPersonalized","tabOpened","tabUrlChanged","tabVisibilityChanged","userClicked","userProfileChanged","userScrolled","userSignedIn","userSignedOut","userSignedUp"],kind:"LocalArgument",name:"eventTypes"},{defaultValue:null,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"last"}]}],type:"EndUser",abstractKey:null}}();Ws.hash="630837b4a493e992ac29fd3b692b4918";const Gs={kind:"InlineDataFragment",name:"endUserEventsFragment"};Gs.hash="bb40b17b9b5f6cf4f6c3fbd9c2d407ce";const Zs=Gs,Qs=function(){var e={defaultValue:null,kind:"LocalArgument",name:"after"},a={defaultValue:null,kind:"LocalArgument",name:"aroundTime"},l={defaultValue:null,kind:"LocalArgument",name:"before"},o={defaultValue:null,kind:"LocalArgument",name:"endUserId"},r={defaultValue:null,kind:"LocalArgument",name:"first"},u={defaultValue:null,kind:"LocalArgument",name:"last"},y={defaultValue:null,kind:"LocalArgument",name:"organizationSlug"},k={defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}
756,v=[{kind:"Variable",name:"slug",variableName:"organizationSlug"}],I=[{kind:"Variable",name:"slug",variableName:"workspaceSlug"}],g=[{kind:"Variable",name:"id",variableName:"endUserId"}],S={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},C={kind:"Variable",name:"after",variableName:"after"},A={kind:"Variable",name:"aroundTime",variableName:"aroundTime"},Z={kind:"Variable",name:"before",variableName:"before"},M={kind:"Variable",name:"first",variableName:"first"},B={kind:"Variable",name:"last",variableName:"last"},oe={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},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null}],storageKey:null},N={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"systemTimestamp",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"isSessionLast",storageKey:null},J={alias:null,args:null,kind:"ScalarField",name:"isUserFirst",storageKey:null},Q={alias:null,args:null,kind:"ScalarField",name:"organizationId",storageKey:null},O={alias:null,args:null,kind:"ScalarField",name:"workspaceId",storageKey:null},ne={alias:null,args:null,kind:"ScalarField",name:"applicationId",storageKey:null},me={alias:null,args:null,kind:"ScalarField",name:"userId",storageKey:null},ke={alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null},se={alias:null,args:null,kind:"ScalarField",name:"windowStart",storageKey:null},Y={alias:null,args:null,kind:"ScalarField",name:"windowEnd",storageKey:null},V={alias:null,args:null,kind:"ScalarField",name:"isClosed",storageKey:null},be={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},x=[be],he={alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[{alias:null,args:null,concreteType:"Browser",kind:"LinkedField",name:"browser",plural:!1,selections:x,storageKey:null}],storageKey:null},Ke={alias:null,args:null,concreteType:"Location",kind:"LinkedField",name:"location",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"city",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"regionCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"timezone",storageKey:null}],storageKey:null},Oe={alias:null,args:null,kind:"ScalarField",name:"environment",storageKey:null},ee={alias:null,args:null,kind:"ScalarField",name:"externalUserId",storageKey:null},Mn={alias:null,args:null,kind:"ScalarField",name:"firstName",storageKey:null},An={alias:null,args:null,kind:"ScalarField",name:"lastName",storageKey:null},R={alias:null,args:null,kind:"ScalarField",name:"avatar",storageKey:null},Ne={alias:null,args:null,concreteType:"EndUser",kind:"LinkedField",name:"endUser",plural:!1,selections:[ee,Mn,An,R],storageKey:null},ie={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},We={alias:null,args:null,kind:"ScalarField",name:"customId",storageKey:null},ve=[We,be],It={alias:null,args:null,concreteType:"EndUserEventCampaign",kind:"LinkedField",name:"campaign",plural:!1,selections:[be,{alias:null,args:null,kind:"ScalarField",name:"source",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"medium",storageKey:null}],storageKey:null},yn={alias:null,args:null,kind:"ScalarField",name:"total",storageKey:null},Ie={alias:null,args:null,kind:"ScalarField",name:"coupon",storageKey:null},re={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},Pn={alias:null,args:null,kind:"ScalarField",name:"shippingPrice",storageKey:null},Me=[ke],za={alias:null,args:null,concreteType:"CartItem",kind:"LinkedField",name:"items",plural:!0,selections:Me,storageKey:null},$a={alias:null,args:null,concreteType:"Cart",kind:"LinkedField",name:"cart",plural:!1,selections:[yn,Ie,re,Pn,{alias:null,args:null,kind:"ScalarField",name:"lastUpdateTime",storageKey:null},za],storageKey:null},In=[ie,$a],cn={alias:null,args:null,concreteType:"Cart",kind:"LinkedField",name:"cart",plural:!1,selections:[yn,Ie,re,Pn,za],storageKey:null},Tt=[ie,cn],Qt={alias:null,args:null,kind:"ScalarField",name:"goalId",storageKey:null},Ra={alias:null,args:null,kind:"ScalarField",name:"interests",storageKey:null},Yt={alias:null,args:null,kind:"ScalarField",name:"leadId",storageKey:null},Ct={alias:null,args:null,kind:"ScalarField",name:"link",storageKey:null},Je={alias:null,args:null,concreteType:"OrderDetails",kind:"LinkedField",name:"order",plural:!1,selections:[yn,Ie,re,Pn,{alias:null,args:null,concreteType:"OrderItem",kind:"LinkedField",name:"items",plural:!0,selections:Me,storageKey:null}],storageKey:null},un={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},Xt={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},Ce=[ie,un],Zn=[un,Xt],rn={alias:null,args:null,concreteType:"PostDetails",kind:"LinkedField",name:"post",plural:!1,selections:Zn,storageKey:null},en={alias:null,args:null,concreteType:"ProductDetails",kind:"LinkedField",name:"product",plural:!1,selections:[be,{alias:null,args:null,kind:"ScalarField",name:"displayPrice",storageKey:null},re,un],storageKey:null},Bn={alias:null,args:null,concreteType:"AtomicPatch",kind:"LinkedField",name:"patch",plural:!1,selections:[{alias:null,args:null,concreteType:"PatchOperation",kind:"LinkedField",name:"operations",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"path",storageKey:null}],storageKey:null}],storageKey:null},Nn=[ie,Bn],lt=[ie],En={alias:null,args:null,kind:"ScalarField",name:"variantId",storageKey:null},_t={alias:null,args:null,concreteType:"SlotPersonalization",kind:"LinkedField",name:"personalization",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"slotId",storageKey:null},{alias:null,args:null,concreteType:"SlotVersion",kind:"LinkedField",name:"slotVersion",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"majorVersion",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"audienceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"experienceId",storageKey:null},{alias:null,args:null,concreteType:"AssignedVariant",kind:"LinkedField",name:"assignedVariant",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"experimentId",storageKey:null},En],storageKey:null}],storageKey:null},ot=[S,be],Be={alias:null,args:null,concreteType:"Experience",kind:"LinkedField",name:"experience",plural:!1,selections:ot,storageKey:null},Jt={alias:null,args:null,concreteType:"Experiment",kind:"LinkedField",name:"experiment",plural:!1,selections:ot,storageKey:null},wt={alias:null,args:null,concreteType:"Variant",kind:"LinkedField",name:"variant",plural:!1,selections:[En,be],storageKey:null},qt={alias:null,args:null,kind:"ScalarField",name:"previewToken",storageKey:null},ea={alias:null,args:null,kind:"ScalarField",name:"visibility",storageKey:null},na={alias:null,args:null,concreteType:"Size",kind:"LinkedField",name:"surfaceSize",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null}],storageKey:null},ta=[{alias:null,args:null,kind:"ScalarField",name:"x",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"y",storageKey:null}],Ft={alias:null,args:null,concreteType:"Point",kind:"LinkedField",name:"start",plural:!1,selections:ta,storageKey:null},Da={alias:null,args:null,concreteType:"Point",kind:"LinkedField",name:"end",plural:!1,selections:ta,storageKey:null},Pt=[ie,ee],Qn={alias:null,args:null,kind:"ScalarField",name:"timeZone",storageKey:null},Et=["audienceMatched","campaignDetected","cartAbandoned","cartModified","cartViewed","checkoutStarted","eventOccurred","goalCompleted","interestShown","leadGenerated","linkOpened","orderPlaced","pageLoaded","pageOpened","postViewed","productViewed","sessionAttributesChanged","sessionStarted","slotPersonalized","tabOpened","tabUrlChanged","tabVisibilityChanged","userClicked","userProfileChanged","userScrolled","userSignedIn","userSignedOut","userSignedUp"],aa={alias:null,args:null,concreteType:"EndUser",kind:"LinkedField",name:"endUser",plural:!1,selections:[ee,Mn,An,R,S],storageKey:null},Yn=[We,be,S],Ua=[$a],sn=[cn],it=[un],jt=[Bn],la=[ee];return{fragment:{argumentDefinitions:[e,a,l,o,r,u,y,k],kind:"Fragment",metadata:null,name:"useEndUserEventsLoaderQuery",selections:[{kind:"RequiredField",field:{alias:null,args:v,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:I,concreteType:"Workspace",kind:"LinkedField",name:"workspace",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:g,concreteType:"EndUser",kind:"LinkedField",name:"endUser",plural:!1,selections:[S,{kind:"InlineDataFragmentSpread",name:"endUserEventsFragment",selections:[{alias:null,args:[C,A,Z,{kind:"V
756ariable",name:"eventTypes",variableName:"eventTypes"},M,B],concreteType:"EndUserEventConnection",kind:"LinkedField",name:"endUserEvents",plural:!1,selections:[oe,{alias:null,args:null,concreteType:"EndUserEventEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"EndUserEvent",kind:"LinkedField",name:"node",plural:!1,selections:[S,N,w,j,J,Q,O,ne,me,{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"session",plural:!1,selections:[S,ke,se,Y,V,he,Ke,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"application",plural:!1,selections:[be,Oe],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"previousSessions",plural:!0,selections:[S,ke,me,Y,Ne],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"nextSession",plural:!1,selections:[S,ke,me,se,Ne],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payload",plural:!1,selections:[{kind:"InlineFragment",selections:[ie,{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audiences",plural:!0,selections:ve,storageKey:null}],type:"AudienceMatchedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,It],type:"CampaignDetectedPayload",abstractKey:null},{kind:"InlineFragment",selections:In,type:"CartAbandonedPayload",abstractKey:null},{kind:"InlineFragment",selections:In,type:"CartModifiedPayload",abstractKey:null},{kind:"InlineFragment",selections:Tt,type:"CartViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:Tt,type:"CheckoutStartedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,be],type:"EventOccurredPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,Qt],type:"GoalCompletedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,Ra],type:"InterestShownPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,Yt],type:"LeadGeneratedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,Ct],type:"LinkOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,Je],type:"OrderPlacedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,un,Xt],type:"PageLoadedPayload",abstractKey:null},{kind:"InlineFragment",selections:Ce,type:"PageOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,rn],type:"PostViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,en],type:"ProductViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:Nn,type:"SessionAttributesChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:lt,type:"SessionStartedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,_t,{alias:null,args:null,concreteType:"Slot",kind:"LinkedField",name:"slot",plural:!1,selections:ve,storageKey:null},{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audience",plural:!1,selections:ve,storageKey:null},Be,Jt,wt,qt],type:"SlotPersonalizedPayload",abstractKey:null},{kind:"InlineFragment",selections:lt,type:"TabOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:Ce,type:"TabUrlChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,ea],type:"TabVisibilityChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:Nn,type:"UserProfileChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:lt,type:"UserClickedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ie,na,Ft,Da],type:"UserScrolledPayload",abstractKey:null},{kind:"InlineFragment",selections:Pt,type:"UserSignedInPayload",abstractKey:null},{kind:"InlineFragment",selections:Pt,type:"UserSignedOutPayload",abstractKey:null},{kind:"InlineFragment",selections:Pt,type:"UserSignedUpPayload",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"context",plural:!1,selections:[{kind:"InlineFragment",selections:[ie,un,Qn],type:"WebContext",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],args:[C,A,Z,M,B],argumentDefinitions:[e,a,l,{defaultValue:Et,kind:"LocalArgument",name:"eventTypes"},r,u]}],storageKey:null},action:"THROW"}],storageKey:null},action:"THROW"}],storageKey:null},action:"THROW"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[y,k,o,r,e,l,u,a],kind:"Operation",name:"useEndUserEventsLoaderQuery",selections:[{alias:null,args:v,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{alias:null,args:I,concreteType:"Workspace",kind:"LinkedField",name:"workspace",plural:!1,selections:[{alias:null,args:g,concreteType:"EndUser",kind:"LinkedField",name:"endUser",plural:!1,selections:[S,{alias:null,args:[C,A,Z,{kind:"Literal",name:"eventTypes",value:Et}
756,M,B],concreteType:"EndUserEventConnection",kind:"LinkedField",name:"endUserEvents",plural:!1,selections:[oe,{alias:null,args:null,concreteType:"EndUserEventEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"EndUserEvent",kind:"LinkedField",name:"node",plural:!1,selections:[S,N,w,j,J,Q,O,ne,me,{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"session",plural:!1,selections:[S,ke,se,Y,V,he,Ke,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"application",plural:!1,selections:[ie,be,Oe,S],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"previousSessions",plural:!0,selections:[S,ke,me,Y,aa],storageKey:null},{alias:null,args:null,concreteType:"WebSessionSummary",kind:"LinkedField",name:"nextSession",plural:!1,selections:[S,ke,me,se,aa],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payload",plural:!1,selections:[ie,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audiences",plural:!0,selections:Yn,storageKey:null}],type:"AudienceMatchedPayload",abstractKey:null},{kind:"InlineFragment",selections:[It],type:"CampaignDetectedPayload",abstractKey:null},{kind:"InlineFragment",selections:Ua,type:"CartAbandonedPayload",abstractKey:null},{kind:"InlineFragment",selections:Ua,type:"CartModifiedPayload",abstractKey:null},{kind:"InlineFragment",selections:sn,type:"CartViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:sn,type:"CheckoutStartedPayload",abstractKey:null},{kind:"InlineFragment",selections:x,type:"EventOccurredPayload",abstractKey:null},{kind:"InlineFragment",selections:[Qt],type:"GoalCompletedPayload",abstractKey:null},{kind:"InlineFragment",selections:[Ra],type:"InterestShownPayload",abstractKey:null},{kind:"InlineFragment",selections:[Yt],type:"LeadGeneratedPayload",abstractKey:null},{kind:"InlineFragment",selections:[Ct],type:"LinkOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[Je],type:"OrderPlacedPayload",abstractKey:null},{kind:"InlineFragment",selections:Zn,type:"PageLoadedPayload",abstractKey:null},{kind:"InlineFragment",selections:it,type:"PageOpenedPayload",abstractKey:null},{kind:"InlineFragment",selections:[rn],type:"PostViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:[en],type:"ProductViewedPayload",abstractKey:null},{kind:"InlineFragment",selections:jt,type:"SessionAttributesChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[_t,{alias:null,args:null,concreteType:"Slot",kind:"LinkedField",name:"slot",plural:!1,selections:Yn,storageKey:null},{alias:null,args:null,concreteType:"Audience",kind:"LinkedField",name:"audience",plural:!1,selections:Yn,storageKey:null},Be,Jt,wt,qt],type:"SlotPersonalizedPayload",abstractKey:null},{kind:"InlineFragment",selections:it,type:"TabUrlChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[ea],type:"TabVisibilityChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:jt,type:"UserProfileChangedPayload",abstractKey:null},{kind:"InlineFragment",selections:[na,Ft,Da],type:"UserScrolledPayload",abstractKey:null},{kind:"InlineFragment",selections:la,type:"UserSignedInPayload",abstractKey:null},{kind:"InlineFragment",selections:la,type:"UserSignedOutPayload",abstractKey:null},{kind:"InlineFragment",selections:la,type:"UserSignedUpPayload",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"context",plural:!1,selections:[ie,{kind:"InlineFragment",selections:[un,Qn],type:"WebContext",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},S],storageKey:null},S],storageKey:null}]},params:{cacheID:"6c9cd97f0648f62c3858abd8259e72c8",id:null,metadata:{},name:"useEndUserEventsLoaderQuery",operationKind:"query",text:`query useEndUserEventsLoaderQuery(
757  $organizationSlug: ReadableId!
758  $workspaceSlug: ReadableId!
759  $endUserId: EndUserId!
760  $first: Int
761  $after: String
762  $before: String
763  $last: Int
764  $aroundTime: Instant
765) {
766  organization(slug: $organizationSlug) {
767    workspace(slug: $workspaceSlug) {
768      endUser(id: $endUserId) {
769        id
770        ...endUserEventsFragment_V8okG
771      }
772      id
773    }
774    id
775  }
776}
777
778fragment endUserEventsFragment_V8okG on EndUser {
779  endUserEvents(first: $first, after: $after, before: $before, last: $last, aroundTime: $aroundTime, eventTypes: [audienceMatched, campaignDetected, cartAbandoned, cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, leadGenerated, linkOpened, orderPlaced, pageLoaded, pageOpened, postViewed, productViewed, sessionAttributesChanged, sessionStarted, slotPersonalized, tabOpened, tabUrlChanged, tabVisibilityChanged, userClicked, userProfileChanged, userScrolled, userSignedIn, userSignedOut, userSignedUp]) {
780    pageInfo {
781      endCursor
782      hasNextPage
783      hasPreviousPage
784      startCursor
785    }
786    edges {
787      node {
788        id
789        type
790        systemTimestamp
791        isSessionLast
792        isUserFirst
793        organizationId
794        workspaceId
795        applicationId
796        userId
797        session {
798          id
799          index
800          windowStart
801          windowEnd
802          isClosed
803          client {
804            browser {
805              name
806            }
807          }
808          location {
809            city
810            country
811            regionCode
812            timezone
813          }
814          application {
815            __typename
816            name
817            environment
818            id
819          }
820          previousSessions {
821            id
822            index
823            userId
824            windowEnd
825            endUser {
826              externalUserId
827              firstName
828              lastName
829              avatar
830              id
831            }
832          }
833          nextSession {
834            id
835            index
836            userId
837            windowStart
838            endUser {
839              externalUserId
840              firstName
841              lastName
842              avatar
843              id
844            }
845          }
846        }
847        payload {
848          __typename
849          ... on AudienceMatchedPayload {
850            __typename
851            audiences {
852              customId
853              name
854              id
855            }
856          }
857          ... on CampaignDetectedPayload {
858            __typename
859            campaign {
860              name
861              source
862              medium
863            }
864          }
865          ... on CartAbandonedPayload {
866            __typename
867            cart {
868              total
869              coupon
870              currency
871              shippingPrice
872              lastUpdateTime
873              items {
874                index
875              }
876            }
877          }
878          ... on CartModifiedPayload {
879            __typename
880            cart {
881              total
882              coupon
883              currency
884              shippingPrice
885              lastUpdateTime
886              items {
887                index
888              }
889            }
890          }
891          ... on CartViewedPayload {
892            __typename
893            cart {
894              total
895              coupon
896              currency
897              shippingPrice
898              items {
899                index
900              }
901            }
902          }
903          ... on CheckoutStartedPayload {
904            __typename
905            cart {
906              total
907              coupon
908              currency
909              shippingPrice
910              items {
911                index
912              }
913            }
914          }
915          ... on EventOccurredPayload {
916            __typename
917            name
918          }
919          ... on GoalCompletedPayload {
920            __typename
921            goalId
922          }
923          ... on InterestShownPayload {
924            __typename
925            interests
926          }
927          ... on LeadGeneratedPayload {
928            __typename
929            leadId
930          }
931          ... on LinkOpenedPayload {
932            __typename
933            link
934          }
935          ... on OrderPlacedPayload {
936            __typename
937            order {
938              total
939              coupon
940              currency
941              shippingPrice
942              items {
943                index
944              }
945            }
946          }
947          ... on PageLoadedPayload {
948            __typename
949            url
950            title
951          }
952          ... on PageOpenedPayload {
953            __typename
954            url
955          }
956          ... on PostViewedPayload {
957            __typename
958            post {
959              url
960              title
961            }
962          }
963          ... on ProductViewedPayload {
964            __typename
965            product {
966              name
967              displayPrice
968              currency
969              url
970            }
971          }
972          ... on SessionAttributesChangedPayload {
973            __typename
974            patch {
975              operations {
976                path
977              }
978            }
979          }
980          ... on SessionStartedPayload {
981            __typename
982          }
983          ... on SlotPersonalizedPayload {
984            __typename
985            personalization {
986              slotId
987              slotVersion {
988                majorVersion
989              }
990              audienceId
991              experienceId
992              assignedVariant {
993                experimentId
994                variantId
995              }
996            }
997            slot {
998              customId
999              name
1000              id
1001            }
1002            audience {
1003              customId
1004              name
1005              id
1006            }
1007            experience {
1008              id
1009              name
1010            }
1011            experiment {
1012              id
1013              name
1014            }
1015            variant {
1016              variantId
1017              name
1018            }
1019            previewToken
1020          }
1021          ... on TabOpenedPayload {
1022            __typename
1023          }
1024          ... on TabUrlChangedPayload {
1025            __typename
1026            url
1027          }
1028          ... on TabVisibilityChangedPayload {
1029            __typename
1030            visibility
1031          }
1032          ... on UserProfileChangedPayload {
1033            __typename
1034            patch {
1035              operations {
1036                path
1037              }
1038            }
1039          }
1040          ... on UserClickedPayload {
1041            __typename
1042          }
1043          ... on UserScrolledPayload {
1044            __typename
1045            surfaceSize {
1046              width
1047              height
1048            }
1049            start {
1050              x
1051              y
1052            }
1053            end {
1054              x
1055              y
1056            }
1057          }
1058          ... on UserSignedInPayload {
1059            __typename
1060            externalUserId
1061          }
1062          ... on UserSignedOutPayload {
1063            __typename
1064            externalUserId
1065          }
1066          ... on UserSignedUpPayload {
1067            __typename
1068            externalUserId
1069          }
1070        }
1071        context {
1072          __typename
1073          ... on WebContext {
1074            __typename
1075            url
1076            timeZone
1077          }
1078        }
1079      }
1080    }
1081  }
1082}
1083`}}}();Qs.hash="c48f8d23079279349857c59bdfcba8cc";function a0(e){const{organizationSlug:a,workspaceSlug:l,endUserId:o}=e,r=Re.useRelayEnvironment();return{loadEvents:async u=>{const y=await Re.fetchQuery(r,Qs,{organizationSlug:a,workspaceSlug:l,endUserId:o,first:u.first,after:u.after,before:u.before,last:u.last,aroundTime:u.aroundTime}).toPromise();if(y===void 0)throw new Error("Failed to load events");const{endUser:k}=y.organization.workspace,{endUserEvents:v}=Re.readInlineData(Zs,k),{pageInfo:I}=v;return{events:Ta(v),pageInfo:I}}}}const l0=Number.parseInt(Xr("VITE_APP_USER_TIMELINE_POLL_INTERVAL"),10),Sa=30;function o0(e){const{endUserRef:a,workspaceRef:l,organizationRef:o,onLoadMore:r,initialTimestamp:u}=e,{locale:y}=Mo(),k=Re.useFragment(Ns,o),v=Re.useFragment(Vs,l),[I,g]=Re.useRefetchableFragment(Ws,a),{endUserEvents:S}=Re.readInlineData(Zs,I),[C,A]=ce.useState(S),[Z,M]=ce.useState(pn.Instant.now()),[B,oe]=ce.useState(!1),N=ce.useMemo(()=>Rt(Ta(C),y),[C,y]),w=ce.useRef({start:C.pageInfo.startCursor,end:C.pageInfo.endCursor}),j=a0({organizationSlug:k.slug,workspaceSlug:v.slug,endUserId:I.id}),J=ce.useCallback(O=>{w.current={...w.current,...O}},[]);ce.useEffect(()=>{const{startCursor:O,endCursor:ne}=C.pageInfo;J({start:O,end:ne})},[C.pageInfo,J]);const Q=ce.useCallback(()=>{ce.startTransition(()=>{g({},{fetchPolicy:"network-only"})})},[g]);return $u(Q,l0),ce.useEffect(()=>{if(B)return;const O=Ta(C),ne=Ta(S);d0(O,ne)&&oe(!0)},[B,C,S]),{stale:B,lastUpdate:Z,reset:()=>{oe(!1),M(pn.Instant.now()),A(S)},loaderProps:{initialPage:{events:N,hasNewer:C.pageInfo.hasPreviousPage,hasOlder:C.pageInfo.hasNextPage,...u!==void 0&&{anchorIndex:Hr(N,u)}},onJumpToDate:async O=>{const ke=pn.LocalDateTime.of(O,pn.LocalTime.endOfDay()).toInstant(pn.TimeZone.of(y.timeZone)).toEpochMillis(),se=await j.loadEvents({f
1083irst:Sa,aroundTime:ke}),{pageInfo:Y}=se,V=Rt(se.events,y),be={hasOlder:Y.hasNextPage,hasNewer:Y.hasPreviousPage,events:V,anchorIndex:Hr(V,ke)??V.length};return J({start:Y.startCursor,end:Y.endCursor}),r==null||r(be),be},onJumpToNewest:async()=>{const{events:O,pageInfo:ne}=await j.loadEvents({first:Sa}),me={hasOlder:ne.hasNextPage,hasNewer:ne.hasPreviousPage,events:Rt(O,y)};return J({start:ne.startCursor,end:ne.endCursor}),r==null||r(me),me},onJumpToOldest:async()=>{const{events:O,pageInfo:ne}=await j.loadEvents({last:Sa}),me=Rt(O,y),ke={hasOlder:ne.hasNextPage,hasNewer:ne.hasPreviousPage,events:me};return J({start:ne.startCursor,end:ne.endCursor}),r==null||r(ke),ke},onLoadNewer:async()=>{const{events:O,pageInfo:ne}=await j.loadEvents({last:Sa,before:w.current.start??void 0}),me={hasOlder:ne.hasNextPage,hasNewer:ne.hasPreviousPage,events:Rt(O,y)};return J({start:ne.startCursor}),r==null||r(me),me},onLoadOlder:async()=>{const{events:O,pageInfo:ne}=await j.loadEvents({first:Sa,after:w.current.end??void 0}),me={hasOlder:ne.hasNextPage,hasNewer:ne.hasPreviousPage,events:Rt(O,y)};return J({end:ne.endCursor}),r==null||r(me),me}}}}function Rt(e,a){const l=pn.TimeZone.UTC.getId();return e.map((o,r)=>{var C,A;const{__typename:u,...y}=o.payload,k={type:o.type,payload:y},v=i0(o.context),I=v?o.context.timeZone??void 0:void 0,g=((C=o.session)==null?void 0:C.location.timezone)??void 0,S=I??g??l;return{...k,id:o.id,index:r,timestamp:o.systemTimestamp,sessionIndex:((A=o.session)==null?void 0:A.index)??1,locale:a.code,timezone:S,isFirstEvent:o.isUserFirst,isLastSessionEvent:o.isSessionLast,organizationId:o.organizationId,workspaceId:o.workspaceId,applicationId:o.applicationId,userId:o.userId,...v&&{context:{url:o.context.url}},...o.session!==null&&{session:{id:o.session.id,closed:o.session.isClosed,browser:o.session.client.browser.name??void 0,duration:r0(o.session.windowStart,o.session.windowEnd),location:s0(o.session.location),previousSessions:o.session.previousSessions,windowStart:o.session.windowStart,windowEnd:o.session.windowEnd,...o.session.nextSession!==null&&{nextSession:o.session.nextSession},...o.session.application!==null&&{application:{name:o.session.application.name,environment:o.session.application.environment}}}}}})}function i0(e){return(e==null?void 0:e.__typename)==="WebContext"}function r0(e,a){return pn.Instant.ofEpochMilli(a).minusMillis(e).toEpochMillis()}function s0(e){const{city:a,country:l,regionCode:o}=e;if(a!==null&&l!==null&&o!==null)return{city:a,country:l,regionCode:o}}function Hr(e,a){const l=e.findIndex(o=>o.timestamp<=a);return l!==-1?l:void 0}function d0(e,a){return e.length!==a.length?!0:e.some((l,o)=>{var r;return(l==null?void 0:l.systemTimestamp)!==((r=a[o])==null?void 0:r.systemTimestamp)})}const Ys={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"RetentionLimitReachedOrganizationFragment",selections:[{args:null,kind:"FragmentSpread",name:"UpgradeBannerTimelineOrganizationFragment"}],type:"Organization",abstractKey:null};Ys.hash="55fb6e4e108204aeb788071d1229858e";const Xs={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"UpgradeBannerTimelineOrganizationFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,concreteType:"BillingSubscription",kind:"LinkedField",name:"subscription",plural:!1,selections:[{alias:null,args:null,concreteType:"PlanItem",kind:"LinkedField",name:"plan",plural:!1,selections:[{alias:null,args:null,concreteType:"Product",kind:"LinkedField",name:"product",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"PlanQuota",kind:"LinkedField",name:"quotas",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"userRetentionPeriod",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Organization",abstractKey:null};Xs.hash="9ab73c27ced6efa84f3bbbb6e528f361";const c0="/chunks/calendar-check-BF7C1LHg.svg",u0="admin:module.user.component.userProfileTimeline.retentionLimitReached.upgradeBanner",m0=e=>{const{organizationRef:a}=e,{t:l}=Xe(u0),o=Re.useFragment(Xs,a),{id:r,quotas:u}=o.subscription.plan.product,k=Du().getSubscriptionPlan(r);return m.jsx(Ru,{title:l(`plan.${k}.title`,{count:u.userRetentionPeriod}),description:l(`plan.${k}.description`,{count:u.userRetentionPeriod}),icon:m.jsx(Yc,{size:"sm",children:m.jsx("img",{src:c0,alt:l("icon.description")})}),actions:k===Uu.THIRD?m.jsx(Oo,{as:"a",size:"sm",variant:"secondary",href:Xc.CONTACT_SALES,target:"_blank",label:l("plan.third.cta"),width:"full"}):m.jsx(Mu,{as:Oo,size:"sm",variant:"secondary",label:l(`plan.${k}.cta`),width:"full",to:{path:"organization.billing.plans",params:{organizationSlug:o.slug}}})})},p0={position:"relative","& > .upgrade":{position:"absolute",top:bn({_:"initial",sm:"50%"}),bottom:bn({_:0,sm:"initial"}),left:0,transform:bn({_:"initial",sm:"translateY(-50%)"}),width:"100%"},"& .event:last-child":{display:bn({_:"initial",sm:"none"})}},g0="admin:module.user.component.userProfileTimeline.retentionLimitReached",f0=3,y0=e=>{const{organizationRef:a}=e,{locale:{timeZone:l}}=Mo(),{t:o}=Xe(g0),r=Re.useFragment(Ys,a),u=ce.useMemo(()=>pn.Instant.now(),[]);return m.jsxs(gn,{style:p0,children:[m.jsxs(Au,{children:[m.jsx("div",{className:"event",children:m.jsx(mn.TimelineExtraRow,{dot:"past",color:Lt.FIBONACCI,children:m.jsx(mn.EventCard,{color:Lt.FIBONACCI,timestamp:u.minusHours(2).toEpochMillis(),title:o("event.third.title"),timezone:l,subtitle:o("event.third.subtitle",{url:Xi})})})}),m.jsx("div",{className:"event",children:m.jsx(mn.TimelineExtraRow,{dot:"past",color:Lt.FIBONACCI,children:m.jsx(mn.EventCard,{color:Lt.FIBONACCI,timestamp:u.minusHours(4).toEpochMillis(),title:o("event.second.title"),timezone:l,subtitle:o("event.second.subtitle",{url:Xi})})})}),m.jsx("div",{className:"event",children:m.jsx(mn.TimelineExtraRow,{dot:"past",color:Lt.FIBONACCI,children:m.jsx(mn.EventCard,{color:Lt.FIBONACCI,timestamp:u.minusHours(6).toEpochMillis(),title:o("event.first.title"),timezone:l,subtitle:o("event.first.subtitle",{count:f0})})})})]}),m.jsx("div",{className:"upgrade",children:m.jsx(m0,{organizationRef:r})})]})}
1083,Js=function(){var e=[{kind:"Variable",name:"workspaceSlug",variableName:"workspaceSlug"}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"useEventRendererOrganizationFragment",selections:[{args:e,kind:"FragmentSpread",name:"EventCardOrganizationFragment"},{args:e,kind:"FragmentSpread",name:"NextSessionEventCardOrganizationFragment"},{args:e,kind:"FragmentSpread",name:"SessionMarkerOrganizationFragment"}],type:"Organization",abstractKey:null}}();Js.hash="8e075d7055702d17cc3d685495fb9886";const qs=function(){var e=[{kind:"Variable",name:"workspaceSlug",variableName:"workspaceSlug"}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"EventCardOrganizationFragment",selections:[{args:e,kind:"FragmentSpread",name:"EventDetailsDrawerOrganizationFragment"},{args:e,kind:"FragmentSpread",name:"SessionDetailsDrawerOrganizationFragment"}],type:"Organization",abstractKey:null}}();qs.hash="8d361ea5023df9fd623032a6209bc0f6";const _e="admin:module.user.component.userProfileTimeline.eventCard";var oi={};Object.defineProperty(oi,"__esModule",{value:!0});var Ia=oi.CurrencyCircleIcon=void 0;const Dt=m,h0=ce,v0=rl;Ia=oi.CurrencyCircleIcon=(0,h0.forwardRef)((e,a)=>(0,Dt.jsxs)(v0.SvgIcon,Object.assign({ref:a},e,{children:[(0,Dt.jsx)("g",{clipPath:"url(#clip0_26914_5807)",children:(0,Dt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.28249 3.28249C5.06408 1.50089 7.48044 0.5 10 0.5C12.5196 0.5 14.9359 1.50089 16.7175 3.28249C18.4991 5.06408 19.5 7.48044 19.5 10C19.5 12.5196 18.4991 14.9359 16.7175 16.7175C14.9359 18.4991 12.5196 19.5 10 19.5C7.48044 19.5 5.06408 18.4991 3.28249 16.7175C1.50089 14.9359 0.5 12.5196 0.5 10C0.5 7.48044 1.50089 5.06408 3.28249 3.28249ZM10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2ZM10.0055 3.86523C10.4197 3.86523 10.7555 4.20102 10.7555 4.61523V5.66396C11.2283 5.69154 11.6852 5.85088 12.0736 6.1254C12.5042 6.42966 12.8294 6.86033 13.0042 7.35771C13.1415 7.74849 12.9361 8.17662 12.5453 8.31396C12.1545 8.4513 11.7264 8.24585 11.5891 7.85507C11.5175 7.65138 11.3843 7.475 11.2079 7.35039C11.0316 7.22579 10.8209 7.15913 10.605 7.15966L10.6032 7.15966L9.2127 7.15966C9.00235 7.15931 8.7993 7.2368 8.64266 7.37721C8.48603 7.51761 8.38688 7.71101 8.3643 7.92015C8.34172 8.12929 8.39732 8.33938 8.52038 8.50998C8.64345 8.68058 8.82528 8.79962 9.03086 8.84417L9.03243 8.84451L11.1472 9.30759C11.7602 9.44209 12.3022 9.79829 12.6686 10.3077C13.035 10.8171 13.2004 11.4439 13.133 12.0678C13.0655 12.6917 12.7701 13.2687 12.3033 13.6881C11.8742 14.0735 11.3282 14.3008 10.7555 14.3354V15.3845C10.7555 15.7987 10.4197 16.1345 10.0055 16.1345C9.59126 16.1345 9.25547 15.7987 9.25547 15.3845V14.3357C8.78235 14.308 8.32526 14.1484 7.93669 13.8735C7.50612 13.5689 7.18104 13.1378 7.00655 12.6401C6.86951 12.2492 7.07531 11.8212 7.4662 11.6842C7.85709 11.5472 8.28505 11.753 8.42209 12.1438C8.49354 12.3477 8.62668 12.5242 8.80301 12.649C8.97935 12.7737 9.19015 12.8405 9.40615 12.84L9.40778 12.84L9.96017 12.84C9.97515 12.8391 9.99026 12.8387 10.0055 12.8387C10.0207 12.8387 10.0358 12.8391 10.0508 12.84H10.6026C10.8604 12.8399 11.1091 12.7445 11.3008 12.5722C11.4926 12.3999 11.6139 12.1629 11.6416 11.9066C11.6693 11.6504 11.6014 11.3929 11.4509 11.1836C11.3004 10.9743 11.0779 10.8281 10.8261 10.7728L8.71316 10.3101C8.71298 10.3101 8.71333 10.3102 8.71316 10.3101C8.14582 10.187 7.64351 9.85836 7.30387 9.38753C6.96412 8.91656 6.81064 8.33654 6.87296 7.75916C6.93529 7.18179 7.20902 6.64788 7.64145 6.26026C8.07373 5.87278 8.63403 5.65886 9.21453 5.65966C9.21474 5.65966 9.21432 5.65966 9.21453 5.65966H9.25547V4.61523C9.25547 4.20102 9.59126 3.86523 10.0055 3.86523ZM10.6032 5.65966V6.40966L10.6013 5.65966C10.6017 5.65966 10.6028 5.65966 10.6032 5.65966ZM9.40778 14.34V13.59L9.40941 14.34C9.40909 14.34 9.4081 14.34 9.40778 14.34Z",fill:"currentColor"})}),(0,Dt.jsx)("defs",{children:(0,Dt.jsx)("clipPath",{id:"clip0_26914_5807",children:(0,Dt.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})));const Xl="admin.module.user.component.userProfileTimeline.eventCard.eventDescription",k0={display:"inline-flex",verticalAlign:"middle",color:`${Xl}.icon`,"&.prefix":{marginRight:1},"&.suffix":{marginLeft:1},"&.plain":{display:"initial"}},ii={maxWidth:"50ch",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},x0={"& > a":{overflow:"hidden",display:"inline-flex",alignItems:"center",maxWidth:"100%","& .text":{display:"block",...ii},"&:hover .icon":{color:`${Xl}.iconHover`}}},b0={maxWidth:bn({_:"100%",md:"auto"}),display:"inline-flex",alignItems:"center","& > .overflow":{...ii,"& .plain":{whiteSpace:"nowrap"}}},S0={color:`${Xl}.emphasis`},I0={display:"inline-flex","& >
1083 strong":ii},T0={color:`${Xl}.divider`},C0={display:"inline-block",marginBottom:2},_0={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:2,verticalAlign:"middle",maxWidth:"100%","& > .previous":{maxWidth:"100%"},"& .previous:nth-last-of-type(n + 3), .previous:nth-last-of-type(n + 3) ~ .previous":{"&:not(:last-of-type)":{marginRight:-2}}},ht=e=>{const{icon:a,plain:l=!1,placement:o="prefix"}=e;return m.jsx(gn,{as:"span",style:k0,className:Jr(o,{plain:l}),children:m.jsx(a,{size:"xs",className:"icon"})})},nt=e=>{const{href:a,children:l}=e;return m.jsx(gn,{as:"strong",style:x0,children:m.jsxs(Jc,{href:a,target:"_blank",rel:"noopener noreferrer",onClick:o=>o.stopPropagation(),appearance:"neutral",children:[m.jsx("span",{className:"text",children:l}),m.jsx(ht,{icon:Ho,placement:"suffix"})]})})},Do=({children:e})=>m.jsx(gn,{as:"span",style:b0,children:m.jsx("span",{className:"overflow",children:m.jsx(Nu,{language:"none",code:String(e)})})}),Hn=({children:e})=>m.jsx(gn,{as:"strong",style:S0,children:m.jsx("i",{children:e})}),w0=({children:e})=>m.jsx(gn,{as:"span",style:I0,children:m.jsx("strong",{children:e})}),F0={display:"flex",marginTop:3,width:"fit-content"},P0="admin:module.user.component.userProfileTimeline.eventCard.previewLink",Wr=e=>{const{url:a}=e,{t:l}=Xe(P0);return m.jsx(Bo,{disabled:a!==void 0,content:l("tooltip.unavailable"),children:m.jsx(gn,{style:F0,children:m.jsx(Oo,{accessibleWhenDisabled:!0,as:a!==void 0?"a":"button",...a!==void 0&&{href:a,target:"_blank",rel:"noopener noreferrer"},onClick:o=>o.stopPropagation(),label:l("label"),size:"sm",variant:"secondary",icon:Ho,iconPlacement:"suffix",disabled:a===void 0})})})};function el(e){const{items:a,options:l,renderItem:o}=e,r=ce.useMemo(()=>E0(l).formatToParts(a.map((u,y)=>String(y))),[a,l]);return m.jsx(ce.Fragment,{children:r.map((u,y)=>{if(u.type!=="element")return m.jsx("span",{children:u.value},y);const k=a[Number.parseInt(u.value,10)];return m.jsx(ce.Fragment,{children:o(k)},y)})})}function E0(e){const{locale:a,...l}=e;return new Intl.ListFormat(a,l)}const Uo="admin:module.user.component.userProfileTimeline.userChip",Wn="admin.module.user.component.userProfileTimeline.userChip",j0={maxWidth:"100%",display:"inline-flex",borderWidth:1,borderStyle:"solid",borderColor:`${Wn}.border`,padding:1,paddingRight:2,borderRadius:"full",gap:2,height:7,alignItems:"center",justifyContent:"center",backgroundColor:`${Wn}.background`,transitionProperty:"background-color, border-color, outline-color",transitionDuration:Ji.duration[200],transitionTimingFunction:Ji.func.easeInOut,outlineWidth:"2px",outlineStyle:"solid",outlineColor:"transparent",outlineOffset:"-1px","&:focus-visible":{...qc("emphasized","inner"),borderColor:"transparent"},'&:not([aria-disabled="true"]):hover':{backgroundColor:`${Wn}.hover.background`,"& > .name":{color:`${Wn}.hover.name`}},'&[aria-disabled="true"]':{borderColor:`${Wn}.disabled.border`,"& > .avatar":{opacity:.5},"& > .name":{color:`${Wn}.disabled.name`},"& > .icon":{color:`${Wn}.disabled.icon`}},"& > .avatar":{width:5,height:5,borderRadius:"full",overflow:"hidden",flexShrink:0},"& > .name":{display:"inline-flex",color:`${Wn}.name`,lineHeight:"normal",overflow:"hidden",whiteSpace:"nowrap","& > .prefix":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"}},"& > .icon":{flexShrink:0,color:`${Wn}.icon`}},ed=e=>{const{userId:a,link:l,disabled:o=!1,avatar:r,externalUserId:u}=e,{t:y}=Xe(Uo),k=K0(e),I=`${ce.useId()}-name`;return m.jsx(Bo,{disabled:!o,content:y("disabled.tooltip"),children:m.jsxs(eu,{as:"a",href:l,onClick:g=>g.stopPropagation(),target:"_blank",rel:"noopener noreferrer",style:j0,disabled:o||l===void 0,"aria-labelledby":I,role:"link",accessibleWhenDisabled:!0,children:[m.jsx("div",{className:"avatar",children:m.jsx(Vu,{id:a,src:r,identified:u!==void 0,description:O0({...e,t:y})})}),m.jsx("div",{id:I,className:"name",children:k}),m.jsx(Ho,{size:"xs",className:"icon"})]})})};function K0(e){var v;const{sessionIndex:a,firstName:l,lastName:o,externalUserId:r}=e,u=r!==void 0,y=l??(o==null?void 0:o.split(" ")[0]);if(y===void 0)return m.jsx(Mt,{i18nKey:`${Uo}.name.${u?"identified":"anonymous"}`,count:a,children:m.jsx("span",{className:"prefix"})});const k=(v=Array.from(y).at(-1))==null?void 0:v.toLowerCase();return m.jsx(Mt,{i18nKey:`${Uo}.name.possessive`,count:a,context:k,values:{name:y},children:m.jsx("span",{className:"prefix"})})}function O0(e){const{t:a,firstName:l,lastName:o,externalUserId:r}=e,u=r!==void 0;return l!==void 0&&o!==void 0?a("avatar.user",{firstName:l,lastName:o}):a(u?"name.identified":"name.anonymous")}const L0=e=>{const a=z0(e);return a===null?null:m.jsx(Mt,{...a,components:{bold:m.jsx("strong",{}),code:m.jsx(Do,{}),...typeof a.values.url=="string"&&{anchor:m.jsx(nt,{href:a.values.url})},...a.components}})},Ut=3;function z0(e){var u,y,k;const{t:a}=Xe(_e),{createPath:l}=qr(),{organizationSlug:o,workspaceSlug:r}=Ao();
1083switch(e.type){case"audienceMatched":{const{audiences:v}=e.payload,I=v.slice(0,Ut),g=v.length-Ut,S=I.sort((C,A)=>+(C===null)-+(A===null));return{i18nKey:g>0?`${_e}.audienceMatched.description.audiencesRemaining`:`${_e}.audienceMatched.description.audiences`,values:{remainingCount:g},count:g,components:{emphasis:m.jsx(Hn,{}),audiences:m.jsx("span",{children:m.jsx(el,{items:S,options:{type:"conjunction",locale:e.locale,style:g>0?"narrow":"long"},renderItem:C=>{if(C===null)return m.jsx(Mt,{i18nKey:`${_e}.audienceMatched.description.deleted`,components:{emphasis:m.jsx(Hn,{})}});const A=l({path:"personalization.audiences.edit",params:{organizationSlug:o,workspaceSlug:r,audienceCustomId:C.customId}});return m.jsx(nt,{href:A,children:C.name})}})})}}}case"campaignDetected":{const v=$0(e);return v===void 0?null:{i18nKey:v,values:{name:e.payload.campaign.name??void 0,source:e.payload.campaign.source??void 0,medium:e.payload.campaign.medium??void 0},components:{bold:m.jsx(w0,{}),divider:m.jsx(gn,{as:"span",style:T0})}}}case"cartAbandoned":case"cartModified":case"cartViewed":{const{cart:v}=e.payload,{items:I,shippingPrice:g,currency:S}=v,C=yt(v.total,S,e.locale),A=C??a("invalidCurrency",{price:v.total,currency:S}),Z=g!==null&&g!==0?yt(g,S,e.locale)??a("invalidCurrency",{price:g,currency:S}):void 0;return{i18nKey:Z!==void 0?`${_e}.${e.type}.description.full`:`${_e}.${e.type}.description.missingShipping`,count:I.length,values:{itemsCount:I.length,total:A,shippingPrice:Z},components:{icon:C===void 0||Z===void 0?m.jsx(ht,{plain:!0,icon:Ia}):m.jsx("span",{})}}}case"checkoutStarted":{const{cart:v}=e.payload,{items:I,shippingPrice:g,currency:S,coupon:C}=v,A=yt(v.total,S,e.locale),Z=A??a("invalidCurrency",{price:v.total,currency:S}),M=g!==null&&g!==0?yt(g,S,e.locale)??a("invalidCurrency",{price:g,currency:S}):void 0;return{i18nKey:R0(e),count:I.length,values:{itemsCount:I.length,coupon:C??void 0,total:Z,shippingPrice:M},components:{couponIcon:m.jsx(ht,{icon:qi}),currencyIcon:A===void 0||M===void 0?m.jsx(ht,{plain:!0,icon:Ia}):m.jsx("span",{})}}}case"interestShown":{const{interests:v}=e.payload,I=v.slice(0,Ut),g=v.length-Ut;return{i18nKey:g>0?`${_e}.interestShown.description.interestsRemaining`:`${_e}.interestShown.description.interests`,count:g,values:{remainingCount:g},components:{interests:m.jsx("span",{children:m.jsx(el,{items:I,options:{type:"conjunction",locale:e.locale,style:g>0?"narrow":"long"},renderItem:S=>m.jsx(Do,{children:S})})})}}}case"leadGenerated":return{i18nKey:e.payload.leadId!==null?`${_e}.leadGenerated.description.full`:`${_e}.leadGenerated.description.missingLeadId`,values:{url:(u=e.context)==null?void 0:u.url,leadId:e.payload.leadId??void 0}};case"linkOpened":return{i18nKey:`${_e}.linkOpened.description`,values:{url:e.payload.link}};case"orderPlaced":{const{order:v}=e.payload,{items:I,shippingPrice:g,currency:S,coupon:C}=v,A=yt(v.total,S,e.locale),Z=A??a("invalidCurrency",{price:v.total,currency:S}),M=g!==null&&g!==0?yt(g,S,e.locale)??a("invalidCurrency",{price:g,currency:S}):void 0;return{i18nKey:D0(e),values:{coupon:C??void 0,total:Z,shippingPrice:M},count:I.length,components:{couponIcon:m.jsx(ht,{icon:qi}),currencyIcon:A===void 0||M===void 0?m.jsx(ht,{plain:!0,icon:Ia}):m.jsx("span",{})}}}case"postViewed":return{i18nKey:e.payload.post.url!==null?`${_e}.postViewed.description.full`:`${_e}.postViewed.description.missingUrl`,values:{name:e.payload.post.title,url:e.payload.post.url??void 0}};case"productViewed":{const{name:v,displayPrice:I,currency:g,url:S}=e.payload.product,C=g!==null?yt(I,g,e.locale):void 0,A=C??(g===null?I.toString():a("invalidCurrency",{price:I,currency:g}));return{i18nKey:S!==null?`${_e}.productViewed.description.full`:`${_e}.productViewed.description.missingUrl`,values:{name:v,url:S??void 0,price:A},components:{icon:C===void 0?m.jsx(ht,{plain:!0,icon:Ia}):m.jsx("span",{})}}}case"sessionAttributesChanged":case"userProfileChanged":{const v=`${_e}.${e.type}.description`,{patch:I}=e.payload,g=I.operations.map(A=>A.path);if(g.length===0)return null;const S=g.slice(0,Ut),C=g.length-Ut;return{i18nKey:C>0?`${v}.attributesRemaining`:`${v}.attributes`,values:{remainingCount:C},count:C,components:{attributes:m.jsx("span",{children:m.jsx(el,{items:S,options:{type:"conjunction",locale:e.locale,style:C>0?"narrow":"long"},renderItem:A=>
1083m.jsx(Do,{children:A})})})}}}case"sessionStarted":{const{session:v}=e,{previousSessions:I=[]}=v??{};return I.length>0?{i18nKey:`${_e}.sessionStarted.description.previous`,values:{},components:{prefix:m.jsx(gn,{as:"span",style:C0}),sessions:m.jsx(gn,{as:"span",style:_0,children:m.jsx(el,{items:I,options:{type:"conjunction",locale:e.locale,style:"long"},renderItem:g=>{const{index:S,userId:C,endUser:A}=g,{externalUserId:Z,avatar:M,firstName:B,lastName:oe}=A??{},N=l({path:"user.profiles.timeline",params:{organizationSlug:o,workspaceSlug:r,userId:C},search:{sessionId:g.id,timestamp:g.windowEnd.toString()}});return m.jsx("div",{className:"previous",children:m.jsx(ed,{userId:C,sessionIndex:S,...A!==null?{link:N,externalUserId:Z??void 0,avatar:M??void 0,firstName:B??void 0,lastName:oe??void 0}:{disabled:!0}},`${C}:${S}`)})}})})}}:{i18nKey:`${_e}.sessionStarted.description.current`,values:{visits:e.sessionIndex}}}case"slotPersonalized":{const{context:v,payload:I}=e,{slot:g,audience:S,experience:C,experiment:A,variant:Z,previewToken:M,personalization:B}=I,{experienceId:oe,assignedVariant:N,slotVersion:w}=B,j=U0((v==null?void 0:v.url)??null,M),J=l({path:"personalization.slots.edit",params:{organizationSlug:o,workspaceSlug:r,slotCustomId:(g==null?void 0:g.customId)??"",version:(w==null?void 0:w.majorVersion.toString())??"latest"}});if(N!==null){const Q=l({path:"personalization.experiences.experiments.edit",params:{organizationSlug:o,workspaceSlug:r,experienceId:(C==null?void 0:C.id)??"",experimentId:(A==null?void 0:A.id)??""}});return{i18nKey:`${_e}.slotPersonalized.description.experimentation`,values:{slot:(g==null?void 0:g.name)??a("slotPersonalized.deleted"),variant:(Z==null?void 0:Z.name)??a("slotPersonalized.deleted"),experiment:(A==null?void 0:A.name)??a("slotPersonalized.deleted")},components:{preview:m.jsx(Wr,{url:j??void 0}),variant:Z!==null?m.jsx("strong",{}):m.jsx(Hn,{}),slot:g!==null?m.jsx(nt,{href:J}):m.jsx(Hn,{}),experiment:C!==null&&A!==null?m.jsx(nt,{href:Q}):m.jsx(Hn,{})}}}if(oe!==null){const Q=l({path:"personalization.audiences.edit",params:{organizationSlug:o,workspaceSlug:r,audienceCustomId:(S==null?void 0:S.customId)??""}}),O=l({path:"personalization.experiences.edit",params:{organizationSlug:o,workspaceSlug:r,experienceId:(C==null?void 0:C.id)??""}});return{i18nKey:`${_e}.slotPersonalized.description.personalization`,values:{slot:(g==null?void 0:g.name)??a("slotPersonalized.deleted"),audience:(S==null?void 0:S.name)??a("slotPersonalized.deleted"),experience:(C==null?void 0:C.name)??a("slotPersonalized.deleted")},components:{preview:m.jsx(Wr,{url:j??void 0}),slot:g!==null?m.jsx(nt,{href:J}):m.jsx(Hn,{}),audience:S!==null?m.jsx(nt,{href:Q}):m.jsx(Hn,{}),experience:C!==null?m.jsx(nt,{href:O}):m.jsx(Hn,{})}}}return{i18nKey:`${_e}.slotPersonalized.description.defaultContent`,values:{slot:(g==null?void 0:g.name)??a("slotPersonalized.deleted")},components:{slot:g!==null?m.jsx(nt,{href:J}):m.jsx(Hn,{})}}}case"tabOpened":return{i18nKey:`${_e}.tabOpened.description`,values:{url:(y=e.context)==null?void 0:y.url}};case"tabVisibilityChanged":{const v=e.payload.visibility==="VISIBLE"?"visible":"hidden";return{i18nKey:`${_e}.tabVisibilityChanged.${v}.description`,values:{url:(k=e.context)==null?void 0:k.url,visibility:e.payload.visibility}}}case"userScrolled":{const{surfaceSize:v,start:I,end:g}=e.payload;if(v===null||I===null)return null;const{width:S,height:C}=v,A=g.x-I.x,Z=g.y-I.y,M=A!==0,B=Z!==0;if(!M&&!B)return null;const oe=nl(Math.round(I.y/C*100)),N=nl(Math.round(g.y/C*100)),w=nl(Math.round(I.x/S*100)),j=nl(Math.round(g.x/S*100));if(M&&B)return{i18nKey:`${_e}.userScrolled.description.scrollDiagonal`,values:{startY:oe,endY:N,startX:w,endX:j}};if(B){const O=Z>0?"scrollDown":"scrollUp";return{i18nKey:`${_e}.userScrolled.description.${O}`,values:{startY:oe,endY:N}}}const Q=A>0?"scrollRight":"scrollLeft";return{i18nKey:`${_e}.userScrolled.description.${Q}`,values:{startX:w,endX:j}}}case"userClicked":return null;default:return{i18nKey:`${_e}.${e.type}.description`,values:e.payload}}}function $0(e){const{name:a,medium:l,source:o}=e.payload.campaign,r=`${_e}.campaignDetected.description`;if(a!==null&&l!==null&&o!==null)return`${r}.full`;if(a!==null)return`${r}.campaignOnly`;if(o!==null)return`${r}.sourceOnly`;if(l!==null)return`${r}.mediumOnly`}function R0(e){const{coupon:a,shippingPrice:l}=e.payload.cart,o=`${_e}.checkoutStarted.description`,r=l!==null&&l!==0;return a===null&&!r?`${o}.minimal`:a===null&&r?`${o}.missingCoupon`:a!==null&&!r?`${o}.missingShipping`:`${o}.full`}function D0(e){const{coupon:a,shippingPrice:l}=e.payload.order,o=`${_e}.orderPlaced.description`,r=l!==null&&l!==0;return a===null&&!r?`${o}.minimal`:a===null&&r?`${o}.missingCoupon`:a!==null&&!r?`${o}.missingShipping`:`${o}.full`}function U0(e,a){if(e===null||a===null||!URL.canParse(e))return null;const l=new URL(e);return l.searchParams.set("croct-preview",a),l.toString()}function yt(e,a,l){try{return Bu(e,{locale:l,style:"currency",currency:a,maximumFractionDigits:2})}catch{return}}function nl(e){return Math.min(100,Math.max(0,e))}const nd={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"EventDetailsDrawerOrganizationFragment",selections:[{args:[{kind:"V
1083ariable",name:"workspaceSlug",variableName:"workspaceSlug"}],kind:"FragmentSpread",name:"EventDetailsDropdownOrganizationFragment"}],type:"Organization",abstractKey:null};nd.hash="188bd6e6b5b72471feef604a86115ed0";const td=function(){var e={defaultValue:null,kind:"LocalArgument",name:"applicationId"},a={defaultValue:null,kind:"LocalArgument",name:"endUserEventId"},l={defaultValue:null,kind:"LocalArgument",name:"endUserId"},o={defaultValue:null,kind:"LocalArgument",name:"organizationId"},r={defaultValue:null,kind:"LocalArgument",name:"type"},u={defaultValue:null,kind:"LocalArgument",name:"workspaceId"},y=[{alias:null,args:[{kind:"Variable",name:"applicationId",variableName:"applicationId"},{kind:"Variable",name:"endUserEventId",variableName:"endUserEventId"},{kind:"Variable",name:"endUserId",variableName:"endUserId"},{kind:"Variable",name:"organizationId",variableName:"organizationId"},{kind:"Variable",name:"type",variableName:"type"},{kind:"Variable",name:"workspaceId",variableName:"workspaceId"}],concreteType:"CustomerExportOutput",kind:"LinkedField",name:"exportCustomerData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"exportedData",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[e,a,l,o,r,u],kind:"Fragment",metadata:null,name:"EventDetailsDrawerPayloadQuery",selections:y,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[o,u,e,l,r,a],kind:"Operation",name:"EventDetailsDrawerPayloadQuery",selections:y},params:{cacheID:"ccbbc87ad80906d9017c36ef186699d9",id:null,metadata:{},name:"EventDetailsDrawerPayloadQuery",operationKind:"query",text:`query EventDetailsDrawerPayloadQuery(
1084  $organizationId: OrganizationId!
1085  $workspaceId: WorkspaceId!
1086  $applicationId: ApplicationId!
1087  $endUserId: EndUserId!
1088  $type: CustomerDataExportType!
1089  $endUserEventId: EndUserEventId
1090) {
1091  exportCustomerData(organizationId: $organizationId, workspaceId: $workspaceId, applicationId: $applicationId, endUserId: $endUserId, endUserEventId: $endUserEventId, type: $type) {
1092    exportedData
1093  }
1094}
1095`}}}();td.hash="4c436aa4caf912491594b6fd2206bef7";const ad={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"EventDetailsDropdownOrganizationFragment",selections:[{args:[{kind:"Variable",name:"workspaceSlug",variableName:"workspaceSlug"}],kind:"FragmentSpread",name:"ExportEventItemOrganizationFragment"}],type:"Organization",abstractKey:null};ad.hash="933dc17cfd83ef883775ac2304a117c8";const ld=function(){var e={alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null};return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"ExportEventItemOrganizationFragment",selections:[e,{kind:"RequiredField",field:{alias:null,args:[{kind:"Variable",name:"slug",variableName:"workspaceSlug"}],concreteType:"Workspace",kind:"LinkedField",name:"workspace",plural:!1,selections:[e],storageKey:null},action:"THROW"}],type:"Organization",abstractKey:null}}();ld.hash="73e8053b0a3ebdeefcfa916af51d26c6";const M0="admin:module.user.component.userProfileTimeline.eventCard.eventDetailsDrawer.eventDetailsDropdown.exportEventItem",A0=e=>{const{event:a,organizationRef:l}=e,o=Gn.useDropdownMenu(),{t:r}=Xe(M0),{notifyError:u}=hs(),y=Re.useFragment(ld,l),{workspace:k}=y,v=ys({organizationSlug:y.slug,workspaceSlug:k.slug,applicationId:a.applicationId}),I=ce.useCallback(async()=>{try{const{exportedData:g}=await v.export({type:"event",endUserId:a.userId,endUserEventId:a.id}),S=B0(a.type,a.timestamp);gs(S,g)}catch{return u({title:r("notification.export.failure.title"),message:r("notification.export.failure.message")})}finally{o.hide()}},[a.id,a.timestamp,a.type,a.userId,v,o,u,r]);return m.jsx(Gn.DropdownItem,{preventAutoClose:!0,label:r("label"),onClick:I,disabled:v.loading,prefixAddon:v.loading?m.jsx(es,{size:"md"}):m.jsx(ps,{size:"md"})})};function B0(e,a){return`${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}-${a}`}const N0="admin:module.user.component.userProfileTimeline.eventCard.eventDetailsDrawer.eventDetailsDropdown.eventDocumentationItem",V0=e=>{const{event:a}=e,{t:l}=Xe(N0);return m.jsx(Gn.DropdownItem,{as:"a",rel:"noopener noreferrer",target:"_blank",href:H0[a],label:l("label"),prefixAddon:m.jsx(Wu,{size:"md"})})},H0={pageOpened:Pe.PAGE_OPENED,pageLoaded:Pe.PAGE_LOADED,tabOpened:Pe.TAB_OPENED,tabUrlChanged:Pe.TAB_URL_CHANGED,tabVisibilityChanged:Pe.TAB_VISIBILITY_CHANGED,goalCompleted:Pe.GOAL_COMPLETED,userSignedUp:Pe.USER_SIGNED_UP,userSignedIn:Pe.USER_SIGNED_IN,userSignedOut:Pe.USER_SIGNED_OUT,linkOpened:Pe.LINK_OPENED,eventOccurred:Pe.EVENT_OCCURRED,userClicked:Pe.USER_CLICKED,userScrolled:Pe.USER_SCROLLED,c
1095ampaignDetected:Pe.CAMPAIGN_DETECTED,productViewed:Pe.PRODUCT_VIEWED,cartViewed:Pe.CART_VIEWED,cartModified:Pe.CART_MODIFIED,cartAbandoned:Pe.CART_ABANDONED,orderPlaced:Pe.ORDER_PLACED,checkoutStarted:Pe.CHECKOUT_STARTED,interestShown:Pe.INTEREST_SHOWN,leadGenerated:Pe.LEAD_GENERATED,audienceMatched:Pe.AUDIENCE_MATCHED,postViewed:Pe.POST_VIEWED,slotPersonalized:Pe.SLOT_PERSONALIZED,userProfileChanged:Pe.USER_PROFILE_CHANGED,sessionAttributesChanged:Pe.SESSION_ATTRIBUTES_CHANGED,sessionStarted:Pe.SESSION_STARTED},W0="admin:module.user.component.userProfileTimeline.eventCard.eventDetailsDrawer.eventDetailsDropdown.copyEventItem",G0=e=>{const{link:a}=e,l=Gn.useDropdownMenu(),{t:o}=Xe(W0);return m.jsx(Iu,{value:a,showDelay:300,tooltipPlacement:"left",onHideFeedback:l.hide,children:m.jsx(Gn.DropdownItem,{preventAutoClose:!0,label:o("label"),prefixAddon:m.jsx(Gu,{size:"md"})})})},Z0="admin:module.user.component.userProfileTimeline.eventCard.eventDetailsDrawer.eventDetailsDropdown";function od(e){const{timestamp:a,id:l}=e,o=new URL(window.location.href);return o.search="",o.searchParams.set("timestamp",a.toString()),o.searchParams.set("id",l),o.toString()}function Q0(e){const{session:a}=e,l=new URL(window.location.href);return l.search="",l.searchParams.set("sessionId",a.id),l.searchParams.set("timestamp",a.windowEnd.toString()),l.toString()}const Y0=e=>{const{organizationRef:a,event:l}=e,{t:o}=Xe(Z0),r=Re.useFragment(ad,a);return m.jsxs(Gn.DropdownMenu,{disclosure:u=>m.jsx(ds,{...u,icon:ms,size:"lg","aria-label":o("label")}),children:[m.jsx(A0,{event:l,organizationRef:r}),m.jsx(G0,{link:od(l)}),m.jsx(V0,{event:l.type})]})},X0="admin:module.user.component.userProfileTimeline.eventCard.eventDetailsDrawer",J0=e=>{const{state:a,event:l,organizationRef:o}=e,{t:r}=Xe(`${X0}.details.${l.type}`),u=Re.useFragment(nd,o);return m.jsx(cs,{state:a,variant:"drawer",width:"sm",appearance:l.color,autoFocusOnShow:!1,autoFocusOnHide:!1,title:r("title"),subtitle:r("description"),icon:Hu,addons:[m.jsx(Y0,{event:l,organizationRef:u},"event-dropdown")],children:m.jsx(ce.Suspense,{fallback:m.jsx(is,{width:"100%",height:"100%",radius:6}),children:m.jsx(ns,{fallback:(y,k)=>m.jsx(nu,{compact:!0,onRetry:k}),children:m.jsx(q0,{organizationId:l.organizationId,workspaceId:l.workspaceId,applicationId:l.applicationId,endUserId:l.userId,eventId:l.id})})})})},q0=e=>{const{exportCustomerData:a}=Re.useLazyLoadQuery(td,{type:"event",organizationId:e.organizationId,workspaceId:e.workspaceId,applicationId:e.applicationId,endUserId:e.endUserId,endUserEventId:e.eventId});return m.jsx(us,{language:"json",code:fs(ey(a.exportedData))})};function ey(e){try{const a=JSON.parse(e);return"event"in a&&"payload"in a.event?a.event.payload:e}catch{return e}}const id={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"SessionDetailsDrawerOrganizationFragment",selections:[{args:[{kind:"Variable",name:"workspaceSlug",variableName:"workspaceSlug"}],kind:"FragmentSpread",name:"SessionDetailsDropdownOrganizationFragment"}],type:"Organization",abstractKey:null};id.hash="9cf15239e6eb0f1707a48fdd0b98e9b4";const rd=function(){var e={defaultValue:null,kind:"LocalArgument",name:"applicationId"},a={defaultValue:null,kind:"LocalArgument",name:"endUserId"},l={defaultValue:null,kind:"LocalArgument",name:"organizationId"},o={defaultValue:null,kind:"LocalArgument",name:"sessionId"},r={defaultValue:null,kind:"LocalArgument",name:"type"},u={defaultValue:null,kind:"LocalArgument",name:"workspaceId"},y=[{alias:null,args:[{kind:"Variable",name:"applicationId",variableName:"applicationId"},{kind:"Variable",name:"endUserId",variableName:"endUserId"},{kind:"Variable",name:"organizationId",variableName:"organizationId"},{kind:"Variable",name:"type",variableName:"type"},{kind:"Variable",name:"webSessionId",variableName:"sessionId"},{kind:"Variable",name:"workspaceId",variableName:"workspaceId"}],concreteType:"CustomerExportOutput",kind:"LinkedField",name:"exportCustomerData",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"exportedData",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[e,a,l,o,r,u],kind:"Fragment",metadata:null,name:"SessionDetail
1095sDrawerPayloadQuery",selections:y,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[l,u,e,a,r,o],kind:"Operation",name:"SessionDetailsDrawerPayloadQuery",selections:y},params:{cacheID:"6c8d57733470a9c7bc625e06d9cb6184",id:null,metadata:{},name:"SessionDetailsDrawerPayloadQuery",operationKind:"query",text:`query SessionDetailsDrawerPayloadQuery(
1096  $organizationId: OrganizationId!
1097  $workspaceId: WorkspaceId!
1098  $applicationId: ApplicationId!
1099  $endUserId: EndUserId!
1100  $type: CustomerDataExportType!
1101  $sessionId: WebSessionSummaryId!
1102) {
1103  exportCustomerData(type: $type, organizationId: $organizationId, workspaceId: $workspaceId, applicationId: $applicationId, endUserId: $endUserId, webSessionId: $sessionId) {
1104    exportedData
1105  }
1106}
1107`}}}();rd.hash="16603223c1bb81535820b20449ec89f2";const sd={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"SessionDetailsDropdownOrganizationFragment",selections:[{args:[{kind:"Variable",name:"workspaceSlug",variableName:"workspaceSlug"}],kind:"FragmentSpread",name:"ExportSessionItemOrganizationFragment"}],type:"Organization",abstractKey:null};sd.hash="0a886520a02cff94f65c5062636c03a3";const dd=function(){var e={alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null};return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"ExportSessionItemOrganizationFragment",selections:[e,{kind:"RequiredField",field:{alias:null,args:[{kind:"Variable",name:"slug",variableName:"workspaceSlug"}],concreteType:"Workspace",kind:"LinkedField",name:"workspace",plural:!1,selections:[e],storageKey:null},action:"THROW"}],type:"Organization",abstractKey:null}}();dd.hash="d0c61d98022a986c037236731d502403";const ny="admin:module.user.component.userProfileTimeline.sessionDetailsDrawer.sessionDetailsDropdown.exportSessionItem",ty=e=>{const{event:a,organizationRef:l}=e,o=Gn.useDropdownMenu(),{t:r}=Xe(ny),{notifyError:u}=hs(),y=Re.useFragment(dd,l),{workspace:k}=y,v=ys({organizationSlug:y.slug,workspaceSlug:k.slug,applicationId:a.applicationId}),I=ce.useCallback(async()=>{try{const{exportedData:g}=await v.export({type:"session",endUserId:a.userId,webSessionId:a.session.id}),S=`session-${a.sessionIndex}-${a.timestamp}`;gs(S,g)}catch{return u({title:r("notification.export.failure.title"),message:r("notification.export.failure.message")})}finally{o.hide()}},[a.session.id,a.sessionIndex,a.timestamp,a.userId,v,o,u,r]);return m.jsx(Gn.DropdownItem,{preventAutoClose:!0,label:r("label"),onClick:I,disabled:v.loading,prefixAddon:v.loading?m.jsx(es,{size:"md"}):m.jsx(ps,{size:"md"})})},ay="admin:module.user.component.userProfileTimeline.sessionDetailsDrawer.sessionDetailsDropdown",ly=e=>{const{organizationRef:a,event:l}=e,{t:o}=Xe(ay),r=Re.useFragment(sd,a);return m.jsx(Gn.DropdownMenu,{disclosure:u=>m.jsx(ds,{...u,icon:ms,size:"lg","aria-label":o("label")}),children:m.jsx(ty,{event:l,organizationRef:r})})},oy="admin:module.user.component.userProfileTimeline.sessionDetailsDrawer",_a="admin.module.user.component.userProfileTimeline.sessionDetailsDrawer.sessionDescription",iy={display:"flex",alignItems:"center",gap:1,fontSize:3,lineHeight:"tight",color:`${_a}.text`,"& > .duration":{flexShrink:0,"&::after":{content:'"•"',color:`${_a}.separator`,marginLeft:1}},"& > .meta":{...tu({_:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},sm:{display:"grid",gridAutoColumns:"auto",gridAutoFlow:"column",gap:1}}),"& > .browser":{display:bn({_:"inline",sm:"inline-flex"}),marginLeft:bn({_:1,sm:0}),overflow:"hidden","& > .value":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"&::after":{content:'"•"',color:`${_a}.separator`,marginLeft:1,flexShrink:0}},"& > .application":{display:bn({_:"inline",sm:"inline-flex"}),marginLeft:bn({_:1,sm:0}),overflow:"hidden","& > .value":{marginLeft:bn({_:1,sm:0}),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"&::after":{content:"attr(data-environment)",marginLeft:1,flexShrink:0}}}}
1107,ry={display:bn({_:"inline",sm:"inline-flex"}),alignItems:"center",gap:1,fontSize:3,lineHeight:"tight",color:`${_a}.text`,overflow:"hidden","&::after":{content:'"•"',color:`${_a}.separator`,flexShrink:0,marginLeft:bn({_:1,sm:0})},"& > img":{flexShrink:0},"& > .icon":{flexShrink:0},"& > .value":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},cd="admin:module.user.component.userProfileTimeline.sessionDetailsDrawer.sessionDescription",sy=e=>{const{duration:a,application:l,browser:o,location:r}=e,{t:u}=Xe(cd),{locale:{code:y}}=Mo(),{isoDuration:k,displayDuration:v}=ce.useMemo(()=>cy(a,y,u),[a,y,u]);return m.jsxs(gn,{style:iy,children:[m.jsx("time",{dateTime:k,className:"duration",children:v}),m.jsxs("div",{className:"meta",children:[r!==void 0&&m.jsx(dy,{...r,t:u}),o!==void 0&&m.jsx("span",{className:"browser",children:m.jsx("span",{className:"value",children:o})}),l!==void 0&&m.jsx("span",{className:"application","data-environment":`(${u(l.environment==="DEVELOPMENT"?"application.environment.development":"application.environment.production")})`,children:m.jsx("span",{className:"value",children:l.name})})]})]})},dy=e=>{const{t:a,city:l,country:o,regionCode:r}=e,{t:u}=Xe(),y=ce.useMemo(()=>u("country:list",{returnObjects:!0}),[u]);return m.jsx(Bo,{content:a("location.tooltip",{city:l,regionCode:r}),children:m.jsx(gn,{as:"span",style:ry,children:m.jsxs(Mt,{i18nKey:`${cd}.location.value`,values:{city:l,regionCode:r},children:[m.jsx(wu,{fallback:m.jsx(Pu,{size:"sm",className:"icon"}),code:o,size:"xs",alt:a("location.flag",{country:y[o]})}),m.jsx("span",{className:"value"})]})})})};function cy(e,a,l){const o=pn.Duration.ofMillis(e);if(o.isShorterThan(pn.Duration.ofMinutes(1)))return{isoDuration:o.toString(),displayDuration:l("duration.lessThanOneMinute")};const r={days:o.toDaysPart(),hours:o.toHoursPart(),minutes:o.toMinutesPart()};return{isoDuration:o.toString(),displayDuration:Cu(r,{locale:a,style:o.isLongerThan(pn.Duration.ofHours(1))?"narrow":"short"})}}const ri=e=>{const{state:a,event:l,organizationRef:o}=e,{session:r}=l,{t:u}=Xe(oy),y=Re.useFragment(id,o);return m.jsx(cs,{state:a,width:"sm",variant:"drawer",appearance:l.color,autoFocusOnShow:!1,autoFocusOnHide:!1,title:u("title",{index:l.sessionIndex}),subtitle:m.jsx(sy,{...r}),icon:(r==null?void 0:r.closed)===!1?Ls:zu,addons:[m.jsx(ly,{event:l,organizationRef:y},"session-dropdown")],children:m.jsx(ns,{fallback:(k,v)=>m.jsx(au,{onRetry:v}),children:m.jsx(ce.Suspense,{fallback:m.jsx(is,{width:"100%",height:"100%",radius:6}),children:m.jsx(uy,{organizationId:l.organizationId,workspaceId:l.workspaceId,applicationId:l.applicationId,endUserId:l.userId,sessionId:r.id})})})})},uy=e=>{const{exportCustomerData:a}=Re.useLazyLoadQuery(rd,{type:"session",organizationId:e.organizationId,workspaceId:e.workspaceId,applicationId:e.applicationId,endUserId:e.endUserId,sessionId:e.sessionId});return m.jsx(us,{language:"json",code:fs(a.exportedData)})},my=new Set(["goalCompleted","orderPlaced","userSignedUp","leadGenerated"]),py=e=>{const{event:a,organizationRef:l}=e,{t:o}=Xe(_e),r=Vo(),u=gy(a,o),y=Re.useFragment(qs,l);return m.jsxs(ce.Fragment,{children:[m.jsx("div",{role:"presentation",onClick:r.show,children:m.jsx(mn.EventCard,{color:a.color,title:u,keyEvent:my.has(a.type),timestamp:a.timestamp,timezone:a.timezone,subtitle:m.jsx(L0,{...a}),eventUrl:od(a)})}),a.type==="sessionStarted"&&fy(a)?m.jsx(ri,{event:a,state:r,organizationRef:y}):m.jsx(J0,{event:a,state:r,organizationRef:y})]})};function gy(e,a){switch(e.type){case"tabVisibilityChanged":{const l=e.payload.visibility==="VISIBLE"?"visible":"hidden";return a(`tabVisibilityChanged.${l}.title`)}default:return a(`${e.type}.title`)}}function fy(e){return(e==null?void 0:e.session)!==void 0}const ud={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"NextSessionEventCardOrganizationFragment",selections:[{args:[{kind:"Variable",name:"workspaceSlug",variableName:"workspaceSlug"}],kind:"FragmentSpread",name:"SessionDetailsDrawerOrganizationFragment"}],type:"Organization",abstractKey:null};ud.hash="0bd8932dd8d7729436d0578a70c4d70a";const md="admin:module.user.component.userProfileTimeline.nextSessionEventCard",yy=e=>{const{event:a,organizationRef:l}=e,o=Vo(),{t:r}=Xe(md),u=Re.useFragment(ud,l);return m.jsxs(ce.Fragment,{children:[m.jsx("div",{role:"presentation",onClick:o.show,children:m.jsx(mn.EventCard,{color:a.color,title:r("title"),subtitle:m.jsx(hy,{...a}),timestamp:a.timestamp,timezone:a.timezone,eventUrl:Q0(a)})}),m.jsx(ri,{event:a,state:o,organizationRef:u})]})},hy=e=>{const{session:a}=e,{nextSession:l}=a??{},{createPath:o}=qr(),{organizationSlug:r,workspaceSlug:u}=Ao();if(l===void 0)return null;const{index:y,endUser:k,userId:v}=l,{externalUserId:I,avatar:g,firstName:S,lastName:C}=k??{},A=o({path:"user.profiles.timeline",params:{organizationSlug:r,workspaceSlug:u,userId:v},search:{sessionId:l.id,timestamp:l.windowStart.toString()}});return m.jsx(Mt,{i18nKey:`${md}.description`,components:{session:m.jsx("span",{style:{verticalAlign:"middle"},children:m.jsx(ed,{userId:v,sessionIndex:y,...k!==null?{link:A,externalUserId:I??void 0,avatar:g??void 0,firstName:S??void 0,lastName:C??void 0}:{disabled:!0}})})}})},pd={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"workspaceSlug"}],kind:"Fragment",metadata:null,name:"SessionMarkerOrganizationFragment",selections:[{args:[{kind:"V
1107ariable",name:"workspaceSlug",variableName:"workspaceSlug"}],kind:"FragmentSpread",name:"SessionDetailsDrawerOrganizationFragment"}],type:"Organization",abstractKey:null};pd.hash="7880a251a27e19ce86057ed1d97d1e3b";const vy="admin:module.user.component.userProfileTimeline.sessionMarker",ky=e=>{const{event:a,organizationRef:l}=e,{session:o}=a,r=Vo(),{t:u}=Xe(vy),y=Re.useFragment(pd,l);return m.jsxs(ce.Fragment,{children:[m.jsx("div",{role:"presentation",onClick:r.show,children:m.jsx(mn.SessionMarker,{color:a.color,live:a.session.closed===!1,sessionNumber:a.sessionIndex,timestamp:a.timestamp,timezone:a.timezone,duration:o.duration,location:o.location,browser:o.browser,highlights:o.highlights,...o.application!==void 0&&{application:{name:o.application.name,environment:o.application.environment==="DEVELOPMENT"?u("application.environment.development"):u("application.environment.production")}}})}),m.jsx(ri,{event:a,state:r,organizationRef:y})]})};function xy(e){const{organizationRef:a,initialEventId:l,initialSessionId:o,initialTimestamp:r}=e,u=Re.useFragment(Js,a);return y=>{var g,S,C;const k=[];if(by(y)&&(y.isLastSessionEvent&&k.push({variant:((g=y.session)==null?void 0:g.closed)===!1?"current":"past",highlighted:!1,content:m.jsx(ky,{event:y,organizationRef:u})}),((S=y.session)==null?void 0:S.closed)===!0&&y.isLastSessionEvent&&y.session.nextSession!==void 0)){const Z=y.session.windowEnd===r&&o===y.session.id;k.push({variant:"past",highlighted:Z,content:m.jsx(yy,{event:y,organizationRef:u})})}const v=y.type==="sessionStarted"&&((C=y.session)==null?void 0:C.id)===o,I=y.id===l;return k.push({variant:"past",highlighted:(v||I)&&y.timestamp===r,content:m.jsx(py,{event:y,organizationRef:u})}),k}}function by(e){return(e==null?void 0:e.session)!==void 0}const Sy=.2,Iy=e=>{const{endUserRef:a,workspaceRef:l,organizationRef:o,initialTimestamp:r,initialEventId:u,initialSessionId:y}=e,k=Xr("VITE_APP_CROCT_TEST_MODE","false")==="true",v=Re.useFragment(ks,o),I=Re.useFragment(xs,l),g=Re.useFragment(bs,a),S=o0({organizationRef:v,workspaceRef:I,endUserRef:g,initialTimestamp:r,onLoadMore:oe=>Z(N=>N||Gr(oe.events))}),{initialPage:C}=S.loaderProps,[A,Z]=ce.useState(()=>Gr((C==null?void 0:C.events)??[])),M=xy({organizationRef:v,initialEventId:u,initialSessionId:y,initialTimestamp:r}),B=Math.round(window.innerHeight*Sy);return ce.createElement(mn.Timeline,{...S.loaderProps,key:`latest:${S.lastUpdate.toEpochMillis()}`,renderEvent:M,onEventClick:()=>{},loadMoreThreshold:k?void 0:B,header:S.stale?m.jsx(mn.RefreshEventsButton,{onClick:S.reset}):void 0,footer:A?m.jsx(mn.StartMarker,{}):m.jsx(y0,{organizationRef:v})})};function Gr(e){return e.some(a=>a.isFirstEvent)}const Ty="admin:module.user.page.userProfileTimelinePage",bv=()=>{const{organizationSlug:e,workspaceSlug:a,userId:l}=Ao(),o=lu(),r=o.get("timestamp"),u=r!==null?Number.parseInt(r,10):null,y=o.get("id"),k=o.get("sessionId"),{t:v}=Xe(Ty),I=Re.useLazyLoadQuery(vs,{organizationSlug:e,workspaceSlug:a,endUserId:l,aroundTime:u}),{endUser:g}=I.organization.workspace,{firstName:S,lastName:C}=g,A=Ta(g.firstUserEvents).length===0;return m.jsx(ou,{title:Cy(v,S,C),children:m.jsx(gn,{style:Zu,className:Jr({empty:A}),children:m.jsx(Iy,{organizationRef:I.organization,workspaceRef:I.organization.workspace,endUserRef:I.organization.workspace.endUser,initialTimestamp:u??void 0,initialEventId:y??void 0,initialSessionId:k??void 0})})})};function Cy(e,a,l){return a!==null&&l!==null?e("title.identified",{firstName:a,lastName:l}):e("title.fallback")}export{bv as Page};

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