local-operator-ui 0.52.14 → 0.52.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/renderer/assets/{agent-details-page-B9CKxSrs.js → agent-details-page-Dk8RHSMl.js} +1 -1
- package/out/renderer/assets/{agent-hub-page-D8LnPErX.js → agent-hub-page-CIocC2nK.js} +1 -1
- package/out/renderer/assets/{agents-page-DgxoevHb.js → agents-page-Bd6D46Bi.js} +3 -3
- package/out/renderer/assets/{avatar-cropper-B9BekkbE.js → avatar-cropper-Dl5ov8YL.js} +1 -1
- package/out/renderer/assets/{browser-page-Cs7_uVtb.js → browser-page-Dajczk6E.js} +1 -1
- package/out/renderer/assets/{browser-webauthn-prompt-Dzw1WBRS.js → browser-webauthn-prompt-h19MrXeQ.js} +1 -1
- package/out/renderer/assets/{index-BGDEYSH_.js → index-CpEaJdlZ.js} +2 -2
- package/out/renderer/assets/{legacy-agents-page-kKEUs0O8.js → legacy-agents-page-BF2R4lbR.js} +1 -1
- package/out/renderer/assets/{library-page-BQJdR2rI.js → library-page-O8Tpue7P.js} +3 -3
- package/out/renderer/assets/{mesh-page-Ct_YkVDL.js → mesh-page-CuhfZMiu.js} +1 -1
- package/out/renderer/assets/{notifications-page-B8nZbtlS.js → notifications-page-CSsqs93y.js} +1 -1
- package/out/renderer/assets/{org-access-DuRFDs9W.js → org-access-z8_b5XCu.js} +1 -1
- package/out/renderer/assets/{projects-page-DZEkOZlF.js → projects-page-X-DhX0pA.js} +1 -1
- package/out/renderer/assets/{publication-validation-Bvsz95rc.js → publication-validation-JbdY7VfP.js} +1 -1
- package/out/renderer/assets/{radient-auth-buttons-PCN4Dj5p.js → radient-auth-buttons-CfYSHdIY.js} +1 -1
- package/out/renderer/assets/{schedules-page-C8nW1wgf.js → schedules-page-fHpOwysL.js} +1 -1
- package/out/renderer/assets/{settings-page-DLGUbw65.js → settings-page-cGGZni-k.js} +1 -1
- package/out/renderer/assets/{smartart-CG3pwH-W.js → smartart-uJ0Wwefz.js} +1 -1
- package/out/renderer/assets/{team-bridge-page-CiWbJeGL.js → team-bridge-page-DSlbd_JZ.js} +20 -20
- package/out/renderer/assets/{team-bridge-scope-preference-Bw_NlB2r.js → team-bridge-scope-preference-DpxjIHL_.js} +1 -1
- package/out/renderer/assets/{use-download-agent-mutation-DxaW8MAR.js → use-download-agent-mutation-C48jB1cG.js} +1 -1
- package/out/renderer/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import{j as i,c as
|
|
1
|
+
import{j as i,c as H,r as u}from"./index-CGJ-zGUj.js";import{c2 as Bu,t as ds,N as od,c3 as Su,c4 as Eu,v as Ot,c5 as Iu,bO as Da,c6 as Ru,c7 as cs,c8 as Cu,c9 as Je,ca as Tu,cb as Mu,c1 as ld,cc as br,cd as dd,c as Au,ce as pi,cf as zu,cg as Pu,ch as cd,ci as ud,cj as Du,ck as Lu,cl as Ou,cm as qu,cn as Fu,co as bo,cp as $u,a as va,cq as Ku,cr as md,cs as Uu,ct as Hu,cu as ja,aZ as La,cv as Gu,cw as Wu,cx as Vu,cy as hd,R as Ju,cz as Qu,cA as Yu,cB as gd,cC as us,cD as Xu,cE as Zu,cF as ot,cG as yo,cH as xo,cI as em,cJ as nm,cK as tm,cL as yr,cM as im,cN as am,cO as rm,cP as sm,cQ as om,cR as lm,cS as vo,cT as dm,cU as cm,cV as um,cW as mm,cX as hm,cY as gm,cZ as pm,c_ as fm,c$ as km,d0 as wm,d1 as bm,d2 as ym,d3 as xm,d4 as vm,d5 as jm,d6 as _m,d7 as Nm,d8 as Bm,d9 as Sm,da as Em,db as Im,dc as Rm,dd as Cm,de as Tm,df as Mm,dg as jo,dh as _o}from"./index-CpEaJdlZ.js";import{a$ as xr,di as ms,dj as Am,dk as zm,dl as nn,dm as hs,dn as lt,dp as Pm,dq as gs,dr as vr,ds as wi,cB as pd,dt as _a,du as fd,dv as ps,dw as Na,dx as on,c5 as kd,dy as wd,dz as Ba,dA as Dm,dB as Lm,dC as Om,dD as qm,cM as fs,dE as Fm,b2 as $m,az as Km,dF as Um,dG as Hm,dH as Gm,aF as pa,dI as Wm,dJ as Vm,dK as Jm,dL as No,dM as Qm,dN as Ym,dO as Xm,dP as Zm,a_ as eh,dQ as nh,dR as zt,dS as th,dT as ih,dU as bd,a1 as Oa,dV as ah,dW as rh,dX as Bo,dY as sh,dZ as oh,cv as mt,d_ as qa,d$ as yd,e0 as Rn,e1 as xd,cQ as Fa,c_ as lh,bx as vd,e2 as jd,e3 as _d,e4 as dh,e5 as ch,e6 as uh,e7 as Nd,e8 as xi,e9 as bi,d8 as mh,cW as Bd,ea as hh,eb as Sd,ec as Sa,ed as Ea,ee as Ed,ef as gh,eg as So,eh as ph,r as fh,ca as kh,ei as Id,ej as wh,ek as bh,el as yh,em as xh,en as Rd,eo as ks,ep as Cd,eq as vh,br as Ve,er as jh,es as _h,et as Nh,cK as $a,eu as Ka,ev as ws,ew as ui,d5 as Td,cG as bs,ex as Bh,ey as Md,ez as Ad,eA as Eo,bv as Sh,bs as fn,eB as Eh,eC as Ih,eD as Rh,eE as zd,eF as Ch,eG as Pd,eH as Ia,eI as jr,eJ as Dd,eK as Th,eL as Mh,eM as Io,eN as Ro,eO as Co,eP as To,cI as Ah,eQ as Mo,eR as zh,eS as _r,eT as Ph,eU as Dh,ad as Lh,bu as Oh,cb as qh,eV as Fh,eW as $h,eX as Kh,eY as Uh,eZ as Hh,e_ as Nr,e$ as Gh,f0 as Wh}from"./conversation-input-sync-PkxW9VtI.js";import{O as In,u as ht,h as Ua,m as Ha,s as Vh,K as ys,ar as Ld,aA as Jh,n as fa,ao as Qh,G as En,aB as Yh,aC as Ao,aD as Xh,M as W,aE as Zh,aF as Od,aG as eg,aH as qd,aI as Fd,aj as Ga,d as Br,au as zo,aJ as Sr,aK as dt,aL as Po,aM as ng,a as tg,t as si}from"./appearance-D-cqStrp.js";import{c as Tn,u as pe,A as $i,B as X,aj as $d,X as gt,a7 as Kd,ai as Ud,a8 as ig,a9 as Hd,ak as ag,i as yi,n as qt,o as Ft,y as Gd,p as $t,z as Kt,S as en,K as Gi,w as Ji,h as rg,F as Wa,J as Wd,al as xs,r as vs,a as sg,D as Qi,b as Yi,d as Xi,I as Vd,H as mi,l as Hr,m as Ra,e as Zi,am as Ca,f as fi,an as og,aa as lg,ao as dg,ap as cg,a6 as ug,aq as mg,ar as hg,as as Wi,k as gg,at as js,q as pg}from"./error-boundary-DP-w218V.js";import{t as o}from"./messages-WCx2gWDp.js";import{r as fg,u as Do,T as Er,b as Ta,t as Jd,a as kg,c as Gr,d as wg,e as bg,D as yg,f as Ir,n as xg,g as vg,h as jg,i as _g,j as Ng,k as Bg,l as Sg,m as Lo,s as Eg,w as Ig}from"./team-bridge-scope-preference-DpxjIHL_.js";import{I as Qd,L as Rg}from"./log-in-3BiTWJmW.js";import{B as Cg}from"./building-2-CXOVJzQP.js";import"./console-mirror-B88TErpS.js";import"./roles-D1pcbxAx.js";/**
|
|
2
2
|
* @license lucide-react v0.507.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const Tg=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],Yd=Tn("bell-off",Tg);/**
|
|
7
7
|
* @license lucide-react v0.507.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const
|
|
11
|
+
*/const Mg=[["path",{d:"M13.67 8H18a2 2 0 0 1 2 2v4.33",key:"7az073"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M22 22 2 2",key:"1r8tn9"}],["path",{d:"M8 8H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 1.414-.586",key:"s09a7a"}],["path",{d:"M9 13v2",key:"rq6x2g"}],["path",{d:"M9.67 4H12v2.33",key:"110xot"}]],Ag=Tn("bot-off",Mg);/**
|
|
12
12
|
* @license lucide-react v0.507.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const zg=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]],Pg=Tn("cloud-off",zg);/**
|
|
17
17
|
* @license lucide-react v0.507.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const Dg=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],Xd=Tn("file-x",Dg);/**
|
|
22
22
|
* @license lucide-react v0.507.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const Lg=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]],Og=Tn("grid-2x2",Lg);/**
|
|
27
27
|
* @license lucide-react v0.507.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const qg=[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M16 19h6",key:"xwg31i"}]],Fg=Tn("mail-plus",qg);/**
|
|
32
32
|
* @license lucide-react v0.507.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const $g=[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]],Kg=Tn("smile-plus",$g);/**
|
|
37
37
|
* @license lucide-react v0.507.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const Ug=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],ca=Tn("user-minus",Ug);/**
|
|
42
42
|
* @license lucide-react v0.507.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const
|
|
46
|
+
*/const Hg=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Oo=Tn("user-round",Hg);/**
|
|
47
47
|
* @license lucide-react v0.507.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const Ug=[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]],Gr=Tn("user-round-x",Ug);function Hg(e,n=_u){return n?e==="enabled":!1}function Gg(){throw new Error("Team trial activation is not available in this release")}const Wg={eligibility(){return yr({operation:"team_trial.eligibility"})},status(e){return yr({operation:"team_trial.status",tenantId:e})},async start(e){Gg();const n=e.orgName?.trim();return yr({operation:"team_trial.start",tenantId:e.tenantId,requestId:e.requestId,payload:{terms_version:e.termsVersion,terms_accepted:!0,...n?{org_name:n}:{}}})}};function Vg(e){return e instanceof In&&(e.status===404||e.status===422)}const Jg="https://console.radienthq.com/dashboard/team";function Qg(e){const n=new URL(Jg);return e&&n.searchParams.set("tenant",e),n.searchParams.set("src","lop"),n.toString()}function Yg(e,n){const t=(e??[]).find(a=>a.tenant_id===n);return t?.status==="active"&&(t.role==="owner"||t.role==="admin")}function Yd(e,n){return!e||!e.find(a=>a.tenant_id===n)||Yg(e,n)?"billing":"member"}function Xg(e){return e==="plan_required"}function Zg(e){if(!e||e.state!=="ready"||e.surface_state!=="A")return null;const n=e.trial_ended;return!n?.tenant_id||!n.trial_ended_at?null:{tenantId:n.tenant_id,endedAt:n.trial_ended_at}}function ep(e){return e.statusReadOnly||!e.ownerGuard||e.trialPaused}function np(e){return!e||e.state!=="ended"?null:e.ended_at??e.trial_end??null}function tp(e){return!e||e.state!=="active"?null:e.trial_end??null}function ip(e,n,t){if(!e)return null;const a=new Date(e);return Number.isNaN(a.getTime())?null:new Intl.DateTimeFormat(n,{weekday:"long",year:"numeric",month:"long",day:"numeric",...t?{timeZone:t}:{}}).format(a)}const ap={all:["team-trial"],eligibility:e=>["team-trial","eligibility",e??"unresolved-owner"],status:(e,n)=>["team-trial","status",e??"none",n??"unresolved-owner"]};function rp(e){const n=ht(),{accountId:t}=us();return Ka({queryKey:ap.status(e,t),queryFn:async()=>{try{return await Tm(n,t,()=>Wg.status(e))}catch(a){if(Vg(a))return null;throw a}},enabled:!!e&&!!t,staleTime:6e4,retry:!1})}const sp=e=>i.jsx(i.Fragment,{children:e.fallback}),Wr=({kind:e,at:n,tenantId:t,audience:a="billing",actionVariant:r="ghost",timeZone:s})=>{const l=ge(),c=ip(n,l,s)??n,d=Qg(t),m=e==="paused"&&a==="member";return i.jsx("output",{className:"block px-4 pt-2","data-team-bridge-trial-note":e,"data-team-bridge-trial-audience":a,children:i.jsx(Fi,{variant:"info",className:G(rd,"border-transparent"),children:i.jsxs("div",{className:"flex w-full min-w-0 flex-wrap items-center gap-x-3 gap-y-1",children:[i.jsx("p",{className:"min-w-0 max-w-prose text-body-sm text-ink",children:e==="active"?o("ui.teamBridgeTrial.active.note",{date:c}):m?o("ui.teamBridgeTrial.paused.note_member",{date:c}):o("ui.teamBridgeTrial.paused.note",{date:c})}),!m&&a!=="pending"&&i.jsx(Y,{variant:r,size:"sm",className:G("shrink-0",r==="ghost"&&"text-ink"),"data-team-bridge-trial-action":e==="paused"?"subscribe":"invite",onClick:()=>Mm(d),children:e==="paused"?o("ui.teamBridgeTrial.subscribe"):o("ui.teamBridgeTrial.active.invite")})]})})})};function op(e){const n=rp(e),t=ls({enabled:!!e}),a=np(n.data);if(a)return{paused:!0,note:i.jsx(Wr,{kind:"paused",at:a,tenantId:e??null,audience:Yd(t.data?.memberships??null,e)})};const r=tp(n.data);return{paused:!1,note:r?i.jsx(Wr,{kind:"active",at:r,tenantId:e??null}):null}}const lp=({tenantId:e,endedAt:n,audience:t="billing",timeZone:a})=>i.jsx("div",{"data-glass-region":"canvas","data-team-bridge-trial":"ended",className:"flex h-full min-h-0 w-full items-center justify-center overflow-hidden bg-canvas px-6",children:i.jsx("div",{className:"max-w-lg",children:i.jsx(Wr,{kind:"paused",at:n,tenantId:e,audience:t,actionVariant:"primary",timeZone:a})})}),dp=({tenantId:e,endedAt:n})=>{const t=ls({enabled:!!e});return i.jsx(lp,{tenantId:e,endedAt:n,audience:t.isLoading?"pending":Yd(t.data?.memberships??null,e)})};function Oo(e,n){return new Set((e?.members??[]).filter(t=>t.state===n).map(t=>`${t.kind}:${t.account_id}`))}function cp(e){const{conversation:n,people:t,selfAccountId:a,chiefLabels:r}=e,s=Oo(n,"active"),l=Oo(n,"invited"),c=[],d=new Set;for(const m of t){const h=nn(m),p=ms(m,a),g=p==="unavailable";if(p!=="self"){const v=`human:${m.account_id}`;d.add(v),c.push({kind:"human",accountId:m.account_id,label:h,secondary:m.profile?.title||void 0,member:s.has(v),invited:l.has(v),bridgeOff:g,profile:m})}const b=m.agent;if(!b)continue;const f=`agent:${m.account_id}`;d.add(f);const x=b.name.trim();c.push({kind:"agent",accountId:m.account_id,endpointId:b.endpoint_id,label:lt(x,h,r),aliases:[x,h].filter(v=>v!==""),secondary:x!==""&&x!==h?e.agentRole:void 0,member:s.has(f),invited:l.has(f),bridgeOff:g||!(b.state==="active"||b.state==="paused"),profile:m})}for(const m of n?.members??[]){const h=`${m.kind}:${m.account_id}`;if(d.has(h)||!(s.has(h)||l.has(h))||m.kind==="human"&&m.account_id===a)continue;const p=Am(m,r);if(p===null)continue;d.add(h);const g=m.endpoint_id;c.push({kind:m.kind,accountId:m.account_id,...m.kind==="agent"&&typeof g=="string"?{endpointId:g}:{},label:p,member:s.has(h),invited:l.has(h),bridgeOff:!1})}return c}const Xd=u.createContext(null);function js(){return u.useContext(Xd)}const up=()=>({named:(e,n)=>o("ui.teamBridge.chief.label",{agent:e,person:n}),unnamed:e=>o("ui.teamBridge.chief.unnamed",{person:e})});function mp(e,n,t){const a=n.find(d=>d.account_id===t),r=e.members.find(d=>d.kind==="human"&&d.account_id===t),s=a?nn(a):r?.display_label.trim()??"",l=xr(s),c=s!==""&&!n.some(d=>d.account_id!==t&&xr(nn(d))===l)&&!e.members.some(d=>d.account_id!==t&&xr(d.display_label)===l);return{accountId:t,label:s,labelUnique:c}}function hp({conversation:e,people:n,selfAccountId:t,sendMentions:a,onAddMembers:r,children:s}){const l=u.useMemo(()=>{if(!e)return null;const c=cp({conversation:e,people:n,selfAccountId:t,chiefLabels:up(),agentRole:o("ui.teamBridge.chief.fallback")}),d=r&&e.kind!=="dm"?m=>r(e,[hs(m.kind==="agent"?{kind:"agent",accountId:m.accountId,endpointId:m.endpointId,label:m.label}:{kind:"human",accountId:m.accountId,label:m.label})]):void 0;return{conversationId:e.id,draftOwner:t?{accountId:t,tenantId:e.tenant_id}:null,self:t?mp(e,n,t):null,candidates:c,conversationKind:e.kind,sendMentions:a,onInvite:d,canInvite:m=>d!==void 0&&!m.invited&&(m.kind==="human"||!!m.endpointId)}},[e,n,t,a,r]);return i.jsx(Xd.Provider,{value:l,children:s})}function gp(e,n){return e===null?n===null?"none":"emoji":n===null?"mention":n>e?"emoji":"mention"}function pp(e,n,t){return e!=="none"&&t[e](n)?!0:(t.composer(n),!1)}function fp(e,n){return!n&&["insertText","deleteContentBackward","deleteContentForward"].includes(e)}function Zd(e,n){return`${e}-emoji-option-${n}`}const kp=36,wp=8;function bp(e){const n=Math.max(0,e.viewportWidth),t=Math.max(0,e.viewportHeight),a=Math.min(8,n/2,t/2),r=6,s=e.paneWidth!==void 0&&Number.isFinite(e.paneWidth)?Math.max(0,e.paneWidth):Number.POSITIVE_INFINITY,l=Math.min(320,s,Math.max(0,n-a*2)),c=Math.max(1,Math.min(wp,e.rows))*kp+8,d=Math.max(0,e.caret.top-r-a),m=Math.max(0,t-e.caret.top-e.caret.height-r-a),h=d<c&&m>d,p=Math.min(c,h?m:d,Math.max(0,t-a*2)),g=e.rtl?e.caret.right-l:e.caret.left;return{left:Math.max(a,Math.min(g,n-a-l)),top:Math.max(a,Math.min(h?e.caret.top+e.caret.height+r:e.caret.top-r-p,t-a-p)),width:l,maxHeight:p}}const yp=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","fontFeatureSettings","textAlign","textTransform","textIndent","letterSpacing","wordSpacing","tabSize","direction"];function ec(e,n){const t=e.ownerDocument.defaultView?.getComputedStyle(e);if(t){for(const a of yp)n.style[a]=t[a];n.style.whiteSpace="pre-wrap",n.style.overflowWrap="break-word"}}function nc(e,n){const t=e.ownerDocument,a=t.createElement("div");ec(e,a),a.style.position="absolute",a.style.visibility="hidden",a.style.top="0",a.style.left="-9999px",a.textContent=e.value.slice(0,n);const r=t.createElement("span");r.textContent=e.value.charAt(n)||".",a.appendChild(r),t.body.appendChild(a);const s=e.getBoundingClientRect(),l=Number.parseFloat(t.defaultView?.getComputedStyle(e).lineHeight??"")||20,c={left:s.left+r.offsetLeft-e.scrollLeft,right:s.left+r.offsetLeft+r.offsetWidth-e.scrollLeft,top:s.top+r.offsetTop-e.scrollTop,height:l};return a.remove(),c}function xp({fieldRef:e,anchorIndex:n,listboxId:t,rows:a,active:r,label:s,emptyLabel:l,onActive:c,onPick:d,labelFor:m=h=>h.name}){const[h,p]=u.useState(null),g=u.useRef(null);u.useLayoutEffect(()=>{const f=e.current,x=f?.ownerDocument.defaultView;if(!f||!x)return;const v=()=>{p(bp({caret:nc(f,n),viewportWidth:x.innerWidth,viewportHeight:x.innerHeight,paneWidth:f.getBoundingClientRect().width,rows:a.length,rtl:x.getComputedStyle(f).direction==="rtl"}))};v(),x.addEventListener("scroll",v,!0),x.addEventListener("resize",v);const k=typeof ResizeObserver>"u"?null:new ResizeObserver(v);return k?.observe(f),()=>{x.removeEventListener("scroll",v,!0),x.removeEventListener("resize",v),k?.disconnect()}},[e,n,a.length]),u.useLayoutEffect(()=>{g.current?.querySelector(`[data-emoji-index="${r}"]`)?.scrollIntoView?.({block:"nearest"})},[r,a,h?.maxHeight]);const b=e.current?.ownerDocument;return!b||!h||h.maxHeight<=0?null:qd.createPortal(i.jsx("div",{"data-emoji-popover":"","data-lo-floating":"",className:G("fixed z-50 overflow-hidden rounded-md bg-elevated shadow-overlay"),style:{left:h.left,top:h.top,width:h.width},children:i.jsx("div",{ref:g,id:t,role:"listbox",tabIndex:-1,"aria-label":s,className:"overflow-y-auto py-1",style:{maxHeight:h.maxHeight},children:a.length===0?i.jsx("output",{className:"block min-h-9 px-3 py-2 text-body-sm text-ink-muted",children:l}):a.map((f,x)=>i.jsxs("div",{id:Zd(t,x),role:"option","aria-selected":x===r,"aria-setsize":a.length,"aria-posinset":x+1,"data-emoji-index":x,className:G("relative flex h-9 min-h-9 cursor-pointer items-center gap-2 px-3 text-body-sm text-ink",x===r&&"bg-accent-wash before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:bg-accent"),onMouseMove:()=>c(x),onMouseDown:v=>{v.preventDefault()},onClick:()=>d(f),children:[i.jsx("span",{"aria-hidden":"true",className:"shrink-0 text-lg",children:f.emoji}),i.jsx("span",{className:"truncate",children:m(f)})]},f.emoji))})}),b.body)}const vp=["Smileys & Emotion","People & Body","Animals & Nature","Food & Drink","Travel & Places","Activities","Objects","Symbols","Flags"],jp=JSON.parse('[["😀","grinning face",0,["cheerful","cheery","face","grin","grinning","happy","laugh","nice","smile","smiling","teeth"]],["😃","grinning face with big eyes",0,["awesome","big","eyes","face","grin","grinning","happy","mouth","open","smile","smiling","teeth","yay"]],["😄","grinning face with smiling eyes",0,["eye","eyes","face","grin","grinning","happy","laugh","lol","mouth","open","smile","smiling"]],["😁","beaming face with smiling eyes",0,["beaming","eye","eyes","face","grin","grinning","happy","nice","smile","smiling","teeth"]],["😆","grinning squinting face",0,["closed","eyes","face","grinning","haha","hahaha","happy","laugh","lol","mouth","open","rofl","smile","smiling","squinting"]],["😅","grinning face with sweat",0,["cold","dejected","excited","face","grinning","mouth","nervous","open","smile","smiling","stress","stressed","sweat"]],["🤣","rolling on the floor laughing",0,["crying","face","floor","funny","haha","happy","hehe","hilarious","joy","laugh","lmao","lol","rofl","roflmao","rolling","tear"]],["😂","face with tears of joy",0,["crying","face","feels","funny","haha","happy","hehe","hilarious","joy","laugh","lmao","lol","rofl","roflmao","tear"]],["🙂","slightly smiling face",0,["face","happy","slightly","smile","smiling"]],["🙃","upside-down face",0,["face","hehe","smile","upside-down"]],["🫠","melting face",0,["disappear","dissolve","embarrassed","face","haha","heat","hot","liquid","lol","melt","melting","sarcasm","sarcastic"]],["","cracking face",0,[]],["😉","winking face",0,["face","flirt","heartbreaker","sexy","slide","tease","wink","winking","winks"]],["😊","smiling face with smiling eyes",0,["blush","eye","eyes","face","glad","satisfied","smile","smiling"]],["😇","smiling face with halo",0,["angel","angelic","angels","blessed","face","fairy","fairytale","fantasy","halo","happy","innocent","peaceful","smile","smiling","spirit","tale"]],["🥰","smiling face with hearts",0,["3","adore","crush","face","heart","hearts","ily","love","romance","smile","smiling","you"]],["😍","smiling face with heart-eyes",0,["143","bae","eye","face","feels","heart-eyes","hearts","ily","kisses","love","romance","romantic","smile","xoxo"]],["🤩","star-struck",0,["excited","eyes","face","grinning","smile","star","star-struck","starry-eyed","wow"]],["😘","face blowing a kiss",0,["adorbs","bae","blowing","face","flirt","heart","ily","kiss","love","lover","miss","muah","romantic","smooch","xoxo","you"]],["😗","kissing face",0,["143","date","dating","face","flirt","ily","kiss","love","smooch","smooches","xoxo","you"]],["☺️","smiling face",0,["face","happy","outlined","relaxed","smile","smiling"]],["😚","kissing face with closed eyes",0,["143","bae","blush","closed","date","dating","eye","eyes","face","flirt","ily","kisses","kissing","smooches","xoxo"]],["😙","kissing face with smiling eyes",0,["143","closed","date","dating","eye","eyes","face","flirt","ily","kiss","kisses","kissing","love","night","smile","smiling"]],["🥲","smiling face with tear",0,["face","glad","grateful","happy","joy","pain","proud","relieved","smile","smiley","smiling","tear","touched"]],["😋","face savoring food",0,["delicious","eat","face","food","full","hungry","savor","smile","smiling","tasty","um","yum","yummy"]],["😛","face with tongue",0,["awesome","cool","face","nice","party","stuck-out","sweet","tongue"]],["😜","winking face with tongue",0,["crazy","epic","eye","face","funny","joke","loopy","nutty","party","stuck-out","tongue","wacky","weirdo","wink","winking","yolo"]],["🤪","zany face",0,["crazy","eye","eyes","face","goofy","large","small","zany"]],["😝","squinting face with tongue",0,["closed","eye","eyes","face","gross","horrible","omg","squinting","stuck-out","taste","tongue","whatever","yolo"]],["🤑","money-mouth face",0,["face","money","money-mouth","mouth","paid"]],["🤗","smiling face with open hands",0,["face","hands","hug","hugging","open","smiling"]],["🤭","face with hand over mouth",0,["face","giggle","giggling","hand","mouth","oops","realization","secret","shock","sudden","surprise","whoops"]],["🫢","face with open eyes and hand over mouth",0,["amazement","awe","disbelief","embarrass","eyes","face","gasp","hand","mouth","omg","open","over","quiet","scared","shock","surprise"]],["🫣","face with peeking eye",0,["captivated","embarrass","eye","face","hide","hiding","peek","peeking","peep","scared","shy","stare"]],["🤫","shushing face",0,["face","quiet","shh","shush","shushing"]],["🤔","thinking face",0,["chin","consider","face","hmm","ponder","pondering","thinking","wondering"]],["🫡","saluting face",0,["face","good","luck","ma’am","OK","respect","salute","saluting","sir","troops","yes"]],["🤐","zipper-mouth face",0,["face","keep","mouth","quiet","secret","shut","zip","zipper","zipper-mouth"]],["🤨","face with raised eyebrow",0,["disapproval","disbelief","distrust","emoji","eyebrow","face","hmm","mild","raised","skeptic","skeptical","skepticism","surprise","what"]],["😐","neutral face",0,["awkward","blank","deadpan","expressionless","face","fine","jealous","meh","neutral","oh","shade","straight","unamused","unhappy","unimpressed","whatever"]],["😑","expressionless face",0,["awkward","dead","expressionless","face","fine","inexpressive","jealous","meh","not","oh","omg","straight","uh","unhappy","unimpressed","whatever"]],["😶","face without mouth",0,["awkward","blank","expressionless","face","mouth","mouthless","mute","quiet","secret","silence","silent","speechless"]],["🫥","dotted line face",0,["depressed","disappear","dotted","face","hidden","hide","introvert","invisible","line","meh","whatever","wtv"]],["😶🌫️","face in clouds",0,["absentminded","clouds","face","fog","head"]],["😏","smirking face",0,["boss","dapper","face","flirt","homie","kidding","leer","shade","slick","sly","smirk","smug","snicker","suave","suspicious","swag"]],["😒","unamused face",0,["...","bored","face","fine","jealous","jel","jelly","pissed","smh","ugh","uhh","unamused","unhappy","weird","whatever"]],["🙄","face with rolling eyes",0,["eyeroll","eyes","face","rolling","shade","ugh","whatever"]],["😬","grimacing face",0,["awk","awkward","dentist","face","grimace","grimacing","grinning","smile","smiling"]],["😮💨","face exhaling",0,["blow","blowing","exhale","exhaling","exhausted","face","gasp","groan","relief","sigh","smiley","smoke","whisper","whistle"]],["🤥","lying face",0,["face","liar","lie","lying","pinocchio"]],["🫨","shaking face",0,["crazy","daze","earthquake","face","omg","panic","shaking","shock","surprise","vibrate","whoa","wow"]],["🙂↔️","head shaking horizontally",0,["head","horizontally","no","shake","shaking"]],["🙂↕️","head shaking vertically",0,["head","nod","shaking","vertically","yes"]],["😌","relieved face",0,["calm","face","peace","relief","relieved","zen"]],["😔","pensive face",0,["awful","bored","dejected","died","disappointed","face","losing","lost","pensive","sad","sucks"]],["😪","sleepy face",0,["crying","face","good","night","sad","sleep","sleeping","sleepy","tired"]],["🤤","drooling face",0,["drooling","face"]],["😴","sleeping face",0,["bed","bedtime","face","good","goodnight","nap","night","sleep","sleeping","tired","whatever","yawn","zzz"]],["","face with bags under eyes",0,["bags","bored","exhausted","eyes","face","fatigued","late","sleepy","tired","weary"]],["😷","face with medical mask",0,["cold","dentist","dermatologist","doctor","dr","face","germs","mask","medical","medicine","sick"]],["🤒","face with thermometer",0,["face","ill","sick","thermometer"]],["🤕","face with head-bandage",0,["bandage","face","head-bandage","hurt","injury","ouch"]],["🤢","nauseated face",0,["face","gross","nasty","nauseated","sick","vomit"]],["🤮","face vomiting",0,["barf","ew","face","gross","puke","sick","spew","throw","up","vomit","vomiting"]],["🤧","sneezing face",0,["face","fever","flu","gesundheit","sick","sneeze","sneezing"]],["🥵","hot face",0,["dying","face","feverish","heat","hot","panting","red-faced","stroke","sweating","tongue"]],["🥶","cold face",0,["blue","blue-faced","cold","face","freezing","frostbite","icicles","subzero","teeth"]],["🥴","woozy face",0,["dizzy","drunk","eyes","face","intoxicated","mouth","tipsy","uneven","wavy","woozy"]],["😵","face with crossed-out eyes",0,["crossed-out","dead","dizzy","eyes","face","feels","knocked","out","sick","tired"]],["😵💫","face with spiral eyes",0,["confused","dizzy","eyes","face","hypnotized","omg","smiley","spiral","trouble","whoa","woah","woozy"]],["🤯","exploding head",0,["blown","explode","exploding","head","mind","mindblown","no","shocked","way"]],["🤠","cowboy hat face",0,["cowboy","cowgirl","face","hat"]],["🥳","partying face",0,["bday","birthday","celebrate","celebration","excited","face","happy","hat","hooray","horn","party","partying"]],["🥸","disguised face",0,["disguise","eyebrow","face","glasses","incognito","moustache","mustache","nose","person","spy","tache","tash"]],["😎","smiling face with sunglasses",0,["awesome","beach","bright","bro","chilling","cool","face","rad","relaxed","shades","slay","smile","style","sunglasses","swag","win"]],["🤓","nerd face",0,["brainy","clever","expert","face","geek","gifted","glasses","intelligent","nerd","smart"]],["🧐","face with monocle",0,["classy","face","fancy","monocle","rich","stuffy","wealthy"]],["😕","confused face",0,["befuddled","confused","confusing","dunno","face","frown","hm","meh","not","sad","sorry","sure"]],["🫤","face with diagonal mouth",0,["confused","confusion","diagonal","disappointed","doubt","doubtful","face","frustrated","frustration","meh","mouth","skeptical","unsure","whatever","wtv"]],["😟","worried face",0,["anxious","butterflies","face","nerves","nervous","sad","stress","stressed","surprised","worried","worry"]],["🙁","slightly frowning face",0,["face","frown","frowning","sad","slightly"]],["☹️","frowning face",0,["face","frown","frowning","sad"]],["😮","face with open mouth",0,["believe","face","forgot","mouth","omg","open","shocked","surprised","sympathy","unbelievable","unreal","whoa","wow","you"]],["😯","hushed face",0,["epic","face","hushed","omg","stunned","surprised","whoa","woah"]],["😲","astonished face",0,["astonished","cost","face","no","omg","shocked","totally","way"]],["😳","flushed face",0,["amazed","awkward","crazy","dazed","dead","disbelief","embarrassed","face","flushed","geez","heat","hot","impressed","jeez","what","wow"]],["","distorted face",0,["anxiety","bloated","panic","shocked","surprised","vulnerable"]],["🥺","pleading face",0,["begging","big","eyes","face","mercy","not","pleading","please","pretty","puppy","sad","why"]],["🥹","face holding back tears",0,["admiration","aww","back","cry","embarrassed","face","feelings","grateful","gratitude","holding","joy","please","proud","resist","sad","tears"]],["😦","frowning face with open mouth",0,["caught","face","frown","frowning","guard","mouth","open","scared","scary","surprise","what","wow"]],["😧","anguished face",0,["anguished","face","forgot","scared","scary","stressed","surprise","unhappy","what","wow"]],["😨","fearful face",0,["afraid","anxious","blame","face","fear","fearful","scared","worried"]],["😰","anxious face with sweat",0,["anxious","blue","cold","eek","face","mouth","nervous","open","rushed","scared","sweat","yikes"]],["😥","sad but relieved face",0,["anxious","call","close","complicated","disappointed","face","not","relieved","sad","sweat","time","whew"]],["😢","crying face",0,["awful","cry","crying","face","feels","miss","sad","tear","triste","unhappy"]],["😭","loudly crying face",0,["bawling","cry","crying","face","loudly","sad","sob","tear","tears","unhappy"]],["😱","face screaming in fear",0,["epic","face","fear","fearful","munch","scared","scream","screamer","screaming","shocked","surprised","woah"]],["😖","confounded face",0,["annoyed","confounded","confused","cringe","distraught","face","feels","frustrated","mad","sad"]],["😣","persevering face",0,["concentrate","concentration","face","focus","headache","persevere","persevering"]],["😞","disappointed face",0,["awful","blame","dejected","disappointed","face","fail","losing","sad","unhappy"]],["😓","downcast face with sweat",0,["close","cold","downcast","face","feels","headache","nervous","sad","scared","sweat","yikes"]],["😩","weary face",0,["crying","face","fail","feels","hungry","mad","nooo","sad","sleepy","tired","unhappy","weary"]],["😫","tired face",0,["cost","face","feels","nap","sad","sneeze","tired"]],["🥱","yawning face",0,["bedtime","bored","face","goodnight","nap","night","sleep","sleepy","tired","whatever","yawn","yawning","zzz"]],["😤","face with steam from nose",0,["anger","angry","face","feels","fume","fuming","furious","fury","mad","nose","steam","triumph","unhappy","won"]],["😡","enraged face",0,["anger","angry","enraged","face","feels","mad","maddening","pouting","rage","red","shade","unhappy","upset"]],["😠","angry face",0,["anger","angry","blame","face","feels","frustrated","mad","maddening","rage","shade","unhappy","upset"]],["🤬","face with symbols on mouth",0,["censor","cursing","cussing","face","mad","mouth","pissed","swearing","symbols"]],["😈","smiling face with horns",0,["demon","devil","evil","face","fairy","fairytale","fantasy","horns","purple","shade","smile","smiling","tale"]],["👿","angry face with horns",0,["angry","demon","devil","evil","face","fairy","fairytale","fantasy","horns","imp","mischievous","purple","shade","tale"]],["💀","skull",0,["body","dead","death","face","fairy","fairytale","i’m","lmao","monster","skull","tale","yolo"]],["☠️","skull and crossbones",0,["bone","crossbones","dead","death","face","monster","skull"]],["💩","pile of poo",0,["bs","comic","doo","dung","face","fml","monster","pile","poo","poop","smelly","smh","stink","stinks","stinky","turd"]],["🤡","clown face",0,["clown","face"]],["👹","ogre",0,["creature","devil","face","fairy","fairytale","fantasy","mask","monster","ogre","scary","tale"]],["👺","goblin",0,["angry","creature","face","fairy","fairytale","fantasy","goblin","mask","mean","monster","tale"]],["👻","ghost",0,["boo","creature","excited","face","fairy","fairytale","fantasy","ghost","halloween","haunting","monster","scary","silly","tale"]],["👽","alien",0,["alien","creature","extraterrestrial","face","fairy","fairytale","fantasy","monster","space","tale","ufo"]],["👾","alien monster",0,["alien","creature","extraterrestrial","face","fairy","fairytale","fantasy","game","gamer","games","monster","pixelated","space","tale","ufo"]],["🤖","robot",0,["face","monster","robot"]],["😺","grinning cat",0,["animal","cat","face","grinning","mouth","open","smile","smiling"]],["😸","grinning cat with smiling eyes",0,["animal","cat","eye","eyes","face","grin","grinning","smile","smiling"]],["😹","cat with tears of joy",0,["animal","cat","face","joy","laugh","laughing","lol","tear","tears"]],["😻","smiling cat with heart-eyes",0,["animal","cat","eye","face","heart","heart-eyes","love","smile","smiling"]],["😼","cat with wry smile",0,["animal","cat","face","ironic","smile","wry"]],["😽","kissing cat",0,["animal","cat","closed","eye","eyes","face","kiss","kissing"]],["🙀","weary cat",0,["animal","cat","face","oh","surprised","weary"]],["😿","crying cat",0,["animal","cat","cry","crying","face","sad","tear"]],["😾","pouting cat",0,["animal","cat","face","pouting"]],["🙈","see-no-evil monkey",0,["embarrassed","evil","face","forbidden","forgot","gesture","hide","monkey","no","omg","prohibited","scared","secret","smh","watch"]],["🙉","hear-no-evil monkey",0,["animal","ears","evil","face","forbidden","gesture","hear","listen","monkey","no","not","prohibited","secret","shh","tmi"]],["🙊","speak-no-evil monkey",0,["animal","evil","face","forbidden","gesture","monkey","no","not","oops","prohibited","quiet","secret","speak","stealth"]],["💌","love letter",0,["heart","letter","love","mail","romance","valentine"]],["💘","heart with arrow",0,["143","adorbs","arrow","cupid","date","emotion","heart","ily","love","romance","valentine"]],["💝","heart with ribbon",0,["143","anniversary","emotion","heart","ily","kisses","ribbon","valentine","xoxo"]],["💖","sparkling heart",0,["143","emotion","excited","good","heart","ily","kisses","morning","night","sparkle","sparkling","xoxo"]],["💗","growing heart",0,["143","emotion","excited","growing","heart","heartpulse","ily","kisses","muah","nervous","pulse","xoxo"]],["💓","beating heart",0,["143","beating","cardio","emotion","heart","heartbeat","ily","love","pulsating","pulse"]],["💞","revolving hearts",0,["143","adorbs","anniversary","emotion","heart","hearts","revolving"]],["💕","two hearts",0,["143","anniversary","date","dating","emotion","heart","hearts","ily","kisses","love","loving","two","xoxo"]],["💟","heart decoration",0,["143","decoration","emotion","heart","hearth","purple","white"]],["❣️","heart exclamation",0,["exclamation","heart","heavy","mark","punctuation"]],["💔","broken heart",0,["break","broken","crushed","emotion","heart","heartbroken","lonely","sad"]],["❤️🔥","heart on fire",0,["burn","fire","heart","love","lust","sacred"]],["❤️🩹","mending heart",0,["healthier","heart","improving","mending","recovering","recuperating","well"]],["❤️","red heart",0,["emotion","heart","love","red"]],["🩷","pink heart",0,["143","adorable","cute","emotion","heart","ily","like","love","pink","special","sweet"]],["🧡","orange heart",0,["143","heart","orange"]],["💛","yellow heart",0,["143","cardiac","emotion","heart","ily","love","yellow"]],["💚","green heart",0,["143","emotion","green","heart","ily","love","romantic"]],["💙","blue heart",0,["143","blue","emotion","heart","ily","love","romance"]],["🩵","light blue heart",0,["143","blue","cute","cyan","emotion","heart","ily","light","like","love","sky","special","teal"]],["💜","purple heart",0,["143","bestest","emotion","heart","ily","love","purple"]],["🤎","brown heart",0,["143","brown","heart"]],["🖤","black heart",0,["black","evil","heart","wicked"]],["🩶","grey heart",0,["143","emotion","gray","grey","heart","ily","love","silver","slate","special"]],["🤍","white heart",0,["143","heart","white"]],["💋","kiss mark",0,["dating","emotion","heart","kiss","kissing","lips","mark","romance","sexy"]],["💯","hundred points",0,["100","a+","agree","clearly","definitely","faithful","fleek","full","hundred","keep","perfect","point","score","TRUE","truth","yup"]],["💢","anger symbol",0,["anger","angry","comic","mad","symbol","upset"]],["","fight cloud",0,["argument","brawl","debate","disagreement","fight","ruckus","wrestle"]],["💥","collision",0,["bomb","boom","collide","collision","comic","explode"]],["💫","dizzy",0,["comic","dizzy","shining","shooting","star","stars"]],["💦","sweat droplets",0,["comic","drip","droplet","droplets","drops","splashing","squirt","sweat","water","wet","work","workout"]],["💨","dashing away",0,["away","cloud","comic","dash","dashing","fart","fast","go","gone","gotta","running","smoke"]],["🕳️","hole",0,["hole"]],["💬","speech balloon",0,["balloon","bubble","comic","dialog","message","sms","speech","talk","text","typing"]],["👁️🗨️","eye in speech bubble",0,["balloon","bubble","eye","speech","witness"]],["🗨️","left speech bubble",0,["balloon","bubble","dialog","left","speech"]],["🗯️","right anger bubble",0,["anger","angry","balloon","bubble","mad","right"]],["💭","thought balloon",0,["balloon","bubble","cartoon","cloud","comic","daydream","decisions","dream","idea","invent","invention","realize","think","thoughts","wonder"]],["💤","ZZZ",0,["comic","good","goodnight","night","sleep","sleeping","sleepy","tired","zzz"]],["👋","waving hand",1,["bye","cya","g2g","greetings","gtg","hand","hello","hey","hi","later","outtie","ttfn","ttyl","wave","yo","you"]],["👋🏻","waving hand: light skin tone",1,[]],["👋🏼","waving hand: medium-light skin tone",1,[]],["👋🏽","waving hand: medium skin tone",1,[]],["👋🏾","waving hand: medium-dark skin tone",1,[]],["👋🏿","waving hand: dark skin tone",1,[]],["🤚","raised back of hand",1,["back","backhand","hand","raised"]],["🤚🏻","raised back of hand: light skin tone",1,[]],["🤚🏼","raised back of hand: medium-light skin tone",1,[]],["🤚🏽","raised back of hand: medium skin tone",1,[]],["🤚🏾","raised back of hand: medium-dark skin tone",1,[]],["🤚🏿","raised back of hand: dark skin tone",1,[]],["🖐️","hand with fingers splayed",1,["finger","fingers","hand","raised","splayed","stop"]],["🖐🏻","hand with fingers splayed: light skin tone",1,[]],["🖐🏼","hand with fingers splayed: medium-light skin tone",1,[]],["🖐🏽","hand with fingers splayed: medium skin tone",1,[]],["🖐🏾","hand with fingers splayed: medium-dark skin tone",1,[]],["🖐🏿","hand with fingers splayed: dark skin tone",1,[]],["✋","raised hand",1,["5","five","hand","high","raised","stop"]],["✋🏻","raised hand: light skin tone",1,[]],["✋🏼","raised hand: medium-light skin tone",1,[]],["✋🏽","raised hand: medium skin tone",1,[]],["✋🏾","raised hand: medium-dark skin tone",1,[]],["✋🏿","raised hand: dark skin tone",1,[]],["🖖","vulcan salute",1,["finger","hand","hands","salute","Vulcan"]],["🖖🏻","vulcan salute: light skin tone",1,[]],["🖖🏼","vulcan salute: medium-light skin tone",1,[]],["🖖🏽","vulcan salute: medium skin tone",1,[]],["🖖🏾","vulcan salute: medium-dark skin tone",1,[]],["🖖🏿","vulcan salute: dark skin tone",1,[]],["🫱","rightwards hand",1,["hand","handshake","hold","reach","right","rightward","rightwards","shake"]],["🫱🏻","rightwards hand: light skin tone",1,[]],["🫱🏼","rightwards hand: medium-light skin tone",1,[]],["🫱🏽","rightwards hand: medium skin tone",1,[]],["🫱🏾","rightwards hand: medium-dark skin tone",1,[]],["🫱🏿","rightwards hand: dark skin tone",1,[]],["🫲","leftwards hand",1,["hand","handshake","hold","left","leftward","leftwards","reach","shake"]],["🫲🏻","leftwards hand: light skin tone",1,[]],["🫲🏼","leftwards hand: medium-light skin tone",1,[]],["🫲🏽","leftwards hand: medium skin tone",1,[]],["🫲🏾","leftwards hand: medium-dark skin tone",1,[]],["🫲🏿","leftwards hand: dark skin tone",1,[]],["🫳","palm down hand",1,["dismiss","down","drop","dropped","hand","palm","pick","shoo","up"]],["🫳🏻","palm down hand: light skin tone",1,[]],["🫳🏼","palm down hand: medium-light skin tone",1,[]],["🫳🏽","palm down hand: medium skin tone",1,[]],["🫳🏾","palm down hand: medium-dark skin tone",1,[]],["🫳🏿","palm down hand: dark skin tone",1,[]],["🫴","palm up hand",1,["beckon","catch","come","hand","hold","know","lift","me","offer","palm","tell"]],["🫴🏻","palm up hand: light skin tone",1,[]],["🫴🏼","palm up hand: medium-light skin tone",1,[]],["🫴🏽","palm up hand: medium skin tone",1,[]],["🫴🏾","palm up hand: medium-dark skin tone",1,[]],["🫴🏿","palm up hand: dark skin tone",1,[]],["🫷","leftwards pushing hand",1,["block","five","halt","hand","high","hold","leftward","leftwards","pause","push","pushing","refuse","slap","stop","wait"]],["🫷🏻","leftwards pushing hand: light skin tone",1,[]],["🫷🏼","leftwards pushing hand: medium-light skin tone",1,[]],["🫷🏽","leftwards pushing hand: medium skin tone",1,[]],["🫷🏾","leftwards pushing hand: medium-dark skin tone",1,[]],["🫷🏿","leftwards pushing hand: dark skin tone",1,[]],["🫸","rightwards pushing hand",1,["block","five","halt","hand","high","hold","pause","push","pushing","refuse","rightward","rightwards","slap","stop","wait"]],["🫸🏻","rightwards pushing hand: light skin tone",1,[]],["🫸🏼","rightwards pushing hand: medium-light skin tone",1,[]],["🫸🏽","rightwards pushing hand: medium skin tone",1,[]],["🫸🏾","rightwards pushing hand: medium-dark skin tone",1,[]],["🫸🏿","rightwards pushing hand: dark skin tone",1,[]],["👌","OK hand",1,["awesome","bet","dope","fleek","fosho","got","gotcha","hand","legit","OK","okay","pinch","rad","sure","sweet","three"]],["👌🏻","OK hand: light skin tone",1,[]],["👌🏼","OK hand: medium-light skin tone",1,[]],["👌🏽","OK hand: medium skin tone",1,[]],["👌🏾","OK hand: medium-dark skin tone",1,[]],["👌🏿","OK hand: dark skin tone",1,[]],["🤌","pinched fingers",1,["fingers","gesture","hand","hold","huh","interrogation","patience","pinched","relax","sarcastic","ugh","what","zip"]],["🤌🏻","pinched fingers: light skin tone",1,[]],["🤌🏼","pinched fingers: medium-light skin tone",1,[]],["🤌🏽","pinched fingers: medium skin tone",1,[]],["🤌🏾","pinched fingers: medium-dark skin tone",1,[]],["🤌🏿","pinched fingers: dark skin tone",1,[]],["🤏","pinching hand",1,["amount","bit","fingers","hand","little","pinching","small","sort"]],["🤏🏻","pinching hand: light skin tone",1,[]],["🤏🏼","pinching hand: medium-light skin tone",1,[]],["🤏🏽","pinching hand: medium skin tone",1,[]],["🤏🏾","pinching hand: medium-dark skin tone",1,[]],["🤏🏿","pinching hand: dark skin tone",1,[]],["✌️","victory hand",1,["hand","peace","v","victory"]],["✌🏻","victory hand: light skin tone",1,[]],["✌🏼","victory hand: medium-light skin tone",1,[]],["✌🏽","victory hand: medium skin tone",1,[]],["✌🏾","victory hand: medium-dark skin tone",1,[]],["✌🏿","victory hand: dark skin tone",1,[]],["🤞","crossed fingers",1,["cross","crossed","finger","fingers","hand","luck"]],["🤞🏻","crossed fingers: light skin tone",1,[]],["🤞🏼","crossed fingers: medium-light skin tone",1,[]],["🤞🏽","crossed fingers: medium skin tone",1,[]],["🤞🏾","crossed fingers: medium-dark skin tone",1,[]],["🤞🏿","crossed fingers: dark skin tone",1,[]],["🫰","hand with index finger and thumb crossed",1,["<3","crossed","expensive","finger","hand","heart","index","love","money","snap","thumb"]],["🫰🏻","hand with index finger and thumb crossed: light skin tone",1,[]],["🫰🏼","hand with index finger and thumb crossed: medium-light skin tone",1,[]],["🫰🏽","hand with index finger and thumb crossed: medium skin tone",1,[]],["🫰🏾","hand with index finger and thumb crossed: medium-dark skin tone",1,[]],["🫰🏿","hand with index finger and thumb crossed: dark skin tone",1,[]],["🤟","love-you gesture",1,["fingers","gesture","hand","ILY","love","love-you","three","you"]],["🤟🏻","love-you gesture: light skin tone",1,[]],["🤟🏼","love-you gesture: medium-light skin tone",1,[]],["🤟🏽","love-you gesture: medium skin tone",1,[]],["🤟🏾","love-you gesture: medium-dark skin tone",1,[]],["🤟🏿","love-you gesture: dark skin tone",1,[]],["🤘","sign of the horns",1,["finger","hand","horns","rock-on","sign"]],["🤘🏻","sign of the horns: light skin tone",1,[]],["🤘🏼","sign of the horns: medium-light skin tone",1,[]],["🤘🏽","sign of the horns: medium skin tone",1,[]],["🤘🏾","sign of the horns: medium-dark skin tone",1,[]],["🤘🏿","sign of the horns: dark skin tone",1,[]],["🤙","call me hand",1,["call","hand","hang","loose","me","Shaka"]],["🤙🏻","call me hand: light skin tone",1,[]],["🤙🏼","call me hand: medium-light skin tone",1,[]],["🤙🏽","call me hand: medium skin tone",1,[]],["🤙🏾","call me hand: medium-dark skin tone",1,[]],["🤙🏿","call me hand: dark skin tone",1,[]],["👈","backhand index pointing left",1,["backhand","finger","hand","index","left","point","pointing"]],["👈🏻","backhand index pointing left: light skin tone",1,[]],["👈🏼","backhand index pointing left: medium-light skin tone",1,[]],["👈🏽","backhand index pointing left: medium skin tone",1,[]],["👈🏾","backhand index pointing left: medium-dark skin tone",1,[]],["👈🏿","backhand index pointing left: dark skin tone",1,[]],["👉","backhand index pointing right",1,["backhand","finger","hand","index","point","pointing","right"]],["👉🏻","backhand index pointing right: light skin tone",1,[]],["👉🏼","backhand index pointing right: medium-light skin tone",1,[]],["👉🏽","backhand index pointing right: medium skin tone",1,[]],["👉🏾","backhand index pointing right: medium-dark skin tone",1,[]],["👉🏿","backhand index pointing right: dark skin tone",1,[]],["👆","backhand index pointing up",1,["backhand","finger","hand","index","point","pointing","up"]],["👆🏻","backhand index pointing up: light skin tone",1,[]],["👆🏼","backhand index pointing up: medium-light skin tone",1,[]],["👆🏽","backhand index pointing up: medium skin tone",1,[]],["👆🏾","backhand index pointing up: medium-dark skin tone",1,[]],["👆🏿","backhand index pointing up: dark skin tone",1,[]],["🖕","middle finger",1,["finger","hand","middle"]],["🖕🏻","middle finger: light skin tone",1,[]],["🖕🏼","middle finger: medium-light skin tone",1,[]],["🖕🏽","middle finger: medium skin tone",1,[]],["🖕🏾","middle finger: medium-dark skin tone",1,[]],["🖕🏿","middle finger: dark skin tone",1,[]],["👇","backhand index pointing down",1,["backhand","down","finger","hand","index","point","pointing"]],["👇🏻","backhand index pointing down: light skin tone",1,[]],["👇🏼","backhand index pointing down: medium-light skin tone",1,[]],["👇🏽","backhand index pointing down: medium skin tone",1,[]],["👇🏾","backhand index pointing down: medium-dark skin tone",1,[]],["👇🏿","backhand index pointing down: dark skin tone",1,[]],["☝️","index pointing up",1,["finger","hand","index","point","pointing","this","up"]],["☝🏻","index pointing up: light skin tone",1,[]],["☝🏼","index pointing up: medium-light skin tone",1,[]],["☝🏽","index pointing up: medium skin tone",1,[]],["☝🏾","index pointing up: medium-dark skin tone",1,[]],["☝🏿","index pointing up: dark skin tone",1,[]],["🫵","index pointing at the viewer",1,["at","finger","hand","index","pointing","poke","viewer","you"]],["🫵🏻","index pointing at the viewer: light skin tone",1,[]],["🫵🏼","index pointing at the viewer: medium-light skin tone",1,[]],["🫵🏽","index pointing at the viewer: medium skin tone",1,[]],["🫵🏾","index pointing at the viewer: medium-dark skin tone",1,[]],["🫵🏿","index pointing at the viewer: dark skin tone",1,[]],["👍","thumbs up",1,["+1","good","hand","like","thumb","up","yes"]],["👍🏻","thumbs up: light skin tone",1,[]],["👍🏼","thumbs up: medium-light skin tone",1,[]],["👍🏽","thumbs up: medium skin tone",1,[]],["👍🏾","thumbs up: medium-dark skin tone",1,[]],["👍🏿","thumbs up: dark skin tone",1,[]],["👎","thumbs down",1,["-1","bad","dislike","down","good","hand","no","nope","thumb","thumbs"]],["👎🏻","thumbs down: light skin tone",1,[]],["👎🏼","thumbs down: medium-light skin tone",1,[]],["👎🏽","thumbs down: medium skin tone",1,[]],["👎🏾","thumbs down: medium-dark skin tone",1,[]],["👎🏿","thumbs down: dark skin tone",1,[]],["","leftwards thumb sign",1,[]],["🏻","leftwards thumb sign: light skin tone",1,[]],["🏼","leftwards thumb sign: medium-light skin tone",1,[]],["🏽","leftwards thumb sign: medium skin tone",1,[]],["🏾","leftwards thumb sign: medium-dark skin tone",1,[]],["🏿","leftwards thumb sign: dark skin tone",1,[]],["","rightwards thumb sign",1,[]],["🏻","rightwards thumb sign: light skin tone",1,[]],["🏼","rightwards thumb sign: medium-light skin tone",1,[]],["🏽","rightwards thumb sign: medium skin tone",1,[]],["🏾","rightwards thumb sign: medium-dark skin tone",1,[]],["🏿","rightwards thumb sign: dark skin tone",1,[]],["✊","raised fist",1,["clenched","fist","hand","punch","raised","solidarity"]],["✊🏻","raised fist: light skin tone",1,[]],["✊🏼","raised fist: medium-light skin tone",1,[]],["✊🏽","raised fist: medium skin tone",1,[]],["✊🏾","raised fist: medium-dark skin tone",1,[]],["✊🏿","raised fist: dark skin tone",1,[]],["👊","oncoming fist",1,["absolutely","agree","boom","bro","bruh","bump","clenched","correct","fist","hand","knuckle","oncoming","pound","punch","rock","ttyl"]],["👊🏻","oncoming fist: light skin tone",1,[]],["👊🏼","oncoming fist: medium-light skin tone",1,[]],["👊🏽","oncoming fist: medium skin tone",1,[]],["👊🏾","oncoming fist: medium-dark skin tone",1,[]],["👊🏿","oncoming fist: dark skin tone",1,[]],["🤛","left-facing fist",1,["fist","left-facing","leftwards"]],["🤛🏻","left-facing fist: light skin tone",1,[]],["🤛🏼","left-facing fist: medium-light skin tone",1,[]],["🤛🏽","left-facing fist: medium skin tone",1,[]],["🤛🏾","left-facing fist: medium-dark skin tone",1,[]],["🤛🏿","left-facing fist: dark skin tone",1,[]],["🤜","right-facing fist",1,["fist","right-facing","rightwards"]],["🤜🏻","right-facing fist: light skin tone",1,[]],["🤜🏼","right-facing fist: medium-light skin tone",1,[]],["🤜🏽","right-facing fist: medium skin tone",1,[]],["🤜🏾","right-facing fist: medium-dark skin tone",1,[]],["🤜🏿","right-facing fist: dark skin tone",1,[]],["👏","clapping hands",1,["applause","approval","awesome","clap","congrats","congratulations","excited","good","great","hand","homie","job","nice","prayed","well","yay"]],["👏🏻","clapping hands: light skin tone",1,[]],["👏🏼","clapping hands: medium-light skin tone",1,[]],["👏🏽","clapping hands: medium skin tone",1,[]],["👏🏾","clapping hands: medium-dark skin tone",1,[]],["👏🏿","clapping hands: dark skin tone",1,[]],["🙌","raising hands",1,["celebration","gesture","hand","hands","hooray","praise","raised","raising"]],["🙌🏻","raising hands: light skin tone",1,[]],["🙌🏼","raising hands: medium-light skin tone",1,[]],["🙌🏽","raising hands: medium skin tone",1,[]],["🙌🏾","raising hands: medium-dark skin tone",1,[]],["🙌🏿","raising hands: dark skin tone",1,[]],["🫶","heart hands",1,["<3","hands","heart","love","you"]],["🫶🏻","heart hands: light skin tone",1,[]],["🫶🏼","heart hands: medium-light skin tone",1,[]],["🫶🏽","heart hands: medium skin tone",1,[]],["🫶🏾","heart hands: medium-dark skin tone",1,[]],["🫶🏿","heart hands: dark skin tone",1,[]],["👐","open hands",1,["hand","hands","hug","jazz","open","swerve"]],["👐🏻","open hands: light skin tone",1,[]],["👐🏼","open hands: medium-light skin tone",1,[]],["👐🏽","open hands: medium skin tone",1,[]],["👐🏾","open hands: medium-dark skin tone",1,[]],["👐🏿","open hands: dark skin tone",1,[]],["🤲","palms up together",1,["cupped","dua","hands","palms","pray","prayer","together","up","wish"]],["🤲🏻","palms up together: light skin tone",1,[]],["🤲🏼","palms up together: medium-light skin tone",1,[]],["🤲🏽","palms up together: medium skin tone",1,[]],["🤲🏾","palms up together: medium-dark skin tone",1,[]],["🤲🏿","palms up together: dark skin tone",1,[]],["🤝","handshake",1,["agreement","deal","hand","handshake","meeting","shake"]],["🤝🏻","handshake: light skin tone",1,[]],["🤝🏼","handshake: medium-light skin tone",1,[]],["🤝🏽","handshake: medium skin tone",1,[]],["🤝🏾","handshake: medium-dark skin tone",1,[]],["🤝🏿","handshake: dark skin tone",1,[]],["🫱🏻🫲🏼","handshake: light skin tone, medium-light skin tone",1,[]],["🫱🏻🫲🏽","handshake: light skin tone, medium skin tone",1,[]],["🫱🏻🫲🏾","handshake: light skin tone, medium-dark skin tone",1,[]],["🫱🏻🫲🏿","handshake: light skin tone, dark skin tone",1,[]],["🫱🏼🫲🏻","handshake: medium-light skin tone, light skin tone",1,[]],["🫱🏼🫲🏽","handshake: medium-light skin tone, medium skin tone",1,[]],["🫱🏼🫲🏾","handshake: medium-light skin tone, medium-dark skin tone",1,[]],["🫱🏼🫲🏿","handshake: medium-light skin tone, dark skin tone",1,[]],["🫱🏽🫲🏻","handshake: medium skin tone, light skin tone",1,[]],["🫱🏽🫲🏼","handshake: medium skin tone, medium-light skin tone",1,[]],["🫱🏽🫲🏾","handshake: medium skin tone, medium-dark skin tone",1,[]],["🫱🏽🫲🏿","handshake: medium skin tone, dark skin tone",1,[]],["🫱🏾🫲🏻","handshake: medium-dark skin tone, light skin tone",1,[]],["🫱🏾🫲🏼","handshake: medium-dark skin tone, medium-light skin tone",1,[]],["🫱🏾🫲🏽","handshake: medium-dark skin tone, medium skin tone",1,[]],["🫱🏾🫲🏿","handshake: medium-dark skin tone, dark skin tone",1,[]],["🫱🏿🫲🏻","handshake: dark skin tone, light skin tone",1,[]],["🫱🏿🫲🏼","handshake: dark skin tone, medium-light skin tone",1,[]],["🫱🏿🫲🏽","handshake: dark skin tone, medium skin tone",1,[]],["🫱🏿🫲🏾","handshake: dark skin tone, medium-dark skin tone",1,[]],["🙏","folded hands",1,["appreciate","ask","beg","blessed","bow","cmon","five","folded","gesture","hand","high","please","pray","thanks","thx"]],["🙏🏻","folded hands: light skin tone",1,[]],["🙏🏼","folded hands: medium-light skin tone",1,[]],["🙏🏽","folded hands: medium skin tone",1,[]],["🙏🏾","folded hands: medium-dark skin tone",1,[]],["🙏🏿","folded hands: dark skin tone",1,[]],["✍️","writing hand",1,["hand","write","writing"]],["✍🏻","writing hand: light skin tone",1,[]],["✍🏼","writing hand: medium-light skin tone",1,[]],["✍🏽","writing hand: medium skin tone",1,[]],["✍🏾","writing hand: medium-dark skin tone",1,[]],["✍🏿","writing hand: dark skin tone",1,[]],["💅","nail polish",1,["bored","care","cosmetics","done","makeup","manicure","nail","polish","whatever"]],["💅🏻","nail polish: light skin tone",1,[]],["💅🏼","nail polish: medium-light skin tone",1,[]],["💅🏽","nail polish: medium skin tone",1,[]],["💅🏾","nail polish: medium-dark skin tone",1,[]],["💅🏿","nail polish: dark skin tone",1,[]],["🤳","selfie",1,["camera","phone","selfie"]],["🤳🏻","selfie: light skin tone",1,[]],["🤳🏼","selfie: medium-light skin tone",1,[]],["🤳🏽","selfie: medium skin tone",1,[]],["🤳🏾","selfie: medium-dark skin tone",1,[]],["🤳🏿","selfie: dark skin tone",1,[]],["💪","flexed biceps",1,["arm","beast","bench","biceps","bodybuilder","bro","curls","flex","gains","gym","jacked","muscle","press","ripped","strong","weightlift"]],["💪🏻","flexed biceps: light skin tone",1,[]],["💪🏼","flexed biceps: medium-light skin tone",1,[]],["💪🏽","flexed biceps: medium skin tone",1,[]],["💪🏾","flexed biceps: medium-dark skin tone",1,[]],["💪🏿","flexed biceps: dark skin tone",1,[]],["🦾","mechanical arm",1,["accessibility","arm","mechanical","prosthetic"]],["🦿","mechanical leg",1,["accessibility","leg","mechanical","prosthetic"]],["🦵","leg",1,["bent","foot","kick","knee","leg","limb"]],["🦵🏻","leg: light skin tone",1,[]],["🦵🏼","leg: medium-light skin tone",1,[]],["🦵🏽","leg: medium skin tone",1,[]],["🦵🏾","leg: medium-dark skin tone",1,[]],["🦵🏿","leg: dark skin tone",1,[]],["🦶","foot",1,["ankle","feet","foot","kick","stomp"]],["🦶🏻","foot: light skin tone",1,[]],["🦶🏼","foot: medium-light skin tone",1,[]],["🦶🏽","foot: medium skin tone",1,[]],["🦶🏾","foot: medium-dark skin tone",1,[]],["🦶🏿","foot: dark skin tone",1,[]],["👂","ear",1,["body","ear","ears","hear","hearing","listen","listening","sound"]],["👂🏻","ear: light skin tone",1,[]],["👂🏼","ear: medium-light skin tone",1,[]],["👂🏽","ear: medium skin tone",1,[]],["👂🏾","ear: medium-dark skin tone",1,[]],["👂🏿","ear: dark skin tone",1,[]],["🦻","ear with hearing aid",1,["accessibility","aid","ear","hard","hearing"]],["🦻🏻","ear with hearing aid: light skin tone",1,[]],["🦻🏼","ear with hearing aid: medium-light skin tone",1,[]],["🦻🏽","ear with hearing aid: medium skin tone",1,[]],["🦻🏾","ear with hearing aid: medium-dark skin tone",1,[]],["🦻🏿","ear with hearing aid: dark skin tone",1,[]],["👃","nose",1,["body","nose","noses","nosey","odor","smell","smells"]],["👃🏻","nose: light skin tone",1,[]],["👃🏼","nose: medium-light skin tone",1,[]],["👃🏽","nose: medium skin tone",1,[]],["👃🏾","nose: medium-dark skin tone",1,[]],["👃🏿","nose: dark skin tone",1,[]],["🧠","brain",1,["brain","intelligent","smart"]],["🫀","anatomical heart",1,["anatomical","beat","cardiology","heart","heartbeat","organ","pulse","real","red"]],["🫁","lungs",1,["breath","breathe","exhalation","inhalation","lung","lungs","organ","respiration"]],["🦷","tooth",1,["dentist","pearly","teeth","tooth","white"]],["🦴","bone",1,["bone","bones","dog","skeleton","wishbone"]],["👀","eyes",1,["body","eye","eyes","face","googly","look","looking","omg","peep","see","seeing"]],["👁️","eye",1,["1","body","eye","one"]],["👅","tongue",1,["body","lick","slurp","tongue"]],["👄","mouth",1,["beauty","body","kiss","kissing","lips","lipstick","mouth"]],["🫦","biting lip",1,["anxious","bite","biting","fear","flirt","flirting","kiss","lip","lipstick","nervous","sexy","uncomfortable","worried","worry"]],["👶","baby",1,["babies","baby","children","goo","infant","newborn","pregnant","young"]],["👶🏻","baby: light skin tone",1,[]],["👶🏼","baby: medium-light skin tone",1,[]],["👶🏽","baby: medium skin tone",1,[]],["👶🏾","baby: medium-dark skin tone",1,[]],["👶🏿","baby: dark skin tone",1,[]],["🧒","child",1,["bright-eyed","child","grandchild","kid","young","younger"]],["🧒🏻","child: light skin tone",1,[]],["🧒🏼","child: medium-light skin tone",1,[]],["🧒🏽","child: medium skin tone",1,[]],["🧒🏾","child: medium-dark skin tone",1,[]],["🧒🏿","child: dark skin tone",1,[]],["👦","boy",1,["boy","bright-eyed","child","grandson","kid","son","young","younger"]],["👦🏻","boy: light skin tone",1,[]],["👦🏼","boy: medium-light skin tone",1,[]],["👦🏽","boy: medium skin tone",1,[]],["👦🏾","boy: medium-dark skin tone",1,[]],["👦🏿","boy: dark skin tone",1,[]],["👧","girl",1,["bright-eyed","child","daughter","girl","granddaughter","kid","Virgo","young","younger","zodiac"]],["👧🏻","girl: light skin tone",1,[]],["👧🏼","girl: medium-light skin tone",1,[]],["👧🏽","girl: medium skin tone",1,[]],["👧🏾","girl: medium-dark skin tone",1,[]],["👧🏿","girl: dark skin tone",1,[]],["🧑","person",1,["adult","person"]],["🧑🏻","person: light skin tone",1,[]],["🧑🏼","person: medium-light skin tone",1,[]],["🧑🏽","person: medium skin tone",1,[]],["🧑🏾","person: medium-dark skin tone",1,[]],["🧑🏿","person: dark skin tone",1,[]],["👱","person: blond hair",1,["blond","blond-haired","human","person"]],["👱🏻","person: light skin tone, blond hair",1,[]],["👱🏼","person: medium-light skin tone, blond hair",1,[]],["👱🏽","person: medium skin tone, blond hair",1,[]],["👱🏾","person: medium-dark skin tone, blond hair",1,[]],["👱🏿","person: dark skin tone, blond hair",1,[]],["👨","man",1,["adult","bro","man"]],["👨🏻","man: light skin tone",1,[]],["👨🏼","man: medium-light skin tone",1,[]],["👨🏽","man: medium skin tone",1,[]],["👨🏾","man: medium-dark skin tone",1,[]],["👨🏿","man: dark skin tone",1,[]],["🧔","person: beard",1,["beard","bearded","person","whiskers"]],["🧔🏻","person: light skin tone, beard",1,[]],["🧔🏼","person: medium-light skin tone, beard",1,[]],["🧔🏽","person: medium skin tone, beard",1,[]],["🧔🏾","person: medium-dark skin tone, beard",1,[]],["🧔🏿","person: dark skin tone, beard",1,[]],["🧔♂️","man: beard",1,["beard","bearded","man","whiskers"]],["🧔🏻♂️","man: light skin tone, beard",1,[]],["🧔🏼♂️","man: medium-light skin tone, beard",1,[]],["🧔🏽♂️","man: medium skin tone, beard",1,[]],["🧔🏾♂️","man: medium-dark skin tone, beard",1,[]],["🧔🏿♂️","man: dark skin tone, beard",1,[]],["🧔♀️","woman: beard",1,["beard","bearded","whiskers","woman"]],["🧔🏻♀️","woman: light skin tone, beard",1,[]],["🧔🏼♀️","woman: medium-light skin tone, beard",1,[]],["🧔🏽♀️","woman: medium skin tone, beard",1,[]],["🧔🏾♀️","woman: medium-dark skin tone, beard",1,[]],["🧔🏿♀️","woman: dark skin tone, beard",1,[]],["👨🦰","man: red hair",1,[]],["👨🏻🦰","man: light skin tone, red hair",1,[]],["👨🏼🦰","man: medium-light skin tone, red hair",1,[]],["👨🏽🦰","man: medium skin tone, red hair",1,[]],["👨🏾🦰","man: medium-dark skin tone, red hair",1,[]],["👨🏿🦰","man: dark skin tone, red hair",1,[]],["👨🦱","man: curly hair",1,[]],["👨🏻🦱","man: light skin tone, curly hair",1,[]],["👨🏼🦱","man: medium-light skin tone, curly hair",1,[]],["👨🏽🦱","man: medium skin tone, curly hair",1,[]],["👨🏾🦱","man: medium-dark skin tone, curly hair",1,[]],["👨🏿🦱","man: dark skin tone, curly hair",1,[]],["👨🦳","man: white hair",1,[]],["👨🏻🦳","man: light skin tone, white hair",1,[]],["👨🏼🦳","man: medium-light skin tone, white hair",1,[]],["👨🏽🦳","man: medium skin tone, white hair",1,[]],["👨🏾🦳","man: medium-dark skin tone, white hair",1,[]],["👨🏿🦳","man: dark skin tone, white hair",1,[]],["👨🦲","man: bald",1,[]],["👨🏻🦲","man: light skin tone, bald",1,[]],["👨🏼🦲","man: medium-light skin tone, bald",1,[]],["👨🏽🦲","man: medium skin tone, bald",1,[]],["👨🏾🦲","man: medium-dark skin tone, bald",1,[]],["👨🏿🦲","man: dark skin tone, bald",1,[]],["👩","woman",1,["adult","lady","woman"]],["👩🏻","woman: light skin tone",1,[]],["👩🏼","woman: medium-light skin tone",1,[]],["👩🏽","woman: medium skin tone",1,[]],["👩🏾","woman: medium-dark skin tone",1,[]],["👩🏿","woman: dark skin tone",1,[]],["👩🦰","woman: red hair",1,[]],["👩🏻🦰","woman: light skin tone, red hair",1,[]],["👩🏼🦰","woman: medium-light skin tone, red hair",1,[]],["👩🏽🦰","woman: medium skin tone, red hair",1,[]],["👩🏾🦰","woman: medium-dark skin tone, red hair",1,[]],["👩🏿🦰","woman: dark skin tone, red hair",1,[]],["🧑🦰","person: red hair",1,[]],["🧑🏻🦰","person: light skin tone, red hair",1,[]],["🧑🏼🦰","person: medium-light skin tone, red hair",1,[]],["🧑🏽🦰","person: medium skin tone, red hair",1,[]],["🧑🏾🦰","person: medium-dark skin tone, red hair",1,[]],["🧑🏿🦰","person: dark skin tone, red hair",1,[]],["👩🦱","woman: curly hair",1,[]],["👩🏻🦱","woman: light skin tone, curly hair",1,[]],["👩🏼🦱","woman: medium-light skin tone, curly hair",1,[]],["👩🏽🦱","woman: medium skin tone, curly hair",1,[]],["👩🏾🦱","woman: medium-dark skin tone, curly hair",1,[]],["👩🏿🦱","woman: dark skin tone, curly hair",1,[]],["🧑🦱","person: curly hair",1,[]],["🧑🏻🦱","person: light skin tone, curly hair",1,[]],["🧑🏼🦱","person: medium-light skin tone, curly hair",1,[]],["🧑🏽🦱","person: medium skin tone, curly hair",1,[]],["🧑🏾🦱","person: medium-dark skin tone, curly hair",1,[]],["🧑🏿🦱","person: dark skin tone, curly hair",1,[]],["👩🦳","woman: white hair",1,[]],["👩🏻🦳","woman: light skin tone, white hair",1,[]],["👩🏼🦳","woman: medium-light skin tone, white hair",1,[]],["👩🏽🦳","woman: medium skin tone, white hair",1,[]],["👩🏾🦳","woman: medium-dark skin tone, white hair",1,[]],["👩🏿🦳","woman: dark skin tone, white hair",1,[]],["🧑🦳","person: white hair",1,[]],["🧑🏻🦳","person: light skin tone, white hair",1,[]],["🧑🏼🦳","person: medium-light skin tone, white hair",1,[]],["🧑🏽🦳","person: medium skin tone, white hair",1,[]],["🧑🏾🦳","person: medium-dark skin tone, white hair",1,[]],["🧑🏿🦳","person: dark skin tone, white hair",1,[]],["👩🦲","woman: bald",1,[]],["👩🏻🦲","woman: light skin tone, bald",1,[]],["👩🏼🦲","woman: medium-light skin tone, bald",1,[]],["👩🏽🦲","woman: medium skin tone, bald",1,[]],["👩🏾🦲","woman: medium-dark skin tone, bald",1,[]],["👩🏿🦲","woman: dark skin tone, bald",1,[]],["🧑🦲","person: bald",1,[]],["🧑🏻🦲","person: light skin tone, bald",1,[]],["🧑🏼🦲","person: medium-light skin tone, bald",1,[]],["🧑🏽🦲","person: medium skin tone, bald",1,[]],["🧑🏾🦲","person: medium-dark skin tone, bald",1,[]],["🧑🏿🦲","person: dark skin tone, bald",1,[]],["👱♀️","woman: blond hair",1,["blond","blond-haired","blonde","hair","woman"]],["👱🏻♀️","woman: light skin tone, blond hair",1,[]],["👱🏼♀️","woman: medium-light skin tone, blond hair",1,[]],["👱🏽♀️","woman: medium skin tone, blond hair",1,[]],["👱🏾♀️","woman: medium-dark skin tone, blond hair",1,[]],["👱🏿♀️","woman: dark skin tone, blond hair",1,[]],["👱♂️","man: blond hair",1,["blond","blond-haired","hair","man"]],["👱🏻♂️","man: light skin tone, blond hair",1,[]],["👱🏼♂️","man: medium-light skin tone, blond hair",1,[]],["👱🏽♂️","man: medium skin tone, blond hair",1,[]],["👱🏾♂️","man: medium-dark skin tone, blond hair",1,[]],["👱🏿♂️","man: dark skin tone, blond hair",1,[]],["🧓","older person",1,["adult","elderly","grandparent","old","person","wise"]],["🧓🏻","older person: light skin tone",1,[]],["🧓🏼","older person: medium-light skin tone",1,[]],["🧓🏽","older person: medium skin tone",1,[]],["🧓🏾","older person: medium-dark skin tone",1,[]],["🧓🏿","older person: dark skin tone",1,[]],["👴","old man",1,["adult","bald","elderly","gramps","grandfather","grandpa","man","old","wise"]],["👴🏻","old man: light skin tone",1,[]],["👴🏼","old man: medium-light skin tone",1,[]],["👴🏽","old man: medium skin tone",1,[]],["👴🏾","old man: medium-dark skin tone",1,[]],["👴🏿","old man: dark skin tone",1,[]],["👵","old woman",1,["adult","elderly","grandma","grandmother","granny","lady","old","wise","woman"]],["👵🏻","old woman: light skin tone",1,[]],["👵🏼","old woman: medium-light skin tone",1,[]],["👵🏽","old woman: medium skin tone",1,[]],["👵🏾","old woman: medium-dark skin tone",1,[]],["👵🏿","old woman: dark skin tone",1,[]],["🙍","person frowning",1,["annoyed","disappointed","disgruntled","disturbed","frown","frowning","frustrated","gesture","irritated","person","upset"]],["🙍🏻","person frowning: light skin tone",1,[]],["🙍🏼","person frowning: medium-light skin tone",1,[]],["🙍🏽","person frowning: medium skin tone",1,[]],["🙍🏾","person frowning: medium-dark skin tone",1,[]],["🙍🏿","person frowning: dark skin tone",1,[]],["🙍♂️","man frowning",1,["annoyed","disappointed","disgruntled","disturbed","frown","frowning","frustrated","gesture","irritated","man","upset"]],["🙍🏻♂️","man frowning: light skin tone",1,[]],["🙍🏼♂️","man frowning: medium-light skin tone",1,[]],["🙍🏽♂️","man frowning: medium skin tone",1,[]],["🙍🏾♂️","man frowning: medium-dark skin tone",1,[]],["🙍🏿♂️","man frowning: dark skin tone",1,[]],["🙍♀️","woman frowning",1,["annoyed","disappointed","disgruntled","disturbed","frown","frowning","frustrated","gesture","irritated","upset","woman"]],["🙍🏻♀️","woman frowning: light skin tone",1,[]],["🙍🏼♀️","woman frowning: medium-light skin tone",1,[]],["🙍🏽♀️","woman frowning: medium skin tone",1,[]],["🙍🏾♀️","woman frowning: medium-dark skin tone",1,[]],["🙍🏿♀️","woman frowning: dark skin tone",1,[]],["🙎","person pouting",1,["disappointed","downtrodden","frown","grimace","person","pouting","scowl","sulk","upset","whine"]],["🙎🏻","person pouting: light skin tone",1,[]],["🙎🏼","person pouting: medium-light skin tone",1,[]],["🙎🏽","person pouting: medium skin tone",1,[]],["🙎🏾","person pouting: medium-dark skin tone",1,[]],["🙎🏿","person pouting: dark skin tone",1,[]],["🙎♂️","man pouting",1,["disappointed","downtrodden","frown","grimace","man","pouting","scowl","sulk","upset","whine"]],["🙎🏻♂️","man pouting: light skin tone",1,[]],["🙎🏼♂️","man pouting: medium-light skin tone",1,[]],["🙎🏽♂️","man pouting: medium skin tone",1,[]],["🙎🏾♂️","man pouting: medium-dark skin tone",1,[]],["🙎🏿♂️","man pouting: dark skin tone",1,[]],["🙎♀️","woman pouting",1,["disappointed","downtrodden","frown","grimace","pouting","scowl","sulk","upset","whine","woman"]],["🙎🏻♀️","woman pouting: light skin tone",1,[]],["🙎🏼♀️","woman pouting: medium-light skin tone",1,[]],["🙎🏽♀️","woman pouting: medium skin tone",1,[]],["🙎🏾♀️","woman pouting: medium-dark skin tone",1,[]],["🙎🏿♀️","woman pouting: dark skin tone",1,[]],["🙅","person gesturing NO",1,["forbidden","gesture","hand","NO","not","person","prohibit"]],["🙅🏻","person gesturing NO: light skin tone",1,[]],["🙅🏼","person gesturing NO: medium-light skin tone",1,[]],["🙅🏽","person gesturing NO: medium skin tone",1,[]],["🙅🏾","person gesturing NO: medium-dark skin tone",1,[]],["🙅🏿","person gesturing NO: dark skin tone",1,[]],["🙅♂️","man gesturing NO",1,["forbidden","gesture","hand","man","NO","not","prohibit"]],["🙅🏻♂️","man gesturing NO: light skin tone",1,[]],["🙅🏼♂️","man gesturing NO: medium-light skin tone",1,[]],["🙅🏽♂️","man gesturing NO: medium skin tone",1,[]],["🙅🏾♂️","man gesturing NO: medium-dark skin tone",1,[]],["🙅🏿♂️","man gesturing NO: dark skin tone",1,[]],["🙅♀️","woman gesturing NO",1,["forbidden","gesture","hand","NO","not","prohibit","woman"]],["🙅🏻♀️","woman gesturing NO: light skin tone",1,[]],["🙅🏼♀️","woman gesturing NO: medium-light skin tone",1,[]],["🙅🏽♀️","woman gesturing NO: medium skin tone",1,[]],["🙅🏾♀️","woman gesturing NO: medium-dark skin tone",1,[]],["🙅🏿♀️","woman gesturing NO: dark skin tone",1,[]],["🙆","person gesturing OK",1,["exercise","gesture","gesturing","hand","OK","omg","person"]],["🙆🏻","person gesturing OK: light skin tone",1,[]],["🙆🏼","person gesturing OK: medium-light skin tone",1,[]],["🙆🏽","person gesturing OK: medium skin tone",1,[]],["🙆🏾","person gesturing OK: medium-dark skin tone",1,[]],["🙆🏿","person gesturing OK: dark skin tone",1,[]],["🙆♂️","man gesturing OK",1,["exercise","gesture","gesturing","hand","man","OK","omg"]],["🙆🏻♂️","man gesturing OK: light skin tone",1,[]],["🙆🏼♂️","man gesturing OK: medium-light skin tone",1,[]],["🙆🏽♂️","man gesturing OK: medium skin tone",1,[]],["🙆🏾♂️","man gesturing OK: medium-dark skin tone",1,[]],["🙆🏿♂️","man gesturing OK: dark skin tone",1,[]],["🙆♀️","woman gesturing OK",1,["exercise","gesture","gesturing","hand","OK","omg","woman"]],["🙆🏻♀️","woman gesturing OK: light skin tone",1,[]],["🙆🏼♀️","woman gesturing OK: medium-light skin tone",1,[]],["🙆🏽♀️","woman gesturing OK: medium skin tone",1,[]],["🙆🏾♀️","woman gesturing OK: medium-dark skin tone",1,[]],["🙆🏿♀️","woman gesturing OK: dark skin tone",1,[]],["💁","person tipping hand",1,["fetch","flick","flip","gossip","hand","person","sarcasm","sarcastic","sassy","seriously","tipping","whatever"]],["💁🏻","person tipping hand: light skin tone",1,[]],["💁🏼","person tipping hand: medium-light skin tone",1,[]],["💁🏽","person tipping hand: medium skin tone",1,[]],["💁🏾","person tipping hand: medium-dark skin tone",1,[]],["💁🏿","person tipping hand: dark skin tone",1,[]],["💁♂️","man tipping hand",1,["fetch","flick","flip","gossip","hand","man","sarcasm","sarcastic","sassy","seriously","tipping","whatever"]],["💁🏻♂️","man tipping hand: light skin tone",1,[]],["💁🏼♂️","man tipping hand: medium-light skin tone",1,[]],["💁🏽♂️","man tipping hand: medium skin tone",1,[]],["💁🏾♂️","man tipping hand: medium-dark skin tone",1,[]],["💁🏿♂️","man tipping hand: dark skin tone",1,[]],["💁♀️","woman tipping hand",1,["fetch","flick","flip","gossip","hand","sarcasm","sarcastic","sassy","seriously","tipping","whatever","woman"]],["💁🏻♀️","woman tipping hand: light skin tone",1,[]],["💁🏼♀️","woman tipping hand: medium-light skin tone",1,[]],["💁🏽♀️","woman tipping hand: medium skin tone",1,[]],["💁🏾♀️","woman tipping hand: medium-dark skin tone",1,[]],["💁🏿♀️","woman tipping hand: dark skin tone",1,[]],["🙋","person raising hand",1,["gesture","hand","here","know","me","person","pick","question","raise","raising"]],["🙋🏻","person raising hand: light skin tone",1,[]],["🙋🏼","person raising hand: medium-light skin tone",1,[]],["🙋🏽","person raising hand: medium skin tone",1,[]],["🙋🏾","person raising hand: medium-dark skin tone",1,[]],["🙋🏿","person raising hand: dark skin tone",1,[]],["🙋♂️","man raising hand",1,["gesture","hand","here","know","man","me","pick","question","raise","raising"]],["🙋🏻♂️","man raising hand: light skin tone",1,[]],["🙋🏼♂️","man raising hand: medium-light skin tone",1,[]],["🙋🏽♂️","man raising hand: medium skin tone",1,[]],["🙋🏾♂️","man raising hand: medium-dark skin tone",1,[]],["🙋🏿♂️","man raising hand: dark skin tone",1,[]],["🙋♀️","woman raising hand",1,["gesture","hand","here","know","me","pick","question","raise","raising","woman"]],["🙋🏻♀️","woman raising hand: light skin tone",1,[]],["🙋🏼♀️","woman raising hand: medium-light skin tone",1,[]],["🙋🏽♀️","woman raising hand: medium skin tone",1,[]],["🙋🏾♀️","woman raising hand: medium-dark skin tone",1,[]],["🙋🏿♀️","woman raising hand: dark skin tone",1,[]],["🧏","deaf person",1,["accessibility","deaf","ear","gesture","hear","person"]],["🧏🏻","deaf person: light skin tone",1,[]],["🧏🏼","deaf person: medium-light skin tone",1,[]],["🧏🏽","deaf person: medium skin tone",1,[]],["🧏🏾","deaf person: medium-dark skin tone",1,[]],["🧏🏿","deaf person: dark skin tone",1,[]],["🧏♂️","deaf man",1,["accessibility","deaf","ear","gesture","hear","man"]],["🧏🏻♂️","deaf man: light skin tone",1,[]],["🧏🏼♂️","deaf man: medium-light skin tone",1,[]],["🧏🏽♂️","deaf man: medium skin tone",1,[]],["🧏🏾♂️","deaf man: medium-dark skin tone",1,[]],["🧏🏿♂️","deaf man: dark skin tone",1,[]],["🧏♀️","deaf woman",1,["accessibility","deaf","ear","gesture","hear","woman"]],["🧏🏻♀️","deaf woman: light skin tone",1,[]],["🧏🏼♀️","deaf woman: medium-light skin tone",1,[]],["🧏🏽♀️","deaf woman: medium skin tone",1,[]],["🧏🏾♀️","deaf woman: medium-dark skin tone",1,[]],["🧏🏿♀️","deaf woman: dark skin tone",1,[]],["🙇","person bowing",1,["apology","ask","beg","bow","bowing","favor","forgive","gesture","meditate","meditation","person","pity","regret","sorry"]],["🙇🏻","person bowing: light skin tone",1,[]],["🙇🏼","person bowing: medium-light skin tone",1,[]],["🙇🏽","person bowing: medium skin tone",1,[]],["🙇🏾","person bowing: medium-dark skin tone",1,[]],["🙇🏿","person bowing: dark skin tone",1,[]],["🙇♂️","man bowing",1,["apology","ask","beg","bow","bowing","favor","forgive","gesture","man","meditate","meditation","pity","regret","sorry"]],["🙇🏻♂️","man bowing: light skin tone",1,[]],["🙇🏼♂️","man bowing: medium-light skin tone",1,[]],["🙇🏽♂️","man bowing: medium skin tone",1,[]],["🙇🏾♂️","man bowing: medium-dark skin tone",1,[]],["🙇🏿♂️","man bowing: dark skin tone",1,[]],["🙇♀️","woman bowing",1,["apology","ask","beg","bow","bowing","favor","forgive","gesture","meditate","meditation","pity","regret","sorry","woman"]],["🙇🏻♀️","woman bowing: light skin tone",1,[]],["🙇🏼♀️","woman bowing: medium-light skin tone",1,[]],["🙇🏽♀️","woman bowing: medium skin tone",1,[]],["🙇🏾♀️","woman bowing: medium-dark skin tone",1,[]],["🙇🏿♀️","woman bowing: dark skin tone",1,[]],["🤦","person facepalming",1,["again","bewilder","disbelief","exasperation","facepalm","no","not","oh","omg","person","shock","smh"]],["🤦🏻","person facepalming: light skin tone",1,[]],["🤦🏼","person facepalming: medium-light skin tone",1,[]],["🤦🏽","person facepalming: medium skin tone",1,[]],["🤦🏾","person facepalming: medium-dark skin tone",1,[]],["🤦🏿","person facepalming: dark skin tone",1,[]],["🤦♂️","man facepalming",1,["again","bewilder","disbelief","exasperation","facepalm","man","no","not","oh","omg","shock","smh"]],["🤦🏻♂️","man facepalming: light skin tone",1,[]],["🤦🏼♂️","man facepalming: medium-light skin tone",1,[]],["🤦🏽♂️","man facepalming: medium skin tone",1,[]],["🤦🏾♂️","man facepalming: medium-dark skin tone",1,[]],["🤦🏿♂️","man facepalming: dark skin tone",1,[]],["🤦♀️","woman facepalming",1,["again","bewilder","disbelief","exasperation","facepalm","no","not","oh","omg","shock","smh","woman"]],["🤦🏻♀️","woman facepalming: light skin tone",1,[]],["🤦🏼♀️","woman facepalming: medium-light skin tone",1,[]],["🤦🏽♀️","woman facepalming: medium skin tone",1,[]],["🤦🏾♀️","woman facepalming: medium-dark skin tone",1,[]],["🤦🏿♀️","woman facepalming: dark skin tone",1,[]],["🤷","person shrugging",1,["doubt","dunno","guess","idk","ignorance","indifference","knows","maybe","person","shrug","shrugging","whatever","who"]],["🤷🏻","person shrugging: light skin tone",1,[]],["🤷🏼","person shrugging: medium-light skin tone",1,[]],["🤷🏽","person shrugging: medium skin tone",1,[]],["🤷🏾","person shrugging: medium-dark skin tone",1,[]],["🤷🏿","person shrugging: dark skin tone",1,[]],["🤷♂️","man shrugging",1,["doubt","dunno","guess","idk","ignorance","indifference","knows","man","maybe","shrug","shrugging","whatever","who"]],["🤷🏻♂️","man shrugging: light skin tone",1,[]],["🤷🏼♂️","man shrugging: medium-light skin tone",1,[]],["🤷🏽♂️","man shrugging: medium skin tone",1,[]],["🤷🏾♂️","man shrugging: medium-dark skin tone",1,[]],["🤷🏿♂️","man shrugging: dark skin tone",1,[]],["🤷♀️","woman shrugging",1,["doubt","dunno","guess","idk","ignorance","indifference","knows","maybe","shrug","shrugging","whatever","who","woman"]],["🤷🏻♀️","woman shrugging: light skin tone",1,[]],["🤷🏼♀️","woman shrugging: medium-light skin tone",1,[]],["🤷🏽♀️","woman shrugging: medium skin tone",1,[]],["🤷🏾♀️","woman shrugging: medium-dark skin tone",1,[]],["🤷🏿♀️","woman shrugging: dark skin tone",1,[]],["🧑⚕️","health worker",1,["doctor","health","healthcare","nurse","therapist","worker"]],["🧑🏻⚕️","health worker: light skin tone",1,[]],["🧑🏼⚕️","health worker: medium-light skin tone",1,[]],["🧑🏽⚕️","health worker: medium skin tone",1,[]],["🧑🏾⚕️","health worker: medium-dark skin tone",1,[]],["🧑🏿⚕️","health worker: dark skin tone",1,[]],["👨⚕️","man health worker",1,["doctor","health","healthcare","man","nurse","therapist","worker"]],["👨🏻⚕️","man health worker: light skin tone",1,[]],["👨🏼⚕️","man health worker: medium-light skin tone",1,[]],["👨🏽⚕️","man health worker: medium skin tone",1,[]],["👨🏾⚕️","man health worker: medium-dark skin tone",1,[]],["👨🏿⚕️","man health worker: dark skin tone",1,[]],["👩⚕️","woman health worker",1,["doctor","health","healthcare","nurse","therapist","woman","worker"]],["👩🏻⚕️","woman health worker: light skin tone",1,[]],["👩🏼⚕️","woman health worker: medium-light skin tone",1,[]],["👩🏽⚕️","woman health worker: medium skin tone",1,[]],["👩🏾⚕️","woman health worker: medium-dark skin tone",1,[]],["👩🏿⚕️","woman health worker: dark skin tone",1,[]],["🧑🎓","student",1,["graduate","student"]],["🧑🏻🎓","student: light skin tone",1,[]],["🧑🏼🎓","student: medium-light skin tone",1,[]],["🧑🏽🎓","student: medium skin tone",1,[]],["🧑🏾🎓","student: medium-dark skin tone",1,[]],["🧑🏿🎓","student: dark skin tone",1,[]],["👨🎓","man student",1,["graduate","man","student"]],["👨🏻🎓","man student: light skin tone",1,[]],["👨🏼🎓","man student: medium-light skin tone",1,[]],["👨🏽🎓","man student: medium skin tone",1,[]],["👨🏾🎓","man student: medium-dark skin tone",1,[]],["👨🏿🎓","man student: dark skin tone",1,[]],["👩🎓","woman student",1,["graduate","student","woman"]],["👩🏻🎓","woman student: light skin tone",1,[]],["👩🏼🎓","woman student: medium-light skin tone",1,[]],["👩🏽🎓","woman student: medium skin tone",1,[]],["👩🏾🎓","woman student: medium-dark skin tone",1,[]],["👩🏿🎓","woman student: dark skin tone",1,[]],["🧑🏫","teacher",1,["instructor","lecturer","professor","teacher"]],["🧑🏻🏫","teacher: light skin tone",1,[]],["🧑🏼🏫","teacher: medium-light skin tone",1,[]],["🧑🏽🏫","teacher: medium skin tone",1,[]],["🧑🏾🏫","teacher: medium-dark skin tone",1,[]],["🧑🏿🏫","teacher: dark skin tone",1,[]],["👨🏫","man teacher",1,["instructor","lecturer","man","professor","teacher"]],["👨🏻🏫","man teacher: light skin tone",1,[]],["👨🏼🏫","man teacher: medium-light skin tone",1,[]],["👨🏽🏫","man teacher: medium skin tone",1,[]],["👨🏾🏫","man teacher: medium-dark skin tone",1,[]],["👨🏿🏫","man teacher: dark skin tone",1,[]],["👩🏫","woman teacher",1,["instructor","lecturer","professor","teacher","woman"]],["👩🏻🏫","woman teacher: light skin tone",1,[]],["👩🏼🏫","woman teacher: medium-light skin tone",1,[]],["👩🏽🏫","woman teacher: medium skin tone",1,[]],["👩🏾🏫","woman teacher: medium-dark skin tone",1,[]],["👩🏿🏫","woman teacher: dark skin tone",1,[]],["🧑⚖️","judge",1,["judge","justice","law","scales"]],["🧑🏻⚖️","judge: light skin tone",1,[]],["🧑🏼⚖️","judge: medium-light skin tone",1,[]],["🧑🏽⚖️","judge: medium skin tone",1,[]],["🧑🏾⚖️","judge: medium-dark skin tone",1,[]],["🧑🏿⚖️","judge: dark skin tone",1,[]],["👨⚖️","man judge",1,["judge","justice","law","man","scales"]],["👨🏻⚖️","man judge: light skin tone",1,[]],["👨🏼⚖️","man judge: medium-light skin tone",1,[]],["👨🏽⚖️","man judge: medium skin tone",1,[]],["👨🏾⚖️","man judge: medium-dark skin tone",1,[]],["👨🏿⚖️","man judge: dark skin tone",1,[]],["👩⚖️","woman judge",1,["judge","justice","law","scales","woman"]],["👩🏻⚖️","woman judge: light skin tone",1,[]],["👩🏼⚖️","woman judge: medium-light skin tone",1,[]],["👩🏽⚖️","woman judge: medium skin tone",1,[]],["👩🏾⚖️","woman judge: medium-dark skin tone",1,[]],["👩🏿⚖️","woman judge: dark skin tone",1,[]],["🧑🌾","farmer",1,["farmer","gardener","rancher"]],["🧑🏻🌾","farmer: light skin tone",1,[]],["🧑🏼🌾","farmer: medium-light skin tone",1,[]],["🧑🏽🌾","farmer: medium skin tone",1,[]],["🧑🏾🌾","farmer: medium-dark skin tone",1,[]],["🧑🏿🌾","farmer: dark skin tone",1,[]],["👨🌾","man farmer",1,["farmer","gardener","man","rancher"]],["👨🏻🌾","man farmer: light skin tone",1,[]],["👨🏼🌾","man farmer: medium-light skin tone",1,[]],["👨🏽🌾","man farmer: medium skin tone",1,[]],["👨🏾🌾","man farmer: medium-dark skin tone",1,[]],["👨🏿🌾","man farmer: dark skin tone",1,[]],["👩🌾","woman farmer",1,["farmer","gardener","rancher","woman"]],["👩🏻🌾","woman farmer: light skin tone",1,[]],["👩🏼🌾","woman farmer: medium-light skin tone",1,[]],["👩🏽🌾","woman farmer: medium skin tone",1,[]],["👩🏾🌾","woman farmer: medium-dark skin tone",1,[]],["👩🏿🌾","woman farmer: dark skin tone",1,[]],["🧑🍳","cook",1,["chef","cook"]],["🧑🏻🍳","cook: light skin tone",1,[]],["🧑🏼🍳","cook: medium-light skin tone",1,[]],["🧑🏽🍳","cook: medium skin tone",1,[]],["🧑🏾🍳","cook: medium-dark skin tone",1,[]],["🧑🏿🍳","cook: dark skin tone",1,[]],["👨🍳","man cook",1,["chef","cook","man"]],["👨🏻🍳","man cook: light skin tone",1,[]],["👨🏼🍳","man cook: medium-light skin tone",1,[]],["👨🏽🍳","man cook: medium skin tone",1,[]],["👨🏾🍳","man cook: medium-dark skin tone",1,[]],["👨🏿🍳","man cook: dark skin tone",1,[]],["👩🍳","woman cook",1,["chef","cook","woman"]],["👩🏻🍳","woman cook: light skin tone",1,[]],["👩🏼🍳","woman cook: medium-light skin tone",1,[]],["👩🏽🍳","woman cook: medium skin tone",1,[]],["👩🏾🍳","woman cook: medium-dark skin tone",1,[]],["👩🏿🍳","woman cook: dark skin tone",1,[]],["🧑🔧","mechanic",1,["electrician","mechanic","plumber","tradesperson"]],["🧑🏻🔧","mechanic: light skin tone",1,[]],["🧑🏼🔧","mechanic: medium-light skin tone",1,[]],["🧑🏽🔧","mechanic: medium skin tone",1,[]],["🧑🏾🔧","mechanic: medium-dark skin tone",1,[]],["🧑🏿🔧","mechanic: dark skin tone",1,[]],["👨🔧","man mechanic",1,["electrician","man","mechanic","plumber","tradesperson"]],["👨🏻🔧","man mechanic: light skin tone",1,[]],["👨🏼🔧","man mechanic: medium-light skin tone",1,[]],["👨🏽🔧","man mechanic: medium skin tone",1,[]],["👨🏾🔧","man mechanic: medium-dark skin tone",1,[]],["👨🏿🔧","man mechanic: dark skin tone",1,[]],["👩🔧","woman mechanic",1,["electrician","mechanic","plumber","tradesperson","woman"]],["👩🏻🔧","woman mechanic: light skin tone",1,[]],["👩🏼🔧","woman mechanic: medium-light skin tone",1,[]],["👩🏽🔧","woman mechanic: medium skin tone",1,[]],["👩🏾🔧","woman mechanic: medium-dark skin tone",1,[]],["👩🏿🔧","woman mechanic: dark skin tone",1,[]],["🧑🏭","factory worker",1,["assembly","factory","industrial","worker"]],["🧑🏻🏭","factory worker: light skin tone",1,[]],["🧑🏼🏭","factory worker: medium-light skin tone",1,[]],["🧑🏽🏭","factory worker: medium skin tone",1,[]],["🧑🏾🏭","factory worker: medium-dark skin tone",1,[]],["🧑🏿🏭","factory worker: dark skin tone",1,[]],["👨🏭","man factory worker",1,["assembly","factory","industrial","man","worker"]],["👨🏻🏭","man factory worker: light skin tone",1,[]],["👨🏼🏭","man factory worker: medium-light skin tone",1,[]],["👨🏽🏭","man factory worker: medium skin tone",1,[]],["👨🏾🏭","man factory worker: medium-dark skin tone",1,[]],["👨🏿🏭","man factory worker: dark skin tone",1,[]],["👩🏭","woman factory worker",1,["assembly","factory","industrial","woman","worker"]],["👩🏻🏭","woman factory worker: light skin tone",1,[]],["👩🏼🏭","woman factory worker: medium-light skin tone",1,[]],["👩🏽🏭","woman factory worker: medium skin tone",1,[]],["👩🏾🏭","woman factory worker: medium-dark skin tone",1,[]],["👩🏿🏭","woman factory worker: dark skin tone",1,[]],["🧑💼","office worker",1,["architect","business","manager","office","white-collar","worker"]],["🧑🏻💼","office worker: light skin tone",1,[]],["🧑🏼💼","office worker: medium-light skin tone",1,[]],["🧑🏽💼","office worker: medium skin tone",1,[]],["🧑🏾💼","office worker: medium-dark skin tone",1,[]],["🧑🏿💼","office worker: dark skin tone",1,[]],["👨💼","man office worker",1,["architect","business","man","manager","office","white-collar","worker"]],["👨🏻💼","man office worker: light skin tone",1,[]],["👨🏼💼","man office worker: medium-light skin tone",1,[]],["👨🏽💼","man office worker: medium skin tone",1,[]],["👨🏾💼","man office worker: medium-dark skin tone",1,[]],["👨🏿💼","man office worker: dark skin tone",1,[]],["👩💼","woman office worker",1,["architect","business","manager","office","white-collar","woman","worker"]],["👩🏻💼","woman office worker: light skin tone",1,[]],["👩🏼💼","woman office worker: medium-light skin tone",1,[]],["👩🏽💼","woman office worker: medium skin tone",1,[]],["👩🏾💼","woman office worker: medium-dark skin tone",1,[]],["👩🏿💼","woman office worker: dark skin tone",1,[]],["🧑🔬","scientist",1,["biologist","chemist","engineer","mathematician","physicist","scientist"]],["🧑🏻🔬","scientist: light skin tone",1,[]],["🧑🏼🔬","scientist: medium-light skin tone",1,[]],["🧑🏽🔬","scientist: medium skin tone",1,[]],["🧑🏾🔬","scientist: medium-dark skin tone",1,[]],["🧑🏿🔬","scientist: dark skin tone",1,[]],["👨🔬","man scientist",1,["biologist","chemist","engineer","man","mathematician","physicist","scientist"]],["👨🏻🔬","man scientist: light skin tone",1,[]],["👨🏼🔬","man scientist: medium-light skin tone",1,[]],["👨🏽🔬","man scientist: medium skin tone",1,[]],["👨🏾🔬","man scientist: medium-dark skin tone",1,[]],["👨🏿🔬","man scientist: dark skin tone",1,[]],["👩🔬","woman scientist",1,["biologist","chemist","engineer","mathematician","physicist","scientist","woman"]],["👩🏻🔬","woman scientist: light skin tone",1,[]],["👩🏼🔬","woman scientist: medium-light skin tone",1,[]],["👩🏽🔬","woman scientist: medium skin tone",1,[]],["👩🏾🔬","woman scientist: medium-dark skin tone",1,[]],["👩🏿🔬","woman scientist: dark skin tone",1,[]],["🧑💻","technologist",1,["coder","computer","developer","inventor","software","technologist"]],["🧑🏻💻","technologist: light skin tone",1,[]],["🧑🏼💻","technologist: medium-light skin tone",1,[]],["🧑🏽💻","technologist: medium skin tone",1,[]],["🧑🏾💻","technologist: medium-dark skin tone",1,[]],["🧑🏿💻","technologist: dark skin tone",1,[]],["👨💻","man technologist",1,["coder","computer","developer","inventor","man","software","technologist"]],["👨🏻💻","man technologist: light skin tone",1,[]],["👨🏼💻","man technologist: medium-light skin tone",1,[]],["👨🏽💻","man technologist: medium skin tone",1,[]],["👨🏾💻","man technologist: medium-dark skin tone",1,[]],["👨🏿💻","man technologist: dark skin tone",1,[]],["👩💻","woman technologist",1,["coder","computer","developer","inventor","software","technologist","woman"]],["👩🏻💻","woman technologist: light skin tone",1,[]],["👩🏼💻","woman technologist: medium-light skin tone",1,[]],["👩🏽💻","woman technologist: medium skin tone",1,[]],["👩🏾💻","woman technologist: medium-dark skin tone",1,[]],["👩🏿💻","woman technologist: dark skin tone",1,[]],["🧑🎤","singer",1,["actor","entertainer","rock","rockstar","singer","star"]],["🧑🏻🎤","singer: light skin tone",1,[]],["🧑🏼🎤","singer: medium-light skin tone",1,[]],["🧑🏽🎤","singer: medium skin tone",1,[]],["🧑🏾🎤","singer: medium-dark skin tone",1,[]],["🧑🏿🎤","singer: dark skin tone",1,[]],["👨🎤","man singer",1,["actor","entertainer","man","rock","rockstar","singer","star"]],["👨🏻🎤","man singer: light skin tone",1,[]],["👨🏼🎤","man singer: medium-light skin tone",1,[]],["👨🏽🎤","man singer: medium skin tone",1,[]],["👨🏾🎤","man singer: medium-dark skin tone",1,[]],["👨🏿🎤","man singer: dark skin tone",1,[]],["👩🎤","woman singer",1,["actor","entertainer","rock","rockstar","singer","star","woman"]],["👩🏻🎤","woman singer: light skin tone",1,[]],["👩🏼🎤","woman singer: medium-light skin tone",1,[]],["👩🏽🎤","woman singer: medium skin tone",1,[]],["👩🏾🎤","woman singer: medium-dark skin tone",1,[]],["👩🏿🎤","woman singer: dark skin tone",1,[]],["🧑🎨","artist",1,["artist","palette"]],["🧑🏻🎨","artist: light skin tone",1,[]],["🧑🏼🎨","artist: medium-light skin tone",1,[]],["🧑🏽🎨","artist: medium skin tone",1,[]],["🧑🏾🎨","artist: medium-dark skin tone",1,[]],["🧑🏿🎨","artist: dark skin tone",1,[]],["👨🎨","man artist",1,["artist","man","palette"]],["👨🏻🎨","man artist: light skin tone",1,[]],["👨🏼🎨","man artist: medium-light skin tone",1,[]],["👨🏽🎨","man artist: medium skin tone",1,[]],["👨🏾🎨","man artist: medium-dark skin tone",1,[]],["👨🏿🎨","man artist: dark skin tone",1,[]],["👩🎨","woman artist",1,["artist","palette","woman"]],["👩🏻🎨","woman artist: light skin tone",1,[]],["👩🏼🎨","woman artist: medium-light skin tone",1,[]],["👩🏽🎨","woman artist: medium skin tone",1,[]],["👩🏾🎨","woman artist: medium-dark skin tone",1,[]],["👩🏿🎨","woman artist: dark skin tone",1,[]],["🧑✈️","pilot",1,["pilot","plane"]],["🧑🏻✈️","pilot: light skin tone",1,[]],["🧑🏼✈️","pilot: medium-light skin tone",1,[]],["🧑🏽✈️","pilot: medium skin tone",1,[]],["🧑🏾✈️","pilot: medium-dark skin tone",1,[]],["🧑🏿✈️","pilot: dark skin tone",1,[]],["👨✈️","man pilot",1,["man","pilot","plane"]],["👨🏻✈️","man pilot: light skin tone",1,[]],["👨🏼✈️","man pilot: medium-light skin tone",1,[]],["👨🏽✈️","man pilot: medium skin tone",1,[]],["👨🏾✈️","man pilot: medium-dark skin tone",1,[]],["👨🏿✈️","man pilot: dark skin tone",1,[]],["👩✈️","woman pilot",1,["pilot","plane","woman"]],["👩🏻✈️","woman pilot: light skin tone",1,[]],["👩🏼✈️","woman pilot: medium-light skin tone",1,[]],["👩🏽✈️","woman pilot: medium skin tone",1,[]],["👩🏾✈️","woman pilot: medium-dark skin tone",1,[]],["👩🏿✈️","woman pilot: dark skin tone",1,[]],["🧑🚀","astronaut",1,["astronaut","rocket","space"]],["🧑🏻🚀","astronaut: light skin tone",1,[]],["🧑🏼🚀","astronaut: medium-light skin tone",1,[]],["🧑🏽🚀","astronaut: medium skin tone",1,[]],["🧑🏾🚀","astronaut: medium-dark skin tone",1,[]],["🧑🏿🚀","astronaut: dark skin tone",1,[]],["👨🚀","man astronaut",1,["astronaut","man","rocket","space"]],["👨🏻🚀","man astronaut: light skin tone",1,[]],["👨🏼🚀","man astronaut: medium-light skin tone",1,[]],["👨🏽🚀","man astronaut: medium skin tone",1,[]],["👨🏾🚀","man astronaut: medium-dark skin tone",1,[]],["👨🏿🚀","man astronaut: dark skin tone",1,[]],["👩🚀","woman astronaut",1,["astronaut","rocket","space","woman"]],["👩🏻🚀","woman astronaut: light skin tone",1,[]],["👩🏼🚀","woman astronaut: medium-light skin tone",1,[]],["👩🏽🚀","woman astronaut: medium skin tone",1,[]],["👩🏾🚀","woman astronaut: medium-dark skin tone",1,[]],["👩🏿🚀","woman astronaut: dark skin tone",1,[]],["🧑🚒","firefighter",1,["fire","firefighter","firetruck"]],["🧑🏻🚒","firefighter: light skin tone",1,[]],["🧑🏼🚒","firefighter: medium-light skin tone",1,[]],["🧑🏽🚒","firefighter: medium skin tone",1,[]],["🧑🏾🚒","firefighter: medium-dark skin tone",1,[]],["🧑🏿🚒","firefighter: dark skin tone",1,[]],["👨🚒","man firefighter",1,["fire","firefighter","firetruck","man"]],["👨🏻🚒","man firefighter: light skin tone",1,[]],["👨🏼🚒","man firefighter: medium-light skin tone",1,[]],["👨🏽🚒","man firefighter: medium skin tone",1,[]],["👨🏾🚒","man firefighter: medium-dark skin tone",1,[]],["👨🏿🚒","man firefighter: dark skin tone",1,[]],["👩🚒","woman firefighter",1,["fire","firefighter","firetruck","woman"]],["👩🏻🚒","woman firefighter: light skin tone",1,[]],["👩🏼🚒","woman firefighter: medium-light skin tone",1,[]],["👩🏽🚒","woman firefighter: medium skin tone",1,[]],["👩🏾🚒","woman firefighter: medium-dark skin tone",1,[]],["👩🏿🚒","woman firefighter: dark skin tone",1,[]],["👮","police officer",1,["apprehend","arrest","citation","cop","law","officer","over","police","pulled","undercover"]],["👮🏻","police officer: light skin tone",1,[]],["👮🏼","police officer: medium-light skin tone",1,[]],["👮🏽","police officer: medium skin tone",1,[]],["👮🏾","police officer: medium-dark skin tone",1,[]],["👮🏿","police officer: dark skin tone",1,[]],["👮♂️","man police officer",1,["apprehend","arrest","citation","cop","law","man","officer","over","police","pulled","undercover"]],["👮🏻♂️","man police officer: light skin tone",1,[]],["👮🏼♂️","man police officer: medium-light skin tone",1,[]],["👮🏽♂️","man police officer: medium skin tone",1,[]],["👮🏾♂️","man police officer: medium-dark skin tone",1,[]],["👮🏿♂️","man police officer: dark skin tone",1,[]],["👮♀️","woman police officer",1,["apprehend","arrest","citation","cop","law","officer","over","police","pulled","undercover","woman"]],["👮🏻♀️","woman police officer: light skin tone",1,[]],["👮🏼♀️","woman police officer: medium-light skin tone",1,[]],["👮🏽♀️","woman police officer: medium skin tone",1,[]],["👮🏾♀️","woman police officer: medium-dark skin tone",1,[]],["👮🏿♀️","woman police officer: dark skin tone",1,[]],["🕵️","detective",1,["detective","sleuth","spy"]],["🕵🏻","detective: light skin tone",1,[]],["🕵🏼","detective: medium-light skin tone",1,[]],["🕵🏽","detective: medium skin tone",1,[]],["🕵🏾","detective: medium-dark skin tone",1,[]],["🕵🏿","detective: dark skin tone",1,[]],["🕵️♂️","man detective",1,["detective","man","sleuth","spy"]],["🕵🏻♂️","man detective: light skin tone",1,[]],["🕵🏼♂️","man detective: medium-light skin tone",1,[]],["🕵🏽♂️","man detective: medium skin tone",1,[]],["🕵🏾♂️","man detective: medium-dark skin tone",1,[]],["🕵🏿♂️","man detective: dark skin tone",1,[]],["🕵️♀️","woman detective",1,["detective","sleuth","spy","woman"]],["🕵🏻♀️","woman detective: light skin tone",1,[]],["🕵🏼♀️","woman detective: medium-light skin tone",1,[]],["🕵🏽♀️","woman detective: medium skin tone",1,[]],["🕵🏾♀️","woman detective: medium-dark skin tone",1,[]],["🕵🏿♀️","woman detective: dark skin tone",1,[]],["💂","guard",1,["buckingham","guard","helmet","london","palace"]],["💂🏻","guard: light skin tone",1,[]],["💂🏼","guard: medium-light skin tone",1,[]],["💂🏽","guard: medium skin tone",1,[]],["💂🏾","guard: medium-dark skin tone",1,[]],["💂🏿","guard: dark skin tone",1,[]],["💂♂️","man guard",1,["buckingham","guard","helmet","london","man","palace"]],["💂🏻♂️","man guard: light skin tone",1,[]],["💂🏼♂️","man guard: medium-light skin tone",1,[]],["💂🏽♂️","man guard: medium skin tone",1,[]],["💂🏾♂️","man guard: medium-dark skin tone",1,[]],["💂🏿♂️","man guard: dark skin tone",1,[]],["💂♀️","woman guard",1,["buckingham","guard","helmet","london","palace","woman"]],["💂🏻♀️","woman guard: light skin tone",1,[]],["💂🏼♀️","woman guard: medium-light skin tone",1,[]],["💂🏽♀️","woman guard: medium skin tone",1,[]],["💂🏾♀️","woman guard: medium-dark skin tone",1,[]],["💂🏿♀️","woman guard: dark skin tone",1,[]],["🥷","ninja",1,["assassin","fight","fighter","hidden","ninja","person","secret","skills","sly","soldier","stealth","war"]],["🥷🏻","ninja: light skin tone",1,[]],["🥷🏼","ninja: medium-light skin tone",1,[]],["🥷🏽","ninja: medium skin tone",1,[]],["🥷🏾","ninja: medium-dark skin tone",1,[]],["🥷🏿","ninja: dark skin tone",1,[]],["👷","construction worker",1,["build","construction","fix","hardhat","hat","man","person","rebuild","remodel","repair","work","worker"]],["👷🏻","construction worker: light skin tone",1,[]],["👷🏼","construction worker: medium-light skin tone",1,[]],["👷🏽","construction worker: medium skin tone",1,[]],["👷🏾","construction worker: medium-dark skin tone",1,[]],["👷🏿","construction worker: dark skin tone",1,[]],["👷♂️","man construction worker",1,["build","construction","fix","hardhat","hat","man","rebuild","remodel","repair","work","worker"]],["👷🏻♂️","man construction worker: light skin tone",1,[]],["👷🏼♂️","man construction worker: medium-light skin tone",1,[]],["👷🏽♂️","man construction worker: medium skin tone",1,[]],["👷🏾♂️","man construction worker: medium-dark skin tone",1,[]],["👷🏿♂️","man construction worker: dark skin tone",1,[]],["👷♀️","woman construction worker",1,["build","construction","fix","hardhat","hat","man","rebuild","remodel","repair","woman","work","worker"]],["👷🏻♀️","woman construction worker: light skin tone",1,[]],["👷🏼♀️","woman construction worker: medium-light skin tone",1,[]],["👷🏽♀️","woman construction worker: medium skin tone",1,[]],["👷🏾♀️","woman construction worker: medium-dark skin tone",1,[]],["👷🏿♀️","woman construction worker: dark skin tone",1,[]],["🫅","person with crown",1,["crown","monarch","noble","person","regal","royal","royalty"]],["🫅🏻","person with crown: light skin tone",1,[]],["🫅🏼","person with crown: medium-light skin tone",1,[]],["🫅🏽","person with crown: medium skin tone",1,[]],["🫅🏾","person with crown: medium-dark skin tone",1,[]],["🫅🏿","person with crown: dark skin tone",1,[]],["🤴","prince",1,["crown","fairy","fairytale","fantasy","king","prince","royal","royalty","tale"]],["🤴🏻","prince: light skin tone",1,[]],["🤴🏼","prince: medium-light skin tone",1,[]],["🤴🏽","prince: medium skin tone",1,[]],["🤴🏾","prince: medium-dark skin tone",1,[]],["🤴🏿","prince: dark skin tone",1,[]],["👸","princess",1,["crown","fairy","fairytale","fantasy","princess","queen","royal","royalty","tale"]],["👸🏻","princess: light skin tone",1,[]],["👸🏼","princess: medium-light skin tone",1,[]],["👸🏽","princess: medium skin tone",1,[]],["👸🏾","princess: medium-dark skin tone",1,[]],["👸🏿","princess: dark skin tone",1,[]],["👳","person wearing turban",1,["person","turban","wearing"]],["👳🏻","person wearing turban: light skin tone",1,[]],["👳🏼","person wearing turban: medium-light skin tone",1,[]],["👳🏽","person wearing turban: medium skin tone",1,[]],["👳🏾","person wearing turban: medium-dark skin tone",1,[]],["👳🏿","person wearing turban: dark skin tone",1,[]],["👳♂️","man wearing turban",1,["man","turban","wearing"]],["👳🏻♂️","man wearing turban: light skin tone",1,[]],["👳🏼♂️","man wearing turban: medium-light skin tone",1,[]],["👳🏽♂️","man wearing turban: medium skin tone",1,[]],["👳🏾♂️","man wearing turban: medium-dark skin tone",1,[]],["👳🏿♂️","man wearing turban: dark skin tone",1,[]],["👳♀️","woman wearing turban",1,["turban","wearing","woman"]],["👳🏻♀️","woman wearing turban: light skin tone",1,[]],["👳🏼♀️","woman wearing turban: medium-light skin tone",1,[]],["👳🏽♀️","woman wearing turban: medium skin tone",1,[]],["👳🏾♀️","woman wearing turban: medium-dark skin tone",1,[]],["👳🏿♀️","woman wearing turban: dark skin tone",1,[]],["👲","person with skullcap",1,["cap","Chinese","gua","guapi","hat","mao","person","pi","skullcap"]],["👲🏻","person with skullcap: light skin tone",1,[]],["👲🏼","person with skullcap: medium-light skin tone",1,[]],["👲🏽","person with skullcap: medium skin tone",1,[]],["👲🏾","person with skullcap: medium-dark skin tone",1,[]],["👲🏿","person with skullcap: dark skin tone",1,[]],["🧕","woman with headscarf",1,["bandana","head","headscarf","hijab","kerchief","mantilla","tichel","woman"]],["🧕🏻","woman with headscarf: light skin tone",1,[]],["🧕🏼","woman with headscarf: medium-light skin tone",1,[]],["🧕🏽","woman with headscarf: medium skin tone",1,[]],["🧕🏾","woman with headscarf: medium-dark skin tone",1,[]],["🧕🏿","woman with headscarf: dark skin tone",1,[]],["🤵","person in tuxedo",1,["formal","person","tuxedo","wedding"]],["🤵🏻","person in tuxedo: light skin tone",1,[]],["🤵🏼","person in tuxedo: medium-light skin tone",1,[]],["🤵🏽","person in tuxedo: medium skin tone",1,[]],["🤵🏾","person in tuxedo: medium-dark skin tone",1,[]],["🤵🏿","person in tuxedo: dark skin tone",1,[]],["🤵♂️","man in tuxedo",1,["formal","groom","man","tuxedo","wedding"]],["🤵🏻♂️","man in tuxedo: light skin tone",1,[]],["🤵🏼♂️","man in tuxedo: medium-light skin tone",1,[]],["🤵🏽♂️","man in tuxedo: medium skin tone",1,[]],["🤵🏾♂️","man in tuxedo: medium-dark skin tone",1,[]],["🤵🏿♂️","man in tuxedo: dark skin tone",1,[]],["🤵♀️","woman in tuxedo",1,["formal","tuxedo","wedding","woman"]],["🤵🏻♀️","woman in tuxedo: light skin tone",1,[]],["🤵🏼♀️","woman in tuxedo: medium-light skin tone",1,[]],["🤵🏽♀️","woman in tuxedo: medium skin tone",1,[]],["🤵🏾♀️","woman in tuxedo: medium-dark skin tone",1,[]],["🤵🏿♀️","woman in tuxedo: dark skin tone",1,[]],["👰","person with veil",1,["person","veil","wedding"]],["👰🏻","person with veil: light skin tone",1,[]],["👰🏼","person with veil: medium-light skin tone",1,[]],["👰🏽","person with veil: medium skin tone",1,[]],["👰🏾","person with veil: medium-dark skin tone",1,[]],["👰🏿","person with veil: dark skin tone",1,[]],["👰♂️","man with veil",1,["man","veil","wedding"]],["👰🏻♂️","man with veil: light skin tone",1,[]],["👰🏼♂️","man with veil: medium-light skin tone",1,[]],["👰🏽♂️","man with veil: medium skin tone",1,[]],["👰🏾♂️","man with veil: medium-dark skin tone",1,[]],["👰🏿♂️","man with veil: dark skin tone",1,[]],["👰♀️","woman with veil",1,["bride","veil","wedding","woman"]],["👰🏻♀️","woman with veil: light skin tone",1,[]],["👰🏼♀️","woman with veil: medium-light skin tone",1,[]],["👰🏽♀️","woman with veil: medium skin tone",1,[]],["👰🏾♀️","woman with veil: medium-dark skin tone",1,[]],["👰🏿♀️","woman with veil: dark skin tone",1,[]],["🤰","pregnant woman",1,["pregnant","woman"]],["🤰🏻","pregnant woman: light skin tone",1,[]],["🤰🏼","pregnant woman: medium-light skin tone",1,[]],["🤰🏽","pregnant woman: medium skin tone",1,[]],["🤰🏾","pregnant woman: medium-dark skin tone",1,[]],["🤰🏿","pregnant woman: dark skin tone",1,[]],["🫃","pregnant man",1,["belly","bloated","full","man","overeat","pregnant"]],["🫃🏻","pregnant man: light skin tone",1,[]],["🫃🏼","pregnant man: medium-light skin tone",1,[]],["🫃🏽","pregnant man: medium skin tone",1,[]],["🫃🏾","pregnant man: medium-dark skin tone",1,[]],["🫃🏿","pregnant man: dark skin tone",1,[]],["🫄","pregnant person",1,["belly","bloated","full","overeat","person","pregnant","stuffed"]],["🫄🏻","pregnant person: light skin tone",1,[]],["🫄🏼","pregnant person: medium-light skin tone",1,[]],["🫄🏽","pregnant person: medium skin tone",1,[]],["🫄🏾","pregnant person: medium-dark skin tone",1,[]],["🫄🏿","pregnant person: dark skin tone",1,[]],["🤱","breast-feeding",1,["baby","breast","breast-feeding","feeding","mom","mother","nursing","woman"]],["🤱🏻","breast-feeding: light skin tone",1,[]],["🤱🏼","breast-feeding: medium-light skin tone",1,[]],["🤱🏽","breast-feeding: medium skin tone",1,[]],["🤱🏾","breast-feeding: medium-dark skin tone",1,[]],["🤱🏿","breast-feeding: dark skin tone",1,[]],["👩🍼","woman feeding baby",1,["baby","feed","feeding","mom","mother","nanny","newborn","nursing","woman"]],["👩🏻🍼","woman feeding baby: light skin tone",1,[]],["👩🏼🍼","woman feeding baby: medium-light skin tone",1,[]],["👩🏽🍼","woman feeding baby: medium skin tone",1,[]],["👩🏾🍼","woman feeding baby: medium-dark skin tone",1,[]],["👩🏿🍼","woman feeding baby: dark skin tone",1,[]],["👨🍼","man feeding baby",1,["baby","dad","father","feed","feeding","man","nanny","newborn","nursing"]],["👨🏻🍼","man feeding baby: light skin tone",1,[]],["👨🏼🍼","man feeding baby: medium-light skin tone",1,[]],["👨🏽🍼","man feeding baby: medium skin tone",1,[]],["👨🏾🍼","man feeding baby: medium-dark skin tone",1,[]],["👨🏿🍼","man feeding baby: dark skin tone",1,[]],["🧑🍼","person feeding baby",1,["baby","feed","feeding","nanny","newborn","nursing","parent"]],["🧑🏻🍼","person feeding baby: light skin tone",1,[]],["🧑🏼🍼","person feeding baby: medium-light skin tone",1,[]],["🧑🏽🍼","person feeding baby: medium skin tone",1,[]],["🧑🏾🍼","person feeding baby: medium-dark skin tone",1,[]],["🧑🏿🍼","person feeding baby: dark skin tone",1,[]],["👼","baby angel",1,["angel","baby","church","face","fairy","fairytale","fantasy","tale"]],["👼🏻","baby angel: light skin tone",1,[]],["👼🏼","baby angel: medium-light skin tone",1,[]],["👼🏽","baby angel: medium skin tone",1,[]],["👼🏾","baby angel: medium-dark skin tone",1,[]],["👼🏿","baby angel: dark skin tone",1,[]],["🎅","Santa Claus",1,["celebration","Christmas","claus","fairy","fantasy","father","holiday","merry","santa","tale","xmas"]],["🎅🏻","Santa Claus: light skin tone",1,[]],["🎅🏼","Santa Claus: medium-light skin tone",1,[]],["🎅🏽","Santa Claus: medium skin tone",1,[]],["🎅🏾","Santa Claus: medium-dark skin tone",1,[]],["🎅🏿","Santa Claus: dark skin tone",1,[]],["🤶","Mrs. Claus",1,["celebration","Christmas","claus","fairy","fantasy","holiday","merry","mother","Mrs","santa","tale","xmas"]],["🤶🏻","Mrs. Claus: light skin tone",1,[]],["🤶🏼","Mrs. Claus: medium-light skin tone",1,[]],["🤶🏽","Mrs. Claus: medium skin tone",1,[]],["🤶🏾","Mrs. Claus: medium-dark skin tone",1,[]],["🤶🏿","Mrs. Claus: dark skin tone",1,[]],["🧑🎄","Mx Claus",1,["celebration","Christmas","claus","fairy","fantasy","holiday","merry","Mx","santa","tale","xmas"]],["🧑🏻🎄","Mx Claus: light skin tone",1,[]],["🧑🏼🎄","Mx Claus: medium-light skin tone",1,[]],["🧑🏽🎄","Mx Claus: medium skin tone",1,[]],["🧑🏾🎄","Mx Claus: medium-dark skin tone",1,[]],["🧑🏿🎄","Mx Claus: dark skin tone",1,[]],["🦸","superhero",1,["good","hero","superhero","superpower"]],["🦸🏻","superhero: light skin tone",1,[]],["🦸🏼","superhero: medium-light skin tone",1,[]],["🦸🏽","superhero: medium skin tone",1,[]],["🦸🏾","superhero: medium-dark skin tone",1,[]],["🦸🏿","superhero: dark skin tone",1,[]],["🦸♂️","man superhero",1,["good","hero","man","superhero","superpower"]],["🦸🏻♂️","man superhero: light skin tone",1,[]],["🦸🏼♂️","man superhero: medium-light skin tone",1,[]],["🦸🏽♂️","man superhero: medium skin tone",1,[]],["🦸🏾♂️","man superhero: medium-dark skin tone",1,[]],["🦸🏿♂️","man superhero: dark skin tone",1,[]],["🦸♀️","woman superhero",1,["good","hero","heroine","superhero","superpower","woman"]],["🦸🏻♀️","woman superhero: light skin tone",1,[]],["🦸🏼♀️","woman superhero: medium-light skin tone",1,[]],["🦸🏽♀️","woman superhero: medium skin tone",1,[]],["🦸🏾♀️","woman superhero: medium-dark skin tone",1,[]],["🦸🏿♀️","woman superhero: dark skin tone",1,[]],["🦹","supervillain",1,["bad","criminal","evil","superpower","supervillain","villain"]],["🦹🏻","supervillain: light skin tone",1,[]],["🦹🏼","supervillain: medium-light skin tone",1,[]],["🦹🏽","supervillain: medium skin tone",1,[]],["🦹🏾","supervillain: medium-dark skin tone",1,[]],["🦹🏿","supervillain: dark skin tone",1,[]],["🦹♂️","man supervillain",1,["bad","criminal","evil","man","superpower","supervillain","villain"]],["🦹🏻♂️","man supervillain: light skin tone",1,[]],["🦹🏼♂️","man supervillain: medium-light skin tone",1,[]],["🦹🏽♂️","man supervillain: medium skin tone",1,[]],["🦹🏾♂️","man supervillain: medium-dark skin tone",1,[]],["🦹🏿♂️","man supervillain: dark skin tone",1,[]],["🦹♀️","woman supervillain",1,["bad","criminal","evil","superpower","supervillain","villain","woman"]],["🦹🏻♀️","woman supervillain: light skin tone",1,[]],["🦹🏼♀️","woman supervillain: medium-light skin tone",1,[]],["🦹🏽♀️","woman supervillain: medium skin tone",1,[]],["🦹🏾♀️","woman supervillain: medium-dark skin tone",1,[]],["🦹🏿♀️","woman supervillain: dark skin tone",1,[]],["🧙","mage",1,["fantasy","mage","magic","play","sorcerer","sorceress","sorcery","spell","summon","witch","wizard"]],["🧙🏻","mage: light skin tone",1,[]],["🧙🏼","mage: medium-light skin tone",1,[]],["🧙🏽","mage: medium skin tone",1,[]],["🧙🏾","mage: medium-dark skin tone",1,[]],["🧙🏿","mage: dark skin tone",1,[]],["🧙♂️","man mage",1,["fantasy","mage","magic","man","play","sorcerer","sorceress","sorcery","spell","summon","witch","wizard"]],["🧙🏻♂️","man mage: light skin tone",1,[]],["🧙🏼♂️","man mage: medium-light skin tone",1,[]],["🧙🏽♂️","man mage: medium skin tone",1,[]],["🧙🏾♂️","man mage: medium-dark skin tone",1,[]],["🧙🏿♂️","man mage: dark skin tone",1,[]],["🧙♀️","woman mage",1,["fantasy","mage","magic","play","sorcerer","sorceress","sorcery","spell","summon","witch","wizard","woman"]],["🧙🏻♀️","woman mage: light skin tone",1,[]],["🧙🏼♀️","woman mage: medium-light skin tone",1,[]],["🧙🏽♀️","woman mage: medium skin tone",1,[]],["🧙🏾♀️","woman mage: medium-dark skin tone",1,[]],["🧙🏿♀️","woman mage: dark skin tone",1,[]],["🧚","fairy",1,["fairy","fairytale","fantasy","myth","person","pixie","tale","wings"]],["🧚🏻","fairy: light skin tone",1,[]],["🧚🏼","fairy: medium-light skin tone",1,[]],["🧚🏽","fairy: medium skin tone",1,[]],["🧚🏾","fairy: medium-dark skin tone",1,[]],["🧚🏿","fairy: dark skin tone",1,[]],["🧚♂️","man fairy",1,["fairy","fairytale","fantasy","man","myth","Oberon","person","pixie","Puck","tale","wings"]],["🧚🏻♂️","man fairy: light skin tone",1,[]],["🧚🏼♂️","man fairy: medium-light skin tone",1,[]],["🧚🏽♂️","man fairy: medium skin tone",1,[]],["🧚🏾♂️","man fairy: medium-dark skin tone",1,[]],["🧚🏿♂️","man fairy: dark skin tone",1,[]],["🧚♀️","woman fairy",1,["fairy","fairytale","fantasy","myth","person","pixie","tale","Titania","wings","woman"]],["🧚🏻♀️","woman fairy: light skin tone",1,[]],["🧚🏼♀️","woman fairy: medium-light skin tone",1,[]],["🧚🏽♀️","woman fairy: medium skin tone",1,[]],["🧚🏾♀️","woman fairy: medium-dark skin tone",1,[]],["🧚🏿♀️","woman fairy: dark skin tone",1,[]],["🧛","vampire",1,["blood","Dracula","fangs","halloween","scary","supernatural","teeth","undead","vampire"]],["🧛🏻","vampire: light skin tone",1,[]],["🧛🏼","vampire: medium-light skin tone",1,[]],["🧛🏽","vampire: medium skin tone",1,[]],["🧛🏾","vampire: medium-dark skin tone",1,[]],["🧛🏿","vampire: dark skin tone",1,[]],["🧛♂️","man vampire",1,["blood","fangs","halloween","man","scary","supernatural","teeth","undead","vampire"]],["🧛🏻♂️","man vampire: light skin tone",1,[]],["🧛🏼♂️","man vampire: medium-light skin tone",1,[]],["🧛🏽♂️","man vampire: medium skin tone",1,[]],["🧛🏾♂️","man vampire: medium-dark skin tone",1,[]],["🧛🏿♂️","man vampire: dark skin tone",1,[]],["🧛♀️","woman vampire",1,["blood","fangs","halloween","scary","supernatural","teeth","undead","vampire","woman"]],["🧛🏻♀️","woman vampire: light skin tone",1,[]],["🧛🏼♀️","woman vampire: medium-light skin tone",1,[]],["🧛🏽♀️","woman vampire: medium skin tone",1,[]],["🧛🏾♀️","woman vampire: medium-dark skin tone",1,[]],["🧛🏿♀️","woman vampire: dark skin tone",1,[]],["🧜","merperson",1,["creature","fairytale","folklore","merperson","ocean","sea","siren","trident"]],["🧜🏻","merperson: light skin tone",1,[]],["🧜🏼","merperson: medium-light skin tone",1,[]],["🧜🏽","merperson: medium skin tone",1,[]],["🧜🏾","merperson: medium-dark skin tone",1,[]],["🧜🏿","merperson: dark skin tone",1,[]],["🧜♂️","merman",1,["creature","fairytale","folklore","merman","Neptune","ocean","Poseidon","sea","siren","trident","Triton"]],["🧜🏻♂️","merman: light skin tone",1,[]],["🧜🏼♂️","merman: medium-light skin tone",1,[]],["🧜🏽♂️","merman: medium skin tone",1,[]],["🧜🏾♂️","merman: medium-dark skin tone",1,[]],["🧜🏿♂️","merman: dark skin tone",1,[]],["🧜♀️","mermaid",1,["creature","fairytale","folklore","mermaid","merwoman","ocean","sea","siren","trident"]],["🧜🏻♀️","mermaid: light skin tone",1,[]],["🧜🏼♀️","mermaid: medium-light skin tone",1,[]],["🧜🏽♀️","mermaid: medium skin tone",1,[]],["🧜🏾♀️","mermaid: medium-dark skin tone",1,[]],["🧜🏿♀️","mermaid: dark skin tone",1,[]],["🧝","elf",1,["elf","elves","enchantment","fantasy","folklore","magic","magical","myth"]],["🧝🏻","elf: light skin tone",1,[]],["🧝🏼","elf: medium-light skin tone",1,[]],["🧝🏽","elf: medium skin tone",1,[]],["🧝🏾","elf: medium-dark skin tone",1,[]],["🧝🏿","elf: dark skin tone",1,[]],["🧝♂️","man elf",1,["elf","elves","enchantment","fantasy","folklore","magic","magical","man","myth"]],["🧝🏻♂️","man elf: light skin tone",1,[]],["🧝🏼♂️","man elf: medium-light skin tone",1,[]],["🧝🏽♂️","man elf: medium skin tone",1,[]],["🧝🏾♂️","man elf: medium-dark skin tone",1,[]],["🧝🏿♂️","man elf: dark skin tone",1,[]],["🧝♀️","woman elf",1,["elf","elves","enchantment","fantasy","folklore","magic","magical","myth","woman"]],["🧝🏻♀️","woman elf: light skin tone",1,[]],["🧝🏼♀️","woman elf: medium-light skin tone",1,[]],["🧝🏽♀️","woman elf: medium skin tone",1,[]],["🧝🏾♀️","woman elf: medium-dark skin tone",1,[]],["🧝🏿♀️","woman elf: dark skin tone",1,[]],["🧞","genie",1,["djinn","fantasy","genie","jinn","lamp","myth","rub","wishes"]],["🧞♂️","man genie",1,["djinn","fantasy","genie","jinn","lamp","man","myth","rub","wishes"]],["🧞♀️","woman genie",1,["djinn","fantasy","genie","jinn","lamp","myth","rub","wishes","woman"]],["🧟","zombie",1,["apocalypse","dead","halloween","horror","scary","undead","walking","zombie"]],["🧟♂️","man zombie",1,["apocalypse","dead","halloween","horror","man","scary","undead","walking","zombie"]],["🧟♀️","woman zombie",1,["apocalypse","dead","halloween","horror","scary","undead","walking","woman","zombie"]],["🧌","troll",1,["fairy","fantasy","monster","tale","troll","trolling"]],["","hairy creature",1,["bigfoot","cryptid","forest","giant","hairy","sasquatch","woodwose","yeti"]],["💆","person getting massage",1,["face","getting","headache","massage","person","relax","relaxing","salon","soothe","spa","tension","therapy","treatment"]],["💆🏻","person getting massage: light skin tone",1,[]],["💆🏼","person getting massage: medium-light skin tone",1,[]],["💆🏽","person getting massage: medium skin tone",1,[]],["💆🏾","person getting massage: medium-dark skin tone",1,[]],["💆🏿","person getting massage: dark skin tone",1,[]],["💆♂️","man getting massage",1,["face","getting","headache","man","massage","relax","relaxing","salon","soothe","spa","tension","therapy","treatment"]],["💆🏻♂️","man getting massage: light skin tone",1,[]],["💆🏼♂️","man getting massage: medium-light skin tone",1,[]],["💆🏽♂️","man getting massage: medium skin tone",1,[]],["💆🏾♂️","man getting massage: medium-dark skin tone",1,[]],["💆🏿♂️","man getting massage: dark skin tone",1,[]],["💆♀️","woman getting massage",1,["face","getting","headache","massage","relax","relaxing","salon","soothe","spa","tension","therapy","treatment","woman"]],["💆🏻♀️","woman getting massage: light skin tone",1,[]],["💆🏼♀️","woman getting massage: medium-light skin tone",1,[]],["💆🏽♀️","woman getting massage: medium skin tone",1,[]],["💆🏾♀️","woman getting massage: medium-dark skin tone",1,[]],["💆🏿♀️","woman getting massage: dark skin tone",1,[]],["💇","person getting haircut",1,["barber","beauty","chop","cosmetology","cut","groom","hair","haircut","parlor","person","shears","style"]],["💇🏻","person getting haircut: light skin tone",1,[]],["💇🏼","person getting haircut: medium-light skin tone",1,[]],["💇🏽","person getting haircut: medium skin tone",1,[]],["💇🏾","person getting haircut: medium-dark skin tone",1,[]],["💇🏿","person getting haircut: dark skin tone",1,[]],["💇♂️","man getting haircut",1,["barber","beauty","chop","cosmetology","cut","groom","hair","haircut","man","parlor","person","shears","style"]],["💇🏻♂️","man getting haircut: light skin tone",1,[]],["💇🏼♂️","man getting haircut: medium-light skin tone",1,[]],["💇🏽♂️","man getting haircut: medium skin tone",1,[]],["💇🏾♂️","man getting haircut: medium-dark skin tone",1,[]],["💇🏿♂️","man getting haircut: dark skin tone",1,[]],["💇♀️","woman getting haircut",1,["barber","beauty","chop","cosmetology","cut","groom","hair","haircut","parlor","person","shears","style","woman"]],["💇🏻♀️","woman getting haircut: light skin tone",1,[]],["💇🏼♀️","woman getting haircut: medium-light skin tone",1,[]],["💇🏽♀️","woman getting haircut: medium skin tone",1,[]],["💇🏾♀️","woman getting haircut: medium-dark skin tone",1,[]],["💇🏿♀️","woman getting haircut: dark skin tone",1,[]],["🚶","person walking",1,["amble","gait","hike","man","pace","pedestrian","person","stride","stroll","walk","walking"]],["🚶🏻","person walking: light skin tone",1,[]],["🚶🏼","person walking: medium-light skin tone",1,[]],["🚶🏽","person walking: medium skin tone",1,[]],["🚶🏾","person walking: medium-dark skin tone",1,[]],["🚶🏿","person walking: dark skin tone",1,[]],["🚶♂️","man walking",1,["amble","gait","hike","man","pace","pedestrian","stride","stroll","walk","walking"]],["🚶🏻♂️","man walking: light skin tone",1,[]],["🚶🏼♂️","man walking: medium-light skin tone",1,[]],["🚶🏽♂️","man walking: medium skin tone",1,[]],["🚶🏾♂️","man walking: medium-dark skin tone",1,[]],["🚶🏿♂️","man walking: dark skin tone",1,[]],["🚶♀️","woman walking",1,["amble","gait","hike","man","pace","pedestrian","stride","stroll","walk","walking","woman"]],["🚶🏻♀️","woman walking: light skin tone",1,[]],["🚶🏼♀️","woman walking: medium-light skin tone",1,[]],["🚶🏽♀️","woman walking: medium skin tone",1,[]],["🚶🏾♀️","woman walking: medium-dark skin tone",1,[]],["🚶🏿♀️","woman walking: dark skin tone",1,[]],["🚶➡️","person walking facing right",1,[]],["🚶🏻➡️","person walking facing right: light skin tone",1,[]],["🚶🏼➡️","person walking facing right: medium-light skin tone",1,[]],["🚶🏽➡️","person walking facing right: medium skin tone",1,[]],["🚶🏾➡️","person walking facing right: medium-dark skin tone",1,[]],["🚶🏿➡️","person walking facing right: dark skin tone",1,[]],["🚶♀️➡️","woman walking facing right",1,[]],["🚶🏻♀️➡️","woman walking facing right: light skin tone",1,[]],["🚶🏼♀️➡️","woman walking facing right: medium-light skin tone",1,[]],["🚶🏽♀️➡️","woman walking facing right: medium skin tone",1,[]],["🚶🏾♀️➡️","woman walking facing right: medium-dark skin tone",1,[]],["🚶🏿♀️➡️","woman walking facing right: dark skin tone",1,[]],["🚶♂️➡️","man walking facing right",1,[]],["🚶🏻♂️➡️","man walking facing right: light skin tone",1,[]],["🚶🏼♂️➡️","man walking facing right: medium-light skin tone",1,[]],["🚶🏽♂️➡️","man walking facing right: medium skin tone",1,[]],["🚶🏾♂️➡️","man walking facing right: medium-dark skin tone",1,[]],["🚶🏿♂️➡️","man walking facing right: dark skin tone",1,[]],["🧍","person standing",1,["person","stand","standing"]],["🧍🏻","person standing: light skin tone",1,[]],["🧍🏼","person standing: medium-light skin tone",1,[]],["🧍🏽","person standing: medium skin tone",1,[]],["🧍🏾","person standing: medium-dark skin tone",1,[]],["🧍🏿","person standing: dark skin tone",1,[]],["🧍♂️","man standing",1,["man","stand","standing"]],["🧍🏻♂️","man standing: light skin tone",1,[]],["🧍🏼♂️","man standing: medium-light skin tone",1,[]],["🧍🏽♂️","man standing: medium skin tone",1,[]],["🧍🏾♂️","man standing: medium-dark skin tone",1,[]],["🧍🏿♂️","man standing: dark skin tone",1,[]],["🧍♀️","woman standing",1,["stand","standing","woman"]],["🧍🏻♀️","woman standing: light skin tone",1,[]],["🧍🏼♀️","woman standing: medium-light skin tone",1,[]],["🧍🏽♀️","woman standing: medium skin tone",1,[]],["🧍🏾♀️","woman standing: medium-dark skin tone",1,[]],["🧍🏿♀️","woman standing: dark skin tone",1,[]],["🧎","person kneeling",1,["kneel","kneeling","knees","person"]],["🧎🏻","person kneeling: light skin tone",1,[]],["🧎🏼","person kneeling: medium-light skin tone",1,[]],["🧎🏽","person kneeling: medium skin tone",1,[]],["🧎🏾","person kneeling: medium-dark skin tone",1,[]],["🧎🏿","person kneeling: dark skin tone",1,[]],["🧎♂️","man kneeling",1,["kneel","kneeling","knees","man"]],["🧎🏻♂️","man kneeling: light skin tone",1,[]],["🧎🏼♂️","man kneeling: medium-light skin tone",1,[]],["🧎🏽♂️","man kneeling: medium skin tone",1,[]],["🧎🏾♂️","man kneeling: medium-dark skin tone",1,[]],["🧎🏿♂️","man kneeling: dark skin tone",1,[]],["🧎♀️","woman kneeling",1,["kneel","kneeling","knees","woman"]],["🧎🏻♀️","woman kneeling: light skin tone",1,[]],["🧎🏼♀️","woman kneeling: medium-light skin tone",1,[]],["🧎🏽♀️","woman kneeling: medium skin tone",1,[]],["🧎🏾♀️","woman kneeling: medium-dark skin tone",1,[]],["🧎🏿♀️","woman kneeling: dark skin tone",1,[]],["🧎➡️","person kneeling facing right",1,[]],["🧎🏻➡️","person kneeling facing right: light skin tone",1,[]],["🧎🏼➡️","person kneeling facing right: medium-light skin tone",1,[]],["🧎🏽➡️","person kneeling facing right: medium skin tone",1,[]],["🧎🏾➡️","person kneeling facing right: medium-dark skin tone",1,[]],["🧎🏿➡️","person kneeling facing right: dark skin tone",1,[]],["🧎♀️➡️","woman kneeling facing right",1,[]],["🧎🏻♀️➡️","woman kneeling facing right: light skin tone",1,[]],["🧎🏼♀️➡️","woman kneeling facing right: medium-light skin tone",1,[]],["🧎🏽♀️➡️","woman kneeling facing right: medium skin tone",1,[]],["🧎🏾♀️➡️","woman kneeling facing right: medium-dark skin tone",1,[]],["🧎🏿♀️➡️","woman kneeling facing right: dark skin tone",1,[]],["🧎♂️➡️","man kneeling facing right",1,[]],["🧎🏻♂️➡️","man kneeling facing right: light skin tone",1,[]],["🧎🏼♂️➡️","man kneeling facing right: medium-light skin tone",1,[]],["🧎🏽♂️➡️","man kneeling facing right: medium skin tone",1,[]],["🧎🏾♂️➡️","man kneeling facing right: medium-dark skin tone",1,[]],["🧎🏿♂️➡️","man kneeling facing right: dark skin tone",1,[]],["🧑🦯","person with white cane",1,["accessibility","blind","cane","person","probing","white"]],["🧑🏻🦯","person with white cane: light skin tone",1,[]],["🧑🏼🦯","person with white cane: medium-light skin tone",1,[]],["🧑🏽🦯","person with white cane: medium skin tone",1,[]],["🧑🏾🦯","person with white cane: medium-dark skin tone",1,[]],["🧑🏿🦯","person with white cane: dark skin tone",1,[]],["🧑🦯➡️","person with white cane facing right",1,[]],["🧑🏻🦯➡️","person with white cane facing right: light skin tone",1,[]],["🧑🏼🦯➡️","person with white cane facing right: medium-light skin tone",1,[]],["🧑🏽🦯➡️","person with white cane facing right: medium skin tone",1,[]],["🧑🏾🦯➡️","person with white cane facing right: medium-dark skin tone",1,[]],["🧑🏿🦯➡️","person with white cane facing right: dark skin tone",1,[]],["👨🦯","man with white cane",1,["accessibility","blind","cane","man","probing","white"]],["👨🏻🦯","man with white cane: light skin tone",1,[]],["👨🏼🦯","man with white cane: medium-light skin tone",1,[]],["👨🏽🦯","man with white cane: medium skin tone",1,[]],["👨🏾🦯","man with white cane: medium-dark skin tone",1,[]],["👨🏿🦯","man with white cane: dark skin tone",1,[]],["👨🦯➡️","man with white cane facing right",1,[]],["👨🏻🦯➡️","man with white cane facing right: light skin tone",1,[]],["👨🏼🦯➡️","man with white cane facing right: medium-light skin tone",1,[]],["👨🏽🦯➡️","man with white cane facing right: medium skin tone",1,[]],["👨🏾🦯➡️","man with white cane facing right: medium-dark skin tone",1,[]],["👨🏿🦯➡️","man with white cane facing right: dark skin tone",1,[]],["👩🦯","woman with white cane",1,["accessibility","blind","cane","probing","white","woman"]],["👩🏻🦯","woman with white cane: light skin tone",1,[]],["👩🏼🦯","woman with white cane: medium-light skin tone",1,[]],["👩🏽🦯","woman with white cane: medium skin tone",1,[]],["👩🏾🦯","woman with white cane: medium-dark skin tone",1,[]],["👩🏿🦯","woman with white cane: dark skin tone",1,[]],["👩🦯➡️","woman with white cane facing right",1,[]],["👩🏻🦯➡️","woman with white cane facing right: light skin tone",1,[]],["👩🏼🦯➡️","woman with white cane facing right: medium-light skin tone",1,[]],["👩🏽🦯➡️","woman with white cane facing right: medium skin tone",1,[]],["👩🏾🦯➡️","woman with white cane facing right: medium-dark skin tone",1,[]],["👩🏿🦯➡️","woman with white cane facing right: dark skin tone",1,[]],["🧑🦼","person in motorized wheelchair",1,["accessibility","motorized","person","wheelchair"]],["🧑🏻🦼","person in motorized wheelchair: light skin tone",1,[]],["🧑🏼🦼","person in motorized wheelchair: medium-light skin tone",1,[]],["🧑🏽🦼","person in motorized wheelchair: medium skin tone",1,[]],["🧑🏾🦼","person in motorized wheelchair: medium-dark skin tone",1,[]],["🧑🏿🦼","person in motorized wheelchair: dark skin tone",1,[]],["🧑🦼➡️","person in motorized wheelchair facing right",1,[]],["🧑🏻🦼➡️","person in motorized wheelchair facing right: light skin tone",1,[]],["🧑🏼🦼➡️","person in motorized wheelchair facing right: medium-light skin tone",1,[]],["🧑🏽🦼➡️","person in motorized wheelchair facing right: medium skin tone",1,[]],["🧑🏾🦼➡️","person in motorized wheelchair facing right: medium-dark skin tone",1,[]],["🧑🏿🦼➡️","person in motorized wheelchair facing right: dark skin tone",1,[]],["👨🦼","man in motorized wheelchair",1,["accessibility","man","motorized","wheelchair"]],["👨🏻🦼","man in motorized wheelchair: light skin tone",1,[]],["👨🏼🦼","man in motorized wheelchair: medium-light skin tone",1,[]],["👨🏽🦼","man in motorized wheelchair: medium skin tone",1,[]],["👨🏾🦼","man in motorized wheelchair: medium-dark skin tone",1,[]],["👨🏿🦼","man in motorized wheelchair: dark skin tone",1,[]],["👨🦼➡️","man in motorized wheelchair facing right",1,[]],["👨🏻🦼➡️","man in motorized wheelchair facing right: light skin tone",1,[]],["👨🏼🦼➡️","man in motorized wheelchair facing right: medium-light skin tone",1,[]],["👨🏽🦼➡️","man in motorized wheelchair facing right: medium skin tone",1,[]],["👨🏾🦼➡️","man in motorized wheelchair facing right: medium-dark skin tone",1,[]],["👨🏿🦼➡️","man in motorized wheelchair facing right: dark skin tone",1,[]],["👩🦼","woman in motorized wheelchair",1,["accessibility","motorized","wheelchair","woman"]],["👩🏻🦼","woman in motorized wheelchair: light skin tone",1,[]],["👩🏼🦼","woman in motorized wheelchair: medium-light skin tone",1,[]],["👩🏽🦼","woman in motorized wheelchair: medium skin tone",1,[]],["👩🏾🦼","woman in motorized wheelchair: medium-dark skin tone",1,[]],["👩🏿🦼","woman in motorized wheelchair: dark skin tone",1,[]],["👩🦼➡️","woman in motorized wheelchair facing right",1,[]],["👩🏻🦼➡️","woman in motorized wheelchair facing right: light skin tone",1,[]],["👩🏼🦼➡️","woman in motorized wheelchair facing right: medium-light skin tone",1,[]],["👩🏽🦼➡️","woman in motorized wheelchair facing right: medium skin tone",1,[]],["👩🏾🦼➡️","woman in motorized wheelchair facing right: medium-dark skin tone",1,[]],["👩🏿🦼➡️","woman in motorized wheelchair facing right: dark skin tone",1,[]],["🧑🦽","person in manual wheelchair",1,["accessibility","manual","person","wheelchair"]],["🧑🏻🦽","person in manual wheelchair: light skin tone",1,[]],["🧑🏼🦽","person in manual wheelchair: medium-light skin tone",1,[]],["🧑🏽🦽","person in manual wheelchair: medium skin tone",1,[]],["🧑🏾🦽","person in manual wheelchair: medium-dark skin tone",1,[]],["🧑🏿🦽","person in manual wheelchair: dark skin tone",1,[]],["🧑🦽➡️","person in manual wheelchair facing right",1,[]],["🧑🏻🦽➡️","person in manual wheelchair facing right: light skin tone",1,[]],["🧑🏼🦽➡️","person in manual wheelchair facing right: medium-light skin tone",1,[]],["🧑🏽🦽➡️","person in manual wheelchair facing right: medium skin tone",1,[]],["🧑🏾🦽➡️","person in manual wheelchair facing right: medium-dark skin tone",1,[]],["🧑🏿🦽➡️","person in manual wheelchair facing right: dark skin tone",1,[]],["👨🦽","man in manual wheelchair",1,["accessibility","man","manual","wheelchair"]],["👨🏻🦽","man in manual wheelchair: light skin tone",1,[]],["👨🏼🦽","man in manual wheelchair: medium-light skin tone",1,[]],["👨🏽🦽","man in manual wheelchair: medium skin tone",1,[]],["👨🏾🦽","man in manual wheelchair: medium-dark skin tone",1,[]],["👨🏿🦽","man in manual wheelchair: dark skin tone",1,[]],["👨🦽➡️","man in manual wheelchair facing right",1,[]],["👨🏻🦽➡️","man in manual wheelchair facing right: light skin tone",1,[]],["👨🏼🦽➡️","man in manual wheelchair facing right: medium-light skin tone",1,[]],["👨🏽🦽➡️","man in manual wheelchair facing right: medium skin tone",1,[]],["👨🏾🦽➡️","man in manual wheelchair facing right: medium-dark skin tone",1,[]],["👨🏿🦽➡️","man in manual wheelchair facing right: dark skin tone",1,[]],["👩🦽","woman in manual wheelchair",1,["accessibility","manual","wheelchair","woman"]],["👩🏻🦽","woman in manual wheelchair: light skin tone",1,[]],["👩🏼🦽","woman in manual wheelchair: medium-light skin tone",1,[]],["👩🏽🦽","woman in manual wheelchair: medium skin tone",1,[]],["👩🏾🦽","woman in manual wheelchair: medium-dark skin tone",1,[]],["👩🏿🦽","woman in manual wheelchair: dark skin tone",1,[]],["👩🦽➡️","woman in manual wheelchair facing right",1,[]],["👩🏻🦽➡️","woman in manual wheelchair facing right: light skin tone",1,[]],["👩🏼🦽➡️","woman in manual wheelchair facing right: medium-light skin tone",1,[]],["👩🏽🦽➡️","woman in manual wheelchair facing right: medium skin tone",1,[]],["👩🏾🦽➡️","woman in manual wheelchair facing right: medium-dark skin tone",1,[]],["👩🏿🦽➡️","woman in manual wheelchair facing right: dark skin tone",1,[]],["🏃","person running",1,["fast","hurry","marathon","move","person","quick","race","racing","run","rush","speed"]],["🏃🏻","person running: light skin tone",1,[]],["🏃🏼","person running: medium-light skin tone",1,[]],["🏃🏽","person running: medium skin tone",1,[]],["🏃🏾","person running: medium-dark skin tone",1,[]],["🏃🏿","person running: dark skin tone",1,[]],["🏃♂️","man running",1,["fast","hurry","man","marathon","move","quick","race","racing","run","rush","speed"]],["🏃🏻♂️","man running: light skin tone",1,[]],["🏃🏼♂️","man running: medium-light skin tone",1,[]],["🏃🏽♂️","man running: medium skin tone",1,[]],["🏃🏾♂️","man running: medium-dark skin tone",1,[]],["🏃🏿♂️","man running: dark skin tone",1,[]],["🏃♀️","woman running",1,["fast","hurry","marathon","move","quick","race","racing","run","rush","speed","woman"]],["🏃🏻♀️","woman running: light skin tone",1,[]],["🏃🏼♀️","woman running: medium-light skin tone",1,[]],["🏃🏽♀️","woman running: medium skin tone",1,[]],["🏃🏾♀️","woman running: medium-dark skin tone",1,[]],["🏃🏿♀️","woman running: dark skin tone",1,[]],["🏃➡️","person running facing right",1,[]],["🏃🏻➡️","person running facing right: light skin tone",1,[]],["🏃🏼➡️","person running facing right: medium-light skin tone",1,[]],["🏃🏽➡️","person running facing right: medium skin tone",1,[]],["🏃🏾➡️","person running facing right: medium-dark skin tone",1,[]],["🏃🏿➡️","person running facing right: dark skin tone",1,[]],["🏃♀️➡️","woman running facing right",1,[]],["🏃🏻♀️➡️","woman running facing right: light skin tone",1,[]],["🏃🏼♀️➡️","woman running facing right: medium-light skin tone",1,[]],["🏃🏽♀️➡️","woman running facing right: medium skin tone",1,[]],["🏃🏾♀️➡️","woman running facing right: medium-dark skin tone",1,[]],["🏃🏿♀️➡️","woman running facing right: dark skin tone",1,[]],["🏃♂️➡️","man running facing right",1,[]],["🏃🏻♂️➡️","man running facing right: light skin tone",1,[]],["🏃🏼♂️➡️","man running facing right: medium-light skin tone",1,[]],["🏃🏽♂️➡️","man running facing right: medium skin tone",1,[]],["🏃🏾♂️➡️","man running facing right: medium-dark skin tone",1,[]],["🏃🏿♂️➡️","man running facing right: dark skin tone",1,[]],["🧑🩰","ballet dancer",1,["ballet","dancer"]],["🧑🏻🩰","ballet dancer: light skin tone",1,[]],["🧑🏼🩰","ballet dancer: medium-light skin tone",1,[]],["🧑🏽🩰","ballet dancer: medium skin tone",1,[]],["🧑🏾🩰","ballet dancer: medium-dark skin tone",1,[]],["🧑🏿🩰","ballet dancer: dark skin tone",1,[]],["💃","woman dancing",1,["dance","dancer","dancing","elegant","festive","flair","flamenco","groove","let’s","salsa","tango","woman"]],["💃🏻","woman dancing: light skin tone",1,[]],["💃🏼","woman dancing: medium-light skin tone",1,[]],["💃🏽","woman dancing: medium skin tone",1,[]],["💃🏾","woman dancing: medium-dark skin tone",1,[]],["💃🏿","woman dancing: dark skin tone",1,[]],["🕺","man dancing",1,["dance","dancer","dancing","elegant","festive","flair","flamenco","groove","let’s","man","salsa","tango"]],["🕺🏻","man dancing: light skin tone",1,[]],["🕺🏼","man dancing: medium-light skin tone",1,[]],["🕺🏽","man dancing: medium skin tone",1,[]],["🕺🏾","man dancing: medium-dark skin tone",1,[]],["🕺🏿","man dancing: dark skin tone",1,[]],["🕴️","person in suit levitating",1,["business","levitating","person","suit"]],["🕴🏻","person in suit levitating: light skin tone",1,[]],["🕴🏼","person in suit levitating: medium-light skin tone",1,[]],["🕴🏽","person in suit levitating: medium skin tone",1,[]],["🕴🏾","person in suit levitating: medium-dark skin tone",1,[]],["🕴🏿","person in suit levitating: dark skin tone",1,[]],["👯","people with bunny ears",1,["bestie","bff","bunny","counterpart","dancer","double","ear","identical","pair","party","partying","people","soulmate","twin","twinsies"]],["👯🏻","people with bunny ears: light skin tone",1,[]],["👯🏼","people with bunny ears: medium-light skin tone",1,[]],["👯🏽","people with bunny ears: medium skin tone",1,[]],["👯🏾","people with bunny ears: medium-dark skin tone",1,[]],["👯🏿","people with bunny ears: dark skin tone",1,[]],["👯♂️","men with bunny ears",1,["bestie","bff","bunny","counterpart","dancer","double","ear","identical","men","pair","party","partying","people","soulmate","twin","twinsies"]],["👯🏻♂️","men with bunny ears: light skin tone",1,[]],["👯🏼♂️","men with bunny ears: medium-light skin tone",1,[]],["👯🏽♂️","men with bunny ears: medium skin tone",1,[]],["👯🏾♂️","men with bunny ears: medium-dark skin tone",1,[]],["👯🏿♂️","men with bunny ears: dark skin tone",1,[]],["👯♀️","women with bunny ears",1,["bestie","bff","bunny","counterpart","dancer","double","ear","identical","pair","party","partying","people","soulmate","twin","twinsies","women"]],["👯🏻♀️","women with bunny ears: light skin tone",1,[]],["👯🏼♀️","women with bunny ears: medium-light skin tone",1,[]],["👯🏽♀️","women with bunny ears: medium skin tone",1,[]],["👯🏾♀️","women with bunny ears: medium-dark skin tone",1,[]],["👯🏿♀️","women with bunny ears: dark skin tone",1,[]],["🧑🏻🐰🧑🏼","people with bunny ears: light skin tone, medium-light skin tone",1,[]],["🧑🏻🐰🧑🏽","people with bunny ears: light skin tone, medium skin tone",1,[]],["🧑🏻🐰🧑🏾","people with bunny ears: light skin tone, medium-dark skin tone",1,[]],["🧑🏻🐰🧑🏿","people with bunny ears: light skin tone, dark skin tone",1,[]],["🧑🏼🐰🧑🏻","people with bunny ears: medium-light skin tone, light skin tone",1,[]],["🧑🏼🐰🧑🏽","people with bunny ears: medium-light skin tone, medium skin tone",1,[]],["🧑🏼🐰🧑🏾","people with bunny ears: medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼🐰🧑🏿","people with bunny ears: medium-light skin tone, dark skin tone",1,[]],["🧑🏽🐰🧑🏻","people with bunny ears: medium skin tone, light skin tone",1,[]],["🧑🏽🐰🧑🏼","people with bunny ears: medium skin tone, medium-light skin tone",1,[]],["🧑🏽🐰🧑🏾","people with bunny ears: medium skin tone, medium-dark skin tone",1,[]],["🧑🏽🐰🧑🏿","people with bunny ears: medium skin tone, dark skin tone",1,[]],["🧑🏾🐰🧑🏻","people with bunny ears: medium-dark skin tone, light skin tone",1,[]],["🧑🏾🐰🧑🏼","people with bunny ears: medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾🐰🧑🏽","people with bunny ears: medium-dark skin tone, medium skin tone",1,[]],["🧑🏾🐰🧑🏿","people with bunny ears: medium-dark skin tone, dark skin tone",1,[]],["🧑🏿🐰🧑🏻","people with bunny ears: dark skin tone, light skin tone",1,[]],["🧑🏿🐰🧑🏼","people with bunny ears: dark skin tone, medium-light skin tone",1,[]],["🧑🏿🐰🧑🏽","people with bunny ears: dark skin tone, medium skin tone",1,[]],["🧑🏿🐰🧑🏾","people with bunny ears: dark skin tone, medium-dark skin tone",1,[]],["👨🏻🐰👨🏼","men with bunny ears: light skin tone, medium-light skin tone",1,[]],["👨🏻🐰👨🏽","men with bunny ears: light skin tone, medium skin tone",1,[]],["👨🏻🐰👨🏾","men with bunny ears: light skin tone, medium-dark skin tone",1,[]],["👨🏻🐰👨🏿","men with bunny ears: light skin tone, dark skin tone",1,[]],["👨🏼🐰👨🏻","men with bunny ears: medium-light skin tone, light skin tone",1,[]],["👨🏼🐰👨🏽","men with bunny ears: medium-light skin tone, medium skin tone",1,[]],["👨🏼🐰👨🏾","men with bunny ears: medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼🐰👨🏿","men with bunny ears: medium-light skin tone, dark skin tone",1,[]],["👨🏽🐰👨🏻","men with bunny ears: medium skin tone, light skin tone",1,[]],["👨🏽🐰👨🏼","men with bunny ears: medium skin tone, medium-light skin tone",1,[]],["👨🏽🐰👨🏾","men with bunny ears: medium skin tone, medium-dark skin tone",1,[]],["👨🏽🐰👨🏿","men with bunny ears: medium skin tone, dark skin tone",1,[]],["👨🏾🐰👨🏻","men with bunny ears: medium-dark skin tone, light skin tone",1,[]],["👨🏾🐰👨🏼","men with bunny ears: medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾🐰👨🏽","men with bunny ears: medium-dark skin tone, medium skin tone",1,[]],["👨🏾🐰👨🏿","men with bunny ears: medium-dark skin tone, dark skin tone",1,[]],["👨🏿🐰👨🏻","men with bunny ears: dark skin tone, light skin tone",1,[]],["👨🏿🐰👨🏼","men with bunny ears: dark skin tone, medium-light skin tone",1,[]],["👨🏿🐰👨🏽","men with bunny ears: dark skin tone, medium skin tone",1,[]],["👨🏿🐰👨🏾","men with bunny ears: dark skin tone, medium-dark skin tone",1,[]],["👩🏻🐰👩🏼","women with bunny ears: light skin tone, medium-light skin tone",1,[]],["👩🏻🐰👩🏽","women with bunny ears: light skin tone, medium skin tone",1,[]],["👩🏻🐰👩🏾","women with bunny ears: light skin tone, medium-dark skin tone",1,[]],["👩🏻🐰👩🏿","women with bunny ears: light skin tone, dark skin tone",1,[]],["👩🏼🐰👩🏻","women with bunny ears: medium-light skin tone, light skin tone",1,[]],["👩🏼🐰👩🏽","women with bunny ears: medium-light skin tone, medium skin tone",1,[]],["👩🏼🐰👩🏾","women with bunny ears: medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼🐰👩🏿","women with bunny ears: medium-light skin tone, dark skin tone",1,[]],["👩🏽🐰👩🏻","women with bunny ears: medium skin tone, light skin tone",1,[]],["👩🏽🐰👩🏼","women with bunny ears: medium skin tone, medium-light skin tone",1,[]],["👩🏽🐰👩🏾","women with bunny ears: medium skin tone, medium-dark skin tone",1,[]],["👩🏽🐰👩🏿","women with bunny ears: medium skin tone, dark skin tone",1,[]],["👩🏾🐰👩🏻","women with bunny ears: medium-dark skin tone, light skin tone",1,[]],["👩🏾🐰👩🏼","women with bunny ears: medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾🐰👩🏽","women with bunny ears: medium-dark skin tone, medium skin tone",1,[]],["👩🏾🐰👩🏿","women with bunny ears: medium-dark skin tone, dark skin tone",1,[]],["👩🏿🐰👩🏻","women with bunny ears: dark skin tone, light skin tone",1,[]],["👩🏿🐰👩🏼","women with bunny ears: dark skin tone, medium-light skin tone",1,[]],["👩🏿🐰👩🏽","women with bunny ears: dark skin tone, medium skin tone",1,[]],["👩🏿🐰👩🏾","women with bunny ears: dark skin tone, medium-dark skin tone",1,[]],["🧖","person in steamy room",1,["day","luxurious","pamper","person","relax","room","sauna","spa","steam","steambath","unwind"]],["🧖🏻","person in steamy room: light skin tone",1,[]],["🧖🏼","person in steamy room: medium-light skin tone",1,[]],["🧖🏽","person in steamy room: medium skin tone",1,[]],["🧖🏾","person in steamy room: medium-dark skin tone",1,[]],["🧖🏿","person in steamy room: dark skin tone",1,[]],["🧖♂️","man in steamy room",1,["day","luxurious","man","pamper","relax","room","sauna","spa","steam","steambath","unwind"]],["🧖🏻♂️","man in steamy room: light skin tone",1,[]],["🧖🏼♂️","man in steamy room: medium-light skin tone",1,[]],["🧖🏽♂️","man in steamy room: medium skin tone",1,[]],["🧖🏾♂️","man in steamy room: medium-dark skin tone",1,[]],["🧖🏿♂️","man in steamy room: dark skin tone",1,[]],["🧖♀️","woman in steamy room",1,["day","luxurious","pamper","relax","room","sauna","spa","steam","steambath","unwind","woman"]],["🧖🏻♀️","woman in steamy room: light skin tone",1,[]],["🧖🏼♀️","woman in steamy room: medium-light skin tone",1,[]],["🧖🏽♀️","woman in steamy room: medium skin tone",1,[]],["🧖🏾♀️","woman in steamy room: medium-dark skin tone",1,[]],["🧖🏿♀️","woman in steamy room: dark skin tone",1,[]],["🧗","person climbing",1,["climb","climber","climbing","mountain","person","rock","scale","up"]],["🧗🏻","person climbing: light skin tone",1,[]],["🧗🏼","person climbing: medium-light skin tone",1,[]],["🧗🏽","person climbing: medium skin tone",1,[]],["🧗🏾","person climbing: medium-dark skin tone",1,[]],["🧗🏿","person climbing: dark skin tone",1,[]],["🧗♂️","man climbing",1,["climb","climber","climbing","man","mountain","rock","scale","up"]],["🧗🏻♂️","man climbing: light skin tone",1,[]],["🧗🏼♂️","man climbing: medium-light skin tone",1,[]],["🧗🏽♂️","man climbing: medium skin tone",1,[]],["🧗🏾♂️","man climbing: medium-dark skin tone",1,[]],["🧗🏿♂️","man climbing: dark skin tone",1,[]],["🧗♀️","woman climbing",1,["climb","climber","climbing","mountain","rock","scale","up","woman"]],["🧗🏻♀️","woman climbing: light skin tone",1,[]],["🧗🏼♀️","woman climbing: medium-light skin tone",1,[]],["🧗🏽♀️","woman climbing: medium skin tone",1,[]],["🧗🏾♀️","woman climbing: medium-dark skin tone",1,[]],["🧗🏿♀️","woman climbing: dark skin tone",1,[]],["🤺","person fencing",1,["fencer","fencing","person","sword"]],["🏇","horse racing",1,["horse","jockey","racehorse","racing","riding","sport"]],["🏇🏻","horse racing: light skin tone",1,[]],["🏇🏼","horse racing: medium-light skin tone",1,[]],["🏇🏽","horse racing: medium skin tone",1,[]],["🏇🏾","horse racing: medium-dark skin tone",1,[]],["🏇🏿","horse racing: dark skin tone",1,[]],["⛷️","skier",1,["ski","skier","snow"]],["🏂","snowboarder",1,["ski","snow","snowboard","snowboarder","sport"]],["🏂🏻","snowboarder: light skin tone",1,[]],["🏂🏼","snowboarder: medium-light skin tone",1,[]],["🏂🏽","snowboarder: medium skin tone",1,[]],["🏂🏾","snowboarder: medium-dark skin tone",1,[]],["🏂🏿","snowboarder: dark skin tone",1,[]],["🏌️","person golfing",1,["ball","birdie","caddy","driving","golf","golfing","green","person","pga","putt","range","tee"]],["🏌🏻","person golfing: light skin tone",1,[]],["🏌🏼","person golfing: medium-light skin tone",1,[]],["🏌🏽","person golfing: medium skin tone",1,[]],["🏌🏾","person golfing: medium-dark skin tone",1,[]],["🏌🏿","person golfing: dark skin tone",1,[]],["🏌️♂️","man golfing",1,["ball","birdie","caddy","driving","golf","golfing","green","man","pga","putt","range","tee"]],["🏌🏻♂️","man golfing: light skin tone",1,[]],["🏌🏼♂️","man golfing: medium-light skin tone",1,[]],["🏌🏽♂️","man golfing: medium skin tone",1,[]],["🏌🏾♂️","man golfing: medium-dark skin tone",1,[]],["🏌🏿♂️","man golfing: dark skin tone",1,[]],["🏌️♀️","woman golfing",1,["ball","birdie","caddy","driving","golf","golfing","green","pga","putt","range","tee","woman"]],["🏌🏻♀️","woman golfing: light skin tone",1,[]],["🏌🏼♀️","woman golfing: medium-light skin tone",1,[]],["🏌🏽♀️","woman golfing: medium skin tone",1,[]],["🏌🏾♀️","woman golfing: medium-dark skin tone",1,[]],["🏌🏿♀️","woman golfing: dark skin tone",1,[]],["🏄","person surfing",1,["beach","ocean","person","sport","surf","surfer","surfing","swell","waves"]],["🏄🏻","person surfing: light skin tone",1,[]],["🏄🏼","person surfing: medium-light skin tone",1,[]],["🏄🏽","person surfing: medium skin tone",1,[]],["🏄🏾","person surfing: medium-dark skin tone",1,[]],["🏄🏿","person surfing: dark skin tone",1,[]],["🏄♂️","man surfing",1,["beach","man","ocean","sport","surf","surfer","surfing","swell","waves"]],["🏄🏻♂️","man surfing: light skin tone",1,[]],["🏄🏼♂️","man surfing: medium-light skin tone",1,[]],["🏄🏽♂️","man surfing: medium skin tone",1,[]],["🏄🏾♂️","man surfing: medium-dark skin tone",1,[]],["🏄🏿♂️","man surfing: dark skin tone",1,[]],["🏄♀️","woman surfing",1,["beach","ocean","person","sport","surf","surfer","surfing","swell","waves"]],["🏄🏻♀️","woman surfing: light skin tone",1,[]],["🏄🏼♀️","woman surfing: medium-light skin tone",1,[]],["🏄🏽♀️","woman surfing: medium skin tone",1,[]],["🏄🏾♀️","woman surfing: medium-dark skin tone",1,[]],["🏄🏿♀️","woman surfing: dark skin tone",1,[]],["🚣","person rowing boat",1,["boat","canoe","cruise","fishing","lake","oar","paddle","person","raft","river","row","rowboat","rowing"]],["🚣🏻","person rowing boat: light skin tone",1,[]],["🚣🏼","person rowing boat: medium-light skin tone",1,[]],["🚣🏽","person rowing boat: medium skin tone",1,[]],["🚣🏾","person rowing boat: medium-dark skin tone",1,[]],["🚣🏿","person rowing boat: dark skin tone",1,[]],["🚣♂️","man rowing boat",1,["boat","canoe","cruise","fishing","lake","man","oar","paddle","raft","river","row","rowboat","rowing"]],["🚣🏻♂️","man rowing boat: light skin tone",1,[]],["🚣🏼♂️","man rowing boat: medium-light skin tone",1,[]],["🚣🏽♂️","man rowing boat: medium skin tone",1,[]],["🚣🏾♂️","man rowing boat: medium-dark skin tone",1,[]],["🚣🏿♂️","man rowing boat: dark skin tone",1,[]],["🚣♀️","woman rowing boat",1,["boat","canoe","cruise","fishing","lake","oar","paddle","raft","river","row","rowboat","rowing","woman"]],["🚣🏻♀️","woman rowing boat: light skin tone",1,[]],["🚣🏼♀️","woman rowing boat: medium-light skin tone",1,[]],["🚣🏽♀️","woman rowing boat: medium skin tone",1,[]],["🚣🏾♀️","woman rowing boat: medium-dark skin tone",1,[]],["🚣🏿♀️","woman rowing boat: dark skin tone",1,[]],["🏊","person swimming",1,["freestyle","person","sport","swim","swimmer","swimming","triathlon"]],["🏊🏻","person swimming: light skin tone",1,[]],["🏊🏼","person swimming: medium-light skin tone",1,[]],["🏊🏽","person swimming: medium skin tone",1,[]],["🏊🏾","person swimming: medium-dark skin tone",1,[]],["🏊🏿","person swimming: dark skin tone",1,[]],["🏊♂️","man swimming",1,["freestyle","man","sport","swim","swimmer","swimming","triathlon"]],["🏊🏻♂️","man swimming: light skin tone",1,[]],["🏊🏼♂️","man swimming: medium-light skin tone",1,[]],["🏊🏽♂️","man swimming: medium skin tone",1,[]],["🏊🏾♂️","man swimming: medium-dark skin tone",1,[]],["🏊🏿♂️","man swimming: dark skin tone",1,[]],["🏊♀️","woman swimming",1,["freestyle","man","sport","swim","swimmer","swimming","triathlon"]],["🏊🏻♀️","woman swimming: light skin tone",1,[]],["🏊🏼♀️","woman swimming: medium-light skin tone",1,[]],["🏊🏽♀️","woman swimming: medium skin tone",1,[]],["🏊🏾♀️","woman swimming: medium-dark skin tone",1,[]],["🏊🏿♀️","woman swimming: dark skin tone",1,[]],["⛹️","person bouncing ball",1,["athletic","ball","basketball","bouncing","championship","dribble","net","person","player","throw"]],["⛹🏻","person bouncing ball: light skin tone",1,[]],["⛹🏼","person bouncing ball: medium-light skin tone",1,[]],["⛹🏽","person bouncing ball: medium skin tone",1,[]],["⛹🏾","person bouncing ball: medium-dark skin tone",1,[]],["⛹🏿","person bouncing ball: dark skin tone",1,[]],["⛹️♂️","man bouncing ball",1,["athletic","ball","basketball","bouncing","championship","dribble","man","net","player","throw"]],["⛹🏻♂️","man bouncing ball: light skin tone",1,[]],["⛹🏼♂️","man bouncing ball: medium-light skin tone",1,[]],["⛹🏽♂️","man bouncing ball: medium skin tone",1,[]],["⛹🏾♂️","man bouncing ball: medium-dark skin tone",1,[]],["⛹🏿♂️","man bouncing ball: dark skin tone",1,[]],["⛹️♀️","woman bouncing ball",1,["athletic","ball","basketball","bouncing","championship","dribble","net","player","throw","woman"]],["⛹🏻♀️","woman bouncing ball: light skin tone",1,[]],["⛹🏼♀️","woman bouncing ball: medium-light skin tone",1,[]],["⛹🏽♀️","woman bouncing ball: medium skin tone",1,[]],["⛹🏾♀️","woman bouncing ball: medium-dark skin tone",1,[]],["⛹🏿♀️","woman bouncing ball: dark skin tone",1,[]],["🏋️","person lifting weights",1,["barbell","bodybuilder","deadlift","lifter","lifting","person","powerlifting","weight","weightlifter","weights","workout"]],["🏋🏻","person lifting weights: light skin tone",1,[]],["🏋🏼","person lifting weights: medium-light skin tone",1,[]],["🏋🏽","person lifting weights: medium skin tone",1,[]],["🏋🏾","person lifting weights: medium-dark skin tone",1,[]],["🏋🏿","person lifting weights: dark skin tone",1,[]],["🏋️♂️","man lifting weights",1,["barbell","bodybuilder","deadlift","lifter","lifting","man","powerlifting","weight","weightlifter","weights","workout"]],["🏋🏻♂️","man lifting weights: light skin tone",1,[]],["🏋🏼♂️","man lifting weights: medium-light skin tone",1,[]],["🏋🏽♂️","man lifting weights: medium skin tone",1,[]],["🏋🏾♂️","man lifting weights: medium-dark skin tone",1,[]],["🏋🏿♂️","man lifting weights: dark skin tone",1,[]],["🏋️♀️","woman lifting weights",1,["barbell","bodybuilder","deadlift","lifter","lifting","powerlifting","weight","weightlifter","weights","woman","workout"]],["🏋🏻♀️","woman lifting weights: light skin tone",1,[]],["🏋🏼♀️","woman lifting weights: medium-light skin tone",1,[]],["🏋🏽♀️","woman lifting weights: medium skin tone",1,[]],["🏋🏾♀️","woman lifting weights: medium-dark skin tone",1,[]],["🏋🏿♀️","woman lifting weights: dark skin tone",1,[]],["🚴","person biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","person","riding","sport"]],["🚴🏻","person biking: light skin tone",1,[]],["🚴🏼","person biking: medium-light skin tone",1,[]],["🚴🏽","person biking: medium skin tone",1,[]],["🚴🏾","person biking: medium-dark skin tone",1,[]],["🚴🏿","person biking: dark skin tone",1,[]],["🚴♂️","man biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","man","riding","sport"]],["🚴🏻♂️","man biking: light skin tone",1,[]],["🚴🏼♂️","man biking: medium-light skin tone",1,[]],["🚴🏽♂️","man biking: medium skin tone",1,[]],["🚴🏾♂️","man biking: medium-dark skin tone",1,[]],["🚴🏿♂️","man biking: dark skin tone",1,[]],["🚴♀️","woman biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","riding","sport","woman"]],["🚴🏻♀️","woman biking: light skin tone",1,[]],["🚴🏼♀️","woman biking: medium-light skin tone",1,[]],["🚴🏽♀️","woman biking: medium skin tone",1,[]],["🚴🏾♀️","woman biking: medium-dark skin tone",1,[]],["🚴🏿♀️","woman biking: dark skin tone",1,[]],["🚵","person mountain biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","mountain","person","riding","sport"]],["🚵🏻","person mountain biking: light skin tone",1,[]],["🚵🏼","person mountain biking: medium-light skin tone",1,[]],["🚵🏽","person mountain biking: medium skin tone",1,[]],["🚵🏾","person mountain biking: medium-dark skin tone",1,[]],["🚵🏿","person mountain biking: dark skin tone",1,[]],["🚵♂️","man mountain biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","man","mountain","riding","sport"]],["🚵🏻♂️","man mountain biking: light skin tone",1,[]],["🚵🏼♂️","man mountain biking: medium-light skin tone",1,[]],["🚵🏽♂️","man mountain biking: medium skin tone",1,[]],["🚵🏾♂️","man mountain biking: medium-dark skin tone",1,[]],["🚵🏿♂️","man mountain biking: dark skin tone",1,[]],["🚵♀️","woman mountain biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","mountain","riding","sport","woman"]],["🚵🏻♀️","woman mountain biking: light skin tone",1,[]],["🚵🏼♀️","woman mountain biking: medium-light skin tone",1,[]],["🚵🏽♀️","woman mountain biking: medium skin tone",1,[]],["🚵🏾♀️","woman mountain biking: medium-dark skin tone",1,[]],["🚵🏿♀️","woman mountain biking: dark skin tone",1,[]],["🤸","person cartwheeling",1,["active","cartwheel","cartwheeling","excited","flip","gymnastics","happy","person","somersault"]],["🤸🏻","person cartwheeling: light skin tone",1,[]],["🤸🏼","person cartwheeling: medium-light skin tone",1,[]],["🤸🏽","person cartwheeling: medium skin tone",1,[]],["🤸🏾","person cartwheeling: medium-dark skin tone",1,[]],["🤸🏿","person cartwheeling: dark skin tone",1,[]],["🤸♂️","man cartwheeling",1,["active","cartwheel","cartwheeling","excited","flip","gymnastics","happy","man","somersault"]],["🤸🏻♂️","man cartwheeling: light skin tone",1,[]],["🤸🏼♂️","man cartwheeling: medium-light skin tone",1,[]],["🤸🏽♂️","man cartwheeling: medium skin tone",1,[]],["🤸🏾♂️","man cartwheeling: medium-dark skin tone",1,[]],["🤸🏿♂️","man cartwheeling: dark skin tone",1,[]],["🤸♀️","woman cartwheeling",1,["active","cartwheel","cartwheeling","excited","flip","gymnastics","happy","somersault","woman"]],["🤸🏻♀️","woman cartwheeling: light skin tone",1,[]],["🤸🏼♀️","woman cartwheeling: medium-light skin tone",1,[]],["🤸🏽♀️","woman cartwheeling: medium skin tone",1,[]],["🤸🏾♀️","woman cartwheeling: medium-dark skin tone",1,[]],["🤸🏿♀️","woman cartwheeling: dark skin tone",1,[]],["🤼","people wrestling",1,["combat","duel","grapple","people","ring","tournament","wrestle","wrestling"]],["🤼🏻","people wrestling: light skin tone",1,[]],["🤼🏼","people wrestling: medium-light skin tone",1,[]],["🤼🏽","people wrestling: medium skin tone",1,[]],["🤼🏾","people wrestling: medium-dark skin tone",1,[]],["🤼🏿","people wrestling: dark skin tone",1,[]],["🤼♂️","men wrestling",1,["combat","duel","grapple","men","ring","tournament","wrestle","wrestling"]],["🤼🏻♂️","men wrestling: light skin tone",1,[]],["🤼🏼♂️","men wrestling: medium-light skin tone",1,[]],["🤼🏽♂️","men wrestling: medium skin tone",1,[]],["🤼🏾♂️","men wrestling: medium-dark skin tone",1,[]],["🤼🏿♂️","men wrestling: dark skin tone",1,[]],["🤼♀️","women wrestling",1,["combat","duel","grapple","ring","tournament","women","wrestle","wrestling"]],["🤼🏻♀️","women wrestling: light skin tone",1,[]],["🤼🏼♀️","women wrestling: medium-light skin tone",1,[]],["🤼🏽♀️","women wrestling: medium skin tone",1,[]],["🤼🏾♀️","women wrestling: medium-dark skin tone",1,[]],["🤼🏿♀️","women wrestling: dark skin tone",1,[]],["🧑🏻🧑🏼","people wrestling: light skin tone, medium-light skin tone",1,[]],["🧑🏻🧑🏽","people wrestling: light skin tone, medium skin tone",1,[]],["🧑🏻🧑🏾","people wrestling: light skin tone, medium-dark skin tone",1,[]],["🧑🏻🧑🏿","people wrestling: light skin tone, dark skin tone",1,[]],["🧑🏼🧑🏻","people wrestling: medium-light skin tone, light skin tone",1,[]],["🧑🏼🧑🏽","people wrestling: medium-light skin tone, medium skin tone",1,[]],["🧑🏼🧑🏾","people wrestling: medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼🧑🏿","people wrestling: medium-light skin tone, dark skin tone",1,[]],["🧑🏽🧑🏻","people wrestling: medium skin tone, light skin tone",1,[]],["🧑🏽🧑🏼","people wrestling: medium skin tone, medium-light skin tone",1,[]],["🧑🏽🧑🏾","people wrestling: medium skin tone, medium-dark skin tone",1,[]],["🧑🏽🧑🏿","people wrestling: medium skin tone, dark skin tone",1,[]],["🧑🏾🧑🏻","people wrestling: medium-dark skin tone, light skin tone",1,[]],["🧑🏾🧑🏼","people wrestling: medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾🧑🏽","people wrestling: medium-dark skin tone, medium skin tone",1,[]],["🧑🏾🧑🏿","people wrestling: medium-dark skin tone, dark skin tone",1,[]],["🧑🏿🧑🏻","people wrestling: dark skin tone, light skin tone",1,[]],["🧑🏿🧑🏼","people wrestling: dark skin tone, medium-light skin tone",1,[]],["🧑🏿🧑🏽","people wrestling: dark skin tone, medium skin tone",1,[]],["🧑🏿🧑🏾","people wrestling: dark skin tone, medium-dark skin tone",1,[]],["👨🏻👨🏼","men wrestling: light skin tone, medium-light skin tone",1,[]],["👨🏻👨🏽","men wrestling: light skin tone, medium skin tone",1,[]],["👨🏻👨🏾","men wrestling: light skin tone, medium-dark skin tone",1,[]],["👨🏻👨🏿","men wrestling: light skin tone, dark skin tone",1,[]],["👨🏼👨🏻","men wrestling: medium-light skin tone, light skin tone",1,[]],["👨🏼👨🏽","men wrestling: medium-light skin tone, medium skin tone",1,[]],["👨🏼👨🏾","men wrestling: medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼👨🏿","men wrestling: medium-light skin tone, dark skin tone",1,[]],["👨🏽👨🏻","men wrestling: medium skin tone, light skin tone",1,[]],["👨🏽👨🏼","men wrestling: medium skin tone, medium-light skin tone",1,[]],["👨🏽👨🏾","men wrestling: medium skin tone, medium-dark skin tone",1,[]],["👨🏽👨🏿","men wrestling: medium skin tone, dark skin tone",1,[]],["👨🏾👨🏻","men wrestling: medium-dark skin tone, light skin tone",1,[]],["👨🏾👨🏼","men wrestling: medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾👨🏽","men wrestling: medium-dark skin tone, medium skin tone",1,[]],["👨🏾👨🏿","men wrestling: medium-dark skin tone, dark skin tone",1,[]],["👨🏿👨🏻","men wrestling: dark skin tone, light skin tone",1,[]],["👨🏿👨🏼","men wrestling: dark skin tone, medium-light skin tone",1,[]],["👨🏿👨🏽","men wrestling: dark skin tone, medium skin tone",1,[]],["👨🏿👨🏾","men wrestling: dark skin tone, medium-dark skin tone",1,[]],["👩🏻👩🏼","women wrestling: light skin tone, medium-light skin tone",1,[]],["👩🏻👩🏽","women wrestling: light skin tone, medium skin tone",1,[]],["👩🏻👩🏾","women wrestling: light skin tone, medium-dark skin tone",1,[]],["👩🏻👩🏿","women wrestling: light skin tone, dark skin tone",1,[]],["👩🏼👩🏻","women wrestling: medium-light skin tone, light skin tone",1,[]],["👩🏼👩🏽","women wrestling: medium-light skin tone, medium skin tone",1,[]],["👩🏼👩🏾","women wrestling: medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼👩🏿","women wrestling: medium-light skin tone, dark skin tone",1,[]],["👩🏽👩🏻","women wrestling: medium skin tone, light skin tone",1,[]],["👩🏽👩🏼","women wrestling: medium skin tone, medium-light skin tone",1,[]],["👩🏽👩🏾","women wrestling: medium skin tone, medium-dark skin tone",1,[]],["👩🏽👩🏿","women wrestling: medium skin tone, dark skin tone",1,[]],["👩🏾👩🏻","women wrestling: medium-dark skin tone, light skin tone",1,[]],["👩🏾👩🏼","women wrestling: medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾👩🏽","women wrestling: medium-dark skin tone, medium skin tone",1,[]],["👩🏾👩🏿","women wrestling: medium-dark skin tone, dark skin tone",1,[]],["👩🏿👩🏻","women wrestling: dark skin tone, light skin tone",1,[]],["👩🏿👩🏼","women wrestling: dark skin tone, medium-light skin tone",1,[]],["👩🏿👩🏽","women wrestling: dark skin tone, medium skin tone",1,[]],["👩🏿👩🏾","women wrestling: dark skin tone, medium-dark skin tone",1,[]],["🤽","person playing water polo",1,["person","playing","polo","sport","swimming","water","waterpolo"]],["🤽🏻","person playing water polo: light skin tone",1,[]],["🤽🏼","person playing water polo: medium-light skin tone",1,[]],["🤽🏽","person playing water polo: medium skin tone",1,[]],["🤽🏾","person playing water polo: medium-dark skin tone",1,[]],["🤽🏿","person playing water polo: dark skin tone",1,[]],["🤽♂️","man playing water polo",1,["man","playing","polo","sport","swimming","water","waterpolo"]],["🤽🏻♂️","man playing water polo: light skin tone",1,[]],["🤽🏼♂️","man playing water polo: medium-light skin tone",1,[]],["🤽🏽♂️","man playing water polo: medium skin tone",1,[]],["🤽🏾♂️","man playing water polo: medium-dark skin tone",1,[]],["🤽🏿♂️","man playing water polo: dark skin tone",1,[]],["🤽♀️","woman playing water polo",1,["playing","polo","sport","swimming","water","waterpolo","woman"]],["🤽🏻♀️","woman playing water polo: light skin tone",1,[]],["🤽🏼♀️","woman playing water polo: medium-light skin tone",1,[]],["🤽🏽♀️","woman playing water polo: medium skin tone",1,[]],["🤽🏾♀️","woman playing water polo: medium-dark skin tone",1,[]],["🤽🏿♀️","woman playing water polo: dark skin tone",1,[]],["🤾","person playing handball",1,["athletics","ball","catch","chuck","handball","hurl","lob","person","pitch","playing","sport","throw","toss"]],["🤾🏻","person playing handball: light skin tone",1,[]],["🤾🏼","person playing handball: medium-light skin tone",1,[]],["🤾🏽","person playing handball: medium skin tone",1,[]],["🤾🏾","person playing handball: medium-dark skin tone",1,[]],["🤾🏿","person playing handball: dark skin tone",1,[]],["🤾♂️","man playing handball",1,["athletics","ball","catch","chuck","handball","hurl","lob","man","pitch","playing","sport","throw","toss"]],["🤾🏻♂️","man playing handball: light skin tone",1,[]],["🤾🏼♂️","man playing handball: medium-light skin tone",1,[]],["🤾🏽♂️","man playing handball: medium skin tone",1,[]],["🤾🏾♂️","man playing handball: medium-dark skin tone",1,[]],["🤾🏿♂️","man playing handball: dark skin tone",1,[]],["🤾♀️","woman playing handball",1,["athletics","ball","catch","chuck","handball","hurl","lob","pitch","playing","sport","throw","toss","woman"]],["🤾🏻♀️","woman playing handball: light skin tone",1,[]],["🤾🏼♀️","woman playing handball: medium-light skin tone",1,[]],["🤾🏽♀️","woman playing handball: medium skin tone",1,[]],["🤾🏾♀️","woman playing handball: medium-dark skin tone",1,[]],["🤾🏿♀️","woman playing handball: dark skin tone",1,[]],["🤹","person juggling",1,["act","balance","balancing","handle","juggle","juggling","manage","multitask","person","skill"]],["🤹🏻","person juggling: light skin tone",1,[]],["🤹🏼","person juggling: medium-light skin tone",1,[]],["🤹🏽","person juggling: medium skin tone",1,[]],["🤹🏾","person juggling: medium-dark skin tone",1,[]],["🤹🏿","person juggling: dark skin tone",1,[]],["🤹♂️","man juggling",1,["act","balance","balancing","handle","juggle","juggling","man","manage","multitask","skill"]],["🤹🏻♂️","man juggling: light skin tone",1,[]],["🤹🏼♂️","man juggling: medium-light skin tone",1,[]],["🤹🏽♂️","man juggling: medium skin tone",1,[]],["🤹🏾♂️","man juggling: medium-dark skin tone",1,[]],["🤹🏿♂️","man juggling: dark skin tone",1,[]],["🤹♀️","woman juggling",1,["act","balance","balancing","handle","juggle","juggling","manage","multitask","skill","woman"]],["🤹🏻♀️","woman juggling: light skin tone",1,[]],["🤹🏼♀️","woman juggling: medium-light skin tone",1,[]],["🤹🏽♀️","woman juggling: medium skin tone",1,[]],["🤹🏾♀️","woman juggling: medium-dark skin tone",1,[]],["🤹🏿♀️","woman juggling: dark skin tone",1,[]],["🧘","person in lotus position",1,["cross","legged","legs","lotus","meditation","peace","person","position","relax","serenity","yoga","yogi","zen"]],["🧘🏻","person in lotus position: light skin tone",1,[]],["🧘🏼","person in lotus position: medium-light skin tone",1,[]],["🧘🏽","person in lotus position: medium skin tone",1,[]],["🧘🏾","person in lotus position: medium-dark skin tone",1,[]],["🧘🏿","person in lotus position: dark skin tone",1,[]],["🧘♂️","man in lotus position",1,["cross","legged","legs","lotus","man","meditation","peace","position","relax","serenity","yoga","yogi","zen"]],["🧘🏻♂️","man in lotus position: light skin tone",1,[]],["🧘🏼♂️","man in lotus position: medium-light skin tone",1,[]],["🧘🏽♂️","man in lotus position: medium skin tone",1,[]],["🧘🏾♂️","man in lotus position: medium-dark skin tone",1,[]],["🧘🏿♂️","man in lotus position: dark skin tone",1,[]],["🧘♀️","woman in lotus position",1,["cross","legged","legs","lotus","meditation","peace","position","relax","serenity","woman","yoga","yogi","zen"]],["🧘🏻♀️","woman in lotus position: light skin tone",1,[]],["🧘🏼♀️","woman in lotus position: medium-light skin tone",1,[]],["🧘🏽♀️","woman in lotus position: medium skin tone",1,[]],["🧘🏾♀️","woman in lotus position: medium-dark skin tone",1,[]],["🧘🏿♀️","woman in lotus position: dark skin tone",1,[]],["🛀","person taking bath",1,["bath","bathtub","person","taking","tub"]],["🛀🏻","person taking bath: light skin tone",1,[]],["🛀🏼","person taking bath: medium-light skin tone",1,[]],["🛀🏽","person taking bath: medium skin tone",1,[]],["🛀🏾","person taking bath: medium-dark skin tone",1,[]],["🛀🏿","person taking bath: dark skin tone",1,[]],["🛌","person in bed",1,["bed","bedtime","good","goodnight","hotel","nap","night","person","sleep","tired","zzz"]],["🛌🏻","person in bed: light skin tone",1,[]],["🛌🏼","person in bed: medium-light skin tone",1,[]],["🛌🏽","person in bed: medium skin tone",1,[]],["🛌🏾","person in bed: medium-dark skin tone",1,[]],["🛌🏿","person in bed: dark skin tone",1,[]],["🧑🤝🧑","people holding hands",1,["bae","bestie","bff","couple","dating","flirt","friends","hand","hold","people","twins"]],["🧑🏻🤝🧑🏻","people holding hands: light skin tone",1,[]],["🧑🏻🤝🧑🏼","people holding hands: light skin tone, medium-light skin tone",1,[]],["🧑🏻🤝🧑🏽","people holding hands: light skin tone, medium skin tone",1,[]],["🧑🏻🤝🧑🏾","people holding hands: light skin tone, medium-dark skin tone",1,[]],["🧑🏻🤝🧑🏿","people holding hands: light skin tone, dark skin tone",1,[]],["🧑🏼🤝🧑🏻","people holding hands: medium-light skin tone, light skin tone",1,[]],["🧑🏼🤝🧑🏼","people holding hands: medium-light skin tone",1,[]],["🧑🏼🤝🧑🏽","people holding hands: medium-light skin tone, medium skin tone",1,[]],["🧑🏼🤝🧑🏾","people holding hands: medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼🤝🧑🏿","people holding hands: medium-light skin tone, dark skin tone",1,[]],["🧑🏽🤝🧑🏻","people holding hands: medium skin tone, light skin tone",1,[]],["🧑🏽🤝🧑🏼","people holding hands: medium skin tone, medium-light skin tone",1,[]],["🧑🏽🤝🧑🏽","people holding hands: medium skin tone",1,[]],["🧑🏽🤝🧑🏾","people holding hands: medium skin tone, medium-dark skin tone",1,[]],["🧑🏽🤝🧑🏿","people holding hands: medium skin tone, dark skin tone",1,[]],["🧑🏾🤝🧑🏻","people holding hands: medium-dark skin tone, light skin tone",1,[]],["🧑🏾🤝🧑🏼","people holding hands: medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾🤝🧑🏽","people holding hands: medium-dark skin tone, medium skin tone",1,[]],["🧑🏾🤝🧑🏾","people holding hands: medium-dark skin tone",1,[]],["🧑🏾🤝🧑🏿","people holding hands: medium-dark skin tone, dark skin tone",1,[]],["🧑🏿🤝🧑🏻","people holding hands: dark skin tone, light skin tone",1,[]],["🧑🏿🤝🧑🏼","people holding hands: dark skin tone, medium-light skin tone",1,[]],["🧑🏿🤝🧑🏽","people holding hands: dark skin tone, medium skin tone",1,[]],["🧑🏿🤝🧑🏾","people holding hands: dark skin tone, medium-dark skin tone",1,[]],["🧑🏿🤝🧑🏿","people holding hands: dark skin tone",1,[]],["👭","women holding hands",1,["bae","bestie","bff","couple","dating","flirt","friends","girls","hand","hold","sisters","twins","women"]],["👭🏻","women holding hands: light skin tone",1,[]],["👩🏻🤝👩🏼","women holding hands: light skin tone, medium-light skin tone",1,[]],["👩🏻🤝👩🏽","women holding hands: light skin tone, medium skin tone",1,[]],["👩🏻🤝👩🏾","women holding hands: light skin tone, medium-dark skin tone",1,[]],["👩🏻🤝👩🏿","women holding hands: light skin tone, dark skin tone",1,[]],["👩🏼🤝👩🏻","women holding hands: medium-light skin tone, light skin tone",1,[]],["👭🏼","women holding hands: medium-light skin tone",1,[]],["👩🏼🤝👩🏽","women holding hands: medium-light skin tone, medium skin tone",1,[]],["👩🏼🤝👩🏾","women holding hands: medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼🤝👩🏿","women holding hands: medium-light skin tone, dark skin tone",1,[]],["👩🏽🤝👩🏻","women holding hands: medium skin tone, light skin tone",1,[]],["👩🏽🤝👩🏼","women holding hands: medium skin tone, medium-light skin tone",1,[]],["👭🏽","women holding hands: medium skin tone",1,[]],["👩🏽🤝👩🏾","women holding hands: medium skin tone, medium-dark skin tone",1,[]],["👩🏽🤝👩🏿","women holding hands: medium skin tone, dark skin tone",1,[]],["👩🏾🤝👩🏻","women holding hands: medium-dark skin tone, light skin tone",1,[]],["👩🏾🤝👩🏼","women holding hands: medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾🤝👩🏽","women holding hands: medium-dark skin tone, medium skin tone",1,[]],["👭🏾","women holding hands: medium-dark skin tone",1,[]],["👩🏾🤝👩🏿","women holding hands: medium-dark skin tone, dark skin tone",1,[]],["👩🏿🤝👩🏻","women holding hands: dark skin tone, light skin tone",1,[]],["👩🏿🤝👩🏼","women holding hands: dark skin tone, medium-light skin tone",1,[]],["👩🏿🤝👩🏽","women holding hands: dark skin tone, medium skin tone",1,[]],["👩🏿🤝👩🏾","women holding hands: dark skin tone, medium-dark skin tone",1,[]],["👭🏿","women holding hands: dark skin tone",1,[]],["👫","woman and man holding hands",1,["bae","bestie","bff","couple","dating","flirt","friends","hand","hold","man","twins","woman"]],["👫🏻","woman and man holding hands: light skin tone",1,[]],["👩🏻🤝👨🏼","woman and man holding hands: light skin tone, medium-light skin tone",1,[]],["👩🏻🤝👨🏽","woman and man holding hands: light skin tone, medium skin tone",1,[]],["👩🏻🤝👨🏾","woman and man holding hands: light skin tone, medium-dark skin tone",1,[]],["👩🏻🤝👨🏿","woman and man holding hands: light skin tone, dark skin tone",1,[]],["👩🏼🤝👨🏻","woman and man holding hands: medium-light skin tone, light skin tone",1,[]],["👫🏼","woman and man holding hands: medium-light skin tone",1,[]],["👩🏼🤝👨🏽","woman and man holding hands: medium-light skin tone, medium skin tone",1,[]],["👩🏼🤝👨🏾","woman and man holding hands: medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼🤝👨🏿","woman and man holding hands: medium-light skin tone, dark skin tone",1,[]],["👩🏽🤝👨🏻","woman and man holding hands: medium skin tone, light skin tone",1,[]],["👩🏽🤝👨🏼","woman and man holding hands: medium skin tone, medium-light skin tone",1,[]],["👫🏽","woman and man holding hands: medium skin tone",1,[]],["👩🏽🤝👨🏾","woman and man holding hands: medium skin tone, medium-dark skin tone",1,[]],["👩🏽🤝👨🏿","woman and man holding hands: medium skin tone, dark skin tone",1,[]],["👩🏾🤝👨🏻","woman and man holding hands: medium-dark skin tone, light skin tone",1,[]],["👩🏾🤝👨🏼","woman and man holding hands: medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾🤝👨🏽","woman and man holding hands: medium-dark skin tone, medium skin tone",1,[]],["👫🏾","woman and man holding hands: medium-dark skin tone",1,[]],["👩🏾🤝👨🏿","woman and man holding hands: medium-dark skin tone, dark skin tone",1,[]],["👩🏿🤝👨🏻","woman and man holding hands: dark skin tone, light skin tone",1,[]],["👩🏿🤝👨🏼","woman and man holding hands: dark skin tone, medium-light skin tone",1,[]],["👩🏿🤝👨🏽","woman and man holding hands: dark skin tone, medium skin tone",1,[]],["👩🏿🤝👨🏾","woman and man holding hands: dark skin tone, medium-dark skin tone",1,[]],["👫🏿","woman and man holding hands: dark skin tone",1,[]],["👬","men holding hands",1,["bae","bestie","bff","boys","brothers","couple","dating","flirt","friends","hand","hold","men","twins"]],["👬🏻","men holding hands: light skin tone",1,[]],["👨🏻🤝👨🏼","men holding hands: light skin tone, medium-light skin tone",1,[]],["👨🏻🤝👨🏽","men holding hands: light skin tone, medium skin tone",1,[]],["👨🏻🤝👨🏾","men holding hands: light skin tone, medium-dark skin tone",1,[]],["👨🏻🤝👨🏿","men holding hands: light skin tone, dark skin tone",1,[]],["👨🏼🤝👨🏻","men holding hands: medium-light skin tone, light skin tone",1,[]],["👬🏼","men holding hands: medium-light skin tone",1,[]],["👨🏼🤝👨🏽","men holding hands: medium-light skin tone, medium skin tone",1,[]],["👨🏼🤝👨🏾","men holding hands: medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼🤝👨🏿","men holding hands: medium-light skin tone, dark skin tone",1,[]],["👨🏽🤝👨🏻","men holding hands: medium skin tone, light skin tone",1,[]],["👨🏽🤝👨🏼","men holding hands: medium skin tone, medium-light skin tone",1,[]],["👬🏽","men holding hands: medium skin tone",1,[]],["👨🏽🤝👨🏾","men holding hands: medium skin tone, medium-dark skin tone",1,[]],["👨🏽🤝👨🏿","men holding hands: medium skin tone, dark skin tone",1,[]],["👨🏾🤝👨🏻","men holding hands: medium-dark skin tone, light skin tone",1,[]],["👨🏾🤝👨🏼","men holding hands: medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾🤝👨🏽","men holding hands: medium-dark skin tone, medium skin tone",1,[]],["👬🏾","men holding hands: medium-dark skin tone",1,[]],["👨🏾🤝👨🏿","men holding hands: medium-dark skin tone, dark skin tone",1,[]],["👨🏿🤝👨🏻","men holding hands: dark skin tone, light skin tone",1,[]],["👨🏿🤝👨🏼","men holding hands: dark skin tone, medium-light skin tone",1,[]],["👨🏿🤝👨🏽","men holding hands: dark skin tone, medium skin tone",1,[]],["👨🏿🤝👨🏾","men holding hands: dark skin tone, medium-dark skin tone",1,[]],["👬🏿","men holding hands: dark skin tone",1,[]],["💏","kiss",1,["anniversary","babe","bae","couple","date","dating","heart","kiss","love","mwah","person","romance","together","xoxo"]],["💏🏻","kiss: light skin tone",1,[]],["💏🏼","kiss: medium-light skin tone",1,[]],["💏🏽","kiss: medium skin tone",1,[]],["💏🏾","kiss: medium-dark skin tone",1,[]],["💏🏿","kiss: dark skin tone",1,[]],["🧑🏻❤️💋🧑🏼","kiss: person, person, light skin tone, medium-light skin tone",1,[]],["🧑🏻❤️💋🧑🏽","kiss: person, person, light skin tone, medium skin tone",1,[]],["🧑🏻❤️💋🧑🏾","kiss: person, person, light skin tone, medium-dark skin tone",1,[]],["🧑🏻❤️💋🧑🏿","kiss: person, person, light skin tone, dark skin tone",1,[]],["🧑🏼❤️💋🧑🏻","kiss: person, person, medium-light skin tone, light skin tone",1,[]],["🧑🏼❤️💋🧑🏽","kiss: person, person, medium-light skin tone, medium skin tone",1,[]],["🧑🏼❤️💋🧑🏾","kiss: person, person, medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼❤️💋🧑🏿","kiss: person, person, medium-light skin tone, dark skin tone",1,[]],["🧑🏽❤️💋🧑🏻","kiss: person, person, medium skin tone, light skin tone",1,[]],["🧑🏽❤️💋🧑🏼","kiss: person, person, medium skin tone, medium-light skin tone",1,[]],["🧑🏽❤️💋🧑🏾","kiss: person, person, medium skin tone, medium-dark skin tone",1,[]],["🧑🏽❤️💋🧑🏿","kiss: person, person, medium skin tone, dark skin tone",1,[]],["🧑🏾❤️💋🧑🏻","kiss: person, person, medium-dark skin tone, light skin tone",1,[]],["🧑🏾❤️💋🧑🏼","kiss: person, person, medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾❤️💋🧑🏽","kiss: person, person, medium-dark skin tone, medium skin tone",1,[]],["🧑🏾❤️💋🧑🏿","kiss: person, person, medium-dark skin tone, dark skin tone",1,[]],["🧑🏿❤️💋🧑🏻","kiss: person, person, dark skin tone, light skin tone",1,[]],["🧑🏿❤️💋🧑🏼","kiss: person, person, dark skin tone, medium-light skin tone",1,[]],["🧑🏿❤️💋🧑🏽","kiss: person, person, dark skin tone, medium skin tone",1,[]],["🧑🏿❤️💋🧑🏾","kiss: person, person, dark skin tone, medium-dark skin tone",1,[]],["👩❤️💋👨","kiss: woman, man",1,[]],["👩🏻❤️💋👨🏻","kiss: woman, man, light skin tone",1,[]],["👩🏻❤️💋👨🏼","kiss: woman, man, light skin tone, medium-light skin tone",1,[]],["👩🏻❤️💋👨🏽","kiss: woman, man, light skin tone, medium skin tone",1,[]],["👩🏻❤️💋👨🏾","kiss: woman, man, light skin tone, medium-dark skin tone",1,[]],["👩🏻❤️💋👨🏿","kiss: woman, man, light skin tone, dark skin tone",1,[]],["👩🏼❤️💋👨🏻","kiss: woman, man, medium-light skin tone, light skin tone",1,[]],["👩🏼❤️💋👨🏼","kiss: woman, man, medium-light skin tone",1,[]],["👩🏼❤️💋👨🏽","kiss: woman, man, medium-light skin tone, medium skin tone",1,[]],["👩🏼❤️💋👨🏾","kiss: woman, man, medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼❤️💋👨🏿","kiss: woman, man, medium-light skin tone, dark skin tone",1,[]],["👩🏽❤️💋👨🏻","kiss: woman, man, medium skin tone, light skin tone",1,[]],["👩🏽❤️💋👨🏼","kiss: woman, man, medium skin tone, medium-light skin tone",1,[]],["👩🏽❤️💋👨🏽","kiss: woman, man, medium skin tone",1,[]],["👩🏽❤️💋👨🏾","kiss: woman, man, medium skin tone, medium-dark skin tone",1,[]],["👩🏽❤️💋👨🏿","kiss: woman, man, medium skin tone, dark skin tone",1,[]],["👩🏾❤️💋👨🏻","kiss: woman, man, medium-dark skin tone, light skin tone",1,[]],["👩🏾❤️💋👨🏼","kiss: woman, man, medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾❤️💋👨🏽","kiss: woman, man, medium-dark skin tone, medium skin tone",1,[]],["👩🏾❤️💋👨🏾","kiss: woman, man, medium-dark skin tone",1,[]],["👩🏾❤️💋👨🏿","kiss: woman, man, medium-dark skin tone, dark skin tone",1,[]],["👩🏿❤️💋👨🏻","kiss: woman, man, dark skin tone, light skin tone",1,[]],["👩🏿❤️💋👨🏼","kiss: woman, man, dark skin tone, medium-light skin tone",1,[]],["👩🏿❤️💋👨🏽","kiss: woman, man, dark skin tone, medium skin tone",1,[]],["👩🏿❤️💋👨🏾","kiss: woman, man, dark skin tone, medium-dark skin tone",1,[]],["👩🏿❤️💋👨🏿","kiss: woman, man, dark skin tone",1,[]],["👨❤️💋👨","kiss: man, man",1,[]],["👨🏻❤️💋👨🏻","kiss: man, man, light skin tone",1,[]],["👨🏻❤️💋👨🏼","kiss: man, man, light skin tone, medium-light skin tone",1,[]],["👨🏻❤️💋👨🏽","kiss: man, man, light skin tone, medium skin tone",1,[]],["👨🏻❤️💋👨🏾","kiss: man, man, light skin tone, medium-dark skin tone",1,[]],["👨🏻❤️💋👨🏿","kiss: man, man, light skin tone, dark skin tone",1,[]],["👨🏼❤️💋👨🏻","kiss: man, man, medium-light skin tone, light skin tone",1,[]],["👨🏼❤️💋👨🏼","kiss: man, man, medium-light skin tone",1,[]],["👨🏼❤️💋👨🏽","kiss: man, man, medium-light skin tone, medium skin tone",1,[]],["👨🏼❤️💋👨🏾","kiss: man, man, medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼❤️💋👨🏿","kiss: man, man, medium-light skin tone, dark skin tone",1,[]],["👨🏽❤️💋👨🏻","kiss: man, man, medium skin tone, light skin tone",1,[]],["👨🏽❤️💋👨🏼","kiss: man, man, medium skin tone, medium-light skin tone",1,[]],["👨🏽❤️💋👨🏽","kiss: man, man, medium skin tone",1,[]],["👨🏽❤️💋👨🏾","kiss: man, man, medium skin tone, medium-dark skin tone",1,[]],["👨🏽❤️💋👨🏿","kiss: man, man, medium skin tone, dark skin tone",1,[]],["👨🏾❤️💋👨🏻","kiss: man, man, medium-dark skin tone, light skin tone",1,[]],["👨🏾❤️💋👨🏼","kiss: man, man, medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾❤️💋👨🏽","kiss: man, man, medium-dark skin tone, medium skin tone",1,[]],["👨🏾❤️💋👨🏾","kiss: man, man, medium-dark skin tone",1,[]],["👨🏾❤️💋👨🏿","kiss: man, man, medium-dark skin tone, dark skin tone",1,[]],["👨🏿❤️💋👨🏻","kiss: man, man, dark skin tone, light skin tone",1,[]],["👨🏿❤️💋👨🏼","kiss: man, man, dark skin tone, medium-light skin tone",1,[]],["👨🏿❤️💋👨🏽","kiss: man, man, dark skin tone, medium skin tone",1,[]],["👨🏿❤️💋👨🏾","kiss: man, man, dark skin tone, medium-dark skin tone",1,[]],["👨🏿❤️💋👨🏿","kiss: man, man, dark skin tone",1,[]],["👩❤️💋👩","kiss: woman, woman",1,[]],["👩🏻❤️💋👩🏻","kiss: woman, woman, light skin tone",1,[]],["👩🏻❤️💋👩🏼","kiss: woman, woman, light skin tone, medium-light skin tone",1,[]],["👩🏻❤️💋👩🏽","kiss: woman, woman, light skin tone, medium skin tone",1,[]],["👩🏻❤️💋👩🏾","kiss: woman, woman, light skin tone, medium-dark skin tone",1,[]],["👩🏻❤️💋👩🏿","kiss: woman, woman, light skin tone, dark skin tone",1,[]],["👩🏼❤️💋👩🏻","kiss: woman, woman, medium-light skin tone, light skin tone",1,[]],["👩🏼❤️💋👩🏼","kiss: woman, woman, medium-light skin tone",1,[]],["👩🏼❤️💋👩🏽","kiss: woman, woman, medium-light skin tone, medium skin tone",1,[]],["👩🏼❤️💋👩🏾","kiss: woman, woman, medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼❤️💋👩🏿","kiss: woman, woman, medium-light skin tone, dark skin tone",1,[]],["👩🏽❤️💋👩🏻","kiss: woman, woman, medium skin tone, light skin tone",1,[]],["👩🏽❤️💋👩🏼","kiss: woman, woman, medium skin tone, medium-light skin tone",1,[]],["👩🏽❤️💋👩🏽","kiss: woman, woman, medium skin tone",1,[]],["👩🏽❤️💋👩🏾","kiss: woman, woman, medium skin tone, medium-dark skin tone",1,[]],["👩🏽❤️💋👩🏿","kiss: woman, woman, medium skin tone, dark skin tone",1,[]],["👩🏾❤️💋👩🏻","kiss: woman, woman, medium-dark skin tone, light skin tone",1,[]],["👩🏾❤️💋👩🏼","kiss: woman, woman, medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾❤️💋👩🏽","kiss: woman, woman, medium-dark skin tone, medium skin tone",1,[]],["👩🏾❤️💋👩🏾","kiss: woman, woman, medium-dark skin tone",1,[]],["👩🏾❤️💋👩🏿","kiss: woman, woman, medium-dark skin tone, dark skin tone",1,[]],["👩🏿❤️💋👩🏻","kiss: woman, woman, dark skin tone, light skin tone",1,[]],["👩🏿❤️💋👩🏼","kiss: woman, woman, dark skin tone, medium-light skin tone",1,[]],["👩🏿❤️💋👩🏽","kiss: woman, woman, dark skin tone, medium skin tone",1,[]],["👩🏿❤️💋👩🏾","kiss: woman, woman, dark skin tone, medium-dark skin tone",1,[]],["👩🏿❤️💋👩🏿","kiss: woman, woman, dark skin tone",1,[]],["💑","couple with heart",1,["anniversary","babe","bae","couple","dating","heart","kiss","love","person","relationship","romance","together","you"]],["💑🏻","couple with heart: light skin tone",1,[]],["💑🏼","couple with heart: medium-light skin tone",1,[]],["💑🏽","couple with heart: medium skin tone",1,[]],["💑🏾","couple with heart: medium-dark skin tone",1,[]],["💑🏿","couple with heart: dark skin tone",1,[]],["🧑🏻❤️🧑🏼","couple with heart: person, person, light skin tone, medium-light skin tone",1,[]],["🧑🏻❤️🧑🏽","couple with heart: person, person, light skin tone, medium skin tone",1,[]],["🧑🏻❤️🧑🏾","couple with heart: person, person, light skin tone, medium-dark skin tone",1,[]],["🧑🏻❤️🧑🏿","couple with heart: person, person, light skin tone, dark skin tone",1,[]],["🧑🏼❤️🧑🏻","couple with heart: person, person, medium-light skin tone, light skin tone",1,[]],["🧑🏼❤️🧑🏽","couple with heart: person, person, medium-light skin tone, medium skin tone",1,[]],["🧑🏼❤️🧑🏾","couple with heart: person, person, medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼❤️🧑🏿","couple with heart: person, person, medium-light skin tone, dark skin tone",1,[]],["🧑🏽❤️🧑🏻","couple with heart: person, person, medium skin tone, light skin tone",1,[]],["🧑🏽❤️🧑🏼","couple with heart: person, person, medium skin tone, medium-light skin tone",1,[]],["🧑🏽❤️🧑🏾","couple with heart: person, person, medium skin tone, medium-dark skin tone",1,[]],["🧑🏽❤️🧑🏿","couple with heart: person, person, medium skin tone, dark skin tone",1,[]],["🧑🏾❤️🧑🏻","couple with heart: person, person, medium-dark skin tone, light skin tone",1,[]],["🧑🏾❤️🧑🏼","couple with heart: person, person, medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾❤️🧑🏽","couple with heart: person, person, medium-dark skin tone, medium skin tone",1,[]],["🧑🏾❤️🧑🏿","couple with heart: person, person, medium-dark skin tone, dark skin tone",1,[]],["🧑🏿❤️🧑🏻","couple with heart: person, person, dark skin tone, light skin tone",1,[]],["🧑🏿❤️🧑🏼","couple with heart: person, person, dark skin tone, medium-light skin tone",1,[]],["🧑🏿❤️🧑🏽","couple with heart: person, person, dark skin tone, medium skin tone",1,[]],["🧑🏿❤️🧑🏾","couple with heart: person, person, dark skin tone, medium-dark skin tone",1,[]],["👩❤️👨","couple with heart: woman, man",1,[]],["👩🏻❤️👨🏻","couple with heart: woman, man, light skin tone",1,[]],["👩🏻❤️👨🏼","couple with heart: woman, man, light skin tone, medium-light skin tone",1,[]],["👩🏻❤️👨🏽","couple with heart: woman, man, light skin tone, medium skin tone",1,[]],["👩🏻❤️👨🏾","couple with heart: woman, man, light skin tone, medium-dark skin tone",1,[]],["👩🏻❤️👨🏿","couple with heart: woman, man, light skin tone, dark skin tone",1,[]],["👩🏼❤️👨🏻","couple with heart: woman, man, medium-light skin tone, light skin tone",1,[]],["👩🏼❤️👨🏼","couple with heart: woman, man, medium-light skin tone",1,[]],["👩🏼❤️👨🏽","couple with heart: woman, man, medium-light skin tone, medium skin tone",1,[]],["👩🏼❤️👨🏾","couple with heart: woman, man, medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼❤️👨🏿","couple with heart: woman, man, medium-light skin tone, dark skin tone",1,[]],["👩🏽❤️👨🏻","couple with heart: woman, man, medium skin tone, light skin tone",1,[]],["👩🏽❤️👨🏼","couple with heart: woman, man, medium skin tone, medium-light skin tone",1,[]],["👩🏽❤️👨🏽","couple with heart: woman, man, medium skin tone",1,[]],["👩🏽❤️👨🏾","couple with heart: woman, man, medium skin tone, medium-dark skin tone",1,[]],["👩🏽❤️👨🏿","couple with heart: woman, man, medium skin tone, dark skin tone",1,[]],["👩🏾❤️👨🏻","couple with heart: woman, man, medium-dark skin tone, light skin tone",1,[]],["👩🏾❤️👨🏼","couple with heart: woman, man, medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾❤️👨🏽","couple with heart: woman, man, medium-dark skin tone, medium skin tone",1,[]],["👩🏾❤️👨🏾","couple with heart: woman, man, medium-dark skin tone",1,[]],["👩🏾❤️👨🏿","couple with heart: woman, man, medium-dark skin tone, dark skin tone",1,[]],["👩🏿❤️👨🏻","couple with heart: woman, man, dark skin tone, light skin tone",1,[]],["👩🏿❤️👨🏼","couple with heart: woman, man, dark skin tone, medium-light skin tone",1,[]],["👩🏿❤️👨🏽","couple with heart: woman, man, dark skin tone, medium skin tone",1,[]],["👩🏿❤️👨🏾","couple with heart: woman, man, dark skin tone, medium-dark skin tone",1,[]],["👩🏿❤️👨🏿","couple with heart: woman, man, dark skin tone",1,[]],["👨❤️👨","couple with heart: man, man",1,[]],["👨🏻❤️👨🏻","couple with heart: man, man, light skin tone",1,[]],["👨🏻❤️👨🏼","couple with heart: man, man, light skin tone, medium-light skin tone",1,[]],["👨🏻❤️👨🏽","couple with heart: man, man, light skin tone, medium skin tone",1,[]],["👨🏻❤️👨🏾","couple with heart: man, man, light skin tone, medium-dark skin tone",1,[]],["👨🏻❤️👨🏿","couple with heart: man, man, light skin tone, dark skin tone",1,[]],["👨🏼❤️👨🏻","couple with heart: man, man, medium-light skin tone, light skin tone",1,[]],["👨🏼❤️👨🏼","couple with heart: man, man, medium-light skin tone",1,[]],["👨🏼❤️👨🏽","couple with heart: man, man, medium-light skin tone, medium skin tone",1,[]],["👨🏼❤️👨🏾","couple with heart: man, man, medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼❤️👨🏿","couple with heart: man, man, medium-light skin tone, dark skin tone",1,[]],["👨🏽❤️👨🏻","couple with heart: man, man, medium skin tone, light skin tone",1,[]],["👨🏽❤️👨🏼","couple with heart: man, man, medium skin tone, medium-light skin tone",1,[]],["👨🏽❤️👨🏽","couple with heart: man, man, medium skin tone",1,[]],["👨🏽❤️👨🏾","couple with heart: man, man, medium skin tone, medium-dark skin tone",1,[]],["👨🏽❤️👨🏿","couple with heart: man, man, medium skin tone, dark skin tone",1,[]],["👨🏾❤️👨🏻","couple with heart: man, man, medium-dark skin tone, light skin tone",1,[]],["👨🏾❤️👨🏼","couple with heart: man, man, medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾❤️👨🏽","couple with heart: man, man, medium-dark skin tone, medium skin tone",1,[]],["👨🏾❤️👨🏾","couple with heart: man, man, medium-dark skin tone",1,[]],["👨🏾❤️👨🏿","couple with heart: man, man, medium-dark skin tone, dark skin tone",1,[]],["👨🏿❤️👨🏻","couple with heart: man, man, dark skin tone, light skin tone",1,[]],["👨🏿❤️👨🏼","couple with heart: man, man, dark skin tone, medium-light skin tone",1,[]],["👨🏿❤️👨🏽","couple with heart: man, man, dark skin tone, medium skin tone",1,[]],["👨🏿❤️👨🏾","couple with heart: man, man, dark skin tone, medium-dark skin tone",1,[]],["👨🏿❤️👨🏿","couple with heart: man, man, dark skin tone",1,[]],["👩❤️👩","couple with heart: woman, woman",1,[]],["👩🏻❤️👩🏻","couple with heart: woman, woman, light skin tone",1,[]],["👩🏻❤️👩🏼","couple with heart: woman, woman, light skin tone, medium-light skin tone",1,[]],["👩🏻❤️👩🏽","couple with heart: woman, woman, light skin tone, medium skin tone",1,[]],["👩🏻❤️👩🏾","couple with heart: woman, woman, light skin tone, medium-dark skin tone",1,[]],["👩🏻❤️👩🏿","couple with heart: woman, woman, light skin tone, dark skin tone",1,[]],["👩🏼❤️👩🏻","couple with heart: woman, woman, medium-light skin tone, light skin tone",1,[]],["👩🏼❤️👩🏼","couple with heart: woman, woman, medium-light skin tone",1,[]],["👩🏼❤️👩🏽","couple with heart: woman, woman, medium-light skin tone, medium skin tone",1,[]],["👩🏼❤️👩🏾","couple with heart: woman, woman, medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼❤️👩🏿","couple with heart: woman, woman, medium-light skin tone, dark skin tone",1,[]],["👩🏽❤️👩🏻","couple with heart: woman, woman, medium skin tone, light skin tone",1,[]],["👩🏽❤️👩🏼","couple with heart: woman, woman, medium skin tone, medium-light skin tone",1,[]],["👩🏽❤️👩🏽","couple with heart: woman, woman, medium skin tone",1,[]],["👩🏽❤️👩🏾","couple with heart: woman, woman, medium skin tone, medium-dark skin tone",1,[]],["👩🏽❤️👩🏿","couple with heart: woman, woman, medium skin tone, dark skin tone",1,[]],["👩🏾❤️👩🏻","couple with heart: woman, woman, medium-dark skin tone, light skin tone",1,[]],["👩🏾❤️👩🏼","couple with heart: woman, woman, medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾❤️👩🏽","couple with heart: woman, woman, medium-dark skin tone, medium skin tone",1,[]],["👩🏾❤️👩🏾","couple with heart: woman, woman, medium-dark skin tone",1,[]],["👩🏾❤️👩🏿","couple with heart: woman, woman, medium-dark skin tone, dark skin tone",1,[]],["👩🏿❤️👩🏻","couple with heart: woman, woman, dark skin tone, light skin tone",1,[]],["👩🏿❤️👩🏼","couple with heart: woman, woman, dark skin tone, medium-light skin tone",1,[]],["👩🏿❤️👩🏽","couple with heart: woman, woman, dark skin tone, medium skin tone",1,[]],["👩🏿❤️👩🏾","couple with heart: woman, woman, dark skin tone, medium-dark skin tone",1,[]],["👩🏿❤️👩🏿","couple with heart: woman, woman, dark skin tone",1,[]],["👨👩👦","family: man, woman, boy",1,[]],["👨👩👧","family: man, woman, girl",1,[]],["👨👩👧👦","family: man, woman, girl, boy",1,[]],["👨👩👦👦","family: man, woman, boy, boy",1,[]],["👨👩👧👧","family: man, woman, girl, girl",1,[]],["👨👨👦","family: man, man, boy",1,[]],["👨👨👧","family: man, man, girl",1,[]],["👨👨👧👦","family: man, man, girl, boy",1,[]],["👨👨👦👦","family: man, man, boy, boy",1,[]],["👨👨👧👧","family: man, man, girl, girl",1,[]],["👩👩👦","family: woman, woman, boy",1,[]],["👩👩👧","family: woman, woman, girl",1,[]],["👩👩👧👦","family: woman, woman, girl, boy",1,[]],["👩👩👦👦","family: woman, woman, boy, boy",1,[]],["👩👩👧👧","family: woman, woman, girl, girl",1,[]],["👨👦","family: man, boy",1,[]],["👨👦👦","family: man, boy, boy",1,[]],["👨👧","family: man, girl",1,[]],["👨👧👦","family: man, girl, boy",1,[]],["👨👧👧","family: man, girl, girl",1,[]],["👩👦","family: woman, boy",1,[]],["👩👦👦","family: woman, boy, boy",1,[]],["👩👧","family: woman, girl",1,[]],["👩👧👦","family: woman, girl, boy",1,[]],["👩👧👧","family: woman, girl, girl",1,[]],["🗣️","speaking head",1,["face","head","silhouette","speak","speaking"]],["👤","bust in silhouette",1,["bust","mysterious","shadow","silhouette"]],["👥","busts in silhouette",1,["bff","bust","busts","everyone","friend","friends","people","silhouette"]],["🫂","people hugging",1,["comfort","embrace","farewell","friendship","goodbye","hello","hug","hugging","love","people","thanks"]],["👪","family",1,["child","family"]],["🧑🧑🧒","family: adult, adult, child",1,["adult","child","family"]],["🧑🧑🧒🧒","family: adult, adult, child, child",1,["adult","child","family"]],["🧑🧒","family: adult, child",1,["adult","child","family"]],["🧑🧒🧒","family: adult, child, child",1,["adult","child","family"]],["👣","footprints",1,["barefoot","clothing","footprint","footprints","omw","print","walk"]],["","fingerprint",1,["clue","crime","detective","fingerprint","forensics","identity","mystery","print","safety","trace"]],["🐵","monkey face",2,["animal","banana","face","monkey"]],["🐒","monkey",2,["animal","banana","monkey"]],["🦍","gorilla",2,["animal","gorilla"]],["🦧","orangutan",2,["animal","ape","monkey","orangutan"]],["🐶","dog face",2,["adorbs","animal","dog","face","pet","puppies","puppy"]],["🐕","dog",2,["animal","animals","dog","dogs","pet"]],["🦮","guide dog",2,["accessibility","animal","blind","dog","guide"]],["🐕🦺","service dog",2,["accessibility","animal","assistance","dog","service"]],["🐩","poodle",2,["animal","dog","fluffy","poodle"]],["🐺","wolf",2,["animal","face","wolf"]],["🦊","fox",2,["animal","face","fox"]],["🦝","raccoon",2,["animal","curious","raccoon","sly"]],["🐱","cat face",2,["animal","cat","face","kitten","kitty","pet"]],["🐈","cat",2,["animal","animals","cat","cats","kitten","pet"]],["🐈⬛","black cat",2,["animal","black","cat","feline","halloween","meow","unlucky"]],["🦁","lion",2,["alpha","animal","face","Leo","lion","mane","order","rawr","roar","safari","strong","zodiac"]],["🐯","tiger face",2,["animal","big","cat","face","predator","tiger"]],["🐅","tiger",2,["animal","big","cat","predator","tiger","zoo"]],["🐆","leopard",2,["animal","big","cat","leopard","predator","zoo"]],["🐴","horse face",2,["animal","dressage","equine","face","farm","horse","horses"]],["🫎","moose",2,["alces","animal","antlers","elk","mammal","moose"]],["🫏","donkey",2,["animal","ass","burro","donkey","hinny","mammal","mule","stubborn"]],["🐎","horse",2,["animal","equestrian","farm","horse","racehorse","racing"]],["🦄","unicorn",2,["face","unicorn"]],["🦓","zebra",2,["animal","stripe","zebra"]],["🦌","deer",2,["animal","deer"]],["🦬","bison",2,["animal","bison","buffalo","herd","wisent"]],["🐮","cow face",2,["animal","cow","face","farm","milk","moo"]],["🐂","ox",2,["animal","animals","bull","farm","ox","Taurus","zodiac"]],["🐃","water buffalo",2,["animal","buffalo","water","zoo"]],["🐄","cow",2,["animal","animals","cow","farm","milk","moo"]],["🐷","pig face",2,["animal","bacon","face","farm","pig","pork"]],["🐖","pig",2,["animal","bacon","farm","pig","pork","sow"]],["🐗","boar",2,["animal","boar","pig"]],["🐽","pig nose",2,["animal","face","farm","nose","pig","smell","snout"]],["🐏","ram",2,["animal","Aries","horns","male","ram","sheep","zodiac","zoo"]],["🐑","ewe",2,["animal","baa","ewe","farm","female","fluffy","lamb","sheep","wool"]],["🐐","goat",2,["animal","Capricorn","farm","goat","milk","zodiac"]],["🐪","camel",2,["animal","camel","desert","dromedary","hump","one"]],["🐫","two-hump camel",2,["animal","bactrian","camel","desert","hump","two","two-hump"]],["🦙","llama",2,["alpaca","animal","guanaco","llama","vicuña","wool"]],["🦒","giraffe",2,["animal","giraffe","spots"]],["🐘","elephant",2,["animal","elephant"]],["🦣","mammoth",2,["animal","extinction","large","mammoth","tusk","wooly"]],["🦏","rhinoceros",2,["animal","rhinoceros"]],["🦛","hippopotamus",2,["animal","hippo","hippopotamus"]],["🐭","mouse face",2,["animal","face","mouse"]],["🐁","mouse",2,["animal","animals","mouse"]],["🐀","rat",2,["animal","rat"]],["🐹","hamster",2,["animal","face","hamster","pet"]],["🐰","rabbit face",2,["animal","bunny","face","pet","rabbit"]],["🐇","rabbit",2,["animal","bunny","pet","rabbit"]],["🐿️","chipmunk",2,["animal","chipmunk","squirrel"]],["🦫","beaver",2,["animal","beaver","dam","teeth"]],["🦔","hedgehog",2,["animal","hedgehog","spiny"]],["🦇","bat",2,["animal","bat","vampire"]],["🐻","bear",2,["animal","bear","face","grizzly","growl","honey"]],["🐻❄️","polar bear",2,["animal","arctic","bear","polar","white"]],["🐨","koala",2,["animal","australia","bear","down","face","koala","marsupial","under"]],["🐼","panda",2,["animal","bamboo","face","panda"]],["🦥","sloth",2,["lazy","sloth","slow"]],["🦦","otter",2,["animal","fishing","otter","playful"]],["🦨","skunk",2,["animal","skunk","stink"]],["🦘","kangaroo",2,["animal","joey","jump","kangaroo","marsupial"]],["🦡","badger",2,["animal","badger","honey","pester"]],["🐾","paw prints",2,["feet","paw","paws","print","prints"]],["🦃","turkey",2,["bird","gobble","thanksgiving","turkey"]],["🐔","chicken",2,["animal","bird","chicken","ornithology"]],["🐓","rooster",2,["animal","bird","ornithology","rooster"]],["🐣","hatching chick",2,["animal","baby","bird","chick","egg","hatching"]],["🐤","baby chick",2,["animal","baby","bird","chick","ornithology"]],["🐥","front-facing baby chick",2,["animal","baby","bird","chick","front-facing","newborn","ornithology"]],["🐦","bird",2,["animal","bird","ornithology"]],["🐧","penguin",2,["animal","antarctica","bird","ornithology","penguin"]],["🕊️","dove",2,["bird","dove","fly","ornithology","peace"]],["🦅","eagle",2,["animal","bird","eagle","ornithology"]],["🦆","duck",2,["animal","bird","duck","ornithology"]],["🦢","swan",2,["animal","bird","cygnet","duckling","ornithology","swan","ugly"]],["🦉","owl",2,["animal","bird","ornithology","owl","wise"]],["🦤","dodo",2,["animal","bird","dodo","extinction","large","ornithology"]],["🪶","feather",2,["bird","feather","flight","light","plumage"]],["🦩","flamingo",2,["animal","bird","flamboyant","flamingo","ornithology","tropical"]],["🦚","peacock",2,["animal","bird","colorful","ornithology","ostentatious","peacock","peahen","pretty","proud"]],["🦜","parrot",2,["animal","bird","ornithology","parrot","pirate","talk"]],["🪽","wing",2,["angelic","ascend","aviation","bird","fly","flying","heavenly","mythology","soar","wing"]],["🐦⬛","black bird",2,["animal","beak","bird","black","caw","corvid","crow","ornithology","raven","rook"]],["🪿","goose",2,["animal","bird","duck","flock","fowl","gaggle","gander","geese","goose","honk","ornithology","silly"]],["🐦🔥","phoenix",2,["ascend","ascension","emerge","fantasy","firebird","glory","immortal","phoenix","rebirth","reincarnation","reinvent","renewal","revival","revive","rise","transform"]],["🐸","frog",2,["animal","face","frog"]],["🐊","crocodile",2,["animal","crocodile","zoo"]],["🐢","turtle",2,["animal","terrapin","tortoise","turtle"]],["🦎","lizard",2,["animal","lizard","reptile"]],["🐍","snake",2,["animal","bearer","Ophiuchus","serpent","snake","zodiac"]],["🐲","dragon face",2,["animal","dragon","face","fairy","fairytale","tale"]],["🐉","dragon",2,["animal","dragon","fairy","fairytale","knights","tale"]],["🦕","sauropod",2,["brachiosaurus","brontosaurus","dinosaur","diplodocus","sauropod"]],["🦖","T-Rex",2,["dinosaur","Rex","T","T-Rex","Tyrannosaurus"]],["🐳","spouting whale",2,["animal","beach","face","ocean","spouting","whale"]],["🐋","whale",2,["animal","beach","ocean","whale"]],["🐬","dolphin",2,["animal","beach","dolphin","flipper","ocean"]],["","orca",2,["marine","ocean","whale"]],["🦭","seal",2,["animal","lion","ocean","sea","seal"]],["🐟","fish",2,["animal","dinner","fish","fishes","fishing","Pisces","zodiac"]],["🐠","tropical fish",2,["animal","fish","fishes","tropical"]],["🐡","blowfish",2,["animal","blowfish","fish"]],["🦈","shark",2,["animal","fish","shark"]],["🐙","octopus",2,["animal","creature","ocean","octopus"]],["🐚","spiral shell",2,["animal","beach","conch","sea","shell","spiral"]],["🪸","coral",2,["change","climate","coral","ocean","reef","sea"]],["🪼","jellyfish",2,["animal","aquarium","burn","invertebrate","jelly","jellyfish","life","marine","ocean","ouch","plankton","sea","sting","stinger","tentacles"]],["🦀","crab",2,["Cancer","crab","zodiac"]],["🦞","lobster",2,["animal","bisque","claws","lobster","seafood"]],["🦐","shrimp",2,["food","shellfish","shrimp","small"]],["🦑","squid",2,["animal","food","mollusk","squid"]],["🦪","oyster",2,["diving","oyster","pearl"]],["🐌","snail",2,["animal","escargot","garden","nature","slug","snail"]],["🦋","butterfly",2,["butterfly","insect","pretty"]],["","monarch butterfly",2,[]],["🐛","bug",2,["animal","bug","garden","insect"]],["🐜","ant",2,["animal","ant","garden","insect"]],["🐝","honeybee",2,["animal","bee","bumblebee","honey","honeybee","insect","nature","spring"]],["🪲","beetle",2,["animal","beetle","bug","insect"]],["🐞","lady beetle",2,["animal","beetle","garden","insect","lady","ladybird","ladybug","nature"]],["🦗","cricket",2,["animal","bug","cricket","grasshopper","insect","Orthoptera"]],["🪳","cockroach",2,["animal","cockroach","insect","pest","roach"]],["🕷️","spider",2,["animal","insect","spider"]],["🕸️","spider web",2,["spider","web"]],["🦂","scorpion",2,["Scorpio","scorpion","Scorpius","zodiac"]],["🦟","mosquito",2,["bite","disease","fever","insect","malaria","mosquito","pest","virus"]],["🪰","fly",2,["animal","disease","fly","insect","maggot","pest","rotting"]],["🪱","worm",2,["animal","annelid","earthworm","parasite","worm"]],["🦠","microbe",2,["amoeba","bacteria","microbe","science","virus"]],["💐","bouquet",2,["anniversary","birthday","bouquet","date","flower","love","plant","romance"]],["🌸","cherry blossom",2,["blossom","cherry","flower","plant","spring","springtime"]],["💮","white flower",2,["flower","white"]],["🪷","lotus",2,["beauty","Buddhism","calm","flower","Hinduism","lotus","peace","purity","serenity"]],["🏵️","rosette",2,["plant","rosette"]],["🌹","rose",2,["beauty","elegant","flower","love","plant","red","rose","valentine"]],["🥀","wilted flower",2,["dying","flower","wilted"]],["🌺","hibiscus",2,["flower","hibiscus","plant"]],["🌻","sunflower",2,["flower","outdoors","plant","sun","sunflower"]],["🌼","blossom",2,["blossom","buttercup","dandelion","flower","plant"]],["🌷","tulip",2,["blossom","flower","growth","plant","tulip"]],["🪻","hyacinth",2,["bloom","bluebonnet","flower","hyacinth","indigo","lavender","lilac","lupine","plant","purple","shrub","snapdragon","spring","violet"]],["🌱","seedling",2,["plant","sapling","seedling","sprout","young"]],["🪴","potted plant",2,["decor","grow","house","nurturing","plant","pot","potted"]],["🌲","evergreen tree",2,["christmas","evergreen","forest","pine","tree"]],["🌳","deciduous tree",2,["deciduous","forest","green","habitat","shedding","tree"]],["🌴","palm tree",2,["beach","palm","plant","tree","tropical"]],["🌵","cactus",2,["cactus","desert","drought","nature","plant"]],["🌾","sheaf of rice",2,["ear","grain","grains","plant","rice","sheaf"]],["🌿","herb",2,["herb","leaf","plant"]],["☘️","shamrock",2,["irish","plant","shamrock"]],["🍀","four leaf clover",2,["4","clover","four","four-leaf","irish","leaf","lucky","plant"]],["🍁","maple leaf",2,["falling","leaf","maple"]],["🍂","fallen leaf",2,["autumn","fall","fallen","falling","leaf"]],["🍃","leaf fluttering in wind",2,["blow","flutter","fluttering","leaf","wind"]],["🪹","empty nest",2,["branch","empty","home","nest","nesting"]],["🪺","nest with eggs",2,["bird","branch","egg","eggs","nest","nesting"]],["🍄","mushroom",2,["fungus","mushroom","toadstool"]],["","leafless tree",2,["bare","barren","branches","dead","drought","leafless","tree","trunk","winter","wood"]],["🍇","grapes",3,["Dionysus","fruit","grape","grapes"]],["🍈","melon",3,["cantaloupe","fruit","melon"]],["🍉","watermelon",3,["fruit","watermelon"]],["🍊","tangerine",3,["c","citrus","fruit","nectarine","orange","tangerine","vitamin"]],["🍋","lemon",3,["citrus","fruit","lemon","sour"]],["🍋🟩","lime",3,["acidity","citrus","cocktail","fruit","garnish","key","lime","margarita","mojito","refreshing","salsa","sour","tangy","tequila","tropical","zest"]],["🍌","banana",3,["banana","fruit","potassium"]],["🍍","pineapple",3,["colada","fruit","pina","pineapple","tropical"]],["🥭","mango",3,["food","fruit","mango","tropical"]],["🍎","red apple",3,["apple","diet","food","fruit","health","red","ripe"]],["🍏","green apple",3,["apple","fruit","green"]],["🍐","pear",3,["fruit","pear"]],["🍑","peach",3,["fruit","peach"]],["🍒","cherries",3,["berries","cherries","cherry","fruit","red"]],["🍓","strawberry",3,["berry","fruit","strawberry"]],["🫐","blueberries",3,["berries","berry","bilberry","blue","blueberries","blueberry","food","fruit"]],["🥝","kiwi fruit",3,["food","fruit","kiwi"]],["🍅","tomato",3,["food","fruit","tomato","vegetable"]],["🫒","olive",3,["food","olive"]],["🥥","coconut",3,["coconut","colada","palm","piña"]],["🥑","avocado",3,["avocado","food","fruit"]],["🍆","eggplant",3,["aubergine","eggplant","vegetable"]],["🥔","potato",3,["food","potato","vegetable"]],["🥕","carrot",3,["carrot","food","vegetable"]],["🌽","ear of corn",3,["corn","crops","ear","farm","maize","maze"]],["🌶️","hot pepper",3,["hot","pepper"]],["🫑","bell pepper",3,["bell","capsicum","food","pepper","vegetable"]],["🥒","cucumber",3,["cucumber","food","pickle","vegetable"]],["","pickle",3,[]],["🥬","leafy green",3,["bok","burgers","cabbage","choy","green","kale","leafy","lettuce","salad"]],["🥦","broccoli",3,["broccoli","cabbage","wild"]],["🧄","garlic",3,["flavoring","garlic"]],["🧅","onion",3,["flavoring","onion"]],["🥜","peanuts",3,["food","nut","peanut","peanuts","vegetable"]],["🫘","beans",3,["beans","food","kidney","legume","small"]],["🌰","chestnut",3,["almond","chestnut","plant"]],["🫚","ginger root",3,["beer","ginger","health","herb","natural","root","spice"]],["🫛","pea pod",3,["beans","beanstalk","edamame","legume","pea","pod","soybean","vegetable","veggie"]],["🍄🟫","brown mushroom",3,["food","fungi","fungus","mushroom","nature","pizza","portobello","shiitake","shroom","spore","sprout","toppings","truffle","vegetable","vegetarian","veggie"]],["","root vegetable",3,["beet","food","garden","radish","root","salad","turnip","vegetable","vegetarian"]],["🍞","bread",3,["bread","carbs","food","grain","loaf","restaurant","toast","wheat"]],["🥐","croissant",3,["bread","breakfast","crescent","croissant","food","french","roll"]],["🥖","baguette bread",3,["baguette","bread","food","french"]],["🫓","flatbread",3,["arepa","bread","flatbread","food","gordita","lavash","naan","pita"]],["🥨","pretzel",3,["convoluted","pretzel","twisted"]],["🥯","bagel",3,["bagel","bakery","bread","breakfast","schmear"]],["🥞","pancakes",3,["breakfast","crêpe","food","hotcake","pancake","pancakes"]],["🧇","waffle",3,["breakfast","indecisive","iron","waffle"]],["🧀","cheese wedge",3,["cheese","wedge"]],["🍖","meat on bone",3,["bone","meat"]],["🍗","poultry leg",3,["bone","chicken","drumstick","hungry","leg","poultry","turkey"]],["🥩","cut of meat",3,["chop","cut","lambchop","meat","porkchop","red","steak"]],["🥓","bacon",3,["bacon","breakfast","food","meat"]],["🍔","hamburger",3,["burger","eat","fast","food","hamburger","hungry"]],["🍟","french fries",3,["fast","food","french","fries"]],["🍕","pizza",3,["cheese","food","hungry","pepperoni","pizza","slice"]],["🌭","hot dog",3,["dog","frankfurter","hot","hotdog","sausage"]],["🥪","sandwich",3,["bread","sandwich"]],["🌮","taco",3,["mexican","taco"]],["🌯","burrito",3,["burrito","mexican","wrap"]],["🫔","tamale",3,["food","mexican","pamonha","tamale","wrapped"]],["🥙","stuffed flatbread",3,["falafel","flatbread","food","gyro","kebab","stuffed"]],["🧆","falafel",3,["chickpea","falafel","meatball"]],["🥚","egg",3,["breakfast","egg","food"]],["🍳","cooking",3,["breakfast","cooking","easy","egg","fry","frying","over","pan","restaurant","side","sunny","up"]],["🥘","shallow pan of food",3,["casserole","food","paella","pan","shallow"]],["🍲","pot of food",3,["food","pot","soup","stew"]],["🫕","fondue",3,["cheese","chocolate","fondue","food","melted","pot","ski"]],["🥣","bowl with spoon",3,["bowl","breakfast","cereal","congee","oatmeal","porridge","spoon"]],["🥗","green salad",3,["food","green","salad"]],["🍿","popcorn",3,["corn","movie","pop","popcorn"]],["🧈","butter",3,["butter","dairy"]],["🧂","salt",3,["condiment","flavor","mad","salt","salty","shaker","taste","upset"]],["🥫","canned food",3,["can","canned","food"]],["🍱","bento box",3,["bento","box","food"]],["🍘","rice cracker",3,["cracker","food","rice"]],["🍙","rice ball",3,["ball","food","Japanese","rice"]],["🍚","cooked rice",3,["cooked","food","rice"]],["🍛","curry rice",3,["curry","food","rice"]],["🍜","steaming bowl",3,["bowl","chopsticks","food","noodle","pho","ramen","soup","steaming"]],["🍝","spaghetti",3,["food","meatballs","pasta","restaurant","spaghetti"]],["🍠","roasted sweet potato",3,["food","potato","roasted","sweet"]],["🍢","oden",3,["food","kebab","oden","restaurant","seafood","skewer","stick"]],["🍣","sushi",3,["food","sushi"]],["🍤","fried shrimp",3,["fried","prawn","shrimp","tempura"]],["🍥","fish cake with swirl",3,["cake","fish","food","pastry","restaurant","swirl"]],["🥮","moon cake",3,["autumn","cake","festival","moon","yuèbǐng"]],["🍡","dango",3,["dango","dessert","Japanese","skewer","stick","sweet"]],["🥟","dumpling",3,["dumpling","empanada","gyōza","jiaozi","pierogi","potsticker"]],["🥠","fortune cookie",3,["cookie","fortune","prophecy"]],["🥡","takeout box",3,["box","chopsticks","delivery","food","oyster","pail","takeout"]],["🍦","soft ice cream",3,["cream","dessert","food","ice","icecream","restaurant","serve","soft","sweet"]],["🍧","shaved ice",3,["dessert","ice","restaurant","shaved","sweet"]],["🍨","ice cream",3,["cream","dessert","food","ice","restaurant","sweet"]],["🍩","doughnut",3,["breakfast","dessert","donut","doughnut","food","sweet"]],["🍪","cookie",3,["chip","chocolate","cookie","dessert","sweet"]],["🎂","birthday cake",3,["bday","birthday","cake","celebration","dessert","happy","pastry","sweet"]],["🍰","shortcake",3,["cake","dessert","pastry","shortcake","slice","sweet"]],["🧁","cupcake",3,["bakery","cupcake","dessert","sprinkles","sugar","sweet","treat"]],["🥧","pie",3,["apple","filling","fruit","meat","pastry","pie","pumpkin","slice"]],["🍫","chocolate bar",3,["bar","candy","chocolate","dessert","halloween","sweet","tooth"]],["🍬","candy",3,["candy","cavities","dessert","halloween","restaurant","sweet","tooth","wrapper"]],["🍭","lollipop",3,["candy","dessert","food","lollipop","restaurant","sweet"]],["🍮","custard",3,["custard","dessert","pudding","sweet"]],["🍯","honey pot",3,["barrel","bear","food","honey","honeypot","jar","pot","sweet"]],["🍼","baby bottle",3,["babies","baby","birth","born","bottle","drink","infant","milk","newborn"]],["🥛","glass of milk",3,["drink","glass","milk"]],["☕","hot beverage",3,["beverage","cafe","caffeine","chai","coffee","drink","hot","morning","steaming","tea"]],["🫖","teapot",3,["brew","drink","food","pot","tea","teapot"]],["🍵","teacup without handle",3,["beverage","cup","drink","handle","oolong","tea","teacup"]],["🍶","sake",3,["bar","beverage","bottle","cup","drink","restaurant","sake"]],["🍾","bottle with popping cork",3,["bar","bottle","cork","drink","popping"]],["🍷","wine glass",3,["alcohol","bar","beverage","booze","club","drink","drinking","drinks","glass","restaurant","wine"]],["🍸","cocktail glass",3,["alcohol","bar","booze","club","cocktail","drink","drinking","drinks","glass","mad","martini","men"]],["🍹","tropical drink",3,["alcohol","bar","booze","club","cocktail","drink","drinking","drinks","drunk","mai","party","tai","tropical","tropics"]],["🍺","beer mug",3,["alcohol","ale","bar","beer","booze","drink","drinking","drinks","mug","octoberfest","oktoberfest","pint","stein","summer"]],["🍻","clinking beer mugs",3,["alcohol","bar","beer","booze","bottoms","cheers","clink","clinking","drinking","drinks","mugs"]],["🥂","clinking glasses",3,["celebrate","clink","clinking","drink","glass","glasses"]],["🥃","tumbler glass",3,["glass","liquor","scotch","shot","tumbler","whiskey","whisky"]],["🫗","pouring liquid",3,["accident","drink","empty","glass","liquid","oops","pour","pouring","spill","water"]],["🥤","cup with straw",3,["cup","drink","juice","malt","soda","soft","straw","water"]],["🧋","bubble tea",3,["boba","bubble","food","milk","pearl","tea"]],["🧃","beverage box",3,["beverage","box","juice","straw","sweet"]],["🧉","mate",3,["drink","mate"]],["🧊","ice",3,["cold","cube","ice","iceberg"]],["🥢","chopsticks",3,["chopsticks","hashi","jeotgarak","kuaizi"]],["🍽️","fork and knife with plate",3,["cooking","dinner","eat","fork","knife","plate"]],["🍴","fork and knife",3,["breakfast","breaky","cooking","cutlery","delicious","dinner","eat","feed","food","fork","hungry","knife","lunch","restaurant","yum","yummy"]],["🥄","spoon",3,["eat","spoon","tableware"]],["🔪","kitchen knife",3,["chef","cooking","hocho","kitchen","knife","tool","weapon"]],["🫙","jar",3,["condiment","container","empty","jar","nothing","sauce","store"]],["🏺","amphora",3,["amphora","Aquarius","cooking","drink","jug","tool","weapon","zodiac"]],["🌍","globe showing Europe-Africa",4,["Africa","earth","Europe","Europe-Africa","globe","showing","world"]],["🌎","globe showing Americas",4,["Americas","earth","globe","showing","world"]],["🌏","globe showing Asia-Australia",4,["Asia","Asia-Australia","Australia","earth","globe","showing","world"]],["🌐","globe with meridians",4,["earth","globe","internet","meridians","web","world","worldwide"]],["🗺️","world map",4,["map","world"]],["🗾","map of Japan",4,["Japan","map"]],["🧭","compass",4,["compass","direction","magnetic","navigation","orienteering"]],["🏔️","snow-capped mountain",4,["cold","mountain","snow","snow-capped"]],["⛰️","mountain",4,["mountain"]],["","landslide",4,["avalanche","danger","disaster","earthquake","mountain","mudslide","rocks"]],["🌋","volcano",4,["eruption","mountain","nature","volcano"]],["🗻","mount fuji",4,["fuji","mount","mountain","nature"]],["🏕️","camping",4,["camping"]],["🏖️","beach with umbrella",4,["beach","umbrella"]],["🏜️","desert",4,["desert"]],["🏝️","desert island",4,["desert","island"]],["🏞️","national park",4,["national","park"]],["🏟️","stadium",4,["stadium"]],["🏛️","classical building",4,["building","classical"]],["🏗️","building construction",4,["building","construction","crane"]],["🧱","brick",4,["brick","bricks","clay","mortar","wall"]],["🪨","rock",4,["boulder","heavy","rock","solid","stone","tough"]],["🪵","wood",4,["log","lumber","timber","wood"]],["🛖","hut",4,["home","house","hut","roundhouse","shelter","yurt"]],["🏘️","houses",4,["house","houses"]],["🏚️","derelict house",4,["derelict","home","house"]],["🏠","house",4,["building","country","heart","home","house","ranch","settle","simple","suburban","suburbia","where"]],["🏡","house with garden",4,["building","country","garden","heart","home","house","ranch","settle","simple","suburban","suburbia","where"]],["🏢","office building",4,["building","city","cubical","job","office"]],["🏣","Japanese post office",4,["building","Japanese","office","post"]],["🏤","post office",4,["building","European","office","post"]],["🏥","hospital",4,["building","doctor","hospital","medicine"]],["🏦","bank",4,["bank","building"]],["🏨","hotel",4,["building","hotel"]],["🏩","love hotel",4,["building","hotel","love"]],["🏪","convenience store",4,["24","building","convenience","hours","store"]],["🏫","school",4,["building","school"]],["🏬","department store",4,["building","department","store"]],["🏭","factory",4,["building","factory"]],["🏯","Japanese castle",4,["building","castle","Japanese"]],["🏰","castle",4,["building","castle","European"]],["💒","wedding",4,["chapel","hitched","nuptials","romance","wedding"]],["🗼","Tokyo tower",4,["Tokyo","tower"]],["🗽","Statue of Liberty",4,["liberty","Liberty","new","ny","nyc","statue","Statue","york"]],["⛪","church",4,["bless","chapel","Christian","church","cross","religion"]],["🕌","mosque",4,["islam","masjid","mosque","Muslim","religion"]],["🛕","hindu temple",4,["hindu","temple"]],["🕍","synagogue",4,["Jew","Jewish","judaism","religion","synagogue","temple"]],["⛩️","shinto shrine",4,["religion","shinto","shrine"]],["🕋","kaaba",4,["hajj","islam","kaaba","Muslim","religion","umrah"]],["⛲","fountain",4,["fountain"]],["⛺","tent",4,["camping","tent"]],["🌁","foggy",4,["fog","foggy"]],["🌃","night with stars",4,["night","star","stars"]],["🏙️","cityscape",4,["city","cityscape"]],["🌄","sunrise over mountains",4,["morning","mountains","over","sun","sunrise"]],["🌅","sunrise",4,["morning","nature","sun","sunrise"]],["🌆","cityscape at dusk",4,["at","building","city","cityscape","dusk","evening","landscape","sun","sunset"]],["🌇","sunset",4,["building","dusk","sun","sunset"]],["🌉","bridge at night",4,["at","bridge","night"]],["♨️","hot springs",4,["hot","hotsprings","springs","steaming"]],["🎠","carousel horse",4,["carousel","entertainment","horse"]],["🛝","playground slide",4,["amusement","park","play","playground","playing","slide","sliding","theme"]],["🎡","ferris wheel",4,["amusement","ferris","park","theme","wheel"]],["🎢","roller coaster",4,["amusement","coaster","park","roller","theme"]],["💈","barber pole",4,["barber","cut","fresh","haircut","pole","shave"]],["🎪","circus tent",4,["circus","tent"]],["🚂","locomotive",4,["caboose","engine","locomotive","railway","steam","train","trains","travel"]],["🚃","railway car",4,["car","electric","railway","train","tram","travel","trolleybus"]],["🚄","high-speed train",4,["high-speed","railway","shinkansen","speed","train"]],["🚅","bullet train",4,["bullet","high-speed","nose","railway","shinkansen","speed","train","travel"]],["🚆","train",4,["arrived","choo","railway","train"]],["🚇","metro",4,["metro","subway","travel"]],["🚈","light rail",4,["arrived","light","monorail","rail","railway"]],["🚉","station",4,["railway","station","train"]],["🚊","tram",4,["tram","trolleybus"]],["🚝","monorail",4,["monorail","vehicle"]],["🚞","mountain railway",4,["car","mountain","railway","trip"]],["🚋","tram car",4,["bus","car","tram","trolley","trolleybus"]],["🚌","bus",4,["bus","school","vehicle"]],["🚍","oncoming bus",4,["bus","cars","oncoming"]],["🚎","trolleybus",4,["bus","tram","trolley","trolleybus"]],["🚐","minibus",4,["bus","drive","minibus","van","vehicle"]],["🚑","ambulance",4,["ambulance","emergency","vehicle"]],["🚒","fire engine",4,["engine","fire","truck"]],["🚓","police car",4,["5–0","car","cops","patrol","police"]],["🚔","oncoming police car",4,["car","oncoming","police"]],["🚕","taxi",4,["cab","cabbie","car","drive","taxi","vehicle","yellow"]],["🚖","oncoming taxi",4,["cab","cabbie","cars","drove","hail","oncoming","taxi","yellow"]],["🚗","automobile",4,["automobile","car","driving","vehicle"]],["🚘","oncoming automobile",4,["automobile","car","cars","drove","oncoming","vehicle"]],["🚙","sport utility vehicle",4,["car","drive","recreational","sport","sportutility","utility","vehicle"]],["🛻","pickup truck",4,["automobile","car","flatbed","pick-up","pickup","transportation","truck"]],["🚚","delivery truck",4,["car","delivery","drive","truck","vehicle"]],["🚛","articulated lorry",4,["articulated","car","drive","lorry","move","semi","truck","vehicle"]],["🚜","tractor",4,["tractor","vehicle"]],["🏎️","racing car",4,["car","racing","zoom"]],["🏍️","motorcycle",4,["motorcycle","racing"]],["🛵","motor scooter",4,["motor","scooter"]],["🦽","manual wheelchair",4,["accessibility","manual","wheelchair"]],["🦼","motorized wheelchair",4,["accessibility","motorized","wheelchair"]],["🛺","auto rickshaw",4,["auto","rickshaw","tuk"]],["🚲","bicycle",4,["bicycle","bike","class","cycle","cycling","cyclist","gang","ride","spin","spinning"]],["🛴","kick scooter",4,["kick","scooter"]],["🛹","skateboard",4,["board","skate","skateboard","skater","wheels"]],["🛼","roller skate",4,["blades","roller","skate","skates","sport"]],["🚏","bus stop",4,["bus","busstop","stop"]],["🛣️","motorway",4,["highway","motorway","road"]],["🛤️","railway track",4,["railway","track","train"]],["🛢️","oil drum",4,["drum","oil"]],["⛽","fuel pump",4,["diesel","fuel","fuelpump","gas","gasoline","pump","station"]],["🛞","wheel",4,["car","circle","tire","turn","vehicle","wheel"]],["🚨","police car light",4,["alarm","alert","beacon","car","emergency","light","police","revolving","siren"]],["🚥","horizontal traffic light",4,["horizontal","intersection","light","signal","stop","stoplight","traffic"]],["🚦","vertical traffic light",4,["drove","intersection","light","signal","stop","stoplight","traffic","vertical"]],["🛑","stop sign",4,["octagonal","sign","stop"]],["🚧","construction",4,["barrier","construction"]],["","lighthouse",4,[]],["⚓","anchor",4,["anchor","ship","tool"]],["🛟","ring buoy",4,["buoy","float","life","lifesaver","preserver","rescue","ring","safety","save","saver","swim"]],["⛵","sailboat",4,["boat","resort","sailboat","sailing","sea","yacht"]],["🛶","canoe",4,["boat","canoe"]],["🚤","speedboat",4,["billionaire","boat","lake","luxury","millionaire","speedboat","summer","travel"]],["🛳️","passenger ship",4,["passenger","ship"]],["⛴️","ferry",4,["boat","ferry","passenger"]],["🛥️","motor boat",4,["boat","motor","motorboat"]],["🚢","ship",4,["boat","passenger","ship","travel"]],["✈️","airplane",4,["aeroplane","airplane","fly","flying","jet","plane","travel"]],["🛩️","small airplane",4,["aeroplane","airplane","plane","small"]],["🛫","airplane departure",4,["aeroplane","airplane","check-in","departure","departures","plane"]],["🛬","airplane arrival",4,["aeroplane","airplane","arrival","arrivals","arriving","landing","plane"]],["🪂","parachute",4,["hang-glide","parachute","parasail","skydive"]],["💺","seat",4,["chair","seat"]],["🚁","helicopter",4,["copter","helicopter","roflcopter","travel","vehicle"]],["🚟","suspension railway",4,["railway","suspension"]],["🚠","mountain cableway",4,["cable","cableway","gondola","lift","mountain","ski"]],["🚡","aerial tramway",4,["aerial","cable","car","gondola","ropeway","tramway"]],["🛰️","satellite",4,["satellite","space"]],["🚀","rocket",4,["launch","rocket","rockets","space","travel"]],["🛸","flying saucer",4,["aliens","extra","flying","saucer","terrestrial","UFO"]],["🛎️","bellhop bell",4,["bell","bellhop","hotel"]],["🧳","luggage",4,["bag","luggage","packing","roller","suitcase","travel"]],["⌛","hourglass done",4,["done","hourglass","sand","time","timer"]],["⏳","hourglass not done",4,["done","flowing","hourglass","hours","not","sand","timer","waiting","yolo"]],["⌚","watch",4,["clock","time","watch"]],["⏰","alarm clock",4,["alarm","clock","hours","hrs","late","time","waiting"]],["⏱️","stopwatch",4,["clock","stopwatch","time"]],["⏲️","timer clock",4,["clock","timer"]],["🕰️","mantelpiece clock",4,["clock","mantelpiece","time"]],["🕛","twelve o’clock",4,["12","12:00","clock","o’clock","time","twelve"]],["🕧","twelve-thirty",4,["12","12:30","30","clock","thirty","time","twelve","twelve-thirty"]],["🕐","one o’clock",4,["1","1:00","clock","o’clock","one","time"]],["🕜","one-thirty",4,["1","1:30","30","clock","one","one-thirty","thirty","time"]],["🕑","two o’clock",4,["2","2:00","clock","o’clock","time","two"]],["🕝","two-thirty",4,["2","2:30","30","clock","thirty","time","two","two-thirty"]],["🕒","three o’clock",4,["3","3:00","clock","o’clock","three","time"]],["🕞","three-thirty",4,["3","3:30","30","clock","thirty","three","three-thirty","time"]],["🕓","four o’clock",4,["4","4:00","clock","four","o’clock","time"]],["🕟","four-thirty",4,["30","4","4:30","clock","four","four-thirty","thirty","time"]],["🕔","five o’clock",4,["5","5:00","clock","five","o’clock","time"]],["🕠","five-thirty",4,["30","5","5:30","clock","five","five-thirty","thirty","time"]],["🕕","six o’clock",4,["6","6:00","clock","o’clock","six","time"]],["🕡","six-thirty",4,["30","6","6:30","clock","six","six-thirty","thirty"]],["🕖","seven o’clock",4,["0","7","7:00","clock","o’clock","seven"]],["🕢","seven-thirty",4,["30","7","7:30","clock","seven","seven-thirty","thirty"]],["🕗","eight o’clock",4,["8","8:00","clock","eight","o’clock","time"]],["🕣","eight-thirty",4,["30","8","8:30","clock","eight","eight-thirty","thirty","time"]],["🕘","nine o’clock",4,["9","9:00","clock","nine","o’clock","time"]],["🕤","nine-thirty",4,["30","9","9:30","clock","nine","nine-thirty","thirty","time"]],["🕙","ten o’clock",4,["0","10","10:00","clock","o’clock","ten"]],["🕥","ten-thirty",4,["10","10:30","30","clock","ten","ten-thirty","thirty","time"]],["🕚","eleven o’clock",4,["11","11:00","clock","eleven","o’clock","time"]],["🕦","eleven-thirty",4,["11","11:30","30","clock","eleven","eleven-thirty","thirty","time"]],["🌑","new moon",4,["dark","moon","new","space"]],["🌒","waxing crescent moon",4,["crescent","dreams","moon","space","waxing"]],["🌓","first quarter moon",4,["first","moon","quarter","space"]],["🌔","waxing gibbous moon",4,["gibbous","moon","space","waxing"]],["🌕","full moon",4,["full","moon","space"]],["🌖","waning gibbous moon",4,["gibbous","moon","space","waning"]],["🌗","last quarter moon",4,["last","moon","quarter","space"]],["🌘","waning crescent moon",4,["crescent","moon","space","waning"]],["🌙","crescent moon",4,["crescent","moon","ramadan","space"]],["🌚","new moon face",4,["face","moon","new","space"]],["🌛","first quarter moon face",4,["face","first","moon","quarter","space"]],["🌜","last quarter moon face",4,["dreams","face","last","moon","quarter"]],["🌡️","thermometer",4,["thermometer","weather"]],["☀️","sun",4,["bright","rays","space","sun","sunny","weather"]],["🌝","full moon face",4,["bright","face","full","moon"]],["🌞","sun with face",4,["beach","bright","day","face","heat","shine","sun","sunny","sunshine","weather"]],["🪐","ringed planet",4,["planet","ringed","saturn","saturnine"]],["⭐","star",4,["astronomy","medium","star","stars","white"]],["🌟","glowing star",4,["glittery","glow","glowing","night","shining","sparkle","star","win"]],["🌠","shooting star",4,["falling","night","shooting","space","star"]],["🌌","milky way",4,["milky","space","way"]],["☁️","cloud",4,["cloud","weather"]],["⛅","sun behind cloud",4,["behind","cloud","cloudy","sun","weather"]],["⛈️","cloud with lightning and rain",4,["cloud","lightning","rain","thunder","thunderstorm"]],["🌤️","sun behind small cloud",4,["behind","cloud","sun","weather"]],["🌥️","sun behind large cloud",4,["behind","cloud","sun","weather"]],["🌦️","sun behind rain cloud",4,["behind","cloud","rain","sun","weather"]],["🌧️","cloud with rain",4,["cloud","rain","weather"]],["🌨️","cloud with snow",4,["cloud","cold","snow","weather"]],["🌩️","cloud with lightning",4,["cloud","lightning","weather"]],["🌪️","tornado",4,["cloud","tornado","weather","whirlwind"]],["🌫️","fog",4,["cloud","fog","weather"]],["🌬️","wind face",4,["blow","cloud","face","wind"]],["🌀","cyclone",4,["cyclone","dizzy","hurricane","twister","typhoon","weather"]],["🌈","rainbow",4,["gay","genderqueer","glbt","glbtq","lesbian","lgbt","lgbtq","lgbtqia","nature","pride","queer","rain","rainbow","trans","transgender","weather"]],["🌂","closed umbrella",4,["closed","clothing","rain","umbrella"]],["☂️","umbrella",4,["clothing","rain","umbrella"]],["☔","umbrella with rain drops",4,["clothing","drop","drops","rain","umbrella","weather"]],["⛱️","umbrella on ground",4,["ground","rain","sun","umbrella"]],["⚡","high voltage",4,["danger","electric","electricity","high","lightning","nature","thunder","thunderbolt","voltage","zap"]],["❄️","snowflake",4,["cold","snow","snowflake","weather"]],["☃️","snowman",4,["cold","man","snow","snowman"]],["⛄","snowman without snow",4,["cold","man","snow","snowman"]],["☄️","comet",4,["comet","space"]],["","meteor",4,[]],["🔥","fire",4,["af","burn","fire","flame","hot","lit","litaf","tool"]],["💧","droplet",4,["cold","comic","drop","droplet","nature","sad","sweat","tear","water","weather"]],["🌊","water wave",4,["nature","ocean","surf","surfer","surfing","water","wave"]],["🎃","jack-o-lantern",5,["celebration","halloween","jack","jack-o-lantern","lantern","pumpkin"]],["🎄","Christmas tree",5,["celebration","Christmas","tree"]],["🎆","fireworks",5,["boom","celebration","entertainment","fireworks","yolo"]],["🎇","sparkler",5,["boom","celebration","fireworks","sparkle","sparkler"]],["🧨","firecracker",5,["dynamite","explosive","fire","firecracker","fireworks","light","pop","popping","spark"]],["✨","sparkles",5,["*","magic","sparkle","sparkles","star"]],["🎈","balloon",5,["balloon","birthday","celebrate","celebration"]],["🎉","party popper",5,["awesome","birthday","celebrate","celebration","excited","hooray","party","popper","tada","woohoo"]],["🎊","confetti ball",5,["ball","celebrate","celebration","confetti","party","woohoo"]],["🎋","tanabata tree",5,["banner","celebration","Japanese","tanabata","tree"]],["🎍","pine decoration",5,["bamboo","celebration","decoration","Japanese","pine","plant"]],["🎎","Japanese dolls",5,["celebration","doll","dolls","festival","Japanese"]],["🎏","carp streamer",5,["carp","celebration","streamer"]],["🎐","wind chime",5,["bell","celebration","chime","wind"]],["🎑","moon viewing ceremony",5,["celebration","ceremony","moon","viewing"]],["🧧","red envelope",5,["envelope","gift","good","hóngbāo","lai","luck","money","red","see"]],["🎀","ribbon",5,["celebration","ribbon"]],["🎁","wrapped gift",5,["birthday","bow","box","celebration","christmas","gift","present","surprise","wrapped"]],["🎗️","reminder ribbon",5,["celebration","reminder","ribbon"]],["🎟️","admission tickets",5,["admission","ticket","tickets"]],["🎫","ticket",5,["admission","stub","ticket"]],["🎖️","military medal",5,["award","celebration","medal","military"]],["🏆","trophy",5,["champion","champs","prize","slay","sport","trophy","victory","win","winning"]],["🏅","sports medal",5,["award","gold","medal","sports","winner"]],["🥇","1st place medal",5,["1st","first","gold","medal","place"]],["🥈","2nd place medal",5,["2nd","medal","place","second","silver"]],["🥉","3rd place medal",5,["3rd","bronze","medal","place","third"]],["⚽","soccer ball",5,["ball","football","futbol","soccer","sport"]],["⚾","baseball",5,["ball","baseball","sport"]],["🥎","softball",5,["ball","glove","softball","sports","underarm"]],["🏀","basketball",5,["ball","basketball","hoop","sport"]],["🏐","volleyball",5,["ball","game","volleyball"]],["🏈","american football",5,["american","ball","bowl","football","sport","super"]],["🏉","rugby football",5,["ball","football","rugby","sport"]],["🎾","tennis",5,["ball","racquet","sport","tennis"]],["🥏","flying disc",5,["disc","flying","ultimate"]],["🎳","bowling",5,["ball","bowling","game","sport","strike"]],["🏏","cricket game",5,["ball","bat","cricket","game"]],["🏑","field hockey",5,["ball","field","game","hockey","stick"]],["🏒","ice hockey",5,["game","hockey","ice","puck","stick"]],["🥍","lacrosse",5,["ball","goal","lacrosse","sports","stick"]],["🏓","ping pong",5,["ball","bat","game","paddle","ping","pingpong","pong","table","tennis"]],["🏸","badminton",5,["badminton","birdie","game","racquet","shuttlecock"]],["🥊","boxing glove",5,["boxing","glove"]],["🥋","martial arts uniform",5,["arts","judo","karate","martial","taekwondo","uniform"]],["🥅","goal net",5,["goal","net"]],["⛳","flag in hole",5,["flag","golf","hole","sport"]],["⛸️","ice skate",5,["ice","skate","skating"]],["🎣","fishing pole",5,["entertainment","fish","fishing","pole","sport"]],["🤿","diving mask",5,["diving","mask","scuba","snorkeling"]],["🎽","running shirt",5,["athletics","running","sash","shirt"]],["🎿","skis",5,["ski","skis","snow","sport"]],["🛷","sled",5,["luge","sled","sledge","sleigh","snow","toboggan"]],["🥌","curling stone",5,["curling","game","rock","stone"]],["🎯","bullseye",5,["bull","bullseye","dart","direct","entertainment","game","hit","target"]],["🪀","yo-yo",5,["fluctuate","toy","yo-yo"]],["🪁","kite",5,["fly","kite","soar"]],["🔫","water pistol",5,["gun","handgun","pistol","revolver","tool","water","weapon"]],["🎱","pool 8 ball",5,["8","8ball","ball","billiard","eight","game","pool"]],["🔮","crystal ball",5,["ball","crystal","fairy","fairytale","fantasy","fortune","future","magic","tale","tool"]],["🪄","magic wand",5,["magic","magician","wand","witch","wizard"]],["🎮","video game",5,["controller","entertainment","game","video"]],["🕹️","joystick",5,["game","joystick","video","videogame"]],["🎰","slot machine",5,["casino","gamble","gambling","game","machine","slot","slots"]],["🎲","game die",5,["dice","die","entertainment","game"]],["🧩","puzzle piece",5,["clue","interlocking","jigsaw","piece","puzzle"]],["🧸","teddy bear",5,["bear","plaything","plush","stuffed","teddy","toy"]],["🪅","piñata",5,["candy","celebrate","celebration","cinco","de","festive","mayo","party","pinada","pinata","piñata"]],["🪩","mirror ball",5,["ball","dance","disco","glitter","mirror","party"]],["🪆","nesting dolls",5,["babooshka","baboushka","babushka","doll","dolls","matryoshka","nesting","russia"]],["♠️","spade suit",5,["card","game","spade","suit"]],["♥️","heart suit",5,["card","emotion","game","heart","hearts","suit"]],["♦️","diamond suit",5,["card","diamond","game","suit"]],["♣️","club suit",5,["card","club","clubs","game","suit"]],["♟️","chess pawn",5,["chess","dupe","expendable","pawn"]],["🃏","joker",5,["card","game","joker","wildcard"]],["🀄","mahjong red dragon",5,["dragon","game","mahjong","red"]],["🎴","flower playing cards",5,["card","cards","flower","game","Japanese","playing"]],["🎭","performing arts",5,["actor","actress","art","arts","entertainment","mask","performing","theater","theatre","thespian"]],["🖼️","framed picture",5,["art","frame","framed","museum","painting","picture"]],["🎨","artist palette",5,["art","artist","artsy","arty","colorful","creative","entertainment","museum","painter","painting","palette"]],["🧵","thread",5,["needle","sewing","spool","string","thread"]],["🪡","sewing needle",5,["embroidery","needle","sew","sewing","stitches","sutures","tailoring","thread"]],["🧶","yarn",5,["ball","crochet","knit","yarn"]],["🪢","knot",5,["cord","knot","rope","tangled","tie","twine","twist"]],["👓","glasses",6,["clothing","eye","eyeglasses","eyewear","glasses"]],["🕶️","sunglasses",6,["dark","eye","eyewear","glasses","sunglasses"]],["🥽","goggles",6,["dive","eye","goggles","protection","scuba","swimming","welding"]],["🥼","lab coat",6,["clothes","coat","doctor","dr","experiment","jacket","lab","scientist","white"]],["🦺","safety vest",6,["emergency","safety","vest"]],["👔","necktie",6,["clothing","employed","necktie","serious","shirt","tie"]],["👕","t-shirt",6,["blue","casual","clothes","clothing","collar","dressed","shirt","shopping","t-shirt","tshirt","weekend"]],["👖","jeans",6,["blue","casual","clothes","clothing","denim","dressed","jeans","pants","shopping","trousers","weekend"]],["🧣","scarf",6,["bundle","cold","neck","scarf","up"]],["🧤","gloves",6,["gloves","hand"]],["🧥","coat",6,["brr","bundle","coat","cold","jacket","up"]],["🧦","socks",6,["socks","stocking"]],["👗","dress",6,["clothes","clothing","dress","dressed","fancy","shopping"]],["👘","kimono",6,["clothing","comfortable","kimono"]],["🥻","sari",6,["clothing","dress","sari"]],["🩱","one-piece swimsuit",6,["bathing","one-piece","suit","swimsuit"]],["🩲","briefs",6,["bathing","briefs","one-piece","suit","swimsuit","underwear"]],["🩳","shorts",6,["bathing","pants","shorts","suit","swimsuit","underwear"]],["👙","bikini",6,["bathing","beach","bikini","clothing","pool","suit","swim"]],["👚","woman’s clothes",6,["blouse","clothes","clothing","collar","dress","dressed","lady","shirt","shopping","woman","woman’s"]],["🪭","folding hand fan",6,["clack","clap","cool","cooling","dance","fan","flirt","flutter","folding","hand","hot","shy"]],["👛","purse",6,["clothes","clothing","coin","dress","fancy","handbag","purse","shopping"]],["👜","handbag",6,["bag","clothes","clothing","dress","handbag","lady","purse","shopping"]],["👝","clutch bag",6,["bag","clothes","clothing","clutch","dress","handbag","pouch","purse"]],["🛍️","shopping bags",6,["bag","bags","hotel","shopping"]],["🎒","backpack",6,["backpack","backpacking","bag","bookbag","education","rucksack","satchel","school"]],["🩴","thong sandal",6,["beach","flip","flop","sandal","sandals","shoe","thong","thongs","zōri"]],["👞","man’s shoe",6,["brown","clothes","clothing","feet","foot","kick","man","man’s","shoe","shoes","shopping"]],["👟","running shoe",6,["athletic","clothes","clothing","fast","kick","running","shoe","shoes","shopping","sneaker","tennis"]],["🥾","hiking boot",6,["backpacking","boot","brown","camping","hiking","outdoors","shoe"]],["🥿","flat shoe",6,["ballet","comfy","flat","flats","shoe","slip-on","slipper"]],["👠","high-heeled shoe",6,["clothes","clothing","dress","fashion","heel","heels","high-heeled","shoe","shoes","shopping","stiletto","woman"]],["👡","woman’s sandal",6,["clothing","sandal","shoe","woman","woman’s"]],["🩰","ballet shoes",6,["ballet","dance","shoes"]],["👢","woman’s boot",6,["boot","clothes","clothing","dress","shoe","shoes","shopping","woman","woman’s"]],["🪮","hair pick",6,["Afro","comb","groom","hair","pick"]],["👑","crown",6,["clothing","crown","family","king","medieval","queen","royal","royalty","win"]],["👒","woman’s hat",6,["clothes","clothing","garden","hat","hats","party","woman","woman’s"]],["🎩","top hat",6,["clothes","clothing","fancy","formal","hat","magic","top","tophat"]],["🎓","graduation cap",6,["cap","celebration","clothing","education","graduation","hat","scholar"]],["🧢","billed cap",6,["baseball","bent","billed","cap","dad","hat"]],["🪖","military helmet",6,["army","helmet","military","soldier","war","warrior"]],["⛑️","rescue worker’s helmet",6,["aid","cross","face","hat","helmet","rescue","worker’s"]],["📿","prayer beads",6,["beads","clothing","necklace","prayer","religion"]],["💄","lipstick",6,["cosmetics","date","lipstick","makeup"]],["💍","ring",6,["diamond","engaged","engagement","married","ring","romance","shiny","sparkling","wedding"]],["💎","gem stone",6,["diamond","engagement","gem","jewel","money","romance","stone","wedding"]],["🔇","muted speaker",6,["mute","muted","quiet","silent","sound","speaker"]],["🔈","speaker low volume",6,["low","soft","sound","speaker","volume"]],["🔉","speaker medium volume",6,["medium","sound","speaker","volume"]],["🔊","speaker high volume",6,["high","loud","music","sound","speaker","volume"]],["📢","loudspeaker",6,["address","communication","loud","loudspeaker","public","sound"]],["📣","megaphone",6,["cheering","megaphone","sound"]],["📯","postal horn",6,["horn","post","postal"]],["🔔","bell",6,["bell","break","church","sound"]],["🔕","bell with slash",6,["bell","forbidden","mute","no","not","prohibited","quiet","silent","slash","sound"]],["🎼","musical score",6,["music","musical","note","score"]],["🎵","musical note",6,["music","musical","note","sound"]],["🎶","musical notes",6,["music","musical","note","notes","sound"]],["🎙️","studio microphone",6,["mic","microphone","music","studio"]],["🎚️","level slider",6,["level","music","slider"]],["🎛️","control knobs",6,["control","knobs","music"]],["🎤","microphone",6,["karaoke","mic","microphone","music","sing","sound"]],["🎧","headphone",6,["earbud","headphone","sound"]],["📻","radio",6,["entertainment","radio","tbt","video"]],["🎷","saxophone",6,["instrument","music","sax","saxophone"]],["🎺","trumpet",6,["instrument","music","trumpet"]],["","trombone",6,["brass","instrument","jazz","music","sad","slide"]],["🪗","accordion",6,["accordion","box","concertina","instrument","music","squeeze","squeezebox"]],["🎸","guitar",6,["guitar","instrument","music","strat"]],["🎹","musical keyboard",6,["instrument","keyboard","music","musical","piano"]],["🎻","violin",6,["instrument","music","violin"]],["🪕","banjo",6,["banjo","music","stringed"]],["🥁","drum",6,["drum","drumsticks","music"]],["🪘","long drum",6,["beat","conga","drum","instrument","long","rhythm"]],["🪇","maracas",6,["cha","dance","instrument","maracas","music","party","percussion","rattle","shake","shaker"]],["🪈","flute",6,["band","fife","flautist","flute","instrument","marching","music","orchestra","piccolo","pipe","recorder","woodwind"]],["","harp",6,["cupid","harp","instrument","love","music","orchestra"]],["📱","mobile phone",6,["cell","communication","mobile","phone","telephone"]],["📲","mobile phone with arrow",6,["arrow","build","call","cell","communication","mobile","phone","receive","telephone"]],["☎️","telephone",6,["phone","telephone"]],["📞","telephone receiver",6,["communication","phone","receiver","telephone","voip"]],["📟","pager",6,["communication","pager"]],["📠","fax machine",6,["communication","fax","machine"]],["🔋","battery",6,["battery"]],["🪫","low battery",6,["battery","drained","electronic","energy","low","power"]],["🔌","electric plug",6,["electric","electricity","plug"]],["💻","laptop",6,["computer","laptop","office","pc","personal"]],["🖥️","desktop computer",6,["computer","desktop","monitor"]],["🖨️","printer",6,["computer","printer"]],["⌨️","keyboard",6,["computer","keyboard"]],["🖱️","computer mouse",6,["computer","mouse"]],["🖲️","trackball",6,["computer","trackball"]],["💽","computer disk",6,["computer","disk","minidisk","optical"]],["💾","floppy disk",6,["computer","disk","floppy"]],["💿","optical disk",6,["blu-ray","CD","computer","disk","dvd","optical"]],["📀","dvd",6,["Blu-ray","cd","computer","disk","DVD","optical"]],["🧮","abacus",6,["abacus","calculation","calculator"]],["🎥","movie camera",6,["bollywood","camera","cinema","film","hollywood","movie","record"]],["🎞️","film frames",6,["cinema","film","frames","movie"]],["📽️","film projector",6,["cinema","film","movie","projector","video"]],["🎬","clapper board",6,["action","board","clapper","movie"]],["📺","television",6,["television","tv","video"]],["📷","camera",6,["camera","photo","selfie","snap","tbt","trip","video"]],["📸","camera with flash",6,["camera","flash","video"]],["📹","video camera",6,["camcorder","camera","tbt","video"]],["📼","videocassette",6,["old","school","tape","vcr","vhs","video","videocassette"]],["🔍","magnifying glass tilted left",6,["glass","lab","left","left-pointing","magnifying","science","search","tilted","tool"]],["🔎","magnifying glass tilted right",6,["contact","glass","lab","magnifying","right","right-pointing","science","search","tilted","tool"]],["🕯️","candle",6,["candle","light"]],["💡","light bulb",6,["bulb","comic","electric","idea","light"]],["🔦","flashlight",6,["electric","flashlight","light","tool","torch"]],["🏮","red paper lantern",6,["bar","lantern","light","paper","red","restaurant"]],["🪔","diya lamp",6,["diya","lamp","light","oil"]],["📔","notebook with decorative cover",6,["book","cover","decorated","decorative","education","notebook","school","writing"]],["📕","closed book",6,["book","closed","education"]],["📖","open book",6,["book","education","fantasy","knowledge","library","novels","open","reading"]],["📗","green book",6,["book","education","fantasy","green","library","reading"]],["📘","blue book",6,["blue","book","education","fantasy","library","reading"]],["📙","orange book",6,["book","education","fantasy","library","orange","reading"]],["📚","books",6,["book","books","education","fantasy","knowledge","library","novels","reading","school","study"]],["📓","notebook",6,["notebook"]],["📒","ledger",6,["ledger","notebook"]],["📃","page with curl",6,["curl","document","page","paper"]],["📜","scroll",6,["paper","scroll"]],["📄","page facing up",6,["document","facing","page","paper","up"]],["📰","newspaper",6,["communication","news","newspaper","paper"]],["🗞️","rolled-up newspaper",6,["news","newspaper","paper","rolled","rolled-up"]],["📑","bookmark tabs",6,["bookmark","mark","marker","tabs"]],["🔖","bookmark",6,["bookmark","mark"]],["🏷️","label",6,["label","tag"]],["🪙","coin",6,["coin","dollar","euro","gold","metal","money","rich","silver","treasure"]],["💰","money bag",6,["bag","bank","bet","billion","cash","cost","dollar","gold","million","money","moneybag","paid","paying","pot","rich","win"]],["","treasure chest",6,["gem","gold","jewels","loot","money","prize","silver","valuables","wealth"]],["💴","yen banknote",6,["bank","banknote","bill","currency","money","note","yen"]],["💵","dollar banknote",6,["bank","banknote","bill","currency","dollar","money","note"]],["💶","euro banknote",6,["100","bank","banknote","bill","currency","euro","money","note","rich"]],["💷","pound banknote",6,["bank","banknote","bill","billion","cash","currency","money","note","pound","pounds"]],["💸","money with wings",6,["bank","banknote","bill","billion","cash","dollar","fly","million","money","note","pay","wings"]],["💳","credit card",6,["bank","card","cash","charge","credit","money","pay"]],["🧾","receipt",6,["accounting","bookkeeping","evidence","invoice","proof","receipt"]],["💹","chart increasing with yen",6,["bank","chart","currency","graph","growth","increasing","market","money","rise","trend","upward","yen"]],["✉️","envelope",6,["e-mail","email","envelope","letter"]],["📧","e-mail",6,["e-mail","email","letter","mail"]],["📨","incoming envelope",6,["delivering","e-mail","email","envelope","incoming","letter","mail","receive","sent"]],["📩","envelope with arrow",6,["arrow","communication","down","e-mail","email","envelope","letter","mail","outgoing","send","sent"]],["📤","outbox tray",6,["box","email","letter","mail","outbox","sent","tray"]],["📥","inbox tray",6,["box","email","inbox","letter","mail","receive","tray","zero"]],["📦","package",6,["box","communication","delivery","package","parcel","shipping"]],["📫","closed mailbox with raised flag",6,["closed","communication","flag","mail","mailbox","postbox","raised"]],["📪","closed mailbox with lowered flag",6,["closed","flag","lowered","mail","mailbox","postbox"]],["📬","open mailbox with raised flag",6,["flag","mail","mailbox","open","postbox","raised"]],["📭","open mailbox with lowered flag",6,["flag","lowered","mail","mailbox","open","postbox"]],["📮","postbox",6,["mail","mailbox","postbox"]],["🗳️","ballot box with ballot",6,["ballot","box"]],["✏️","pencil",6,["pencil"]],["✒️","black nib",6,["black","nib","pen"]],["🖋️","fountain pen",6,["fountain","pen"]],["🖊️","pen",6,["ballpoint","pen"]],["🖌️","paintbrush",6,["paintbrush","painting"]],["🖍️","crayon",6,["crayon"]],["📝","memo",6,["communication","media","memo","notes","pencil"]],["","eraser",6,[]],["💼","briefcase",6,["briefcase","office"]],["📁","file folder",6,["file","folder"]],["📂","open file folder",6,["file","folder","open"]],["🗂️","card index dividers",6,["card","dividers","index"]],["📅","calendar",6,["calendar","date"]],["📆","tear-off calendar",6,["calendar","tear-off"]],["🗒️","spiral notepad",6,["note","notepad","pad","spiral"]],["🗓️","spiral calendar",6,["calendar","pad","spiral"]],["📇","card index",6,["card","index","old","rolodex","school"]],["📈","chart increasing",6,["chart","data","graph","growth","increasing","right","trend","up","upward"]],["📉","chart decreasing",6,["chart","data","decreasing","down","downward","graph","negative","trend"]],["📊","bar chart",6,["bar","chart","data","graph"]],["📋","clipboard",6,["clipboard","do","list","notes"]],["📌","pushpin",6,["collage","pin","pushpin"]],["📍","round pushpin",6,["location","map","pin","pushpin","round"]],["📎","paperclip",6,["paperclip"]],["🖇️","linked paperclips",6,["link","linked","paperclip","paperclips"]],["📏","straight ruler",6,["angle","edge","math","ruler","straight","straightedge"]],["📐","triangular ruler",6,["angle","math","rule","ruler","set","slide","triangle","triangular"]],["✂️","scissors",6,["cut","cutting","paper","scissors","tool"]],["🗃️","card file box",6,["box","card","file"]],["🗄️","file cabinet",6,["cabinet","file","filing","paper"]],["🗑️","wastebasket",6,["can","garbage","trash","waste","wastebasket"]],["🔒","locked",6,["closed","lock","locked","private"]],["🔓","unlocked",6,["cracked","lock","open","unlock","unlocked"]],["🔏","locked with pen",6,["ink","lock","locked","nib","pen","privacy"]],["🔐","locked with key",6,["bike","closed","key","lock","locked","secure"]],["🔑","key",6,["key","keys","lock","major","password","unlock"]],["🗝️","old key",6,["clue","key","lock","old"]],["","net with handle",6,[]],["🔨","hammer",6,["hammer","home","improvement","repairs","tool"]],["🪓","axe",6,["ax","axe","chop","hatchet","split","wood"]],["⛏️","pick",6,["hammer","mining","pick","tool"]],["⚒️","hammer and pick",6,["hammer","pick","tool"]],["🛠️","hammer and wrench",6,["hammer","spanner","tool","wrench"]],["🗡️","dagger",6,["dagger","knife","weapon"]],["⚔️","crossed swords",6,["crossed","swords","weapon"]],["💣","bomb",6,["bomb","boom","comic","dangerous","explosion","hot"]],["🪃","boomerang",6,["boomerang","rebound","repercussion","weapon"]],["🏹","bow and arrow",6,["archer","archery","arrow","bow","Sagittarius","tool","weapon","zodiac"]],["🛡️","shield",6,["shield","weapon"]],["🪚","carpentry saw",6,["carpenter","carpentry","cut","lumber","saw","tool","trim"]],["🔧","wrench",6,["home","improvement","spanner","tool","wrench"]],["🪛","screwdriver",6,["flathead","handy","screw","screwdriver","tool"]],["🔩","nut and bolt",6,["bolt","home","improvement","nut","tool"]],["⚙️","gear",6,["cog","cogwheel","gear","tool"]],["🗜️","clamp",6,["clamp","compress","tool","vice"]],["⚖️","balance scale",6,["balance","justice","Libra","scale","scales","tool","weight","zodiac"]],["🦯","white cane",6,["accessibility","blind","cane","probing","white"]],["🔗","link",6,["link","links"]],["⛓️💥","broken chain",6,["break","breaking","broken","chain","cuffs","freedom"]],["⛓️","chains",6,["chain","chains"]],["🪝","hook",6,["catch","crook","curve","ensnare","hook","point","selling"]],["🧰","toolbox",6,["box","chest","mechanic","red","tool","toolbox"]],["🧲","magnet",6,["attraction","horseshoe","magnet","magnetic","negative","positive","shape","u"]],["🪜","ladder",6,["climb","ladder","rung","step"]],["","shovel",6,["bury","dig","garden","hole","plant","scoop","shovel","snow","spade"]],["⚗️","alembic",6,["alembic","chemistry","tool"]],["🧪","test tube",6,["chemist","chemistry","experiment","lab","science","test","tube"]],["🧫","petri dish",6,["bacteria","biologist","biology","culture","dish","lab","petri"]],["🧬","dna",6,["biologist","dna","evolution","gene","genetics","life"]],["🔬","microscope",6,["experiment","lab","microscope","science","tool"]],["🔭","telescope",6,["contact","extraterrestrial","science","telescope","tool"]],["📡","satellite antenna",6,["aliens","antenna","contact","dish","satellite","science"]],["💉","syringe",6,["doctor","flu","medicine","needle","shot","sick","syringe","tool","vaccination"]],["🩸","drop of blood",6,["bleed","blood","donation","drop","injury","medicine","menstruation"]],["💊","pill",6,["doctor","drugs","medicated","medicine","pill","pills","sick","vitamin"]],["🩹","adhesive bandage",6,["adhesive","bandage"]],["🩼","crutch",6,["aid","cane","crutch","disability","help","hurt","injured","mobility","stick"]],["🩺","stethoscope",6,["doctor","heart","medicine","stethoscope"]],["🩻","x-ray",6,["bones","doctor","medical","skeleton","skull","x-ray","xray"]],["🚪","door",6,["back","closet","door","front"]],["🛗","elevator",6,["accessibility","elevator","hoist","lift"]],["🪞","mirror",6,["makeup","mirror","reflection","reflector","speculum"]],["🪟","window",6,["air","frame","fresh","opening","transparent","view","window"]],["🛏️","bed",6,["bed","hotel","sleep"]],["🛋️","couch and lamp",6,["couch","hotel","lamp"]],["🪑","chair",6,["chair","seat","sit"]],["🚽","toilet",6,["bathroom","toilet"]],["🪠","plunger",6,["cup","force","plumber","plunger","poop","suction","toilet"]],["🚿","shower",6,["shower","water"]],["🛁","bathtub",6,["bath","bathtub"]],["🪤","mouse trap",6,["bait","cheese","lure","mouse","mousetrap","snare","trap"]],["🪒","razor",6,["razor","sharp","shave"]],["🧴","lotion bottle",6,["bottle","lotion","moisturizer","shampoo","sunscreen"]],["🧷","safety pin",6,["diaper","pin","punk","rock","safety"]],["🧹","broom",6,["broom","cleaning","sweeping","witch"]],["🧺","basket",6,["basket","farming","laundry","picnic"]],["🧻","roll of paper",6,["paper","roll","toilet","towels"]],["🪣","bucket",6,["bucket","cask","pail","vat"]],["🧼","soap",6,["bar","bathing","clean","cleaning","lather","soap","soapdish"]],["🫧","bubbles",6,["bubble","bubbles","burp","clean","floating","pearl","soap","underwater"]],["🪥","toothbrush",6,["bathroom","brush","clean","dental","hygiene","teeth","toiletry","toothbrush"]],["🧽","sponge",6,["absorbing","cleaning","porous","soak","sponge"]],["🧯","fire extinguisher",6,["extinguish","extinguisher","fire","quench"]],["🛒","shopping cart",6,["cart","shopping","trolley"]],["🚬","cigarette",6,["cigarette","smoking"]],["⚰️","coffin",6,["coffin","dead","death","vampire"]],["🪦","headstone",6,["cemetery","dead","grave","graveyard","headstone","memorial","rip","tomb","tombstone"]],["⚱️","funeral urn",6,["ashes","death","funeral","urn"]],["🧿","nazar amulet",6,["amulet","bead","blue","charm","evil-eye","nazar","talisman"]],["🪬","hamsa",6,["amulet","Fatima","fortune","guide","hamsa","hand","Mary","Miriam","palm","protect","protection"]],["🗿","moai",6,["face","moai","moyai","statue","stoneface","travel"]],["🪧","placard",6,["card","demonstration","notice","picket","placard","plaque","protest","sign"]],["🪪","identification card",6,["card","credentials","document","ID","identification","license","security"]],["🏧","ATM sign",7,["ATM","automated","bank","cash","money","sign","teller"]],["🚮","litter in bin sign",7,["bin","litter","litterbin","sign"]],["🚰","potable water",7,["drinking","potable","water"]],["♿","wheelchair symbol",7,["access","handicap","symbol","wheelchair"]],["🚹","men’s room",7,["bathroom","lavatory","man","men’s","restroom","room","toilet","WC"]],["🚺","women’s room",7,["bathroom","lavatory","restroom","room","toilet","WC","woman","women’s"]],["🚻","restroom",7,["bathroom","lavatory","restroom","toilet","WC"]],["🚼","baby symbol",7,["baby","changing","symbol"]],["🚾","water closet",7,["bathroom","closet","lavatory","restroom","toilet","water","WC"]],["🛂","passport control",7,["control","passport"]],["🛃","customs",7,["customs","packing"]],["🛄","baggage claim",7,["arrived","baggage","bags","case","checked","claim","journey","packing","plane","ready","travel","trip"]],["🛅","left luggage",7,["baggage","case","left","locker","luggage"]],["⚠️","warning",7,["caution","warning"]],["🚸","children crossing",7,["child","children","crossing","pedestrian","traffic"]],["⛔","no entry",7,["do","entry","fail","forbidden","no","not","pass","prohibited","traffic"]],["🚫","prohibited",7,["entry","forbidden","no","not","prohibited","smoke"]],["🚳","no bicycles",7,["bicycle","bicycles","bike","forbidden","no","not","prohibited"]],["🚭","no smoking",7,["forbidden","no","not","prohibited","smoke","smoking"]],["🚯","no littering",7,["forbidden","litter","littering","no","not","prohibited"]],["🚱","non-potable water",7,["dry","non-drinking","non-potable","prohibited","water"]],["🚷","no pedestrians",7,["forbidden","no","not","pedestrian","pedestrians","prohibited"]],["📵","no mobile phones",7,["cell","forbidden","mobile","no","not","phone","phones","prohibited","telephone"]],["🔞","no one under eighteen",7,["18","age","eighteen","forbidden","no","not","one","prohibited","restriction","underage"]],["☢️","radioactive",7,["radioactive","sign"]],["☣️","biohazard",7,["biohazard","sign"]],["⬆️","up arrow",7,["arrow","cardinal","direction","north","up"]],["↗️","up-right arrow",7,["arrow","direction","intercardinal","northeast","up-right"]],["➡️","right arrow",7,["arrow","cardinal","direction","east","right"]],["↘️","down-right arrow",7,["arrow","direction","down-right","intercardinal","southeast"]],["⬇️","down arrow",7,["arrow","cardinal","direction","down","south"]],["↙️","down-left arrow",7,["arrow","direction","down-left","intercardinal","southwest"]],["⬅️","left arrow",7,["arrow","cardinal","direction","left","west"]],["↖️","up-left arrow",7,["arrow","direction","intercardinal","northwest","up-left"]],["↕️","up-down arrow",7,["arrow","up-down"]],["↔️","left-right arrow",7,["arrow","left-right"]],["↩️","right arrow curving left",7,["arrow","curving","left","right"]],["↪️","left arrow curving right",7,["arrow","curving","left","right"]],["⤴️","right arrow curving up",7,["arrow","curving","right","up"]],["⤵️","right arrow curving down",7,["arrow","curving","down","right"]],["🔃","clockwise vertical arrows",7,["arrow","arrows","clockwise","refresh","reload","vertical"]],["🔄","counterclockwise arrows button",7,["again","anticlockwise","arrow","arrows","button","counterclockwise","deja","refresh","rewindershins","vu"]],["🔙","BACK arrow",7,["arrow","BACK"]],["🔚","END arrow",7,["arrow","END"]],["🔛","ON! arrow",7,["arrow","mark","ON!"]],["🔜","SOON arrow",7,["arrow","brb","omw","SOON"]],["🔝","TOP arrow",7,["arrow","homie","TOP","up"]],["🛐","place of worship",7,["place","pray","religion","worship"]],["⚛️","atom symbol",7,["atheist","atom","symbol"]],["🕉️","om",7,["Hindu","om","religion"]],["✡️","star of David",7,["David","Jew","Jewish","judaism","religion","star"]],["☸️","wheel of dharma",7,["Buddhist","dharma","religion","wheel"]],["☯️","yin yang",7,["difficult","lives","religion","tao","taoist","total","yang","yin","yinyang"]],["✝️","latin cross",7,["christ","Christian","cross","latin","religion"]],["☦️","orthodox cross",7,["Christian","cross","orthodox","religion"]],["☪️","star and crescent",7,["crescent","islam","Muslim","ramadan","religion","star"]],["☮️","peace symbol",7,["healing","peace","peaceful","symbol"]],["🕎","menorah",7,["candelabrum","candlestick","hanukkah","jewish","judaism","menorah","religion"]],["🔯","dotted six-pointed star",7,["dotted","fortune","jewish","judaism","six-pointed","star"]],["🪯","khanda",7,["Deg","Fateh","Khalsa","Khanda","religion","Sikh","Sikhism","Tegh"]],["♈","Aries",7,["Aries","horoscope","ram","zodiac"]],["♉","Taurus",7,["bull","horoscope","ox","Taurus","zodiac"]],["♊","Gemini",7,["Gemini","horoscope","twins","zodiac"]],["♋","Cancer",7,["Cancer","crab","horoscope","zodiac"]],["♌","Leo",7,["horoscope","Leo","lion","zodiac"]],["♍","Virgo",7,["horoscope","Virgo","zodiac"]],["♎","Libra",7,["balance","horoscope","justice","Libra","scales","zodiac"]],["♏","Scorpio",7,["horoscope","Scorpio","scorpion","Scorpius","zodiac"]],["♐","Sagittarius",7,["archer","horoscope","Sagittarius","zodiac"]],["♑","Capricorn",7,["Capricorn","goat","horoscope","zodiac"]],["♒","Aquarius",7,["Aquarius","bearer","horoscope","water","zodiac"]],["♓","Pisces",7,["fish","horoscope","Pisces","zodiac"]],["⛎","Ophiuchus",7,["bearer","Ophiuchus","serpent","snake","zodiac"]],["🔀","shuffle tracks button",7,["arrow","button","crossed","shuffle","tracks"]],["🔁","repeat button",7,["arrow","button","clockwise","repeat"]],["🔂","repeat single button",7,["arrow","button","clockwise","once","repeat","single"]],["▶️","play button",7,["arrow","button","play","right","triangle"]],["⏩","fast-forward button",7,["arrow","button","double","fast","fast-forward","forward"]],["⏭️","next track button",7,["arrow","button","next","scene","track","triangle"]],["⏯️","play or pause button",7,["arrow","button","pause","play","right","triangle"]],["◀️","reverse button",7,["arrow","button","left","reverse","triangle"]],["⏪","fast reverse button",7,["arrow","button","double","fast","reverse","rewind"]],["⏮️","last track button",7,["arrow","button","last","previous","scene","track","triangle"]],["🔼","upwards button",7,["arrow","button","red","up","upwards"]],["⏫","fast up button",7,["arrow","button","double","fast","up"]],["🔽","downwards button",7,["arrow","button","down","downwards","red"]],["⏬","fast down button",7,["arrow","button","double","down","fast"]],["⏸️","pause button",7,["bar","button","double","pause","vertical"]],["⏹️","stop button",7,["button","square","stop"]],["⏺️","record button",7,["button","circle","record"]],["⏏️","eject button",7,["button","eject"]],["🎦","cinema",7,["camera","cinema","film","movie"]],["🔅","dim button",7,["brightness","button","dim","low"]],["🔆","bright button",7,["bright","brightness","button","light"]],["📶","antenna bars",7,["antenna","bar","bars","cell","communication","mobile","phone","signal","telephone"]],["🛜","wireless",7,["broadband","computer","connectivity","hotspot","internet","network","router","smartphone","wi-fi","wifi","wireless","wlan"]],["📳","vibration mode",7,["cell","communication","mobile","mode","phone","telephone","vibration"]],["📴","mobile phone off",7,["cell","mobile","off","phone","telephone"]],["♀️","female sign",7,["female","sign","woman"]],["♂️","male sign",7,["male","man","sign"]],["⚧️","transgender symbol",7,["symbol","transgender"]],["✖️","multiply",7,["×","cancel","multiplication","multiply","sign","x"]],["➕","plus",7,["+","plus"]],["➖","minus",7,["-","−","heavy","math","minus","sign"]],["➗","divide",7,["÷","divide","division","heavy","math","sign"]],["🟰","heavy equals sign",7,["answer","equal","equality","equals","heavy","math","sign"]],["♾️","infinity",7,["forever","infinity","unbounded","universal"]],["‼️","double exclamation mark",7,["!","!!","bangbang","double","exclamation","mark","punctuation"]],["⁉️","exclamation question mark",7,["!","!?","?","exclamation","interrobang","mark","punctuation","question"]],["❓","red question mark",7,["?","mark","punctuation","question","red"]],["❔","white question mark",7,["?","mark","outlined","punctuation","question","white"]],["❕","white exclamation mark",7,["!","exclamation","mark","outlined","punctuation","white"]],["❗","red exclamation mark",7,["!","exclamation","mark","punctuation","red"]],["〰️","wavy dash",7,["dash","punctuation","wavy"]],["💱","currency exchange",7,["bank","currency","exchange","money"]],["💲","heavy dollar sign",7,["billion","cash","charge","currency","dollar","heavy","million","money","pay","sign"]],["⚕️","medical symbol",7,["aesculapius","medical","medicine","staff","symbol"]],["♻️","recycling symbol",7,["recycle","recycling","symbol"]],["⚜️","fleur-de-lis",7,["fleur-de-lis","knights"]],["🔱","trident emblem",7,["anchor","emblem","poseidon","ship","tool","trident"]],["📛","name badge",7,["badge","name"]],["🔰","Japanese symbol for beginner",7,["beginner","chevron","green","Japanese","leaf","symbol","tool","yellow"]],["⭕","hollow red circle",7,["circle","heavy","hollow","large","o","red"]],["✅","check mark button",7,["✓","button","check","checked","checkmark","complete","completed","done","fixed","mark","tick"]],["☑️","check box with check",7,["✓","ballot","box","check","checked","done","off","tick"]],["✔️","check mark",7,["✓","check","checked","checkmark","done","heavy","mark","tick"]],["❌","cross mark",7,["×","cancel","cross","mark","multiplication","multiply","x"]],["❎","cross mark button",7,["×","button","cross","mark","multiplication","multiply","square","x"]],["➰","curly loop",7,["curl","curly","loop"]],["➿","double curly loop",7,["curl","curly","double","loop"]],["〽️","part alternation mark",7,["alternation","mark","part"]],["✳️","eight-spoked asterisk",7,["*","asterisk","eight-spoked"]],["✴️","eight-pointed star",7,["*","eight-pointed","star"]],["❇️","sparkle",7,["*","sparkle"]],["©️","copyright",7,["C","copyright"]],["®️","registered",7,["R","registered"]],["™️","trade mark",7,["mark","TM","trade","trademark"]],["","splatter",7,["drip","holi","ink","liquid","mess","paint","spill","splatter","stain"]],["#️⃣","keycap: #",7,[]],["*️⃣","keycap: *",7,[]],["0️⃣","keycap: 0",7,["0","keycap","zero"]],["1️⃣","keycap: 1",7,["1","keycap","one"]],["2️⃣","keycap: 2",7,["2","keycap","two"]],["3️⃣","keycap: 3",7,["3","keycap","three"]],["4️⃣","keycap: 4",7,["4","four","keycap"]],["5️⃣","keycap: 5",7,["5","five","keycap"]],["6️⃣","keycap: 6",7,["6","keycap","six"]],["7️⃣","keycap: 7",7,["7","keycap","seven"]],["8️⃣","keycap: 8",7,["8","eight","keycap"]],["9️⃣","keycap: 9",7,["9","keycap","nine"]],["🔟","keycap: 10",7,[]],["🔠","input latin uppercase",7,["ABCD","input","latin","letters","uppercase"]],["🔡","input latin lowercase",7,["abcd","input","latin","letters","lowercase"]],["🔢","input numbers",7,["1234","input","numbers"]],["🔣","input symbols",7,["&","%","♪","〒","input","symbols"]],["🔤","input latin letters",7,["abc","alphabet","input","latin","letters"]],["🅰️","A button (blood type)",7,["blood","button","type"]],["🆎","AB button (blood type)",7,["AB","blood","button","type"]],["🅱️","B button (blood type)",7,["B","blood","button","type"]],["🆑","CL button",7,["button","CL"]],["🆒","COOL button",7,["button","COOL"]],["🆓","FREE button",7,["button","FREE"]],["ℹ️","information",7,["I","information"]],["🆔","ID button",7,["button","ID","identity"]],["Ⓜ️","circled M",7,["circle","circled","M"]],["🆕","NEW button",7,["button","NEW"]],["🆖","NG button",7,["button","NG"]],["🅾️","O button (blood type)",7,["blood","button","O","type"]],["🆗","OK button",7,["button","OK","okay"]],["🅿️","P button",7,["button","P","parking"]],["🆘","SOS button",7,["button","help","SOS"]],["🆙","UP! button",7,["button","mark","UP","UP!"]],["🆚","VS button",7,["button","versus","VS"]],["🈁","Japanese “here” button",7,["button","here","Japanese","katakana"]],["🈂️","Japanese “service charge” button",7,["button","charge","Japanese","katakana","service"]],["🈷️","Japanese “monthly amount” button",7,["amount","button","ideograph","Japanese","monthly"]],["🈶","Japanese “not free of charge” button",7,["button","charge","free","ideograph","Japanese","not"]],["🈯","Japanese “reserved” button",7,["button","ideograph","Japanese","reserved"]],["🉐","Japanese “bargain” button",7,["bargain","button","ideograph","Japanese"]],["🈹","Japanese “discount” button",7,["button","discount","ideograph","Japanese"]],["🈚","Japanese “free of charge” button",7,["button","charge","free","ideograph","Japanese"]],["🈲","Japanese “prohibited” button",7,["button","ideograph","Japanese","prohibited"]],["🉑","Japanese “acceptable” button",7,["acceptable","button","ideograph","Japanese"]],["🈸","Japanese “application” button",7,["application","button","ideograph","Japanese"]],["🈴","Japanese “passing grade” button",7,["button","grade","ideograph","Japanese","passing"]],["🈳","Japanese “vacancy” button",7,["button","ideograph","Japanese","vacancy"]],["㊗️","Japanese “congratulations” button",7,["button","congratulations","ideograph","Japanese"]],["㊙️","Japanese “secret” button",7,["button","ideograph","Japanese","secret"]],["🈺","Japanese “open for business” button",7,["business","button","ideograph","Japanese","open"]],["🈵","Japanese “no vacancy” button",7,["button","ideograph","Japanese","no","vacancy"]],["🔴","red circle",7,["circle","geometric","red"]],["🟠","orange circle",7,["circle","orange"]],["🟡","yellow circle",7,["circle","yellow"]],["🟢","green circle",7,["circle","green"]],["🔵","blue circle",7,["blue","circle","geometric"]],["🟣","purple circle",7,["circle","purple"]],["🟤","brown circle",7,["brown","circle"]],["⚫","black circle",7,["black","circle","geometric"]],["⚪","white circle",7,["circle","geometric","white"]],["🟥","red square",7,["card","penalty","red","square"]],["🟧","orange square",7,["orange","square"]],["🟨","yellow square",7,["card","penalty","square","yellow"]],["🟩","green square",7,["green","square"]],["🟦","blue square",7,["blue","square"]],["🟪","purple square",7,["purple","square"]],["🟫","brown square",7,["brown","square"]],["⬛","black large square",7,["black","geometric","large","square"]],["⬜","white large square",7,["geometric","large","square","white"]],["◼️","black medium square",7,["black","geometric","medium","square"]],["◻️","white medium square",7,["geometric","medium","square","white"]],["◾","black medium-small square",7,["black","geometric","medium-small","square"]],["◽","white medium-small square",7,["geometric","medium-small","square","white"]],["▪️","black small square",7,["black","geometric","small","square"]],["▫️","white small square",7,["geometric","small","square","white"]],["🔶","large orange diamond",7,["diamond","geometric","large","orange"]],["🔷","large blue diamond",7,["blue","diamond","geometric","large"]],["🔸","small orange diamond",7,["diamond","geometric","orange","small"]],["🔹","small blue diamond",7,["blue","diamond","geometric","small"]],["🔺","red triangle pointed up",7,["geometric","pointed","red","triangle","up"]],["🔻","red triangle pointed down",7,["down","geometric","pointed","red","triangle"]],["💠","diamond with a dot",7,["comic","diamond","dot","geometric"]],["🔘","radio button",7,["button","geometric","radio"]],["🔳","white square button",7,["button","geometric","outlined","square","white"]],["🔲","black square button",7,["black","button","geometric","square"]],["🏁","chequered flag",8,["checkered","chequered","finish","flag","flags","game","race","racing","sport","win"]],["🚩","triangular flag",8,["construction","flag","golf","post","triangular"]],["🎌","crossed flags",8,["celebration","cross","crossed","flags","Japanese"]],["🏴","black flag",8,["black","flag","waving"]],["🏳️","white flag",8,["flag","waving","white"]],["🏳️🌈","rainbow flag",8,["bisexual","flag","gay","genderqueer","glbt","glbtq","lesbian","lgbt","lgbtq","lgbtqia","pride","queer","rainbow","trans","transgender"]],["🏳️⚧️","transgender flag",8,["blue","flag","light","pink","transgender","white"]],["🏴☠️","pirate flag",8,["flag","Jolly","pirate","plunder","Roger","treasure"]],["🇦🇨","flag: Ascension Island",8,[]],["🇦🇩","flag: Andorra",8,[]],["🇦🇪","flag: United Arab Emirates",8,[]],["🇦🇫","flag: Afghanistan",8,[]],["🇦🇬","flag: Antigua & Barbuda",8,[]],["🇦🇮","flag: Anguilla",8,[]],["🇦🇱","flag: Albania",8,[]],["🇦🇲","flag: Armenia",8,[]],["🇦🇴","flag: Angola",8,[]],["🇦🇶","flag: Antarctica",8,[]],["🇦🇷","flag: Argentina",8,[]],["🇦🇸","flag: American Samoa",8,[]],["🇦🇹","flag: Austria",8,[]],["🇦🇺","flag: Australia",8,[]],["🇦🇼","flag: Aruba",8,[]],["🇦🇽","flag: Åland Islands",8,[]],["🇦🇿","flag: Azerbaijan",8,[]],["🇧🇦","flag: Bosnia & Herzegovina",8,[]],["🇧🇧","flag: Barbados",8,[]],["🇧🇩","flag: Bangladesh",8,[]],["🇧🇪","flag: Belgium",8,[]],["🇧🇫","flag: Burkina Faso",8,[]],["🇧🇬","flag: Bulgaria",8,[]],["🇧🇭","flag: Bahrain",8,[]],["🇧🇮","flag: Burundi",8,[]],["🇧🇯","flag: Benin",8,[]],["🇧🇱","flag: St. Barthélemy",8,[]],["🇧🇲","flag: Bermuda",8,[]],["🇧🇳","flag: Brunei",8,[]],["🇧🇴","flag: Bolivia",8,[]],["🇧🇶","flag: Caribbean Netherlands",8,[]],["🇧🇷","flag: Brazil",8,[]],["🇧🇸","flag: Bahamas",8,[]],["🇧🇹","flag: Bhutan",8,[]],["🇧🇻","flag: Bouvet Island",8,[]],["🇧🇼","flag: Botswana",8,[]],["🇧🇾","flag: Belarus",8,[]],["🇧🇿","flag: Belize",8,[]],["🇨🇦","flag: Canada",8,[]],["🇨🇨","flag: Cocos (Keeling) Islands",8,[]],["🇨🇩","flag: Congo - Kinshasa",8,[]],["🇨🇫","flag: Central African Republic",8,[]],["🇨🇬","flag: Congo - Brazzaville",8,[]],["🇨🇭","flag: Switzerland",8,[]],["🇨🇮","flag: Côte d’Ivoire",8,[]],["🇨🇰","flag: Cook Islands",8,[]],["🇨🇱","flag: Chile",8,[]],["🇨🇲","flag: Cameroon",8,[]],["🇨🇳","flag: China",8,[]],["🇨🇴","flag: Colombia",8,[]],["🇨🇵","flag: Clipperton Island",8,[]],["🇨🇶","flag: Sark",8,[]],["🇨🇷","flag: Costa Rica",8,[]],["🇨🇺","flag: Cuba",8,[]],["🇨🇻","flag: Cape Verde",8,[]],["🇨🇼","flag: Curaçao",8,[]],["🇨🇽","flag: Christmas Island",8,[]],["🇨🇾","flag: Cyprus",8,[]],["🇨🇿","flag: Czechia",8,[]],["🇩🇪","flag: Germany",8,[]],["🇩🇬","flag: Diego Garcia",8,[]],["🇩🇯","flag: Djibouti",8,[]],["🇩🇰","flag: Denmark",8,[]],["🇩🇲","flag: Dominica",8,[]],["🇩🇴","flag: Dominican Republic",8,[]],["🇩🇿","flag: Algeria",8,[]],["🇪🇦","flag: Ceuta & Melilla",8,[]],["🇪🇨","flag: Ecuador",8,[]],["🇪🇪","flag: Estonia",8,[]],["🇪🇬","flag: Egypt",8,[]],["🇪🇭","flag: Western Sahara",8,[]],["🇪🇷","flag: Eritrea",8,[]],["🇪🇸","flag: Spain",8,[]],["🇪🇹","flag: Ethiopia",8,[]],["🇪🇺","flag: European Union",8,[]],["🇫🇮","flag: Finland",8,[]],["🇫🇯","flag: Fiji",8,[]],["🇫🇰","flag: Falkland Islands",8,[]],["🇫🇲","flag: Micronesia",8,[]],["🇫🇴","flag: Faroe Islands",8,[]],["🇫🇷","flag: France",8,[]],["🇬🇦","flag: Gabon",8,[]],["🇬🇧","flag: United Kingdom",8,[]],["🇬🇩","flag: Grenada",8,[]],["🇬🇪","flag: Georgia",8,[]],["🇬🇫","flag: French Guiana",8,[]],["🇬🇬","flag: Guernsey",8,[]],["🇬🇭","flag: Ghana",8,[]],["🇬🇮","flag: Gibraltar",8,[]],["🇬🇱","flag: Greenland",8,[]],["🇬🇲","flag: Gambia",8,[]],["🇬🇳","flag: Guinea",8,[]],["🇬🇵","flag: Guadeloupe",8,[]],["🇬🇶","flag: Equatorial Guinea",8,[]],["🇬🇷","flag: Greece",8,[]],["🇬🇸","flag: South Georgia & South Sandwich Islands",8,[]],["🇬🇹","flag: Guatemala",8,[]],["🇬🇺","flag: Guam",8,[]],["🇬🇼","flag: Guinea-Bissau",8,[]],["🇬🇾","flag: Guyana",8,[]],["🇭🇰","flag: Hong Kong SAR China",8,[]],["🇭🇲","flag: Heard Island & McDonald Islands",8,[]],["🇭🇳","flag: Honduras",8,[]],["🇭🇷","flag: Croatia",8,[]],["🇭🇹","flag: Haiti",8,[]],["🇭🇺","flag: Hungary",8,[]],["🇮🇨","flag: Canary Islands",8,[]],["🇮🇩","flag: Indonesia",8,[]],["🇮🇪","flag: Ireland",8,[]],["🇮🇱","flag: Israel",8,[]],["🇮🇲","flag: Isle of Man",8,[]],["🇮🇳","flag: India",8,[]],["🇮🇴","flag: British Indian Ocean Territory",8,[]],["🇮🇶","flag: Iraq",8,[]],["🇮🇷","flag: Iran",8,[]],["🇮🇸","flag: Iceland",8,[]],["🇮🇹","flag: Italy",8,[]],["🇯🇪","flag: Jersey",8,[]],["🇯🇲","flag: Jamaica",8,[]],["🇯🇴","flag: Jordan",8,[]],["🇯🇵","flag: Japan",8,[]],["🇰🇪","flag: Kenya",8,[]],["🇰🇬","flag: Kyrgyzstan",8,[]],["🇰🇭","flag: Cambodia",8,[]],["🇰🇮","flag: Kiribati",8,[]],["🇰🇲","flag: Comoros",8,[]],["🇰🇳","flag: St. Kitts & Nevis",8,[]],["🇰🇵","flag: North Korea",8,[]],["🇰🇷","flag: South Korea",8,[]],["🇰🇼","flag: Kuwait",8,[]],["🇰🇾","flag: Cayman Islands",8,[]],["🇰🇿","flag: Kazakhstan",8,[]],["🇱🇦","flag: Laos",8,[]],["🇱🇧","flag: Lebanon",8,[]],["🇱🇨","flag: St. Lucia",8,[]],["🇱🇮","flag: Liechtenstein",8,[]],["🇱🇰","flag: Sri Lanka",8,[]],["🇱🇷","flag: Liberia",8,[]],["🇱🇸","flag: Lesotho",8,[]],["🇱🇹","flag: Lithuania",8,[]],["🇱🇺","flag: Luxembourg",8,[]],["🇱🇻","flag: Latvia",8,[]],["🇱🇾","flag: Libya",8,[]],["🇲🇦","flag: Morocco",8,[]],["🇲🇨","flag: Monaco",8,[]],["🇲🇩","flag: Moldova",8,[]],["🇲🇪","flag: Montenegro",8,[]],["🇲🇫","flag: St. Martin",8,[]],["🇲🇬","flag: Madagascar",8,[]],["🇲🇭","flag: Marshall Islands",8,[]],["🇲🇰","flag: North Macedonia",8,[]],["🇲🇱","flag: Mali",8,[]],["🇲🇲","flag: Myanmar (Burma)",8,[]],["🇲🇳","flag: Mongolia",8,[]],["🇲🇴","flag: Macao SAR China",8,[]],["🇲🇵","flag: Northern Mariana Islands",8,[]],["🇲🇶","flag: Martinique",8,[]],["🇲🇷","flag: Mauritania",8,[]],["🇲🇸","flag: Montserrat",8,[]],["🇲🇹","flag: Malta",8,[]],["🇲🇺","flag: Mauritius",8,[]],["🇲🇻","flag: Maldives",8,[]],["🇲🇼","flag: Malawi",8,[]],["🇲🇽","flag: Mexico",8,[]],["🇲🇾","flag: Malaysia",8,[]],["🇲🇿","flag: Mozambique",8,[]],["🇳🇦","flag: Namibia",8,[]],["🇳🇨","flag: New Caledonia",8,[]],["🇳🇪","flag: Niger",8,[]],["🇳🇫","flag: Norfolk Island",8,[]],["🇳🇬","flag: Nigeria",8,[]],["🇳🇮","flag: Nicaragua",8,[]],["🇳🇱","flag: Netherlands",8,[]],["🇳🇴","flag: Norway",8,[]],["🇳🇵","flag: Nepal",8,[]],["🇳🇷","flag: Nauru",8,[]],["🇳🇺","flag: Niue",8,[]],["🇳🇿","flag: New Zealand",8,[]],["🇴🇲","flag: Oman",8,[]],["🇵🇦","flag: Panama",8,[]],["🇵🇪","flag: Peru",8,[]],["🇵🇫","flag: French Polynesia",8,[]],["🇵🇬","flag: Papua New Guinea",8,[]],["🇵🇭","flag: Philippines",8,[]],["🇵🇰","flag: Pakistan",8,[]],["🇵🇱","flag: Poland",8,[]],["🇵🇲","flag: St. Pierre & Miquelon",8,[]],["🇵🇳","flag: Pitcairn Islands",8,[]],["🇵🇷","flag: Puerto Rico",8,[]],["🇵🇸","flag: Palestinian Territories",8,[]],["🇵🇹","flag: Portugal",8,[]],["🇵🇼","flag: Palau",8,[]],["🇵🇾","flag: Paraguay",8,[]],["🇶🇦","flag: Qatar",8,[]],["🇷🇪","flag: Réunion",8,[]],["🇷🇴","flag: Romania",8,[]],["🇷🇸","flag: Serbia",8,[]],["🇷🇺","flag: Russia",8,[]],["🇷🇼","flag: Rwanda",8,[]],["🇸🇦","flag: Saudi Arabia",8,[]],["🇸🇧","flag: Solomon Islands",8,[]],["🇸🇨","flag: Seychelles",8,[]],["🇸🇩","flag: Sudan",8,[]],["🇸🇪","flag: Sweden",8,[]],["🇸🇬","flag: Singapore",8,[]],["🇸🇭","flag: St. Helena, Ascension & Tristan da Cunha",8,[]],["🇸🇮","flag: Slovenia",8,[]],["🇸🇯","flag: Svalbard & Jan Mayen",8,[]],["🇸🇰","flag: Slovakia",8,[]],["🇸🇱","flag: Sierra Leone",8,[]],["🇸🇲","flag: San Marino",8,[]],["🇸🇳","flag: Senegal",8,[]],["🇸🇴","flag: Somalia",8,[]],["🇸🇷","flag: Suriname",8,[]],["🇸🇸","flag: South Sudan",8,[]],["🇸🇹","flag: São Tomé & Príncipe",8,[]],["🇸🇻","flag: El Salvador",8,[]],["🇸🇽","flag: Sint Maarten",8,[]],["🇸🇾","flag: Syria",8,[]],["🇸🇿","flag: Eswatini",8,[]],["🇹🇦","flag: Tristan da Cunha",8,[]],["🇹🇨","flag: Turks & Caicos Islands",8,[]],["🇹🇩","flag: Chad",8,[]],["🇹🇫","flag: French Southern and Antarctic Lands",8,[]],["🇹🇬","flag: Togo",8,[]],["🇹🇭","flag: Thailand",8,[]],["🇹🇯","flag: Tajikistan",8,[]],["🇹🇰","flag: Tokelau",8,[]],["🇹🇱","flag: Timor-Leste",8,[]],["🇹🇲","flag: Turkmenistan",8,[]],["🇹🇳","flag: Tunisia",8,[]],["🇹🇴","flag: Tonga",8,[]],["🇹🇷","flag: Türkiye",8,[]],["🇹🇹","flag: Trinidad & Tobago",8,[]],["🇹🇻","flag: Tuvalu",8,[]],["🇹🇼","flag: Taiwan",8,[]],["🇹🇿","flag: Tanzania",8,[]],["🇺🇦","flag: Ukraine",8,[]],["🇺🇬","flag: Uganda",8,[]],["🇺🇲","flag: U.S. Outlying Islands",8,[]],["🇺🇳","flag: United Nations",8,[]],["🇺🇸","flag: United States",8,[]],["🇺🇾","flag: Uruguay",8,[]],["🇺🇿","flag: Uzbekistan",8,[]],["🇻🇦","flag: Vatican City",8,[]],["🇻🇨","flag: St. Vincent & Grenadines",8,[]],["🇻🇪","flag: Venezuela",8,[]],["🇻🇬","flag: British Virgin Islands",8,[]],["🇻🇮","flag: U.S. Virgin Islands",8,[]],["🇻🇳","flag: Vietnam",8,[]],["🇻🇺","flag: Vanuatu",8,[]],["🇼🇫","flag: Wallis & Futuna",8,[]],["🇼🇸","flag: Samoa",8,[]],["🇽🇰","flag: Kosovo",8,[]],["🇾🇪","flag: Yemen",8,[]],["🇾🇹","flag: Mayotte",8,[]],["🇿🇦","flag: South Africa",8,[]],["🇿🇲","flag: Zambia",8,[]],["🇿🇼","flag: Zimbabwe",8,[]],["🏴","flag: England",8,[]],["🏴","flag: Scotland",8,[]],["🏴","flag: Wales",8,[]]]'),_s={groups:vp,entries:jp};function Mt(e){return e.normalize("NFKC").toLowerCase().replace(/[_\s]+|(?<=[\p{L}\p{N}])-+/gu," ").trim()}const tc={"+1":["👍"],thumbsup:["👍"],thumbs_up:["👍"],"-1":["👎"],thumbsdown:["👎"],thumbs_down:["👎"],tada:["🎉"],heart:["❤️"],smile:["😄"],woman_technologist:["👩💻"],fire:["🔥"],rocket:["🚀"],eyes:["👀"],joy:["😂"],grin:["😁"],laughing:["😆"],wink:["😉"],pray:["🙏"],clap:["👏"],wave:["👋"],ok_hand:["👌"],sparkles:["✨"],white_check_mark:["✅"],x:["❌"],warning:["⚠️"],thinking_face:["🤔"],sob:["😭"],cry:["😢"],shrug:["🤷"],facepalm:["🤦"],raised_hands:["🙌"],muscle:["💪"],star:["⭐"],sunglasses:["😎"],heart_eyes:["😍"],rofl:["🤣"],slightly_smiling_face:["🙂"],upside_down_face:["🙃"],see_no_evil:["🙈"],point_up:["☝️"],point_right:["👉"],bulb:["💡"],memo:["📝"],bug:["🐛"],zap:["⚡"],boom:["💥"],coffee:["☕"],beer:["🍺"],pizza:["🍕"],cake:["🍰"],gift:["🎁"],calendar:["📆"],lock:["🔒"],key:["🔑"],link:["🔗"],chart_with_upwards_trend:["📈"],rotating_light:["🚨"],construction:["🚧"],hourglass:["⌛"],alarm_clock:["⏰"],bell:["🔔"],speech_balloon:["💬"],100:["💯"]},qo=new RegExp("\\p{L}","u");function _p(e=tc){const n=new Set(Object.keys(e).map(Mt).filter(t=>!qo.test(t)));return t=>n.has(Mt(t))?!0:Array.from(t).length>=2&&qo.test(t)}const Np=32,Fo=8;function Bp(e,n=tc){const t=new Map;for(const[r,s]of Object.entries(n))for(const l of s){const c=t.get(l)??[];c.push(r),t.set(l,c)}const a=e.map(r=>({entry:r,explicitAliases:(t.get(r.emoji)??[]).map(Mt),name:Mt(r.name),nameWords:Mt(r.name).split(" "),aliases:[r.name,...r.keywords,...t.get(r.emoji)??[]].map(Mt)}));return(r,s=Fo)=>{const l=Number.isFinite(s)?Math.max(0,Math.min(Np,Math.floor(s))):Fo;if(l===0)return[];const c=Mt(r);if(!c)return a.slice(0,l).map(({entry:h})=>h);const d=c.split(" ").filter(Boolean),m=[[],[],[],[],[]];for(const{entry:h,aliases:p,explicitAliases:g,name:b,nameWords:f}of a){if(!d.every(v=>p.some(k=>k.includes(v))))continue;const x=g.includes(c)?0:b===c?1:d.every(v=>f.some(k=>k.startsWith(v)))?2:g.some(v=>v.startsWith(c))?3:4;if(m[x].length<l&&m[x].push(h),m[0].length===l)break}return m.flat().slice(0,l)}}const Sp=/^ {0,3}(`{3,}|~{3,})(.*)$/u,Ep=/:([\p{L}\p{M}\p{N}_+\-]*)$/u,Ip=/.$/u,Rp=/[\s\p{P}\p{S}]/u,Cp=/[:/@\\`]/u,Tp=/(?:\w+:\/\/|www\.)\S*$/iu;function ic(e,n){let t=0,a=n;for(;a>0&&e[--a]==="\\";)t++;return t%2===1}function Mp(e){let n=null,t=0;for(const a of e.split(`
|
|
52
|
-
`)){const r=
|
|
53
|
-
`)?" ":null]})},ac=({mentions:e})=>{ge();const[n,t]=u.useState("idle"),a=e.notice,r=e.source,s=r?.conversationId??null,l=u.useRef(0),c=u.useRef(null);if(u.useLayoutEffect(()=>(l.current+=1,c.current=null,t("idle"),()=>{l.current+=1,c.current=null}),[s,a]),!a||!r)return null;const d=r?.conversationKind!=="dm"&&!a.invited&&(r?.canInvite?.(a.candidate)??!1)?r?.onInvite:void 0,m=a.candidate.label,h=n==="failed"?o("ui.teamBridge.mentions.notice.invite_failed",{name:m}):a.invited?o("ui.teamBridge.mentions.notice.invited",{name:m}):a.candidate.invited?o("ui.teamBridge.mentions.notice.pending",{name:m}):o("ui.teamBridge.mentions.notice.not_member",{name:m});return i.jsxs("div",{role:"status","data-mention-notice":"",className:"flex flex-wrap items-center gap-x-2 gap-y-1 rounded-md bg-warning-wash px-3 py-1.5 text-body-sm text-ink",children:[i.jsx("span",{className:"min-w-0 flex-1",children:h}),d&&i.jsx(Y,{variant:"link",size:"sm",className:"h-7 px-1.5",disabled:n==="inviting",onClick:()=>{const p=Symbol("mention-invite"),g=l.current;c.current=p;const b=()=>l.current===g&&c.current===p;t("inviting"),d(a.candidate).then(()=>{b()&&(c.current=null,t("idle"),e.resolveNotice())},()=>{b()&&(c.current=null,t("failed"))})},children:o("ui.teamBridge.mentions.notice.invite")}),!a.invited&&i.jsx(Y,{variant:"link",size:"sm",className:"h-7 px-1.5",onClick:()=>{t("idle"),e.silenceNotice()},children:o("ui.teamBridge.mentions.notice.silent")}),i.jsx(Y,{variant:"ghost",size:"icon-sm","aria-label":o("ui.common.actions.dismiss"),title:o("ui.common.actions.dismiss"),onClick:()=>{t("idle"),e.dismissNotice()},children:i.jsx(gt,{size:14,"aria-hidden":"true"})})]})};function Wp(e){const n=Math.max(8,Math.round(e*.32));return{outer:n,inner:n-1}}const $o="[clip-path:polygon(100%_100%,0_100%,100%_0)] rtl:[clip-path:polygon(0_100%,100%_100%,0_0)]";function Vp(e){return e<=20?12:e<=24?14:e<=36?18:e<=56?26:28}function kn({member:e,kind:n,endpointId:t,label:a,size:r=36,className:s,fallback:l,selected:c=!1}){const d=Nu(Bu(e,n,t),r),m=Wp(r),[h,p]=u.useState(),g=n==="agent"?i.jsx(Ot,{size:Vp(r)}):l??ja(a);return i.jsxs("span",{"aria-hidden":"true","data-team-bridge-avatar":"",style:{"--profile-avatar-size":`${r}px`},className:G("relative inline-flex size-[var(--profile-avatar-size)] shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-body-sm",n==="agent"?"text-accent":"text-accent-alt",c?"bg-surface":"bg-accent-alt-wash",s,n==="agent"&&"rounded-ee-xs"),children:[d&&d!==h?i.jsx("img",{alt:"",src:d,className:"size-full object-cover",onError:()=>p(d)}):g,n==="agent"&&i.jsx("span",{"data-agent-mark":"",style:{width:m.outer,height:m.outer},className:G("pointer-events-none absolute end-0 bottom-0",c?"bg-surface":"bg-accent-alt-wash",$o),children:i.jsx("span",{style:{width:m.inner,height:m.inner},className:G("absolute end-0 bottom-0 block bg-accent",$o)})})]})}function Jp({onBeforeNavigate:e}){const n=Gh();return i.jsx(Y,{variant:"ghost",size:"sm",className:"w-full",onClick:()=>{e()&&n("/settings")},children:o("ui.settings.personal_profile.edit")})}function ct({member:e,label:n,kind:t,onMessage:a,onEditOwnProfile:r,canMessage:s=!0,openDelayMs:l=400,fastOpenDelayMs:c,toggleOnClick:d=!0,openOnFocus:m=!0,children:h}){const p=ge(),g=us(),b=ht(),f=u.useRef(!1),[x,v]=u.useState(!1),[k,w]=u.useState(()=>new Date),j=u.useId(),R=u.useRef(void 0),N=u.useRef(null),_=u.useRef(!1),S=u.useRef(!1),C=u.useRef(null),T=u.useRef(void 0),ee=u.useRef(!1),O=u.useRef(!1),q=t==="agent",K=q?n:e.profile?.display_name||n,I=!q&&!!g.accountId&&e.account_id===g.accountId,V=()=>!I||gd(b)!==g.token||gs(b).accountId!==e.account_id?!1:(f.current=!0,z(!1),gg(g.token),!0),U=()=>{clearTimeout(R.current),R.current=void 0},z=L=>{U(),L||(T.current=void 0),v(L)},B=()=>{U(),R.current=setTimeout(()=>{R.current=void 0,N.current?.contains(document.activeElement)||v(!1)},200)},F=L=>{U(),R.current=setTimeout(()=>{R.current=void 0,v(!0)},Math.max(0,L))},A=(L,$)=>{if(x||T.current===void 0)return;const le=c!==void 0&&L instanceof Element&&$.contains(L.closest("[data-team-bridge-avatar]"));if(le===ee.current&&R.current!==void 0)return;ee.current=le;const fe=Date.now()-T.current,de=l-fe;F(le&&c!==void 0?Math.min(c,de):de)};u.useEffect(()=>()=>clearTimeout(R.current),[]),u.useEffect(()=>{x||(clearTimeout(R.current),R.current=void 0,T.current=void 0)},[x]),u.useEffect(()=>{if(!x||!O.current)return;O.current=!1;const L=requestAnimationFrame(()=>{const $=N.current?.querySelectorAll("button");$?.[$.length-1]?.focus()});return()=>cancelAnimationFrame(L)},[x]),u.useEffect(()=>{if(!x)return;w(new Date);const L=setInterval(()=>w(new Date),6e4);return()=>clearInterval(L)},[x]);let D;if(e.profile?.timezone)try{D=Ua(k,{timeZone:e.profile.timezone,hour:"numeric",minute:"2-digit"},p)}catch{}const J=u.cloneElement(h,{...d?{"aria-label":o("ui.teamBridge.profile.open_profile",{name:n})}:{"aria-keyshortcuts":"Shift+F10 ContextMenu","aria-expanded":x},onMouseEnter:L=>{if(h.props.onMouseEnter?.(L),!L.defaultPrevented){if(T.current=Date.now(),ee.current=!1,x){U();return}F(l),A(L.target,L.currentTarget)}},onMouseOver:L=>{h.props.onMouseOver?.(L),L.defaultPrevented||A(L.target,L.currentTarget)},onMouseLeave:L=>{h.props.onMouseLeave?.(L),T.current=void 0,L.defaultPrevented||B()},onFocus:L=>{h.props.onFocus?.(L),m&&!L.defaultPrevented&&!_.current&&z(!0)},onKeyDown:L=>{h.props.onKeyDown?.(L),!(m||L.defaultPrevented)&&(L.key!=="ContextMenu"&&!(L.shiftKey&&L.key==="F10")||(L.preventDefault(),C.current=L.currentTarget,O.current=!0,z(!0)))},onBlur:L=>{h.props.onBlur?.(L),!L.defaultPrevented&&!N.current?.contains(L.relatedTarget)&&B()},onClick:d?h.props.onClick:L=>{h.props.onClick?.(L),z(!1)}});return i.jsxs(Fd,{open:x,onOpenChange:z,modal:!1,children:[d?i.jsx($d,{asChild:!0,children:J}):i.jsx(ng,{asChild:!0,children:J}),i.jsx(Kd,{ref:N,"aria-labelledby":j,"data-profile-card":"","data-profile-kind":q?"agent":"human",collisionPadding:16,className:"flex max-h-[min(var(--radix-popover-content-available-height),calc(100dvh-2rem))] w-80 max-w-[min(var(--radix-popover-content-available-width),calc(100vw-2rem))] flex-col p-0",onMouseEnter:U,onMouseLeave:B,onFocusCapture:()=>{S.current=!0,U()},onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||(S.current=!1,B())},onOpenAutoFocus:L=>L.preventDefault(),onCloseAutoFocus:L=>{if(f.current){f.current=!1,L.preventDefault();return}if(!S.current){L.preventDefault();return}if(S.current=!1,!d){L.preventDefault(),C.current?.focus();return}_.current=!0,queueMicrotask(()=>{_.current=!1})},children:i.jsxs("div",{"data-profile-scroll":"",className:"min-h-0 overflow-y-auto overscroll-contain p-4 space-y-3",children:[i.jsxs("div",{className:"flex items-start justify-between gap-3",children:[i.jsx(kn,{member:e,kind:t,label:K,size:64}),i.jsx(tg,{asChild:!0,children:i.jsx(Y,{variant:"ghost",size:"icon","aria-label":o("ui.teamBridge.profile.close_profile"),children:i.jsx(gt,{size:16,"aria-hidden":"true"})})})]}),i.jsxs("div",{className:"min-w-0 space-y-1 [overflow-wrap:anywhere]",children:[i.jsx("h2",{id:j,className:"text-body font-semibold text-ink",children:K}),e.profile?.title&&i.jsx("p",{className:"text-body-sm text-ink",children:e.profile.title})]}),i.jsx(yi,{children:o(q?"ui.teamBridge.profile.agent_badge":"ui.teamBridge.profile.human_badge")}),q&&i.jsx("p",{className:"text-body-sm text-ink-muted [overflow-wrap:anywhere]",children:o("ui.teamBridge.profile.owned_by",{name:nn(e)})}),e.profile?.description&&i.jsx("p",{className:"line-clamp-6 whitespace-pre-wrap text-body-sm text-ink [overflow-wrap:anywhere]",children:e.profile.description}),D&&i.jsxs("p",{className:"flex items-center gap-2 text-body-sm text-ink-muted",children:[i.jsx(wi,{size:14,"aria-hidden":"true"}),o("ui.teamBridge.profile.local_time",{time:D})]}),I&&(r?i.jsx(Y,{variant:"ghost",size:"sm",className:"w-full",onClick:()=>{V()&&r()},children:o("ui.settings.personal_profile.edit")}):i.jsx(Jp,{onBeforeNavigate:V})),s&&i.jsxs(Y,{variant:"tonal",className:"w-full",onClick:()=>{z(!1),a()},children:[i.jsx(hd,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.profile.message")]})]})})]})}const Ko=48,Uo=26,Qp=8,Ho={"member-human":"ui.teamBridge.mentions.section.member_human","member-agent":"ui.teamBridge.mentions.section.member_agent","org-human":"ui.teamBridge.mentions.section.org_human","org-agent":"ui.teamBridge.mentions.section.org_agent"};function Jr(e,n){return`${e}-option-${n}`}const Yp=({row:e})=>{const n=e.profile??{account_id:e.accountId,display_label:e.label,role:"member",bridge_enabled:!1,bridge_state:"none"};return i.jsx(kn,{member:n,label:e.label,kind:e.kind,size:28,className:"size-7 rounded-md text-meta",fallback:e.kind==="human"?ja(e.label):void 0})},Xp=({listboxId:e,sections:n,active:t,query:a,onActive:r,onPick:s,position:l,inline:c=!1})=>{ge();const d=u.useRef(null),m=n.length===0,[h,p]=u.useState({row:Ko,header:Uo});u.useLayoutEffect(()=>{const v=d.current,k=v?.querySelector('[role="option"]'),w=v?.querySelector("[data-mention-header]"),j={row:k?.offsetHeight||Ko,header:w?.offsetHeight||Uo};(j.row!==h.row||j.header!==h.header)&&p(j)});const g=h.row*Qp+h.header+8;u.useEffect(()=>{d.current?.querySelector(`#${CSS.escape(Jr(e,t))}`)?.scrollIntoView?.({block:"nearest"})},[t,e,g]);let b=-1;const f=c||!l?void 0:{position:"fixed",left:l.left,bottom:l.bottom},x=i.jsx("div",{"data-mention-popover":"",style:f,"data-lo-floating":"",className:G("z-50 w-[min(22rem,calc(100vw-16px))] overflow-hidden rounded-md bg-elevated shadow-overlay"),children:i.jsx("div",{ref:d,id:e,role:"listbox",tabIndex:-1,"aria-label":o("ui.teamBridge.mentions.listbox_label"),style:{maxHeight:g},className:"overflow-y-auto py-1",children:m?i.jsx("div",{className:"px-3 py-2 text-body-sm text-ink-muted",children:o("ui.teamBridge.mentions.empty",{query:a})}):n.map(v=>i.jsxs("div",{role:"group","aria-label":o(Ho[v.id]),children:[i.jsx("div",{"aria-hidden":"true","data-mention-header":"",className:"px-3 pt-1.5 pb-0.5 font-medium text-meta text-ink-dim",children:o(Ho[v.id])}),v.rows.map(k=>{const w=k;b+=1;const j=b,R=j===t,N=w.bridgeOff?o("ui.teamBridge.mentions.tag.bridge_off"):w.invited?o("ui.teamBridge.members.state.invited_short"):w.member?null:o("ui.teamBridge.mentions.tag.not_member");return i.jsxs("div",{id:Jr(e,j),role:"option","aria-selected":R,"data-mention-option":`${w.kind}:${w.accountId}`,onMouseMove:()=>{R||r(j)},onMouseDown:_=>{_.preventDefault()},onClick:()=>s(w),className:G("relative mx-1 flex min-h-12 cursor-pointer items-center gap-2.5 rounded-sm px-2 py-1",R?G("bg-accent-wash","before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:rounded-full before:bg-accent"):""),children:[i.jsx(Yp,{row:w}),i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i.jsx("span",{className:"truncate text-body-sm text-ink",children:w.label}),w.secondary&&i.jsx("span",{className:"truncate text-meta text-ink-muted",children:w.secondary})]}),N&&i.jsx("span",{className:"shrink-0 text-meta-sm text-ink-dim",children:N})]},`${w.kind}:${w.accountId}`)})]},v.id))})});return c||typeof document>"u"?x:qd.createPortal(x,document.body)},Zp=48,ef=/[\s([{"'“‘«<,;:!?]/u;function nf(e,n){return n===0?!0:ef.test(e.charAt(n-1))}function tf(e,n){const t=Math.max(0,n-Zp-1);for(let a=n-1;a>=t;a-=1){const r=e.charAt(a);if(r===`
|
|
54
|
-
`)return null;if(r==="@"){if(!nf(e,a))return null;const s=e.slice(a+1,n);return s.startsWith(" ")?null:{start:a,end:n,query:s}}}return null}function Qr(e){return e.normalize("NFKD").replace(rf,"").toLocaleLowerCase()}const af=/[\s()[\],.'’"-]+/u,rf=new RegExp("\\p{M}","gu"),Go=/\s+/g,sf=3;function of(e){return Qr(e).split(af).filter(n=>n.length>0)}function lf(e,n){let t=0;for(const a of n)if(a===e[t]&&(t+=1),t===e.length)return!0;return e.length===0}function df(e,n){const t=Qr(e).trim();if(t==="")return 0;const a=[n.label,...n.aliases??[]],r=a.map(Qr);if(r.some(l=>l.startsWith(t)))return 0;if(a.some(l=>{const c=of(l);return c.some((d,m)=>c.slice(m).join(" ").startsWith(t))}))return 1;if(r.some(l=>l.includes(t)))return 2;const s=t.replace(Go,"");return s.length<sf?null:r.some(l=>lf(s,l.replace(Go,"")))?3:null}const cf=["member-human","member-agent","org-human","org-agent"];function uf(e){return`${e.member?"member":"org"}-${e.kind}`}function mf(e,n){const t=n.flatMap((r,s)=>{const l=df(e,r);return l===null?[]:[{candidate:r,tier:l,index:s}]}),a=[];for(const r of cf){const s=t.filter(l=>uf(l.candidate)===r).sort((l,c)=>l.tier-c.tier||l.index-c.index).map(l=>l.candidate);s.length>0&&a.push({id:r,rows:s})}return{sections:a,flat:a.flatMap(r=>r.rows)}}function It(e){return`${e.kind}:${e.accountId}`}const Wo=50;function hf(e,n){return e?.accountId&&e.tenantId?JSON.stringify(["mention-draft-v2",e.accountId,e.tenantId,n]):null}const Vo=bs()(Pd(e=>({drafts:{},write:(n,t,a)=>e(r=>{const s={...r.drafts},l=Sn(t,t,a);l.length===0?delete s[n]:s[n]={text:t,tokens:l,at:Date.now()};const c=Object.keys(s);if(c.length>Wo)for(const d of c.sort((m,h)=>s[m].at-s[h].at).slice(0,c.length-Wo))delete s[d];return{drafts:s}})}),{name:"team-bridge-mention-drafts",storage:Wh(()=>localStorage),version:2,migrate:()=>({drafts:{}})})),Jo=[],gf=50;function pf(e){const{draftKey:n,text:t,setText:a,fieldRef:r,listboxId:s}=e,l=js(),c=l!==null,d=hf(l?.draftOwner,n),m=d??JSON.stringify(["unresolved",n]),h=d?Vo.getState().drafts[d]:void 0,p=Vo(P=>P.write),g=u.useCallback((P,te)=>{d&&p(d,P,te)},[d,p]),[b,f]=u.useState(()=>h?Sn(h.text,t,h.tokens):Jo),x=u.useRef(t),v=u.useRef(h&&h.text!==t?h:null),[k,w]=u.useState(null),j=u.useRef(!1),R=u.useRef(null),N=u.useRef([]),_=u.useRef(null),S=u.useRef(null),C=u.useRef(null),T=u.useRef(0),[ee,O]=u.useState(null),q=u.useCallback(P=>{for(let te=N.current.length-1;te>=0;te-=1)if(N.current[te].text===P)return N.current[te].tokens},[]),K=S.current===t&&r.current?.value===t,I=u.useRef(m);if(I.current!==m){I.current=m,v.current=h&&h.text!==t?h:null,w(null),j.current=!1,x.current=t,N.current=[],_.current=null,S.current=null,C.current=null,O(null);const P=h?Sn(h.text,t,h.tokens):Jo;P!==b&&f(P)}else if(x.current!==t){const P=v.current,oe=k===t||K,we=_.current===t;_.current=null;const Pe=we||!oe&&x.current===""?q(t):void 0,ln=P?.text===t?Sn(t,t,P.tokens):Pe??Sn(x.current,t,b);P?.text===t&&(v.current=null),oe||(w(null),j.current=!1),x.current=t,f(ln)}u.useLayoutEffect(()=>{K&&w(t),S.current=null},[t]),u.useEffect(()=>{if(v.current)return;g(t,b);const P=N.current,te=P.at(-1);(!te||te.text!==t||te.tokens!==b)&&(P.push({text:t,tokens:b}),P.length>gf&&P.shift())},[g,t,b]);const[V,U]=u.useState(null),[z,B]=u.useState(null),[F,A]=u.useState(0),[D,J]=u.useState(null),L=u.useRef(!1),$=u.useMemo(()=>{if(!c||V===null||k!==t)return null;const P=tf(t,V);return!P||b.some(te=>P.start>=te.start&&P.start<te.end)?null:P},[c,V,t,b,k]),le=u.useMemo(()=>$?mf($.query,l?.candidates??[]):{sections:[],flat:[]},[$,l?.candidates]),fe=le.flat,de=$!==null&&fe.length===0&&$.query.endsWith(" "),X=de?$.start:null;u.useEffect(()=>{X!==null&&B(X)},[X]);const ae=$!==null&&z!==$.start&&!de&&!L.current,ve=$?.query;u.useEffect(()=>{A(0)},[ve]);const he=u.useCallback((P="forward")=>{const te=r.current;if(!te)return;if(te.selectionStart!==te.selectionEnd){U(null);return}const oe=te.selectionStart,we=Kp(b,oe,P);we!==oe&&te.setSelectionRange(we,we),U(we)},[r,b]);u.useLayoutEffect(()=>{c&&r.current===r.current?.ownerDocument.activeElement&&he()},[t,c]),u.useLayoutEffect(()=>{const P=C.current,te=P?.draftKey===m&&P.text===t;te||(C.current=null),O(te?P:null)},[t,m]);const ue=u.useCallback((P,te)=>{const oe=r.current;v.current=null,R.current=P,g(P.text,P.tokens),w(P.text);let we=!1;if(oe&&te){oe.focus(),oe.setSelectionRange(te.start,te.end);try{we=oe.ownerDocument.execCommand?.(te.insert===""?"delete":"insertText",!1,te.insert)===!0&&oe.value===P.text}catch{we=!1}}R.current=null,x.current=P.text,f(P.tokens),we||a(P.text),U(P.caret),requestAnimationFrame(()=>{const Pe=r.current;Pe&&Pe.setSelectionRange(P.caret,P.caret)})},[r,a,g]),ke=u.useCallback(P=>{requestAnimationFrame(()=>{const te=r.current;te&&(te.focus(),P!==void 0&&te.setSelectionRange(P,P))})},[r]),Z=u.useCallback(P=>{if(!$)return;const te=qp(t,b,$,P,P.member),oe=te.text.slice($.start,te.caret);ue(te,{start:$.start,end:$.end,insert:oe}),B(null);const we=te.tokens.find(Pe=>Pe.start===$.start);we&&!P.member&&J({candidate:P,token:we}),ke(te.caret)},[$,t,b,ue,ke]),me=u.useCallback(()=>{$&&B($.start)},[$]),Ce=u.useCallback(P=>{if(!c||P.nativeEvent.isComposing||P.key==="Process")return!1;const te=P.currentTarget;if(ae&&fe.length>0){if(P.key==="ArrowDown"||P.key==="ArrowUp"){P.preventDefault();const oe=P.key==="ArrowDown"?1:-1;return A(we=>(we+oe+fe.length)%fe.length),!0}if(P.key==="Enter"&&!P.shiftKey||P.key==="Tab"&&!P.shiftKey)return P.preventDefault(),Z(fe[Math.min(F,fe.length-1)]),!0}if(ae&&P.key==="Escape")return P.preventDefault(),P.stopPropagation(),me(),!0;if(P.key==="Backspace"||P.key==="Delete"){const oe=$p(t,b,{start:te.selectionStart,end:te.selectionEnd},P.key);if(oe)return P.preventDefault(),ue(oe,{start:oe.caret,end:oe.caret+(t.length-oe.text.length),insert:""}),!0}if((P.key==="ArrowLeft"||P.key==="ArrowRight")&&!P.shiftKey&&te.selectionStart===te.selectionEnd){const oe=te.selectionStart,we=te.ownerDocument.defaultView?.getComputedStyle(te).direction==="rtl",Pe=P.key==="ArrowRight"!==we,ln=b.find(Fe=>Pe?oe===Fe.start:oe===Fe.end);if(ln){P.preventDefault();const Fe=Pe?ln.end:ln.start;return te.setSelectionRange(Fe,Fe),U(Fe),!0}}return!1},[c,ae,fe,F,Z,me,t,b,ue]),je=u.useCallback(P=>{const te=P.nativeEvent;L.current=!!te.isComposing;const oe=P.currentTarget;j.current&&w(t);const we=C.current;we&&(oe.selectionStart!==we.selectionStart||oe.selectionEnd!==we.selectionEnd)&&(C.current=null,O(null));const Pe=V??oe.selectionStart;he(oe.selectionStart<Pe?"backward":"forward")},[V,he,t]);u.useEffect(()=>{const P=r.current;if(!P||!c)return;const te=()=>{L.current=!0,C.current=null,O(null)},oe=()=>{L.current=!1,he()},we=ln=>{const Fe=ln.inputType,dn=Fe==="historyUndo"||Fe==="historyRedo";dn&&(_.current=P.value),v.current=null,S.current=P.value,C.current={draftKey:m,sequence:++T.current,text:P.value,selectionStart:P.selectionStart,selectionEnd:P.selectionEnd,kind:Fe==="insertFromPaste"?"paste":dn?"restore":"typing",inputType:Fe,composing:L.current||!!ln.isComposing};const be=R.current?.text===P.value?R.current.tokens:(dn?q(P.value):void 0)??Sn(x.current,P.value,b);g(P.value,be)},Pe=()=>{j.current=!0};return P.addEventListener("compositionstart",te),P.addEventListener("compositionend",oe),P.addEventListener("input",we),P.addEventListener("pointerdown",Pe),P.addEventListener("keydown",Pe),()=>{P.removeEventListener("compositionstart",te),P.removeEventListener("compositionend",oe),P.removeEventListener("input",we),P.removeEventListener("pointerdown",Pe),P.removeEventListener("keydown",Pe)}},[r,c,he,q,b,g,m]);const ye=u.useMemo(()=>new Set((l?.candidates??[]).filter(P=>P.member).map(P=>It(P))),[l?.candidates]),xe=u.useRef(new Set),pe=l?.conversationId??null;u.useLayoutEffect(()=>{J(null),xe.current.clear()},[pe]),u.useEffect(()=>{if(xe.current.size===0)return;const P=[...xe.current].filter(te=>ye.has(te));if(P.length!==0){for(const te of P)xe.current.delete(te);f(te=>te.map(oe=>P.includes(It(oe))?{...oe,notify:!0}:oe))}},[ye]);const qe=u.useCallback(()=>{if(!l?.sendMentions)return;const P=Up(Sn(x.current,t,b),ye);return P.length>0?P:void 0},[l?.sendMentions,t,b,ye]),Wn=u.useCallback((P,te=!0)=>{D&&(P&&f(oe=>oe.map(we=>we.start===D.token.start&&It(we)===It(D.candidate)?{...we,...P}:we)),te&&J(null),ke(D.token.end+1))},[D,ke]);return u.useEffect(()=>{D&&!b.some(P=>P.start===D.token.start&&It(P)===It(D.candidate))&&J(null)},[D,b]),{enabled:c,open:ae,sections:le.sections,flat:fe,active:F,setActive:A,pick:Z,close:me,anchorIndex:$?.start??null,tokens:b,onKeyDown:Ce,onSelect:je,payload:qe,notice:D,dismissNotice:()=>Wn({notify:!1}),silenceNotice:()=>Wn({notify:!1}),resolveNotice:()=>{D&&(xe.current.add(It(D.candidate)),J({...D,invited:!0}),ke(D.token.end+1))},source:l,listboxId:s,inputScopeKey:m,emojiIntent:ee,isComposing:()=>L.current,clearEmojiIntent:()=>{C.current=null,O(null)},applyTextEdit:P=>{ue({text:P.text,caret:P.caret,tokens:Sn(t,P.text,b)},P.edit)}}}function rc(e){const n=u.useId().replace(/:/g,""),t=pf({...e,listboxId:n}),a=Lp({draftKey:t.inputScopeKey,text:e.text,enabled:t.enabled,fieldRef:e.fieldRef,listboxId:`${n}-emoji`,mentionQueryStart:t.open?t.anchorIndex:null,mentionRanges:t.tokens,intent:t.emojiIntent,isComposing:t.isComposing,onEdit:t.applyTextEdit});return{...t,open:t.open&&a.owner==="mention",emoji:a,stage:r=>{t.source&&Su(t.source.conversationId,r,t.payload())},bindField:r=>({onKeyDown:s=>{pp(a.owner,s,{mention:t.onKeyDown,emoji:a.onKeyDown,composer:l=>{a.owner==="none"&&t.onKeyDown(l)||r.onKeyDown?.(l)}})},...t.enabled?{onSelect:t.onSelect,onBlur:t.clearEmojiIntent,role:"combobox","aria-expanded":t.open,"aria-controls":t.open?n:void 0,"aria-autocomplete":"list","aria-activedescendant":t.open&&t.flat.length>0?Jr(n,t.active):void 0}:{},...a.owner==="emoji"?a.aria:{}})}}const ff=352,ca=8;function sc({mentions:e,fieldRef:n,text:t,children:a}){const[r,s]=u.useState(null),{open:l,anchorIndex:c}=e;return u.useLayoutEffect(()=>{const d=n.current;if(!l||c===null||!d){s(null);return}const m=d.ownerDocument.defaultView,h=()=>{const g=nc(d,c),b=m?.innerWidth??0,f=m?.innerHeight??0,x=Math.min(ff,b-2*ca),k=m?.getComputedStyle(d).direction==="rtl"?g.right+8-x:g.left-8,w=Math.min(Math.max(ca,k),Math.max(ca,b-ca-x));s({left:w,bottom:f-g.top+6})};h(),d.addEventListener("scroll",h),m?.addEventListener("resize",h);const p=typeof ResizeObserver>"u"?null:new ResizeObserver(h);return p?.observe(d),()=>{d.removeEventListener("scroll",h),m?.removeEventListener("resize",h),p?.disconnect()}},[l,c,n]),e.enabled?i.jsxs("div",{className:"group/mention-field relative flex min-w-0 flex-1",children:[i.jsx(Gp,{fieldRef:n,text:t,tokens:e.tokens}),a,e.emoji?.open&&e.emoji.query&&i.jsx(xp,{fieldRef:n,anchorIndex:e.emoji.query.start,listboxId:e.emoji.listboxId,rows:e.emoji.rows,active:e.emoji.active,label:o("ui.teamBridge.reactions.choose"),emptyLabel:o("ui.teamBridge.reactions.noResults"),onActive:e.emoji.setActive,onPick:e.emoji.pick}),l&&r&&i.jsx(Xp,{listboxId:e.listboxId,sections:e.sections,active:e.active,query:c===null?"":t.slice(c+1,n.current?.selectionStart),onActive:e.setActive,onPick:e.pick,position:r})]}):i.jsx(i.Fragment,{children:a})}function oc(e,n){return n?e.members.find(t=>t.kind==="human"&&t.account_id===n&&t.state==="active")??null:null}function Kn(e,n){return e.kind!=="dm"&&e.status==="open"&&!e.builtin&&oc(e,n)!==null}function $i(e,n){const t=oc(e,n);return e.kind!=="dm"&&e.status==="open"&&!e.builtin&&t!==null&&t.role==="owner"}function lc(e,n,t){return e.localeCompare(n,t,{sensitivity:"base"})}function Yr(e,n){const t=n.trim().toLocaleLowerCase();return t===""||e.toLocaleLowerCase().includes(t)}function dc(e,n){return{people:e.filter(t=>n(t)==="human"),agents:e.filter(t=>n(t)==="agent")}}function Ta(e,n){return`${e}:${n}`}function kf(e){return new Set(e.filter(n=>n.state==="active"||n.state==="invited").map(n=>Ta(n.kind,n.account_id)))}function wf(e,n,t,a,r){const s=kf(e.members),l=[];for(const c of n){const d=nn(c),m=ms(c,t);s.has(Ta("human",c.account_id))||l.push({recipient:{kind:"human",accountId:c.account_id,label:d},disabledReason:m==="openable"||m==="paused"||m==="self"?null:"bridge_unavailable"});const h=c.agent;!h||s.has(Ta("agent",c.account_id))||l.push({recipient:{kind:"agent",accountId:c.account_id,endpointId:h.endpoint_id,agentName:h.name.trim(),ownerLabel:d,label:a(h.name.trim(),d)},disabledReason:e.agent_capable?h.state==="active"||h.state==="paused"?null:"agent_unavailable":"agent_not_permitted"})}return l.sort((c,d)=>+(c.disabledReason!==null)-+(d.disabledReason!==null)||lc(c.recipient.label,d.recipient.label,r))}function cc(e,n,t,a,r,s){return e.members.flatMap(l=>l.state==="active"||l.state==="invited"?[{member:l,state:l.state}]:[]).map(({member:l,state:c})=>({member:l,label:_a(l,n,{named:a,unnamed:d=>a("",d)},null)??l.account_id,state:c,self:l.kind==="human"&&l.account_id===t,removable:r&&l.kind==="human"&&l.account_id!==t})).sort((l,c)=>+(c.member.role==="owner")-+(l.member.role==="owner")||lc(l.label,c.label,s))}const bf="agents";function yf(e,n,t){if(!t||e.kind==="dm"||e.status!=="open"||n.state!=="active"&&n.state!=="invited")return null;const a=n.account_id===t;return n.kind==="human"?a?n.state!=="active"?null:!e.builtin||e.builtin===bf?"leave":null:$i(e,t)?"remove":null:a?e.builtin?null:n.state==="active"?"withdraw":"decline":null}function xf(e){if(e.kind==="dm")return"dm";switch(e.builtin){case"general":case"humans":case"agents":return e.builtin;default:return null}}const vf=8;function jf(e,n,t,a,r){return cc(e,n,t,a,!1,r).map(({member:s,label:l,state:c,self:d})=>({member:s,label:l,state:c==="invited"&&s.kind==="agent"?"pending_approval":c,self:d,ownAgent:s.kind==="agent"&&s.account_id===t,action:yf(e,s,t),key:Ta(s.kind,s.account_id)}))}function _f(e){switch(e){case"bridge_unavailable":return o("ui.teamBridge.members.reason_short.bridge_unavailable");case"agent_unavailable":return o("ui.teamBridge.members.reason_short.agent_unavailable");case"agent_not_permitted":return o("ui.teamBridge.members.reason_short.agent_not_permitted");default:return""}}const Ir="flex min-h-9 items-center gap-2 rounded-md px-2 py-1",Qo="px-2 pt-3 pb-1 text-meta text-ink-dim";function Yo({accountId:e,label:n,kind:t,people:a}){const r=a.find(s=>s.account_id===e)??{account_id:e,display_label:n,role:"member",bridge_enabled:!1,bridge_state:"none"};return i.jsx(kn,{member:r,kind:t,label:n,size:24,className:"size-6 rounded-md text-meta"})}function Nf(e){return`${e.kind}:${e.account_id}`}function Bf({open:e,conversation:n,people:t,selfAccountId:a,peopleState:r,canInvite:s,canRemove:l,mutationError:c=!1,pendingKey:d=null,onClose:m,onRetryMembers:h,onAdd:p,onRemove:g}){const b=ge(),f=u.useId(),x=u.useId(),v=u.useRef(null),k=u.useRef(null),[w,j]=u.useState(""),[R,N]=u.useState(new Set),[_,S]=u.useState(null);u.useEffect(()=>{e&&(j(""),N(new Set),S(null))},[e]);const C=u.useCallback((X,ae)=>lt(X,ae,{named:(ve,he)=>o("ui.teamBridge.chief.label",{agent:ve,person:he}),unnamed:ve=>o("ui.teamBridge.chief.unnamed",{person:ve})}),[]),T=u.useMemo(()=>wf(n,t,a,C,b),[n,t,a,C,b]);u.useEffect(()=>{N(X=>{const ae=new Set(T.filter(({disabledReason:ue})=>ue===null).map(({recipient:ue})=>on(ue)));let ve=!1;const he=new Set;for(const ue of X)ae.has(ue)?he.add(ue):ve=!0;return ve?he:X})},[T]);const ee=u.useMemo(()=>T.filter(({recipient:X})=>Yr(X.label,w)),[T,w]),O=u.useMemo(()=>cc(n,t,a,C,l,b),[n,t,a,C,l,b]),q=O.filter(({label:X})=>Yr(X,w)),K=w.trim()!=="",I=(X,ae)=>{const{people:ve,agents:he}=dc(X,ae);return[{key:"people",heading:o("ui.teamBridge.members.group.people"),rows:ve},{key:"agents",heading:o("ui.teamBridge.members.group.agents_v2"),rows:he}].filter(ue=>ue.rows.length>0)},V=I(ee,({recipient:X})=>X.kind),U=I(q,({member:X})=>X.kind),z=T.filter(({recipient:X,disabledReason:ae})=>ae===null&&R.has(on(X))),B=d!==null,F=u.useRef(null),A=u.useRef(new Map);u.useEffect(()=>{_&&F.current?.focus()},[_]);const D=()=>{const X=_;S(null),X&&A.current.get(X)?.focus()},J=_!==null&&q.some(({member:X,removable:ae})=>ae&&X.account_id===_);u.useEffect(()=>{_!==null&&!J&&S(null)},[_,J]);const L=u.useRef(null);u.useEffect(()=>{if(d!==null||!c)return;const X=L.current;L.current=null,X&&A.current.get(X)?.focus()},[d,c]);const $=X=>{if(!s||X.disabledReason!==null||B)return;const ae=on(X.recipient);N(ve=>{const he=new Set(ve);return he.has(ae)?he.delete(ae):he.add(ae),he})},le=({member:X,label:ae,state:ve,self:he,removable:ue})=>{const ke=X.account_id,Z=d===`remove:${ke}`,me=ue&&_===ke;return i.jsxs("div",{className:G("group rounded-md",!me&&ue&&"hover:bg-row-hover"),children:[i.jsxs("div",{className:Ir,children:[i.jsx(Yo,{accountId:ke,label:ae,kind:X.kind,people:t}),i.jsxs("p",{className:G("min-w-0 flex-1 truncate text-body-sm",Z?"text-ink-muted":"text-ink"),children:[ae,he&&i.jsxs("span",{className:"text-ink-dim",children:[" ",o("ui.teamBridge.members.you")]})]}),X.role==="owner"&&i.jsx(yi,{variant:"neutral",className:"shrink-0",children:o("ui.teamBridge.members.role.owner")}),ve==="invited"&&i.jsx(yi,{variant:"neutral",className:"shrink-0",children:o("ui.teamBridge.members.state.invited_short")}),Z&&i.jsx("span",{className:"shrink-0 text-meta text-ink-dim",children:o("ui.teamBridge.members.removing_v2")}),ue&&!Z&&i.jsx("span",{className:G("shrink-0",fd(me)),children:i.jsx(Vi,{content:o("ui.teamBridge.members.remove_tooltip"),children:i.jsx(Y,{ref:Ce=>{Ce?A.current.set(ke,Ce):A.current.delete(ke)},type:"button",size:"icon-sm",variant:"ghost",disabled:B,"aria-label":o("ui.teamBridge.members.remove_label",{name:ae}),"aria-expanded":me,onClick:()=>S(me?null:ke),children:i.jsx(Gr,{"aria-hidden":"true"})})})})]}),me&&i.jsxs("div",{className:"flex items-center justify-end gap-1 px-2 pb-1.5",children:[i.jsx(Y,{ref:F,type:"button",size:"sm",variant:"ghost",disabled:B,onClick:D,children:o("ui.teamBridge.create.cancel")}),i.jsx(Y,{type:"button",size:"sm",variant:"danger",disabled:B,onClick:()=>{S(null),L.current=ke,g(ke)},children:o("ui.teamBridge.members.remove",{name:ae})})]})]},`${Nf(X)}:${ve}`)},fe=(X,ae,ve)=>{const he=on(X.recipient),ue=X.recipient.label,ke=i.jsx(Yo,{accountId:X.recipient.accountId,label:ue,kind:X.recipient.kind,people:t});if(X.disabledReason!==null){const je=_f(X.disabledReason);return i.jsxs("fieldset",{"aria-disabled":"true","aria-label":o("ui.teamBridge.members.ineligible_label",{name:ue,reason:je}),"data-ineligible":"",className:G(Ir,"m-0 min-w-0 border-0"),children:[ke,i.jsx("span",{className:"min-w-0 flex-1 truncate text-body-sm text-ink-muted",children:ue}),i.jsx("span",{className:"shrink-0 text-end text-meta text-ink-dim",children:je})]},he)}const Z=R.has(he),me=!s||B,Ce=`${x}-${ae}-${ve}-label`;return i.jsxs("div",{className:G(Ir,me?"cursor-not-allowed":"cursor-pointer hover:bg-row-hover",Z&&"bg-row-selected"),onClick:je=>{je.target.closest?.("[data-row-checkbox]")||$(X)},onKeyDown:je=>{je.key!=="Enter"&&je.key!==" "||(je.preventDefault(),$(X))},children:[ke,i.jsx("span",{id:Ce,className:G("min-w-0 flex-1 truncate text-body-sm",me?"text-ink-muted":"text-ink"),children:ue}),i.jsx("span",{className:"flex shrink-0","data-row-checkbox":"",children:i.jsx(ig,{checked:Z,disabled:me,onCheckedChange:()=>$(X),"aria-labelledby":Ce})})]},he)},de="min-h-0 space-y-0.5 pb-2 [scrollbar-gutter:stable] md:flex-1 md:overflow-y-auto md:pe-2";return i.jsx(qt,{open:e,onOpenChange:X=>!X&&m(),children:i.jsxs(Ft,{ref:k,tabIndex:-1,className:"h-[min(780px,90dvh)] max-w-2xl gap-0 overflow-hidden p-0",closeDisabled:B,onOpenAutoFocus:X=>{X.preventDefault(),(v.current??k.current)?.focus()},onEscapeKeyDown:X=>{_&&(X.preventDefault(),D())},children:[i.jsxs(Ud,{className:"px-6 pt-6 pb-4 pe-12",children:[i.jsx($t,{children:o("ui.teamBridge.members.title")}),i.jsx(Kt,{children:o("ui.teamBridge.members.description")})]}),i.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-1 overflow-auto md:grid-cols-2 md:overflow-hidden",children:[i.jsxs("section",{className:"flex min-h-64 flex-col gap-3 px-6 md:min-h-0 md:overflow-hidden md:pe-3","aria-labelledby":`${f}-current`,children:[i.jsxs("h3",{id:`${f}-current`,className:"flex h-8 items-center gap-2 text-sm font-medium text-ink",children:[o("ui.teamBridge.members.current"),i.jsx("span",{className:"font-normal text-ink-dim tabular-nums",children:pa(O.length,void 0,b)})]}),i.jsx("div",{className:de,children:O.length===0?i.jsx("p",{className:"px-2 py-4 text-sm text-ink-muted",children:o("ui.teamBridge.members.current_empty")}):U.length===0?i.jsx("p",{className:"px-2 py-4 text-sm text-ink-muted",children:o("ui.teamBridge.members.current_no_matches")}):U.map((X,ae)=>i.jsxs("fieldset",{"aria-labelledby":`${f}-current-${X.key}`,className:"m-0 min-w-0 space-y-0.5 border-0 p-0",children:[i.jsx("p",{id:`${f}-current-${X.key}`,className:G(Qo,ae===0&&"pt-0"),children:X.heading}),X.rows.map(le)]},X.key))})]}),i.jsxs("section",{className:"flex min-h-80 flex-col gap-3 px-6 py-5 md:min-h-0 md:overflow-hidden md:ps-3 md:py-0","aria-labelledby":x,children:[i.jsxs("div",{className:"flex h-8 items-center justify-between gap-2",children:[i.jsx("h3",{id:x,className:"text-sm font-medium text-ink",children:o("ui.teamBridge.members.invite")}),!s&&i.jsx("span",{className:"text-meta-sm text-ink-dim",children:o("ui.teamBridge.members.read_only")})]}),r==="loading"?i.jsx(Ze,{size:"sm",label:o("ui.teamBridge.members.loading")}):r==="error"?i.jsxs("div",{className:"flex flex-col items-start gap-2",children:[i.jsx("p",{className:"text-sm text-ink-muted",children:o("ui.teamBridge.members.load_error")}),h&&i.jsx(Y,{type:"button",size:"sm",variant:"outline",onClick:()=>h(n.tenant_id),children:o("ui.teamBridge.list.retry")})]}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"relative",children:[i.jsx(pd,{size:15,"aria-hidden":"true",className:"pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-ink-dim"}),i.jsx(Hi,{ref:v,value:w,onChange:X=>j(X.target.value),placeholder:o("ui.teamBridge.members.search"),"aria-label":o("ui.teamBridge.members.search"),className:"ps-9",disabled:B})]}),i.jsx("div",{className:de,children:ee.length===0?i.jsx("p",{className:"px-2 py-4 text-sm text-ink-muted",children:T.length===0&&!K?o("ui.teamBridge.members.empty"):K&&q.length>0?o("ui.teamBridge.members.no_invitable_matches",{query:w.trim()}):o("ui.teamBridge.members.no_matches")}):V.map((X,ae)=>i.jsxs("fieldset",{className:"m-0 min-w-0 space-y-0.5 border-0 p-0","aria-labelledby":`${x}-${X.key}`,children:[i.jsx("p",{id:`${x}-${X.key}`,className:G(Qo,ae===0&&"pt-0"),children:X.heading}),X.rows.map((ve,he)=>fe(ve,X.key,he))]},X.key))})]})]})]}),c&&i.jsx("p",{role:"alert",className:"px-6 pt-2 text-sm text-danger",children:o("ui.teamBridge.members.mutation_error")}),i.jsxs("div",{className:"mt-2 flex items-center justify-between gap-3 rounded-b-lg border-hairline border-t bg-surface px-6 py-4",children:[i.jsx("p",{className:"max-w-sm text-meta text-ink-muted",children:o("ui.teamBridge.members.invitation_note_v3")}),i.jsxs("div",{className:"flex shrink-0 gap-2",children:[i.jsx(Y,{type:"button",variant:"ghost",onClick:m,disabled:B,children:o("ui.teamBridge.create.cancel")}),i.jsx(Y,{type:"button",variant:"primary",disabled:!s||z.length===0||B,onClick:()=>p(z.map(({recipient:X})=>hs(X))),children:o("ui.teamBridge.members.invite_count",{count:z.length})})]})]})]})})}function uc(e,n){if(!e)return null;const t=Date.parse(e);return Number.isNaN(t)?null:Vh(t,{dateStyle:"medium",timeStyle:"short"},n)}const Xo="";function Ns(e){return e.name?.trim()||o("ui.teamBridge.list.untitled")}const Sf=({open:e,name:n,onConfirm:t,onClose:a})=>(ge(),i.jsx(qt,{open:e,onOpenChange:r=>{r||a()},children:i.jsxs(Ft,{className:"gap-4",children:[i.jsx($t,{children:o("ui.teamBridge.archive.confirm.title",{name:n})}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:o("ui.teamBridge.archive.confirm.body")}),i.jsxs(Ga,{children:[i.jsx(Y,{type:"button",variant:"ghost",onClick:a,children:o("ui.teamBridge.create.cancel")}),i.jsx(Y,{type:"button",variant:"primary",onClick:t,children:o("ui.teamBridge.archive.confirm.confirm")})]})]})})),Ef=({open:e,name:n,pending:t=!1,error:a=null,onConfirm:r,onClose:s})=>{ge();const l=u.useId(),[c,d]=u.useState("");u.useEffect(()=>{e&&d("")},[e]);const m=c.trim().replace(/^#/,"")===n,h=o("ui.teamBridge.archive.delete.confirm_label",{name:Xo}).split(Xo);return i.jsx(qt,{open:e,onOpenChange:p=>{!p&&!t&&s()},children:i.jsxs(Ft,{className:"gap-4",closeDisabled:t,children:[i.jsx($t,{children:o("ui.teamBridge.archive.delete.title",{name:n})}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:o("ui.teamBridge.archive.delete.body")}),i.jsxs("label",{htmlFor:l,className:"flex flex-col gap-1 text-[13px] text-ink-muted",children:[h.map((p,g)=>i.jsxs(u.Fragment,{children:[g>0&&i.jsx("span",{className:"select-all break-all font-medium text-ink",children:n}),p]},`${g}:${p}`)),i.jsx(Hi,{id:l,value:c,onChange:p=>d(p.target.value),autoComplete:"off",autoCapitalize:"off",spellCheck:!1,autoFocus:!0})]}),a&&i.jsx("p",{role:"alert",className:"text-[13px] text-danger",children:a==="gone"?o("ui.teamBridge.archive.delete.not_found"):o("ui.teamBridge.archive.delete.error")}),i.jsxs(Ga,{children:[i.jsx(Y,{type:"button",variant:"ghost",disabled:t,onClick:s,children:o("ui.teamBridge.create.cancel")}),i.jsx(Y,{type:"button",variant:"danger",disabled:!m||t,onClick:r,children:o("ui.teamBridge.archive.delete.confirm")})]})]})})},If=({conversation:e,canManage:n,unarchiving:t=!1,error:a=!1,onUnarchive:r,onDelete:s})=>{const l=ge(),c=e.archived_at?uc(e.archived_at,l):null,d=e.archived_by_label??null,m=d&&c?o("ui.teamBridge.archive.banner.by_on",{name:d,date:c}):c?o("ui.teamBridge.archive.banner.on",{date:c}):o("ui.teamBridge.archive.banner.plain");return i.jsxs("output",{className:"mx-4 mb-2 flex flex-wrap items-center gap-x-3 gap-y-2 rounded-md bg-elevated px-3 py-2",children:[i.jsx(Na,{size:15,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}),i.jsxs("p",{className:"min-w-0 flex-1 text-[13px] text-ink-muted",children:[m,a&&i.jsx("span",{role:"alert",className:"ms-2 text-danger",children:o("ui.teamBridge.archive.banner.unarchive_error")})]}),n&&i.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[i.jsx(Y,{type:"button",size:"sm",variant:"ghost",disabled:t,onClick:r,children:o("ui.teamBridge.archive.banner.unarchive")}),i.jsx(Y,{type:"button",size:"sm",variant:"danger",disabled:t,onClick:s,children:o("ui.teamBridge.archive.banner.delete")})]})]})},Rf=({state:e,conversations:n,organizationName:t,onOpen:a,onRetry:r,hasMore:s=!1,loadingMore:l=!1,loadMoreFailed:c=!1,onLoadMore:d})=>{const m=ge();return i.jsxs("section",{"aria-label":o("ui.teamBridge.archive.section.archived"),className:"flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-5",children:[i.jsx("h2",{className:"font-medium text-lg text-ink",children:o("ui.teamBridge.archive.section.archived")}),e==="loading"?i.jsx("div",{className:"py-2",children:i.jsx(Ze,{size:"sm",label:o("ui.teamBridge.archive.list.loading")})}):e==="error"?i.jsxs("div",{className:"flex flex-col items-start gap-2",children:[i.jsx("p",{className:"text-[13px] text-ink-muted",children:o("ui.teamBridge.archive.list.error")}),r&&i.jsx(Y,{size:"sm",variant:"ghost",onClick:r,children:o("ui.teamBridge.list.retry")})]}):n.length===0?i.jsx("p",{className:"text-ink-muted",children:o("ui.teamBridge.archive.list.empty")}):i.jsx("ul",{className:"flex flex-col",children:n.map(h=>{const p=h.archived_at?uc(h.archived_at,m):null,g=h.archived_by_label??null,b=g&&p?o("ui.teamBridge.archive.list.meta_by_on",{name:g,date:p}):p?o("ui.teamBridge.archive.list.meta_on",{date:p}):null,f=t?.(h)??null;return i.jsx("li",{children:i.jsxs("button",{type:"button",onClick:()=>a(h),"data-conversation-id":h.id,className:"flex min-h-[38px] w-full items-center gap-2 rounded-md px-2 py-1 text-start text-[13px] text-ink-muted transition-colors duration-fast ease-out-quart hover:bg-row-hover hover:text-ink",children:[i.jsx(Pa,{size:15,"aria-hidden":"true",className:"shrink-0"}),i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i.jsx("span",{className:"truncate",children:Ns(h)}),(b||f)&&i.jsx("span",{className:"truncate text-meta-sm text-ink-dim",children:[f,b].filter(Boolean).join(" · ")})]})]})},h.id)})}),e==="ready"&&(s||c)&&d&&i.jsxs("div",{className:"flex flex-col items-start gap-1 pt-1",children:[c&&i.jsx("p",{role:"alert",className:"text-[12px] text-danger",children:o("ui.teamBridge.archive.list.load_more_error")}),i.jsx(Y,{size:"sm",variant:"ghost",disabled:l,onClick:d,children:l?o("ui.teamBridge.archive.list.loading"):o("ui.teamBridge.archive.list.load_more")})]})]})},Xr=new Map,Ma=(e,n,t)=>`${e??""}/${n??"draft"}${t?`#${t}`:""}`;function Bs(e){let n=Xr.get(e);return n||(n={seen:new Set,highestSeq:-1,loading:!0},Xr.set(e,n)),n}function mc(e,n){const t=Bs(e);if(n.length===0){t.loading=!1;return}for(const a of n)t.seen.add(a.id),a.seq!==void 0&&(t.highestSeq=Math.max(t.highestSeq,a.seq));t.loading=!1}function Cf(e,n,{commit:t=!0}={}){const a=Bs(e),r=new Set;if(!a.loading)for(const s of n){const l=s.seq===void 0||s.seq>a.highestSeq;!a.seen.has(s.id)&&l&&r.add(s.id)}return t&&mc(e,n),r}function Tf(e){Bs(e).loading=!1}function hc(e){const n=Xr.get(e);n&&(n.loading=!0)}const Mf=4;function Af(e){const n=e&&typeof e=="object"?e.status?.attachments:void 0,t=Eu.safeParse(n);if(!t.success||!t.data.enabled)return null;const a=new Set(t.data.mime_types);return!a.has("image/png")||!a.has("image/jpeg")?null:t.data}function Zo(e){return e?Math.min(e.max_count,Mf):0}function Ss(e){const n=a=>e[a];if(e.length>=8&&n(0)===137&&n(1)===80&&n(2)===78&&n(3)===71)return"image/png";if(e.length>=3&&n(0)===255&&n(1)===216&&n(2)===255)return"image/jpeg";if(e.length>=6&&n(0)===71&&n(1)===73&&n(2)===70)return"image/gif";const t=(a,r)=>String.fromCharCode(...e.subarray(a,r));if(e.length>=12&&t(0,4)==="RIFF"&&t(8,12)==="WEBP")return"image/webp";if(e.length>=12&&t(4,8)==="ftyp"){const a=t(8,12);if(["heic","heix","hevc","heim","heis","mif1","msf1"].includes(a))return"image/heic"}return null}function zf(e,n){if(n==="account_mismatch")return"account_mismatch";switch(e){case 413:return"too_large";case 415:return"unsupported";case 422:return"invalid";case 429:return"rate_limited";case 400:return"limit";case 409:return"failed";case 404:return"expired";case 401:return"signed_out";case null:case void 0:case 502:case 503:return"offline";default:return"failed"}}function fa(e){return e?.code==="attachment_not_found"}const Pf=/client_ref/i;function el(e){const n=e?.code;if(n==="client_ref_conflict"||n==="conflict_client_ref")return!0;const t=e?.message;return typeof t=="string"&&Pf.test(t)}async function Rr(e,n,t){return e?.stageHeld?e.stageHeld(n,t):[...e?.ids??[]]}class ut extends Error{reason;constructor(n){super(`attachment ${n}`),this.name="AttachmentPrepareError",this.reason=n}}function Df(e){let n="";for(let a=0;a<e.length;a+=32768)n+=String.fromCharCode(...e.subarray(a,a+32768));return btoa(n)}function Lf(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a<n.length;a+=1)t[a]=n.charCodeAt(a);return t}async function Of(e,n){if(typeof createImageBitmap!="function"||typeof OffscreenCanvas!="function")throw new ut("unsupported");let t;try{t=await createImageBitmap(new Blob([e],{type:n}))}catch{throw new ut("unsupported")}try{const a=new OffscreenCanvas(t.width,t.height),r=a.getContext("2d");if(!r)throw new ut("unsupported");r.drawImage(t,0,0);const s=await a.convertToBlob({type:"image/png"});return new Uint8Array(await s.arrayBuffer())}finally{t.close()}}async function qf(e,n){if(typeof createImageBitmap!="function")return{width:0,height:0};try{const t=await createImageBitmap(new Blob([e],{type:n})),a={width:t.width,height:t.height};return t.close(),a}catch{return{width:0,height:0}}}async function gc(e,n){let t=new Uint8Array(await e.arrayBuffer());const a=Ss(t);if(!a)throw new ut("unsupported");let r;a==="image/png"||a==="image/jpeg"?r=a:(t=await Of(t,a),r="image/png");const s=await Pm({data_b64:Df(t),mime_type:r},Lm,Dm,{edgeIsHard:!0});if(s.mime_type!=="image/png"&&s.mime_type!=="image/jpeg")throw new ut("unsupported");const l=Lf(s.data_b64);if(l.byteLength>n)throw new ut("too_large");const c=await qf(l,s.mime_type);return{bytes:l,mime:s.mime_type,...c}}function Cr(e){if(!e)return[];const n=[];if(e.items&&e.items.length>0){for(const t of Array.from(e.items)){if(t.kind!=="file")continue;const a=t.getAsFile();a&&nl(a)&&n.push(a)}return n}for(const t of Array.from(e.files??[]))nl(t)&&n.push(t);return n}function pc(e){return zm(e)}function nl(e){return e.type===""||e.type.startsWith("image/")}function Ff(e){return e.state===void 0||e.state==="bound"?e.mime==="image/png"||e.mime==="image/jpeg"?"fetch":"unavailable":e.state==="expired"?"expired":"unavailable"}function $f(e,n){return{id:e.id,conversationId:n,mime:e.mime,size:e.size,width:e.width,height:e.height,...e.expires_at?{expiresAt:e.expires_at}:{}}}function Kf(e,n=Date.now()){if(!e.expiresAt)return!1;const t=Date.parse(e.expiresAt);return Number.isFinite(t)&&t<=n}const Uf=16,At=new Map,fc=(e,n)=>`${e}\0${n}`;function Hf(e,n,t){if(!e)return;const a=fc(e,n);for(At.delete(a),At.set(a,t);At.size>Uf;){const r=At.keys().next().value;if(r===void 0)break;At.delete(r)}}function kc(e,n){return e?At.get(fc(e,n))??null:null}function Gf(){At.clear()}ds(Gf);const wc=({recipients:e,candidates:n,onChange:t,profileFor:a,autoFocus:r=!0})=>{ge();const s=u.useId(),l=u.useRef(null),[c,d]=u.useState(""),[m,h]=u.useState(!1),[p,g]=u.useState(0);u.useEffect(()=>{document.getElementById(`${s}-${p}`)?.scrollIntoView({block:"nearest"})},[p,s]);const b=u.useMemo(()=>new Set(e.map(on)),[e]),f=u.useMemo(()=>{const k=c.trim().toLocaleLowerCase();return n.filter(w=>!b.has(on(w))&&(k===""||w.label.toLocaleLowerCase().includes(k)))},[n,b,c]),x=k=>{t([...e,k]),d(""),g(0),l.current?.focus()},v=m&&f.length>0;return i.jsxs("div",{className:"relative shrink-0 px-5 pt-3 pb-2",children:[i.jsxs("div",{className:"flex min-h-9 flex-wrap items-center gap-1.5 rounded-lg bg-elevated px-2 py-1",children:[i.jsx("span",{className:"pe-1 text-[13px] text-ink-dim",children:o("ui.teamBridge.compose.to")}),e.map(k=>{const w=a?.(k);return i.jsxs("span",{className:"flex h-6 items-center gap-1 rounded-md bg-accent-wash pe-0.5 ps-1.5 text-[13px] text-ink",children:[w?i.jsx(ct,{member:w,label:k.label,kind:k.kind,onMessage:()=>{},canMessage:!1,children:i.jsxs("button",{type:"button",className:"flex min-w-0 items-center gap-1 rounded-sm",children:[i.jsx(kn,{member:w,kind:k.kind,endpointId:k.kind==="agent"?k.endpointId:void 0,label:k.label,size:20,className:"text-[10px]"}),k.label]})}):i.jsxs(i.Fragment,{children:[k.kind==="agent"&&i.jsx(Ot,{size:12,"aria-hidden":"true",className:"text-accent"}),k.label]}),i.jsx("button",{type:"button","aria-label":o("ui.teamBridge.compose.remove",{name:k.label}),onClick:()=>t(e.filter(j=>on(j)!==on(k))),className:"flex size-5 items-center justify-center rounded-sm text-ink-dim hover:bg-row-hover hover:text-ink",children:i.jsx(gt,{size:12})})]},on(k))}),i.jsx("input",{ref:l,autoFocus:r,role:"combobox","aria-expanded":v,"aria-controls":s,"aria-autocomplete":"list","aria-activedescendant":v?`${s}-${Math.min(p,f.length-1)}`:void 0,"aria-label":o("ui.teamBridge.compose.label"),placeholder:e.length===0?o("ui.teamBridge.compose.placeholder"):void 0,value:c,onFocus:()=>h(!0),onBlur:()=>h(!1),onChange:k=>{d(k.target.value),g(0),h(!0)},onKeyDown:k=>{if(k.key==="ArrowDown")k.preventDefault(),h(!0),g(w=>Math.max(0,Math.min(w+1,f.length-1)));else if(k.key==="ArrowUp")k.preventDefault(),g(w=>Math.max(w-1,0));else if(k.key==="Enter"&&v){k.preventDefault();const w=f[Math.min(p,f.length-1)];w&&x(w)}else k.key==="Escape"?h(!1):k.key==="Backspace"&&c===""&&e.length>0&&t(e.slice(0,-1))},className:"h-7 min-w-32 flex-1 bg-transparent text-[13px] text-ink outline-none placeholder:text-ink-dim"})]}),v&&i.jsx("div",{id:s,tabIndex:-1,role:"listbox","aria-label":o("ui.teamBridge.compose.label"),"data-lo-floating":"",className:"absolute top-full right-5 left-5 z-20 mt-1 max-h-64 overflow-y-auto rounded-lg bg-elevated p-1 shadow-overlay",children:f.map((k,w)=>{const j=a?.(k);return i.jsxs("button",{id:`${s}-${w}`,type:"button",tabIndex:-1,role:"option","aria-selected":w===p,onMouseDown:R=>R.preventDefault(),onClick:()=>x(k),onMouseEnter:()=>g(w),className:G("flex h-[30px] w-full cursor-default items-center gap-2 rounded-md px-2 text-start text-[13px]",w===p?"bg-row-hover text-ink":"text-ink-muted"),children:[j?i.jsx(kn,{member:j,kind:k.kind,endpointId:k.kind==="agent"?k.endpointId:void 0,label:k.label,size:20,className:"text-[10px]"}):i.jsx("span",{"aria-hidden":"true",className:G("flex size-5 shrink-0 items-center justify-center overflow-hidden rounded-full text-[10px] font-semibold","bg-accent-alt-wash",k.kind==="agent"?"text-accent":"text-accent-alt"),children:k.kind==="agent"?i.jsx(Ot,{size:12}):k.label.trim().charAt(0).toUpperCase()||"?"}),i.jsx("span",{className:"min-w-0 flex-1 truncate",children:k.label})]},on(k))})})]})};function bc({state:e}){return e.chips.length?i.jsxs("div",{className:"px-3.5 pt-3",children:[i.jsx("ul",{className:"flex flex-wrap gap-2","aria-label":o("ui.teamBridge.files.staged"),children:e.chips.map(n=>i.jsxs("li",{className:"flex w-60 min-w-0 items-center gap-2 rounded-md border border-control bg-sunken p-2","data-file-chip":n.status,children:[n.status==="uploading"?i.jsx(Ze,{size:"sm"}):i.jsx(ps,{size:18,className:G("shrink-0",n.status==="error"&&e.enabled?"text-danger":"text-ink-muted"),"aria-hidden":"true"}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("details",{className:"group/file-name",children:i.jsxs("summary",{className:"flex min-h-6 cursor-pointer list-none items-start gap-1 rounded-sm focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-1 [&::-webkit-details-marker]:hidden",children:[i.jsx(Hd,{size:12,"aria-hidden":"true",className:"mt-1 shrink-0 text-ink-muted group-open/file-name:rotate-90"}),i.jsx("bdi",{className:"block min-w-0 truncate text-sm text-ink group-open/file-name:whitespace-normal group-open/file-name:break-all",children:n.file.name})]})}),i.jsx("span",{className:G("text-xs",n.status==="error"&&e.enabled?"text-danger":"text-ink-muted"),children:o(n.status==="error"?e.enabled?"ui.teamBridge.files.failed":"ui.teamBridge.files.not_uploaded":n.status==="uploading"?"ui.teamBridge.files.uploading":"ui.teamBridge.files.attached")})]}),n.status==="error"&&e.enabled&&i.jsx(Y,{variant:"ghost",size:"icon-sm","aria-label":o("ui.teamBridge.files.retry"),onClick:()=>e.retry(n.key),children:i.jsx(ys,{size:14,"aria-hidden":"true"})}),i.jsx(Y,{variant:"ghost",size:"icon-sm","aria-label":o("ui.teamBridge.files.remove"),onClick:()=>e.remove(n.key),children:i.jsx(gt,{size:14,"aria-hidden":"true"})})]},n.key))}),!e.enabled&&i.jsx("output",{className:"pt-1 text-xs text-ink-muted",children:o("ui.teamBridge.files.unavailable")})]}):null}const yc=250,Wf=200;function Vf(e){const{id:n,canRecord:t,onTranscript:a}=e,[r,s]=u.useState(!1),[l,c]=u.useState(!1),[d,m]=u.useState(!1),[h,p]=u.useState(null),[g,b]=u.useState(0),f=u.useRef(null),x=u.useRef(null),v=u.useRef([]),k=u.useRef(null),w=u.useRef(null),j=u.useRef(a);u.useEffect(()=>{j.current=a});const R=u.useCallback(async O=>{w.current?.abort();const q=new AbortController;w.current=q,k.current=O;try{m(!0);const K=await Om.createTranscriptionWithRetry(qm.baseUrl,{file:new File([O],"recording.webm",{type:"audio/webm"})},{signal:q.signal,onRetry:({attempt:I,total:V,delayMs:U,error:z})=>{console.warn(`Transcription attempt ${I}/${V} failed with a transient upstream fault; retrying in ${U} ms.`,z)}});K.result?.text?j.current(K.result.text):Fm($m()),k.current=null,p(null)}catch(K){if(q.signal.aborted)return;console.error("Error transcribing audio:",K),Km(K)?p(Um(K)):(p(null),k.current=null,ga(Hm(K)))}finally{w.current===q&&m(!1)}},[]),N=u.useCallback(O=>{s(!1);const q=x.current;if(!q)return;const K=f.current?.startedAt??null,I=K===null?Number.POSITIVE_INFINITY:performance.now()-K;if(f.current=null,q.state==="inactive"){c(!1),b(0);return}(O==="abort"||I<yc)&&(q.onstop=()=>{for(const V of q.stream?.getTracks()??[])V.stop();v.current=[]}),q.stop(),c(!1),b(0)},[]),_=u.useCallback((O="release")=>{const q=f.current;if(q){if(q.startedAt===null){f.current=null,s(!1);return}N(O)}},[N]),S=u.useCallback(async()=>{if(!t||f.current||d)return;if(!navigator?.mediaDevices?.getUserMedia){console.error("This runtime exposes no MediaRecorder"),ga(o("ui.canvas.inline_edit.dictation_is_not_available_on_this_device"));return}const O={startedAt:null};f.current=O,s(!0);try{const q=await navigator.mediaDevices.getUserMedia({audio:!0});if(f.current!==O){for(const I of q.getTracks())I.stop();return}const K=new MediaRecorder(q);x.current=K,v.current=[],K.ondataavailable=I=>{I.data.size>0&&v.current.push(I.data)},K.onstop=()=>{const I=new Blob(v.current,{type:"audio/webm"});v.current=[];for(const V of q.getTracks())V.stop();p(null),R(I)},K.start(),O.startedAt=performance.now(),s(!1),c(!0),b(0)}catch(q){if(f.current!==O)return;f.current=null,s(!1),console.error("Error accessing microphone:",q),ga(o("ui.canvas.inline_edit.error_accessing_microphone_please_ensure_microphone_permissions_are_gran"))}},[t,d,R]),C=u.useCallback(()=>{l&&N("release")},[l,N]),T=u.useCallback(()=>{l&&N("abort")},[l,N]),ee=u.useCallback(()=>{const O=k.current;!O||d||(p(null),R(O))},[d,R]);return Gm(n,Wm.MESSAGE_INPUT,{start:S,stop:_},()=>!!(t&&!l&&!d)),u.useEffect(()=>(_o(n,l||r),()=>_o(n,!1)),[n,l,r]),u.useEffect(()=>{if(!l)return;const O=performance.now(),q=window.setInterval(()=>b(performance.now()-O),Wf);return()=>window.clearInterval(q)},[l]),u.useEffect(()=>{if(!l&&!r)return;const O=q=>{if(!(q.defaultPrevented||q.isComposing||q.keyCode===229)){if(l&&q.key==="Enter"){q.preventDefault(),C();return}q.key==="Escape"&&(q.preventDefault(),l?T():_("abort"))}};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[l,r,C,T,_]),u.useEffect(()=>()=>{f.current=null;const O=x.current;O&&O.state!=="inactive"&&(O.onstop=()=>{for(const q of O.stream?.getTracks()??[])q.stop();v.current=[]},O.stop()),w.current?.abort()},[]),{isRecording:l,isPreparing:r,isTranscribing:d,failure:h,elapsedMs:g,start:S,stop:_,confirm:C,cancel:T,retry:ee}}function Jf(e){const n=e?.status?.files,t=Iu.safeParse(n);return t.success?t.data:null}function xc(e){const[,n]=u.useReducer(p=>p+1,0),t=JSON.stringify([e.scopeKey,e.accountId,e.tenantId,e.conversationId]),a=u.useRef({scope:t,generation:0,active:!0,chips:[]});a.current.scope!==t&&(a.current={scope:t,generation:a.current.generation+1,active:!0,chips:[]});const r=a.current,s=u.useRef(e.capability);s.current=e.capability,u.useEffect(()=>(r.active=!0,()=>{r.active=!1}),[r]);const l=()=>a.current===r&&r.active,c=(p,g)=>{l()&&(r.chips=r.chips.map(b=>b.key===p?{...b,...g}:b),n())},d=async(p,g)=>{const b=s.current;if(!l()||!b||!e.accountId||!e.tenantId)throw new Error("File upload authority unavailable");if(!p.file.size||p.file.size>Math.max(...b.classes.map(f=>f.max_bytes))||encodeURIComponent(p.file.name).length>1024)throw c(p.key,{status:"error"}),new Error("File exceeds upload bounds");c(p.key,{status:"uploading"});try{const f=new Uint8Array(await p.file.arrayBuffer());if(!l()||!r.chips.some(v=>v.key===p.key)||!s.current)throw new Error("File upload cancelled");const x=await Je.uploadFile(e.tenantId,g,f,e.accountId,p.file.name);if(!l()||!r.chips.some(v=>v.key===p.key)||!s.current)throw new Error("File upload cancelled");return c(p.key,{status:"ready",id:x.id}),x.id}catch(f){throw c(p.key,{status:"error"}),f}},m=p=>{if(!l())return;const g=s.current,b=Math.min(10,g?.max_items??10);for(const f of p){const x={key:crypto.randomUUID(),file:f,status:g&&r.chips.length<b?"held":"error"};r.chips=[...r.chips,x],g&&e.conversationId&&x.status==="held"&&d(x,e.conversationId).catch(()=>{})}n()},h=async(p,g)=>{if(!l()||g!==e.tenantId||!s.current||e.conversationId&&p!==e.conversationId)throw new Error("File destination changed");const b=[...r.chips];if(b.length>Math.min(10,s.current.max_items??10))throw new Error("Too many files");const f=[];for(const x of b){if(!l()||!r.chips.some(v=>v.key===x.key))throw new Error("File destination changed");if(x.status==="uploading")throw new Error("File upload still pending");f.push(x.status==="ready"&&x.id?x.id:await d(x,p))}if(!l()||!s.current)throw new Error("File destination changed");return f};return{chips:r.chips,enabled:e.capability!==null,busy:r.chips.some(p=>p.status==="uploading"),blocked:r.chips.length>0&&(!e.capability||r.chips.some(p=>p.status==="error")),add:m,stageInto:h,receipt:()=>({count:r.chips.length,stageInto:h}),retry:p=>{const g=r.chips.find(b=>b.key===p);!g||!s.current||(e.conversationId?d(g,e.conversationId).catch(()=>{}):c(p,{status:"held"}))},remove:p=>{l()&&(r.chips=r.chips.filter(g=>g.key!==p),n())},clear:()=>{l()&&(r.chips=[],n())}}}function Ki(e){const n=Array.from(e.items??[]).filter(t=>t.kind==="file");return n.length?n.flatMap(t=>{const a=t.getAsFile();return a?[a]:[]}):Array.from(e.files??[])}async function Qf(e){if(typeof createImageBitmap!="function")return!1;try{return(await createImageBitmap(e)).close(),!0}catch{return!1}}async function Es(e){const n=[],t=[];for(const a of e){const r=Ss(new Uint8Array(await a.slice(0,32).arrayBuffer()));(r!==null&&(r!=="image/heic"||await Qf(a))?n:t).push(a)}return{images:n,generic:t}}let tl=!1,il=0;const Yf=e=>e?JSON.stringify([e.conversationId,e.tenantId,e.accountId,e.threadRootId??null]):"";function vc(e,n,t=Je){const a=Yf(e),r=u.useRef(e);r.current=e;const s=u.useRef(t);s.current=t;const l=Po(k=>k.shareTyping),c=u.useRef(l);c.current=l;const d=u.useRef({active:null,sent:!1,sending:!1,inflight:null,lastPutAt:Number.NEGATIVE_INFINITY,resendMs:Sr,resendTimer:null,idleTimer:null}),m=u.useCallback(()=>{const k=d.current;k.resendTimer!==null&&clearTimeout(k.resendTimer),k.idleTimer!==null&&clearTimeout(k.idleTimer),k.resendTimer=null,k.idleTimer=null},[]),h=u.useCallback(()=>{const k=d.current;m();const w=k.active,j=k.sent;if(k.active=null,k.sent=!1,!w||!j)return;const R=()=>s.current.typingClear(w).catch(()=>{});k.inflight?k.inflight.then(R):R()},[m]),p=u.useCallback(()=>{const k=d.current,w=k.active;if(!w||k.sending)return;k.sent=!0,k.lastPutAt=Date.now();const R=s.current.typingSet(w).then(N=>{if("shared"in N){Po.getState().setShareTyping(!1),k.active===w&&(m(),k.active=null,k.sent=!1);return}k.resendMs=Ca(N.resend_after_ms,Sr)},N=>{if(N?.code==="outdated_hub")tl=!0;else if(N?.status===429||N?.status===503)il=Date.now()+Ca(Wd(N),Hr);else return;k.active===w&&(m(),k.active=null,k.sent=!1)}).then(()=>{k.inflight===R&&(k.inflight=null)},()=>{k.inflight===R&&(k.inflight=null)});k.inflight=R},[m]),g=u.useCallback(k=>{const w=d.current;w.resendTimer!==null&&clearTimeout(w.resendTimer),w.resendTimer=setTimeout(()=>{w.resendTimer=null,w.active&&(p(),g(w.resendMs))},k)},[p]),b=u.useCallback(k=>{const w=d.current,j=r.current;if(k.trim()===""){h();return}if(!j||w.sending||c.current===!1||tl||Date.now()<il||typeof document<"u"&&document.visibilityState==="hidden"||(w.idleTimer!==null&&clearTimeout(w.idleTimer),w.idleTimer=setTimeout(()=>{w.idleTimer=null,h()},pg),w.active))return;w.active=j;const R=Date.now()-w.lastPutAt;R>=w.resendMs?(p(),g(w.resendMs)):g(w.resendMs-R)},[p,g,h]),f=u.useCallback(()=>h(),[h]),x=u.useCallback(()=>{d.current.sending=!0,h()},[h]),v=u.useCallback(()=>{d.current.sending=!1},[]);return u.useEffect(()=>{n.trim()===""&&h()},[n,h]),u.useEffect(()=>()=>{h(),d.current.lastPutAt=Number.NEGATIVE_INFINITY,d.current.resendMs=Sr},[a,h]),u.useEffect(()=>{l===!1&&h()},[l,h]),u.useEffect(()=>{if(typeof document>"u")return;const k=()=>{document.visibilityState==="hidden"&&h()};return document.addEventListener("visibilitychange",k),()=>document.removeEventListener("visibilitychange",k)},[h]),u.useMemo(()=>({onInput:b,onBlur:f,onSendStart:x,onSendEnd:v}),[b,f,x,v])}const Xf=20,al=6*Xf+16,Zf={canUseRadientSpeech:!1,speechBlock:"could-not-check"},rl=[],ek="team-bridge-composer",nk=e=>{const n=Math.floor(e/1e3);return`${Math.floor(n/60)}:${String(n%60).padStart(2,"0")}`},tk=e=>new Promise(n=>{const t=new FileReader;t.onload=()=>typeof t.result=="string"?n(t.result):n(null),t.onerror=()=>n(null),t.readAsDataURL(e)}),ik=({conversationId:e,placeholder:n,disabled:t=!1,sending:a=!1,sendDisabled:r=!1,canAttach:s=!1,onFileCountChange:l,fileContext:c,trailing:d,hint:m,disabledReasonId:h,recordingProbe:p,onSendMessage:g,typingTarget:b=null})=>{ge();const f=u.useId(),x=xc({scopeKey:e,...c,capability:c?.capability??null});u.useEffect(()=>{l?.(x.chips.length)},[x.chips.length,l]);const v=En(Z=>Z.inputByConversation[e]?.attachments),k=En(Z=>Z.removeAttachment),w=v??rl,j=JSON.stringify([e,c?.accountId,c?.tenantId]),R=u.useRef({identity:j});R.current.identity!==j&&(R.current={identity:j});const N=x.add,_=u.useRef(()=>{}),S=u.useRef({onSendStart:()=>{},onSendEnd:()=>{}}),{inputValue:C,setInputValue:T,appendTranscriptText:ee,handleKeyDown:O,handleSubmit:q,textareaRef:K,sendInFlight:I}=Vm({conversationId:e,transcriptless:!0,hasAdditionalContent:x.chips.length>0,onSubmit:async Z=>{if(x.busy||x.blocked)return!1;const me=x.chips.map(ye=>ye.key);_.current(Z);const Ce=S.current;Ce.onSendStart();let je;try{je=await g(Z,(En.getState().inputByConversation[e]?.attachments??rl).map(ye=>ye.path),x.receipt())}finally{Ce.onSendEnd()}if(je)for(const ye of me)x.remove(ye);return je}}),V=rc({draftKey:e,text:C,setText:T,fieldRef:K});_.current=V.stage;const U=vc(b,C);S.current=U,u.useLayoutEffect(()=>{const Z=K.current;if(!Z)return;const me=()=>{const xe=Z.scrollTop;Z.style.height="auto";const pe=Math.ceil(Z.scrollHeight);Z.style.height=`${Math.min(pe,al)}px`,Z.style.overflowY=pe>al?"auto":"hidden",Z.scrollTop!==xe&&(Z.scrollTop=xe)};if(me(),typeof ResizeObserver>"u")return;let Ce=!0,je=Z.getBoundingClientRect().width;const ye=new ResizeObserver(()=>{if(!Ce)return;const xe=Z.getBoundingClientRect().width;xe!==je&&(je=xe,me())});return ye.observe(Z),()=>{Ce=!1,ye.disconnect()}},[C]);const z={onPaste:Z=>{const me=Ki(Z.clipboardData);me.length!==0&&(pc(Z.clipboardData)&&Z.preventDefault(),B(me))},onDragOver:Z=>{Array.from(Z.dataTransfer.types).includes("Files")&&Z.preventDefault()},onDrop:Z=>{const me=Ki(Z.dataTransfer);me.length!==0&&(Z.preventDefault(),B(me))}},B=u.useCallback(async Z=>{if(t)return;const me=En.getState(),Ce=R.current,{images:je,generic:ye}=await Es(Z);if(R.current===Ce){ye.length&&N(ye);for(const xe of je){const pe=window.api?.getPathForFile?.(xe)??"";if(pe){me.addAttachment(e,{id:Mo(),path:Jh(pe)});continue}const qe=await tk(xe);qe&&R.current===Ce&&me.addAttachment(e,{id:Mo(),path:qe})}}},[e,t,N]),F=u.useRef(null),A=C.trim().length>0||w.length>0||x.chips.length>0,D=t,J=a||I,L=u.useCallback(()=>{const Z=K.current;Z&&(Z.focus(),wr())},[K]),$=u.useCallback(()=>K.current,[K]);u.useEffect(()=>Jm(L,$),[L,$]),u.useEffect(()=>{if(D||!Ru())return;const Z=K.current;if(!Z)return;const me=document.activeElement;if(me===Z){wr();return}const Ce=Cu(me);Ce==="take"?L():Ce==="drop"&&wr()},[D,e,L,K]);const{canUseRadientSpeech:le,speechBlock:fe}=p??Zf,de=le,X=Qm("recording",fe),ae=Vf({id:ek,canRecord:!D&&de,onTranscript:Z=>ee(Z)}),ve=Ym(Xm()),he=de?ve===null?o("ui.chat.composer.start_recording"):o("ui.chat.composer.start_recording_hint",{shortcut:zt(ve),pushToTalk:Zm().label}):X,ue=u.useRef(0),ke=yc;return i.jsxs("div",{className:"flex w-full flex-col gap-1.5",children:[i.jsx(ac,{mentions:V}),i.jsx(bc,{state:x}),w.length>0&&i.jsx("div",{className:"max-h-[240px] shrink-0 overflow-y-auto",children:i.jsx(eh,{attachments:w,onRemoveAttachment:Z=>k(e,Z),disabled:D})}),ae.failure!==null&&i.jsxs("div",{"data-dictation-failure":"",className:"flex items-center gap-2 px-2 [min-height:1.5rem]",children:[i.jsx(xs,{"aria-hidden":"true",className:"size-3.5 shrink-0 text-danger"}),i.jsx("span",{className:"min-w-0 flex-1 text-body-sm text-ink-muted",children:ae.failure}),i.jsx(Y,{type:"button",variant:"link",size:"sm",className:"h-7 shrink-0 px-2 underline",onClick:ae.retry,children:o("ui.common.actions.retry")})]}),i.jsxs("div",{...z,"data-glass-region":"composer","data-composer-bar":"",className:G("group flex w-full flex-col rounded-md bg-elevated transition-colors duration-fast ease-out-quart","has-[textarea:focus-visible]:outline-2 has-[textarea:focus-visible]:outline-accent has-[textarea:focus-visible]:outline-offset-2 has-[textarea:focus-visible]:outline-solid"),children:[i.jsx(sc,{mentions:V,fieldRef:K,text:C,children:i.jsx("textarea",{ref:K,id:f,rows:1,value:C,disabled:D,"aria-label":n,"aria-describedby":h,placeholder:n,onChange:Z=>{T(Z.target.value),U.onInput(Z.target.value)},onBlurCapture:U.onBlur,...ae.isRecording||ae.isPreparing?{onKeyDown:()=>{}}:V.bindField({onKeyDown:O}),className:"relative block min-h-9 w-full resize-none bg-transparent px-3 pt-2.5 pb-1.5 text-[14px] leading-5 text-ink outline-none placeholder:text-ink-dim disabled:cursor-not-allowed disabled:text-ink-dim"})}),i.jsx("div",{"data-composer-controls":"",className:"flex h-9 min-w-0 items-center gap-1 px-1.5 pb-1.5",children:ae.isRecording||ae.isPreparing?i.jsxs(i.Fragment,{children:[i.jsxs("span",{"data-dictation-strip":"","aria-live":"polite",className:"flex min-w-0 flex-1 items-center gap-2 ps-1.5",children:[i.jsx("span",{"aria-hidden":"true",className:G("size-2 shrink-0 rounded-full",ae.isPreparing?"bg-accent":"animate-pulse bg-danger")}),i.jsx("span",{className:"shrink-0 font-medium text-meta-sm text-ink",children:ae.isPreparing?o("ui.chat.composer.starting_recording"):o("ui.chat.composer.placeholder.recording")}),ae.isRecording&&i.jsx("span",{"data-dictation-elapsed":"",className:"shrink-0 font-mono text-meta-sm tabular-nums text-ink-muted",children:nk(ae.elapsedMs)})]}),ae.isRecording&&i.jsx(Y,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-success hover:bg-success-wash hover:text-success","aria-label":o("ui.chat.composer.confirm_recording"),title:o("ui.chat.composer.confirm_recording_hint"),onClick:ae.confirm,children:i.jsx(ag,{"aria-hidden":"true"})}),i.jsx(Y,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-danger hover:bg-danger-wash hover:text-danger","aria-label":o("ui.chat.composer.cancel_recording"),title:o("ui.chat.composer.cancel_recording_hint"),onClick:ae.isRecording?ae.cancel:()=>ae.stop("abort"),children:i.jsx(gt,{"aria-hidden":"true"})})]}):ae.isTranscribing?i.jsxs("span",{"data-dictation-transcribing":"","aria-live":"polite",className:"flex min-w-0 flex-1 items-center gap-2 ps-1.5",children:[i.jsx(Ze,{size:"sm"}),i.jsx("span",{className:"truncate font-medium text-body-sm text-ink-muted",children:o("ui.chat.composer.processing_audio")})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{className:G("min-w-0 flex-1 truncate ps-1.5 text-meta-sm text-ink-dim opacity-0 transition-opacity duration-fast",!A&&"group-has-[textarea:focus]:opacity-100"),"aria-hidden":A,children:m??o("ui.teamBridge.composer.hint")}),i.jsx(Y,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-ink-dim","aria-label":o("ui.chat.composer.start_recording"),"aria-busy":ae.isPreparing||void 0,title:he,disabled:D||!de,onPointerDown:Z=>{if(Z.button===0){try{Z.currentTarget.setPointerCapture(Z.pointerId)}catch{}ue.current=performance.now(),ae.start()}},onPointerUp:Z=>{Z.currentTarget.hasPointerCapture?.(Z.pointerId)===!0&&(Z.currentTarget.releasePointerCapture?.(Z.pointerId),!(performance.now()-ue.current<ke)&&ae.confirm())},onClick:Z=>{Z.detail===0&&ae.start()},children:i.jsx(nh,{"aria-hidden":"true"})}),(s||x.enabled)&&i.jsxs(i.Fragment,{children:[i.jsx(Y,{variant:"ghost",size:"icon-sm","aria-label":o(x.enabled?"ui.teamBridge.files.add":"ui.teamBridge.attachments.add"),title:o(x.enabled?"ui.teamBridge.files.add":"ui.teamBridge.attachments.add"),disabled:D,onClick:()=>F.current?.click(),children:x.enabled?i.jsx(kd,{size:16,"aria-hidden":"true"}):i.jsx(Vd,{size:16,"aria-hidden":"true"})}),i.jsx("input",{ref:F,type:"file",accept:c?.capability?void 0:"image/png,image/jpeg,image/webp,image/gif,image/heic,image/heif",multiple:!0,hidden:!0,tabIndex:-1,onChange:Z=>{B(Array.from(Z.target.files??[])),Z.target.value=""}})]}),d,i.jsx(Y,{size:"icon-sm",variant:A||J?"primary":"ghost",className:"shrink-0 rounded-sm",disabled:!A||D||r||J||x.busy||x.blocked,"aria-label":o("ui.teamBridge.composer.send"),onClick:()=>void q(),children:J?i.jsx(Ze,{size:"sm"}):i.jsx(sd,{size:16})})]})})]})]})};function ak(e){switch(e){case"org_wide_membership":return o("ui.teamBridge.conversation_menu.reason.org_wide");case"agents_builtin":return o("ui.teamBridge.conversation_menu.reason.agents_builtin",{channel:zt("#agents")});case"general_not_member_yet":return o("ui.teamBridge.conversation_menu.reason.general_not_member_yet",{channel:zt("#general")});case"agent_not_permitted":return o("ui.teamBridge.conversation_menu.reason.agent_not_permitted")}}const Rt=({icon:e,label:n,reason:t,destructive:a,onSelect:r,testId:s})=>i.jsxs(Xi,{disabled:t!==void 0||!r,destructive:a&&t===void 0,onSelect:r,"data-menu-item":s,className:G(t&&"items-start"),children:[e,i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i.jsx("span",{className:"truncate",children:n}),t&&i.jsx("span",{className:"whitespace-normal text-ink-dim text-meta-sm",children:ak(t)})]})]}),jc=({sections:e,conversation:n,agentNotify:t=null,handlers:a})=>{const r=th(n),s=r==="mute",l=c=>{switch(c.id){case"view_members":return i.jsx(Rt,{testId:c.id,icon:i.jsx(mt,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.conversation_menu.view_members"),onSelect:a.onViewMembers});case"add_members":return i.jsx(Rt,{testId:c.id,icon:i.jsx(pi,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.members.menu"),onSelect:a.onAddMembers});case"join":return i.jsx(Rt,{testId:c.id,icon:i.jsx(Eg,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.conversation_menu.join"),onSelect:a.onJoin});case"notify":return i.jsxs(i.Fragment,{children:[i.jsxs(Xi,{"data-menu-item":"mute",onSelect:()=>a.onNotifyChange?.(ah(r)),children:[s?i.jsx(Tu,{size:16,"aria-hidden":"true"}):i.jsx(Jd,{size:16,"aria-hidden":"true"}),i.jsx("span",{children:s?o("ui.teamBridge.menu.unmute"):o("ui.teamBridge.menu.mute")})]}),i.jsx(mi,{children:o("ui.teamBridge.notify.label")}),i.jsx(Ur,{value:r,"aria-label":o("ui.teamBridge.notify.label"),onValueChange:d=>a.onNotifyChange?.(No(d)),children:rh.map(d=>i.jsx(Ia,{value:d.value,children:i.jsx("span",{className:"min-w-0 flex-1 truncate",children:o(d.labelKey)})},d.value))})]});case"agent_notify":return i.jsxs(i.Fragment,{children:[i.jsx(mi,{children:o("ui.teamBridge.agentNotify.label")}),i.jsx(Ur,{value:t??"","aria-label":o("ui.teamBridge.agentNotify.label"),onValueChange:d=>a.onAgentNotifyChange?.(No(d)),children:ih.map(d=>i.jsx(Ia,{value:d.value,children:i.jsx("span",{className:"min-w-0 flex-1 truncate",children:o(d.labelKey)})},d.value))})]});case"remove_agent":return i.jsx(Rt,{testId:c.id,icon:i.jsx(Tg,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.conversation_menu.remove_agent",{name:c.agentName}),reason:c.disabledReason,onSelect:a.onOwnAgent?()=>a.onOwnAgent?.(c):void 0});case"add_agent":return i.jsx(Rt,{testId:c.id,icon:i.jsx(Ot,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.conversation_menu.add_agent",{name:c.agentName}),reason:c.disabledReason,onSelect:a.onOwnAgent?()=>a.onOwnAgent?.(c):void 0});case"leave":return i.jsx(Rt,{testId:c.id,destructive:!0,icon:i.jsx(od,{size:16,"aria-hidden":"true"}),label:c.kind==="group"?o("ui.teamBridge.conversation_menu.leave_group"):o("ui.teamBridge.conversation_menu.leave_channel"),reason:c.disabledReason,onSelect:a.onLeave});case"archive":return i.jsx(Rt,{testId:c.id,icon:i.jsx(Na,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.archive.menu.archive"),onSelect:a.onArchive})}};return i.jsx(i.Fragment,{children:e.map((c,d)=>i.jsxs(u.Fragment,{children:[d>0&&i.jsx(Gd,{}),c.map(m=>i.jsx(u.Fragment,{children:l(m)},m.id))]},c.map(m=>m.id).join(":")))})},rk=({sections:e,conversation:n,agentNotify:t,handlers:a,defaultOpen:r=!1})=>(ge(),e.length===0?null:i.jsxs(Ji,{defaultOpen:r,children:[i.jsx(Qi,{asChild:!0,children:i.jsx(Y,{type:"button",size:"icon-sm",variant:"ghost","aria-label":o("ui.teamBridge.menu.label"),title:o("ui.teamBridge.menu.label"),children:i.jsx(La,{size:16,"aria-hidden":"true"})})}),i.jsx(Yi,{align:"end",className:"w-64",children:i.jsx(jc,{sections:e,conversation:n,agentNotify:t,handlers:a})})]}));function sk({subject:e,conversationName:n,pending:t,error:a,onClose:r,onConfirm:s}){ge();const l=n,c=e?e.kind==="leave"?{title:e.conversationKind==="group"?o("ui.teamBridge.conversation_menu.confirm.leave_group_title",{conversation:l}):o("ui.teamBridge.conversation_menu.confirm.leave_channel_title",{conversation:l}),body:e.agentStays?o("ui.teamBridge.conversation_menu.confirm.leave_body_agents",{channel:zt("#agents")}):o("ui.teamBridge.conversation_menu.confirm.leave_body"),confirm:o("ui.teamBridge.members_panel.confirm.leave"),danger:!0}:e.kind==="remove_agent"&&e.action==="decline"?{title:o("ui.teamBridge.members_panel.confirm.decline_title",{name:e.agentName}),body:o("ui.teamBridge.members_panel.confirm.decline_body",{name:e.agentName,conversation:l}),confirm:o("ui.teamBridge.members_panel.confirm.decline"),danger:!0}:e.kind==="remove_agent"?{title:o("ui.teamBridge.conversation_menu.confirm.remove_agent_title",{name:e.agentName,conversation:l}),body:o("ui.teamBridge.conversation_menu.confirm.remove_agent_body",{name:e.agentName}),confirm:o("ui.teamBridge.members_panel.confirm.remove"),danger:!0}:{title:o("ui.teamBridge.conversation_menu.confirm.add_agent_title",{name:e.agentName,conversation:l}),body:o("ui.teamBridge.conversation_menu.confirm.add_agent_body",{name:e.agentName}),confirm:o("ui.teamBridge.conversation_menu.confirm.add_agent"),danger:!1}:null;return i.jsx(qt,{open:e!==null,onOpenChange:d=>{!d&&!t&&r()},children:i.jsxs(Ft,{className:"gap-4",closeDisabled:t,children:[i.jsx($t,{children:c?.title}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:c?.body}),a&&i.jsx("p",{role:"alert",className:"text-[12px] text-danger",children:a==="not_in_general"?o("ui.teamBridge.conversation_menu.error.not_in_general",{channel:zt("#general")}):a==="general_rejoin_refused"?o("ui.teamBridge.conversation_menu.error.general_rejoin_refused",{channel:zt("#general")}):o("ui.teamBridge.conversation_menu.error.generic")}),i.jsxs(Ga,{children:[i.jsx(Y,{type:"button",variant:"ghost",disabled:t,onClick:r,children:o("ui.teamBridge.create.cancel")}),i.jsx(Y,{type:"button",variant:c?.danger?"danger":"primary",disabled:t,onClick:s,children:c?.confirm})]})]})})}const ok=new Set(["general","humans"]);function lk(e,n){return n?e.members.find(t=>t.kind==="agent"&&t.account_id===n&&(t.state==="active"||t.state==="invited"))??null:null}function hi(e){const n=e?.endpoint_id;return typeof n=="string"&&n!==""?n:void 0}function dk(e,n,t,a){return n?a===void 0?e.members.some(r=>r.kind==="agent"&&r.account_id===n)||!!t?.agent:t?.account_id===n&&t.agent&&t.agent.endpoint_id===a?!0:e.members.some(r=>r.kind==="agent"&&r.account_id===n&&hi(r)===a):!1}function ck(e,n){return e.members.some(t=>t.kind==="human"&&t.account_id===n&&t.state==="active")}function uk(e){const{conversation:n,selfAccountId:t,selfPerson:a}=e;if(!t||n.kind==="dm")return null;const r=lk(n,t),s=a?.account_id===t?a.agent:void 0,l=s?.name.trim()||r?.display_label.trim()||"";if(!r&&!s||!l)return null;const c=n.builtin;if(c==="humans")return null;if(c==="agents")return r&&r.state==="active"?{id:"remove_agent",agentName:l,action:"withdraw",endpointId:hi(r),disabledReason:"agents_builtin"}:null;if(c==="general"){if(r?.state==="active")return{id:"remove_agent",agentName:l,action:"withdraw",endpointId:hi(r)};const d=n.members.find(m=>m.kind==="agent"&&m.account_id===t&&(m.state==="left"||m.state==="removed"));return d?{id:"add_agent",agentName:l,action:"accept",endpointId:hi(d)??s?.endpoint_id}:{id:"remove_agent",agentName:l,action:"withdraw",disabledReason:"general_not_member_yet"}}return r?{id:"remove_agent",agentName:l,action:r.state==="active"?"withdraw":"decline",endpointId:hi(r)??s?.endpoint_id}:!s||!Kn(n,t)?null:{id:"add_agent",agentName:l,action:"add",endpointId:s.endpoint_id,disabledReason:n.agent_capable?void 0:"agent_not_permitted"}}function mk(e){const{conversation:n,selfAccountId:t,wiring:a}=e,r=Oa(n),s=n.kind==="dm",l=n.status==="open",c=!r&&ck(n,t),d=!e.readOnly&&l,m=[];a.viewMembers&&!s&&!r&&m.push({id:"view_members"}),d&&a.addMembers&&Kn(n,t)&&m.push({id:"add_members"}),d&&a.join&&r&&m.push({id:"join"});const h=[];d&&!r&&a.notify&&(h.push({id:"notify"}),a.agentNotify&&e.agentNotifyEnabled&&n.members.some(g=>g.kind==="agent"&&g.account_id===t&&g.state==="active")&&h.push({id:"agent_notify"}));const p=[];if(d&&c&&a.ownAgent){const g=uk(e);g&&p.push(g)}if(d&&c&&a.leave&&!s){const g=n.kind==="group"?"group":"channel";p.push(n.builtin&&ok.has(n.builtin)?{id:"leave",kind:g,disabledReason:"org_wide_membership"}:{id:"leave",kind:g})}return d&&a.archive&&e.archivable&&p.push({id:"archive"}),[m,h,p].filter(g=>g.length>0)}function hk(e,n,t,a){if(!n||a.disabledReason||!dk(e,n,t,a.endpointId))return null;if(a.action!=="add")return{op:a.action,endpointId:a.endpointId};const r=t?.account_id===n?t.agent:void 0;return!r||r.endpoint_id!==a.endpointId||!Kn(e,n)?null:{op:"add",member:{account_id:n,kind:"agent",endpoint_id:r.endpoint_id,display_label:a.agentName.slice(0,64)}}}function gk(e,n,t=[]){const a=wd(e.filter(r=>r.id!==n),t);return a?{type:"conversation",id:a.id}:null}async function pk(e){if(await e.leave(),e.serverWithdrawsAgent||!e.ownActiveAgent)return{status:"left"};if(e.builtin)return{status:"left"};const n=hi(e.ownActiveAgent);try{return await e.withdraw(n),{status:"left"}}catch(t){return{status:"partial",endpointId:n,error:t}}}function fk(e){const n=e;return n?.code==="member_not_found"?!0:n?.code==="invalid_transition"&&n.detail?.details?.rule==="not_active"}function kk(e){const n=e;return n?.code==="agent_not_permitted"?!0:n?.code==="invalid_transition"&&n.detail?.details?.rule==="not_opted_out"}function wk(e){return e?.code==="member_not_found"}const bk=/\s+/g,yk=/^#+/;function xk(e){return e.trim().toLowerCase().replace(bk,"-").replace(yk,"")}const vk=({open:e,onClose:n,candidates:t,onCreate:a,pending:r=!1,error:s})=>{ge();const l=u.useId(),c=u.useId(),[d,m]=u.useState(""),[h,p]=u.useState(""),[g,b]=u.useState([]);u.useEffect(()=>{e&&(m(""),p(""),b([]))},[e]);const f=xk(d),x=f.length>0;return i.jsx(qt,{open:e,onOpenChange:v=>{v||n()},children:i.jsxs(Ft,{className:"gap-4",children:[i.jsx($t,{children:o("ui.teamBridge.create.title")}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:o("ui.teamBridge.create.channel_description")}),i.jsxs("label",{htmlFor:l,className:"flex flex-col gap-1 text-[13px] text-ink-muted",children:[o("ui.teamBridge.create.name"),i.jsx(Hi,{id:l,value:d,onChange:v=>m(v.target.value),placeholder:o("ui.teamBridge.create.name_placeholder"),maxLength:80,autoFocus:!0})]}),i.jsxs("label",{htmlFor:c,className:"flex flex-col gap-1 text-[13px] text-ink-muted",children:[o("ui.teamBridge.create.topic"),i.jsx(Hi,{id:c,value:h,onChange:v=>p(v.target.value),maxLength:512})]}),i.jsxs("div",{className:"flex flex-col gap-1 text-[13px] text-ink-muted",children:[i.jsx("span",{children:o("ui.teamBridge.create.members")}),i.jsx("div",{className:"relative -mx-5",children:i.jsx(wc,{recipients:g,candidates:t,onChange:b,autoFocus:!1})})]}),s&&i.jsx("p",{role:"alert",className:"text-[13px] text-danger",children:s}),i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx(Y,{type:"button",variant:"ghost",onClick:n,children:o("ui.teamBridge.create.cancel")}),i.jsx(Y,{type:"button",variant:"primary",disabled:!x||r,onClick:()=>a({kind:"channel",name:f,...h.trim()?{topic:h.trim()}:{},visibility:"tenant",agentCapable:!0,members:g.map(hs)}),children:o("ui.teamBridge.create.confirm")})]})]})})},jk=({status:e,api:n=Mu,defaultExpanded:t})=>{const a=ht(),r=e?.tenant_id??null,s=e?.account_id??null,l=e?.surface_state==="C"&&e.default_on?.notice_pending===!0,c=[...Rn.all,"default-on-settings",s,r],m=Ka({queryKey:c,queryFn:()=>n.settings(r??void 0),enabled:l&&r!==null,staleTime:6e4}).data??null,h=fg(e??null,m,s),p=kg({api:n,accountId:s,tenantId:m?.settings.tenant_id??r,markerTenantId:r,onSettings:g=>a.setQueryData(c,g),onChanged:async()=>{Au.invalidateStatus(),await a.invalidateQueries({queryKey:Rn.status})}});return!e||!h?null:i.jsx("div",{className:"shrink-0 px-4 py-1",children:i.jsx(wg,{consentText:Qh(e,m),pending:p.pending,failure:p.failure,onTurnOff:()=>void p.turnOff(),onDismiss:()=>void p.dismiss(),defaultExpanded:t})})},_k=W.discriminatedUnion("kind",[W.object({kind:W.literal("human"),accountId:W.string().min(1),label:W.string()}),W.object({kind:W.literal("agent"),accountId:W.string().min(1),endpointId:W.string().min(1),label:W.string()})]),Nk=W.object({target:W.discriminatedUnion("type",[W.object({type:W.literal("conversation"),id:W.string().min(1)}),W.object({type:W.literal("person"),accountId:W.string().min(1)}),W.object({type:W.literal("chief"),accountId:W.string().min(1)}),W.object({type:W.literal("compose"),recipients:W.array(_k)})]),body:W.string(),clientRef:W.string().min(1),conversationId:W.string().min(1).optional(),sendAt:W.string().datetime({offset:!0}).optional(),createUncertain:W.boolean().optional(),attachments:W.array(W.object({id:W.string().regex(/^[a-zA-Z0-9_-]{1,128}$/),conversationId:W.string().min(1).max(128),mime:W.enum(["image/png","image/jpeg"]),size:W.number().int().nonnegative(),width:W.number().int().nonnegative(),height:W.number().int().nonnegative(),expiresAt:W.string().max(64).optional()}).strict()).max(4).optional()});function Xe(e){switch(e.type){case"conversation":return`conversation:${e.id}`;case"person":return`person:${e.accountId}`;case"chief":return`chief:${e.accountId}`;case"compose":return"compose"}}function Zr(e,n){try{const t=JSON.parse(e.getItem(n)??"{}");if(!t||typeof t!="object"||Array.isArray(t))return{};const a={};for(const[r,s]of Object.entries(t)){const l=Nk.safeParse(s);l.success&&Xe(l.data.target)===r&&(a[r]=l.data)}return a}catch{return{}}}function Bk(e,n){const t=new Map,a=`${ld}${encodeURIComponent(n)}:`;try{for(const r of Object.keys(e))r.startsWith(a)&&t.set(r,Zr(e,r))}catch{}return t}function Sk(e){return decodeURIComponent(e.slice(e.lastIndexOf(":")+1))}const Ek=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})$/;function sl(e,n=Date.now()){const t=new Date(e),a=t.getTime(),r=Ek.exec(e);return!r||t.getFullYear()!==Number(r[1])||t.getMonth()+1!==Number(r[2])||t.getDate()!==Number(r[3])||t.getHours()!==Number(r[4])||t.getMinutes()!==Number(r[5])?null:Number.isFinite(a)&&a>=n+6e4&&a<=n+120*864e5?new Date(a).toISOString():null}function Ik({reasonId:e,busy:n,onRetry:t,onDiscard:a}){return i.jsxs("div",{className:"flex min-w-0 flex-col gap-2 px-3.5 pt-3 text-sm text-ink-muted",children:[i.jsx("p",{id:e,children:o("ui.teamBridge.schedule.held")}),i.jsxs("div",{className:"flex min-w-0 flex-col items-stretch gap-1",children:[t&&i.jsx(Y,{variant:"primary",className:"h-auto min-h-8 w-full max-w-full justify-start whitespace-normal py-1.5 text-left [overflow-wrap:anywhere]",disabled:n,onClick:t,children:o("ui.teamBridge.schedule.retry")}),i.jsx(Y,{variant:"ghost",className:"h-auto min-h-8 w-full max-w-full justify-start whitespace-normal py-1.5 text-left text-danger hover:text-danger [overflow-wrap:anywhere]",disabled:n,onClick:a,children:o("ui.teamBridge.schedule.discard_attempt")})]})]})}const Rk={agent_unavailable:()=>o("ui.teamBridge.invitations.failed.agent_unavailable"),already_answered:()=>o("ui.teamBridge.invitations.failed.already_answered"),gone:()=>o("ui.teamBridge.invitations.failed.gone"),outdated:()=>o("ui.teamBridge.invitations.failed.outdated"),runtime_outdated:()=>o("ui.teamBridge.invitations.failed.runtime_outdated"),not_available:()=>o("ui.teamBridge.invitations.failed.not_available"),sign_in:()=>o("ui.teamBridge.invitations.failed.sign_in"),unreachable:()=>o("ui.teamBridge.invitations.failed.unreachable"),unconfirmed:()=>o("ui.teamBridge.invitations.failed.unconfirmed")},Ck=new Set(["already_answered","gone","outdated","runtime_outdated"]);function ol(e){return Rk[e]()}function Tk(e){return!Ck.has(e)}function Mk(e){return e?e.self?e.role==="added"?o("ui.teamBridge.invitations.added_by_you"):o("ui.teamBridge.invitations.created_by_you"):e.role==="added"?o("ui.teamBridge.invitations.added_by",{name:e.name}):o("ui.teamBridge.invitations.created_by",{name:e.name}):null}function Ak({invitations:e,listState:n,onRetry:t,readOnly:a=!1,organizationNames:r}){const s=dd(),[l,c]=u.useState({}),d=u.useRef([]),m=new Set(Object.entries(l).filter(([,p])=>p.phase!=="idle").map(([p])=>p));d.current=zu(d.current,e,m);const h=(p,g)=>{c(b=>({...b,[p.key]:{phase:"pending",decision:g}})),s.mutateAsync({conversationId:p.conversationId,tenantId:p.tenantId,decision:g}).then(()=>c(b=>({...b,[p.key]:{phase:"done",decision:g}})),b=>c(f=>({...f,[p.key]:{phase:"failed",kind:Pu(b)}})))};return i.jsx(zk,{invitations:d.current,rowStates:l,listState:n,onRetry:t,readOnly:a,organizationNames:r,onAnswer:h})}function zk({invitations:e,rowStates:n={},listState:t,onRetry:a,readOnly:r=!1,organizationNames:s={},onAnswer:l}){return ge(),i.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-5","aria-label":o("ui.teamBridge.invitations.title"),children:[i.jsx("h2",{className:"text-lg font-medium text-ink",children:o("ui.teamBridge.invitations.title")}),i.jsx("p",{className:"max-w-prose text-sm text-ink-muted",children:o(Du)}),r&&e.length>0&&i.jsx("p",{className:"max-w-prose text-sm text-ink-muted",children:o("ui.teamBridge.invitations.read_only")}),t==="loading"&&e.length===0?i.jsx(Ze,{size:"sm",label:o("ui.teamBridge.invitations.loading")}):t==="error"&&e.length===0?i.jsxs("div",{role:"alert",className:"flex flex-col items-start gap-2",children:[i.jsx("p",{className:"text-sm text-ink-muted",children:o("ui.teamBridge.invitations.load_failed")}),a&&i.jsx(Y,{size:"sm",variant:"ghost",onClick:a,children:o("ui.teamBridge.list.retry")})]}):e.length===0?i.jsx("p",{className:"text-sm text-ink-muted",children:o("ui.teamBridge.invitations.empty")}):i.jsx("ul",{className:"flex flex-col gap-2",children:e.map(c=>i.jsx(Pk,{invitation:c,state:n[c.key]??{phase:"idle"},readOnly:r,organizationName:s[c.tenantId],onAnswer:d=>l(c,d)},c.key))})]})}function Pk({invitation:e,state:n,readOnly:t,organizationName:a,onAnswer:r}){const s=e.conversationKind==="group"?mt:Pa,l=Mk(e.inviter),c=e.agentName,d=n.phase==="pending",m=n.phase==="failed"?n.kind:null,h=n.phase==="idle"||d||m!==null&&Tk(m);return i.jsxs("li",{className:"flex flex-col gap-1.5 rounded-lg bg-elevated p-3 text-ink",children:[i.jsxs("p",{className:"flex min-w-0 items-center gap-2 text-sm font-medium",children:[i.jsx(s,{size:14,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}),i.jsx("span",{className:"truncate",children:e.conversationName??o("ui.teamBridge.list.untitled")}),a?.trim()&&i.jsx("span",{className:"truncate font-normal text-meta-sm text-ink-dim",children:a.trim()})]}),i.jsx("p",{className:"text-sm text-ink-muted",children:o("ui.teamBridge.invitations.agent_line",c?{agent:c}:{agent:o("ui.teamBridge.invitations.agent_fallback")})}),l&&i.jsx("p",{className:"text-meta text-ink-dim",children:l}),i.jsxs("div",{className:"flex min-h-8 flex-wrap items-center gap-2",children:[h&&i.jsxs(i.Fragment,{children:[i.jsx(ll,{variant:"primary",idle:o("ui.teamBridge.invitations.accept"),busy:o("ui.teamBridge.invitations.accepting"),pending:d&&n.decision==="accept",inFlight:d,readOnly:t,onPress:()=>r("accept")}),i.jsx(ll,{variant:"ghost",idle:o("ui.teamBridge.invitations.decline"),busy:o("ui.teamBridge.invitations.declining"),pending:d&&n.decision==="decline",inFlight:d,readOnly:t,onPress:()=>r("decline")})]}),m!==null&&i.jsx("p",{role:"alert",title:ol(m),className:"min-w-0 flex-1 truncate text-sm text-danger",children:ol(m)}),n.phase==="done"&&i.jsx("p",{"aria-live":"polite",className:"text-sm text-ink-muted",children:n.decision==="accept"?c?o("ui.teamBridge.invitations.accepted",{agent:c}):o("ui.teamBridge.invitations.accepted_unnamed"):c?o("ui.teamBridge.invitations.declined",{agent:c}):o("ui.teamBridge.invitations.declined_unnamed")})]})]})}function ll({variant:e,idle:n,busy:t,pending:a,inFlight:r,readOnly:s,onPress:l}){return i.jsx(Y,{size:"sm",variant:e,disabled:s,"aria-disabled":r||void 0,"aria-busy":a||void 0,onClick:r?void 0:l,className:a?"cursor-progress":void 0,children:i.jsxs("span",{className:"grid",children:[i.jsx("span",{className:G("col-start-1 row-start-1",a&&"invisible"),"aria-hidden":a,children:n}),i.jsx("span",{className:G("col-start-1 row-start-1",!a&&"invisible"),"aria-hidden":!a,children:t})]})})}function _c(e,n){const t=e.ownerDocument,a=t.activeElement instanceof(t.defaultView?.HTMLElement??HTMLElement)?t.activeElement:null;e.querySelector("[data-thread-close]")?.focus();const r=s=>{s.key!=="Escape"||s.defaultPrevented||s.isComposing||t.querySelector('[role="menu"], [role="listbox"]')||(s.preventDefault(),s.stopPropagation(),n())};return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r),a?.isConnected&&(e.contains(t.activeElement)||t.activeElement===t.body)&&a.focus()}}const Dk="px-5 pt-3 pb-1 text-meta text-ink-dim";function Lk({row:e,people:n}){const{member:t}=e,a=n.find(s=>s.account_id===t.account_id)??{account_id:t.account_id,display_label:e.label,role:"member",bridge_enabled:!1,bridge_state:"none"},r=t.endpoint_id;return i.jsx(kn,{member:a,kind:t.kind,endpointId:typeof r=="string"?r:void 0,label:e.label,size:28,className:"size-7 text-meta"})}function Ok(e,n){switch(e){case"leave":return{icon:i.jsx(od,{"aria-hidden":"true"}),name:o("ui.teamBridge.members_panel.leave_label"),tooltip:o("ui.teamBridge.members_panel.leave_tooltip")};case"decline":return{icon:i.jsx(Gr,{"aria-hidden":"true"}),name:o("ui.teamBridge.members_panel.decline_label",{name:n}),tooltip:o("ui.teamBridge.members_panel.decline_tooltip")};default:return{icon:i.jsx(Gr,{"aria-hidden":"true"}),name:o("ui.teamBridge.members.remove_label",{name:n}),tooltip:o("ui.teamBridge.members.remove_tooltip")}}}function qk({conversation:e,people:n,selfAccountId:t,conversationName:a,onAddMembers:r,onAction:s,onClose:l,agentIdentityChip:c,initialQuery:d="",initialConfirmKey:m,initialError:h=!1}){const p=ge(),g=u.useCallback((A,D)=>lt(A,D,{named:(J,L)=>o("ui.teamBridge.chief.label",{agent:J,person:L}),unnamed:J=>o("ui.teamBridge.chief.unnamed",{person:J})}),[]),b=u.useMemo(()=>jf(e,n,t,g,p),[e,n,t,g,p]),[f,x]=u.useState(d),v=b.length>vf,k=v?b.filter(({label:A})=>Yr(A,f)):b,{people:w,agents:j}=dc(k,A=>A.member.kind),R=[{key:"people",heading:o("ui.teamBridge.members.group.people"),rows:w},{key:"agents",heading:o("ui.teamBridge.members.group.agents_v2"),rows:j}].filter(A=>A.rows.length>0),N=xf(e),[_,S]=u.useState(()=>{const A=b.find(D=>D.key===m);return A?.action?{row:A,action:A.action}:null}),[C,T]=u.useState(!1),[ee,O]=u.useState(h),q=u.useRef(new Map),K=u.useRef(null),[I,V]=u.useState(null);u.useEffect(()=>{_&&!b.some(A=>A.key===_.row.key)&&S(null)},[b,_]);const U=u.useRef(null),z=u.useRef(l);z.current=l,u.useEffect(()=>{if(U.current)return _c(U.current,()=>z.current())},[]);const B=A=>{A&&(V(A),queueMicrotask(()=>q.current.get(A)?.focus()))},F=()=>{if(!_||!s||C)return;const{row:A,action:D}=_;T(!0),O(!1),s(A,D).then(()=>{T(!1),S(null)},()=>{T(!1),S(null),O(!0),B(K.current)})};return i.jsxs("aside",{ref:U,"aria-label":o("ui.teamBridge.members_panel.title"),className:"panel-top-pad relative flex h-full min-h-0 w-full min-w-0 shrink-0 flex-col bg-surface",children:[i.jsx(bd,{side:"start"}),i.jsxs("header",{className:"flex h-11 shrink-0 items-center justify-between px-5",children:[i.jsx("h2",{className:"font-semibold text-[15px] text-ink",children:o("ui.teamBridge.members_panel.title")}),i.jsx(Y,{"data-thread-close":!0,size:"icon-sm",variant:"ghost",onClick:l,"aria-label":o("ui.teamBridge.members_panel.close"),children:i.jsx(gt,{size:16})})]}),r&&i.jsx("div",{className:"shrink-0 px-3 pb-1",children:i.jsxs(Y,{type:"button",size:"sm",variant:"ghost",className:"w-full justify-start",onClick:r,children:[i.jsx(pi,{size:14,"aria-hidden":"true"}),o("ui.teamBridge.members.menu")]})}),v&&i.jsxs("div",{className:"relative shrink-0 px-5 pt-1 pb-2",children:[i.jsx(pd,{size:14,"aria-hidden":"true",className:"pointer-events-none absolute start-8 top-1/2 -translate-y-1/2 text-ink-dim"}),i.jsx(Hi,{value:f,onChange:A=>x(A.target.value),placeholder:o("ui.teamBridge.members.search"),"aria-label":o("ui.teamBridge.members.search"),className:"ps-9"})]}),N&&i.jsx("p",{className:G("shrink-0 px-5 pb-2 text-meta text-ink-dim"),children:N==="dm"?o("ui.teamBridge.members_panel.note.dm"):o(`ui.teamBridge.members_panel.note.${N}`,{channel:zt(`#${N}`)})}),ee&&i.jsx("p",{role:"alert",className:G("shrink-0 px-5 pb-2 text-[13px] text-danger"),children:o("ui.teamBridge.members.mutation_error")}),i.jsx(Ra,{className:"min-h-0 flex-1",children:i.jsx("div",{className:"pb-4",children:R.length===0?i.jsx("p",{className:"px-5 py-3 text-body-sm text-ink-dim",children:o("ui.teamBridge.members.current_no_matches")}):R.map(A=>i.jsxs("section",{"aria-label":A.heading,children:[i.jsx("h3",{className:Dk,children:A.heading}),i.jsx("ul",{children:A.rows.map(D=>{const J=s?D.action:null,L=J?Ok(J,D.label):null,$=_?.row.key===D.key;return i.jsxs("li",{className:G("group flex min-h-10 items-center gap-2.5 px-5 py-1.5 hover:bg-elevated"),children:[i.jsx(Lk,{row:D,people:n}),i.jsxs("p",{className:"min-w-0 flex-1 truncate text-body-sm text-ink",children:[D.label,D.self&&i.jsxs("span",{className:"text-ink-dim",children:[" ",o("ui.teamBridge.members.you")]}),D.member.role==="owner"&&i.jsxs("span",{className:"text-ink-dim",children:[" · ",o("ui.teamBridge.members.role.owner")]})]}),D.member.kind==="agent"&&c?.(D),D.state==="invited"&&i.jsx(yi,{variant:"neutral",className:"shrink-0",children:o("ui.teamBridge.members.state.invited_short")}),D.state==="pending_approval"&&i.jsx(yi,{variant:"neutral",className:"shrink-0",children:o("ui.teamBridge.members_panel.state.pending_approval")}),i.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center",children:J&&L&&i.jsx("span",{className:G("shrink-0",fd($)),children:i.jsx(Vi,{content:L.tooltip,suppressed:I===D.key,discardWhileSuppressed:!0,children:i.jsx(Y,{ref:le=>{le?q.current.set(D.key,le):q.current.delete(D.key)},type:"button",size:"icon-sm",variant:"ghost",disabled:C,"aria-label":L.name,"aria-haspopup":"dialog",onPointerEnter:()=>{I===D.key&&V(null)},onBlur:()=>{I===D.key&&V(null)},onClick:()=>{K.current=D.key,O(!1),S({row:D,action:J})},children:L.icon})})})})]},D.key)})})]},A.key))})}),i.jsx(Fk,{subject:_,conversationName:a,pending:C,onClose:()=>{C||(S(null),B(K.current))},onConfirm:F})]})}function Fk({subject:e,conversationName:n,pending:t,onClose:a,onConfirm:r}){ge();const s=e?.action,l=e?.row.label??"",c=s==="leave"?{title:o("ui.teamBridge.members_panel.confirm.leave_title",{conversation:n}),body:o("ui.teamBridge.members_panel.confirm.leave_body"),confirm:o("ui.teamBridge.members_panel.confirm.leave")}:s==="decline"?{title:o("ui.teamBridge.members_panel.confirm.decline_title",{name:l}),body:o("ui.teamBridge.members_panel.confirm.decline_body",{name:l,conversation:n}),confirm:o("ui.teamBridge.members_panel.confirm.decline")}:{title:o("ui.teamBridge.members_panel.confirm.remove_title",{name:l,conversation:n}),body:s==="withdraw"?o("ui.teamBridge.members_panel.confirm.withdraw_body"):e?.row.state==="invited"?o("ui.teamBridge.members_panel.confirm.remove_invited_body"):o("ui.teamBridge.members_panel.confirm.remove_body"),confirm:o("ui.teamBridge.members_panel.confirm.remove")};return i.jsx(qt,{open:e!==null,onOpenChange:d=>{d||a()},children:i.jsxs(Ft,{className:"gap-4",closeDisabled:t,children:[i.jsx($t,{children:c.title}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:c.body}),i.jsxs(Ga,{children:[i.jsx(Y,{type:"button",variant:"ghost",disabled:t,onClick:a,children:o("ui.teamBridge.create.cancel")}),i.jsx(Y,{type:"button",variant:s==="decline"?"primary":"danger",disabled:t,onClick:r,children:c.confirm})]})]})})}function Nc(e){return e.state===void 0||e.state==="bound"}function dl(e){return e.mime==="image/png"||e.mime==="image/jpeg"}const $k={regular:400,compact:280},cl={regular:{width:400,height:320},compact:{width:280,height:220}},Kk={width:240,height:160},Uk=4;function Bc(e){const n=e?.width,t=e?.height;return!n||!t||!Number.isFinite(n)||!Number.isFinite(t)||n<0||t<0?null:{width:n,height:t}}function Hk(e){const n=Bc(e);if(!n)return"contain";const t=n.width/n.height;return t>2.5||t<.4?"contain":"cover"}function Gk(e,n,t=!1){const a=t?"compact":"regular",r=cl[a].width,s=cl[a].height,l=Bc(e);if(!l)return{...Kk};const{width:c,height:d}=l,m=Math.min(r/c,s/d,1);return{width:Math.max(64,Math.round(c*m)),height:Math.max(64,Math.round(d*m))}}function Sc(e){const n=e.display_name?.trim();return{id:e.id,fileClass:e.class??"",size:typeof e.size=="number"?e.size:0,displayName:n||null,state:e.state??"",expiresAt:e.expires_at??null}}function Wk(e){return e.state==="bound"}function Tr(e,n=Date.now()){if(e.state==="expired")return"expired";if(!Wk(e))return"unavailable";const t=e.expiresAt?Date.parse(e.expiresAt):Number.NaN;return t>0&&t<=n?"expired":"available"}function Vk(e){return e===413?"too_large":e===null||e===408||e===429||e>=500?"failed":"unavailable"}const Jk=/[\\/:*?"<>|]/g,Ec=/^[\s.]+|[\s.]+$/g,Qk=/[^_]/,Yk=/^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i,ul=200,Mr=new TextEncoder;function Xk(e){if(Mr.encode(e).byteLength<=ul)return e;const n=Array.from(e),t=n.lastIndexOf("."),a=t>0&&n.length-t<=Ic?n.slice(t).join(""):"",r=n.slice(0,a?t:n.length);let s=ul-Mr.encode(a).byteLength,l=0;for(;l<r.length;l++){const c=Mr.encode(r[l]).byteLength;if(c>s)break;s-=c}return`${r.slice(0,l).join("").replace(Ec,"")}${a}`}const Zk=new Map([["pdf",".pdf"],["text",".txt"],["container",".zip"]]);function ew(e,n){const t=Xk(Array.from(Yh(e.displayName??""),a=>{const r=a.codePointAt(0)??0;return r<32||r>=127&&r<=159?"_":a}).join("").replace(Jk,"_").replace(Ec,""));return t&&Qk.test(t)?Yk.test(t)?`_${t}`:t:`file-${n+1}${Zk.get(e.fileClass)??""}`}const Ic=9,ml=4;function nw(e){const n=Array.from(e),t=n.lastIndexOf(".");let a=n.length;t>0&&n.length-t<=Ic?a=t:n.length>ml*2&&(a=n.length-ml);const r=n.lastIndexOf("…");return r>=a&&(a=r+1),a>=n.length||a<=0?{head:e,tail:""}:{head:n.slice(0,a).join(""),tail:n.slice(a).join("")}}function Rc(e){return e?240:320}const tw=1e3;function iw(e){const[n,t]=u.useState(!1);return u.useEffect(()=>{if(!e){t(!1);return}const a=window.setTimeout(()=>t(!0),tw);return()=>window.clearTimeout(a)},[e]),n}function Cc(e){return e?{width:e.width,height:e.height,maxWidth:"100%"}:void 0}const aw=G("pointer-events-none absolute end-2 top-2 flex gap-0.5 rounded-sm bg-elevated p-0.5 opacity-0 shadow-overlay","transition-opacity duration-fast ease-out-quart","group-hover/tile:pointer-events-auto group-hover/tile:opacity-100","group-focus-within/tile:pointer-events-auto group-focus-within/tile:opacity-100"),es="flex size-7 items-center justify-center rounded-xs text-ink-muted hover:bg-row-hover hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus";function Tc({url:e,box:n,fit:t,label:a,openLabel:r,onOpen:s,onDownload:l,buttonRef:c,overflow:d,busy:m}){const h=iw(!e),p=n!==null,g=d&&d>0?d:0,b=g?o("ui.chat.canonical.fold.more_images",{count:g,count_display:String(g)}):r;return i.jsxs("div",{className:G("group/tile relative max-w-full",p?"rounded-md":"size-full rounded-xs"),style:Cc(n),children:[i.jsx("button",{ref:c,type:"button","aria-label":b,title:b,"aria-busy":m,disabled:!e,onClick:s,className:G("block size-full cursor-zoom-in overflow-hidden leading-none disabled:cursor-progress",p?"rounded-md":"rounded-xs",e&&"bg-media-surface","focus-visible:outline focus-visible:outline-2 focus-visible:outline-focus",p?"focus-visible:outline-offset-2":"focus-visible:-outline-offset-2!"),"data-attachment-reserved":e?void 0:"",children:e?i.jsx("img",{src:e,alt:a,draggable:!1,className:G("size-full",t==="cover"?"object-cover":"object-scale-down")}):i.jsxs("span",{className:"relative flex size-full items-center justify-center",children:[i.jsx(fi,{"aria-hidden":"true",className:"absolute inset-0 rounded-none bg-media-surface"}),h&&i.jsx(qa,{size:20,"aria-hidden":"true","data-attachment-held":"",className:"relative text-ink-dim"})]})}),e&&!g&&i.jsxs("div",{"data-lo-floating":"",className:aw,"data-attachment-actions":"",children:[i.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true","aria-label":r,title:r,onClick:s,className:es,children:i.jsx(sh,{size:16,"aria-hidden":"true"})}),l&&i.jsx("button",{type:"button","aria-label":o("ui.common.forms.autocomplete_field.save",{label:a}),title:o("ui.chat.image_actions.save_as"),onClick:l,className:es,children:i.jsx(yd,{size:16,"aria-hidden":"true"})})]})]})}function Is({box:e,label:n,copy:t,kind:a="unavailable",onRetry:r,retryLabel:s,attributes:l}){const c=u.useId(),d=e!==null&&e.width>=120&&e.height>=88,m=a==="expired"?wi:xd;return i.jsxs("div",{style:Cc(e),className:G("flex flex-col items-center justify-center gap-1 break-words bg-media-surface px-2 text-center text-[12px] text-ink-muted",e?"rounded-md":"size-full rounded-xs"),"data-image-failure":"",...l,children:[i.jsxs("span",{role:"img","aria-label":n,"aria-describedby":c,title:d?void 0:t,className:"flex flex-col items-center gap-1",children:[i.jsx(m,{size:20,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}),i.jsx("span",{id:c,className:d?void 0:"sr-only",children:t})]}),r&&i.jsx("button",{type:"button",onClick:r,className:"min-h-6 rounded-sm px-1.5 font-medium text-accent hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-focus",children:s})]})}function rw({count:e}){return i.jsx("span",{"aria-hidden":"true","data-attachment-overflow":String(e),className:"pointer-events-none absolute inset-0 flex items-center justify-center group-has-[[data-image-failure]]/slot:items-start group-has-[[data-image-failure]]/slot:justify-end group-has-[[data-image-failure]]/slot:p-1",children:i.jsx("span",{className:"rounded-sm bg-elevated px-2 py-1 font-semibold text-[13px] text-ink",children:`+${e}`})})}function sw(e,n){return n===3&&e===0?"row-span-2":"aspect-square"}function Mc({attachments:e,count:n=e.length,renderPreview:t,compact:a=!1,files:r=[],fileCount:s=r.length,readFile:l}){ge();const c=i.jsx(uw,{files:r,count:s,compact:a,readFile:l});if(e.length===0&&!(n>0))return r.length>0||s>0?c:null;const d=[],m=[];e.forEach((j,R)=>{const N=Nc(j),_=N&&dl(j)&&!!t;_||!N&&dl(j)?d.push({attachment:j,index:R,preview:_}):m.push({attachment:j,index:R})}),e.length===0&&m.push({attachment:null,index:0});const h=a?"compact":"regular",p=d.length===1,g=Math.min(d.length,Uk),b=d.length-g,f=o("ui.teamBridge.attachmentCard.list",{count:e.length||n}),x=({attachment:j,index:R,preview:N},_)=>{const S={box:p?Gk(j,!0,a):null,fit:p?Hk(j):"cover",overflow:_===g-1?b:0},C=_>=g;return i.jsxs("li",{hidden:C||void 0,"data-bridge-attachment-card":N?"preview":"unavailable",className:G("group/slot relative min-w-0",!p&&!C&&sw(_,g)),children:[N&&t?t(j,R,S):i.jsx(Is,{box:S.box,label:o("ui.teamBridge.attachments.position",{index:String(R+1),count:String(e.length)}),copy:o("ui.teamBridge.attachments.unavailable")}),S.overflow>0&&i.jsx(rw,{count:S.overflow})]},j.id)},v=d.length>0?i.jsx("ul",{"aria-label":f,style:{maxWidth:$k[h]},className:G("mt-1 min-w-0",p?"flex":"grid w-full grid-cols-2 gap-1 overflow-hidden rounded-md"),children:d.map(x)}):null,k=m.length>0?i.jsx("ul",{"aria-label":d.length?void 0:f,className:"mt-1.5 flex min-w-0 flex-wrap items-start gap-2",children:m.map(({attachment:j})=>i.jsx(lw,{attachment:j,count:n,compact:a},j?.id??"count-only"))}):null,w=r.length>0||s>0;return!k&&!w?v:i.jsxs(i.Fragment,{children:[v,k,w&&c]})}const ow=new Map([["image/png","PNG"],["image/jpeg","JPEG"]]),Rs="flex h-12 min-w-0 max-w-full items-center gap-2.5 rounded-md border border-control bg-media-surface px-2.5",Cs="flex size-8 shrink-0 items-center justify-center rounded-sm bg-elevated";function lw({attachment:e,count:n,compact:t}){const a=e!==null&&Nc(e),r=e?ow.get(e.mime):void 0,s=a&&e&&Number.isSafeInteger(e.size)?vd(e.size>0?e.size:null):null,l=e===null?o("ui.teamBridge.attachmentCard.list",{count:n}):r?o("ui.chat.canonical.image_label"):o("ui.teamBridge.attachmentCard.file"),c=a?r&&s?o("ui.chat.attachments.file_meta",{type:r,size:s}):s??r??null:e===null?null:o("ui.teamBridge.attachmentCard.unavailable"),d=e===null||r?qa:a?ps:Qd;return i.jsxs("li",{style:{width:Rc(t)},"data-bridge-attachment-card":e===null||a?"metadata":"unavailable",title:a&&r?o("ui.teamBridge.attachmentCard.metadata_only"):void 0,className:Rs,children:[i.jsx("span",{className:Cs,children:i.jsx(d,{size:16,"aria-hidden":"true",className:"text-ink-muted"})}),i.jsxs("span",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"block truncate font-medium text-[13px] text-ink",children:l}),c&&i.jsx("span",{dir:"auto",className:"block truncate text-ink-dim text-meta-sm",children:c})]})]})}const hl=new Map([["pdf","application/pdf"],["text","text/plain"],["container","application/zip"]]);function dw({label:e,available:n}){const{head:t,tail:a}=nw(e);return i.jsxs("span",{dir:"auto",className:G("flex min-w-0 font-medium",n?"text-ink":"text-ink-muted"),children:[i.jsx("span",{"data-file-name-part":"head",className:"min-w-0 truncate",style:{unicodeBidi:"isolate"},children:t}),a&&i.jsx("span",{"data-file-name-part":"tail",dir:a.startsWith(".")?"ltr":void 0,className:"shrink-0 whitespace-pre",style:{unicodeBidi:"isolate"},children:a})]})}function cw({file:e,index:n,count:t,width:a,readFile:r}){const[s,l]=u.useState("idle"),c=u.useRef(!1),d=u.useRef(!0),m=u.useRef(null),h=u.useRef(null),p=u.useRef(!1);u.useEffect(()=>(d.current=!0,()=>{d.current=!1}),[]);const g=s==="unavailable"||s==="expired"?s:Tr(e),b=g==="available",f=b&&!!r&&s!=="too_large";u.useEffect(()=>{f||!p.current||(p.current=!1,m.current?.focus({preventScroll:!0}))},[f]);const x=async()=>{if(!(!r||c.current)){if(Tr(e)!=="available"){p.current=document.activeElement===h.current,l(Tr(e)==="expired"?"expired":"unavailable");return}c.current=!0,l("saving");try{const T=await r(e);if(!d.current)return;jd(new Blob([T],{type:"application/octet-stream"}),ew(e,n)),l("idle")}catch(T){if(!d.current)return;const ee=T?.status,O=Vk(typeof ee=="number"?ee:null);p.current=O!=="failed"&&document.activeElement===h.current,l(O)}finally{c.current=!1}}},v=e.displayName,k=v?oh(v):null,w=hl.has(e.fileClass)?e.fileClass:"other",j=v&&k?lh(v):o("ui.teamBridge.fileCard.kind",{kind:w}),R=!v&&w==="other",N=b&&Number.isSafeInteger(e.size)&&e.size>0?vd(e.size):null,_=R?N:N?o("ui.chat.attachments.file_meta",{type:j,size:N}):j,S=g==="expired"?o("ui.teamBridge.fileCard.expired"):g==="unavailable"?o("ui.teamBridge.fileCard.unavailable"):s==="saving"?o("ui.teamBridge.fileCard.saving"):s==="failed"?o("ui.teamBridge.fileCard.save_failed"):s==="too_large"?o("ui.teamBridge.fileCard.too_large"):_,C=b&&s==="failed";return i.jsxs("li",{ref:m,tabIndex:-1,style:{width:a},"data-bridge-file-card":g,"data-file-save":b&&r?s:void 0,className:G(Rs,"h-auto min-h-12 gap-2.5 py-1.5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-focus"),children:[i.jsx("span",{className:G(Cs,"text-ink-muted"),children:C?i.jsx(xs,{size:16,"aria-hidden":"true","data-file-save-failed":"",className:"text-danger"}):b?i.jsx(dh,{name:v??"",mimeType:hl.get(e.fileClass),className:"size-4"}):g==="expired"?i.jsx(wi,{size:16,"aria-hidden":"true"}):i.jsx(Qd,{size:16,"aria-hidden":"true"})}),i.jsxs("span",{className:"min-w-0 flex-1 text-[13px]",children:[v?i.jsx(dw,{label:v,available:b}):i.jsx("span",{dir:"auto",className:G("block truncate font-medium",b?"text-ink":"text-ink-muted"),children:o("ui.teamBridge.attachmentCard.file")}),S&&i.jsx("span",{"aria-live":"polite",className:"line-clamp-2 break-words text-meta-sm text-ink-dim",children:S})]}),f&&i.jsx("button",{type:"button",ref:h,className:G(es,"shrink-0"),"aria-label":o("ui.teamBridge.fileCard.save",{index:String(n+1),count:String(t)}),title:o("ui.chat.image_actions.save_as"),"aria-busy":s==="saving"||void 0,"aria-disabled":s==="saving"||void 0,onClick:()=>void x(),children:s==="saving"?i.jsx(Ze,{size:"sm"}):i.jsx(yd,{size:16,"aria-hidden":"true"})})]})}function uw({files:e,count:n=e.length,compact:t=!1,readFile:a}){if(ge(),e.length===0&&!(n>0))return null;const r=Rc(t);return i.jsx("ul",{"aria-label":o("ui.teamBridge.fileCard.list",{count:e.length||n}),className:"mt-1.5 flex min-w-0 flex-wrap items-start gap-2",children:e.length?e.map((s,l)=>i.jsx(cw,{file:s,index:l,count:e.length,width:r,readFile:a},s.id)):i.jsxs("li",{style:{width:r},"data-bridge-file-card":"count-only",className:G(Rs,"gap-2.5"),children:[i.jsx("span",{className:G(Cs,"text-ink-muted"),children:i.jsx(ps,{size:16,"aria-hidden":"true"})}),i.jsx("span",{className:"min-w-0 flex-1 text-[13px]",children:i.jsx("span",{dir:"auto",className:"block truncate font-medium text-ink",children:o("ui.teamBridge.fileCard.list",{count:n})})})]})})}const mw=e=>{switch(e){case"unsupported":return o("ui.teamBridge.attachments.error_type");case"too_large":return o("ui.teamBridge.attachments.error_size");case"invalid":return o("ui.teamBridge.attachments.error_invalid");case"rate_limited":return o("ui.teamBridge.attachments.error_rate");case"limit":return o("ui.teamBridge.attachments.error_quota");case"expired":return o("ui.teamBridge.attachments.expired_staged");case"offline":return o("ui.teamBridge.attachments.error_offline");case"signed_out":return o("ui.teamBridge.plan.sign_in_reason");case"account_mismatch":return o("ui.teamBridge.attachments.error_account_changed");default:return o("ui.teamBridge.attachments.error_upload")}},hw=({chip:e,index:n,count:t,onRemove:a,onRetry:r})=>{ge();const s=o("ui.teamBridge.attachments.position",{index:String(n+1),count:String(t)}),l=e.status==="error"||e.status==="expired",c=e.status==="uploading"||e.status==="preparing",d=Ac(e),m=u.useId();return i.jsxs("li",{className:"group/chip relative","data-attachment-chip":e.status,"aria-label":s,"aria-describedby":d?m:void 0,children:[d&&i.jsx("span",{id:m,className:"sr-only",children:d}),i.jsxs("div",{title:!e.previewUrl&&e.status==="ready"?o("ui.teamBridge.attachments.preview_unavailable"):void 0,className:G("relative flex size-16 items-center justify-center overflow-hidden rounded-md border bg-sunken",l?"border-danger":"border-hairline"),children:[e.previewUrl?i.jsx("img",{src:e.previewUrl,alt:"",className:G("size-full object-cover",c?"opacity-70":"opacity-100")}):l?i.jsx(xd,{size:18,"aria-hidden":"true",className:"text-ink-dim"}):c?null:i.jsx(qa,{size:18,"aria-hidden":"true",className:"text-ink-dim"}),c&&i.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:i.jsx("span",{className:"flex size-7 items-center justify-center rounded-full bg-elevated shadow-sm",children:i.jsx(Ze,{size:"sm",label:o("ui.teamBridge.attachments.uploading")})})}),l&&i.jsx("span",{"aria-hidden":"true",className:"absolute inset-x-0 bottom-0 flex items-center justify-center bg-canvas/80 py-0.5 text-danger",children:e.status==="expired"?i.jsx(wi,{size:12}):i.jsx(xs,{size:12})})]}),i.jsx(gl,{position:"top",label:o("ui.teamBridge.attachments.remove",{label:s}),onClick:a,children:i.jsx(gt,{size:12,"aria-hidden":"true"})}),l&&e.prepared&&e.reason!=="signed_out"&&e.reason!=="account_mismatch"&&i.jsx(gl,{position:"bottom",label:o("ui.teamBridge.attachments.retry",{label:s}),onClick:r,children:i.jsx(ys,{size:12,"aria-hidden":"true"})})]})},gl=({position:e,label:n,onClick:t,children:a})=>i.jsx("button",{type:"button",onClick:t,"aria-label":n,title:n,className:G("group/action absolute -right-2 flex size-6 items-center justify-center rounded-full",e==="top"?"-top-2":"-bottom-2"),children:i.jsx("span",{className:"flex size-5 items-center justify-center rounded-full border border-control bg-elevated text-ink-muted group-hover/action:text-ink group-focus-visible/action:text-ink",children:a})});function Ac(e){return e.status==="expired"?e.prepared?o("ui.teamBridge.attachments.expired_staged_retry"):o("ui.teamBridge.attachments.expired_staged"):e.status==="error"?mw(e.reason):e.status==="uploading"||e.status==="preparing"?o("ui.teamBridge.attachments.uploading"):null}const gw=({state:e})=>{ge();const n=e.chips.findIndex(c=>c.status==="error"||c.status==="expired"),t=n>=0?e.chips[n]:null,a=e.chips.filter(c=>c.status==="error"||c.status==="expired"),r=e.chips.some(c=>c.status==="uploading"||c.status==="preparing"),s=e.notice==="unsupported"||e.unsupported?o("ui.teamBridge.attachments.unsupported"):e.notice==="limit"?o("ui.teamBridge.attachments.limit",{max:e.max}):t?Ac(t)??"":r?o("ui.teamBridge.attachments.uploading"):null,l=t&&!e.notice&&!e.unsupported?"danger":"muted";return e.chips.length===0&&!s?null:i.jsxs("div",{className:"px-3.5 pt-3",children:[e.chips.length>0&&i.jsx("ul",{"aria-label":o("ui.teamBridge.attachments.strip"),className:"flex flex-wrap gap-2.5",children:e.chips.map((c,d)=>i.jsx(hw,{chip:c,index:d,count:e.chips.length,onRemove:()=>e.remove(c.key),onRetry:()=>e.retry(c.key)},c.key))}),s&&i.jsxs("p",{role:l==="danger"?"alert":"status",className:G("pt-1.5 text-[12px]",l==="danger"?"text-danger":"text-ink-muted"),children:[t&&l==="danger"&&i.jsx("span",{className:"me-1.5 font-medium",children:a.length>1?o("ui.teamBridge.attachments.failed_count",{count:a.length}):o("ui.teamBridge.attachments.position",{index:String(n+1),count:String(e.chips.length)})}),s]})]})},pw=({state:e,files:n,disabled:t=!1})=>{ge();const a=u.useRef(null);if(!e.enabled&&!n?.enabled)return null;const r=n?.enabled?e.count+n.chips.length>=10:e.count>=e.max;return i.jsxs(i.Fragment,{children:[i.jsx(Y,{variant:"ghost",size:"icon","aria-label":o(n?.enabled?"ui.teamBridge.files.add":"ui.teamBridge.attachments.add"),title:r?o("ui.teamBridge.attachments.limit",{max:e.max}):o(n?.enabled?"ui.teamBridge.files.add":"ui.teamBridge.attachments.add"),disabled:t||r,onClick:()=>a.current?.click(),children:n?.enabled?i.jsx(kd,{size:16,"aria-hidden":"true"}):i.jsx(Vd,{size:16,"aria-hidden":"true"})}),i.jsx("input",{ref:a,type:"file",accept:n?.enabled?void 0:"image/png,image/jpeg,image/webp,image/gif,image/heic,image/heif",multiple:!0,hidden:!0,tabIndex:-1,onChange:s=>{const l=Array.from(s.target.files??[]);n?Es(l).then(c=>{e.add(c.images),n.add(c.generic)}):e.add(l),s.target.value=""}})]})},ka=new Map;function fw(e,n){const t=ka.get(e);if(t)return t.holders+=1,t.promise;const a={holders:1,promise:Promise.resolve("unavailable")};return a.promise=(async()=>{try{const{data:r,mimeType:s}=await Je.attachmentBytes(n),l=xi(r,s);return a.holders<=0?(bi(l),"unavailable"):(Bd(e,l),"ready")}catch(r){return r instanceof Lu&&(r.status===null||r.status>=500||r.status===408||r.status===429)?"failed":"unavailable"}finally{ka.delete(e)}})(),ka.set(e,a),a.promise}function kw(e,n,t,a){const[r,s]=u.useState(()=>{const l=t?Nd(e):null;return l?{state:"ready",url:l}:{state:"loading"}});return u.useEffect(()=>{if(!t)return;let l=!0;const c=Ba(e);if(c)return s({state:"ready",url:c}),()=>{l=!1,Sa(e)};s({state:"loading"});let d=!0;return fw(e,n).then(m=>{if(d=!1,!l)return;const h=m==="ready"?Ba(e):null;s(h?{state:"ready",url:h}:{state:m==="failed"?"failed":"unavailable"})}),()=>{if(l=!1,d){const m=ka.get(e);m&&(m.holders-=1)}Sa(e)}},[e,t,a]),r}const ns=({kind:e,label:n,box:t,onRetry:a})=>i.jsx(Is,{kind:e,label:n,box:t,copy:e==="expired"?o("ui.teamBridge.attachments.expired"):o("ui.teamBridge.attachments.unavailable"),onRetry:a,retryLabel:o("ui.teamBridge.attachments.retry_load"),attributes:{"data-attachment-placeholder":e}});function ww(e,n,t){const a=n==="image/jpeg"?"jpg":"png";jd(e,`image-${t+1}.${a}`)}const bw=({message:e,tenantId:n,accountId:t,attachment:a,index:r,count:s,slot:l,onOpen:c,register:d,buttonRef:m})=>{const h=n===null||!t?"unavailable":Ff(a),[p,g]=u.useState(0),b=JSON.stringify(["team-bridge-member",t,n,e.conversation_id,e.id,a.id]),f=kw(b,{tenantId:n??"",conversationId:e.conversation_id,messageId:e.id,attachmentId:a.id,expectedAccountId:t??""},h==="fetch"&&!!t,p),x=o("ui.teamBridge.attachments.position",{index:String(r+1),count:String(s)}),v=f.state==="ready"?f.url:null;u.useEffect(()=>d(r,v),[v,r]);const k=v?uh(v):null;return h!=="fetch"||f.state==="unavailable"?i.jsx(ns,{kind:"unavailable",label:x,box:l.box}):f.state==="failed"?i.jsx(ns,{kind:"failed",label:x,box:l.box,onRetry:()=>g(w=>w+1)}):i.jsx(Tc,{url:v,box:l.box,fit:l.fit,overflow:l.overflow,label:x,openLabel:o("ui.teamBridge.attachments.open",{index:String(r+1),count:String(s)}),buttonRef:m,onOpen:()=>c(r),onDownload:k?()=>ww(k,a.mime,r):void 0})},yw=({message:e,tenantId:n,density:t="regular",accountId:a})=>{ge();const r=e.attachments??[],s=(e.files??[]).map(Sc),l=n!==null&&a?w=>Je.fileBytes({tenantId:n,conversationId:e.conversation_id,messageId:e.id,attachmentId:w.id,expectedAccountId:a}):void 0,c=Math.max(s.length,e.file_count??0),[d,m]=u.useState(null),[h,p]=u.useState([]),g=u.useRef([]),b=u.useRef(null);if(r.length===0&&c===0)return null;const f=r.length,x=(w,j)=>p(R=>{if(R[w]===j)return R;const N=[...R];return N[w]=j,N}),v=w=>m(j=>j===null?null:(j+w+f)%f),k=d===null?"":o("ui.teamBridge.attachments.position",{index:String(d+1),count:String(f)});return i.jsxs(i.Fragment,{children:[i.jsx(Mc,{attachments:r,compact:t==="compact",files:s,fileCount:c,readFile:l,renderPreview:(w,j,R)=>i.jsx(bw,{message:e,tenantId:n,accountId:a,attachment:w,index:j,count:f,slot:R,register:x,buttonRef:N=>{g.current[j]=N},onOpen:N=>{b.current=g.current[N]??null,m(N)}})}),i.jsx(_d,{src:d===null?void 0:h[d]??void 0,pending:d!==null&&!h[d],label:k,open:d!==null,onOpenChange:w=>{w||m(null)},restoreFocusTo:b,fallback:i.jsx(ns,{kind:"unavailable",label:k,box:{width:240,height:160}}),group:f>1&&d!==null?{index:d,count:f,onPrev:()=>v(-1),onNext:()=>v(1)}:void 0})]})},zc=({attachments:e,accountId:n})=>{ge();const t=u.useId(),[a,r]=u.useState({}),s=e.map(c=>c.id).join(",");if(u.useEffect(()=>{const c={};for(const d of e){const m=kc(n,d.id);m&&(c[d.id]=xi(m,m.type))}return r(c),()=>{for(const d of Object.values(c))bi(d)}},[s,n]),e.length===0)return null;const l=e.length;return i.jsxs(i.Fragment,{children:[i.jsx("ul",{"aria-label":o("ui.teamBridge.attachments.in_message",{count:l}),className:"mt-1.5 flex flex-wrap gap-2",children:e.map((c,d)=>{const m=o("ui.teamBridge.attachments.position",{index:String(d+1),count:String(l)}),h=a[c.id];return i.jsx("li",{children:i.jsx(ch,{className:"size-16",role:"img","aria-label":m,"aria-describedby":h?void 0:`${t}-none`,title:h?void 0:o("ui.teamBridge.attachments.preview_unavailable"),"data-attachment-scheduled":h?"preview":"descriptor",children:h?i.jsx("img",{src:h,alt:"",className:"size-full object-cover"}):i.jsx(qa,{size:16,"aria-hidden":"true",className:"text-ink-dim"})})},c.id)})}),i.jsx("span",{hidden:!0,id:`${t}-none`,children:o("ui.teamBridge.attachments.preview_unavailable")})]})};function xw(e,n){const t=a=>{n?Es(Ki(a)).then(r=>{e.add(r.images),n.add(r.generic)}):e.add(Cr(a))};return{onPaste:a=>{(n?Ki(a.clipboardData):Cr(a.clipboardData)).length!==0&&(pc(a.clipboardData)&&a.preventDefault(),t(a.clipboardData))},onDragOver:a=>{Array.from(a.dataTransfer.types).includes("Files")&&a.preventDefault()},onDrop:a=>{(n?Ki(a.dataTransfer):Cr(a.dataTransfer)).length!==0&&(a.preventDefault(),t(a.dataTransfer))}}}const vw=/data:image\//gi,pl=/[a-z0-9+/%=_-]/i,fl=/<\/svg\s*>/gi,jw=/;base64$/i,Ar=/[\s"'<>`]/,_w=/[;,]/,Nw=/[)\]}.!?]{1,4}$/,Bw=80,zr=2048,Sw=2048,Ew=256,Iw=2048;function Pt(e,n,t,a=0){let r=n,s=a;for(;r<t&&(e[r]===" "||e[r]===" ");)s=e[r]===" "?s+4-s%4:s+1,r++;return{i:r,col:s}}function kl(e,n,t){let a=n;if(e[a]==="-"||e[a]==="*"||e[a]==="+")a++;else{for(;a<t&&a-n<9&&e[a]>="0"&&e[a]<="9";)a++;if(a===n||e[a]!=="."&&e[a]!==")")return 0;a++}return a===t||e[a]==="\r"||e[a]===" "||e[a]===" "?a-n:0}function wl(e,n,t){let a=0,r=e.length;for(;a<r;){const s=a+r>>1;e[s].quote<t||e[s].quote===t&&e[s].col<=n?a=s+1:r=s}return a&&e[a-1].quote===t?e[a-1].col:0}function Rw(e,n,t,a,r,s){let l=n,c=0;for(;;){const g=Pt(e,l,t);if(g.col>3||e[g.i]!==">")break;if(!c)for(;a.length&&a[a.length-1].quote===c&&a[a.length-1].col>g.col;)a.pop();l=g.i+1,(e[l]===" "||e[l]===" ")&&l++,c++}for(;a.length&&a[a.length-1].quote>c;)a.pop();let{i:d,col:m}=Pt(e,l,t);const h=d===t||e[d]==="\r"&&d+1===t;if(h)return{at:-1,blank:h,quote:c,item:0};if(a.length&&a[a.length-1].quote===c&&a[a.length-1].col>m&&(r||!a[a.length-1].lazy||bl(e,d,t)))for(;a.length&&a[a.length-1].quote===c&&a[a.length-1].col>m;)a.pop();const p=Cw(e,d,t);for(;;){const g=wl(a,m,c);if(m-g>3)return{at:-1,blank:h,quote:c,item:g};const b=s&&d+kl(e,d,t)===t||p>=0&&d>=p?0:kl(e,d,t);if(!b)break;const f=Pt(e,d+b,t,m+b),x=f.col-m-b,v=m+b+(x===0||x>4?1:x);for(;a.length&&a[a.length-1].quote===c&&a[a.length-1].col>m;)a.pop();if(a.length&&(a[a.length-1].lazy=!1),a.push({col:v,quote:c,lazy:!1}),x>4)return{at:-1,blank:h,quote:c,item:v};d=f.i,m=f.col}if(a.length&&a[a.length-1].quote===c){const g=a[a.length-1];g.lazy=d<t&&e[d]!=="\r"&&!bl(e,d,t)}return{at:d,blank:h,quote:c,item:wl(a,m,c)}}function bl(e,n,t){const a=e[n];let r=0;for(;n+r<t&&e[n+r]===a;)r++;if(a==="#"){const s=e[n+r];return r<=6&&(n+r===t||s===" "||s===" "||s==="\r")}return a==="`"||a==="~"?r>=3:Tw(e,n,t)}function Cw(e,n,t){let a="",r=0,s=t;for(let l=t-1;l>=n;l--){const c=e[l];if(!(c===" "||c===" "||c==="\r")){if(!a&&(c==="*"||c==="-"||c==="_")&&(a=c),!a||c!==a)break;r++,s=l}}return r>=3?s:-1}function Tw(e,n,t){const a=e[n];if(a!=="*"&&a!=="-"&&a!=="_")return!1;let r=0;for(let s=n;s<t;s++)if(e[s]===a)r++;else if(e[s]!==" "&&e[s]!==" "&&e[s]!=="\r")return!1;return r>=3}function Mw(e,n,t,a){let r=n;for(let c=0;c<a.quote;c++){const d=Pt(e,r,t);if(d.col>3||e[d.i]!==">")return!0;r=d.i+1,(e[r]===" "||e[r]===" ")&&r++}if(!a.item)return!1;const s=Pt(e,r,t);return!(s.i===t||e[s.i]==="\r"&&s.i+1===t)&&s.col<a.item}function Aw(e){const n=[];let t=0,a=null,r=0;const s=[];let l=!1,c=!1,d=0;for(;;){let m=e.indexOf(`
|
|
55
|
-
`,r);m<0&&(m=e.length);let h=!1;if(a&&
|
|
56
|
-
`){let j=g,
|
|
57
|
-
`;){const
|
|
58
|
-
`?j+=2:j++;const _=j;for(;j<e.length&&
|
|
59
|
-
)]}*.!?,;:`.includes(e[j])){j=
|
|
60
|
-
`,g),r<0&&(r=e.length)),s!==null&&(!s||s.index<g)&&(fl.lastIndex=g,s=fl.exec(e)),g=s&&s.index<r?s.index+s[0].length:r;else{let j=g;for(;j<e.length&&!Ar.test(e[j]);)j++;let R=0;for(;g<e.length&&!Ar.test(e[g]);){const N=e[g];if((e.startsWith("**",g)||N==="]"||N==="}"||N===")"&&!R)&&j-g<=Ew)break;N==="("&&R++,N===")"&&R&&R--,g++}g-=e.slice(Math.max(d,g-4),g).match(Nw)?.[0].length??0}g=Math.min(g,p),v=Math.min(v,p);const k=Math.max(g,v);if(h&&(l=Math.max(l,k)),k-d<Iw)continue;const w=f.slice(5,Math.min(x<0?f.length:x,5+Bw)).toLowerCase();if(h){const j=Math.min(k,h.end)-d;if(m?.dataLength!==void 0&&m.start===h.start){m.dataLength+=j;continue}n.push({start:h.start,end:h.end,mime:w,dataLength:j});continue}n.push({start:d,end:g,mime:w}),v>g&&n.push({start:g,end:v,mime:"",uncertain:!0})}return n}function zw({body:e,span:n}){const[t,a]=u.useState(0),[r,s]=u.useState(!1),l=Math.ceil((n.end-n.start)/zr);return i.jsxs("details",{className:G("my-1 text-sm text-ink-muted"),onToggle:c=>s(c.currentTarget.open),children:[i.jsx("summary",{className:G("w-fit cursor-pointer"),children:n.uncertain?o("ui.ownerAudit.inspect_body"):o("ui.ownerAudit.inline_image_receipt",{mime:n.mime,count:pa(n.dataLength??n.end-n.start)})}),r&&i.jsxs(i.Fragment,{children:[i.jsx("pre",{className:G("my-1 max-h-48 overflow-auto whitespace-pre-wrap break-all rounded-md bg-sunken p-2 text-mono-sm"),children:e.slice(n.start+t*zr,Math.min(n.end,n.start+(t+1)*zr))}),i.jsxs("div",{className:G("flex items-center gap-2"),children:[i.jsx("button",{type:"button",className:G("min-h-6 rounded px-2 text-ink hover:bg-elevated focus-visible:outline focus-visible:outline-2 disabled:text-ink-dim disabled:hover:bg-transparent"),disabled:t===0,onClick:()=>a(t-1),children:o("ui.ownerAudit.previous_chunk")}),i.jsx("span",{"aria-live":"polite",children:o("ui.ownerAudit.chunk_number",{page:pa(t+1),count:pa(l)})}),i.jsx("button",{type:"button",className:G("min-h-6 rounded px-2 text-ink hover:bg-elevated focus-visible:outline focus-visible:outline-2 disabled:text-ink-dim disabled:hover:bg-transparent"),disabled:t+1>=l,onClick:()=>a(t+1),children:o("ui.ownerAudit.next_chunk")})]})]})]})}function Pw({body:e,renderText:n}){const t=u.useMemo(()=>Pc(e),[e]);if(!t.length)return i.jsx(i.Fragment,{children:n(e)});let a=0;return i.jsxs(i.Fragment,{children:[t.map(r=>{const s=e.slice(a,r.start);return a=r.end,i.jsxs("div",{children:[s&&n(s),i.jsx(zw,{body:e,span:r})]},r.start)}),a<e.length&&n(e.slice(a))]})}const Dw=mh().use(hh).use(gh);function Dr(e){const n=Dw.parse(e),t=new Map;Bo(n,"definition",r=>{const{identifier:s,url:l}=r;s!==void 0&&!t.has(s)&&t.set(s,l)});const a=[];return Bo(n,r=>{if(r.type==="link")a.push(r.url);else if(r.type==="linkReference"){const s=t.get(r.identifier);s!==void 0&&a.push(s)}}),a}function Lw(e){if(e.trim()==="")return[];const n=Pc(e);if(n.length===0)return Dr(e);const t=[];let a=0;for(const r of n){const s=e.slice(a,r.start);s&&t.push(...Dr(s)),a=r.end}return a<e.length&&t.push(...Dr(e.slice(a))),t}const Ow=3,qw=5*60*1e3,Fw=128;function $w(e){const n=e.expectedAccountId;if(typeof n!="string"||n.length===0||n.length>Dd)return{kind:"refuse",reason:"account"};const t=e.url;return typeof t!="string"||t.length===0?{kind:"refuse",reason:"url"}:t.length>Xh?{kind:"refuse",reason:"url"}:!Number.isInteger(e.index)||e.index<0||e.index>=Ld?{kind:"refuse",reason:"cap"}:{kind:"ask",request:{url:t,index:e.index,expectedAccountId:n}}}function Kw(e){return e.kind==="ready"||e.kind==="retry"}const yl=e=>typeof e=="number"&&Number.isInteger(e)&&e>0,xl=e=>e&&typeof e=="object"&&typeof e.id=="string"&&Od.test(e.id)?e:null,ua=e=>typeof e=="string"&&e.trim().length>0?e:null;function Uw(e){try{return new URL(e).hostname||null}catch{return null}}function Hw(e){const n=xl(e.image);return{url:ua(e.url)??"",siteName:ua(e.siteName),title:ua(e.title),description:ua(e.description),favicon:xl(e.favicon),image:n,imageBox:n&&yl(n.width)&&yl(n.height)?{width:n.width,height:n.height}:null}}function Dc(e){return e.siteName||Uw(e.url)||e.url||e.title||""}function Gw(e){return e.title?"":Dc(e)}function Ww(e){return!!(e.title||e.description||e.siteName||e.image||e.url)}function Vw(e){if(!e.retryable)return null;const n=e.retryAfterMs;return typeof n!="number"||!Number.isFinite(n)?{kind:"manual"}:n<=0?{kind:"after",ms:0}:n>qw?{kind:"too-far"}:{kind:"after",ms:n}}function Jw(e,n=0){switch(e.kind){case"ready":{const t=Hw(e.preview);return Ww(t)?{kind:"ready",card:t}:{kind:"absent",reason:"no-metadata"}}case"absent":return e.reason==="disabled"?{kind:"disabled"}:{kind:"absent",reason:e.reason};case"error":{const t=Vw(e);return t?t.kind==="too-far"?{kind:"silent"}:t.kind==="manual"?{kind:"retry"}:n>=Ow?{kind:"silent"}:{kind:"waiting",retryInMs:t.ms}:{kind:"silent"}}default:return{kind:"silent"}}}function Qw(e){if(e.kind==="bytes")return{kind:"served"};const{code:n,status:t}=e;switch(n){case"not-found":return{kind:"gone",status:t};case"invalid-request":return{kind:"receipt",status:t};case"account-mismatch":return{kind:"account",status:t};case"unauthorized":return{kind:"unauthorized",status:t};case"io":return t===409?{kind:"account",status:t}:t===401||t===403?{kind:"unauthorized",status:t}:{kind:"transient",status:t};default:return{kind:"transient",status:t}}}function Lc(){return window.api?.desktop?.linkPreview??null}function Yw(e){return typeof e=="string"&&e.length>0&&e.length<=Dd?e:null}function Xw({url:e,index:n,expectedAccountId:t,bridge:a}){const r=u.useMemo(()=>$w({url:e,index:n,expectedAccountId:t}),[e,n,t]),s=`${n}\0${t??""}\0${e}`,[l,c]=u.useState({kind:"silent"}),[d,m]=u.useState(0),[h,p]=u.useState(0),[g,b]=u.useState(s);g!==s&&(b(s),m(0),c({kind:"silent"})),u.useEffect(()=>{if(r.kind!=="ask")return;const x=a??Lc();if(!x)return;let v=!1,k;return(async()=>{let j;try{j=await x.resolve(r.request)}catch{v||c({kind:"silent"});return}if(v)return;const R=Jw(j,d);c(R),R.kind==="waiting"&&(k=setTimeout(()=>m(N=>N+1),R.retryInMs))})(),()=>{v=!0,k!==void 0&&clearTimeout(k)}},[r,d,h,a]);const f=u.useCallback(()=>{m(0),c({kind:"silent"}),p(x=>x+1)},[]);return{view:l,retry:f}}function vl(e,n,t){const a=e&&Od.test(e.id)?e.id:null,r=Yw(n),[s,l]=u.useState({url:null,refusal:null});return u.useEffect(()=>{if(!a||!r){l({url:null,refusal:null});return}const c=t??Lc();if(!c)return;let d=!1,m=null;return(async()=>{let p;try{p=await c.artifact({id:a,expectedAccountId:r})}catch{d||l({url:null,refusal:{kind:"transient",status:0}});return}if(d)return;const g=Qw(p);if(p.kind!=="bytes"){l({url:null,refusal:g});return}m=xi(p.data,p.mimeType),l({url:m,refusal:null})})(),()=>{d=!0,m&&bi(m)}},[a,r,t]),s}const Zw=G("relative overflow-hidden rounded-lg","has-[:focus-visible]:outline-solid has-[:focus-visible]:outline-2","has-[:focus-visible]:outline-accent has-[:focus-visible]:-outline-offset-2","has-[:focus-visible]:after:pointer-events-none has-[:focus-visible]:after:absolute","has-[:focus-visible]:after:inset-0.5 has-[:focus-visible]:after:rounded-[calc(var(--radius-lg)-2px)]","has-[:focus-visible]:after:border has-[:focus-visible]:after:border-surface","bg-sunken"),jl=G("flex min-w-0 flex-col text-inherit hover:bg-row-hover","focus-visible:outline-none"),eb="flex min-w-0 flex-col gap-1 p-3",nb="flex min-w-0 items-center gap-1.5 text-meta text-ink-muted",tb="w-full bg-media-surface object-cover";function ib(e){const n=e.imageBox;return n?{aspectRatio:`${n.width} / ${n.height}`,maxHeight:176}:{height:Fw}}const ab=({view:e,imageUrl:n,faviconUrl:t,onRetry:a})=>{if(e.kind==="retry")return i.jsxs(Y,{variant:"ghost",size:"sm",onClick:a,children:[i.jsx(ys,{"aria-hidden":"true"}),o("ui.common.actions.retry")]});if(e.kind!=="ready")return null;const r=e.card,s=Dc(r),l=i.jsxs(i.Fragment,{children:[n?i.jsx("img",{src:n,alt:Gw(r),className:tb,style:ib(r),onError:c=>{c.currentTarget.style.display="none"}},n):null,i.jsxs("div",{className:eb,children:[i.jsxs("div",{className:nb,children:[t?i.jsx("img",{src:t,alt:"",className:"size-4 shrink-0 rounded-xs object-cover"}):i.jsx(ph,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),i.jsx("span",{className:"truncate",children:s})]}),r.title?i.jsx("span",{className:"line-clamp-2 font-medium text-body-sm text-ink",children:r.title}):null,r.description?i.jsx("span",{className:"line-clamp-2 text-ink-muted text-meta",children:r.description}):null]})]});return i.jsx(rg,{variant:"plain",padding:"none",className:Zw,children:Sd.test(r.url)?i.jsx("a",{href:r.url,target:"_blank",rel:"noreferrer",title:r.url,className:jl,children:l}):i.jsx("div",{className:jl,children:l})})},rb=({url:e,index:n,expectedAccountId:t,bridge:a})=>{const{view:r,retry:s}=Xw({url:e,index:n,expectedAccountId:t,bridge:a}),l=r.kind==="ready"?r.card:null,c=vl(l?.image??null,t,a),d=vl(l?.favicon??null,t,a);return Kw(r)?i.jsx(ab,{view:r,imageUrl:c.url,faviconUrl:d.url,onRetry:s}):null},sb=({body:e,expectedAccountId:n,bridge:t})=>{const a=u.useMemo(()=>Lw(e).slice(0,Ld).map((r,s)=>({url:r,index:s})).filter(({url:r})=>Sd.test(r)),[e]);return a.length===0?null:i.jsx("div",{"data-link-previews":"",className:"mt-1.5 flex max-w-sm flex-col gap-1.5 empty:hidden",children:a.map(({url:r,index:s})=>i.jsx(rb,{url:r,index:s,expectedAccountId:n,bridge:t},`${s}\0${r}`))})};function ob(e){const n=js();return u.useMemo(()=>{if(n)return fh({body:e.body,mentions:e.mentions,candidates:n.candidates,self:n.self})?.runs},[n,e.body,e.mentions])}const lb=["manipulation","personal_info","abusive","unsafe_content","out_of_scope"],db=["screening_unavailable","awaiting_review","delivery_pending"],cb=e=>lb.includes(e),ub=e=>db.includes(e);function mb(e,n={}){if(!e||e.length===0)return[];const t=n.origin==="human"&&n.sender?.kind==="human"&&n.sender.audit_unknown_kind!==!0,a=[],r=new Set;for(const s of e){if(r.has(s.endpoint_id))continue;const l=s.recipient_label.trim(),c=s.recipient_owner_label.trim(),d=`${s.state}:${s.endpoint_id}`;if(s.state==="refused")r.add(s.endpoint_id),a.push({kind:"refused",key:d,agent:l,owner:c,refusalClass:t&&cb(s.refusal_class)?s.refusal_class:null});else if(s.state==="held"){r.add(s.endpoint_id);const m=ub(s.hold_class)?s.hold_class:null;a.push(m==="delivery_pending"?{kind:"pending",key:d,agent:l,owner:c}:{kind:"held",key:d,agent:l,owner:c,holdReason:m})}}return a}const hb=({message:e})=>{const n=mb(e.delivery_states,e);return n.length===0?null:i.jsx("ul",{className:"m-0 mt-0.5 flex min-w-0 list-none flex-col gap-1 p-0 text-[12px] text-ink-muted [overflow-wrap:anywhere]",children:n.map(t=>i.jsx("li",{children:i.jsx(bb,{line:t})},t.key))})},gb=({text:e})=>{const[n,t]=u.useState(!1);return i.jsx(sg,{children:i.jsxs(og,{open:n,onOpenChange:t,children:[i.jsx(lg,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":o("ui.teamBridge.delivery.info_label"),onPointerDown:a=>a.preventDefault(),onClick:a=>{a.preventDefault(),t(!0)},className:"inline-flex translate-y-px items-center rounded-sm align-baseline text-ink-dim hover:text-ink-muted focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-focus",children:i.jsx(dg,{size:12,"aria-hidden":"true"})})}),i.jsx(cg,{children:i.jsx(ug,{side:"top",align:"center",children:e})})]})})},pb={named:(e,n)=>o("ui.teamBridge.chief.label",{agent:e,person:n}),unnamed:e=>o("ui.teamBridge.delivery.recipient_unnamed",{person:e})},fb=new Intl.Segmenter(void 0,{granularity:"grapheme"}),kb=/[。、,.:;!?)」』】》〉〕]}]/u;function wb(e){let n="";for(const{segment:t}of fb.segment(e))n=t;return[e.slice(0,e.length-n.length),n]}const bb=({line:e})=>{const n=yb(e);if(e.kind==="pending")return i.jsx(i.Fragment,{children:n});const[t,a]=wb(n),r=kb.test(a)?"":" ";return i.jsxs(i.Fragment,{children:[t,i.jsxs("span",{className:"whitespace-nowrap",children:[a,r,i.jsx(gb,{text:e.kind==="refused"?o("ui.teamBridge.delivery.info_refused"):o("ui.teamBridge.delivery.info_held")})]})]})};function yb(e){const n={recipient:kh({label:e.agent,ownerLabel:e.owner},pb)??o("ui.teamBridge.sender.unknown_agent")};if(e.kind==="pending")return o("ui.teamBridge.delivery.pending",n);if(e.kind==="held")switch(e.holdReason){case"screening_unavailable":return o("ui.teamBridge.delivery.held_screening_unavailable",n);case"awaiting_review":return o("ui.teamBridge.delivery.held_awaiting_review",n);default:return o("ui.teamBridge.delivery.held",n)}switch(e.refusalClass){case"manipulation":return o("ui.teamBridge.delivery.refused_manipulation",n);case"personal_info":return o("ui.teamBridge.delivery.refused_personal_info",n);case"abusive":return o("ui.teamBridge.delivery.refused_abusive",n);case"unsafe_content":return o("ui.teamBridge.delivery.refused_unsafe_content",n);case"out_of_scope":return o("ui.teamBridge.delivery.refused_out_of_scope",n);default:return o("ui.teamBridge.delivery.refused",n)}}const xb=_s.groups,vi=_s.entries.map(([e,n,t,a])=>({emoji:e,name:n,group:t,keywords:a})),vb=["👍","❤️","😂","🎉","👀","🙏","✅","🔥"],jb=/\s+/,Oc=e=>Array.from(e).filter(n=>{const t=n.codePointAt(0)??0;return!(t>=127995&&t<=127999)&&t!==65039}).join(""),_b=30*864e5,Ui=(e,n)=>e.score*2**(-Math.max(0,n-e.at)/_b);function Nb(e,n,t){const a={...e,[n]:{score:(e[n]?Ui(e[n],t):0)+1,at:t}};return Object.fromEntries(Object.entries(a).sort((r,s)=>Ui(s[1],t)-Ui(r[1],t)).slice(0,200))}function Bb(e,n){const t=Object.entries(e).sort((a,r)=>Ui(r[1],n)-Ui(a[1],n)||r[1].at-a[1].at).map(([a])=>a);return[...new Set([...t,...vb])].slice(0,8)}function Sb(e,n){const t=e.toLocaleLowerCase().trim().split(jb).filter(Boolean);return vi.filter(a=>(n===null||a.group===n)&&t.every(r=>`${a.name} ${a.keywords.join(" ")} ${a.emoji}`.toLocaleLowerCase().includes(r)))}function Eb(e,n){return e.find(a=>a.emoji===n)?e.flatMap(a=>a.emoji!==n?[a]:a.reacted_by_me?a.count===1?[]:[{...a,count:a.count-1,reacted_by_me:!1}]:[{...a,count:a.count+1,reacted_by_me:!0}]):[...e,{emoji:n,count:1,reacted_by_me:!0,sample_labels:[]}]}const Ts=e=>Array.from(e).filter(n=>{const t=n.codePointAt(0)??0;return t>=127995&&t<=127999}),Ib=new Set(vi.flatMap(({emoji:e})=>{const n=Array.from(e);return n.length===2&&Ts(e).length===1?[n[0]]:[]})),ts=new Map;for(const e of vi){const n=Ts(e.emoji);if(n.length!==1)continue;const t=Oc(e.emoji),a=ts.get(t)??new Map;a.set(n[0],[...a.get(n[0])??[],e.emoji]),ts.set(t,a)}function Rb(e,n){if(!n||Ts(e).length||e.includes("")&&Array.from(e).filter(s=>Ib.has(s)).length>1)return e;const t=Oc(e),a=String.fromCodePoint(127994+n),r=ts.get(t)?.get(a)??[];return r.length===1?r[0]:e}const oi=40,qc=28,_l=new Map;let Li=0,rn;function Cb(e,n,t){if(t<=0||t>qc*1.5||e.length!==n.length)return!1;let a=!1;for(let r=0;r<e.length;r++){if(e[r]!==n[r])return!1;r%4===3&&e[r]!==0&&(a=!0)}return a}function Dt(e){const n=_l.get(e);if(n!==void 0)return n;if(rn===void 0)try{const a=document.createElement("canvas");a.width=oi,a.height=oi,rn=a.getContext("2d",{willReadFrequently:!0}),rn&&(rn.font=`${qc}px "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif`,rn.textBaseline="top")}catch{rn=null}let t=!1;if(rn)try{const a=l=>(rn?.clearRect(0,0,oi,oi),rn?(rn.fillStyle=l,rn.fillText(e,2,2),rn.getImageData(0,0,oi,oi).data):new Uint8ClampedArray),r=a("#fff"),s=a("#000");t=Cb(r,s,rn.measureText(e).width)}catch{t=!1}return _l.set(e,t),t}function Tb(e,n=8){if(Li>=e.length)return()=>{};let t,a=!1;const r=()=>{if(a)return;const s=performance.now()+n;for(;Li<e.length&&performance.now()<s;)Dt(e[Li]),Li++;Li<e.length&&(t=setTimeout(r,0))};return t=setTimeout(r,0),()=>{a=!0,t!==void 0&&clearTimeout(t)}}const Nl=Intl.ListFormat;function Bl(e,n){return Nl?new Nl(n,{style:"long",type:"conjunction"}).format(e):e.join(", ")}function Sl(e,n,t){if(e.ownerAddedAgent)return o("ui.teamBridge.events.owner_added_agent",{actor:t,targets:n});switch(e.kind){case"invited":return o("ui.teamBridge.events.invited",{actor:t,targets:n});case"joined":return o("ui.teamBridge.events.joined",{targets:n});case"left":return o("ui.teamBridge.events.left",{targets:n});case"removed":return o("ui.teamBridge.events.removed",{actor:t,targets:n});case"consented":return o("ui.teamBridge.events.consented",{actor:t,targets:n});case"declined":return e.selfOnly?o("ui.teamBridge.events.declined_self",{actor:t}):o("ui.teamBridge.events.declined",{actor:t,targets:n});case"withdrawn":return o("ui.teamBridge.events.withdrawn",{actor:t,targets:n});default:return o("ui.teamBridge.events.unknown")}}function Mb(e,n,t){const a=e.targets.map(n),r=n(e.actor),s=a.length>wo,l=Sl(e,Bl(a,t),r);if(!s)return{shown:l,full:l,truncated:s};const c=a.slice(0,wo),d=o("ui.teamBridge.events.others",{count:a.length-c.length});return{shown:Sl(e,Bl([...c,d],t),r),full:l,truncated:s}}const Ab={invited:pi,joined:pi,consented:pi,left:da,removed:da,declined:da,withdrawn:da},zb=({line:e,labelFor:n,locale:t})=>{const{shown:a,full:r,truncated:s}=Mb(e,n,t),l=e.kind?Ab[e.kind]:mt,c=new Date(e.at),d=!Number.isNaN(c.getTime()),m=d?Ua(c,{hour:"numeric",minute:"2-digit"},t):"",h=d?Ha(c,{dateStyle:"full",timeStyle:"short"},t):"",p=i.jsx("span",{tabIndex:s?0:void 0,"aria-label":s?r:void 0,className:G("min-w-0 truncate",s&&"cursor-default rounded-sm underline decoration-dotted underline-offset-2 focus-visible:outline-2 focus-visible:outline-offset-2"),children:a});return i.jsxs("li",{"data-team-bridge-event":e.key,className:"group/event flex w-full min-w-0 items-center gap-3 px-5 py-1 text-ink-dim text-meta",children:[i.jsx("span",{"aria-hidden":"true",className:"flex w-9 shrink-0 justify-end",children:i.jsx(l,{className:"size-3.5"})}),s?i.jsx(Vi,{content:i.jsx("ul",{children:e.targets.map(g=>i.jsx("li",{children:n(g)},`${g.kind}:${g.account_id}:${g.endpoint_id??""}`))}),side:"top",align:"start",children:p}):p,d&&i.jsx("time",{dateTime:e.at,title:h,className:"shrink-0 text-meta-sm opacity-0 group-focus-within/event:opacity-100 group-hover/event:opacity-100",children:m})]})},Pb=({events:e,labelFor:n,locale:t})=>!e||e.length===0?null:i.jsx(i.Fragment,{children:Ou(e).map(a=>i.jsx(zb,{line:a,labelFor:n,locale:t},a.key))});function Db(e,n=qu){return n?e==="enabled":!1}const is=bs()(Pd(e=>({accounts:{},record:(n,t)=>e(a=>{const r=a.accounts[n]??{usage:{},tone:0};return{accounts:{...a.accounts,[n]:{...r,usage:Nb(r.usage,t,Date.now())}}}}),setTone:(n,t)=>e(a=>({accounts:{...a.accounts,[n]:{usage:a.accounts[n]?.usage??{},tone:t}}}))}),{name:"team-bridge-reaction-preferences",partialize:e=>({accounts:e.accounts})})),$n=8,li=36,ma=252,El=160,Lb=8,Ob=["😀","👋","🐻","🍎","🌍","⚽","💡","🔣","🏳️"],Il=["ui.teamBridge.reactions.category0","ui.teamBridge.reactions.category1","ui.teamBridge.reactions.category2","ui.teamBridge.reactions.category3","ui.teamBridge.reactions.category4","ui.teamBridge.reactions.category5","ui.teamBridge.reactions.category6","ui.teamBridge.reactions.category7","ui.teamBridge.reactions.category8"];function Lr(e,n){const t=Rb(e,n);return Dt(t)?t:e}function qb(e){return i.jsx(Fb,{...e})}function Fb({accountId:e,onSelect:n,onClose:t,disabled:a=!1,initialQuery:r=""}){const s=u.useId(),l=is(I=>I.accounts[e]),c=is(I=>I.setTone),[d,m]=u.useState(r),[h,p]=u.useState(null),[g,b]=u.useState(0),[f,x]=u.useState(0),v=u.useRef(null),k=u.useRef(null),w=u.useMemo(()=>Sb(d,h),[d,h]),[j,R]=u.useState({candidates:w,upTo:El}),N=j.candidates===w?Math.min(j.upTo,w.length):Math.min(El,w.length),_=N<w.length;u.useEffect(()=>{if(!_)return;const I=setTimeout(()=>{const V=performance.now()+Lb;let U=N;for(;U<w.length&&performance.now()<V;)Dt(w[U].emoji),U++;R({candidates:w,upTo:U})},0);return()=>clearTimeout(I)},[w,N,_]);const S=u.useMemo(()=>w.slice(0,N).filter(I=>Dt(I.emoji)),[w,N]),C=Bb(l?.usage??{},Date.now()).filter(Dt),T=l?.tone??0,ee=I=>{a||(n(Lr(I,T)),t())},O=()=>{b(0),x(0),v.current&&(v.current.scrollTop=0)},q=Math.max(0,Math.floor(f/li)-1),K=Math.min(Math.ceil(S.length/$n),q+Math.ceil(ma/li)+3);return i.jsxs("div",{className:"flex min-h-0 w-80 max-w-[calc(100vw-32px)] flex-col gap-2",style:{maxHeight:"calc(var(--radix-popover-content-available-height, 560px) - 24px)"},"aria-busy":a,children:[i.jsx("input",{"aria-label":o("ui.teamBridge.reactions.search"),placeholder:o("ui.teamBridge.reactions.search"),className:"h-9 w-full rounded-md border border-control bg-surface px-3 text-ink outline-offset-0 shrink-0",value:d,onChange:I=>{m(I.target.value),p(null),O()},onKeyDown:I=>{I.key==="ArrowDown"&&(I.preventDefault(),k.current?.querySelector(`button[data-index="${g}"]`)?.focus())}}),i.jsxs("fieldset",{className:"flex shrink-0 items-center justify-between gap-1",children:[i.jsx("legend",{className:"sr-only",children:o("ui.teamBridge.reactions.categories")}),i.jsx("button",{type:"button","aria-pressed":h===null,"aria-label":o("ui.teamBridge.reactions.all"),className:"flex min-h-8 min-w-6 items-center justify-center rounded px-1.5 py-1 hover:bg-row-hover aria-pressed:bg-accent-wash",onClick:()=>{p(null),O()},children:i.jsx(Dg,{size:16})}),xb.map((I,V)=>i.jsx("button",{type:"button","aria-pressed":h===V,title:o(Il[V]),"aria-label":o(Il[V]),className:"min-h-8 min-w-6 rounded px-1 py-1 hover:bg-row-hover aria-pressed:bg-accent-wash",onClick:()=>{p(V),O()},children:Ob[V]},I))]}),i.jsxs("div",{className:"flex items-center justify-between gap-2",children:[i.jsx("span",{className:"text-[12px] text-ink-muted",children:o("ui.teamBridge.reactions.frequent")}),i.jsxs("select",{"aria-label":o("ui.teamBridge.reactions.tone"),value:T,onChange:I=>c(e,Number(I.target.value)),className:"h-7 rounded border border-control bg-surface text-[12px] text-ink",children:[i.jsx("option",{value:0,children:o("ui.teamBridge.reactions.toneDefault")}),[1,2,3,4,5].map(I=>i.jsx("option",{value:I,children:String.fromCodePoint(128077,127994+I)},I))]})]}),i.jsx("div",{className:"grid grid-cols-8","aria-label":o("ui.teamBridge.reactions.frequent"),children:C.map(I=>i.jsx("button",{type:"button",title:vi.find(V=>V.emoji===I)?.name??I,className:"h-9 rounded text-[22px] hover:bg-row-hover",disabled:a,onClick:()=>ee(I),children:Lr(I,T)},I))}),i.jsx("div",{ref:v,className:"min-h-0 flex-shrink overflow-y-auto rounded bg-surface",style:{height:ma},onScroll:I=>x(I.currentTarget.scrollTop),children:!S.length&&!_?i.jsx("p",{className:"p-4 text-ink-muted",children:o("ui.teamBridge.reactions.noResults")}):i.jsx("table",{ref:k,"aria-label":o("ui.teamBridge.reactions.choose"),"aria-rowcount":Math.ceil(S.length/$n),"aria-colcount":$n,className:"relative block w-full",style:{height:Math.ceil(S.length/$n)*li},onKeyDown:I=>{const V={ArrowRight:1,ArrowLeft:-1,ArrowDown:$n,ArrowUp:-8}[I.key];if(V!==void 0){I.preventDefault();const U=Math.max(0,Math.min(S.length-1,g+V));b(U),requestAnimationFrame(()=>k.current?.querySelector(`button[data-index="${U}"]`)?.focus());const z=Math.floor(U/$n)*li;v.current&&(z<f||z>=f+ma)&&(v.current.scrollTop=Math.max(0,z-ma/2))}else(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),ee(S[g].emoji))},children:i.jsx("tbody",{className:"block",children:Array.from({length:Math.max(0,K-q)},(I,V)=>{const U=q+V;return i.jsx("tr",{"aria-rowindex":U+1,className:"absolute inset-x-0 grid grid-cols-8",style:{top:U*li,height:li},children:S.slice(U*$n,(U+1)*$n).map((z,B)=>{const F=U*$n+B;return i.jsx("td",{id:`${s}-${F}`,"data-active":g===F,"aria-colindex":B+1,children:i.jsx("button",{tabIndex:g===F?0:-1,"data-index":F,type:"button","aria-label":z.name,title:z.name,className:g===F?"h-9 w-full rounded bg-accent-wash text-[22px]":"h-9 w-full rounded text-[22px] hover:bg-row-hover",onMouseEnter:()=>b(F),disabled:a,onClick:()=>ee(z.emoji),children:Lr(z.emoji,T)})},z.emoji)})},U)})})})}),i.jsxs("p",{className:"flex min-h-5 shrink-0 items-center gap-2 truncate text-[12px] text-ink-muted","aria-live":"polite",children:[a&&i.jsx(Ze,{size:"xs"}),S[g]?.name??" "]})]})}const Rl=new Map(vi.map(({emoji:e,name:n})=>[e,n])),$b=[];function Kb({conversationId:e,messageId:n,accountId:t,tenantId:a,reactions:r=$b,disabled:s=!1,toggle:l=Je.react}){const[d,m]=u.useState(r),[h,p]=u.useState(!1),[g,b]=u.useState(null),[f,x]=u.useState(!1),v=u.useRef(!1),k=is(j=>j.record);return u.useEffect(()=>{v.current||m(r)},[r,!1]),{accountId:t,rows:d,pending:h,pendingEmoji:g,error:f,disabled:s||!1,unavailable:s||h,choose:async j=>{if(v.current||s)return;const R=d,N=!d.some(_=>_.emoji===j&&_.reacted_by_me);v.current=!0,p(!0),b(j),x(!1),m(Eb(d,j));try{const _=await l(e,n,j,N,a,t);m(_.reactions),N&&k(t,j)}catch{m(R),x(!0)}finally{v.current=!1,p(!1),b(null)}}}}function Fc(e){return i.jsx(Ub,{...e})}function Ub({state:e,open:n,onOpenChange:t,children:a}){return i.jsxs(Fd,{open:n,onOpenChange:t,children:[i.jsx($d,{asChild:!0,children:a}),i.jsx(Kd,{className:"max-h-[var(--radix-popover-content-available-height)] w-auto overflow-y-auto p-3",align:"start",side:"top",collisionPadding:8,avoidCollisions:!0,children:i.jsx(qb,{disabled:e.unavailable,accountId:e.accountId,onSelect:r=>void e.choose(r),onClose:()=>t(!1)})})]})}function Hb(e){return i.jsx(Gb,{...e})}function Gb({state:e,defaultOpen:n=!1}){const t=u.useId(),a=ge(),[r,s]=u.useState(n),{rows:l,error:c,pending:d,pendingEmoji:m,unavailable:h}=e;if(!l.length&&!c)return null;const p=g=>Wb(g,a);return i.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-1","aria-busy":d,"data-reaction-layout":"chips",children:[l.map((g,b)=>i.jsx(Vi,{content:p(g),className:"text-balance",children:i.jsxs("button",{type:"button",disabled:h,"aria-pressed":g.reacted_by_me,"data-reaction-pill":"","aria-label":`${Rl.get(g.emoji)??g.emoji} ${new Intl.NumberFormat(a).format(g.count)}`,"aria-describedby":g.sample_labels.length?`${t}-${b}`:void 0,onClick:()=>void e.choose(g.emoji),className:G("inline-flex h-6 shrink-0 items-center gap-1 rounded-full px-2 text-[12px] leading-none transition-colors duration-fast ease-out-quart disabled:text-ink-dim",g.reacted_by_me?"bg-accent-wash font-semibold text-accent hover:text-accent-hover":"bg-elevated text-ink-muted hover:bg-sunken hover:text-ink"),children:[i.jsx("span",{className:Dt(g.emoji)?"text-[16px] leading-none":"max-w-40 truncate",children:Dt(g.emoji)?g.emoji:Rl.get(g.emoji)??`U+${g.emoji.codePointAt(0)?.toString(16).toUpperCase()}`}),i.jsxs("span",{className:"relative inline-flex items-center tabular-nums",children:[i.jsx("span",{className:G(d&&m===g.emoji&&"invisible"),children:new Intl.NumberFormat(a).format(g.count)}),d&&m===g.emoji&&i.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:i.jsx(Ze,{size:"xs"})})]}),i.jsx("span",{id:`${t}-${b}`,className:"sr-only",children:p(g)})]},g.emoji)},g.emoji)),!e.disabled&&l.length>0&&i.jsx(Fc,{state:e,open:r,onOpenChange:s,children:i.jsx("button",{type:"button",disabled:h,"aria-label":o("ui.teamBridge.reactions.add"),"data-reaction-add":"",className:G("inline-flex size-6 shrink-0 items-center justify-center rounded-full bg-transparent text-ink-dim","transition-[opacity,color,background-color] duration-fast ease-out-quart","hover:bg-elevated hover:text-ink disabled:text-ink-dim",r?"opacity-100":"pointer-events-none opacity-0 focus-visible:pointer-events-auto focus-visible:opacity-100 group-hover/message:pointer-events-auto group-hover/message:opacity-100 group-focus-within/message:pointer-events-auto group-focus-within/message:opacity-100 [@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100"),children:i.jsx(xa,{size:14,"aria-hidden":"true"})})}),c&&i.jsx("span",{role:"alert",className:"text-[12px] text-danger",children:o("ui.teamBridge.reactions.failed")})]})}const Cl=Intl.ListFormat;function Wb(e,n){const t=e.sample_labels,a=e.count-t.length;return t.length?a<=0?new Cl(n,{style:"narrow",type:"conjunction"}).format(t):new Cl(n,{style:"long",type:"conjunction"}).format([...t,o("ui.teamBridge.reactions.others",{others:a})]):a>0?o("ui.teamBridge.reactions.others",{others:a}):""}function Vb({reactions:e,onReply:n,forceVisible:t=!1}){const[a,r]=u.useState(!1),[s,l]=u.useState(0),c=u.useRef(null),[d,m]=u.useState(null),[h,p]=u.useState(null);u.useEffect(()=>{const R=d?.closest("[data-message-id]");if(!R)return;const N=()=>{let _=R.parentElement;for(;_&&!_.hasAttribute("data-radix-scroll-area-viewport");){const{overflowY:T}=getComputedStyle(_);if(T==="auto"||T==="scroll")break;_=_.parentElement}const S=_?_.getBoundingClientRect().top:0,C=R.getBoundingClientRect().top;p(C-S<16?Math.max(4,S-C+4):null)};return R.addEventListener("pointerenter",N),R.addEventListener("focusin",N),()=>{R.removeEventListener("pointerenter",N),R.removeEventListener("focusin",N)}},[d]);const g=e!==void 0&&!e.disabled,b=n,f=(g?1:0)+(b?1:0);let x=Math.min(s,Math.max(0,f-1));x===0&&g&&e.unavailable&&f>1&&(x=1);const v=()=>Array.from(c.current?.querySelectorAll("[data-toolbar-item]")??[]),k=R=>{if(!["ArrowLeft","ArrowRight","Home","End"].includes(R.key)||R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;const N=v(),_=N.indexOf(document.activeElement);if(_<0)return;const S=c.current!==null&&getComputedStyle(c.current).direction==="rtl",C=R.key==="ArrowRight"!==S,T=R.key==="Home"?0:R.key==="End"?N.length-1:Math.max(0,Math.min(N.length-1,_+(C?1:-1)));R.preventDefault(),N[T]?.focus()};if(!g&&!b)return null;let w=0;const j=()=>{const R=w++;return{"data-toolbar-item":"",tabIndex:R===x?0:-1,onFocus:()=>l(R)}};return i.jsx("div",{ref:m,"data-message-toolbar":"","data-tucked":h!==null||void 0,style:h!==null?{top:h}:void 0,className:G("pointer-events-none absolute end-4 z-10 flex",h===null&&"-top-4"),children:i.jsxs("div",{ref:c,role:"toolbar","data-glass-plane":"floating","aria-label":o("ui.teamBridge.actions.label"),"aria-orientation":"horizontal",onKeyDown:k,"data-lo-floating":"",className:G("flex h-8 items-center gap-0.5 rounded-sm bg-floating p-0.5 shadow-overlay","transition-opacity duration-fast ease-out-quart",t||a?"pointer-events-auto opacity-100":"pointer-events-none opacity-0 group-focus-within/message:pointer-events-auto group-focus-within/message:opacity-100 group-hover/message:pointer-events-auto group-hover/message:opacity-100"),children:[g&&e&&i.jsx(Fc,{state:e,open:a,onOpenChange:r,children:i.jsx(Tl,{...j(),label:o("ui.teamBridge.reactions.add"),disabled:e.unavailable,children:i.jsx(Fg,{"aria-hidden":"true"})})}),b&&i.jsx(Tl,{...j(),label:o("ui.teamBridge.replies.action"),onClick:b,children:i.jsx(hd,{"aria-hidden":"true"})})]})})}const Tl=u.forwardRef(function({label:n,children:t,...a},r){return i.jsx(Vi,{content:n,children:i.jsx(Y,{ref:r,type:"button",variant:"ghost",size:"icon-sm","aria-label":n,...a,children:t})})}),Jb=3;function $c(e){return{count:e.reply_count??0,participants:Qb(e),lastReply:e.last_reply_at&&Number.isFinite(Date.parse(e.last_reply_at))?new Date(e.last_reply_at):null,unread:e.thread_unread_count}}function Qb(e){const n=e.reply_participant_ids??[];return(e.reply_participants??[]).slice(0,Jb).map((t,a)=>{const r=n[a]??void 0;return r?{label:t,accountId:r.account_id,kind:r.kind}:{label:t}})}function Yb(e,n=new Date){if(e.toDateString()===n.toDateString())return"today";const t=new Date(n);return t.setDate(n.getDate()-1),e.toDateString()===t.toDateString()?"yesterday":"older"}const Ml="h-8",Xb="[--thread-row-ring:var(--thread-row-host,var(--color-canvas))] group-hover/message:[--thread-row-ring:var(--thread-row-message-hover,var(--color-surface))] hover:[--thread-row-ring:var(--color-sunken)] group-hover/message:hover:[--thread-row-ring:var(--color-sunken)]",Zb=["z-[3]","z-[2]","z-[1]"],ey=20;function ny({message:e,onOpen:n,profileFor:t,locale:a,now:r,className:s}){const l=$c(e);if(l.count<=0)return null;const c=l.unread??0,d=l.lastReply?ty(l.lastReply,a,r):null,m=o("ui.teamBridge.replies.count",{count:l.count}),h=o("ui.teamBridge.threadRow.label",{count:l.count,unread:c,last:d?.full??"",hasLast:d?"yes":"no"});return i.jsxs("button",{type:"button",onClick:n,"aria-label":h,"data-thread-row":"","data-thread-row-height":Ml,"data-unread":c>0?String(c):void 0,className:G("group/thread-row @container/thread-row mt-1 flex w-full min-w-0 items-center gap-2 rounded-md px-2 text-start text-[13px] transition-colors duration-fast ease-out-quart hover:bg-sunken",Ml,Xb,s),children:[i.jsx(iy,{participants:l.participants,profileFor:t}),i.jsx("span",{"aria-hidden":"true",className:G("shrink-0 text-accent",c>0&&"font-semibold"),children:m}),d&&i.jsxs(i.Fragment,{children:[i.jsx("span",{"aria-hidden":"true","data-thread-row-last":"full",className:"hidden min-w-0 truncate text-ink-muted @[420px]/thread-row:inline",children:d.full}),i.jsx("span",{"aria-hidden":"true","data-thread-row-last":"short",className:"min-w-0 truncate text-ink-muted @[420px]/thread-row:hidden",children:d.short})]}),i.jsx(Gi,{"aria-hidden":"true",count:c,format:p=>o("ui.teamBridge.threadRow.unread_badge",{count:c,label:p}),className:"shrink-0"}),i.jsx(Hd,{"aria-hidden":"true",size:16,className:"ml-auto shrink-0 text-ink-dim transition-colors duration-fast group-hover/thread-row:text-ink rtl:rotate-180"})]})}function ty(e,n,t=new Date){const a=Yb(e,t),r=a==="older"?Ha(e,e.getFullYear()===t.getFullYear()?{month:"short",day:"numeric"}:{month:"short",day:"numeric",year:"numeric"},n):Ua(e,{hour:"numeric",minute:"2-digit"},n);return{full:o("ui.teamBridge.threadRow.last",{when:a,time:r}),short:a==="yesterday"?o("ui.common.time.yesterday_at",{time:r}):r}}function iy({participants:e,profileFor:n}){return e.length===0?null:i.jsx("span",{"aria-hidden":"true",className:"flex shrink-0 -space-x-1.5",children:e.map((t,a)=>{const r=t.kind??"human",l=(t.accountId&&n?.({account_id:t.accountId,kind:r,display_label:t.label})||void 0)??(r==="agent"&&t.accountId?{account_id:t.accountId,display_label:t.label,role:"member",bridge_enabled:!1,bridge_state:"none"}:void 0),c=G("relative rounded-full text-[10px] ring-2 ring-[var(--thread-row-ring)]",Zb[a]),d=`${a}:${t.accountId??t.label}`;return l?i.jsx(kn,{member:l,kind:r,label:t.label,size:ey,fallback:ja(t.label),className:c},d):i.jsx("span",{"data-thread-face":"initial",className:G("inline-flex size-5 shrink-0 items-center justify-center bg-media-surface font-medium text-ink-muted",c),children:ja(t.label)},d)})})}const ay=6,ry=40,sy=44,oy=96,ly=1,dy=12;function cy(e,n){return e.type==="day"?`day:${e.key}`:`msg:${n??e.message.id}`}function uy(e){return e.type==="day"?ry:e.continuation?sy:oy}function my(e,n){const t=[],a=[],r=[];let s=0;for(const l of e){const c=n.get(l.key)??uy(l.item);t.push(l.key),a.push(s),r.push(c),s+=c}return{keys:t,offsets:a,heights:r,total:s}}function Wa(e,n){const t=e.offsets.length;if(t===0)return 0;let a=0,r=t-1,s=t-1;for(;a<=r;){const l=a+r>>1;e.offsets[l]+e.heights[l]>n?(s=l,r=l-1):a=l+1}return s}function hy(e,n,t,a=ay){const r=e.offsets.length;if(r===0)return{start:0,end:0};const s=Wa(e,n);let l=s;const c=n+Math.max(t,0);for(;l+1<r&&e.offsets[l+1]<c;)l+=1;return{start:Math.max(0,s-a),end:Math.min(r,l+a+1)}}function gy(e,n){const t=n.start>0?e.offsets[n.start]:0,a=n.end<e.keys.length?e.total-(e.offsets[n.end]??e.total):0;return{before:Math.max(0,t),after:Math.max(0,a)}}function py(e,n){if(e.keys.length===0)return null;const t=Wa(e,n),a=e.keys[t];return a===void 0?null:{key:a,offset:e.offsets[t]}}function fy(e,n){if(e===null)return null;const t=n.keys.indexOf(e.key);return t===-1?null:n.offsets[t]-e.offset}function ky({scrollTop:e,viewportHeight:n,firstVisible:t,hasOlder:a,loading:r}){return!a||r?!1:t<=dy?!0:e<=n*ly}const wy=8,by=24;function yy(e,n,t,a=by){const r=-(a+wy);if(e.length===0||n.keys.length===0)return null;const s=Math.min(Wa(n,t),e.length-1);for(let l=s;l>=0;l-=1){const c=e[l];if(c.item.type==="day")return{day:c.item,key:c.key,hidden:n.offsets[l]-t>r}}return null}const xy="[data-radix-scroll-area-viewport]",vy="[data-window-item]",jy="[data-window-spacer='after']";function _y({entries:e,listRef:n,scrollRootRef:t,resetKey:a,hasOlder:r,loadingOlder:s,onLoadOlder:l,enabled:c=!0}){const d=c&&t!==void 0,m=u.useRef(new Map),h=u.useRef(null),p=u.useRef(null),[g,b]=u.useState(0),[f,x]=u.useState({top:0,height:0}),v=u.useRef({top:0,height:0}),k=u.useCallback((z,B)=>{v.current.top===z&&v.current.height===B||(v.current={top:z,height:B},x({top:z,height:B}))},[]),w=u.useRef(null),j=u.useRef(!1),R=u.useRef(-1),[N,_]=u.useState(a);N!==a&&(_(a),m.current=new Map,h.current=null,p.current=null,j.current=!1,R.current=-1);const S=u.useMemo(()=>e.map(z=>z.key).join("|"),[e]),C=u.useMemo(()=>my(e,m.current),[S,g]),T=d?hy(C,f.height===0?C.total:f.top,f.height):{start:0,end:e.length},ee=d?gy(C,T):{before:0,after:0},O=u.useRef(C);O.current=C;const q=u.useRef(l);q.current=l;const K=u.useRef(r);K.current=r;const I=u.useRef(s);I.current=s,u.useEffect(()=>{if(!d)return;const z=t?.current?.querySelector(xy)??null;if(w.current=z,z===null)return;k(z.scrollTop,z.clientHeight);let B=0;const F=()=>{j.current=!0,B===0&&(B=requestAnimationFrame(()=>{B=0;const D=z.scrollTop,J=z.clientHeight;k(D,J),h.current=Al(z,O.current,D);const L=q.current;L!==void 0&&ky({scrollTop:D,viewportHeight:J,firstVisible:Wa(O.current,D),hasOlder:K.current,loading:I.current})&&L()}))};z.addEventListener("scroll",F,{passive:!0});const A=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>k(z.scrollTop,z.clientHeight));return A?.observe(z),()=>{z.removeEventListener("scroll",F),A?.disconnect(),B!==0&&cancelAnimationFrame(B)}},[d,k,t,a]);const V=u.useCallback(()=>{const z=n.current;if(z===null)return;const B=z.querySelector(jy);if(B===null)return;const F=[];for(const J of z.querySelectorAll(vy))F.at(-1)?.dataset.windowItem!==J.dataset.windowItem&&F.push(J);const A=B.getBoundingClientRect().top;let D=!1;for(let J=0;J<F.length;J+=1){const L=F[J].dataset.windowItem;if(L===void 0)continue;const $=F[J].getBoundingClientRect().top,le=F[J+1]?.getBoundingClientRect().top??A,fe=Math.round(le-$);if(fe<=0)continue;const de=m.current.get(L);de!==void 0&&Math.abs(de-fe)<1||(m.current.set(L,fe),D=!0)}D&&b(J=>J+1)},[n]);u.useLayoutEffect(()=>{d&&V()},[d,V,S,T.start,T.end]),u.useEffect(()=>{if(!d)return;const z=n.current;if(z===null||typeof ResizeObserver>"u")return;const B=new ResizeObserver(()=>V());return B.observe(z),()=>B.disconnect()},[d,n,V]),u.useLayoutEffect(()=>{const z=p.current;p.current=C;const B=w.current;if(!d||B===null||T.end-T.start===0)return;const F=Math.max(0,B.scrollHeight-B.clientHeight);if(!j.current&&R.current!==e.length){if(R.current=e.length,T.end!==e.length||B.scrollTop===F)return;B.scrollTop=F,k(B.scrollTop,B.clientHeight);return}if(z===null||h.current===null)return;const A=h.current.atBottom?F:By(B,C,h.current,F);if(A===null){h.current=null;return}A!==B.scrollTop&&(B.scrollTop=A,k(B.scrollTop,B.clientHeight),h.current=Al(B,C,B.scrollTop))},[d,k,e.length,C,T.start,T.end]);const U=d?yy(e,C,f.top):null;return{layout:C,range:T,spacers:ee,stickyDay:U}}const Ny=1;function Al(e,n,t){const a=py(n,t);return a===null?null:{...a,atBottom:e.scrollHeight-t-e.clientHeight<=Ny}}function By(e,n,t,a){const r=fy(t,n);return r===null?null:Math.abs(r)<1?e.scrollTop:Math.min(Math.max(e.scrollTop+r,0),a)}const Sy=600;function Ey(e,n,t){const[a,r]=u.useState(()=>({key:e,ids:new Set}));u.useLayoutEffect(()=>{const d=t?Cf(e,n,{commit:!1}):new Set;mc(e,n),d.size>0&&r(m=>({key:e,ids:new Set([...m.key===e?m.ids:[],...d])}))},[e,t,n]),u.useEffect(()=>()=>hc(e),[e]);const s=a.key===e?a.ids:Iy;u.useEffect(()=>{if(s.size===0)return;const d=setTimeout(()=>r({key:e,ids:new Set}),Sy);return()=>clearTimeout(d)},[e,s]);const l=u.useCallback(d=>s.has(d),[s]),c=u.useCallback(()=>{r(d=>d.ids.size===0?d:{key:d.key,ids:new Set})},[]);return{has:l,end:c}}const Iy=new Set,Aa=({messages:e,labelFor:n,profileFor:t,onMessagePerson:a,canMessagePerson:r,reactionContext:s,onReply:l,forceToolbar:c,tenantId:d,density:m,accountId:h,arrivalKey:p=Ma(d,e[0]?.conversation_id),arrivalsEnabled:g=!0,decorate:b,events:f,highlightId:x=null,presentationOf:v,unreadAfterSeq:k,scrollRootRef:w,hasOlder:j=!1,loadingOlder:R=!1,onLoadOlder:N})=>{const _=ge(),S=u.useCallback($=>v?.($)??{key:$.id,local:!1},[v]),C=u.useMemo(()=>e.map($=>{const le=v?.($);return le?.local?{id:le.key}:{id:le?.key??$.id,seq:$.seq}}),[e,v]),T=Ey(p,C,g),ee=wh(e,new Date),O=u.useRef(null),q=w!==void 0,K=u.useMemo(()=>ee.map($=>({item:$,key:cy($,$.type==="message"?S($.message).key:void 0)})),[ee,S]),{range:I,spacers:V,stickyDay:U}=_y({entries:K,listRef:O,scrollRootRef:w,resetKey:p,hasOlder:j,loadingOlder:R,onLoadOlder:N,enabled:q}),z=k===void 0?[]:e.filter($=>$.seq>k&&$.sender.account_id!==h&&!S($).local),B=bh(z)[0]?.id,F=$=>n($)??($.kind==="agent"?o("ui.teamBridge.sender.unknown_agent"):o("ui.teamBridge.sender.unknown_person")),A=Fu(e.filter($=>!S($).local),f),D=$=>{const le=A.get($);return le?i.jsx(Pb,{events:le,labelFor:F,locale:_},`events:${$}`):null};u.useEffect(()=>Tb(vi.map($=>$.emoji)),[]);const J=($,le)=>{const fe=S($.message),de=$.message.id===B?i.jsx(zy,{count:z.length,windowItem:le}):null;return i.jsxs(u.Fragment,{children:[de,i.jsx(Dy,{rowKey:fe.key,local:fe.local,delivery:fe.delivery,message:$.message,continuation:$.continuation&&$.message.id!==B,label:n($.message.sender),member:t?.($.message.sender),profileFor:t,onMessagePerson:a,canMessagePerson:r,locale:_,reactionContext:s,onReply:l,forceToolbar:c,tenantId:d,accountId:h,density:m,arriving:T.has(fe.key),highlighted:x===$.message.id,onArrivalEnd:T.end,decoration:b?.($.message),windowItem:le},fe.key)]},fe.key)},L=ee.map($=>$.type==="day"?null:J($));return i.jsxs("ol",{ref:O,className:"mt-auto flex w-full min-w-0 flex-col pt-4 pb-2",children:[D($u),q&&U!==null&&!U.hidden&&i.jsx(Ay,{day:U.day,locale:_}),q&&i.jsx(Ty,{loading:R,hasOlder:j,showStart:e.length>=cd}),q&&V.before>0&&i.jsx("li",{"aria-hidden":"true","data-window-spacer":"before",className:"shrink-0",style:{height:V.before}}),q?K.slice(I.start,I.end).map(({key:$,item:le})=>le.type==="day"?i.jsx(My,{item:le,locale:_,windowItem:$},$):i.jsxs(u.Fragment,{children:[J(le,$),D(le.message.id)]},$)):Ry(ee,D,_,L),q&&i.jsx("li",{"aria-hidden":"true","data-window-spacer":"after",className:"shrink-0",style:{height:V.after}})]})};function Ry(e,n,t,a){const r=[];let s=null,l=[];const c=()=>{s===null&&l.length===0||(r.push(i.jsx(Cy,{item:s,locale:t,children:l},s?`day:${s.key}`:"day:none")),l=[])};return a.forEach((d,m)=>{const h=e[m];if(h?.type==="day"){c(),s=h;return}if(l.push(d),h?.type==="message"){const p=n(h.message.id);p&&l.push(p)}}),c(),r}function Ms(e,n){return e===null?null:e.relative==="today"?o("ui.teamBridge.thread.today"):e.relative==="yesterday"?o("ui.teamBridge.thread.yesterday"):Ha(e.date,{weekday:"long",month:"long",day:"numeric"},n)}const As=({label:e})=>i.jsx("span",{className:"flex h-6 items-center rounded-full bg-elevated px-2.5 font-medium text-[12px] text-ink-muted",children:e}),Cy=({item:e,locale:n,children:t})=>{const a=Ms(e,n);return i.jsxs("li",{"data-day-group":"","aria-label":a??void 0,className:"relative",children:[a!==null&&i.jsxs(i.Fragment,{children:[i.jsx("span",{"aria-hidden":"true","data-day-rule":"",className:"absolute inset-x-5 top-5 h-px bg-hairline"}),i.jsx("div",{"aria-hidden":"true","data-day-divider":"",className:"pointer-events-none sticky top-2 z-[5] flex justify-center py-2",children:i.jsx(As,{label:a})})]}),i.jsx("ol",{className:"flex w-full min-w-0 flex-col",children:t})]})},Ty=({loading:e,hasOlder:n,showStart:t})=>e?i.jsxs("li",{"data-history-edge":"loading",className:"flex h-8 shrink-0 items-center justify-center gap-2 px-5 text-ink-dim text-meta",children:[i.jsx(Ze,{size:"sm"}),i.jsx("span",{"aria-live":"polite",children:o("ui.teamBridge.thread.loading")})]}):n||!t?null:i.jsx("li",{"aria-hidden":"true","data-history-edge":"start",className:"mx-5 mt-2 h-px shrink-0 bg-hairline"}),My=({item:e,locale:n,windowItem:t})=>{const a=Ms(e,n);return i.jsx("li",{"data-window-item":t,"data-day-group":"","aria-label":a??void 0,className:"relative",children:i.jsxs("div",{"aria-hidden":"true","data-day-divider":"",className:"flex items-center px-5 py-2",children:[i.jsx("span",{"aria-hidden":"true","data-day-rule":"",className:"h-px flex-1 bg-hairline"}),i.jsx(As,{label:a??""}),i.jsx("span",{"aria-hidden":"true","data-day-rule":"",className:"h-px flex-1 bg-hairline"})]})})},Ay=({day:e,locale:n})=>{const t=Ms(e,n);return t===null?null:i.jsx("li",{"aria-hidden":"true","data-day-pill-overlay":"",className:"pointer-events-none sticky top-2 z-[5] flex h-0 shrink-0 justify-center",children:i.jsx(As,{label:t})})},zy=({count:e,windowItem:n})=>i.jsxs("li",{"data-unread-divider":"","data-window-item":n,className:"relative mx-5 mt-3 mb-1 flex h-4 items-center",children:[i.jsx("span",{"aria-hidden":"true",className:"h-px flex-1 bg-accent"}),i.jsx("span",{className:"shrink-0 rounded-xs bg-accent px-1.5 font-semibold text-[11px] text-on-accent leading-4",children:o("ui.teamBridge.notify.count",{count:e})})]}),Py=[["28%","64%"],["22%","48%"],["30%","72%"],["18%","40%"]],zl=({label:e})=>i.jsx("output",{"aria-label":e,className:"mt-auto flex w-full flex-col gap-4 px-5 pt-4 pb-2",children:Py.map(([n,t])=>i.jsxs("div",{"aria-hidden":"true",className:"flex gap-3",children:[i.jsx(fi,{className:"size-9 shrink-0 rounded-full"}),i.jsxs("div",{className:"flex flex-1 flex-col gap-2 pt-1",children:[i.jsx(fi,{className:"h-3 rounded-xs",style:{width:n}}),i.jsx(fi,{className:"h-3 rounded-xs",style:{width:t}})]})]},`${n}:${t}`))}),Dy=({reactionContext:e,rowKey:n,local:t=!1,...a})=>{const r=!!e&&a.message.body!==null;return i.jsx(Oy,{reactionContext:r&&e?t?{...e,disabled:!0}:e:void 0,...a,rowKey:n,onReply:t?void 0:a.onReply},`${e?.accountId??a.accountId??""}:${n??a.message.id}`)},Ly={accountId:"",tenantId:"",disabled:!0},Oy=({reactionContext:e,...n})=>{const t=Kb({conversationId:n.message.conversation_id,messageId:n.message.id,...e??Ly,reactions:n.message.reactions});return i.jsx(qy,{...n,reactions:e?t:void 0})},qy=({message:e,continuation:n,label:t,member:a,profileFor:r,onMessagePerson:s,canMessagePerson:l,locale:c,reactions:d,onReply:m,forceToolbar:h,tenantId:p,accountId:g,density:b,arriving:f=!1,onArrivalEnd:x,decoration:v,highlighted:k=!1,delivery:w,rowKey:j,windowItem:R})=>{const N=$c(e),_=ob(e),S=m!==void 0&&!e.thread_root_id,C=e.sender.kind==="agent",T=t??(C?o("ui.teamBridge.sender.unknown_agent"):o("ui.teamBridge.sender.unknown_person")),ee=new Date(e.created_at),O=!Number.isNaN(ee.getTime()),q=O?Ua(ee,{hour:"numeric",minute:"2-digit"},c):"",K=O?Ha(ee,{dateStyle:"full",timeStyle:"short"},c):"",I=!!(a&&s&&(l?.(e.sender)??!0)&&a.account_id!==g&&a.bridge_enabled&&["active","paused"].includes(a.bridge_state)&&(!C||a.agent)),V=()=>s?.(e.sender),U=a?i.jsx(ct,{member:a,label:T,kind:C?"agent":"human",onMessage:V,canMessage:I,children:i.jsx("button",{type:"button",className:"mt-0.5 block size-9 shrink-0 rounded-full text-start",children:i.jsx(kn,{member:a,kind:C?"agent":"human",label:T,size:36,className:"size-9 text-[14px]",fallback:t===null?i.jsx(Lo,{size:18}):t.trim().charAt(0).toUpperCase()||"?"})})}):null;return i.jsxs("li",{"data-message-id":e.id,"data-window-item":R,"data-message-target":k||void 0,"data-row-key":j??e.id,"data-delivery":w?.status,onAnimationEnd:f?x:void 0,className:G("group/message relative isolate flex w-full min-w-0 gap-3 px-5","before:pointer-events-none before:absolute before:inset-x-2 before:inset-y-0 before:-z-10 before:rounded-sm before:transition-colors before:duration-fast before:ease-out-quart",b==="compact"?"hover:before:bg-row-hover-elevated focus-within:before:bg-row-hover-elevated":"hover:before:bg-row-hover-surface focus-within:before:bg-row-hover-surface",f&&"lo-team-bridge-arrival",k&&"lo-team-bridge-target",n?"py-px":"mt-3 pt-1 pb-0.5"),children:[i.jsx("div",{className:"w-9 shrink-0",children:n?O&&i.jsx("time",{dateTime:e.created_at,title:K,className:"flex justify-end whitespace-nowrap pt-0.5 text-meta-sm text-ink-dim leading-5 tabular-nums opacity-0 group-hover/message:opacity-100",children:q}):U??i.jsx("span",{"aria-hidden":"true","data-sender-avatar":C?"agent":t===null?"unknown":"initial",className:G("mt-0.5 flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-[14px]","bg-accent-alt-wash",C?"text-accent":t===null?"text-ink-muted":"text-accent-alt"),children:C?i.jsx(Ot,{size:18}):t===null?i.jsx(Lo,{size:18}):t.trim().charAt(0).toUpperCase()||"?"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx(Vb,{reactions:d,onReply:S?()=>m(e):void 0,forceVisible:h}),!n&&i.jsxs("div",{className:"flex items-baseline gap-2 leading-5",children:[a?i.jsx(ct,{member:a,label:T,kind:C?"agent":"human",onMessage:V,canMessage:I,children:i.jsx("button",{type:"button","data-sender":t===null?"unknown":"known",className:"min-w-0 truncate rounded-sm text-start font-semibold text-[14px] text-ink",children:T})}):i.jsx("span",{"data-sender":t===null?"unknown":"known",className:G("truncate text-[14px]",t===null?"text-ink-muted italic":"font-semibold text-ink"),children:T}),O&&i.jsx("time",{dateTime:e.created_at,title:K,className:"shrink-0 text-meta text-ink-dim tabular-nums",children:q}),v?.badge]}),n&&v?.badge&&i.jsx("div",{className:"flex pb-0.5",children:v.badge}),e.body===null||v?.withheldCopy!==void 0&&e.body.trim()===""&&(e.attachments?.length??0)===0&&v.attachments===void 0?i.jsx("p",{className:"text-[14px] text-ink-dim italic",children:v?.withheldCopy??o("ui.teamBridge.thread.withheld")}):e.body.trim()===""&&((e.attachments?.length??0)>0||v?.attachments!==void 0)?null:i.jsx(Pw,{body:e.body,renderText:z=>i.jsx(Ed,{className:"team-bridge-message-body text-[14px] transition-colors duration-fast",style:{...w?.status==="pending"?{"--md-ink":"var(--lo-ink-muted)"}:{}},mentions:_,children:z})}),w&&i.jsx("p",{className:"sr-only","aria-live":"polite",children:w.status==="failed"?o("ui.chat.canonical.send_failure.generic"):o("ui.agents.config.state.sending")}),i.jsx(hb,{message:e}),e.body!==null&&i.jsx(sb,{body:e.body,expectedAccountId:g}),((e.attachments?.length??0)>0||(e.files?.length??0)>0||(e.file_count??0)>0)&&i.jsx(yw,{message:e,tenantId:p??null,density:b,accountId:g},JSON.stringify([g,p,e.conversation_id,e.id])),v?.attachments,d&&i.jsx(Hb,{state:d}),w?.status==="failed"&&i.jsxs("div",{role:"alert","data-delivery-failed":"",className:"mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[12px]",children:[i.jsx("span",{className:"text-danger",children:o("ui.chat.canonical.send_failure.generic")}),w.onRetry&&i.jsx("button",{type:"button",onClick:w.onRetry,className:"-mx-1 rounded-sm px-1 py-1 font-medium text-accent hover:bg-row-hover hover:underline",children:o("ui.common.actions.retry")}),w.onEdit&&i.jsx("button",{type:"button",onClick:w.onEdit,className:"-mx-1 rounded-sm px-1 py-1 font-medium text-ink-muted hover:bg-row-hover hover:text-ink hover:underline",children:o("ui.chat.canonical.transcript.edit")})]}),S&&N.count>0&&i.jsx(ny,{message:e,onOpen:()=>m(e),profileFor:r,locale:c}),v?.after]})]})};function Fy(e,n){return e&&n>1}function $y({organizations:e,directories:n,directoryStates:t,directs:a,selfAccountId:r}){return e.map(s=>{const l=s.tenantId,c=n?.[l]??[],d=fs(c,r),m=a.filter(h=>h.tenant_id===l);return{tenantId:l,name:s.name,state:t?.[l]??(c.length>0?"ready":"loading"),members:c,chiefs:d,directs:m,looseDirects:Id(m,c,d,r)}})}function Ky(e){return e.flatMap(n=>n.looseDirects)}function Pl(e,n){return`${e}:${n}`}function Dl(e,n){return`team-bridge-org-${e}-${n}`}const Uy=({organizations:e,scope:n,onScopeChange:t,totalUnread:a,membershipsLoading:r=!1,organizationsFailed:s=!1,unreadRefreshing:l=!1,defaultOpen:c=!1,onRetry:d})=>{ge();const m=yh(e,n),h=n===Ve?o("ui.teamBridge.scope.all"):m?.name??o("ui.teamBridge.scope.unknown");return i.jsxs(Ji,{defaultOpen:c,children:[i.jsx(Qi,{asChild:!0,children:i.jsxs("button",{type:"button","aria-label":o("ui.teamBridge.scope.trigger",{name:h}),title:h,"aria-busy":l||void 0,className:G("group flex h-10 min-w-0 flex-1 items-center gap-2 rounded-sm px-2","text-start text-ink transition-colors duration-fast","hover:bg-row-hover data-[state=open]:bg-row-hover"),children:[i.jsx("span",{"aria-hidden":"true","data-org-tile":"",className:"flex size-7 shrink-0 items-center justify-center rounded-sm bg-accent-alt-wash font-semibold text-[13px] text-accent-alt",children:n!==Ve&&m?.name.trim()?m.name.trim().charAt(0).toUpperCase():i.jsx(Ig,{size:16})}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-semibold text-[15px]",children:h}),i.jsx(mg,{size:14,"aria-hidden":"true",className:"shrink-0 text-ink-dim"})]})}),i.jsxs(Yi,{align:"start",className:"w-64",children:[i.jsx(mi,{children:o("ui.teamBridge.scope.label")}),i.jsxs(Ur,{value:n,onValueChange:p=>t(xh(p)),children:[i.jsxs(Ia,{value:Ve,children:[i.jsx("span",{className:"min-w-0 flex-1 truncate",children:o("ui.teamBridge.scope.all")}),a>0&&i.jsx(Gi,{count:a,"aria-label":o("ui.teamBridge.unread.count",{count:a}),title:o("ui.teamBridge.unread.count",{count:a})})]}),e.length>0&&i.jsx(Gd,{}),e.map(p=>i.jsxs(Ia,{value:p.tenantId,children:[i.jsx("span",{className:"min-w-0 flex-1 truncate",children:p.name}),p.role&&i.jsx("span",{className:"shrink-0 text-meta-sm text-ink-dim capitalize",children:p.role}),p.unread>0&&i.jsx(Gi,{count:p.unread,"aria-label":o("ui.teamBridge.unread.count",{count:p.unread}),title:o("ui.teamBridge.unread.count",{count:p.unread})})]},p.tenantId))]}),r&&i.jsx(mi,{children:o("ui.teamBridge.scope.loading")}),!r&&s&&i.jsxs(i.Fragment,{children:[i.jsx(mi,{children:o("ui.teamBridge.scope.error")}),d&&i.jsx(Xi,{onSelect:()=>d(),children:o("ui.teamBridge.list.retry")})]}),!r&&!s&&e.length===0&&i.jsx(mi,{children:o("ui.teamBridge.scope.empty")})]})]})},Cn=W.string().min(1),We=W.string().nullish(),Gn=W.number().int().nullish(),Hy=W.object({account_id:Cn,kind:W.string(),display_label:W.string().default(""),role:W.string().default(""),state:W.string().default(""),joined_seq:Gn,notify:We}).passthrough(),Gy=W.object({account_id:Cn,display_label:W.string().default(""),reason:W.string().default("agent_owner"),agent_member_key:W.string().default("")}).passthrough(),Wy=W.object({id:Cn,tenant_id:Cn,kind:W.string(),name:We,topic:We,visibility:W.string().default(""),status:W.string().default(""),builtin:We,last_message_at:We,latest_seq:W.number().int().default(0),last_thread_root_id:We,members:W.array(Hy).default([]),member_count:W.number().int().default(0),viewers:W.array(Gy).nullish(),agent:W.object({account_id:Cn,display_label:W.string().default(""),state:W.string(),joined_seq:W.number().int(),left_seq:Gn}).passthrough()}).passthrough(),Vy=W.object({conversations:W.array(Wy),next_cursor:We,has_more:W.boolean().default(!1)}).passthrough(),Jy=W.object({id:Cn,mime:W.string().default(""),size:W.number().int().default(0),width:Gn,height:Gn,sha256:W.string().default(""),state:W.string().default(""),expires_at:We}).passthrough(),Qy=W.object({id:Cn,class:W.string().default(""),mime:W.string().default(""),size:W.number().int().default(0),display_name:We,state:W.string().default(""),expires_at:We}).passthrough(),as=W.object({id:Cn,conversation_id:Cn,seq:W.number().int(),sender:W.object({account_id:Cn,kind:W.string(),display_label:W.string().default("")}).passthrough(),body:We,body_hash:We,origin:W.string().default(""),agent_label:We,created_at:W.string(),thread_root_id:We,reply_count:Gn,last_reply_at:We,reply_participants:W.array(W.string()).nullish(),attachments:W.array(Jy).nullish(),attachment_count:Gn,files:W.array(Qy).max(10).nullish().catch(void 0),file_count:Gn.catch(void 0),agent_delivery_status:We,agent_verdict_at:We,delivery_states:W.array(Ku).max(64).nullish().catch(void 0)}).passthrough(),Yy=W.object({messages:W.array(as),next_before_seq:Gn,has_more:W.boolean().default(!1)}).passthrough(),Xy=W.object({root:as,replies:W.array(as),next_after_seq:Gn,next_before_seq:W.number().int().positive().nullish(),order:W.enum(["asc","desc"]).optional(),has_more:W.boolean().default(!1)}).passthrough(),Or=({accountId:e,tenantId:n})=>({expected_account_id:e,tenant_id:n});class rs extends Error{constructor(n){super(o("ui.teamBridge.attachmentCard.unavailable")),this.status=n,this.name="OwnerAuditAttachmentError"}}const Ll=e=>({tenantId:e.tenantId,expectedAccountId:e.accountId,conversationId:e.conversationId,messageId:e.messageId,attachmentId:e.attachmentId}),Zi={async fileBytes(e){const n=await Ao({op:"team_bridge.owner_audit.attachment",mode:"file",...Ll(e)},null);if(n.kind!=="bytes"||n.status!==200||n.mimeType!=="application/octet-stream")throw new rs(n.kind==="error"?n.status:422);return n.data},async attachmentBytes(e){const n=await Ao({op:"team_bridge.owner_audit.attachment",...Ll(e)},null);if(n.kind!=="bytes"||n.status!==200||n.mimeType!=="image/png"&&n.mimeType!=="image/jpeg")throw new rs(n.kind==="error"?n.status:422);return{data:n.data,mimeType:n.mimeType}},async conversations(e,n){return Vy.parse(await Nr({op:"team_bridge.owner_audit.conversations",...Or(e),limit:50,...n===void 0?{}:{cursor:n}}))},async messages(e,n,t){return Yy.parse(await Nr({op:"team_bridge.owner_audit.messages",...Or(e),conversation_id:n,limit:50,...t===void 0?{}:{before_seq:t}}))},async replies(e,n,t,a,r){return Xy.parse(await Nr({op:"team_bridge.owner_audit.replies",...Or(e),conversation_id:n,message_id:t,limit:r?.limit??50,...a===void 0?{}:{after_seq:a},...r?.beforeSeq===void 0?{}:{before_seq:r.beforeSeq},...r?.order===void 0?{}:{order:r.order}}))}};function Kc(e){return JSON.stringify(["owner-audit",e.accountId,e.tenantId,e.conversationId,e.messageId,e.attachmentId])}function ss(e){return e.state!=="bound"?null:e.mime==="image/png"||e.mime==="image/jpeg"?"preview":null}function Zy(e,n,t){return!e?.accountId||!e.tenantId||e.tenantId!==n.tenant_id||t.conversation_id!==n.id?null:{accountId:e.accountId,tenantId:e.tenantId,conversationId:n.id,messageId:t.id}}const wa=new Map;function e1(e){return e instanceof rs&&(e.status===null||e.status===408||e.status===429||e.status>=500)?"failed":"unavailable"}function n1(e,n){const t=wa.get(e);if(t)return t.holders+=1,t.promise;const a={holders:1,promise:Promise.resolve("unavailable")};return a.promise=(async()=>{try{const r=await Zi.attachmentBytes(n),s=xi(r.data,r.mimeType);return a.holders<=0?(bi(s),"unavailable"):(Bd(e,s),"ready")}catch(r){return e1(r)}finally{wa.delete(e)}})(),wa.set(e,a),a.promise}function t1(e,n,t){const a=Kc(e),[r,s]=u.useState(()=>{const l=n?Nd(a):null;return{key:a,value:l?{state:"ready",url:l}:{state:"loading"}}});return u.useEffect(()=>{if(!n)return;let l=!0;const c=Ba(a);if(c)return s({key:a,value:{state:"ready",url:c}}),()=>{l=!1,Sa(a)};s({key:a,value:{state:"loading"}});let d=!0;return n1(a,e).then(m=>{if(d=!1,!l)return;const h=m==="ready"?Ba(a):null;s({key:a,value:h?{state:"ready",url:h}:{state:m==="failed"?"failed":"unavailable"}})}),()=>{if(l=!1,d){const m=wa.get(a);m&&(m.holders-=1)}Sa(a)}},[a,n,t]),n?r.key===a?r.value:{state:"loading"}:{state:"unavailable"}}function i1({scope:e,attachment:n,slot:t,index:a,count:r,register:s,onOpen:l,openerRef:c}){const[d,m]=u.useState(0),h=t1(e,ss(n)==="preview",d),p=h.state==="ready"?h.url:null,g=u.useRef(null),b=u.useRef(!1);u.useEffect(()=>{s(n.id,h)},[n.id,h.state,p]),u.useEffect(()=>{h.state==="ready"&&b.current&&(b.current=!1,document.activeElement===document.body&&g.current?.focus({preventScroll:!0}))},[h.state]);const f=o("ui.teamBridge.attachments.position",{index:String(a+1),count:String(r)});return h.state==="failed"||h.state==="unavailable"?i.jsx(Is,{box:t.box,label:f,copy:o("ui.teamBridge.attachmentCard.unavailable"),kind:h.state,retryLabel:o("ui.teamBridge.attachments.retry_load"),onRetry:h.state==="failed"?()=>{b.current=!0,m(x=>x+1)}:void 0}):i.jsx(Tc,{url:p,box:t.box,fit:t.fit,overflow:t.overflow,label:f,busy:!p,openLabel:o("ui.teamBridge.attachments.open",{index:String(a+1),count:String(r)}),buttonRef:x=>{g.current=x,c(x)},onOpen:l})}function a1({attachments:e,count:n,scope:t,compact:a=!1,files:r=[],fileCount:s=r.length}){ge();const l=JSON.stringify(t?[t.accountId,t.tenantId,t.conversationId,t.messageId]:null),c=u.useRef(l);c.current=l;const[d,m]=u.useState({key:l,id:null}),h=d.key===l?d.id:null,p=S=>{c.current===l&&m({key:l,id:S})},[g,b]=u.useState({key:l,values:{}}),f=g.key===l?g.values:{},x=u.useRef(null),v=u.useRef({}),k=e.filter(S=>ss(S)==="preview"),w=k.findIndex(S=>S.id===h),j=w>=0?k[w]:void 0,R=j?f[j.id]:void 0;u.useEffect(()=>{h&&!j&&m({key:l,id:null})},[h,j,l]);const N=(S,C)=>{c.current===l&&b(T=>{const ee=T.key===l?T.values:{},O=ee[S];return T.key===l&&O?.state===C.state&&(C.state!=="ready"||O.state==="ready"&&O.url===C.url)?T:{key:l,values:{...ee,[S]:C}}})},_=j?o("ui.teamBridge.attachments.position",{index:String(w+1),count:String(k.length)}):"";return i.jsxs(i.Fragment,{children:[i.jsx(Mc,{attachments:e.map(S=>({...S,state:S.state??"unknown"})),count:n,compact:a,files:r,fileCount:s,readFile:t?S=>Zi.fileBytes({...t,attachmentId:S.id}):void 0,renderPreview:t?(S,C,T)=>ss(S)==="preview"?i.jsx(i1,{scope:{...t,attachmentId:S.id},attachment:S,slot:T,index:k.findIndex(ee=>ee.id===S.id),count:k.length,register:N,openerRef:ee=>{v.current[S.id]=ee},onOpen:()=>{x.current=v.current[S.id],p(S.id)}},Kc({...t,attachmentId:S.id})):null:void 0}),i.jsx(_d,{open:!!(t&&j),src:R?.state==="ready"?R.url:void 0,pending:!!(j&&(!R||R.state==="loading")),label:_,restoreFocusTo:x,onOpenChange:S=>{S||p(null)},fallback:i.jsx("p",{children:o("ui.teamBridge.attachmentCard.unavailable")}),group:k.length>1&&j?{index:w,count:k.length,onPrev:()=>p(k[(w-1+k.length)%k.length].id),onNext:()=>p(k[(w+1)%k.length].id)}:void 0})]})}function r1(e,n){return e.agent_delivery_status==="admitted"?"admitted":e.agent_delivery_status==="rejected"?"rejected":e.agent_delivery_status==="not_screened"?"not_screened":!e.agent_delivery_status&&e.sender.kind==="agent"&&e.sender.account_id===n?"own":"unknown"}function s1(e,n){return e.name?.trim()||e.members.map(t=>vh({kind:t.kind==="agent"?"agent":"human",display_label:t.display_label})).filter(t=>t!==null).join(", ")||n}function o1(e){const n=new Map;for(const t of e)for(const a of t)n.get(a.id)?.body&&!a.body||n.set(a.id,a);return[...n.values()].sort((t,a)=>t.seq-a.seq||(t.id<a.id?-1:t.id>a.id?1:0))}function l1(e){const n=d1(e.sender.kind);return{id:e.id,conversation_id:e.conversation_id,seq:e.seq,sender:{account_id:e.sender.account_id,kind:n??"human",display_label:e.sender.display_label,...n===null?{audit_unknown_kind:!0}:{}},body:e.body??null,body_hash:e.body_hash??void 0,origin:e.origin==="human"||e.origin==="agent"||e.origin==="system"?e.origin:"system",agent_label:e.agent_label??void 0,created_at:e.created_at,thread_root_id:e.thread_root_id??void 0,delivery_states:e.delivery_states??void 0}}function d1(e){return e==="human"||e==="agent"?e:null}function c1(e,n,t,a){if(e.audit_unknown_kind===!0)return jh(e.display_label);const r=_a(e,n,a);if(r!==null)return r;const s=t.find(l=>l.account_id===e.account_id&&l.kind===e.kind);return s?_a({...e,display_label:s.display_label},n,a):null}function u1(e,n){if(e.audit_unknown_kind!==!0)return n.find(t=>t.account_id===e.account_id)}const ki="group/row relative flex h-8 w-full items-center gap-2 rounded-md px-2 text-start text-[14px] transition-colors duration-fast ease-out-quart",os=({id:e,name:n,first:t=!1})=>i.jsx("h3",{id:e,title:n,className:G("truncate py-1 ps-2 pe-1 text-xs font-normal text-ink-muted",!t&&"mt-2"),children:n}),ha=({children:e})=>i.jsx("p",{className:"px-2 py-1 text-[12px] text-ink-dim leading-snug",children:e}),ba={openDelayMs:1200,fastOpenDelayMs:400,toggleOnClick:!1,openOnFocus:!1},zs=({count:e,yieldsToMenu:n=!1,register:t="attention"})=>e>0?i.jsx(Gi,{count:e,register:t,className:G("shrink-0",n&&"group-focus-within/row:invisible group-hover/row:invisible"),"aria-label":o("ui.teamBridge.unread.count",{count:e})}):null,Ps=({yieldsToMenu:e=!1})=>i.jsxs("span",{className:G("shrink-0 text-ink-dim",e&&"group-focus-within/row:invisible group-hover/row:invisible"),title:o("ui.teamBridge.notify.muted"),children:[i.jsx(Jd,{size:12,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.notify.muted")})]});function Uc(e,n){const t=!!(n&&$a(n)),a=n?.unread_count??0;return[o("ui.teamBridge.people.message",{name:e}),t?o("ui.teamBridge.notify.muted"):null,a>0?o("ui.teamBridge.unread.count",{count:a}):null].filter(r=>r!==null).join(" ")}const Ct=({id:e,title:n,children:t,empty:a,add:r,menu:s})=>(ge(),i.jsxs("section",{"aria-labelledby":e,className:G("pb-1",va),children:[i.jsxs("div",{className:"group/section flex h-7 items-center pt-4 pe-[4.5px] pb-1 ps-2",children:[i.jsx("h2",{id:e,className:"min-w-0 flex-1 truncate font-semibold text-meta text-ink-dim tracking-wide",children:n}),s&&i.jsxs(Ji,{children:[i.jsx(Qi,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":s.label,title:s.label,className:"flex size-5 items-center justify-center rounded-sm text-ink-dim opacity-0 transition-opacity duration-fast hover:bg-row-hover hover:text-ink focus-visible:opacity-100 group-hover/section:opacity-100 data-[state=open]:opacity-100",children:i.jsx(La,{size:13,"aria-hidden":"true"})})}),i.jsx(Yi,{align:"start",side:"right",children:s.items.map(l=>i.jsxs(Xi,{onSelect:l.onSelect,children:[l.icon,l.label]},l.key))})]}),r&&i.jsx("button",{type:"button",onClick:r.onAdd,"aria-label":r.label,title:r.label,className:"flex size-5 items-center justify-center rounded-sm text-ink-dim opacity-0 transition-opacity duration-fast hover:bg-row-hover hover:text-ink focus-visible:opacity-100 group-hover/section:opacity-100",children:i.jsx(xa,{size:13,"aria-hidden":"true"})})]}),a?a.onCreate?i.jsx("button",{type:"button",onClick:a.onCreate,title:a.text,className:"w-full truncate rounded-md px-2 py-1 text-start text-meta text-ink-dim leading-snug transition-colors duration-fast ease-out-quart hover:bg-row-hover hover:text-ink-muted",children:a.text}):i.jsx("p",{title:a.text,className:"truncate px-2 py-1 text-meta text-ink-dim leading-snug",children:a.text}):t]})),Ds=({kind:e})=>{const n=e==="group"?mt:e==="dm"?Uu:Pa;return i.jsx(n,{size:16,"aria-hidden":"true",className:"shrink-0"})},m1=({hasDraft:e=!1,conversation:n,selected:t,selfAccountId:a,title:r,organizationName:s,onSelect:l,menu:c,initialMenuOpen:d=!1})=>{const[m,h]=u.useState(d),p=(c?.sections.length??0)>0,g=ge(),b=r??ui(n,a)??o("ui.teamBridge.list.untitled"),f=Oa(n),x=n.unread_count,v=f1(n.last_message_at,g);return i.jsxs("li",{className:"group/row relative",children:[i.jsxs("button",{type:"button",onClick:l,onContextMenu:p?k=>{k.preventDefault(),h(!0)}:void 0,title:v||void 0,"aria-current":t?"page":void 0,"data-conversation-id":n.id,"data-conversation-builtin":n.builtin,className:G(ki,s&&"h-auto min-h-[38px] py-1",t?G(Da,"[&>svg:first-child]:text-accent"):x>0?"font-semibold text-ink hover:bg-row-hover":f?"text-ink-dim hover:bg-row-hover hover:text-ink":"text-ink-muted hover:bg-row-hover hover:text-ink"),children:[i.jsx(Ds,{kind:n.kind}),i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i.jsx("span",{className:"truncate",children:b}),s&&i.jsx("span",{className:"truncate font-normal text-meta-sm text-ink-dim",children:s})]}),f&&i.jsxs("span",{title:o("ui.teamBridge.preview.chip"),className:"shrink-0 text-ink-dim",children:[i.jsx(Rd,{size:14,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.preview.chip")})]}),$a(n)&&i.jsx(Ps,{yieldsToMenu:p}),e&&i.jsxs("span",{title:o("ui.teamBridge.drafts.indicator"),className:"shrink-0 text-ink-dim",children:[i.jsx(Fa,{size:12,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.drafts.indicator")})]}),i.jsx(zs,{count:x,yieldsToMenu:p,register:ks(n)})]}),c&&p&&i.jsx(g1,{name:b,menu:c,open:m,onOpenChange:h})]})},h1="absolute end-[3px] top-[3px] flex size-6 items-center justify-center rounded-sm text-ink-dim opacity-0 transition-opacity duration-fast hover:bg-row-hover hover:text-ink focus-visible:opacity-100 group-hover/row:opacity-100 group-focus-within/row:opacity-100 data-[state=open]:opacity-100",g1=({name:e,menu:n,open:t,onOpenChange:a})=>i.jsxs(Ji,{open:t,onOpenChange:a,children:[i.jsx(Qi,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":o("ui.teamBridge.row.menu",{name:e}),"data-row-menu-trigger":"",className:h1,children:i.jsx(La,{size:14,"aria-hidden":"true"})})}),i.jsx(Yi,{align:"start",side:"right",className:"w-64",children:i.jsx(jc,{sections:n.sections,conversation:n.conversation,agentNotify:n.agentNotify,handlers:n.handlers})})]}),Hc=({label:e,onStartGroup:n})=>i.jsxs(Ji,{children:[i.jsx(Qi,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":o("ui.teamBridge.row.menu",{name:e}),className:"absolute end-[3px] flex size-6 items-center justify-center rounded-sm text-ink-dim opacity-0 transition-opacity duration-fast hover:bg-row-hover hover:text-ink focus-visible:opacity-100 group-hover/row:opacity-100 group-focus-within/row:opacity-100 data-[state=open]:opacity-100",children:i.jsx(La,{size:14,"aria-hidden":"true"})})}),i.jsx(Yi,{align:"start",side:"right",children:i.jsxs(Xi,{onSelect:n,children:[i.jsx(mt,{size:14,"aria-hidden":"true"}),o("ui.teamBridge.row.start_group")]})})]}),Ol=({hasDraft:e=!1,member:n,selfAccountId:t,identityKnown:a,selected:r,dm:s,readOnly:l,onSelect:c,onStartGroup:d})=>{ge();const m=u.useId(),h=nn(n),p=a?ms(n,t):"unknown",g=i.jsx(kn,{member:n,kind:"human",label:h,size:20,selected:r,className:"text-[10px]"});if(p==="self")return i.jsx("li",{children:i.jsx(ct,{member:n,label:h,kind:"human",onMessage:c,canMessage:!1,...ba,children:i.jsxs("button",{type:"button",className:G(ki,"cursor-default text-ink-muted"),children:[g,i.jsx("span",{className:"min-w-0 flex-1 truncate",children:o("ui.teamBridge.people.self_named",{name:h})})]})})});const b=p==="unknown"?o("ui.teamBridge.people.identity_loading"):p==="unavailable"&&!s?o("ui.teamBridge.people.bridge_off"):null;if(b)return i.jsx("li",{children:i.jsx(ct,{member:n,label:h,kind:"human",onMessage:c,canMessage:!l&&p!=="unavailable"&&p!=="unknown",...ba,children:i.jsxs("button",{type:"button","aria-disabled":"true","aria-describedby":m,className:G(ki,"h-auto min-h-8 cursor-default py-1 text-ink-muted"),children:[i.jsx("span",{className:"opacity-60",children:g}),i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col text-start",children:[i.jsx("span",{className:"truncate",children:h}),i.jsx("span",{id:m,className:"truncate text-meta-sm text-ink-dim",children:b})]})]})})});const f=s?.unread_count??0,x=!l&&p!=="unavailable";return i.jsxs("li",{className:"group/row relative flex items-center",children:[i.jsx(ct,{member:n,label:h,kind:"human",onMessage:c,canMessage:(!!s||!l)&&p!=="unavailable"&&p!=="unknown",...ba,children:i.jsxs("button",{type:"button",onClick:c,"aria-current":r?"page":void 0,"data-team-bridge-person":n.account_id,"aria-label":Uc(h,s),className:G(ki,r?G(Da,"[&>svg:first-child]:text-accent"):f>0?"font-semibold text-ink hover:bg-row-hover":"text-ink-muted hover:bg-row-hover hover:text-ink"),children:[g,i.jsx("span",{className:"min-w-0 flex-1 truncate",children:h}),p==="paused"&&i.jsx("span",{className:"shrink-0 text-meta-sm text-ink-dim",children:o("ui.teamBridge.people.paused")}),e&&i.jsxs("span",{title:o("ui.teamBridge.drafts.indicator"),className:"shrink-0 text-ink-dim",children:[i.jsx(Fa,{size:12,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.drafts.indicator")})]}),!!(s&&$a(s))&&i.jsx(Ps,{yieldsToMenu:x}),i.jsx(zs,{count:f,yieldsToMenu:!0,register:s?ks(s):"attention"})]})}),x&&i.jsx(Hc,{label:h,onStartGroup:()=>d({kind:"human",accountId:n.account_id,label:h})})]})},ql=({hasDraft:e=!1,chief:n,label:t,selected:a,dm:r,readOnly:s,onSelect:l,onStartGroup:c})=>{ge();const d=r?.unread_count??0;return i.jsxs("li",{className:"group/row relative flex items-center",children:[i.jsx(ct,{member:n.person,label:t,kind:"agent",onMessage:l,canMessage:!!r||!s,...ba,children:i.jsxs("button",{type:"button",onClick:l,"aria-current":a?"page":void 0,"data-team-bridge-chief":n.person.account_id,"aria-label":Uc(t,r),className:G(ki,a?G(Da,"[&>svg:first-child]:text-accent"):d>0?"font-semibold text-ink hover:bg-row-hover":"text-ink-muted hover:bg-row-hover hover:text-ink"),children:[i.jsx(kn,{member:n.person,kind:"agent",endpointId:n.endpointId,label:t,size:20,selected:a,className:"text-accent"}),i.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),n.paused&&i.jsx("span",{className:"shrink-0 text-meta-sm text-ink-dim",children:o("ui.teamBridge.people.paused")}),e&&i.jsxs("span",{title:o("ui.teamBridge.drafts.indicator"),className:"shrink-0 text-ink-dim",children:[i.jsx(Fa,{size:12,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.drafts.indicator")})]}),!!(r&&$a(r))&&i.jsx(Ps,{yieldsToMenu:!s}),i.jsx(zs,{count:d,yieldsToMenu:!0,register:r?ks(r):"attention"})]})}),!s&&i.jsx(Hc,{label:t,onStartGroup:()=>c({kind:"agent",accountId:n.person.account_id,endpointId:n.endpointId,label:t})})]})},p1=["72%","58%","80%","64%"],st=({label:e})=>i.jsx("output",{"aria-label":e,className:"block",children:p1.map(n=>i.jsxs("div",{"aria-hidden":"true",className:"flex h-8 items-center gap-2 px-2",children:[i.jsx(fi,{className:"size-4 shrink-0 rounded-xs"}),i.jsx(fi,{className:"h-3 rounded-xs",style:{width:n}})]},n))});function Fl(e,n,t){return e?.type===n&&e.accountId===t}function f1(e,n){if(!e)return"";const t=Date.parse(e);if(Number.isNaN(t))return"";const a=Math.round((t-Date.now())/6e4),r=Math.round(a/60),s=Math.abs(a)<60?Br(a,"minute",{numeric:"auto"},n):Math.abs(r)<24?Br(r,"hour",{numeric:"auto"},n):Br(Math.round(r/24),"day",{numeric:"auto"},n),l=new Intl.DateTimeFormat(n,{dateStyle:"medium",timeStyle:"short"}).format(new Date(t));return`${s} · ${l}`}const k1=48,w1="[data-radix-scroll-area-viewport]";function Va({resetKey:e,contentKey:n,scrollElement:t="radix",preserveAnchor:a=!1,rowIds:r,rowSelector:s="[data-message-id]",liveEdgeAvailable:l=!0}){const c=u.useRef(null),d=u.useRef(!0),m=u.useRef(l),h=u.useRef(null),p=u.useRef([]),[g,b]=u.useState(0),f=u.useCallback(()=>t==="root"?c.current:c.current?.querySelector(w1)??null,[t]),x=u.useCallback(()=>{if(!a)return;const N=f();if(!N)return;const _=N.getBoundingClientRect(),S=[...N.querySelectorAll(s)].find(C=>{const T=C.getBoundingClientRect();return T.bottom>_.top&&T.top<_.bottom});h.current=S?{id:S.dataset.messageId??"",offset:S.getBoundingClientRect().top-_.top}:null},[a,f,s]),v=u.useCallback(()=>{if(!a||!h.current)return;const N=f();if(!N)return;const _=[...N.querySelectorAll(s)].find(S=>S.dataset.messageId===h.current?.id);_&&(N.scrollTop+=_.getBoundingClientRect().top-N.getBoundingClientRect().top-h.current.offset)},[a,f,s]),k=u.useCallback(()=>{const N=f();N&&(N.scrollTop=N.scrollHeight)},[f]),w=u.useCallback(()=>{l&&(d.current=!0,a&&b(0),k())},[k,a,l]),j=u.useCallback(()=>{d.current=!1,x()},[x]),R=u.useCallback(()=>d.current&&l,[l]);return u.useLayoutEffect(()=>{d.current=l,m.current=l,h.current=null,p.current=r??[],a&&b(0),k()},[e,k]),u.useLayoutEffect(()=>{const N=l&&!m.current;if(m.current=l,l?N&&(d.current=!0,h.current=null,a&&b(0)):d.current=!1,d.current)k();else if(v(),a&&r){const _=p.current.at(-1),S=_?r.indexOf(_):-1;S>=0&&S<r.length-1&&b(C=>C+r.length-S-1)}p.current=r??[]},[n,k,l]),u.useEffect(()=>{const N=f();if(!N)return;const _=()=>{d.current=l&&N.scrollHeight-N.scrollTop-N.clientHeight<=k1,d.current?(h.current=null,a&&b(0)):x()},S=ee=>{ee.target instanceof HTMLImageElement&&(d.current?k():v())};N.addEventListener("scroll",_,{passive:!0}),N.addEventListener("load",S,!0);const C=N.firstElementChild,T=typeof ResizeObserver=="function"&&C?new ResizeObserver(()=>{d.current?k():v()}):null;if(T&&C){T.observe(C);for(const ee of C.children)T.observe(ee)}return T?.observe(N),()=>{N.removeEventListener("scroll",_),N.removeEventListener("load",S,!0),T?.disconnect()}},[f,k,e,l,a,x,v]),{rootRef:c,pin:w,hold:j,isPinned:R,newMessages:g}}class Gc extends Error{}function b1(e){if(e.order===void 0)throw new Gc;if(e.order!=="desc")throw new Error("Thread response order mismatch");return e}function y1(e){return e instanceof Gc||e instanceof In&&e.status===422&&e.code==="invalid_request"}function x1(e,n){const t=n==="desc"?[...e].reverse():e,a=new Map;for(const r of t)for(const s of r.replies)a.set(s.id,s);return[...a.values()]}function $l(e,n,t,a,r){if(e.root.id!==n.rootId||e.root.conversation_id!==n.conversationId||e.root.thread_root_id||e.replies.some(s=>s.id===n.rootId||s.conversation_id!==n.conversationId||s.thread_root_id!==n.rootId))throw new Error("Thread response identity mismatch");if(t==="desc"&&b1(e),e.replies.length>r||new Set(e.replies.map(s=>s.id)).size!==e.replies.length||e.replies.some((s,l)=>{const c=e.replies[l-1];return!Number.isSafeInteger(s.seq)||s.seq<=0||c&&(c.seq>s.seq||c.seq===s.seq&&c.id>=s.id)}))throw new Error("Thread response page ordering mismatch");if(a!==void 0&&e.replies.some(s=>t==="desc"?s.seq>=a:s.seq<a))throw new Error("Thread response cursor boundary mismatch");if(e.has_more){const s=t==="desc"?e.replies[0]?.seq:(e.replies.at(-1)?.seq??-1)+1,l=t==="desc"?e.next_before_seq:e.next_after_seq;if(s===void 0||!Number.isSafeInteger(s)||s<=0||l!==s)throw new Error("Thread response cursor mismatch")}return e}function Wc({queryKey:e,identity:n,read:t,canEvict:a,isAtLiveEdge:r,poll:s=!1,enabled:l=!0,retry:c=!1,retryDelay:d,refetchOnWindowFocus:m,refetchOnReconnect:h,retryOnMount:p}){const g=ht(),b=["team-bridge","reply-window-negotiation",JSON.stringify(e)],{data:f}=Ka({queryKey:b,queryFn:()=>"desc",initialData:"desc",enabled:!1,gcTime:0}),x=[...e,f],v=JSON.stringify(x),k=u.useRef({key:v,pendingNewer:!1});k.current.key!==v&&(k.current={key:v,pendingNewer:!1});const w=ws({queryKey:x,initialPageParam:void 0,maxPages:6,gcTime:0,enabled:l,retry:c,retryDelay:d,refetchOnWindowFocus:m,refetchOnReconnect:h,retryOnMount:p,queryFn:async({pageParam:N,signal:_})=>{const S=k.current,C=()=>{if(_.aborted||k.current!==S||S.key!==v)throw new dt({revert:!0})};C();const T=g.getQueryData(x),ee=T?.pages.reduce((B,F)=>Math.max(B,F.replies.at(-1)?.seq??0),0)??0,O=()=>{const B=S.upperBound??ee+1;if(!Number.isSafeInteger(B)||B<=0)throw new Error("Thread upper boundary is not representable");return B};if(S.attempt?.signal!==_){const B=g.getQueryState(x)?.fetchMeta?.fetchMore?.direction==="forward"&&N!==void 0;f==="desc"&&!B&&ee>0&&(!(r?.()??!0)||typeof T?.pageParams[0]=="number"||S.upperBound!==void 0)&&(S.upperBound=O()),S.attempt={signal:_,older:B,first:!0,live:f==="desc"&&S.upperBound===void 0,hadRows:ee>0}}const q=S.attempt,K=q.first;q.first=!1;const I=K&&!q.older&&f==="desc"?S.upperBound??N:N,V=B=>{const F=g.getQueryData(x),A=new Map(F?.pages.flatMap(D=>D.replies.map(J=>[J.id,J.seq]))??[]);if(B.replies.some(D=>A.has(D.id)&&A.get(D.id)!==D.seq))throw new Error("Thread response sequence identity mismatch")};let U;try{if(K&&!q.older&&f==="desc"&&I!==void 0){const B=$l(await t(f,void 0,1,_),n,f,void 0,1);C(),V(B);const F=B.replies.at(-1);S.latest=F?{id:F.id,seq:F.seq}:void 0,S.pendingNewer=!!(F&&F.seq>ee)}U=$l(await t(f,I,50,_),n,f,I,50),C(),V(U)}catch(B){throw f==="desc"&&K&&!T?.pages.length&&I===void 0&&!_.aborted&&y1(B)?(g.setQueryData(b,"legacy"),new dt({revert:!0})):B}if(K&&q.live){const B=U.replies.at(-1);S.latest=B?{id:B.id,seq:B.seq}:void 0}if(!q.older&&q.live&&q.hadRows&&!(r?.()??!0))throw S.upperBound=O(),S.pendingNewer=!!(S.latest&&S.latest.seq>ee),queueMicrotask(()=>{if(k.current!==S||_.aborted)return;const B=g.getQueryCache().find({queryKey:x,exact:!0});B&&B.getObserversCount()>0&&g.refetchQueries({queryKey:x,exact:!0},{cancelRefetch:!0})}),new dt({revert:!0});const z=g.getQueryData(x);if(q.older&&z&&z.pages.length>=6&&a&&!a(z.pages[0]))throw new dt({revert:!0});return U},getNextPageParam:(N,_,S)=>{if(!N.has_more)return;const C=f==="desc"?N.next_before_seq:N.next_after_seq;if(!(C==null||!Number.isSafeInteger(C)||C<0)&&!(f==="desc"&&C===0))return S===void 0||(f==="desc"?C<S:C>S)?C:void 0},refetchInterval:s?8e3:!1}),j=w.error instanceof In?w.error.status:void 0,R=!!(w.data&&w.isFetchNextPageError&&(j===null||typeof j=="number"&&Number.isInteger(j)&&j>=500&&j<=599));return{...w,mode:f,keepWindowOnError:R,replies:x1(w.data?.pages??[],f),pendingNewer:k.current.pendingNewer,latestPageAvailable:f==="desc"&&k.current.upperBound===void 0&&!k.current.pendingNewer&&w.data?.pageParams[0]===void 0,resetLatest:()=>k.current.key!==v?Promise.resolve():(k.current={key:v,pendingNewer:!1},g.resetQueries({queryKey:x,exact:!0}))}}function Vc(e,n){if(!n)return!1;const t=n.getBoundingClientRect(),a=new Set(e.replies.map(r=>r.id));return![...n.querySelectorAll("[data-message-id]")].some(r=>{const s=r.getBoundingClientRect();return a.has(r.dataset.messageId??"")&&s.bottom>t.top&&s.top<t.bottom})}const v1=new Set(["conversation_not_found","account_mismatch","expected_account_mismatch","deadline_exceeded","owner_audit_unavailable"]);function Ls(e){const n=e instanceof Error?e.message:"",t=zo(e)?"cancelled":n==="Owner audit authority changed"?"audit-owner":n==="Team Bridge read owner changed"?"bridge-owner":n==="Team Bridge read authority changed"?"bridge-authority":n==="Account authority changed"||n==="Account authority unresolved"?"credential-authority":e instanceof Error&&e.name==="ZodError"?"schema":e instanceof In?"desktop":"other",a=e instanceof In?Object.getOwnPropertyDescriptor(e,"status")?.value:void 0;return{category:t,errorClass:zo(e)?"CancelledError":e instanceof In?"DesktopControlError":e instanceof Error&&e.name==="ZodError"?"ZodError":e instanceof Error?"Error":"unknown",status:typeof a=="number"&&Number.isInteger(a)&&a>=100&&a<=599?a:null,code:e instanceof In&&e.code?v1.has(e.code)?e.code:"other":null}}function Jc(e){const n=Ls(e);return n.category==="credential-authority"||n.status===401||n.code==="account_mismatch"||n.code==="expected_account_mismatch"?"auth":n.status===403?"permission":n.status===404||n.code==="conversation_not_found"?"not-found":n.status!==null&&n.status>=500?"unavailable":"error"}function Os(e,n){const t=Ls(n);return e<1&&t.category==="desktop"&&t.status!==null&&t.status>=500}const qs=250,j1=1e3;function _1(e,n){return new Promise(t=>{let a=()=>{};const r=c=>{clearTimeout(l),a(),t(c)},s=()=>{const c=gs(e);c.epoch>n&&c.accountId&&r(!0)},l=setTimeout(()=>r(!1),j1);a=_h(e,s),s()})}function Fs(e,n){const t=ht(),a=us(),r=u.useCallback(g=>t.getQueryCache().subscribe(g),[t]),s=u.useCallback(()=>JSON.stringify(Hu(t.getQueryData(Rn.statusFor(e.accountId)))),[t,e.accountId]),l=u.useSyncExternalStore(r,s,s),c=`${a.token}:${l}`,d=a.accountId===e.accountId&&!!e.tenantId&&t.getQueryData(Rn.statusFor(e.accountId))?.account_id===e.accountId,m=u.useMemo(()=>({accountId:e.accountId,tenantId:e.tenantId,operation:n,remaining:20}),[e.accountId,e.tenantId,n]),h=u.useRef(0);return{read:async(g,b)=>{const f=a.token,x=()=>!b.aborted&&gd(t)===f&&gs(t).accountId===e.accountId&&s()===l;try{if(!x())throw new Error("Owner audit authority changed");const v=await Gu(t,e.accountId,g);if(!x())throw new Error("Owner audit authority changed");return h.current=0,v}catch(v){if(m.remaining>0){m.remaining-=1;const w=v instanceof In?Object.getOwnPropertyDescriptor(v,"status")?.value:void 0,j=typeof w=="number"&&Number.isInteger(w)&&w>=100&&w<=599?`${Math.floor(w/100)}xx`:"unknown";try{console.warn("[owner-audit-read]",JSON.stringify({operation:n,statusClass:j}))}catch{}}if(!x())throw new dt({revert:!0});const k=Ls(v);throw["cancelled","audit-owner","bridge-owner","bridge-authority","credential-authority"].includes(k.category)?new dt({revert:!0}):k.status===401&&++h.current===1&&await _1(t,a.epoch)?new dt({revert:!0}):v}},authorityToken:c,enabled:d}}function N1(e){const{read:n,authorityToken:t,enabled:a}=Fs(e,"conversations");return{...ws({queryKey:["team-bridge","owner-audit",e.accountId,e.tenantId,t,"conversations"],initialPageParam:void 0,queryFn:({pageParam:s,signal:l})=>n(()=>Zi.conversations(e,s),l),getNextPageParam:(s,l,c)=>s.has_more&&s.next_cursor&&s.next_cursor!==c?s.next_cursor:void 0,enabled:a,gcTime:0,retry:Os,retryDelay:qs,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retryOnMount:!1}),auditAuthRequired:!a}}function B1(e,n,t){const{read:a,authorityToken:r,enabled:s}=Fs(e,"messages"),l=ht(),c=["team-bridge","owner-audit",e.accountId,e.tenantId,r,n,"messages"];return{...ws({queryKey:c,maxPages:6,initialPageParam:void 0,queryFn:async({pageParam:m,signal:h})=>{const p=await a(()=>Zi.messages(e,n,m),h),g=l.getQueryData(c);if(m!==void 0&&g&&g.pages.length>=6&&t&&!t(g.pages[0]))throw new dt({revert:!0});return p},getNextPageParam:(m,h,p)=>m.has_more&&m.next_before_seq!=null&&(p===void 0||m.next_before_seq<p)?m.next_before_seq:void 0,enabled:s,gcTime:0,retry:Os,retryDelay:qs,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retryOnMount:!1}),auditAuthRequired:!s,refetchLatest:()=>l.resetQueries({queryKey:c,exact:!0})}}function S1(e,n,t,a,r){const{read:s,authorityToken:l,enabled:c}=Fs(e,"replies");return{...Wc({queryKey:["team-bridge","owner-audit",e.accountId,e.tenantId,l,n,"replies",t],identity:{conversationId:n,rootId:t},read:(m,h,p,g)=>s(()=>Zi.replies(e,n,t,m==="desc"?void 0:h??0,m==="desc"?{beforeSeq:h,order:"desc",limit:p}:void 0),g),canEvict:a,enabled:c,retry:Os,retryDelay:qs,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retryOnMount:!1,isAtLiveEdge:r}),auditAuthRequired:!c}}const Wi=e=>e!=="loading"&&e!=="ready",Qc=u.createContext(null);function $s(e){if(e.auditAuthRequired)return"auth";if(e.isPending)return"loading";if(e.isError){const n=Jc(e.error);if(!e.data||n==="auth"||n==="permission"||n==="not-found")return n}return"ready"}const Yc=e=>s1(e,o("ui.ownerAudit.unnamed"));function za({state:e="error",retry:n,inset:t="px-3"}){return i.jsxs("div",{role:"alert",className:G("space-y-2 text-sm text-danger",t),children:[i.jsx("p",{children:o(e==="auth"?"ui.ownerAudit.auth_required":e==="permission"?"ui.ownerAudit.permission_refused":e==="not-found"?"ui.ownerAudit.not_found":e==="unavailable"?"ui.ownerAudit.unavailable":"ui.ownerAudit.error")}),e==="auth"&&i.jsx(Y,{variant:"ghost",asChild:!0,children:i.jsx("a",{href:"#/settings?section=radient",children:o("ui.ownerAudit.sign_in")})}),(e==="error"||e==="unavailable")&&i.jsx(Y,{variant:"ghost",onClick:n,children:o("ui.ownerAudit.retry")})]})}function E1({conversations:e,state:n,selectedId:t,onSelect:a,retry:r,hasMore:s=!1,loadingMore:l=!1,loadMore:c}){return ge(),n==="loading"?i.jsx("output",{className:"px-2 py-2 text-sm text-ink-muted",children:o("ui.ownerAudit.loading")}):Wi(n)?i.jsx(za,{state:n,retry:r,inset:"px-2"}):i.jsxs(i.Fragment,{children:[e.length===0&&i.jsx("p",{className:"px-2 py-2 text-sm text-ink-muted",children:o("ui.ownerAudit.empty_list")}),i.jsx("ul",{children:e.map(d=>i.jsx("li",{children:i.jsxs("button",{type:"button","aria-current":t===d.id?"page":void 0,className:G(ki,"text-ink-muted hover:bg-row-hover hover:text-ink",t===d.id&&"bg-row-selected text-ink"),onClick:()=>a(d),children:[i.jsx(Ds,{kind:d.kind}),i.jsx("span",{className:"min-w-0 flex-1 truncate",children:Yc(d)})]})},d.id))}),s&&i.jsx(Y,{variant:"ghost",disabled:l,onClick:c,children:o("ui.ownerAudit.more")})]})}function I1({scope:e,selectedId:n,onSelect:t}){const a=N1(e),r=[...new Map(a.data?.pages.flatMap(s=>s.conversations).map(s=>[s.id,s])??[]).values()];return i.jsx(E1,{conversations:r,selectedId:n,onSelect:t,state:$s(a),retry:()=>void a.refetch(),hasMore:a.hasNextPage,loadingMore:a.isFetchingNextPage,loadMore:()=>void a.fetchNextPage()})}function R1(){return{named:(e,n)=>o("ui.teamBridge.chief.label",{agent:e,person:n}),unnamed:e=>o("ui.teamBridge.chief.unnamed",{person:e})}}const C1={admitted:{variant:"success",copy:"ui.ownerAudit.admitted"},rejected:{variant:"danger",copy:"ui.ownerAudit.rejected"},not_screened:{variant:"info",copy:"ui.ownerAudit.not_screened"},unknown:{variant:"neutral",copy:"ui.ownerAudit.unknown_status"}};function Xc({attachmentScope:e,conversation:n,messages:t,people:a,renderReplies:r,density:s}){const l=new Map(t.map(d=>[d.id,d])),c=R1();return i.jsx(Aa,{messages:t.map(l1),labelFor:d=>c1(d,a,n.members,c),profileFor:d=>u1(d,a),tenantId:n.tenant_id,density:s,arrivalKey:`owner-audit:${n.tenant_id}:${n.id}`,arrivalsEnabled:!1,decorate:d=>{const m=l.get(d.id);if(!m)return;const h=r1(m,n.agent.account_id),p=h==="own"?null:C1[h],g=m.attachments?.length||m.attachment_count||0,b=(m.files??[]).map(Sc),f=Math.max(b.length,m.file_count??0);return{badge:p&&i.jsx(yi,{variant:p.variant,children:o(p.copy)}),withheldCopy:o("ui.ownerAudit.body_unavailable"),attachments:g>0||f>0?i.jsx(a1,{scope:Zy(e,n,m),attachments:m.attachments??[],count:g,compact:s==="compact",files:b,fileCount:f},JSON.stringify([e?.accountId,e?.tenantId,n.id,m.id])):void 0,after:r&&(m.reply_count??0)>0?r(m):void 0}}})}function T1({conversation:e}){ge();const n=e.agent.state;return n==="active"?i.jsx("p",{className:"mx-5 mt-4 text-meta text-ink-dim",children:o("ui.ownerAudit.active")}):i.jsx("p",{className:"mx-5 mt-4 border-hairline border-t pt-3 text-ink text-sm",children:n==="left"?o("ui.ownerAudit.left"):n==="removed"?o("ui.ownerAudit.removed"):o("ui.ownerAudit.window_unconfirmed")})}const Kl=Intl.ListFormat;function M1({names:e,locale:n}){const t=Kl?new Kl(n,{style:"short",type:"unit"}).formatToParts(e.map(s=>s.name)):e.map(s=>({type:"element",value:s.name})),a=[];let r="";for(const s of t)s.type==="literal"?r+=s.value:(a.push(r),r="");return i.jsx("ul",{className:"inline",children:e.map((s,l)=>i.jsxs("li",{className:"inline",children:[l>0&&i.jsx("span",{"aria-hidden":"true",children:a[l]}),i.jsx("span",{className:"text-ink",children:s.name})]},s.key))})}function A1({attachmentScope:e=null,conversation:n,messages:t,state:a,retry:r,hasMore:s=!1,loadingMore:l=!1,loadMore:c,renderReplies:d,readerAccountId:m,people:h=Zc,latestPageAvailable:p=!0,scrollHostRef:g}){const b=ge(),f=Va({resetKey:`${n.tenant_id}:${n.id}:${a}`,contentKey:`${t.length}:${t[0]?.id??""}:${t.at(-1)?.id??""}`,scrollElement:"root",preserveAnchor:!0,rowIds:t.map(k=>k.id),liveEdgeAvailable:p}),x=u.useMemo(()=>vs(f.rootRef,g),[f.rootRef,g]),v=(n.viewers??[]).filter(k=>k.account_id!==m);return i.jsxs("section",{className:"relative flex min-h-0 flex-1 flex-col","aria-label":o("ui.ownerAudit.title"),children:[i.jsxs("header",{className:"shrink-0 px-5 pb-2",children:[i.jsxs("div",{className:"flex h-11 items-center gap-2",children:[i.jsx("span",{className:"text-ink-dim",children:i.jsx(Ds,{kind:n.kind})}),i.jsx("h2",{className:"min-w-0 flex-1 truncate font-semibold text-[15px] text-ink",children:Yc(n)}),!Wi(a)&&i.jsxs(Y,{variant:"ghost",size:"sm",onClick:r,children:[i.jsx(Wu,{"aria-hidden":"true"}),o("ui.ownerAudit.refresh")]})]}),i.jsxs(Fi,{variant:"neutral",icon:i.jsx(Rd,{"aria-hidden":"true"}),className:G(rd,"items-start border-transparent"),children:[i.jsxs("p",{className:"text-body-sm text-ink-muted",children:[i.jsx("span",{children:o("ui.ownerAudit.read_only")}),i.jsx("span",{className:"ms-1",children:o("ui.ownerAudit.disclosure")})]}),v.length>0&&i.jsxs("div",{className:"text-body-sm text-ink-muted",children:[i.jsx("span",{className:"me-1",children:o("ui.ownerAudit.viewers_label")}),i.jsx(M1,{locale:b,names:v.map((k,w)=>({key:`${k.account_id}:${k.agent_member_key}:${w}`,name:k.display_label||o("ui.ownerAudit.unknown_sender")}))})]})]})]}),a==="ready"&&s&&i.jsxs("aside",{className:"flex shrink-0 flex-wrap items-center gap-x-2 border-b border-hairline px-5 py-2",children:[i.jsx("p",{className:"text-meta text-ink-dim",children:o("ui.ownerAudit.page_cutoff")}),i.jsx(Y,{variant:"ghost",size:"sm",onClick:c,disabled:l,children:o("ui.ownerAudit.older")})]}),i.jsx("div",{ref:x,className:"min-h-0 flex-1 overflow-auto pb-5",style:{overflowAnchor:"none"},children:i.jsx("div",{className:"min-h-full",children:a==="loading"?i.jsx("output",{className:"block px-5 py-8 text-[13px] text-ink-muted",children:o("ui.ownerAudit.loading")}):Wi(a)?i.jsx("div",{className:"py-4",children:i.jsx(za,{state:a,retry:r,inset:"px-5"})}):i.jsxs(i.Fragment,{children:[t.length===0?i.jsx("p",{className:"px-5 py-8 text-[13px] text-ink-muted",children:o("ui.ownerAudit.empty_history")}):i.jsx(Qc.Provider,{value:f.hold,children:i.jsx(Xc,{attachmentScope:e?.accountId===m?e:null,conversation:n,messages:t,people:h,renderReplies:d})}),i.jsx(T1,{conversation:n})]})})}),a==="ready"&&(p?f.newMessages>0?i.jsx(Y,{className:"absolute bottom-4 right-4",onClick:f.pin,children:o("ui.teamBridge.notify.count",{count:f.newMessages})}):null:i.jsx(Y,{className:"absolute bottom-4 right-4",onClick:r,children:o("ui.ownerAudit.refresh")}))]})}const Zc=[];function z1({scope:e,conversation:n,root:t,people:a}){const r=u.useRef(null),s=u.useRef(()=>!0),l=S1(e,n.id,t.id,p=>Vc(p,r.current),()=>s.current()),c=$s(l),d=c==="loading"?"loading":Wi(c)&&(!l.data||!l.keepWindowOnError)?"error":"ready",m=Va({resetKey:`${e.accountId}:${e.tenantId}:${n.id}:${t.id}:${l.mode}:${d}`,contentKey:`${l.replies.length}:${l.replies.at(-1)?.id??""}`,scrollElement:"root",preserveAnchor:!0,rowIds:l.replies.map(p=>p.id),liveEdgeAvailable:l.latestPageAvailable});s.current=m.isPinned;const h=u.useMemo(()=>vs(m.rootRef,r),[m.rootRef]);return i.jsxs("div",{className:"relative min-h-0",children:[l.mode==="legacy"&&i.jsx("p",{className:"py-1 text-meta text-ink-dim",children:o("ui.teamBridge.replies.legacy_window")}),i.jsxs("div",{ref:h,className:"h-80 min-h-0 w-full min-w-0 overflow-x-hidden overflow-y-auto","data-audit-reply-window":!0,children:[l.mode==="desc"&&d==="ready"&&l.hasNextPage&&i.jsx(Y,{variant:"ghost",size:"sm",disabled:l.isFetchingNextPage,onClick:()=>{m.hold(),l.fetchNextPage()},children:o("ui.ownerAudit.older_replies")}),d==="loading"?i.jsx("output",{className:"block py-1 text-meta text-ink-muted",children:o("ui.ownerAudit.loading")}):d==="error"?i.jsx(za,{state:Wi(c)?c:"error",retry:()=>void l.resetLatest()}):l.replies.length===0?i.jsx("p",{className:"py-2 text-meta text-ink-muted",children:o("ui.ownerAudit.empty_replies")}):i.jsx(Xc,{attachmentScope:e,conversation:n,messages:l.replies,people:a,density:"compact"}),l.mode==="legacy"&&l.hasNextPage&&i.jsx(Y,{variant:"ghost",size:"sm",disabled:l.isFetchingNextPage,onClick:()=>void l.fetchNextPage(),children:o("ui.ownerAudit.more")})]}),l.mode==="desc"&&!l.latestPageAvailable&&i.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>void l.resetLatest(),children:o("ui.ownerAudit.refresh")}),l.latestPageAvailable&&m.newMessages>0&&i.jsx(Y,{variant:"ghost",size:"sm",onClick:m.pin,children:o("ui.teamBridge.notify.count",{count:m.newMessages})}),l.keepWindowOnError&&i.jsx(za,{state:Jc(l.error),retry:()=>void l.fetchNextPage()})]})}function P1({scope:e,conversation:n,root:t,people:a}){const[r,s]=u.useState(!1),l=u.useContext(Qc);return i.jsxs("details",{className:"mt-1","data-audit-reply-disclosure":!0,onToggle:c=>{c.currentTarget.open&&l?.(),s(c.currentTarget.open)},children:[i.jsx("summary",{className:"inline-flex min-h-[24px] w-fit cursor-pointer items-center text-[12px] text-accent",children:o("ui.ownerAudit.replies")}),r&&i.jsx(z1,{scope:e,conversation:n,root:t,people:a})]})}function D1({scope:e,conversation:n}){const t=u.useRef(null),a=B1(e,n.id,l=>{const c=t.current;if(!c)return!1;const d=c.getBoundingClientRect(),m=new Set(l.messages.map(h=>h.id));return![...c.querySelectorAll("[data-message-id]")].some(h=>{const p=h.getBoundingClientRect();return m.has(h.dataset.messageId??"")&&p.bottom>d.top&&p.top<d.bottom})}),s=ud(n.tenant_id,!0,e.accountId).data?.members??Zc;return i.jsx(A1,{attachmentScope:e,conversation:n,messages:o1(a.data?.pages.map(l=>l.messages)??[]),state:$s(a),retry:()=>void a.refetchLatest(),latestPageAvailable:a.data?.pageParams[0]===void 0,scrollHostRef:t,hasMore:a.hasNextPage,loadingMore:a.isFetchingNextPage,loadMore:()=>void a.fetchNextPage(),renderReplies:l=>i.jsx(P1,{scope:e,conversation:n,root:l,people:s}),readerAccountId:e.accountId,people:s})}function L1(){return ge(),i.jsxs(i.Fragment,{children:[i.jsx("h2",{className:"px-2 py-2 font-medium text-meta text-ink-dim tracking-wide",children:o("ui.ownerAudit.title")}),i.jsx("p",{className:"px-2 pb-2 text-meta text-ink-dim",children:o("ui.ownerAudit.read_only")})]})}function O1({accountId:e,enabled:n,scopeKey:t,organizations:a,onSelect:r}){const[s,l]=u.useState(null),c=s?.scopeKey===t&&a.some(d=>d.tenantId===s.conversation.tenant_id)?s.conversation:null;if(!(!n||!e))return{active:c!==null,clear:()=>l(null),panel:c&&i.jsx(D1,{scope:{accountId:e,tenantId:c.tenant_id},conversation:c},`${e}:${c.tenant_id}:${c.id}`),rail:d=>i.jsxs("section",{className:G("mt-4",va),"aria-label":o("ui.ownerAudit.title"),children:[i.jsx(L1,{}),a.map((m,h)=>i.jsxs("div",{children:[a.length>1&&i.jsx(os,{id:`team-bridge-audit-org-${m.tenantId}`,name:m.name,first:h===0}),i.jsx(I1,{scope:{accountId:e,tenantId:m.tenantId},selectedId:c?.tenant_id===m.tenantId?c.id:void 0,onSelect:p=>{d(),r(),l({scopeKey:t,conversation:p})}})]},`${e}:${m.tenantId}`))]})}}const Ul=200;let Hl=0;const q1=()=>(Hl+=1,Hl),Tt=bs()(e=>({entries:[],add:n=>e(t=>{const a=[...t.entries,n],r=a.filter(l=>l.status==="sent");if(r.length<=Ul)return{entries:a};const s=new Set(r.slice(0,r.length-Ul).map(l=>l.localId));return{entries:a.filter(l=>!s.has(l.localId))}}),patch:(n,t)=>e(a=>({entries:a.entries.map(r=>r.localId===n?{...r,...t}:r)})),remove:n=>e(t=>({entries:t.entries.filter(a=>a.localId!==n)}))}));function F1(e,n){return n.owner?e.filter(t=>t.owner===n.owner&&(n.conversationId!==void 0&&t.conversationId!==void 0?t.conversationId===n.conversationId:t.lane===n.lane)):[]}function $1(e,n,t,a){const r=new Map,s=new Set,l=[...n].sort((f,x)=>f.order-x.order),c=new Set(e.map(f=>f.id));for(const f of l)f.serverId&&c.has(f.serverId)&&(r.set(f.serverId,f),s.add(f.localId));const d=[...e].sort((f,x)=>f.seq-x.seq);for(const f of l){if(s.has(f.localId)||f.serverId||!t)continue;const x=d.find(v=>!r.has(v.id)&&v.sender.account_id===t.account_id&&v.sender.kind===t.kind&&v.body===f.body&&v.seq>f.baselineSeq);x&&(r.set(x.id,f),s.add(f.localId))}let m=e.reduce((f,x)=>Math.max(f,x.seq),-1);const h=new Set(e.map(f=>f.id));for(const f of l)f.serverRow&&!h.has(f.serverRow.id)&&(m=Math.max(m,f.serverRow.seq));const p=e.reduce((f,x)=>Math.max(f,x.seq),-1),g=new Map,b=[];for(const f of l)s.has(f.localId)||!t||f.serverRow&&f.serverRow.seq<=p||(f.serverRow||(m+=1),g.set(f.localId,f),b.push({...f.serverRow??{conversation_id:a??f.conversationId??"",sender:t,body:f.body,origin:"human",created_at:f.createdAt},id:f.localId,seq:f.serverRow?.seq??m}));return{messages:b.length===0?[...e]:[...e,...b],keyOf:f=>r.get(f.id)?.localId??f.id,localOf:f=>g.get(f.id),localCount:b.length}}const Gl=e=>`conversation:${e}`,Un=new Map;function K1(e,n){const t=Un.get(e)??{tail:Promise.resolve()};Un.set(e,t);const a=t.tail.catch(()=>{}).then(()=>n(t));return t.tail=a,a.catch(()=>{}).then(()=>{Un.get(e)===t&&t.tail===a&&Un.delete(e)}),a}function U1(e,n,t){const a=Un.get(e)??{tail:Promise.resolve()};a.resolved=t,Un.set(e,a),Un.has(n)||Un.set(n,a)}ds(()=>{Un.clear(),Tt.setState({entries:[]})});function H1(e){const n=Vu.safeParse(e);return n.success?n.data:void 0}const G1=2e3,Wl=3e3,Vl=new Map,Oi=e=>{let n=Vl.get(e);return n||(n={top:0,targetKey:null,railPickAt:0},Vl.set(e,n)),n},Jl=e=>e?.querySelector("[data-radix-scroll-area-viewport]")??null;function W1(e,n){const[t,a]=u.useState(null),r=u.useRef(null),s=u.useRef(!1);if(r.current===null||r.current.key!==e){const l=e===null?null:Oi(e);r.current={key:e,restore:l&&l.top>0&&!s.current?l.top:null,restoreUntil:Date.now()+Wl,reveal:l!==null&&n!==null&&!s.current&&Date.now()-l.railPickAt>G1&&l.targetKey!==n,viewport:null}}return u.useLayoutEffect(()=>{if(e===null)return;const l=Oi(e);l.railPickAt=0,n!==null&&(l.targetKey=n)},[e,n]),u.useLayoutEffect(()=>{const l=Jl(t),c=r.current;if(!(!l||!c)){if(c.viewport!==l){const d=c.viewport;if(c.viewport=l,d!==null&&c.key!==null&&!s.current){const m=Oi(c.key).top;m>0&&(c.restore=m,c.restoreUntil=Date.now()+Wl)}}if(c.restore!==null)if(l.scrollTop=c.restore,Math.abs(l.scrollTop-c.restore)<1||Date.now()>c.restoreUntil)c.restore=null;else return;if(c.reveal){const d=l.querySelector('[aria-current="page"]');if(!d)return;c.reveal=!1;const m=l.getBoundingClientRect(),h=d.getBoundingClientRect();(h.bottom<=m.top||h.top>=m.bottom)&&d.scrollIntoView?.({block:"nearest"})}}}),u.useEffect(()=>{const l=Jl(t);if(!t||!l||e===null)return;const c=()=>{r.current?.restore==null&&(Oi(e).top=l.scrollTop)},d=()=>{s.current=!0,r.current&&(r.current.restore=null,r.current.reveal=!1)};return l.addEventListener("scroll",c,{passive:!0}),t.addEventListener("wheel",d,{passive:!0}),t.addEventListener("touchstart",d,{passive:!0}),t.addEventListener("pointerdown",d),t.addEventListener("keydown",d),()=>{l.removeEventListener("scroll",c),t.removeEventListener("wheel",d),t.removeEventListener("touchstart",d),t.removeEventListener("pointerdown",d),t.removeEventListener("keydown",d)}},[t,e]),{ref:a,onClickCapture:()=>{e!==null&&(Oi(e).railPickAt=Date.now())}}}async function V1(e){const n=async(r,s)=>{e.onCreated(r);const l=s.tenantId??e.tenantId,c=e.stageHeld?await e.stageHeld(r,l):[...e.attachmentIds??[]],d=await e.schedule({tenant_id:l,conversation_id:r,client_ref:e.clientRef,body:e.body,send_at:e.sendAt,...c.length>0?{attachment_ids:c}:{},...e.threadRootId?{thread_root_id:e.threadRootId}:{}});return e.onScheduled?.(r),d};if(e.conversationId)return n(e.conversationId,{tenantId:e.tenantId});const t=Cd(e.recipients);if(!t)throw new Error("schedule requires recipients");const a=`${e.tenantId}|${t.kind}|${e.recipients.map(on).sort().join(",")}`;return Td({draftKey:a,input:t,body:e.body,clientRef:e.clientRef,tenantId:e.tenantId,remembered:e.remembered,create:e.create,post:n})}function J1(e,n){return!e&&!!(n&&n>=400&&n<500&&n!==409)}function Lt(e){const n=new Date(e);return new Date(n.getTime()-n.getTimezoneOffset()*6e4).toISOString().slice(0,16)}async function Q1(e,n){const t=await Promise.allSettled(e.map(n)),a=[],r=[];return t.forEach((s,l)=>{s.status==="fulfilled"?a.push(...s.value.scheduled):r.push(e[l])}),{scheduled:a.sort((s,l)=>s.send_at.localeCompare(l.send_at)),failedTenants:r}}function Y1(e,n,t,a){const r=(e.attachments??[]).map(c=>c.id),s=a!==void 0&&!ya(a,r),l=t!==void 0&&t.trim()===""&&t!==e.body&&(a?.length??0)>0;return{...t!==void 0&&t!==e.body?{body:t}:{},...n!==e.send_at?{send_at:n}:{},...s||l?{attachment_ids:[...a??[]]}:{}}}function ya(e,n){return e.length===n.length&&e.every((t,a)=>t===n[a])}function X1(e,n,t){const a=t.body.trim()!==e.body,r=t.when!==Lt(e.sendAt),s=new Set(t.kept.map(c=>c.id)),l=new Set(e.attachments.map(c=>c.id).filter(c=>!s.has(c)));return{body:a&&n.body===e.body?t.body:n.body,when:r&&n.sendAt===e.sendAt?t.when:Lt(n.sendAt),kept:n.attachments.filter(c=>!l.has(c.id))}}function Z1(e,n,t){const a=t.body.trim()!==e.body,r=n.body!==e.body,s=t.when!==Lt(e.sendAt),l=n.sendAt!==e.sendAt,c=new Set(qr(e.attachments)),d=new Set(qr(n.attachments)),m=new Set(qr(t.kept));return{bodyReplaced:a&&r&&t.body.trim()!==n.body,bodyChanged:!a&&r,...a&&r&&t.body.trim()!==n.body?{lostBody:t.body}:{},timeReplaced:s&&l&&t.when!==Lt(n.sendAt),timeChanged:!s&&l,imagesAdded:[...d].filter(h=>!c.has(h)).length,imagesRemoved:[...c].filter(h=>!d.has(h)&&m.has(h)).length}}function ex(e){return e.bodyReplaced||e.bodyChanged||e.timeReplaced||e.timeChanged||e.imagesAdded>0||e.imagesRemoved>0}const qr=e=>e.map(n=>n.id);function nx(e){return e instanceof In&&e.status===409&&e.code==="invalid_transition"&&typeof e.detail=="object"&&e.detail!==null&&e.detail.details?.rule==="concurrent_edit"?"conflict":"other"}async function tx(e,n,t,a,r){if(typeof r!="number")return e(n,t,a);try{return await e(n,t,{...a,expected_version:r})}catch(s){if(s instanceof In&&s.status===422&&s.code==="invalid_request")return e(n,t,a);throw s}}function ix(e,n,t){return e.type==="compose"&&n===e?{type:"conversation",id:t}:null}function ax(e,n){return e?{bodyReplaced:e.bodyReplaced||n.bodyReplaced,bodyChanged:(e.bodyChanged||n.bodyChanged)&&!n.bodyReplaced,lostBody:n.lostBody??e.lostBody,timeReplaced:e.timeReplaced||n.timeReplaced,timeChanged:(e.timeChanged||n.timeChanged)&&!n.timeReplaced,imagesAdded:e.imagesAdded+n.imagesAdded,imagesRemoved:e.imagesRemoved+n.imagesRemoved}:n}const Ql="rounded-md border border-control bg-surface p-2 text-ink disabled:border-hairline disabled:bg-sunken disabled:text-ink-muted",di=e=>(e??[]).map(n=>n.id);function eu({open:e,onOpenChange:n,busy:t,onSchedule:a,initialBody:r,initialSendAt:s,initialAttachments:l,accountId:c,returnFocus:d,unavailable:m=!1,initialVersion:h}){const p=ge(),g=u.useId(),[b,f]=u.useState(s?Lt(s):""),[x,v]=u.useState(r??""),[k,w]=u.useState(l??[]),[j,R]=u.useState(null),[N,_]=u.useState(null),S=u.useRef(null),C=u.useRef(null),T=u.useRef(null),ee=u.useRef(!1);u.useEffect(()=>{const A=ee.current;if(ee.current=e,e){d?.current&&(T.current=d.current);return}if(!A)return;const D=d?.current??T.current;T.current=null,D?.isConnected&&D.focus()},[e,d]);const O=!!(s&&b===Lt(s)),q=O?s:sl(b),K=!ya(di(k),di(l)),I=r===void 0||x.trim()!==r||!O||K,V=u.useRef(!1);u.useEffect(()=>{const A=e&&!V.current;V.current=e;const D=s===void 0?null:{body:r??"",sendAt:s,attachments:l??[],...typeof h=="number"?{version:h}:{}};if(A){S.current=D,v(r??""),w(l??[]),f(s?Lt(s):""),_(null),R(null);return}const J=S.current;if(!e||m||!J||!D)return;if(J.body===D.body&&J.sendAt===D.sendAt&&ya(di(J.attachments),di(D.attachments))){S.current=D;return}S.current=D;const L={body:x,when:b,kept:k},$=X1(J,D,L),le=Z1(J,D,L);v($.body),f($.when),w($.kept),_(null),ex(le)&&($.body.trim()!==L.body.trim()||$.when!==L.when||!ya(di($.kept),di(k)))&&R(fe=>({kind:"conflict",report:ax(fe?.kind==="conflict"?fe.report:null,le)}))},[e,m,r,s,l,h,x,b,k]);const U=j?.kind==="conflict"?j.report:void 0,z=U?.lostBody!==void 0&&x.trim()!==U.lostBody.trim()?U.lostBody:void 0,B=j?.kind==="conflict"&&!I,F=Intl.DateTimeFormat().resolvedOptions().timeZone;return i.jsx(qt,{open:e,onOpenChange:A=>{t||(_(null),R(null),n(A))},children:i.jsxs(Ft,{className:"top-[12vh] h-[min(84vh,40rem)] translate-y-0",showClose:!m,onCloseAutoFocus:A=>{const D=d?.current??T.current;T.current=null,!(!D||!D.isConnected)&&(A.preventDefault(),D.focus())},children:[i.jsxs(Ud,{children:[i.jsx($t,{children:o(m?"ui.teamBridge.schedule.edit_gone_title":"ui.teamBridge.schedule.title")}),i.jsx(Kt,{children:o("ui.teamBridge.schedule.timezone",{timezone:F})})]}),i.jsxs("div",{"data-schedule-body":"",className:"-mx-1 flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-1",children:[m?i.jsx(Fi,{variant:"warning",role:"alert",children:i.jsx("p",{children:o("ui.teamBridge.schedule.edit_gone")})}):j?.kind==="conflict"?i.jsxs(Fi,{variant:"warning",role:"alert",children:[i.jsx(hg,{children:o("ui.teamBridge.schedule.edit_conflict")}),z!==void 0&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_body_replaced")}),U?.bodyChanged&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_body_changed")}),U?.timeReplaced&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_time_replaced")}),U?.timeChanged&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_time_changed")}),(U?.imagesAdded??0)>0&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_images_added",{count:U?.imagesAdded??0})}),(U?.imagesRemoved??0)>0&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_images_removed",{count:U?.imagesRemoved??0})}),i.jsx("p",{children:o(B?"ui.teamBridge.schedule.conflict_nothing_left":"ui.teamBridge.schedule.conflict_review")}),z!==void 0&&i.jsx("div",{children:i.jsx(Y,{variant:"outline",size:"sm",disabled:t,onClick:()=>{v(z),_(null),C.current?.focus()},children:o("ui.teamBridge.schedule.conflict_restore_body")})})]}):j?.kind==="failed"&&i.jsx(Fi,{variant:"danger",role:"alert",children:i.jsx("p",{children:o(s===void 0?"ui.teamBridge.schedule.failed":"ui.teamBridge.schedule.edit_failed")})}),r!==void 0&&i.jsxs("label",{className:"flex flex-col gap-1 text-sm text-ink",children:[o("ui.teamBridge.schedule.edit_body"),i.jsx("textarea",{ref:C,value:x,onChange:A=>{v(A.target.value),_(null)},disabled:t||m,className:`${Ql} ${m?"resize-none":""}`})]}),k.length>0&&i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsx(zc,{attachments:k,accountId:c}),!m&&i.jsx(Y,{variant:"ghost",size:"sm",disabled:t,onClick:()=>{w([]),_(null)},children:o("ui.teamBridge.attachments.remove_all")})]}),i.jsx("label",{htmlFor:g,className:"text-sm text-ink",children:o("ui.teamBridge.schedule.when")}),i.jsx("input",{id:g,type:"datetime-local",value:b,disabled:t||m,onChange:A=>{f(A.target.value),_(null)},"aria-describedby":m?void 0:`${g}-help`,className:Ql}),!m&&i.jsx("p",{id:`${g}-help`,className:"text-sm text-ink-muted",children:o("ui.teamBridge.schedule.window")}),!m&&b&&!q&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.schedule.invalid")}),!m&&N&&i.jsx("p",{"aria-live":"polite",className:"text-sm text-ink",children:o("ui.teamBridge.schedule.confirm",{date:new Intl.DateTimeFormat(p,{dateStyle:"full",timeStyle:"long"}).format(new Date(N))})})]}),m||B?i.jsx(Y,{onClick:()=>n(!1),children:o("ui.common.actions.close")}):i.jsx(Y,{disabled:!q||!I||t||r!==void 0&&!x.trim()&&k.length===0,onClick:()=>{const A=O?s:sl(b);if(!A){_(null);return}if(N!==A){_(A);return}R(null),a(A,r===void 0?void 0:x.trim(),l===void 0?void 0:k.map(D=>D.id),S.current?.version).then(()=>{n(!1),_(null)}).catch(D=>{const J=nx(D);R(L=>L?.kind==="conflict"?L:J==="conflict"?{kind:"conflict",report:null}:{kind:"failed"})})},children:o(N?"ui.teamBridge.schedule.confirm_action":"ui.teamBridge.schedule.review")})]})})}function rx({accountId:e,tenantIds:n,organizationNames:t,conversationNames:a,readOnly:r=!1}){const s=Ka({queryKey:["team-bridge","scheduled",e,...[...n].sort()],queryFn:()=>Q1(n,Je.scheduledList),staleTime:0,gcTime:0});return i.jsx(sx,{state:s.isPending?"loading":s.isError||n.length>0&&s.data?.failedTenants.length===n.length?"error":"ready",messages:s.data?.scheduled??[],failedTenants:s.data?.failedTenants??[],organizationNames:t,conversationNames:a,readOnly:r,refresh:()=>s.refetch(),accountId:e})}function sx({state:e,messages:n,failedTenants:t=[],organizationNames:a={},conversationNames:r={},readOnly:s=!1,refresh:l,accountId:c}){const[d,m]=u.useState(null);u.useEffect(()=>{d&&!n.some(k=>k.id===d)&&m(null)},[n,d]);const[h,p]=u.useState(null);u.useEffect(()=>{if(!h)return;const k=n.find(w=>w.id===h.id);k&&k!==h&&p(k)},[n,h]);const g=h&&!n.some(k=>k.id===h.id)?h:null,b=g&&e==="ready"&&!t.includes(g.tenant_id)?g:null,f=g&&!b?g:null,x=g?[...n,g].sort((k,w)=>k.send_at.localeCompare(w.send_at)):n,v=(k,w=!1)=>i.jsx(ox,{message:k,gone:k===b,detached:w,onEditingChange:j=>p(j?k:null),refresh:l,organizationNames:a,conversationNames:r,onCancelFailure:()=>m(k.id),onCancelSuccess:()=>m(null),readOnly:s,accountId:c},k.id);return i.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-5","aria-label":o("ui.teamBridge.schedule.list"),children:[i.jsx("h2",{className:"text-lg font-medium text-ink",children:o("ui.teamBridge.schedule.list")}),e==="ready"&&t.map(k=>i.jsxs("div",{role:"alert",className:"text-sm text-danger",children:[i.jsxs("p",{children:[o("ui.teamBridge.schedule.load_failed")," ",i.jsx("span",{children:a[k]?.trim()||k})]}),i.jsx(Y,{onClick:()=>{l()},children:o("ui.teamBridge.list.retry")})]},k)),d&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.schedule.cancel_failed")}),e==="loading"?i.jsx(Ze,{size:"sm",label:o("ui.teamBridge.schedule.loading")}):e==="error"?i.jsxs("div",{role:"alert",children:[i.jsx("p",{children:o("ui.teamBridge.schedule.load_failed")}),i.jsx(Y,{onClick:()=>{l()},children:o("ui.teamBridge.list.retry")})]}):x.length===0&&i.jsx("p",{className:"text-ink-muted",children:o("ui.teamBridge.schedule.empty")}),(e==="ready"?x:f?[f]:[]).map(k=>v(k,e!=="ready"))]})}function ox({message:e,refresh:n,readOnly:t=!1,organizationNames:a={},conversationNames:r={},onCancelFailure:s,accountId:l,onCancelSuccess:c,gone:d=!1,detached:m=!1,onEditingChange:h}){const p=ge(),[g,b]=u.useState(!1),[f,x]=u.useState(!1),v=_=>{x(_),h?.(_)},k=u.useRef(null),w=u.useId(),j=[r[e.conversation_id]?.trim(),a[e.tenant_id]?.trim()].filter(Boolean).join(" · "),R=i.jsx(eu,{open:f,onOpenChange:v,returnFocus:k,busy:g,unavailable:d||e.status==="sending",initialBody:e.body,initialSendAt:e.send_at,initialAttachments:e.attachments,initialVersion:e.version,accountId:l,onSchedule:async(_,S,C,T)=>{b(!0);try{await tx(Je.scheduledUpdate,e.tenant_id,e.id,Y1(e,_,S,C),T),await n()}catch(ee){throw await n(),ee}finally{b(!1)}}}),N=d||m?null:i.jsxs("article",{className:"rounded-lg bg-elevated p-3 text-ink",children:[i.jsx("p",{className:"text-sm text-ink-muted",children:new Intl.DateTimeFormat(p,{dateStyle:"medium",timeStyle:"long"}).format(new Date(e.send_at))}),j&&i.jsx("p",{id:w,className:"text-sm text-ink-muted",children:j}),e.body.trim()!==""&&i.jsx(Ed,{children:e.body}),(e.attachments?.length??0)>0&&i.jsx(zc,{attachments:e.attachments??[],accountId:l}),e.status==="sending"?i.jsx("p",{"aria-live":"polite",children:o("ui.teamBridge.schedule.sending")}):i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsx(Y,{ref:k,disabled:g||t,onClick:()=>v(!0),children:o("ui.teamBridge.schedule.reschedule")}),i.jsx(Y,{variant:"ghost",className:"h-auto min-h-8 max-w-full whitespace-normal text-left text-danger hover:text-danger",disabled:g||t,"aria-describedby":j?w:void 0,onClick:()=>{b(!0),Je.scheduledCancel(e.tenant_id,e.id).then(()=>(c?.(),n())).catch(()=>{s?.(),n()}).finally(()=>b(!1))},children:o("ui.teamBridge.schedule.cancel")})]})]});return i.jsxs(i.Fragment,{children:[N,R]})}const lx=["png","jpg","jpeg","gif","webp","heic","bmp","avif"],nu=/^data:([^;,]+)(;base64)?,([\s\S]*)$/;function dx(e){if(e.startsWith("data:")){const n=nu.exec(e);return n?{kind:"dataUrl",dataUrl:e,mime:n[1]}:null}return e.trim()===""?null:{kind:"path",path:e}}async function cx(e){if(e.kind==="path"){const t=await window.api?.readFile?.(e.path,"base64");if(!t?.success)return{ok:!1,why:"read"};try{return{ok:!0,bytes:Yl(t.data)}}catch{return{ok:!1,why:"read"}}}const n=nu.exec(e.dataUrl);if(!n)return{ok:!1,why:"unsupported"};if(!n[2])return{ok:!1,why:"unsupported"};try{return{ok:!0,bytes:Yl(n[3])}}catch{return{ok:!1,why:"read"}}}function Yl(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a<n.length;a+=1)t[a]=n.charCodeAt(a);return t}const Xl=120;function Zl(e,n,t){const a=e.startsWith("data:")?So(e):ux(So(e));return t<=1?a:`${a} · ${o("ui.teamBridge.attachments.position",{index:String(n+1),count:String(t)})}`}const ux=e=>e.length<=Xl?e:`${e.slice(0,Xl-1)}…`,mx=e=>{if(e.kind==="dataUrl")return e.mime.startsWith("image/");const n=e.path.split(".").pop()?.toLowerCase()??"";return lx.includes(n)};async function hx(e){const{paths:n,accountId:t,tenantId:a,conversationId:r,capability:s}=e,l=[],c=[];if(n.length===0)return{ids:l,failures:c};if(!s){for(let m=0;m<n.length;m+=1)c.push({name:Zl(n[m],m,n.length),reason:"unsupported"});return{ids:l,failures:c}}const d=n.length;for(const[m,h]of n.entries()){const p=Zl(h,m,d),g=dx(h);if(g===null||!mx(g)){c.push({name:p,reason:"unsupported"});continue}const b=await cx(g);if(!b.ok){c.push({name:p,reason:b.why});continue}const f=Ss(b.bytes);if(f===null){c.push({name:p,reason:"unsupported"});continue}let x;try{x=(await gc(new Blob([b.bytes]),s.max_bytes)).bytes}catch(v){const k=f==="image/png"||f==="image/jpeg",w=v instanceof ut?v.reason:null;c.push({name:p,reason:w==="unsupported"&&k?"read":"unsupported"});continue}try{const v=await Je.uploadAttachment(a,r,x,t);l.push(v.id)}catch{c.push({name:p,reason:"upload"})}}return{ids:l,failures:c}}const ed=()=>typeof document<"u"&&document.visibilityState==="visible"&&document.hasFocus();function gx(){const[e,n]=u.useState(ed);return u.useEffect(()=>{const t=()=>n(ed());return window.addEventListener("focus",t),window.addEventListener("blur",t),document.addEventListener("visibilitychange",t),t(),()=>{window.removeEventListener("focus",t),window.removeEventListener("blur",t),document.removeEventListener("visibilitychange",t)}},[]),e}let nd=!1,Fr=0;const qi=[];function px({conversationId:e,tenantId:n,enabled:t,onMessageSeqAdvance:a,api:r=Je,windowActive:s}){const l=gx(),c=s??l,d=e&&n?`${n}\0${e}`:"",[m,h]=u.useState({key:"",entries:qi}),p=m.key===d?m.entries:qi,[g,b]=u.useState(()=>Date.now()),f=u.useRef(r);f.current=r;const x=u.useRef(a);x.current=a;const v=u.useRef(null),k=u.useRef({key:"",nextAt:0,pollMs:Er,failures:0}),w=t&&c&&!!e&&!!n;return u.useEffect(()=>{if(!w||!e||!n){h({key:"",entries:qi});return}const j=`${n}\0${e}`,R=O=>h({key:j,entries:O});v.current?.key!==j&&(v.current=null);const N=k.current;N.key!==j&&(N.key=j,N.nextAt=0,N.pollMs=Er,N.failures=0);let _=!1,S=null;const C=O=>{_||(N.nextAt=Date.now()+Math.max(0,O),S=setTimeout(T,Math.max(0,O)))},T=async()=>{if(S=null,nd)return;const O=Fr-Date.now();if(O>0){C(O);return}try{const q=await f.current.typing(e,n);if(_)return;const K=Date.now(),I=Ca(q.poll_after_ms,Er);if(N.pollMs=I,N.failures=0,!q.enabled){R(qi),Fr=K+I,C(I);return}R(yg(q.typers,K)),b(K);const V=q.message_seq;if(V!==void 0){const U=v.current;U&&U.key===j&&V>U.seq&&x.current?.(V),(!U||U.key!==j||V>U.seq)&&(v.current={key:j,seq:V})}C(I)}catch(q){if(_)return;R(qi);const K=q;if(K?.code==="outdated_hub"){nd=!0;return}let I;K?.status===429?I=Ca(Wd(q),Hr):K?.status===503?I=Hr:(N.failures+=1,I=xg(N.failures,N.pollMs)),Fr=Date.now()+I,C(I)}},ee=N.nextAt-Date.now();return ee>0?C(ee):T(),()=>{_=!0,S!==null&&clearTimeout(S)}},[w,e,n]),u.useEffect(()=>{const j=bg(p,g);if(j===null)return;const R=setTimeout(()=>b(Date.now()),j-g);return()=>clearTimeout(R)},[p,g]),{entries:p,now:g}}const tu="",iu="",ci=e=>`${tu}${e}${iu}`,fx=new RegExp(`${tu}(\\d)${iu}`);function kx(e){switch(jg(e).form){case"none":return null;case"one":return o("ui.teamBridge.typing.one",{first:ci(0)});case"two":return o("ui.teamBridge.typing.two",{first:ci(0),second:ci(1)});case"three":return o("ui.teamBridge.typing.three",{first:ci(0),second:ci(1),third:ci(2)});case"several":return o("ui.teamBridge.typing.several")}}function wx(e,n){const t=[];let a=e,r=0;for(;;){const s=fx.exec(a);if(!s)break;s.index>0&&t.push(a.slice(0,s.index)),t.push(i.jsx("strong",{className:"inline-block max-w-[16ch] truncate align-bottom font-semibold text-ink-muted",children:n[Number(s[1])]??""},r++)),a=a.slice(s.index+s[0].length)}return a&&t.push(a),t}const bx=({names:e,scope:n,className:t})=>{ge();const a=kx(e);return i.jsx("output",{"aria-live":"polite","aria-atomic":"true","data-team-bridge-typing":n,"data-typing-count":e.length,className:G("block h-4 truncate ps-3 text-meta-sm leading-4 text-ink-dim",t),children:a?wx(a,e):null})},au=u.createContext(null),yx=({conversationId:e,tenantId:n,selfAccountId:t,open:a,threadRootId:r,labelFor:s,api:l,windowActive:c,children:d})=>{const m=u.useContext(Zh),h=u.useCallback(()=>{!m||!e||!n||(m.invalidateQueries({queryKey:[...Rn.all,"messages",n,e]}),r&&m.invalidateQueries({predicate:({queryKey:f})=>f[0]===Rn.all[0]&&f[1]==="replies"&&f.includes(e)&&f.includes(r)}))},[m,e,n,r]),{entries:p,now:g}=px({conversationId:e,tenantId:n,enabled:a,onMessageSeqAdvance:h,api:l,windowActive:c}),b=u.useMemo(()=>({entries:p,now:g,selfAccountId:t,labelFor:s}),[p,g,t,s]);return i.jsx(au.Provider,{value:b,children:d})},ru=({rootId:e,className:n})=>{const t=u.useContext(au),a=u.useMemo(()=>t?vg(t.entries,{scope:e,now:t.now,selfAccountId:t.selfAccountId,labelFor:t.labelFor}):[],[t,e]),r=a.join("\0"),s=u.useMemo(()=>a,[r]);return t?i.jsx(bx,{names:s,scope:e===null?"main":"thread",className:n}):null},td=(e,n)=>{const t=kc(e,n.id);return{key:`draft:${n.id}`,status:Kf(n)?"expired":"ready",attachment:n,previewUrl:t?xi(t,t.type):void 0}};function xx(e){const{scopeKey:n,accountId:t,tenantId:a,conversationId:r,capability:s,persisted:l,onPersist:c}=e,[d,m]=u.useState(()=>(l??[]).map(z=>td(t,z))),h=u.useRef(t).current,[p,g]=u.useState(null),b=u.useRef(d);b.current=d;const f=u.useRef(0),x=JSON.stringify([n,t,a,r]),v=u.useRef(x);v.current!==x&&(v.current=x,f.current+=1);const k=f.current,w=u.useRef(c);w.current=c;const j=z=>{for(const B of z)B.previewUrl&&bi(B.previewUrl)};u.useEffect(()=>{const z=(l??[]).map(B=>td(t,B));m(B=>(j(B),z)),g(null)},[n,t]),u.useEffect(()=>()=>{f.current+=1,j(b.current)},[]);const R=z=>{b.current=z,m(z),w.current?.(z.flatMap(B=>B.status==="ready"&&B.attachment?[B.attachment]:[]))},N=(z,B)=>{R(b.current.map(F=>F.key===z?{...F,...B}:F))},_=async(z,B,F,A=k,D=a)=>{if(!D||!h)return N(z,{status:"error",reason:"failed"}),null;N(z,{status:"uploading",reason:void 0});try{const J=await Je.uploadAttachment(D,F,B.bytes,h);if(f.current!==A)return null;const L=$f(J,F);return Hf(t,L.id,new Blob([B.bytes],{type:B.mime})),N(z,{status:"ready",attachment:L}),L}catch(J){return f.current!==A||N(z,{status:"error",reason:zf(J?.status,J?.code)}),null}},S=z=>{if(f.current!==k||z.length===0)return;if(!s){g("unsupported");return}const B=Zo(s)-b.current.length,F=z.slice(0,Math.max(0,B));g(F.length<z.length?"limit":null);const A=k,D=F.map(()=>({key:crypto.randomUUID(),status:"preparing"}));R([...b.current,...D]),F.forEach((J,L)=>{const $=D[L].key;gc(J,s.max_bytes).then(le=>{if(f.current!==A)return;const fe=xi(le.bytes,le.mime);N($,{prepared:le,previewUrl:fe}),r?_($,le,r,A):N($,{status:"held"})},le=>{f.current===A&&N($,{status:"error",reason:le instanceof ut?le.reason:"invalid"})})})},C=z=>{const B=b.current.find(F=>F.key===z);B&&(B.previewUrl&&bi(B.previewUrl),R(b.current.filter(F=>F.key!==z)),g(null),B.attachment&&a&&B.status==="ready"&&h&&Je.deleteAttachment(a,B.attachment.conversationId,B.attachment.id,h).catch(()=>{}))},T=z=>{if(f.current!==k)return;const B=b.current.find(A=>A.key===z),F=r??B?.attachment?.conversationId;if(B?.prepared){if(!F){N(z,{status:"held",reason:void 0});return}_(z,B.prepared,F)}},ee=async(z,B=a)=>{const F=b.current.filter(A=>(A.status==="held"||A.status==="error")&&A.prepared);if(await Promise.all(F.map(A=>A.prepared?_(A.key,A.prepared,z,f.current,B):null)),b.current.some(A=>A.status!=="ready"))throw new Error("attachments not staged");return O()},O=()=>s===null?[]:b.current.flatMap(z=>z.status==="ready"&&z.attachment?[z.attachment.id]:[]),q=z=>{const B=z?new Set(z):null;R(b.current.map(F=>F.status==="ready"&&(!B||F.attachment&&B.has(F.attachment.id))?{...F,status:"expired",attachment:void 0}:F))},K=z=>{const B=new Set(z),F=b.current.filter(A=>!(A.attachment&&B.has(A.attachment.id)));j(b.current.filter(A=>!F.includes(A))),R(F),g(null)},I=d.some(z=>z.status==="preparing"||z.status==="uploading"),V=d.some(z=>z.status==="error"||z.status==="expired")||s===null&&d.length>0,U=d.some(z=>z.status==="held");return{chips:d,notice:p,dismissNotice:()=>g(null),add:S,remove:C,retry:T,uploadHeld:ee,readyIds:O,markExpired:q,clearSent:K,busy:I,blocked:V,held:U,count:d.length,max:Zo(s),enabled:s!==null,unsupported:s===null&&d.length>0}}function vx({loadingMore:e,sawInFlight:n,grew:t}){return e?!1:n||t}function jx(e){return i.jsx(_x,{...e})}function _x({root:e,replies:n,state:t,labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,onClose:c,onRetry:d,onSend:m,readOnly:h=!1,hasMore:p=!1,loadingMore:g=!1,onMore:b,onRead:f,reactionContext:x,forceToolbar:v,tenantId:k,conversationId:w,accountId:j,attachmentCapability:R=null,filesCapability:N=null,windowMode:_,olderError:S=!1,latestPageAvailable:C=!0,onLatest:T,scrollHostRef:ee,pinnedGetterRef:O,typingTarget:q=null,typingLineRootId:K=null}){ge();const[I,V]=u.useState(!1),U=u.useRef(!1),z=u.useRef(n.length);g&&(U.current=!0),u.useLayoutEffect(()=>{I&&vx({loadingMore:g,sawInFlight:U.current,grew:n.length!==z.current})&&(U.current=!1,V(!1))},[I,g,n.length]),u.useEffect(()=>{if(!I)return;const pe=setTimeout(()=>V(!1),1e4);return()=>clearTimeout(pe)},[I]);const B=u.useRef(null),F=u.useRef(c);F.current=c,u.useEffect(()=>{if(B.current)return _c(B.current,()=>F.current())},[]),u.useEffect(()=>{if(!(!B.current||t!=="ready"||!f))return Yu(B.current,n,f)},[n,t,f]);const[A,D]=u.useState(""),J=vc(q,A),L=u.useRef(null),$=rc({draftKey:`thread|${w??""}|${e?.id??""}`,text:A,setText:D,fieldRef:L}),[le,fe]=u.useState(!1),[de,X]=u.useState(!1),[ae,ve]=u.useState(!1),he=xc({scopeKey:`${e?.id??""}`,accountId:j,tenantId:k,conversationId:w,capability:N}),ue=xx({scopeKey:`${k??""}|${w??""}|${e?.id??""}`,accountId:j,tenantId:k,conversationId:w??null,capability:w&&k?R:null}),ke=u.useRef(null),Z=u.useRef(!1),me=Va({resetKey:`${k??""}:${w??""}:${e?.id??""}:${t}`,contentKey:`${n.length}:${n.at(-1)?.id??""}`,preserveAnchor:_!==void 0,rowIds:n.map(pe=>pe.id),rowSelector:_?"[data-thread-replies] [data-message-id]":"[data-message-id]",liveEdgeAvailable:_?C:!0});u.useLayoutEffect(()=>{if(O)return O.current=me.isPinned,()=>{O.current===me.isPinned&&(O.current=null)}},[O,me.isPinned]);const Ce=u.useMemo(()=>vs(me.rootRef,ee),[me.rootRef,ee]),je=!!A.trim()||ue.count>0||he.chips.length>0,ye=!h,xe=async()=>{const pe=A.trim();if(ue.blocked||he.blocked){ve(!0);return}if(!je||ue.busy||he.busy||Z.current||h||t!=="ready")return;const qe=ue.readyIds(),Wn=he.chips.map(oe=>oe.key),P=JSON.stringify([qe,he.chips.map(oe=>oe.id??oe.key)]),te=ke.current?.body===pe&&ke.current.images===P?ke.current:{body:pe,images:P,clientRef:crypto.randomUUID()};ke.current=te,Z.current=!0,fe(!0),X(!1),ve(!1),me.pin(),$.stage(pe),J.onSendStart();try{const oe=he.chips.length?await he.stageInto(w??"",k):[];if(qe.length+oe.length>10)throw new Error("Too many attachments");await m(pe,te.clientRef,qe,oe);for(const we of Wn)he.remove(we);ke.current=null,ue.clearSent(qe),D(we=>we.trim()===pe?"":we)}catch(oe){X(!0),qe.length>0&&fa(oe)&&ue.markExpired()}finally{J.onSendEnd(),Z.current=!1,fe(!1)}};return i.jsxs("aside",{"data-glass-region":"page-sidebar",ref:B,"aria-label":o("ui.teamBridge.replies.title"),className:"panel-top-pad relative flex h-full min-h-0 w-full min-w-0 shrink-0 flex-col bg-surface [--thread-row-host:var(--color-surface)] [--thread-row-message-hover:var(--color-elevated)]",children:[i.jsx(bd,{side:"start"}),i.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between px-4",children:[i.jsx("h2",{className:"font-semibold text-[15px] text-ink",children:o("ui.teamBridge.replies.title")}),i.jsx(Y,{"data-thread-close":!0,size:"icon-sm",variant:"ghost",onClick:c,"aria-label":o("ui.teamBridge.replies.close"),children:i.jsx(gt,{size:16})})]}),_==="legacy"&&i.jsx("p",{className:"px-5 py-2 text-meta text-ink-dim",children:o("ui.teamBridge.replies.legacy_window")}),_==="desc"&&!C&&i.jsx(Y,{variant:"ghost",size:"sm",onClick:T,children:o("ui.ownerAudit.refresh")}),_==="desc"&&C&&me.newMessages>0&&i.jsx(Y,{variant:"ghost",size:"sm",onClick:me.pin,children:o("ui.teamBridge.notify.count",{count:me.newMessages})}),i.jsxs(Ra,{ref:Ce,className:"min-h-0 flex-1 [&_[data-radix-scroll-area-viewport]>div]:block!",children:[e&&i.jsx(Aa,{messages:[e],arrivalKey:`${Ma(k,e.conversation_id)}/root`,arrivalsEnabled:!1,labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,tenantId:k,accountId:j,density:"compact",reactionContext:x,forceToolbar:v}),(t==="ready"||e?.reply_count!==void 0)&&(e?.reply_count??n.length)>0&&i.jsx("div",{className:"px-5 py-3 text-[12px] text-ink-dim",children:o("ui.teamBridge.replies.count",{count:e?.reply_count??n.length})}),S&&i.jsxs("div",{role:"alert",className:"px-5 py-2 text-meta text-ink-muted",children:[i.jsx("p",{children:o("ui.teamBridge.thread.error")}),i.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>{me.hold(),b?.()},children:o("ui.teamBridge.list.retry")})]}),_==="desc"&&t==="ready"&&p&&i.jsx(Y,{variant:"ghost",size:"sm",disabled:g,onClick:()=>{me.hold(),b?.()},className:"mx-5 my-2",children:o("ui.teamBridge.replies.more")}),i.jsx("div",{"data-thread-replies":!0,children:t==="loading"?i.jsx("div",{className:"flex justify-center py-8",children:i.jsx(Ze,{size:"sm",label:o("ui.teamBridge.thread.loading")})}):t==="error"?i.jsxs("div",{role:"alert",className:"px-5 py-6 text-[13px] text-ink-muted",children:[i.jsx("p",{children:o("ui.teamBridge.thread.error")}),i.jsx(Y,{variant:"ghost",size:"sm",onClick:d,children:o("ui.teamBridge.list.retry")})]}):n.length===0?ye?i.jsx("p",{className:"px-5 py-6 text-[13px] text-ink-muted",children:o("ui.teamBridge.replies.empty")}):null:i.jsx(Aa,{messages:n,arrivalKey:Ma(k,w,e?.id),arrivalsEnabled:!I,accountId:j,labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,tenantId:k,density:"compact",reactionContext:x,forceToolbar:v})}),_!=="desc"&&p&&i.jsx(Y,{variant:"ghost",size:"sm",disabled:g,onClick:()=>{V(!0),z.current=n.length,me.hold(),b?.()},className:"mx-5 my-2",children:o("ui.teamBridge.replies.more")})]}),h?i.jsx("p",{className:"px-5 pb-4 text-[12px] text-ink-dim",children:o("ui.teamBridge.read_only.composer")}):i.jsxs("div",{className:"shrink-0 px-4 pb-4",children:[de&&i.jsx("p",{role:"alert",className:"pb-1 text-[12px] text-danger",children:o("ui.teamBridge.composer.error")}),i.jsx(ac,{mentions:$}),ae&&ue.blocked&&!ue.unsupported&&i.jsx("p",{role:"alert",className:"pb-1 text-[12px] text-danger",children:o("ui.teamBridge.attachments.send_blocked")}),i.jsxs("div",{"data-glass-region":"composer",className:"rounded-md bg-elevated has-[textarea:focus-visible]:outline-2 has-[textarea:focus-visible]:outline-accent has-[textarea:focus-visible]:outline-offset-2 has-[textarea:focus-visible]:outline-solid",...t==="ready"?xw(ue,he):{},children:[i.jsx(gw,{state:ue}),i.jsx(bc,{state:he}),i.jsx(sc,{mentions:$,fieldRef:L,text:A,children:i.jsx("textarea",{ref:L,rows:2,"aria-label":o("ui.teamBridge.replies.placeholder"),placeholder:o("ui.teamBridge.replies.placeholder"),value:A,disabled:t!=="ready",onChange:pe=>{D(pe.target.value),J.onInput(pe.target.value)},onBlurCapture:J.onBlur,...$.bindField({onKeyDown:pe=>{pe.key==="Enter"&&!pe.shiftKey&&!pe.nativeEvent.isComposing&&(pe.preventDefault(),xe())}}),className:"relative block max-h-40 min-h-10 w-full resize-none bg-transparent px-3.5 pt-3 pb-1 text-[14px] text-ink outline-none placeholder:text-ink-dim"})}),i.jsxs("div",{className:"flex items-center gap-2 px-2 pb-2",children:[i.jsx("span",{className:"min-w-0 flex-1 ps-1.5 text-meta-sm text-ink-dim",children:o("ui.teamBridge.composer.hint")}),i.jsx(pw,{state:ue,files:he,disabled:le||t!=="ready"}),i.jsx(Y,{size:"icon-sm",variant:je||le?"primary":"ghost",className:"rounded-sm",disabled:!je||ue.busy||he.busy||le||t!=="ready","aria-label":o("ui.teamBridge.composer.send"),onClick:()=>void xe(),children:le?i.jsx(Ze,{size:"sm"}):i.jsx(sd,{size:16})})]})]}),K!==null&&i.jsx(ru,{rootId:K,className:"mt-1 ps-3.5"})]})]})}function Nx(e){return i.jsx(Bx,{...e})}function Bx({target:e,initialRoot:n,readOnly:t,labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,onClose:c,reactionContext:d,accountId:m,attachmentCapability:h,filesCapability:p,typingEnabled:g=!1}){const b=ht(),{tenantId:f,conversationId:x,rootId:v}=e,k=u.useMemo(()=>g&&!t?{conversationId:x,tenantId:f,accountId:m,threadRootId:v}:null,[g,t,x,f,m,v]),w=u.useRef(void 0),j=Ju(x,f,v,()=>w.current),R=u.useRef(-1),N=u.useCallback(async K=>{if(!(K<=R.current)){R.current=K;try{await j.mutateAsync({seq:K})}catch(I){throw R.current===K&&(R.current=-1),I}}},[j.mutateAsync]),_=u.useRef(null),S=u.useRef(null),C=[...Rn.all,"replies",m,f,x,v],T=Wc({queryKey:C,identity:{conversationId:x,rootId:v},read:(K,I,V=50)=>Qu(e,m,K==="desc"?void 0:I??0,K==="desc"?{beforeSeq:I,order:"desc",limit:V}:void 0),canEvict:K=>Vc(K,_.current?.querySelector("[data-radix-scroll-area-viewport]")??null),isAtLiveEdge:()=>S.current?.()??!0,poll:!0}),ee=T.replies;w.current=T.mode==="desc"&&T.latestPageAvailable||T.mode!=="desc"&&!T.hasNextPage?ee.reduce((K,I)=>K===void 0||I.seq>K?I.seq:K,void 0):void 0;const O=Nh({mutationFn:({body:K,clientRef:I,attachmentIds:V,files:U})=>Je.send(x,{body:K,clientRef:I,tenantId:f,expectedAccountId:m,threadRootId:v,attachmentIds:V,files:U,mentions:cs(x,K)}),onSuccess:async(K,{body:I})=>{md(x,I),await Promise.all([b.invalidateQueries({queryKey:C}),b.invalidateQueries({queryKey:Rn.messages(x,f)}),b.invalidateQueries({queryKey:Rn.conversationsPrefix})])}}),q=T.isError&&!T.keepWindowOnError?null:T.data?.pages[0]?.root??n??null;return i.jsx(jx,{root:q,replies:ee,state:T.isPending?"loading":T.isError&&(!T.data||!T.keepWindowOnError)?"error":"ready",labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,onClose:c,onRead:N,onRetry:()=>void T.refetch(),onSend:(K,I,V,U)=>O.mutateAsync({body:K,clientRef:I,attachmentIds:V,files:U}),tenantId:f,conversationId:x,accountId:m,attachmentCapability:h,filesCapability:p,readOnly:t,typingTarget:k,typingLineRootId:g?v:null,hasMore:T.hasNextPage,loadingMore:T.isFetchingNextPage,onMore:()=>void T.fetchNextPage(),olderError:T.keepWindowOnError,windowMode:T.mode,latestPageAvailable:T.latestPageAvailable,onLatest:()=>void T.resetLatest(),scrollHostRef:_,pinnedGetterRef:S,reactionContext:d})}const Ks="lo.teamBridge.view.v1",Sx=256,Ex=["drafts","scheduled","invitations","archived"];function gn(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}const Hn=e=>typeof e=="string"&&e.length>0&&e.length<=Sx;function Ja(e){try{const n=JSON.parse(e.getItem(Ks)??"{}");return gn(n)?n:{}}catch{return{}}}function Ix(e){if(!gn(e))return null;switch(e.type){case"conversation":return Hn(e.id)?{type:"conversation",id:e.id}:null;case"person":case"chief":return Hn(e.accountId)?{type:e.type,accountId:e.accountId}:null;case"compose":return Array.isArray(e.recipients)?{type:"compose",recipients:e.recipients.flatMap(t=>{if(!gn(t)||!Hn(t.accountId))return[];const a=typeof t.label=="string"?t.label:"";return t.kind==="human"?[{kind:"human",accountId:t.accountId,label:a}]:t.kind==="agent"&&Hn(t.endpointId)?[{kind:"agent",accountId:t.accountId,endpointId:t.endpointId,label:a}]:[]})}:null;default:return null}}function Rx(e){if(!gn(e))return null;const n=Ix(e.target);if(!n)return null;const t={target:n},a=e.thread;gn(a)&&Hn(a.tenantId)&&Hn(a.conversationId)&&Hn(a.rootId)&&(t.thread={tenantId:a.tenantId,conversationId:a.conversationId,rootId:a.rootId}),typeof e.quickView=="string"&&Ex.includes(e.quickView)&&(t.quickView=e.quickView);const r=e.scroll;return gn(r)&&Hn(r.messageId)&&typeof r.targetKey=="string"&&typeof r.offset=="number"&&Number.isFinite(r.offset)&&(t.scroll={messageId:r.messageId,offset:r.offset,targetKey:r.targetKey}),t}function Cx(e){return e===Ve?Ve:Hn(e)?fn(e):void 0}function Tx(e,n){const t=Ja(e)[n];return gn(t)?Cx(t.scope):void 0}function Mx(e,n,t){const a=Ja(e)[n];return!gn(a)||!gn(a.scopes)?null:Rx(a.scopes[t])}function $r(e,n,t,a,r=t){try{const s=Ja(e),l=gn(s[n])?s[n]:{},c=gn(l.scopes)?l.scopes:{};return e.setItem(Ks,JSON.stringify({...s,[n]:{scope:r,scopes:{...c,[t]:a}}})),!0}catch{return!1}}function Ax(e,n,t){try{const a=Ja(e),r=gn(a[n])?a[n]:{};e.setItem(Ks,JSON.stringify({...a,[n]:{...r,scope:t}}))}catch{}}function id(e){return!e?.thread||e.target.type!=="conversation"?null:e.thread.conversationId===e.target.id?e.thread:null}function zx(e,n){return!e?.scroll||!n?null:e.scroll.targetKey===Xe(n)?{messageId:e.scroll.messageId,offset:e.scroll.offset}:null}function Px(e,n,t,a="",r=!1,s=n==="all"){const l=ot(),c=e&&!r?yo(e,n):null,d=r?null:e??null,m=u.useRef({account:d,epoch:0});m.current.account!==d&&(m.current={account:d,epoch:m.current.epoch+1});const h=m.current.epoch,p=e?bo(e):0,g=()=>!r&&m.current.epoch===h&&(!e||bo(e)===p),[b,f]=u.useState(()=>{const B=c&&l?Zr(l,c):{};return a&&t&&!B[Xe(t)]&&(B[Xe(t)]={target:t,body:a,clientRef:crypto.randomUUID()}),{key:c,drafts:B}}),[x,v]=u.useState(!1),k=u.useRef(new Map([[b.key,b.drafts]])),w=u.useRef(e);u.useEffect(()=>{const B=w.current;B&&(r||e&&B!==e)&&(Xu(l,B),k.current.clear(),f({key:null,drafts:{}})),(r||e)&&(w.current=r?void 0:e)},[e,r,l]);const j=()=>(k.current.has(c)||k.current.set(c,c&&l?Zr(l,c):{}),k.current.get(c)??{}),R=j(),N=t?Xe(t):null,_=N?R[N]:void 0,S=_?.body??"",C=(B,F)=>{if(!g())return!1;const A={...j()};if(F?A[B]=F:delete A[B],k.current.set(c,A),f({key:c,drafts:A}),c){if(!l)return v(!0),!1;try{return l.setItem(c,JSON.stringify(A)),v(!1),!0}catch{return v(!0),!1}}return!0},T=B=>{if(!g()||!t||!N)return!1;const F=j()[N];return C(N,{...F??{target:t,body:S,clientRef:crypto.randomUUID()},target:t,...B})};u.useEffect(()=>{if(t?.type!=="compose")return;const B=j().compose?.target,F=D=>D.recipients.map(J=>`${J.kind}:${J.accountId}`).sort().join("|"),A=B?.type==="compose"&&F(B)!==F(t);T({target:t,...A?{conversationId:void 0,sendAt:void 0,createUncertain:!1,clientRef:crypto.randomUUID()}:{}})},[t,c]);const ee=B=>T({body:B,...B.trim()!==S.trim()&&!_?.sendAt?{clientRef:crypto.randomUUID()}:{}}),O=(B,F={})=>{const A=N?j()[N]:void 0;if(!A&&B.length===0)return!0;const D=(A?.attachments??[]).map(L=>L.id).join(","),J=B.map(L=>L.id).join(",");return T({attachments:B.length>0?B:void 0,...D!==J&&!A?.sendAt&&!F.keepClientRef?{clientRef:crypto.randomUUID()}:{}})},q=(B,F,A,D=[])=>{if(!g())return;const J=j()[B];if(J?.clientRef!==A)return;const L=new Set(D),$=(J.attachments??[]).filter(le=>!L.has(le.id));J.body.trim()===F&&$.length===0?C(B,null):C(B,{...J,body:J.body.trim()===F?"":J.body,attachments:$.length>0?$:void 0,sendAt:void 0,clientRef:crypto.randomUUID()})},[K,I]=u.useState(0);u.useEffect(()=>{const B=F=>{(F.key===null||F.key.startsWith(ld))&&I(A=>A+1)};return window.addEventListener("storage",B),()=>window.removeEventListener("storage",B)},[]);const V=u.useMemo(()=>e&&!r&&s&&l?Bk(l,e):new Map,[e,r,s,K,l]),U=new Map(V);for(const[B,F]of k.current)B&&e&&B.startsWith(yo(e,""))&&(s||B===c)&&U.set(B,F);const z=c?[...U].flatMap(([B,F])=>Object.entries(F).map(([A,D])=>({key:`${B}:${A}`,tenantId:Sk(B),entry:D}))):Object.entries(R).map(([B,F])=>({key:B,tenantId:n,entry:F}));return{drafts:R,entries:z,current:_,body:S,setBody:ee,setAttachments:O,update:T,clearSent:q,storageFailed:x}}const sn=new Map;ds(()=>sn.clear());const Dx={read:"ui.teamBridge.attachments.error_invalid",unsupported:"ui.teamBridge.attachments.error_type",upload:"ui.teamBridge.attachments.error_upload"},ad=({error:e,onRetry:n})=>{ge();const t=Ah(e),a=e?.message,r=typeof a=="string"?a.trim():"",s=t==="sign_in"?o("ui.teamBridge.plan.sign_in_reason"):t==="plan"?o("ui.teamBridge.plan.reason"):t==="invalid"?r||o("ui.teamBridge.scope.error"):t==="outdated"?o("ui.teamBridge.plan.update_reason"):o("ui.teamBridge.plan.unavailable_reason"),l=t==="unreachable"||t==="server";return i.jsxs("div",{className:"flex flex-col items-start gap-2 px-2 py-1",children:[i.jsx("p",{className:"text-[12px] leading-snug text-ink-muted",children:o("ui.teamBridge.people.error")}),i.jsx("p",{className:"text-[12px] leading-snug text-ink-dim",children:s}),l&&n&&i.jsx(Y,{type:"button",size:"sm",variant:"outline",onClick:n,children:o("ui.teamBridge.list.retry")})]})},Lx=()=>(ge(),i.jsx("div",{"data-glass-region":"canvas",className:"flex h-full min-h-0 w-full items-center justify-center overflow-hidden bg-canvas px-6",children:i.jsx(Ze,{size:"sm",label:o("ui.teamBridge.plan.checking")})})),gi=()=>({named:(e,n)=>o("ui.teamBridge.chief.label",{agent:e,person:n}),unnamed:e=>o("ui.teamBridge.chief.unnamed",{person:e})}),su=({reason:e})=>{ge();const n={off:{title:"ui.agentMessages.page_off.title",reason:"ui.agentMessages.page_off.body"},off_local:{title:"ui.agentMessages.page_off.local_title",reason:"ui.agentMessages.page_off.local_body"},plan_required:{title:"ui.teamBridge.plan.title",reason:"ui.teamBridge.plan.reason"},signed_out:{title:"ui.teamBridge.plan.sign_in_title",reason:"ui.teamBridge.plan.sign_in_reason"},update_required:{title:"ui.teamBridge.plan.update_title",reason:"ui.teamBridge.plan.update_reason"},unavailable:{title:"ui.teamBridge.plan.unavailable_title",reason:"ui.teamBridge.plan.unavailable_reason"}};return i.jsx("div",{"data-glass-region":"canvas",className:"flex h-full min-h-0 w-full items-center justify-center overflow-hidden bg-canvas px-6",children:i.jsxs("div",{className:"max-w-lg text-center",children:[i.jsx(mt,{size:20,"aria-hidden":"true",className:"mx-auto mb-3 text-ink-dim"}),i.jsx("h1",{className:"text-balance text-[16px] font-medium text-ink",children:o(n[e].title)}),i.jsxs("div",{className:"mt-2",children:[e!=="off"&&e!=="off_local"&&i.jsx("p",{className:"text-pretty text-[13px] leading-relaxed text-ink-muted",children:o("ui.teamBridge.plan.body")}),i.jsx("p",{className:"mt-4 text-[12px] leading-snug text-ink-dim",children:o(n[e].reason)}),(e==="off"||e==="off_local")&&i.jsx(Y,{asChild:!0,variant:"secondary",size:"sm",className:"mt-4",children:i.jsx(Bh,{to:`/settings?setting=${Sh}`,"data-team-bridge-off-action":"settings",children:o("ui.agentMessages.page_off.action")})})]})]})})},Ox=({ownerAudit:e,renderThreadPane:n,threadLink:t,onCloseThread:a,listState:r,messageState:s,onRetryMessages:l,conversations:c,target:d,messages:m,olderPaging:h,events:p,highlightMessageId:g=null,organizations:b,scope:f,totalUnread:x,membershipsLoading:v=!1,organizationsFailed:k=!1,selfAccountId:w,sending:j=!1,sendFailed:R=!1,joining:N=!1,joinFailed:_=!1,notifyFailed:S=!1,agentNotifyFailed:C=!1,onJoin:T,onNotifyChange:ee,onAgentNotifyChange:O,onAddMembers:q,onRemoveMember:K,memberMutationKey:I=null,initialMembersOpen:V=!1,onMemberSelfAction:U,initialMembersPanelOpen:z=!1,onMenuJoin:B,onMenuLeave:F,onMenuOwnAgent:A,onMenuNotifyChange:D,initialMenuConfirm:J,partialLeave:L,onRetryPartialLeave:$,onDismissPartialLeave:le,onOpenMembersFor:fe,onArchive:de,onUnarchive:X,onDelete:ae,unarchiveFailed:ve=!1,archivedState:he="ready",archivedConversations:ue=[],archivedHasMore:ke=!1,archivedLoadingMore:Z=!1,archivedLoadMoreFailed:me=!1,onLoadMoreArchived:Ce,onOpenArchived:je,onRetryArchived:ye,initialQuickView:xe,initialScroll:pe=null,onViewMemory:qe,initialDialog:Wn,threadsCapabilityState:P="unknown",reactionsCapabilityState:te="unknown",typingCapabilityState:oe="unknown",sendMentionsCapabilityState:we="unknown",agentNotifyCapabilityState:Pe="unknown",defaultMenuOpen:ln=!1,initialDraft:Fe="",draftJournal:dn,isDraftCurrent:be=()=>!0,people:Ee=[],directories:Vn,directoryStates:wn,directoryErrors:pt,selfName:Jn,peopleState:Mn="ready",peopleError:An,peopleIncomplete:ea=!1,refreshingRows:Qn=!1,refreshingUnread:ft=!1,onRetryPeople:Qa,onRetryMembers:bn,eligibility:zn=null,gatePending:na=!1,readOnly:Se=!1,notice:tn=null,noOrgPanel:kt,readOnlyExplained:Ya=!1,onTarget:ce,onSend:ji,onSchedule:Te,attachmentCapability:Pn=null,filesCapability:Ut=null,recordingProbe:_i,onNewChannel:Ni,onRetry:cn,onScopeChange:yn,onChooseOrganization:Ht,onRetryMemberships:pn})=>{ge();const wt=Eh(),[$e,xn]=u.useState(xe??null),[Gt,un]=u.useState(Wn??null),[Wt,bt]=u.useState(V),[yt,mn]=u.useState(z),[ta,vn]=u.useState(!1),[Yn,Vt]=u.useState(J??null),[Bi,Si]=u.useState(!1),[Ei,Xn]=u.useState(null),[Ii,Jt]=u.useState(!1),[Ri,Dn]=u.useState(null),xt=Zu(c,w),[Xa,vt]=u.useState(!1),Qt=u.useRef(!1);Qt.current=em(Qt.current,xt.length>0||$e==="invitations",Xa);const[jn,ia]=u.useState(!1),[Qe,Yt]=u.useState(!1),[Zn,Ci]=u.useState(0),[_n,Xt]=u.useState(!1),[jt,_t]=u.useState(!1),Ln=u.useRef(!1),E=u.useRef(null),ne=u.useId(),re=f===Ve&&d?.type==="conversation"?c.find(y=>y.id===d.id)?.tenant_id??f:f,ie=Px(w,re,d,"",zn==="signed_out",f===Ve),Le=!!ie.current?.sendAt&&!ie.current?.createUncertain&&!Qe,_e=br(w,re,d?Xe(d):""),et=`${_e}|${d?.type==="compose"?d.recipients.map(on).sort().join(","):""}`,nt=En(y=>y.inputByConversation[_e]),an=nt?.currentInput??"",Nt=(nt?.attachments??[]).map(y=>y.path);u.useEffect(()=>{const y=ie.current?.body||dn?.body||Fe;if(!y.trim())return;const M=En.getState();M.getCurrentInput(_e).trim()||(M.setComposerText(_e,y),ie.current?.body&&ie.update({body:""}),dn&&(dn.body=""))},[_e]),u.useEffect(()=>{_n&&an.trim()&&Xt(!1)},[an,_n]);const Ti=u.useRef(w);u.useEffect(()=>{const y=Ti.current;if(zn==="signed_out"||y&&w!==y){const M=En.getState();nm(M,M.clearComposer,y)}Ti.current=zn==="signed_out"?void 0:w},[w,zn]),u.useEffect(()=>{!an.trim()||!d||ie.current||!be()||ie.update({})},[an,d]);const[On,Oe]=u.useState(null),Ue=!!an.trim()||Nt.length>0,tt=En(y=>y.inputByConversation),Bt=(y,M)=>tt[br(w,y,M)]?.currentInput??"",Us=(y,M)=>tt[br(w,y,M)]?.attachments.length??0,Hs=(y,M)=>{const Q=Xe(y.target);return!!Bt(M,Q).trim()||Us(M,Q)>0||(y.attachments?.length??0)>0||y.target.type==="compose"&&y.target.recipients.length>0},He=y=>{e?.clear(),xn(null),ce(y)},Zt=Hg(P)&&w!==void 0,ou=Db(te),[Ae,it]=u.useState(Zt?t??null:null);u.useEffect(()=>{Zt&&t&&(mn(!1),it(t))},[t,Zt]);const Ke=f===Ve,Mi=w!==void 0,St=u.useMemo(()=>Md(c,f,b),[c,f,b]),at=u.useMemo(()=>St.filter(y=>y.status!=="archived"),[St]),ei=u.useMemo(()=>b.map(y=>y.tenantId),[b]),Et=u.useMemo(()=>Ih(at,ei),[at,ei]),Za=u.useMemo(()=>Ad(St,ue),[St,ue]),Ai=u.useMemo(()=>Ke?[]:fs(Ee,w),[Ke,Ee,w]),er=u.useMemo(()=>Ke?$y({organizations:b,directories:Vn,directoryStates:wn,directs:Et.directs,selfAccountId:w}):[],[Ke,b,Vn,wn,Et,w]),aa=Fy(Ke,b.length),nr=gi(),lu=u.useMemo(()=>w&&Jn?.trim()?{accountId:w,name:Jn}:null,[w,Jn]),ni=y=>Ke?Vn?.[y]??[]:Ee,zi=(y,M)=>_a(y,ni(M),nr,lu),tr=(y,M)=>ni(M).find(Q=>Q.account_id===y.account_id),ir=(y,M)=>{const Q=tr(y,M);return!Mi||!Q||Q.account_id===w||!Q.bridge_enabled||!["active","paused"].includes(Q.bridge_state)||y.kind==="agent"&&!Q.agent?null:Ux(y,M,St,w,Se,Ke)},Gs=(y,M)=>{const Q=ir(y,M);Q&&(Q.type!=="conversation"&&Ke&&yn(fn(M)),He(Q))},Ws=(y,M)=>zi(y,M)??(y.kind==="agent"?o("ui.teamBridge.sender.unknown_agent"):o("ui.teamBridge.sender.unknown_person")),Vs=Ke?Ky(er):Id(Et.directs,Ee,Ai,w),De=Ea(d,Za,w),qn=De!==null&&Oa(De),ar=De?vr(De,b):null,ti=Ke&&De!==null&&ar===null,ii=d?.type==="person"||d?.type==="chief"?Ee.find(y=>y.account_id===d.accountId)??null:null,rr=d?.type==="chief"?Ai.find(y=>y.person.account_id===d.accountId)??null:null,Nn=De?De.kind==="dm"?(()=>{const y=De.members.find(M=>M.state!=="removed"&&!(M.kind==="human"&&M.account_id===w));return y?Ws(y,De.tenant_id):o("ui.teamBridge.list.untitled")})():ui(De,w)??o("ui.teamBridge.list.untitled"):rr?lt(rr.agentName,nn(rr.person),nr):ii?nn(ii):null,du=u.useMemo(()=>zd(Ee,w,gi()),[Ee,w]),ai=d?.type==="compose"?d.recipients:[],H=De,[ra,Js]=u.useState(null);H&&ra?.id!==H.id&&Js({id:H.id,seq:H.unread_count>0?H.last_read_seq:void 0}),!H&&ra!==null&&Js(null);const cu=H&&ra?.id===H.id?ra.seq:void 0,sr=Rh(H?.builtin),Pi=H?Ch(H):{active:0,invited:0},ri=y=>{Ae&&(it(null),a?.()),mn(!1),e?.clear(),xn(y)},or=H?`${H.tenant_id}:${H.id}`:null,[uu,mu]=u.useState(or);uu!==or&&(mu(or),yt&&mn(!1));const lr=yt&&H!==null&&!qn&&!ti,dr=!!(Zt&&Ae&&H&&Ae.conversationId===H.id&&Ae.tenantId===H.tenant_id&&!qn&&!ti),sa=_g(oe)&&!!w&&H!==null&&!qn&&!ti,hu=sa&&!Se&&H&&w?{conversationId:H.id,tenantId:H.tenant_id,accountId:w}:null,Qs=u.useRef(zi);Qs.current=zi;const gu=u.useCallback(y=>{if(!H)return null;const M=H.members.find(Q=>Q.account_id===y);return Qs.current({account_id:y,kind:"human",display_label:M?.display_label??""},H.tenant_id)},[H]);tm(H?.id);const pu=y=>{H&&(mn(!1),it({tenantId:H.tenant_id,conversationId:H.id,rootId:y.id}))},rt=!Se&&!qn&&H?.status!=="archived"&&!ti&&(H!==null||d?.type==="compose"&&ai.length>0||(d?.type==="person"||d?.type==="chief")&&ii!==null),fu=d?.type==="compose"&&ai.length>0?o("ui.teamBridge.composer.placeholder_to",{name:ai.map(y=>y.label).join(", ")}):Nn&&d?.type!=="compose"?o("ui.teamBridge.composer.placeholder_to",{name:Nn}):o("ui.teamBridge.composer.placeholder"),cr=`${ne}-gate`,Ys=ou&&w&&De?{accountId:w,tenantId:De.tenant_id,disabled:!rt||De.status!=="open"}:void 0,ur=(y,M)=>{const Q={ids:[],stageHeld:async(se,Ne)=>{const Me=await hx({paths:y,accountId:w??"",tenantId:Ne??(re===Ve?"":re),conversationId:se,capability:Pn});if(Me.failures.length>0&&Oe({kind:"upload",failure:Me.failures[0]}),Me.ids.length!==y.length)throw new Error("attachment staging refused");if(M?.count&&(Q.files=await M.stageInto(se,Ne)),Me.ids.length+(Q.files?.length??0)>10)throw new Error("Too many attachments");return Me.ids}};return Q},Di=Ma(H?.tenant_id,H?.id);u.useLayoutEffect(()=>{s==="ready"&&H&&m.length===0&&Tf(Di)},[s,H,m.length,Di]),u.useLayoutEffect(()=>()=>hc(Di),[Di]);const oa=Tt(y=>y.entries),Xs=et,Zs=d?.type==="conversation"?d.id:void 0,eo=u.useMemo(()=>F1(oa,{owner:w,lane:Xs,conversationId:H?.id??Zs}),[oa,w,Xs,H?.id,Zs]),mr=u.useMemo(()=>{if(!w)return null;const y=Ee.find(Q=>Q.account_id===w),M=y?nn(y):(Jn?.trim()??"")||w;return{account_id:w,kind:"human",display_label:M}},[w,Jn,Ee]),Bn=u.useMemo(()=>$1(m,eo,mr,H?.id),[m,eo,mr,H?.id]),no=u.useRef(new Set),ku=d?.type==="conversation"&&no.current.has(d.id)&&H===null,wu=u.useMemo(()=>m.reduce((y,M)=>Math.max(y,M.seq),-1),[m]),to=`${H?.tenant_id??""}:${H?.id??""}:${s}:${$e??""}`,en=Va({resetKey:to,contentKey:`${Bn.messages.length}:${Bn.messages.at(-1)?.id??""}`});u.useLayoutEffect(()=>{if(!g)return;const y=Array.from(en.rootRef.current?.querySelectorAll("[data-message-id]")??[]).find(M=>M.dataset.messageId===g);y&&(en.hold(),y.scrollIntoView?.({block:"center"}))},[g,en.hold,en.rootRef]);const io=u.useRef(!1),ao=u.useRef(pe);u.useLayoutEffect(()=>{const y=ao.current;if(io.current||!y||g||s!=="ready"||Bn.messages.length===0)return;io.current=!0;const M=en.rootRef.current?.querySelector("[data-radix-scroll-area-viewport]"),Q=Array.from(M?.querySelectorAll("[data-message-id]")??[]).find(se=>se.dataset.messageId===y.messageId);!M||!Q||(en.hold(),M.scrollTop+=Q.getBoundingClientRect().top-M.getBoundingClientRect().top-y.offset)},[g,s,Bn.messages.length,en.hold,en.rootRef]);const hr=u.useRef(ao.current),gr=u.useRef(()=>{});gr.current=()=>{!qe||d===null||qe({target:d,thread:Ae??t??null,quickView:$e,scroll:hr.current?{...hr.current,targetKey:Xe(d)}:null})},u.useEffect(()=>{gr.current()},[d,Ae,t,$e]),u.useEffect(()=>{const y=en.rootRef.current?.querySelector("[data-radix-scroll-area-viewport]");if(!y)return;let M;const Q=()=>{M=void 0,gr.current()},se=()=>{const Ne=y.getBoundingClientRect(),Ie=y.scrollHeight-y.scrollTop-y.clientHeight<=48?void 0:Array.from(y.querySelectorAll("[data-message-id]")).find(Be=>Be.getBoundingClientRect().bottom>Ne.top);hr.current=Ie?.dataset.messageId?{messageId:Ie.dataset.messageId,offset:Ie.getBoundingClientRect().top-Ne.top}:null,M!==void 0&&clearTimeout(M),M=setTimeout(Q,250)};return y.addEventListener("scroll",se,{passive:!0}),()=>{y.removeEventListener("scroll",se),M!==void 0&&(clearTimeout(M),Q())}},[to,en.rootRef]);const pr=u.useRef(!1),ro=(y,M,Q)=>{const se=sn.get(_e);se!==void 0&&(se.clientRef===M||se.clientRef===y.clientRef)&&(Q&&sn.delete(_e),Q&&be()&&ie.current?.clientRef===M&&ie.update({clientRef:crypto.randomUUID()}))},so=y=>{const M=y.conversationId?Gl(y.conversationId):y.lane;return K1(M,async Q=>{const se=y.conversationId?{conversationId:y.conversationId,tenantId:y.tenantId}:Q.resolved,Ne=Re=>Tt.getState().patch(y.localId,Re),Me=Re=>ji(y.body,Re,void 0,{into:se,mentions:y.mentions,onCreated:(ze,Ye)=>{U1(M,Gl(ze),{conversationId:ze,tenantId:Ye}),no.current.add(ze),Ne({conversationId:ze,tenantId:Ye})}});let Ie=y.clientRef,Be;try{try{Be=await Me(Ie)}catch(ze){if(!el(ze)||y.autoRetried)throw ze;Ie=crypto.randomUUID(),Ne({clientRef:Ie,autoRetried:!0});const Ye=sn.get(_e);Ye&&Ye.clientRef===y.clientRef&&sn.set(_e,{...Ye,clientRef:Ie}),Be=await Me(Ie)}const Re=H1(Be);Ne({status:"sent",serverId:Re?.id,serverRow:Re,...Re?.conversation_id?{conversationId:Re.conversation_id}:{}}),ro(y,Ie,!0)}catch(Re){Ne({status:"failed"}),ro(y,Ie,!1),fa(Re)&&Oe({kind:"expired"})}})},bu=async(y,M,Q)=>{const se=y.trim();if(!se&&M.length===0&&!Q?.count||!be()||j||Qe||Ln.current||ie.current?.createUncertain||ie.current?.sendAt||!rt||!d)return!1;if(M.length>0&&!Pn)return Oe({kind:"capability"}),!1;Oe(null);const Ne=sn.get(_e),Me=Ne?.localId?oa.find(ze=>ze.localId===Ne.localId):void 0,Be=!!(Ne&&Ne.body===se&&(!Ne.localId||Me===void 0||Me.status==="failed"))?Ne.clientRef:crypto.randomUUID();if(Ne?.body!==se&&(pr.current=!1),!ie.update({clientRef:Be}))return!1;if(M.length===0&&!Q?.count&&mr&&d){const ze=oa.find(Ge=>Ge.status==="failed"&&Ge.clientRef===Be&&Ge.owner===(w??"")),Ye=De?cs(De.id,se):void 0,Fn=ze?{...ze,body:se,status:"pending"}:{localId:crypto.randomUUID(),clientRef:Be,body:se,createdAt:new Date().toISOString(),order:q1(),owner:w??"",lane:et,conversationId:De?.id,tenantId:De?.tenant_id??(re===Ve?void 0:re),baselineSeq:wu,status:"pending",mentions:Ye};return ze?Tt.getState().patch(Fn.localId,{status:"pending"}):Tt.getState().add(Fn),sn.set(_e,{body:se,clientRef:Be,localId:Fn.localId}),en.pin(),so(Fn),!0}const Re={body:se,clientRef:Be};sn.set(_e,Re),Ln.current=!0,en.pin();try{await ji(se,Be,ur(M,Q));const ze=sn.get(_e)===Re;return ze&&sn.delete(_e),ze&&be()&&ie.update({clientRef:crypto.randomUUID()}),!0}catch(ze){if(el(ze)&&!pr.current){pr.current=!0;const Ye=crypto.randomUUID(),Fn={body:se,clientRef:Ye};if(sn.set(_e,Fn),ie.update({clientRef:Ye}))try{await ji(se,Ye,ur(M,Q));const Ge=sn.get(_e)===Fn;return Ge&&sn.delete(_e),Ge&&be()&&ie.update({clientRef:crypto.randomUUID()}),!0}catch(Ge){return fa(Ge)&&Oe({kind:"expired"}),!1}}return fa(ze)&&Oe({kind:"expired"}),!1}finally{Ln.current=!1}},oo=async y=>{if(Zn>0)return;if(!d||!Te||Ln.current||ie.current?.createUncertain||!Ue||!rt||j||Qe)throw new Error("schedule unavailable");if(ie.current?.sendAt&&ie.current.sendAt!==y)throw new Error("retry requires original time");const M=an.trim(),Q=ie.current?.sendAt?ie.current.clientRef:crypto.randomUUID(),se=Xe(d),Ne=d.type==="compose"&&d.recipients.length>1&&!H&&!ie.current?.conversationId;if(!ie.update({clientRef:Q,sendAt:y,...Ne?{createUncertain:!0}:{}}))throw new Error("draft persistence unavailable");Ln.current=!0,Yt(!0),Xt(!1),_t(!1);const Me=Nt,Ie=ur(Me);try{await Te(M,Q,y,ie.current?.conversationId,Ge=>{if(!ie.update({conversationId:Ge,clientRef:Q,sendAt:y,createUncertain:!1}))throw new Error("draft persistence unavailable")},Ie),dn&&dn.body.trim()===M&&(dn.body="");const Be=En.getState(),Re=Be.inputByConversation[_e],ze=(Re?.attachments??[]).map(Ge=>Ge.path),Ye=Be.getCurrentInput(_e).trim()===M,Fn=ze.length===Me.length&&ze.every((Ge,ju)=>Ge===Me[ju]);if(Ye&&Fn)Be.clearComposer(_e);else{for(const Ge of Re?.attachments??[])Me.includes(Ge.path)&&Be.removeAttachment(_e,Ge.id);Ye&&Be.setComposerText(_e,"")}ie.clearSent(se,M,Q),Xt(!0)}catch(Be){_t(!0);const Re=Be?.status;throw J1(ie.current?.sendAt,Re)&&ie.update({createUncertain:!1,sendAt:void 0}),Be}finally{Ln.current=!1,Yt(!1)}},lo=W1(w?JSON.stringify([w,f]):null,d?Xe(d):null),fr=i.jsx(rm,{});if(na)return i.jsxs(i.Fragment,{children:[fr,i.jsx(Lx,{})]});if(Xg(zn)&&kt)return i.jsxs(i.Fragment,{children:[fr,kt]});if(zn)return i.jsxs(i.Fragment,{children:[fr,i.jsx(su,{reason:zn})]});const co=y=>d?.type==="conversation"&&d.id===y.id,la=y=>He({type:"compose",recipients:[y]}),hn=Ke||Se,uo=Se?o("ui.teamBridge.read_only.note"):o("ui.teamBridge.scope.create_needs_org"),mo=v?i.jsx(st,{label:o("ui.teamBridge.scope.loading")}):k?i.jsxs("div",{className:"flex flex-col items-start gap-2 px-2 py-1",children:[i.jsx("p",{className:"text-[12px] leading-snug text-ink-muted",children:o("ui.teamBridge.scope.error")}),pn&&i.jsx(Y,{type:"button",size:"sm",variant:"outline",onClick:pn,children:o("ui.teamBridge.list.retry")})]}):null,yu=v?i.jsx(st,{label:o("ui.teamBridge.scope.loading")}):k?i.jsx(ha,{children:o("ui.teamBridge.scope.error")}):null,ho=mo||b.length>0?void 0:{text:o("ui.teamBridge.scope.empty")},xu=y=>{if(y.type==="compose")return y.recipients.map(Q=>Q.label).join(", ")||o("ui.teamBridge.compose.label");if(y.type==="conversation"){const Q=c.find(se=>se.id===y.id);return(Q?ui(Q,w):null)??o("ui.teamBridge.list.untitled")}const M=Ee.find(Q=>Q.account_id===y.accountId)?.display_label??o("ui.teamBridge.list.untitled");return y.type==="chief"?lt(Ai.find(Q=>Q.person.account_id===y.accountId)?.agentName??"",M,gi()):M},go=y=>w?ni(y).find(M=>M.account_id===w):void 0,po=y=>{const M=co(y),Q=D??(M&&ee?(Ie,Be)=>ee(Be):void 0),se=M&&Pe==="enabled"?zh(y,w):void 0,Ne=Se?[]:mk({conversation:y,selfAccountId:w,selfPerson:go(y.tenant_id),readOnly:Se,agentNotifyEnabled:se!==void 0,archivable:Io(y),wiring:{viewMembers:!0,addMembers:!!q,join:!!(B??(M&&T)),notify:!!Q,agentNotify:!!O&&M,ownAgent:!!A,leave:!!F,archive:!!de}}),Me={onNotifyChange:Q?Ie=>Q(y,Ie):void 0,onAgentNotifyChange:O,onViewMembers:()=>{if(!M){fe?.(y,"panel");return}Ae&&(it(null),a?.()),mn(!0)},onAddMembers:()=>{if(!M){fe?.(y,"add");return}vn(!1),bt(!0)},onJoin:()=>{B?B(y):T?.()},onOwnAgent:Ie=>{Xn(null),Vt({conversationId:y.id,subject:{kind:Ie.id,agentName:Ie.agentName,action:Ie.action},item:Ie})},onLeave:()=>{Xn(null),Vt({conversationId:y.id,subject:{kind:"leave",conversationKind:y.kind==="group"?"group":"channel",agentStays:y.builtin==="agents"}})},onArchive:()=>un({kind:"archive",conversationId:y.id})};return{sections:Ne,conversation:y,agentNotify:se?.notify??null,handlers:Me}},kr=y=>i.jsx("ul",{className:"flex flex-col",children:y.map(M=>i.jsx(m1,{hasDraft:ie.entries.some(({entry:Q,tenantId:se})=>se===M.tenant_id&&(!!Bt(se,Xe(Q.target)).trim()||Us(se,Xe(Q.target))>0||(Q.attachments?.length??0)>0)&&Ea(Q.target,[M],w)?.id===M.id),conversation:M,selected:co(M),selfAccountId:w,title:M.kind==="dm"?(()=>{const Q=M.members.find(se=>se.state!=="removed"&&!(se.kind==="human"&&se.account_id===w));return Q?Ws(Q,M.tenant_id):void 0})():void 0,organizationName:Ke?vr(M,b)??o("ui.teamBridge.scope.unknown"):void 0,onSelect:()=>He({type:"conversation",id:M.id}),menu:po(M)},M.id))}),fo={"aria-busy":Qn||ft||void 0,onPointerEnter:()=>vt(!0),onPointerLeave:()=>vt(!1)},ko=i.jsxs(i.Fragment,{children:[i.jsx("h1",{className:"sr-only",children:o("ui.teamBridge.page.title")}),i.jsxs("header",{className:G("flex h-12 shrink-0 items-center gap-1",va),children:[i.jsx(Uy,{organizations:b,scope:f,onScopeChange:Ht??yn,totalUnread:x,membershipsLoading:v,organizationsFailed:k,unreadRefreshing:ft,onRetry:pn}),i.jsx("span",{"data-rail-refreshing":ft?"unread":Qn?"rows":void 0,"aria-hidden":"true",className:G("size-1.5 shrink-0 rounded-full",ft||Qn?"bg-ink-dim":"bg-transparent")}),i.jsx(Y,{size:"icon",variant:"ghost","aria-label":o("ui.teamBridge.compose.new"),"aria-disabled":hn||void 0,title:hn?uo:void 0,className:hn?"text-ink-disabled hover:bg-transparent":void 0,onClick:()=>{hn||He(ie.drafts.compose?.target??{type:"compose",recipients:[]})},children:i.jsx(xa,{size:16})})]}),i.jsxs("nav",{"aria-label":o("ui.teamBridge.drafts.navigation"),className:G("flex flex-col pb-1",va),children:[i.jsxs("button",{type:"button","aria-current":$e==="drafts"?"page":void 0,onClick:()=>ri("drafts"),className:"flex h-8 items-center gap-2 rounded-md px-2 text-[14px] text-ink-muted hover:bg-row-hover hover:text-ink",children:[i.jsx(Fa,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.drafts.title")]}),i.jsxs("button",{type:"button",disabled:!w,"aria-current":$e==="scheduled"?"page":void 0,onClick:()=>ri("scheduled"),className:"flex h-8 items-center gap-2 rounded-md px-2 text-[14px] text-ink-muted hover:bg-row-hover hover:text-ink disabled:text-ink-disabled",children:[i.jsx(wi,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.schedule.list")]}),Qt.current&&i.jsxs("button",{type:"button","aria-current":$e==="invitations"?"page":void 0,onClick:()=>ri("invitations"),className:"flex h-8 items-center gap-2 rounded-md px-2 text-[14px] text-ink-muted hover:bg-row-hover hover:text-ink",children:[i.jsx(Og,{size:16,"aria-hidden":"true"}),i.jsx("span",{className:"min-w-0 flex-1 truncate text-start",children:o("ui.teamBridge.invitations.title")}),xt.length>0&&i.jsx(Gi,{count:xt.length,className:"shrink-0","aria-label":o("ui.teamBridge.invitations.count",{count:xt.length})})]}),je&&($e==="archived"||Eo(ue).length>0||at.some(Io))&&i.jsxs("button",{type:"button","aria-current":$e==="archived"?"page":void 0,onClick:()=>{je(),ri("archived")},className:G("flex h-8 items-center gap-2 rounded-md px-2 text-[14px]",$e==="archived"?Da:"text-ink-muted hover:bg-row-hover hover:text-ink"),children:[i.jsx(Na,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.archive.section.archived")]})]}),i.jsxs(Ra,{ref:lo.ref,"data-team-bridge-rail-scroll":"",onClickCapture:lo.onClickCapture,className:"min-h-0 flex-1 [&_[data-radix-scroll-area-viewport]>div]:block!",children:[r==="error"&&(at.length>0?i.jsxs("div",{className:"space-y-1 px-4 py-3 text-[12px] text-ink-muted",children:[i.jsx("p",{children:o("ui.teamBridge.list.error_stale")}),cn&&i.jsx("button",{type:"button",className:"underline",onClick:cn,children:o("ui.teamBridge.list.retry")})]}):(d!==null||$e!==null||e?.active)&&i.jsxs("div",{className:"flex flex-col items-start gap-1 px-4 py-3",children:[i.jsx("p",{className:"text-meta text-ink-dim",children:o("ui.teamBridge.list.error")}),cn&&i.jsx("button",{type:"button",className:"min-h-6 rounded-sm font-medium text-meta text-accent hover:underline",onClick:cn,children:o("ui.teamBridge.list.retry")})]})),i.jsx(Ct,{id:"team-bridge-channels-heading",title:o("ui.teamBridge.section.channels"),menu:je?{label:o("ui.teamBridge.archive.section.menu"),items:[{key:"archived",label:o("ui.teamBridge.archive.section.archived"),icon:i.jsx(Na,{size:14,"aria-hidden":"true"}),onSelect:()=>{je(),ri("archived")}}]}:void 0,add:hn?void 0:{label:o("ui.teamBridge.section.channels_add"),onAdd:Ni},empty:r==="ready"&&Et.channels.length===0?{text:hn?o("ui.teamBridge.section.channels_none"):o("ui.teamBridge.section.channels_empty"),onCreate:hn?void 0:Ni}:void 0,children:r==="loading"?i.jsx(st,{label:o("ui.teamBridge.list.loading")}):kr(Et.channels)}),i.jsx(Ct,{id:"team-bridge-groups-heading",title:o("ui.teamBridge.section.groups"),add:hn?void 0:{label:o("ui.teamBridge.section.groups_add"),onAdd:()=>He(ie.drafts.compose?.target??{type:"compose",recipients:[]})},empty:r==="ready"&&Et.groups.length===0?{text:hn?o("ui.teamBridge.section.groups_none"):o("ui.teamBridge.section.groups_empty"),onCreate:hn?void 0:()=>He(ie.drafts.compose?.target??{type:"compose",recipients:[]})}:void 0,children:r==="loading"?i.jsx(st,{label:o("ui.teamBridge.list.loading")}):kr(Et.groups)}),Vs.length>0&&i.jsx(Ct,{id:"team-bridge-directs-heading",title:o("ui.teamBridge.section.directs"),children:kr(Vs)}),Ke?i.jsxs(i.Fragment,{children:[i.jsx(Ct,{id:"team-bridge-people-heading",title:o("ui.teamBridge.people.title"),empty:ho,children:mo??er.map((y,M)=>{const Q=Dl("people",y.tenantId);return i.jsxs(u.Fragment,{children:[aa&&i.jsx(os,{id:Q,name:y.name,first:M===0}),y.state==="loading"?i.jsx(st,{label:o("ui.teamBridge.people.loading")}):y.state==="error"?i.jsx(ad,{error:pt?.[y.tenantId],onRetry:()=>bn?.(y.tenantId)}):y.members.length===0?i.jsx(ha,{children:o("ui.teamBridge.people.empty")}):i.jsx("ul",{className:"flex flex-col","aria-labelledby":aa?Q:void 0,children:y.members.map(se=>i.jsx(Ol,{hasDraft:!!Bt(y.tenantId,`person:${se.account_id}`).trim(),member:se,selfAccountId:w,identityKnown:Mi,selected:!1,dm:Ro(y.directs,se.account_id,w),readOnly:Se,onSelect:()=>{yn(fn(y.tenantId)),He({type:"person",accountId:se.account_id})},onStartGroup:Ne=>{yn(fn(y.tenantId)),la(Ne)}},Pl(y.tenantId,se.account_id)))})]},y.tenantId)})}),i.jsx(Ct,{id:"team-bridge-chiefs-heading",title:o("ui.teamBridge.section.chiefs"),empty:ho,children:yu??er.map((y,M)=>{const Q=Dl("chiefs",y.tenantId);return i.jsxs(u.Fragment,{children:[aa&&i.jsx(os,{id:Q,name:y.name,first:M===0}),y.state==="loading"?i.jsx(st,{label:o("ui.teamBridge.people.loading")}):y.state==="error"?i.jsx(ha,{children:o("ui.teamBridge.people.error")}):y.chiefs.length===0?i.jsx(ha,{children:o("ui.teamBridge.section.chiefs_empty")}):i.jsx("ul",{className:"flex flex-col","aria-labelledby":aa?Q:void 0,children:y.chiefs.map(se=>i.jsx(ql,{hasDraft:!!Bt(y.tenantId,`chief:${se.person.account_id}`).trim(),chief:se,label:lt(se.agentName,nn(se.person),nr),selected:!1,dm:Co(y.directs,se.person.account_id,w),readOnly:Se,onSelect:()=>{yn(fn(y.tenantId)),He({type:"chief",accountId:se.person.account_id})},onStartGroup:Ne=>{yn(fn(y.tenantId)),la(Ne)}},Pl(y.tenantId,se.person.account_id)))})]},y.tenantId)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Ct,{id:"team-bridge-people-heading",title:o("ui.teamBridge.people.title"),empty:Mn==="ready"&&Ee.length===0?{text:ea?o("ui.teamBridge.people.error"):o("ui.teamBridge.people.empty")}:void 0,children:Mn==="loading"?i.jsx(st,{label:o("ui.teamBridge.people.loading")}):Mn==="error"?i.jsx(ad,{error:An,onRetry:Qa}):i.jsx("ul",{className:"flex flex-col",children:Ee.map(y=>i.jsx(Ol,{hasDraft:!!Bt(re,`person:${y.account_id}`).trim(),member:y,selfAccountId:w,identityKnown:Mi,selected:Fl(d,"person",y.account_id),dm:Ro(St,y.account_id,w),readOnly:Se,onSelect:()=>He({type:"person",accountId:y.account_id}),onStartGroup:la},y.account_id))})}),i.jsx(Ct,{id:"team-bridge-chiefs-heading",title:o("ui.teamBridge.section.chiefs"),empty:Mn==="ready"&&Ai.length===0?{text:o("ui.teamBridge.section.chiefs_empty")}:void 0,children:Mn==="loading"?i.jsx(st,{label:o("ui.teamBridge.people.loading")}):Mn==="error"?null:i.jsx("ul",{className:"flex flex-col",children:Ai.map(y=>i.jsx(ql,{hasDraft:!!Bt(re,`chief:${y.person.account_id}`).trim(),chief:y,label:lt(y.agentName,nn(y.person),gi()),selected:Fl(d,"chief",y.person.account_id),dm:Co(St,y.person.account_id,w),readOnly:Se,onSelect:()=>He({type:"chief",accountId:y.person.account_id}),onStartGroup:la},y.person.account_id))})})]}),e?.rail(()=>{xn(null),it(null),a?.()})]})]}),vu=i.jsxs("div",{"data-glass-split":"","data-glass-region":"canvas",className:"panel-flush @container/bridge relative flex min-h-0 flex-1 w-full overflow-hidden bg-canvas",children:[i.jsx(im,{inline:i.jsx("aside",{"data-glass-region":"page-sidebar",className:"panel-top-pad flex w-72 shrink-0 flex-col bg-surface",...fo,children:ko}),children:i.jsx("aside",{"data-team-bridge-rail":"hosted",className:"flex min-h-0 flex-1 flex-col",...fo,children:ko})}),i.jsxs("section",{"data-glass-region":"canvas-content",className:G("panel-top-pad flex min-w-0 flex-1 flex-col bg-canvas",(dr||lr)&&"@max-[1024px]/bridge:invisible"),children:[tn,L&&i.jsxs("div",{role:"alert","data-partial-leave":"",className:"mx-5 mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 rounded-md bg-danger-wash px-3 py-2 text-[13px] text-ink",children:[i.jsx("span",{className:"min-w-0 flex-1",children:L.retryFailed?o("ui.teamBridge.conversation_menu.partial_leave.retry_failed",{conversation:L.name}):o("ui.teamBridge.conversation_menu.partial_leave.body",{conversation:L.name})}),i.jsx(Y,{type:"button",size:"sm",variant:"ghost",disabled:L.retrying,onClick:$,children:o("ui.teamBridge.conversation_menu.partial_leave.retry")}),i.jsx(Y,{type:"button",size:"sm",variant:"ghost",disabled:L.retrying,onClick:le,children:o("ui.common.actions.dismiss")})]}),e?.active?e.panel:$e==="invitations"?i.jsx(Ak,{invitations:xt,listState:r,onRetry:cn,readOnly:Se,organizationNames:Ke?Object.fromEntries(b.map(y=>[y.tenantId,y.name])):void 0}):$e==="scheduled"&&w?i.jsx(rx,{accountId:w,organizationNames:Object.fromEntries(b.map(y=>[y.tenantId,y.name])),conversationNames:Object.fromEntries(c.flatMap(y=>{const M=ui(y,w);return M?[[y.id,M]]:[]})),tenantIds:Ke?b.map(y=>y.tenantId):[f],readOnly:Se}):$e==="archived"?i.jsx(Rf,{state:he,conversations:Eo(ue),hasMore:ke,loadingMore:Z,loadMoreFailed:me,onLoadMore:Ce,organizationName:Ke?y=>vr(y,b):void 0,onRetry:ye,onOpen:y=>{xn(null),He({type:"conversation",id:y.id})}}):$e==="drafts"?i.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-5","aria-label":o("ui.teamBridge.drafts.title"),children:[i.jsx("h2",{className:"text-lg font-medium text-ink",children:o("ui.teamBridge.drafts.title")}),ie.entries.filter(({entry:y,tenantId:M})=>Hs(y,M)).length===0&&i.jsx("p",{className:"text-ink-muted",children:o("ui.teamBridge.drafts.empty")}),ie.entries.filter(({entry:y,tenantId:M})=>Hs(y,M)).map(({key:y,tenantId:M,entry:Q})=>i.jsxs("button",{type:"button",onClick:()=>{M!==f&&yn(fn(M)),He(Q.target)},className:"rounded-md bg-surface p-3 text-left text-ink hover:bg-row-hover",children:[i.jsx("span",{className:"block text-sm font-medium",children:xu(Q.target)}),i.jsx("span",{className:"block truncate text-sm text-ink-muted",children:Bt(M,Xe(Q.target))||Q.body})]},y))]}):d===null?r==="loading"?i.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:i.jsx(zl,{label:o("ui.teamBridge.list.loading")})}):i.jsx("div",{className:"flex flex-1 items-center justify-center px-6",children:r==="error"?i.jsxs("div",{role:"alert",className:"flex max-w-sm flex-col items-center text-center",children:[i.jsx(Ag,{size:40,"aria-hidden":"true",className:"text-ink-dim"}),i.jsx("p",{className:"mt-3 font-semibold text-[15px] text-ink",children:o("ui.teamBridge.list.error")}),cn&&i.jsx("button",{type:"button",onClick:cn,className:"mt-2 min-h-6 rounded-sm px-1.5 font-medium text-[13px] text-accent hover:underline",children:o("ui.teamBridge.list.retry")})]}):i.jsxs("div",{className:"flex max-w-sm flex-col items-center text-center",children:[i.jsx(Th,{size:40,"aria-hidden":"true",className:"text-ink-dim"}),i.jsx("p",{className:"mt-3 font-semibold text-[15px] text-ink",children:o("ui.teamBridge.list.empty.title")}),i.jsx("p",{className:"mt-1 text-[13px] text-ink-muted",children:hn?uo:o("ui.teamBridge.list.empty.body")}),!hn&&i.jsxs(Y,{size:"md",variant:"primary",className:"mt-4",onClick:()=>He(ie.drafts.compose?.target??{type:"compose",recipients:[]}),children:[i.jsx(xa,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.compose.new")]})]})}):i.jsxs(i.Fragment,{children:[d.type==="compose"?i.jsx(wc,{recipients:ai,candidates:du,profileFor:y=>Ee.find(M=>M.account_id===y.accountId),onChange:y=>He({type:"compose",recipients:y})}):i.jsxs("header",{className:"flex h-12 shrink-0 items-center gap-2 px-5",children:[H?.kind==="channel"?i.jsx(Pa,{size:16,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}):H?.kind==="group"?i.jsx(mt,{size:16,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}):d.type==="chief"?i.jsx(Ot,{size:16,"aria-hidden":"true",className:"shrink-0 text-accent"}):null,i.jsx("h2",{className:"min-w-0 truncate font-semibold text-[15px] text-ink",children:Nn??o("ui.teamBridge.list.untitled")}),Ke&&ar&&i.jsx("span",{className:"shrink-0 rounded-sm bg-elevated px-1.5 py-0.5 text-meta-sm text-ink-dim",children:ar}),H&&H.kind!=="dm"&&i.jsxs(i.Fragment,{children:[i.jsx("span",{"aria-hidden":"true",className:"h-4 w-px shrink-0 bg-hairline"}),i.jsxs("button",{type:"button",disabled:qn,"aria-expanded":lr,"aria-label":Pi.invited>0?o("ui.teamBridge.members_panel.open_label_invited",{active:Pi.active,invited:Pi.invited}):o("ui.teamBridge.members_panel.open_label",{count:To(H)}),onClick:()=>{if(yt){mn(!1);return}Ae&&(it(null),a?.()),mn(!0)},className:G("shrink-0 rounded-sm px-1 py-0.5 text-start text-[13px] text-ink-muted transition-colors duration-fast","enabled:hover:bg-surface enabled:hover:text-ink disabled:cursor-default"),children:[i.jsx(mt,{size:13,"aria-hidden":"true",className:"me-1 inline-block align-[-2px]"}),Pi.invited>0?o("ui.teamBridge.member.active_count",{count:Pi.active}):o("ui.teamBridge.member.count",{count:To(H)})]}),(H.topic?.trim()||sr)&&i.jsxs(i.Fragment,{children:[i.jsx("span",{"aria-hidden":"true",className:"h-4 w-px shrink-0 bg-hairline"}),i.jsx("span",{className:"min-w-0 truncate text-[13px] text-ink-muted",children:H.topic?.trim()?H.topic.trim():sr?o(sr):null})]})]}),H&&!qn&&!Se&&q&&Kn(H,w)&&i.jsxs(Y,{type:"button",size:"sm",variant:"ghost",className:"shrink-0",onClick:()=>{vn(!1),bt(!0)},children:[i.jsx(pi,{size:14,"aria-hidden":"true"}),o("ui.teamBridge.members.menu")]}),i.jsx("div",{className:"ms-auto flex items-center gap-1",children:H&&!Se&&(()=>{const y=po(H);return i.jsx(rk,{sections:y.sections,conversation:H,agentNotify:y.agentNotify,handlers:y.handlers,defaultOpen:ln})})()})]}),S&&i.jsx("p",{role:"alert",className:"px-5 pb-1 text-[12px] text-danger",children:o("ui.teamBridge.notify.error")}),C&&i.jsx("p",{role:"alert",className:"px-5 pb-1 text-[12px] text-danger",children:o("ui.teamBridge.agentNotify.error")}),H?.status==="archived"&&i.jsx(If,{conversation:H,canManage:!Se&&!!(X&&ae)&&Mh(H),error:ve,onUnarchive:()=>X?.(H),onDelete:()=>{Dn(null),un({kind:"delete",conversationId:H.id})}}),i.jsx(Ra,{ref:en.rootRef,className:"min-h-0 flex-1 [&_[data-radix-scroll-area-viewport]>div]:block! [&_[data-radix-scroll-area-viewport]>div]:h-full [&_[data-radix-scroll-area-viewport]]:[overflow-anchor:none]",children:i.jsx("div",{className:"flex min-h-full flex-col",children:qn?i.jsx(qx,{joining:N,joinFailed:_,readOnly:Se,onJoin:T}):ti?i.jsx("p",{className:"px-5 py-8 text-[13px] text-ink-muted",children:o("ui.teamBridge.scope.thread_unknown")}):d?.type==="conversation"&&H===null&&r==="ready"&&!ku?i.jsx("p",{className:"px-5 py-8 text-[13px] text-ink-muted",children:o("ui.teamBridge.thread.not_available")}):H===null&&Bn.messages.length===0?i.jsx("div",{className:"mt-auto flex flex-col gap-2 px-5 pb-5",children:d.type==="compose"?i.jsx("p",{className:"text-[13px] text-ink-muted",children:ai.length===0?o("ui.teamBridge.compose.empty"):o("ui.teamBridge.thread.intro_group",{names:ai.map(y=>y.label).join(", ")})}):i.jsxs(i.Fragment,{children:[ii?i.jsx(ct,{member:ii,label:Nn??"",kind:d.type==="chief"?"agent":"human",onMessage:()=>{},canMessage:!1,children:i.jsx("button",{type:"button","data-draft-avatar":"",className:"self-start rounded-full",children:i.jsx(kn,{member:ii,kind:d.type==="chief"?"agent":"human",label:Nn??"",size:56,className:"text-[22px]"})})}):i.jsx("span",{"aria-hidden":"true",className:G("flex size-14 items-center justify-center overflow-hidden rounded-full font-semibold text-[22px]","bg-accent-alt-wash",d.type==="chief"?"text-accent":"text-accent-alt"),children:d.type==="chief"?i.jsx(Ot,{size:26}):(Nn??"").trim().charAt(0).toUpperCase()||"?"}),i.jsx("p",{"data-draft-name":"",className:"font-semibold text-[17px] text-ink",children:Nn}),i.jsx("p",{className:"text-[13px] text-ink-muted",children:d.type==="chief"?o("ui.teamBridge.thread.intro_chief",{name:Nn??""}):o("ui.teamBridge.thread.intro_person",{name:Nn??""})})]})}):s==="loading"&&Bn.localCount===0?i.jsx(zl,{label:o("ui.teamBridge.thread.loading")}):s==="error"?i.jsxs("div",{role:"alert",className:"px-5 py-8 text-[13px]",children:[i.jsx("p",{className:"text-ink-muted",children:o("ui.teamBridge.thread.error")}),l&&i.jsx("button",{type:"button",onClick:l,className:"-ml-1.5 mt-2 min-h-6 rounded-sm px-1.5 font-medium text-[13px] text-accent hover:underline",children:o("ui.teamBridge.list.retry")})]}):s==="forbidden"?i.jsx("p",{className:"px-5 py-8 text-[13px] text-ink-muted",children:o("ui.teamBridge.archive.thread.forbidden")}):Bn.messages.length===0?i.jsx("p",{className:"mt-auto px-5 pb-4 text-[13px] text-ink-muted",children:H?.status==="archived"?o("ui.teamBridge.archive.thread.empty"):o("ui.teamBridge.thread.empty")}):i.jsx(Aa,{messages:Bn.messages,unreadAfterSeq:cu,events:p,presentationOf:y=>{const M=Bn.localOf(y),Q=M!==void 0&&(M.status!=="sent"||M.serverRow===void 0);return{key:Bn.keyOf(y),local:Q,delivery:M&&Q?{status:M.status==="failed"?"failed":"pending",onRetry:M.status==="failed"&&be()?()=>{Tt.getState().patch(M.localId,{status:"pending",autoRetried:M.autoRetried}),so(M)}:void 0,onEdit:M.status==="failed"&&be()?()=>{En.getState().returnPayload(_e,{text:M.body,attachments:[],replies:[]}),Tt.getState().remove(M.localId)}:void 0}:void 0}},profileFor:y=>tr(y,H?.tenant_id??""),canMessagePerson:y=>ir(y,H?.tenant_id??"")!==null,onMessagePerson:Mi?y=>Gs(y,H?.tenant_id??""):void 0,arrivalKey:Di,highlightId:g,scrollRootRef:en.rootRef,hasOlder:h?.hasOlder??!1,loadingOlder:h?.loadingOlder??!1,onLoadOlder:h?.onLoadOlder,tenantId:H?.tenant_id,accountId:w,labelFor:y=>zi(y,H?.tenant_id??""),reactionContext:Ys,onReply:Zt?pu:void 0})})}),!qn&&(H?.status==="archived"?i.jsx("p",{className:"shrink-0 px-5 pb-4 text-[12px] text-ink-dim leading-snug",children:o("ui.teamBridge.archive.composer.note")}):Se?Ya?null:i.jsx("p",{className:"shrink-0 px-5 pb-4 text-[12px] text-ink-dim leading-snug",children:o("ui.teamBridge.read_only.composer")}):i.jsxs("div",{className:"flex min-w-0 shrink-0 flex-col gap-2 px-4 pt-1 pb-4","data-lo-composer-band":!0,children:[jt&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.schedule.failed")}),_n&&i.jsx("p",{"aria-live":"polite",className:"text-sm text-ink-muted",children:o("ui.teamBridge.schedule.success")}),On&&i.jsxs("p",{className:"text-sm text-danger",role:"alert",children:[On.kind==="capability"&&o("ui.teamBridge.attachments.unsupported"),On.kind==="expired"&&o("ui.teamBridge.attachments.expired_staged_retry"),On.kind==="upload"&&i.jsxs("span",{className:"inline-flex min-w-0 flex-wrap items-baseline gap-x-1.5",children:[i.jsx("span",{className:"font-medium",children:On.failure.name}),i.jsx("span",{children:o(Dx[On.failure.reason])})]})]}),R&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.composer.error")}),ie.storageFailed&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.drafts.storage_failed")}),Le?i.jsx(Ik,{reasonId:ne,busy:j||Qe,onRetry:Te?()=>{const y=ie.current?.sendAt;y&&oo(y).catch(()=>_t(!0))}:void 0,onDiscard:()=>{Ln.current||Qe||j||ie.update({sendAt:void 0,clientRef:crypto.randomUUID()})&&_t(!1)}}):ie.current?.createUncertain&&!Qe?i.jsxs("div",{role:"alert",className:"text-sm text-danger",children:[i.jsx("p",{id:ne,children:o("ui.teamBridge.schedule.create_uncertain")}),i.jsx(Y,{variant:"ghost",onClick:()=>ie.update({createUncertain:!1}),children:o("ui.teamBridge.schedule.create_retry")})]}):null,!rt&&i.jsx("p",{id:cr,className:"text-sm text-ink-muted",children:o("ui.teamBridge.compose.empty")}),i.jsx(ik,{conversationId:_e,placeholder:fu,canAttach:!!Pn,onFileCountChange:Ci,fileContext:{accountId:w,tenantId:De?.tenant_id??(re===Ve?void 0:re),conversationId:De?.id??null,capability:Ut},recordingProbe:_i,disabled:!rt||!!Le||!!ie.current?.createUncertain,disabledReasonId:Le||ie.current?.createUncertain?ne:rt?void 0:cr,sendDisabled:!!ie.current?.sendAt||Qe,sending:j,hint:Zn>0?o("ui.teamBridge.files.no_schedule"):j?o("ui.chat.canonical.send_failure.send_lock"):void 0,onSendMessage:bu,typingTarget:hu,trailing:Te?i.jsx(Y,{ref:E,variant:"ghost",size:"icon-sm","aria-label":o("ui.teamBridge.schedule.title"),title:j?o("ui.chat.canonical.send_failure.send_lock"):void 0,"aria-describedby":ie.current?.createUncertain&&!Qe||Le?ne:rt?void 0:cr,disabled:Zn>0||!!ie.current?.sendAt||!!ie.current?.createUncertain||!Ue||j||Qe||!rt,onClick:()=>ia(!0),children:i.jsx(wi,{size:16,"aria-hidden":"true"})}):void 0}),sa&&i.jsx(ru,{rootId:null,className:"-mt-1"}),i.jsx(eu,{open:jn,returnFocus:E,onOpenChange:ia,busy:Qe,onSchedule:oo})]}))]})]}),Zt&&Ae&&H&&Ae.conversationId===H.id&&Ae.tenantId===H.tenant_id&&!qn&&!ti&&i.jsx("div",{className:G("absolute inset-y-0 end-0 z-20 min-w-0 @min-[1024px]/bridge:static @min-[1024px]/bridge:w-[min(26rem,45%)] @min-[1024px]/bridge:min-w-72 @min-[1024px]/bridge:shrink-0",wt?"start-0":"start-72"),children:n?n(Ae,()=>{it(null),a?.()}):i.jsx(Nx,{target:Ae,canMessagePerson:y=>ir(y,Ae.tenantId)!==null,profileFor:y=>tr(y,Ae.tenantId),onMessagePerson:Mi?y=>Gs(y,Ae.tenantId):void 0,initialRoot:m.find(y=>y.id===Ae.rootId),labelFor:y=>zi(y,Ae.tenantId),readOnly:Se,reactionContext:Ys,accountId:w,attachmentCapability:Pn,filesCapability:Ut,typingEnabled:sa,onClose:()=>{it(null),a?.()}},`${Ae.tenantId}:${Ae.conversationId}:${Ae.rootId}`)}),lr&&H&&!dr&&i.jsx("div",{className:G("absolute inset-y-0 end-0 z-20 min-w-0 @min-[1024px]/bridge:static @min-[1024px]/bridge:w-[min(26rem,45%)] @min-[1024px]/bridge:min-w-72 @min-[1024px]/bridge:shrink-0",wt?"start-0":"start-72"),children:i.jsx(qk,{conversation:H,people:ni(H.tenant_id),selfAccountId:w,conversationName:Nn??o("ui.teamBridge.list.untitled"),onAddMembers:!Se&&q&&Kn(H,w)?()=>{vn(!1),bt(!0)}:void 0,onAction:Se?void 0:(y,M)=>{if(M==="remove")return!K||!$i(H,w)?Promise.reject(new Error("Team Bridge write authority changed")):K(H,y.member.account_id);if(!U)return Promise.reject(new Error("Team Bridge write authority changed"));const Q=y.member.endpoint_id;return U(H,M,typeof Q=="string"?Q:void 0).then(se=>(M==="leave"&&(mn(!1),He(jr(at,H.id,ei))),se))},onClose:()=>mn(!1)},`${H.tenant_id}:${H.id}`)}),(()=>{const y=Yn?Za.find(Me=>Me.id===Yn.conversationId):void 0;if(!Yn||!y)return null;const M=ui(y,w)??o("ui.teamBridge.list.untitled"),Q=d?.type==="conversation"&&d.id===y.id,se=()=>{Vt(null),Xn(null)},Ne=()=>{if(Bi)return;const{subject:Me,item:Ie}=Yn;let Be;if(Me.kind==="leave")Be=F?.(y).then(Re=>(Q&&(mn(!1),He(gk(at,y.id,ei))),Re));else if(Ie){const Re=hk(y,w,go(y.tenant_id),Ie);Be=Re?A?.(y,Re):Promise.reject(new Error("Team Bridge write authority changed"))}Be&&(Si(!0),Xn(null),Be.then(()=>{Si(!1),Vt(null)},Re=>{Si(!1),Xn(y.builtin!=="general"?"error":wk(Re)?"not_in_general":Ie?.action==="accept"&&kk(Re)?"general_rejoin_refused":"error")}))};return i.jsx(sk,{subject:Yn.subject,conversationName:M,pending:Bi,error:Ei,onClose:se,onConfirm:Ne})})(),(()=>{const y=Gt?Za.find(se=>se.id===Gt.conversationId):void 0;if(!Gt||!y)return null;const M=Ns(y),Q=d?.type==="conversation"&&d.id===y.id;return Gt.kind==="archive"?i.jsx(Sf,{open:!0,name:M,onClose:()=>un(null),onConfirm:()=>{un(null),de?.(y),Q&&He(jr(at,y.id,ei))}}):i.jsx(Ef,{open:!0,name:M,pending:Ii,error:Ri,onClose:()=>un(null),onConfirm:()=>{!ae||Ii||(Jt(!0),Dn(null),ae(y).then(()=>{Jt(!1),un(null),Q&&(ce(jr(at,y.id,ei)),je?.(),ri("archived"))},se=>{Jt(!1),Dn(se?.code==="conversation_not_found"?"gone":"error")}))}})})(),H&&i.jsx(Bf,{open:Wt,conversation:H,people:H?ni(H.tenant_id):[],selfAccountId:w,peopleState:Ke?wn?.[H.tenant_id]??"loading":Mn,canInvite:!Se&&Kn(H,w),canRemove:!Se&&$i(H,w),mutationError:ta,pendingKey:I,onClose:()=>{I||(bt(!1),vn(!1))},onRetryMembers:bn,onAdd:y=>{!q||Se||!Kn(H,w)||(vn(!1),q(H,y).catch(()=>{vn(!0)}))},onRemove:y=>{!K||Se||!$i(H,w)||(vn(!1),K(H,y).catch(()=>{vn(!0)}))}})]});return i.jsx(hp,{conversation:H,people:H?ni(H.tenant_id):[],selfAccountId:w,sendMentions:we==="enabled",onAddMembers:q,children:i.jsx(yx,{conversationId:H?.id??null,tenantId:H?.tenant_id??null,selfAccountId:w??null,open:sa,threadRootId:dr?Ae?.rootId??null:null,labelFor:gu,children:vu})},JSON.stringify([w,re]))},qx=({joining:e=!1,joinFailed:n=!1,readOnly:t=!1,onJoin:a})=>(ge(),i.jsx("div",{className:"flex flex-1 items-center justify-center px-6 py-10",children:i.jsxs("div",{className:"flex max-w-md flex-col items-center gap-3 text-center",children:[i.jsx("p",{className:"text-[13px] text-ink",children:o("ui.teamBridge.preview.banner")}),n&&i.jsx("p",{role:"alert",className:"text-[12px] text-danger",children:o("ui.teamBridge.preview.join_error")}),t?i.jsx("p",{className:"text-[12px] leading-snug text-ink-dim",children:o("ui.teamBridge.read_only.note")}):i.jsx(Y,{type:"button",size:"sm",variant:"primary",disabled:e,onClick:a,children:o("ui.teamBridge.preview.join")})]})})),tv=()=>{const e=am(),n=u.useRef(new Map),t=u.useRef(new Map),a=u.useRef(null),r=u.useRef(null);return i.jsx(Kx,{accountId:e.accountId,drafts:n.current,receipts:t.current,messageLinkCarry:a,clickCarry:r},e.token)},Fx=8e3,$x=Math.floor(Cm/cd)-1,Kr=(e,n,t)=>JSON.stringify([e,n,t]),Kx=({accountId:e,drafts:n,receipts:t,messageLinkCarry:a,clickCarry:r})=>{const s=ht(),[l,c]=Ph(),d=l.get("conversation"),m=l.get("tenant"),h=l.get("thread"),p=l.get("message"),g=sm(l),b=!d&&g&&g.target.type!=="conversation"?g.target:null,f=b?.type??null,x=b?.accountId??null,v=!!(d||b),[k,w]=u.useState(()=>{const E=p&&d&&!h?{conversationId:d,messageId:p,fetched:!1,newestRead:!1}:v?null:a.current;return a.current=E,E}),j=u.useCallback(E=>w(ne=>{const re=typeof E=="function"?E(ne):E;return a.current=re,re}),[a]),R=u.useMemo(()=>{const E=ot();return E&&e?Tx(E,e)??Ng(E,e):void 0},[e]),N=u.useRef(v?null:r.current).current,[_,S]=u.useState(()=>m?fn(m):N?.scope??R??Ve),C=u.useRef({scope:null,view:null});if(C.current.scope!==_){const E=ot();C.current={scope:_,view:E&&e?Mx(E,e,_):null}}const T=v?null:N?.view??C.current.view,[ee,O]=u.useState(()=>d?xo(l):id(T)),q=u.useRef(!!(m||N));u.useEffect(()=>{if(!N||!e)return;const E=ot();E&&$r(E,e,N.scope,N.view)&&(r.current=null)},[N,e,r]);const K=e?s.getQueryData(Rn.conversations(Ve,e))?.conversations:void 0,I=om(),V=Dh(),U=eg(),z=Lh(),B=(U.data?.features?.team_bridge_conversation_owner_guard??0)>=1,F=(I.data?Oh(I.data):null)??(!e&&V.accountRead==="signed-out"?"signed_out":V.unavailable?"update_required":V.error||I.isError||U.isError?"unavailable":U.data&&!B?"update_required":null),A=F===null&&(!e||I.isPending||U.isPending),D=!A&&F===null&&I.data?.account_id===e,J=D?e:void 0,L=op(D?I.data?.tenant_id:null),$=Zg(I.data),le=ep({statusReadOnly:I.data?.read_only===!0,ownerGuard:B,trialPaused:L.paused}),fe=lm(e),de=()=>fe.isCurrent()&&B,X=()=>fe.isAuthorityCurrent()&&B,ae=dm(J),ve=ls({enabled:D}),he=cm(D,Ve,{accountId:e}),ue=qh(I.data),ke=u.useMemo(()=>Fh(ve.memberships,he.data?.organizations,ue).map(E=>({...E,unread:ae.byTenant.get(E.tenantId)??E.unread})),[ve.memberships,he.data,ue,ae]),{pending:Z,failed:me}=$h(ue,ve),je=Do({organizations:ke,stored:R,requestedTenant:m,chosen:q.current,current:_,snapshotRows:K})===_&&!Z,ye=um(_,D&&je,e),xe=ud(_===Ve?null:_,D,e),pe=_===Ve,qe=mm(pe?ke.map(E=>E.tenantId):[],D,e),Wn=V.user?.name??void 0,P=u.useMemo(()=>Bg(K??[],_),[K,_]),te=u.useMemo(()=>(ye.data?.conversations??P).map(E=>hm(E,ae)),[ye.data?.conversations,P,ae]),oe=te.length>0,we=A&&oe,Pe=oe&&(we||ye.isFetching||pe&&Z),ln=oe&&he.isFetching,Fe=xe.data?.members??[],dn=zd(Fe,J,gi()),[be,Ee]=u.useState(()=>d?{type:"conversation",id:d}:b??T?.target??null),Vn=u.useRef(v?null:T?.target??null),wn=u.useRef(new Set(v||T?[_]:[])),pt=u.useRef(null),Jn=u.useRef(_);Jn.current=_;const[Mn,An]=u.useState(!1),ea=u.useRef(()=>{}),Qn=O1({accountId:e,enabled:D&&(U.data?.features?.team_bridge_owner_audit??0)>=1,scopeKey:_,organizations:pe?ke:ke.filter(E=>E.tenantId===_),onSelect:()=>{Ee(null),O(null)}});ea.current=()=>Qn?.clear(),u.useEffect(()=>{if(!(d||f)||!m)return;q.current=!0,wn.current.add(fn(m)),pt.current=null,S(fn(m)),ea.current();const E=d?{type:"conversation",id:d}:{type:f,accountId:x},ne=d?xo(new URLSearchParams({tenant:m,conversation:d,...h?{thread:h}:{}})):null,re=fn(m),ie=ot(),Le={target:E,thread:ne};C.current.scope===re&&(C.current.view=Le),(ie&&e?$r(ie,e,re,Le):!1)||(r.current={scope:re,view:Le}),Vn.current=d?null:E,Ee(E),O(ne),j(d&&p&&!h?{conversationId:d,messageId:p,fetched:!1,newestRead:!1}:null),An(!1),c({},{replace:!0})},[d,f,x,m,h,p,c,j,e,r]);const ft=E=>{q.current=!0,wn.current.delete(E),pt.current=null;const ne=ot();ne&&e&&Ax(ne,e,E),S(E),O(null),Ee(null),An(!1)},Qa=E=>{const ne=ot();ne&&e&&Sg(ne,e,E),ft(E)};u.useEffect(()=>{S(E=>Do({organizations:ke,stored:R,requestedTenant:m,chosen:q.current,current:E,snapshotRows:K}))},[ke,K,R,m]);const bn=u.useMemo(()=>Md(te,_,ke),[te,_,ke]);u.useEffect(()=>{if(!Qn?.active&&be===null&&bn.length>0){const E=pt.current;if(E?.scope===_){Ee(E.target);return}const ne=wn.current.has(_)?null:C.current.view;if(wn.current.add(_),ne){pt.current={scope:_,target:ne.target},Vn.current=ne.target,ne.quickView==="archived"&&na(!0),Ee(ne.target),O(id(ne));return}const re=wd(bn,ke.map(ie=>ie.tenantId));re&&Ee({type:"conversation",id:re.id})}},[bn,ke,be,Qn?.active,_]),u.useEffect(()=>{be!==null&&(pt.current=null)},[be]);const[zn,na]=u.useState(()=>T?.quickView==="archived"),Se=ye.isSuccess&&be?.type==="conversation"&&!bn.some(E=>E.id===be.id),tn=gm(_,D&&(zn||Se),e),kt=tn.data?.conversations??[];u.useEffect(()=>{const E=Vn.current;if(!E||be!==E||!ye.isSuccess||ye.isFetching)return;const ne=!tn.isFetching;let re;E.type==="conversation"?bn.some(ie=>ie.id===E.id)?re=!0:tn.isSuccess&&ne?re=kt.some(ie=>ie.id===E.id):tn.isError&&ne&&(re=!1):E.type==="person"||E.type==="chief"?pe?re=!1:xe.isFetching?re=void 0:xe.isSuccess?re=(xe.data?.members??[]).some(ie=>ie.account_id===E.accountId):xe.isError&&(re=!0):re=!0,re!==void 0&&(Vn.current=null,!re&&(C.current={scope:_,view:null},O(null),Ee(null)))},[be,ye.isSuccess,ye.isFetching,bn,tn.isSuccess,tn.isError,tn.isFetching,kt,xe.isFetching,xe.isSuccess,xe.isError,xe.data,pe,_]);const Ya=E=>{if(!e)return;const ne=ot(),re={target:E.target,thread:E.thread??null,quickView:E.quickView??null,scroll:E.scroll??null};C.current.scope===_&&(C.current.view=re),ne&&$r(ne,e,_,re,Jn.current)},ce=Ea(be,Ad(bn,kt),J),ji=ce!==null&&Oa(ce),Te=pm(ji?null:ce?.id??null,ce?.tenant_id,D,e),Pn=fm(ce?.id??"",ce?.tenant_id),Ut=km(),_i=wm(),Ni=bm(),cn=ym(),yn=dd(),[Ht,pn]=u.useState(null),[wt,$e]=u.useState(null),xn=xm(pe?void 0:_,de),Gt=vm(ce?.id??"",ce?.tenant_id),un=jm(ce?.id??"",ce?.tenant_id),Wt=_m(),bt=Nm(ce?.id,ce?.tenant_id),yt=Bm(_,e),mn=Sm(),ta=Em(),vn=Im(),Yn=()=>{if(be===null)return[];if(be.type==="compose")return be.recipients;if(be.type==="person"){const E=Fe.find(ne=>ne.account_id===be.accountId);return E?[{kind:"human",accountId:E.account_id,label:nn(E)}]:[]}if(be.type==="chief"){const E=fs(Fe,J).find(ne=>ne.person.account_id===be.accountId);return E?[{kind:"agent",accountId:E.person.account_id,endpointId:E.endpointId,agentName:E.agentName,ownerLabel:nn(E.person),label:lt(E.agentName,nn(E.person),gi())}]:[]}return[]},[Vt,Bi]=u.useState(!1),[Si,Ei]=u.useState(!1),Xn=e??"unresolved-owner",Ii=t.get(Xn)??new Map;t.set(Xn,Ii);const Jt={current:Ii},Ri=u.useRef(be);Ri.current=be;const Dn=u.useRef(null),xt=async(E,ne,re,ie)=>{if(!de())throw new Error("Team Bridge write authority changed");const Le=ie?.into;if(Le&&ie){const Oe=await Je.send(Le.conversationId,{clientRef:ne,body:E,tenantId:Le.tenantId,expectedAccountId:vo(e),attachmentIds:await Rr(re,Le.conversationId,Le.tenantId),files:re?.files,mentions:ie.mentions});return md(Le.conversationId,E),await jo(s,Le.conversationId,Le.tenantId,de),Oe}if(ce!==null){const Oe=cs(ce.id,E);return Pn.mutateAsync({clientRef:ne,body:E,mentions:Oe,attachmentIds:await Rr(re,ce.id,ce.tenant_id),files:re?.files})}const _e=Yn(),et=Cd(_e);if(et===null)return;const nt=`${pe?"*":_}|${et.kind}|${_e.map(on).sort().join(",")}`,an=be;ie||(Bi(!0),Ei(!1));let Nt,Ti=!1;const On=(Oe,Ue)=>{if(!(Ti||!de())&&(Ti=!0,an?.type==="compose"&&Ri.current===an)){const tt={type:"conversation",id:Oe};!pe&&typeof Ue=="string"&&Ue.length>0&&Ue===_&&(Dn.current={key:Kr(e,Ue,tt),viewKey:Kr(e,_,an),arrived:!1}),Ee(tt)}};try{const{id:Oe}=await Td({draftKey:nt,input:et,body:E,clientRef:ne,tenantId:pe?void 0:_,remembered:Jt.current,create:Ue=>xn.mutateAsync(Ue),onCreated:ie?Ue=>{ie.onCreated?.(Ue.id,Ue.tenantId),On(Ue.id,Ue.tenantId),ye.refetch()}:void 0,post:async(Ue,tt)=>{if(!X())throw new Error("Team Bridge write authority changed");return Nt=await Je.send(Ue,{...tt,expectedAccountId:vo(e),attachmentIds:await Rr(re,Ue,tt.tenantId),files:re?.files}),Nt}});return de()?(On(Oe),await ye.refetch(),await jo(s,Oe,void 0,de),Nt??{id:Oe}):X()?Nt??{id:Oe}:void 0}catch(Oe){throw de()&&Ei(!0),Oe}finally{!ie&&de()&&Bi(!1)}},Xa=async(E,ne,re,ie,Le,_e)=>{if(le||pe&&!ce||be===null)throw new Error("schedule requires organization");const et=be;return V1({tenantId:ce?.tenant_id??_,conversationId:ce?.id??ie,recipients:Yn(),body:E,clientRef:ne,sendAt:re,attachmentIds:_e?.ids,stageHeld:_e?.stageHeld,remembered:Jt.current,onCreated:Le,onScheduled:nt=>{const an=ix(et,Ri.current,nt);an&&Ee(an),ye.refetch()},create:nt=>xn.mutateAsync(nt),schedule:Je.scheduledCreate})};u.useEffect(()=>{Pn.reset(),un.reset(),Wt.reset(),Ei(!1)},[ce?.id,be]);const vt=Te.messages.reduce((E,ne)=>E===void 0||ne.seq>E?ne.seq:E,void 0);u.useEffect(()=>{!de()||ce===null||vt===void 0||ce.status!=="archived"&&(vt<=ce.last_read_seq||Gt.mutate({seq:vt}))},[ce?.id,vt]);const Qt=k!==null&&ce?.id===k.conversationId,jn=Qt&&Te.messages.some(E=>E.id===k.messageId),ia=Qt&&!jn&&!k.fetched,Qe=u.useRef(0),Yt=u.useRef(null),Zn=u.useRef(null),Ci=u.useRef(!0);u.useEffect(()=>(Ci.current=!0,()=>{Ci.current=!1}),[]),u.useEffect(()=>{if(!(!k||k.fetched||!ce||!J)&&ce.id===k.conversationId){if(Te.isPending||jn){Yt.current=k.messageId,Qe.current=0;return}if(Yt.current!==k.messageId&&(Yt.current=k.messageId,Qe.current=0),!k.newestRead){if(Zn.current===k.messageId)return;Zn.current=k.messageId,s.fetchQuery({...Rm(s,ce.id,ce.tenant_id,J),staleTime:0}).catch(()=>{}).finally(()=>{Zn.current===k.messageId&&(Zn.current=null),Ci.current&&j(E=>E&&E.messageId===k.messageId?{...E,newestRead:!0}:E)});return}if(!Te.isLoadingOlder){if(Te.hasOlder&&Qe.current<$x){Qe.current+=1,Promise.resolve(Te.loadOlder()).then(E=>{E===null&&j(ne=>ne&&{...ne,fetched:!0})}).catch(()=>{});return}j(E=>E&&{...E,fetched:!0})}}},[k,ce,J,s,Te.isPending,Te.hasOlder,Te.isLoadingOlder,Te.loadOlder,jn,j]),u.useEffect(()=>{if(!jn)return;const E=setTimeout(()=>j(null),Kh);return()=>clearTimeout(E)},[jn,j]),u.useEffect(()=>{k&&(ce!==null&&ce.id!==k.conversationId||k.fetched&&!jn)&&j(null)},[k,ce,jn,j]),u.useEffect(()=>{if(!k)return;const E=setTimeout(()=>j(null),Fx);return()=>clearTimeout(E)},[k,j]);const _n=Kr(e,ce?.tenant_id??_,be),Xt=n.get(_n)??{body:""};n.set(_n,Xt);const jt=Dn.current;jt&&(_n===jt.key?jt.arrived=!0:(jt.arrived||_n!==jt.viewKey)&&(Dn.current=null));const _t=C.current.view?Xe(C.current.view.target):null,Ln=Dn.current?.key===_n?Dn.current.viewKey:_n;return i.jsxs(i.Fragment,{children:[i.jsx(Ox,{ownerAudit:Qn,draftJournal:Xt,isDraftCurrent:de,threadLink:ee,threadsCapabilityState:si(U.data,"team_bridge_threads"),reactionsCapabilityState:si(U.data,"team_bridge_reactions"),typingCapabilityState:si(U.data,"team_bridge_typing"),sendMentionsCapabilityState:si(U.data,"team_bridge_send_mentions"),agentNotifyCapabilityState:si(U.data,"team_bridge_agent_notify"),onCloseThread:()=>O(null),initialQuickView:_t!==null&&be!==null&&_t===Xe(be)?C.current.view?.quickView??null:null,initialScroll:zx(C.current.view,be),onViewMemory:Ya,listState:ye.isPending||pe&&Z?oe?"ready":"loading":ye.isError||pe&&me?"error":"ready",messageState:ce===null?"idle":Te.isPending||ia?"loading":Te.isError?Hh(Te.error)?"forbidden":"error":"ready",onRetryMessages:Te.refetch,conversations:te,target:be,messages:Te.messages,events:Te.events,olderPaging:{hasOlder:Te.hasOlder,loadingOlder:Te.isLoadingOlder,onLoadOlder:Te.loadOlder},highlightMessageId:jn?k?.messageId:null,organizations:ke,scope:_,totalUnread:he.data?ae.total:0,refreshingRows:Pe,refreshingUnread:ln,membershipsLoading:Z,organizationsFailed:me,selfAccountId:J,sending:Pn.isPending||Vt,sendFailed:Pn.isError||Si,joining:un.isPending,joinFailed:un.isError,notifyFailed:_r(Wt,ce?.id??null),agentNotifyFailed:_r(bt,ce?.id??null),onJoin:()=>{de()&&un.mutate(void 0)},onArchive:E=>{de()&&mn.mutate({conversationId:E.id,tenantId:E.tenant_id},{onError:()=>ga(o("ui.teamBridge.archive.toast.archive_failed",{name:Ns(E)}))})},onUnarchive:E=>{de()&&ta.mutate({conversationId:E.id,tenantId:E.tenant_id})},onDelete:E=>de()?vn.mutateAsync({conversationId:E.id,tenantId:E.tenant_id}):Promise.reject(new Error("Team Bridge write authority changed")),unarchiveFailed:_r(ta,ce?.id??null),archivedState:tn.isPending?"loading":tn.isError?"error":"ready",archivedConversations:kt,archivedHasMore:tn.data?.has_more===!0,archivedLoadingMore:yt.isPending,archivedLoadMoreFailed:yt.isError,onLoadMoreArchived:()=>{de()&&yt.mutate()},onOpenArchived:()=>na(!0),onRetryArchived:()=>{tn.refetch()},onNotifyChange:E=>{!de()||ce===null||Wt.mutate({conversationId:ce.id,tenantId:ce.tenant_id,notify:E})},onAgentNotifyChange:E=>{!de()||ce===null||bt.mutate({conversationId:ce.id,tenantId:ce.tenant_id,notify:E})},onAddMembers:(E,ne)=>!de()||!Kn(E,e)?Promise.reject(new Error("Team Bridge write authority changed")):Ut.mutateAsync({conversationId:E.id,tenantId:E.tenant_id,members:ne,key:"add"}),onRemoveMember:(E,ne)=>!de()||!$i(E,e)?Promise.reject(new Error("Team Bridge write authority changed")):_i.mutateAsync({conversationId:E.id,tenantId:E.tenant_id,accountId:ne,key:`remove:${ne}`}),onMenuJoin:E=>{de()&&un.mutate({conversationId:E.id,tenantId:E.tenant_id})},onMenuNotifyChange:(E,ne)=>{de()&&Wt.mutate({conversationId:E.id,tenantId:E.tenant_id,notify:ne})},onMenuLeave:E=>{if(!de())return Promise.reject(new Error("Team Bridge write authority changed"));const ne={conversationId:E.id,tenantId:E.tenant_id};return pn(null),pk({leave:()=>Ni.mutateAsync(ne),withdraw:re=>cn.mutateAsync({...ne,endpointId:re,key:`withdraw:${re??""}`}),serverWithdrawsAgent:si(U.data,"team_bridge_leave_withdraws_agent")==="enabled",ownActiveAgent:Uh(E,e),builtin:E.builtin}).then(re=>(re.status==="partial"&&pn({conversationId:E.id,tenantId:E.tenant_id,name:ui(E,e)??o("ui.teamBridge.list.untitled"),endpointId:re.endpointId,retrying:!1,retryFailed:!1}),re))},partialLeave:Ht??void 0,onRetryPartialLeave:()=>{if(!Ht||Ht.retrying||!de())return;const E=Ht;pn({...E,retrying:!0,retryFailed:!1}),cn.mutateAsync({conversationId:E.conversationId,tenantId:E.tenantId,endpointId:E.endpointId,key:`withdraw:${E.endpointId??""}`}).then(()=>pn(null),ne=>fk(ne)?pn(null):pn({...E,retrying:!1,retryFailed:!0}))},onDismissPartialLeave:()=>pn(null),onMenuOwnAgent:(E,ne)=>{if(!de())return Promise.reject(new Error("Team Bridge write authority changed"));const re={conversationId:E.id,tenantId:E.tenant_id};switch(ne.op){case"withdraw":return cn.mutateAsync({...re,endpointId:ne.endpointId,key:`withdraw:${ne.endpointId??""}`});case"decline":case"accept":return yn.mutateAsync({...re,decision:ne.op,endpointId:ne.endpointId});case"add":return Kn(E,e)?Ut.mutateAsync({...re,members:[ne.member],key:"add"}):Promise.reject(new Error("Team Bridge write authority changed"))}},onOpenMembersFor:(E,ne)=>{$e({conversationId:E.id,surface:ne}),wn.current.add(_),O(null),An(!1),Ee({type:"conversation",id:E.id})},initialMembersPanelOpen:wt?.surface==="panel"&&wt.conversationId===ce?.id,initialMembersOpen:wt?.surface==="add"&&wt.conversationId===ce?.id,onMemberSelfAction:(E,ne,re)=>{if(!de())return Promise.reject(new Error("Team Bridge write authority changed"));const ie={conversationId:E.id,tenantId:E.tenant_id};return ne==="leave"?Ni.mutateAsync(ie):ne==="withdraw"?cn.mutateAsync({...ie,endpointId:re,key:`withdraw:${re??""}`}):yn.mutateAsync({...ie,decision:"decline",endpointId:re})},memberMutationKey:Ut.isPending?"add":_i.isPending?_i.variables?.key??"remove":null,onTarget:E=>{E&&wn.current.add(_),O(null),An(!1),$e(null),Ee(E)},onSend:xt,attachmentCapability:Af(I.data),filesCapability:Jf(I.data),recordingProbe:z,onSchedule:_===Ve&&!ce?void 0:Xa,onNewChannel:()=>{le||pe||An(!0)},people:Fe,directories:qe.members,directoryStates:qe.state,directoryErrors:qe.errors,onRetryMembers:E=>{pe?qe.retry(E):xe.refetch()},selfName:Wn,peopleState:xe.isPending?"loading":xe.isError?"error":"ready",peopleError:xe.error,peopleIncomplete:(xe.data?.unavailable_count??0)>0,onRetryPeople:()=>{xe.refetch()},eligibility:F,gatePending:A&&!we,readOnly:le,readOnlyExplained:L.paused,notice:i.jsxs(i.Fragment,{children:[L.note,i.jsx(jk,{status:I.data})]}),noOrgPanel:$?i.jsx(dp,{tenantId:$.tenantId,endedAt:$.endedAt}):i.jsx(sp,{fallback:i.jsx(su,{reason:"plan_required"})}),onRetry:()=>{ye.refetch(),ve.isError&&ve.refetch()},onScopeChange:ft,onChooseOrganization:Qa,onRetryMemberships:()=>{ve.refetch()}},Ln),i.jsx(vk,{open:Mn,candidates:dn,pending:xn.isPending,error:xn.isError?o("ui.teamBridge.create.error"):void 0,onClose:()=>An(!1),onCreate:E=>{de()&&xn.mutate(E,{onSuccess:ne=>{if(!de())return;An(!1);const re=ne;re.id&&Ee({type:"conversation",id:re.id})}})}})]})};function Ux(e,n,t,a,r,s=!0){const l={type:e.kind==="agent"?"chief":"person",accountId:e.account_id},c=Ea(l,t.filter(d=>d.tenant_id===n),a);return c?s?{type:"conversation",id:c.id}:l:r?null:l}export{su as TeamBridgeEligibilityPanel,tv as TeamBridgePage,Ox as TeamBridgePageView,qx as TeamBridgePreviewBanner,Ux as profileMessageTarget};
|
|
51
|
+
*/const Gg=[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]],Wr=Tn("user-round-x",Gg);function Wg(e,n=Bu){return n?e==="enabled":!1}function Vg(){throw new Error("Team trial activation is not available in this release")}const Jg={eligibility(){return xr({operation:"team_trial.eligibility"})},status(e){return xr({operation:"team_trial.status",tenantId:e})},async start(e){Vg();const n=e.orgName?.trim();return xr({operation:"team_trial.start",tenantId:e.tenantId,requestId:e.requestId,payload:{terms_version:e.termsVersion,terms_accepted:!0,...n?{org_name:n}:{}}})}};function Qg(e){return e instanceof In&&(e.status===404||e.status===422)}const Yg="https://console.radienthq.com/dashboard/team";function Xg(e){const n=new URL(Yg);return e&&n.searchParams.set("tenant",e),n.searchParams.set("src","lop"),n.toString()}function Zg(e,n){const t=(e??[]).find(a=>a.tenant_id===n);return t?.status==="active"&&(t.role==="owner"||t.role==="admin")}function Zd(e,n){return!e||!e.find(a=>a.tenant_id===n)||Zg(e,n)?"billing":"member"}function ep(e){return e==="plan_required"}function np(e){if(!e||e.state!=="ready"||e.surface_state!=="A")return null;const n=e.trial_ended;return!n?.tenant_id||!n.trial_ended_at?null:{tenantId:n.tenant_id,endedAt:n.trial_ended_at}}function tp(e){return e.statusReadOnly||!e.ownerGuard||e.trialPaused}function ip(e){return!e||e.state!=="ended"?null:e.ended_at??e.trial_end??null}function ap(e){return!e||e.state!=="active"?null:e.trial_end??null}function rp(e,n,t){if(!e)return null;const a=new Date(e);return Number.isNaN(a.getTime())?null:new Intl.DateTimeFormat(n,{weekday:"long",year:"numeric",month:"long",day:"numeric",...t?{timeZone:t}:{}}).format(a)}const sp={all:["team-trial"],eligibility:e=>["team-trial","eligibility",e??"unresolved-owner"],status:(e,n)=>["team-trial","status",e??"none",n??"unresolved-owner"]};function op(e){const n=ht(),{accountId:t}=ms();return Ua({queryKey:sp.status(e,t),queryFn:async()=>{try{return await Am(n,t,()=>Jg.status(e))}catch(a){if(Qg(a))return null;throw a}},enabled:!!e&&!!t,staleTime:6e4,retry:!1})}const lp=e=>i.jsx(i.Fragment,{children:e.fallback}),Vr=({kind:e,at:n,tenantId:t,audience:a="billing",actionVariant:r="ghost",timeZone:s})=>{const l=pe(),c=rp(n,l,s)??n,d=Xg(t),m=e==="paused"&&a==="member";return i.jsx("output",{className:"block px-4 pt-2","data-team-bridge-trial-note":e,"data-team-bridge-trial-audience":a,children:i.jsx($i,{variant:"info",className:H(od,"border-transparent"),children:i.jsxs("div",{className:"flex w-full min-w-0 flex-wrap items-center gap-x-3 gap-y-1",children:[i.jsx("p",{className:"min-w-0 max-w-prose text-body-sm text-ink",children:e==="active"?o("ui.teamBridgeTrial.active.note",{date:c}):m?o("ui.teamBridgeTrial.paused.note_member",{date:c}):o("ui.teamBridgeTrial.paused.note",{date:c})}),!m&&a!=="pending"&&i.jsx(X,{variant:r,size:"sm",className:H("shrink-0",r==="ghost"&&"text-ink"),"data-team-bridge-trial-action":e==="paused"?"subscribe":"invite",onClick:()=>zm(d),children:e==="paused"?o("ui.teamBridgeTrial.subscribe"):o("ui.teamBridgeTrial.active.invite")})]})})})};function dp(e){const n=op(e),t=ds({enabled:!!e}),a=ip(n.data);if(a)return{paused:!0,note:i.jsx(Vr,{kind:"paused",at:a,tenantId:e??null,audience:Zd(t.data?.memberships??null,e)})};const r=ap(n.data);return{paused:!1,note:r?i.jsx(Vr,{kind:"active",at:r,tenantId:e??null}):null}}const cp=({tenantId:e,endedAt:n,audience:t="billing",timeZone:a})=>i.jsx("div",{"data-glass-region":"canvas","data-team-bridge-trial":"ended",className:"flex h-full min-h-0 w-full items-center justify-center overflow-hidden bg-canvas px-6",children:i.jsx("div",{className:"max-w-lg",children:i.jsx(Vr,{kind:"paused",at:n,tenantId:e,audience:t,actionVariant:"primary",timeZone:a})})}),up=({tenantId:e,endedAt:n})=>{const t=ds({enabled:!!e});return i.jsx(cp,{tenantId:e,endedAt:n,audience:t.isLoading?"pending":Zd(t.data?.memberships??null,e)})};function qo(e,n){return new Set((e?.members??[]).filter(t=>t.state===n).map(t=>`${t.kind}:${t.account_id}`))}function mp(e){const{conversation:n,people:t,selfAccountId:a,chiefLabels:r}=e,s=qo(n,"active"),l=qo(n,"invited"),c=[],d=new Set;for(const m of t){const h=nn(m),p=hs(m,a),g=p==="unavailable";if(p!=="self"){const v=`human:${m.account_id}`;d.add(v),c.push({kind:"human",accountId:m.account_id,label:h,secondary:m.profile?.title||void 0,member:s.has(v),invited:l.has(v),bridgeOff:g,profile:m})}const b=m.agent;if(!b)continue;const k=`agent:${m.account_id}`;d.add(k);const x=b.name.trim();c.push({kind:"agent",accountId:m.account_id,endpointId:b.endpoint_id,label:lt(x,h,r),aliases:[x,h].filter(v=>v!==""),secondary:x!==""&&x!==h?e.agentRole:void 0,member:s.has(k),invited:l.has(k),bridgeOff:g||!(b.state==="active"||b.state==="paused"),profile:m})}for(const m of n?.members??[]){const h=`${m.kind}:${m.account_id}`;if(d.has(h)||!(s.has(h)||l.has(h))||m.kind==="human"&&m.account_id===a)continue;const p=Pm(m,r);if(p===null)continue;d.add(h);const g=m.endpoint_id;c.push({kind:m.kind,accountId:m.account_id,...m.kind==="agent"&&typeof g=="string"?{endpointId:g}:{},label:p,member:s.has(h),invited:l.has(h),bridgeOff:!1})}return c}const ec=u.createContext(null);function _s(){return u.useContext(ec)}const hp=()=>({named:(e,n)=>o("ui.teamBridge.chief.label",{agent:e,person:n}),unnamed:e=>o("ui.teamBridge.chief.unnamed",{person:e})});function gp(e,n,t){const a=n.find(d=>d.account_id===t),r=e.members.find(d=>d.kind==="human"&&d.account_id===t),s=a?nn(a):r?.display_label.trim()??"",l=vr(s),c=s!==""&&!n.some(d=>d.account_id!==t&&vr(nn(d))===l)&&!e.members.some(d=>d.account_id!==t&&vr(d.display_label)===l);return{accountId:t,label:s,labelUnique:c}}function pp({conversation:e,people:n,selfAccountId:t,sendMentions:a,onAddMembers:r,children:s}){const l=u.useMemo(()=>{if(!e)return null;const c=mp({conversation:e,people:n,selfAccountId:t,chiefLabels:hp(),agentRole:o("ui.teamBridge.chief.fallback")}),d=r&&e.kind!=="dm"?m=>r(e,[gs(m.kind==="agent"?{kind:"agent",accountId:m.accountId,endpointId:m.endpointId,label:m.label}:{kind:"human",accountId:m.accountId,label:m.label})]):void 0;return{conversationId:e.id,draftOwner:t?{accountId:t,tenantId:e.tenant_id}:null,self:t?gp(e,n,t):null,candidates:c,conversationKind:e.kind,sendMentions:a,onInvite:d,canInvite:m=>d!==void 0&&!m.invited&&(m.kind==="human"||!!m.endpointId)}},[e,n,t,a,r]);return i.jsx(ec.Provider,{value:l,children:s})}function fp(e,n){return e===null?n===null?"none":"emoji":n===null?"mention":n>e?"emoji":"mention"}function kp(e,n,t){return e!=="none"&&t[e](n)?!0:(t.composer(n),!1)}function wp(e,n){return!n&&["insertText","deleteContentBackward","deleteContentForward"].includes(e)}function nc(e,n){return`${e}-emoji-option-${n}`}const bp=36,yp=8;function xp(e){const n=Math.max(0,e.viewportWidth),t=Math.max(0,e.viewportHeight),a=Math.min(8,n/2,t/2),r=6,s=e.paneWidth!==void 0&&Number.isFinite(e.paneWidth)?Math.max(0,e.paneWidth):Number.POSITIVE_INFINITY,l=Math.min(320,s,Math.max(0,n-a*2)),c=Math.max(1,Math.min(yp,e.rows))*bp+8,d=Math.max(0,e.caret.top-r-a),m=Math.max(0,t-e.caret.top-e.caret.height-r-a),h=d<c&&m>d,p=Math.min(c,h?m:d,Math.max(0,t-a*2)),g=e.rtl?e.caret.right-l:e.caret.left;return{left:Math.max(a,Math.min(g,n-a-l)),top:Math.max(a,Math.min(h?e.caret.top+e.caret.height+r:e.caret.top-r-p,t-a-p)),width:l,maxHeight:p}}const vp=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","fontFeatureSettings","textAlign","textTransform","textIndent","letterSpacing","wordSpacing","tabSize","direction"];function tc(e,n){const t=e.ownerDocument.defaultView?.getComputedStyle(e);if(t){for(const a of vp)n.style[a]=t[a];n.style.whiteSpace="pre-wrap",n.style.overflowWrap="break-word"}}function ic(e,n){const t=e.ownerDocument,a=t.createElement("div");tc(e,a),a.style.position="absolute",a.style.visibility="hidden",a.style.top="0",a.style.left="-9999px",a.textContent=e.value.slice(0,n);const r=t.createElement("span");r.textContent=e.value.charAt(n)||".",a.appendChild(r),t.body.appendChild(a);const s=e.getBoundingClientRect(),l=Number.parseFloat(t.defaultView?.getComputedStyle(e).lineHeight??"")||20,c={left:s.left+r.offsetLeft-e.scrollLeft,right:s.left+r.offsetLeft+r.offsetWidth-e.scrollLeft,top:s.top+r.offsetTop-e.scrollTop,height:l};return a.remove(),c}function jp({fieldRef:e,anchorIndex:n,listboxId:t,rows:a,active:r,label:s,emptyLabel:l,onActive:c,onPick:d,labelFor:m=h=>h.name}){const[h,p]=u.useState(null),g=u.useRef(null);u.useLayoutEffect(()=>{const k=e.current,x=k?.ownerDocument.defaultView;if(!k||!x)return;const v=()=>{p(xp({caret:ic(k,n),viewportWidth:x.innerWidth,viewportHeight:x.innerHeight,paneWidth:k.getBoundingClientRect().width,rows:a.length,rtl:x.getComputedStyle(k).direction==="rtl"}))};v(),x.addEventListener("scroll",v,!0),x.addEventListener("resize",v);const w=typeof ResizeObserver>"u"?null:new ResizeObserver(v);return w?.observe(k),()=>{x.removeEventListener("scroll",v,!0),x.removeEventListener("resize",v),w?.disconnect()}},[e,n,a.length]),u.useLayoutEffect(()=>{g.current?.querySelector(`[data-emoji-index="${r}"]`)?.scrollIntoView?.({block:"nearest"})},[r,a,h?.maxHeight]);const b=e.current?.ownerDocument;return!b||!h||h.maxHeight<=0?null:$d.createPortal(i.jsx("div",{"data-emoji-popover":"","data-lo-floating":"",className:H("fixed z-50 overflow-hidden rounded-md bg-elevated shadow-overlay"),style:{left:h.left,top:h.top,width:h.width},children:i.jsx("div",{ref:g,id:t,role:"listbox",tabIndex:-1,"aria-label":s,className:"overflow-y-auto py-1",style:{maxHeight:h.maxHeight},children:a.length===0?i.jsx("output",{className:"block min-h-9 px-3 py-2 text-body-sm text-ink-muted",children:l}):a.map((k,x)=>i.jsxs("div",{id:nc(t,x),role:"option","aria-selected":x===r,"aria-setsize":a.length,"aria-posinset":x+1,"data-emoji-index":x,className:H("relative flex h-9 min-h-9 cursor-pointer items-center gap-2 px-3 text-body-sm text-ink",x===r&&"bg-accent-wash before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:bg-accent"),onMouseMove:()=>c(x),onMouseDown:v=>{v.preventDefault()},onClick:()=>d(k),children:[i.jsx("span",{"aria-hidden":"true",className:"shrink-0 text-lg",children:k.emoji}),i.jsx("span",{className:"truncate",children:m(k)})]},k.emoji))})}),b.body)}const _p=["Smileys & Emotion","People & Body","Animals & Nature","Food & Drink","Travel & Places","Activities","Objects","Symbols","Flags"],Np=JSON.parse('[["😀","grinning face",0,["cheerful","cheery","face","grin","grinning","happy","laugh","nice","smile","smiling","teeth"]],["😃","grinning face with big eyes",0,["awesome","big","eyes","face","grin","grinning","happy","mouth","open","smile","smiling","teeth","yay"]],["😄","grinning face with smiling eyes",0,["eye","eyes","face","grin","grinning","happy","laugh","lol","mouth","open","smile","smiling"]],["😁","beaming face with smiling eyes",0,["beaming","eye","eyes","face","grin","grinning","happy","nice","smile","smiling","teeth"]],["😆","grinning squinting face",0,["closed","eyes","face","grinning","haha","hahaha","happy","laugh","lol","mouth","open","rofl","smile","smiling","squinting"]],["😅","grinning face with sweat",0,["cold","dejected","excited","face","grinning","mouth","nervous","open","smile","smiling","stress","stressed","sweat"]],["🤣","rolling on the floor laughing",0,["crying","face","floor","funny","haha","happy","hehe","hilarious","joy","laugh","lmao","lol","rofl","roflmao","rolling","tear"]],["😂","face with tears of joy",0,["crying","face","feels","funny","haha","happy","hehe","hilarious","joy","laugh","lmao","lol","rofl","roflmao","tear"]],["🙂","slightly smiling face",0,["face","happy","slightly","smile","smiling"]],["🙃","upside-down face",0,["face","hehe","smile","upside-down"]],["🫠","melting face",0,["disappear","dissolve","embarrassed","face","haha","heat","hot","liquid","lol","melt","melting","sarcasm","sarcastic"]],["","cracking face",0,[]],["😉","winking face",0,["face","flirt","heartbreaker","sexy","slide","tease","wink","winking","winks"]],["😊","smiling face with smiling eyes",0,["blush","eye","eyes","face","glad","satisfied","smile","smiling"]],["😇","smiling face with halo",0,["angel","angelic","angels","blessed","face","fairy","fairytale","fantasy","halo","happy","innocent","peaceful","smile","smiling","spirit","tale"]],["🥰","smiling face with hearts",0,["3","adore","crush","face","heart","hearts","ily","love","romance","smile","smiling","you"]],["😍","smiling face with heart-eyes",0,["143","bae","eye","face","feels","heart-eyes","hearts","ily","kisses","love","romance","romantic","smile","xoxo"]],["🤩","star-struck",0,["excited","eyes","face","grinning","smile","star","star-struck","starry-eyed","wow"]],["😘","face blowing a kiss",0,["adorbs","bae","blowing","face","flirt","heart","ily","kiss","love","lover","miss","muah","romantic","smooch","xoxo","you"]],["😗","kissing face",0,["143","date","dating","face","flirt","ily","kiss","love","smooch","smooches","xoxo","you"]],["☺️","smiling face",0,["face","happy","outlined","relaxed","smile","smiling"]],["😚","kissing face with closed eyes",0,["143","bae","blush","closed","date","dating","eye","eyes","face","flirt","ily","kisses","kissing","smooches","xoxo"]],["😙","kissing face with smiling eyes",0,["143","closed","date","dating","eye","eyes","face","flirt","ily","kiss","kisses","kissing","love","night","smile","smiling"]],["🥲","smiling face with tear",0,["face","glad","grateful","happy","joy","pain","proud","relieved","smile","smiley","smiling","tear","touched"]],["😋","face savoring food",0,["delicious","eat","face","food","full","hungry","savor","smile","smiling","tasty","um","yum","yummy"]],["😛","face with tongue",0,["awesome","cool","face","nice","party","stuck-out","sweet","tongue"]],["😜","winking face with tongue",0,["crazy","epic","eye","face","funny","joke","loopy","nutty","party","stuck-out","tongue","wacky","weirdo","wink","winking","yolo"]],["🤪","zany face",0,["crazy","eye","eyes","face","goofy","large","small","zany"]],["😝","squinting face with tongue",0,["closed","eye","eyes","face","gross","horrible","omg","squinting","stuck-out","taste","tongue","whatever","yolo"]],["🤑","money-mouth face",0,["face","money","money-mouth","mouth","paid"]],["🤗","smiling face with open hands",0,["face","hands","hug","hugging","open","smiling"]],["🤭","face with hand over mouth",0,["face","giggle","giggling","hand","mouth","oops","realization","secret","shock","sudden","surprise","whoops"]],["🫢","face with open eyes and hand over mouth",0,["amazement","awe","disbelief","embarrass","eyes","face","gasp","hand","mouth","omg","open","over","quiet","scared","shock","surprise"]],["🫣","face with peeking eye",0,["captivated","embarrass","eye","face","hide","hiding","peek","peeking","peep","scared","shy","stare"]],["🤫","shushing face",0,["face","quiet","shh","shush","shushing"]],["🤔","thinking face",0,["chin","consider","face","hmm","ponder","pondering","thinking","wondering"]],["🫡","saluting face",0,["face","good","luck","ma’am","OK","respect","salute","saluting","sir","troops","yes"]],["🤐","zipper-mouth face",0,["face","keep","mouth","quiet","secret","shut","zip","zipper","zipper-mouth"]],["🤨","face with raised eyebrow",0,["disapproval","disbelief","distrust","emoji","eyebrow","face","hmm","mild","raised","skeptic","skeptical","skepticism","surprise","what"]],["😐","neutral face",0,["awkward","blank","deadpan","expressionless","face","fine","jealous","meh","neutral","oh","shade","straight","unamused","unhappy","unimpressed","whatever"]],["😑","expressionless face",0,["awkward","dead","expressionless","face","fine","inexpressive","jealous","meh","not","oh","omg","straight","uh","unhappy","unimpressed","whatever"]],["😶","face without mouth",0,["awkward","blank","expressionless","face","mouth","mouthless","mute","quiet","secret","silence","silent","speechless"]],["🫥","dotted line face",0,["depressed","disappear","dotted","face","hidden","hide","introvert","invisible","line","meh","whatever","wtv"]],["😶🌫️","face in clouds",0,["absentminded","clouds","face","fog","head"]],["😏","smirking face",0,["boss","dapper","face","flirt","homie","kidding","leer","shade","slick","sly","smirk","smug","snicker","suave","suspicious","swag"]],["😒","unamused face",0,["...","bored","face","fine","jealous","jel","jelly","pissed","smh","ugh","uhh","unamused","unhappy","weird","whatever"]],["🙄","face with rolling eyes",0,["eyeroll","eyes","face","rolling","shade","ugh","whatever"]],["😬","grimacing face",0,["awk","awkward","dentist","face","grimace","grimacing","grinning","smile","smiling"]],["😮💨","face exhaling",0,["blow","blowing","exhale","exhaling","exhausted","face","gasp","groan","relief","sigh","smiley","smoke","whisper","whistle"]],["🤥","lying face",0,["face","liar","lie","lying","pinocchio"]],["🫨","shaking face",0,["crazy","daze","earthquake","face","omg","panic","shaking","shock","surprise","vibrate","whoa","wow"]],["🙂↔️","head shaking horizontally",0,["head","horizontally","no","shake","shaking"]],["🙂↕️","head shaking vertically",0,["head","nod","shaking","vertically","yes"]],["😌","relieved face",0,["calm","face","peace","relief","relieved","zen"]],["😔","pensive face",0,["awful","bored","dejected","died","disappointed","face","losing","lost","pensive","sad","sucks"]],["😪","sleepy face",0,["crying","face","good","night","sad","sleep","sleeping","sleepy","tired"]],["🤤","drooling face",0,["drooling","face"]],["😴","sleeping face",0,["bed","bedtime","face","good","goodnight","nap","night","sleep","sleeping","tired","whatever","yawn","zzz"]],["","face with bags under eyes",0,["bags","bored","exhausted","eyes","face","fatigued","late","sleepy","tired","weary"]],["😷","face with medical mask",0,["cold","dentist","dermatologist","doctor","dr","face","germs","mask","medical","medicine","sick"]],["🤒","face with thermometer",0,["face","ill","sick","thermometer"]],["🤕","face with head-bandage",0,["bandage","face","head-bandage","hurt","injury","ouch"]],["🤢","nauseated face",0,["face","gross","nasty","nauseated","sick","vomit"]],["🤮","face vomiting",0,["barf","ew","face","gross","puke","sick","spew","throw","up","vomit","vomiting"]],["🤧","sneezing face",0,["face","fever","flu","gesundheit","sick","sneeze","sneezing"]],["🥵","hot face",0,["dying","face","feverish","heat","hot","panting","red-faced","stroke","sweating","tongue"]],["🥶","cold face",0,["blue","blue-faced","cold","face","freezing","frostbite","icicles","subzero","teeth"]],["🥴","woozy face",0,["dizzy","drunk","eyes","face","intoxicated","mouth","tipsy","uneven","wavy","woozy"]],["😵","face with crossed-out eyes",0,["crossed-out","dead","dizzy","eyes","face","feels","knocked","out","sick","tired"]],["😵💫","face with spiral eyes",0,["confused","dizzy","eyes","face","hypnotized","omg","smiley","spiral","trouble","whoa","woah","woozy"]],["🤯","exploding head",0,["blown","explode","exploding","head","mind","mindblown","no","shocked","way"]],["🤠","cowboy hat face",0,["cowboy","cowgirl","face","hat"]],["🥳","partying face",0,["bday","birthday","celebrate","celebration","excited","face","happy","hat","hooray","horn","party","partying"]],["🥸","disguised face",0,["disguise","eyebrow","face","glasses","incognito","moustache","mustache","nose","person","spy","tache","tash"]],["😎","smiling face with sunglasses",0,["awesome","beach","bright","bro","chilling","cool","face","rad","relaxed","shades","slay","smile","style","sunglasses","swag","win"]],["🤓","nerd face",0,["brainy","clever","expert","face","geek","gifted","glasses","intelligent","nerd","smart"]],["🧐","face with monocle",0,["classy","face","fancy","monocle","rich","stuffy","wealthy"]],["😕","confused face",0,["befuddled","confused","confusing","dunno","face","frown","hm","meh","not","sad","sorry","sure"]],["🫤","face with diagonal mouth",0,["confused","confusion","diagonal","disappointed","doubt","doubtful","face","frustrated","frustration","meh","mouth","skeptical","unsure","whatever","wtv"]],["😟","worried face",0,["anxious","butterflies","face","nerves","nervous","sad","stress","stressed","surprised","worried","worry"]],["🙁","slightly frowning face",0,["face","frown","frowning","sad","slightly"]],["☹️","frowning face",0,["face","frown","frowning","sad"]],["😮","face with open mouth",0,["believe","face","forgot","mouth","omg","open","shocked","surprised","sympathy","unbelievable","unreal","whoa","wow","you"]],["😯","hushed face",0,["epic","face","hushed","omg","stunned","surprised","whoa","woah"]],["😲","astonished face",0,["astonished","cost","face","no","omg","shocked","totally","way"]],["😳","flushed face",0,["amazed","awkward","crazy","dazed","dead","disbelief","embarrassed","face","flushed","geez","heat","hot","impressed","jeez","what","wow"]],["","distorted face",0,["anxiety","bloated","panic","shocked","surprised","vulnerable"]],["🥺","pleading face",0,["begging","big","eyes","face","mercy","not","pleading","please","pretty","puppy","sad","why"]],["🥹","face holding back tears",0,["admiration","aww","back","cry","embarrassed","face","feelings","grateful","gratitude","holding","joy","please","proud","resist","sad","tears"]],["😦","frowning face with open mouth",0,["caught","face","frown","frowning","guard","mouth","open","scared","scary","surprise","what","wow"]],["😧","anguished face",0,["anguished","face","forgot","scared","scary","stressed","surprise","unhappy","what","wow"]],["😨","fearful face",0,["afraid","anxious","blame","face","fear","fearful","scared","worried"]],["😰","anxious face with sweat",0,["anxious","blue","cold","eek","face","mouth","nervous","open","rushed","scared","sweat","yikes"]],["😥","sad but relieved face",0,["anxious","call","close","complicated","disappointed","face","not","relieved","sad","sweat","time","whew"]],["😢","crying face",0,["awful","cry","crying","face","feels","miss","sad","tear","triste","unhappy"]],["😭","loudly crying face",0,["bawling","cry","crying","face","loudly","sad","sob","tear","tears","unhappy"]],["😱","face screaming in fear",0,["epic","face","fear","fearful","munch","scared","scream","screamer","screaming","shocked","surprised","woah"]],["😖","confounded face",0,["annoyed","confounded","confused","cringe","distraught","face","feels","frustrated","mad","sad"]],["😣","persevering face",0,["concentrate","concentration","face","focus","headache","persevere","persevering"]],["😞","disappointed face",0,["awful","blame","dejected","disappointed","face","fail","losing","sad","unhappy"]],["😓","downcast face with sweat",0,["close","cold","downcast","face","feels","headache","nervous","sad","scared","sweat","yikes"]],["😩","weary face",0,["crying","face","fail","feels","hungry","mad","nooo","sad","sleepy","tired","unhappy","weary"]],["😫","tired face",0,["cost","face","feels","nap","sad","sneeze","tired"]],["🥱","yawning face",0,["bedtime","bored","face","goodnight","nap","night","sleep","sleepy","tired","whatever","yawn","yawning","zzz"]],["😤","face with steam from nose",0,["anger","angry","face","feels","fume","fuming","furious","fury","mad","nose","steam","triumph","unhappy","won"]],["😡","enraged face",0,["anger","angry","enraged","face","feels","mad","maddening","pouting","rage","red","shade","unhappy","upset"]],["😠","angry face",0,["anger","angry","blame","face","feels","frustrated","mad","maddening","rage","shade","unhappy","upset"]],["🤬","face with symbols on mouth",0,["censor","cursing","cussing","face","mad","mouth","pissed","swearing","symbols"]],["😈","smiling face with horns",0,["demon","devil","evil","face","fairy","fairytale","fantasy","horns","purple","shade","smile","smiling","tale"]],["👿","angry face with horns",0,["angry","demon","devil","evil","face","fairy","fairytale","fantasy","horns","imp","mischievous","purple","shade","tale"]],["💀","skull",0,["body","dead","death","face","fairy","fairytale","i’m","lmao","monster","skull","tale","yolo"]],["☠️","skull and crossbones",0,["bone","crossbones","dead","death","face","monster","skull"]],["💩","pile of poo",0,["bs","comic","doo","dung","face","fml","monster","pile","poo","poop","smelly","smh","stink","stinks","stinky","turd"]],["🤡","clown face",0,["clown","face"]],["👹","ogre",0,["creature","devil","face","fairy","fairytale","fantasy","mask","monster","ogre","scary","tale"]],["👺","goblin",0,["angry","creature","face","fairy","fairytale","fantasy","goblin","mask","mean","monster","tale"]],["👻","ghost",0,["boo","creature","excited","face","fairy","fairytale","fantasy","ghost","halloween","haunting","monster","scary","silly","tale"]],["👽","alien",0,["alien","creature","extraterrestrial","face","fairy","fairytale","fantasy","monster","space","tale","ufo"]],["👾","alien monster",0,["alien","creature","extraterrestrial","face","fairy","fairytale","fantasy","game","gamer","games","monster","pixelated","space","tale","ufo"]],["🤖","robot",0,["face","monster","robot"]],["😺","grinning cat",0,["animal","cat","face","grinning","mouth","open","smile","smiling"]],["😸","grinning cat with smiling eyes",0,["animal","cat","eye","eyes","face","grin","grinning","smile","smiling"]],["😹","cat with tears of joy",0,["animal","cat","face","joy","laugh","laughing","lol","tear","tears"]],["😻","smiling cat with heart-eyes",0,["animal","cat","eye","face","heart","heart-eyes","love","smile","smiling"]],["😼","cat with wry smile",0,["animal","cat","face","ironic","smile","wry"]],["😽","kissing cat",0,["animal","cat","closed","eye","eyes","face","kiss","kissing"]],["🙀","weary cat",0,["animal","cat","face","oh","surprised","weary"]],["😿","crying cat",0,["animal","cat","cry","crying","face","sad","tear"]],["😾","pouting cat",0,["animal","cat","face","pouting"]],["🙈","see-no-evil monkey",0,["embarrassed","evil","face","forbidden","forgot","gesture","hide","monkey","no","omg","prohibited","scared","secret","smh","watch"]],["🙉","hear-no-evil monkey",0,["animal","ears","evil","face","forbidden","gesture","hear","listen","monkey","no","not","prohibited","secret","shh","tmi"]],["🙊","speak-no-evil monkey",0,["animal","evil","face","forbidden","gesture","monkey","no","not","oops","prohibited","quiet","secret","speak","stealth"]],["💌","love letter",0,["heart","letter","love","mail","romance","valentine"]],["💘","heart with arrow",0,["143","adorbs","arrow","cupid","date","emotion","heart","ily","love","romance","valentine"]],["💝","heart with ribbon",0,["143","anniversary","emotion","heart","ily","kisses","ribbon","valentine","xoxo"]],["💖","sparkling heart",0,["143","emotion","excited","good","heart","ily","kisses","morning","night","sparkle","sparkling","xoxo"]],["💗","growing heart",0,["143","emotion","excited","growing","heart","heartpulse","ily","kisses","muah","nervous","pulse","xoxo"]],["💓","beating heart",0,["143","beating","cardio","emotion","heart","heartbeat","ily","love","pulsating","pulse"]],["💞","revolving hearts",0,["143","adorbs","anniversary","emotion","heart","hearts","revolving"]],["💕","two hearts",0,["143","anniversary","date","dating","emotion","heart","hearts","ily","kisses","love","loving","two","xoxo"]],["💟","heart decoration",0,["143","decoration","emotion","heart","hearth","purple","white"]],["❣️","heart exclamation",0,["exclamation","heart","heavy","mark","punctuation"]],["💔","broken heart",0,["break","broken","crushed","emotion","heart","heartbroken","lonely","sad"]],["❤️🔥","heart on fire",0,["burn","fire","heart","love","lust","sacred"]],["❤️🩹","mending heart",0,["healthier","heart","improving","mending","recovering","recuperating","well"]],["❤️","red heart",0,["emotion","heart","love","red"]],["🩷","pink heart",0,["143","adorable","cute","emotion","heart","ily","like","love","pink","special","sweet"]],["🧡","orange heart",0,["143","heart","orange"]],["💛","yellow heart",0,["143","cardiac","emotion","heart","ily","love","yellow"]],["💚","green heart",0,["143","emotion","green","heart","ily","love","romantic"]],["💙","blue heart",0,["143","blue","emotion","heart","ily","love","romance"]],["🩵","light blue heart",0,["143","blue","cute","cyan","emotion","heart","ily","light","like","love","sky","special","teal"]],["💜","purple heart",0,["143","bestest","emotion","heart","ily","love","purple"]],["🤎","brown heart",0,["143","brown","heart"]],["🖤","black heart",0,["black","evil","heart","wicked"]],["🩶","grey heart",0,["143","emotion","gray","grey","heart","ily","love","silver","slate","special"]],["🤍","white heart",0,["143","heart","white"]],["💋","kiss mark",0,["dating","emotion","heart","kiss","kissing","lips","mark","romance","sexy"]],["💯","hundred points",0,["100","a+","agree","clearly","definitely","faithful","fleek","full","hundred","keep","perfect","point","score","TRUE","truth","yup"]],["💢","anger symbol",0,["anger","angry","comic","mad","symbol","upset"]],["","fight cloud",0,["argument","brawl","debate","disagreement","fight","ruckus","wrestle"]],["💥","collision",0,["bomb","boom","collide","collision","comic","explode"]],["💫","dizzy",0,["comic","dizzy","shining","shooting","star","stars"]],["💦","sweat droplets",0,["comic","drip","droplet","droplets","drops","splashing","squirt","sweat","water","wet","work","workout"]],["💨","dashing away",0,["away","cloud","comic","dash","dashing","fart","fast","go","gone","gotta","running","smoke"]],["🕳️","hole",0,["hole"]],["💬","speech balloon",0,["balloon","bubble","comic","dialog","message","sms","speech","talk","text","typing"]],["👁️🗨️","eye in speech bubble",0,["balloon","bubble","eye","speech","witness"]],["🗨️","left speech bubble",0,["balloon","bubble","dialog","left","speech"]],["🗯️","right anger bubble",0,["anger","angry","balloon","bubble","mad","right"]],["💭","thought balloon",0,["balloon","bubble","cartoon","cloud","comic","daydream","decisions","dream","idea","invent","invention","realize","think","thoughts","wonder"]],["💤","ZZZ",0,["comic","good","goodnight","night","sleep","sleeping","sleepy","tired","zzz"]],["👋","waving hand",1,["bye","cya","g2g","greetings","gtg","hand","hello","hey","hi","later","outtie","ttfn","ttyl","wave","yo","you"]],["👋🏻","waving hand: light skin tone",1,[]],["👋🏼","waving hand: medium-light skin tone",1,[]],["👋🏽","waving hand: medium skin tone",1,[]],["👋🏾","waving hand: medium-dark skin tone",1,[]],["👋🏿","waving hand: dark skin tone",1,[]],["🤚","raised back of hand",1,["back","backhand","hand","raised"]],["🤚🏻","raised back of hand: light skin tone",1,[]],["🤚🏼","raised back of hand: medium-light skin tone",1,[]],["🤚🏽","raised back of hand: medium skin tone",1,[]],["🤚🏾","raised back of hand: medium-dark skin tone",1,[]],["🤚🏿","raised back of hand: dark skin tone",1,[]],["🖐️","hand with fingers splayed",1,["finger","fingers","hand","raised","splayed","stop"]],["🖐🏻","hand with fingers splayed: light skin tone",1,[]],["🖐🏼","hand with fingers splayed: medium-light skin tone",1,[]],["🖐🏽","hand with fingers splayed: medium skin tone",1,[]],["🖐🏾","hand with fingers splayed: medium-dark skin tone",1,[]],["🖐🏿","hand with fingers splayed: dark skin tone",1,[]],["✋","raised hand",1,["5","five","hand","high","raised","stop"]],["✋🏻","raised hand: light skin tone",1,[]],["✋🏼","raised hand: medium-light skin tone",1,[]],["✋🏽","raised hand: medium skin tone",1,[]],["✋🏾","raised hand: medium-dark skin tone",1,[]],["✋🏿","raised hand: dark skin tone",1,[]],["🖖","vulcan salute",1,["finger","hand","hands","salute","Vulcan"]],["🖖🏻","vulcan salute: light skin tone",1,[]],["🖖🏼","vulcan salute: medium-light skin tone",1,[]],["🖖🏽","vulcan salute: medium skin tone",1,[]],["🖖🏾","vulcan salute: medium-dark skin tone",1,[]],["🖖🏿","vulcan salute: dark skin tone",1,[]],["🫱","rightwards hand",1,["hand","handshake","hold","reach","right","rightward","rightwards","shake"]],["🫱🏻","rightwards hand: light skin tone",1,[]],["🫱🏼","rightwards hand: medium-light skin tone",1,[]],["🫱🏽","rightwards hand: medium skin tone",1,[]],["🫱🏾","rightwards hand: medium-dark skin tone",1,[]],["🫱🏿","rightwards hand: dark skin tone",1,[]],["🫲","leftwards hand",1,["hand","handshake","hold","left","leftward","leftwards","reach","shake"]],["🫲🏻","leftwards hand: light skin tone",1,[]],["🫲🏼","leftwards hand: medium-light skin tone",1,[]],["🫲🏽","leftwards hand: medium skin tone",1,[]],["🫲🏾","leftwards hand: medium-dark skin tone",1,[]],["🫲🏿","leftwards hand: dark skin tone",1,[]],["🫳","palm down hand",1,["dismiss","down","drop","dropped","hand","palm","pick","shoo","up"]],["🫳🏻","palm down hand: light skin tone",1,[]],["🫳🏼","palm down hand: medium-light skin tone",1,[]],["🫳🏽","palm down hand: medium skin tone",1,[]],["🫳🏾","palm down hand: medium-dark skin tone",1,[]],["🫳🏿","palm down hand: dark skin tone",1,[]],["🫴","palm up hand",1,["beckon","catch","come","hand","hold","know","lift","me","offer","palm","tell"]],["🫴🏻","palm up hand: light skin tone",1,[]],["🫴🏼","palm up hand: medium-light skin tone",1,[]],["🫴🏽","palm up hand: medium skin tone",1,[]],["🫴🏾","palm up hand: medium-dark skin tone",1,[]],["🫴🏿","palm up hand: dark skin tone",1,[]],["🫷","leftwards pushing hand",1,["block","five","halt","hand","high","hold","leftward","leftwards","pause","push","pushing","refuse","slap","stop","wait"]],["🫷🏻","leftwards pushing hand: light skin tone",1,[]],["🫷🏼","leftwards pushing hand: medium-light skin tone",1,[]],["🫷🏽","leftwards pushing hand: medium skin tone",1,[]],["🫷🏾","leftwards pushing hand: medium-dark skin tone",1,[]],["🫷🏿","leftwards pushing hand: dark skin tone",1,[]],["🫸","rightwards pushing hand",1,["block","five","halt","hand","high","hold","pause","push","pushing","refuse","rightward","rightwards","slap","stop","wait"]],["🫸🏻","rightwards pushing hand: light skin tone",1,[]],["🫸🏼","rightwards pushing hand: medium-light skin tone",1,[]],["🫸🏽","rightwards pushing hand: medium skin tone",1,[]],["🫸🏾","rightwards pushing hand: medium-dark skin tone",1,[]],["🫸🏿","rightwards pushing hand: dark skin tone",1,[]],["👌","OK hand",1,["awesome","bet","dope","fleek","fosho","got","gotcha","hand","legit","OK","okay","pinch","rad","sure","sweet","three"]],["👌🏻","OK hand: light skin tone",1,[]],["👌🏼","OK hand: medium-light skin tone",1,[]],["👌🏽","OK hand: medium skin tone",1,[]],["👌🏾","OK hand: medium-dark skin tone",1,[]],["👌🏿","OK hand: dark skin tone",1,[]],["🤌","pinched fingers",1,["fingers","gesture","hand","hold","huh","interrogation","patience","pinched","relax","sarcastic","ugh","what","zip"]],["🤌🏻","pinched fingers: light skin tone",1,[]],["🤌🏼","pinched fingers: medium-light skin tone",1,[]],["🤌🏽","pinched fingers: medium skin tone",1,[]],["🤌🏾","pinched fingers: medium-dark skin tone",1,[]],["🤌🏿","pinched fingers: dark skin tone",1,[]],["🤏","pinching hand",1,["amount","bit","fingers","hand","little","pinching","small","sort"]],["🤏🏻","pinching hand: light skin tone",1,[]],["🤏🏼","pinching hand: medium-light skin tone",1,[]],["🤏🏽","pinching hand: medium skin tone",1,[]],["🤏🏾","pinching hand: medium-dark skin tone",1,[]],["🤏🏿","pinching hand: dark skin tone",1,[]],["✌️","victory hand",1,["hand","peace","v","victory"]],["✌🏻","victory hand: light skin tone",1,[]],["✌🏼","victory hand: medium-light skin tone",1,[]],["✌🏽","victory hand: medium skin tone",1,[]],["✌🏾","victory hand: medium-dark skin tone",1,[]],["✌🏿","victory hand: dark skin tone",1,[]],["🤞","crossed fingers",1,["cross","crossed","finger","fingers","hand","luck"]],["🤞🏻","crossed fingers: light skin tone",1,[]],["🤞🏼","crossed fingers: medium-light skin tone",1,[]],["🤞🏽","crossed fingers: medium skin tone",1,[]],["🤞🏾","crossed fingers: medium-dark skin tone",1,[]],["🤞🏿","crossed fingers: dark skin tone",1,[]],["🫰","hand with index finger and thumb crossed",1,["<3","crossed","expensive","finger","hand","heart","index","love","money","snap","thumb"]],["🫰🏻","hand with index finger and thumb crossed: light skin tone",1,[]],["🫰🏼","hand with index finger and thumb crossed: medium-light skin tone",1,[]],["🫰🏽","hand with index finger and thumb crossed: medium skin tone",1,[]],["🫰🏾","hand with index finger and thumb crossed: medium-dark skin tone",1,[]],["🫰🏿","hand with index finger and thumb crossed: dark skin tone",1,[]],["🤟","love-you gesture",1,["fingers","gesture","hand","ILY","love","love-you","three","you"]],["🤟🏻","love-you gesture: light skin tone",1,[]],["🤟🏼","love-you gesture: medium-light skin tone",1,[]],["🤟🏽","love-you gesture: medium skin tone",1,[]],["🤟🏾","love-you gesture: medium-dark skin tone",1,[]],["🤟🏿","love-you gesture: dark skin tone",1,[]],["🤘","sign of the horns",1,["finger","hand","horns","rock-on","sign"]],["🤘🏻","sign of the horns: light skin tone",1,[]],["🤘🏼","sign of the horns: medium-light skin tone",1,[]],["🤘🏽","sign of the horns: medium skin tone",1,[]],["🤘🏾","sign of the horns: medium-dark skin tone",1,[]],["🤘🏿","sign of the horns: dark skin tone",1,[]],["🤙","call me hand",1,["call","hand","hang","loose","me","Shaka"]],["🤙🏻","call me hand: light skin tone",1,[]],["🤙🏼","call me hand: medium-light skin tone",1,[]],["🤙🏽","call me hand: medium skin tone",1,[]],["🤙🏾","call me hand: medium-dark skin tone",1,[]],["🤙🏿","call me hand: dark skin tone",1,[]],["👈","backhand index pointing left",1,["backhand","finger","hand","index","left","point","pointing"]],["👈🏻","backhand index pointing left: light skin tone",1,[]],["👈🏼","backhand index pointing left: medium-light skin tone",1,[]],["👈🏽","backhand index pointing left: medium skin tone",1,[]],["👈🏾","backhand index pointing left: medium-dark skin tone",1,[]],["👈🏿","backhand index pointing left: dark skin tone",1,[]],["👉","backhand index pointing right",1,["backhand","finger","hand","index","point","pointing","right"]],["👉🏻","backhand index pointing right: light skin tone",1,[]],["👉🏼","backhand index pointing right: medium-light skin tone",1,[]],["👉🏽","backhand index pointing right: medium skin tone",1,[]],["👉🏾","backhand index pointing right: medium-dark skin tone",1,[]],["👉🏿","backhand index pointing right: dark skin tone",1,[]],["👆","backhand index pointing up",1,["backhand","finger","hand","index","point","pointing","up"]],["👆🏻","backhand index pointing up: light skin tone",1,[]],["👆🏼","backhand index pointing up: medium-light skin tone",1,[]],["👆🏽","backhand index pointing up: medium skin tone",1,[]],["👆🏾","backhand index pointing up: medium-dark skin tone",1,[]],["👆🏿","backhand index pointing up: dark skin tone",1,[]],["🖕","middle finger",1,["finger","hand","middle"]],["🖕🏻","middle finger: light skin tone",1,[]],["🖕🏼","middle finger: medium-light skin tone",1,[]],["🖕🏽","middle finger: medium skin tone",1,[]],["🖕🏾","middle finger: medium-dark skin tone",1,[]],["🖕🏿","middle finger: dark skin tone",1,[]],["👇","backhand index pointing down",1,["backhand","down","finger","hand","index","point","pointing"]],["👇🏻","backhand index pointing down: light skin tone",1,[]],["👇🏼","backhand index pointing down: medium-light skin tone",1,[]],["👇🏽","backhand index pointing down: medium skin tone",1,[]],["👇🏾","backhand index pointing down: medium-dark skin tone",1,[]],["👇🏿","backhand index pointing down: dark skin tone",1,[]],["☝️","index pointing up",1,["finger","hand","index","point","pointing","this","up"]],["☝🏻","index pointing up: light skin tone",1,[]],["☝🏼","index pointing up: medium-light skin tone",1,[]],["☝🏽","index pointing up: medium skin tone",1,[]],["☝🏾","index pointing up: medium-dark skin tone",1,[]],["☝🏿","index pointing up: dark skin tone",1,[]],["🫵","index pointing at the viewer",1,["at","finger","hand","index","pointing","poke","viewer","you"]],["🫵🏻","index pointing at the viewer: light skin tone",1,[]],["🫵🏼","index pointing at the viewer: medium-light skin tone",1,[]],["🫵🏽","index pointing at the viewer: medium skin tone",1,[]],["🫵🏾","index pointing at the viewer: medium-dark skin tone",1,[]],["🫵🏿","index pointing at the viewer: dark skin tone",1,[]],["👍","thumbs up",1,["+1","good","hand","like","thumb","up","yes"]],["👍🏻","thumbs up: light skin tone",1,[]],["👍🏼","thumbs up: medium-light skin tone",1,[]],["👍🏽","thumbs up: medium skin tone",1,[]],["👍🏾","thumbs up: medium-dark skin tone",1,[]],["👍🏿","thumbs up: dark skin tone",1,[]],["👎","thumbs down",1,["-1","bad","dislike","down","good","hand","no","nope","thumb","thumbs"]],["👎🏻","thumbs down: light skin tone",1,[]],["👎🏼","thumbs down: medium-light skin tone",1,[]],["👎🏽","thumbs down: medium skin tone",1,[]],["👎🏾","thumbs down: medium-dark skin tone",1,[]],["👎🏿","thumbs down: dark skin tone",1,[]],["","leftwards thumb sign",1,[]],["🏻","leftwards thumb sign: light skin tone",1,[]],["🏼","leftwards thumb sign: medium-light skin tone",1,[]],["🏽","leftwards thumb sign: medium skin tone",1,[]],["🏾","leftwards thumb sign: medium-dark skin tone",1,[]],["🏿","leftwards thumb sign: dark skin tone",1,[]],["","rightwards thumb sign",1,[]],["🏻","rightwards thumb sign: light skin tone",1,[]],["🏼","rightwards thumb sign: medium-light skin tone",1,[]],["🏽","rightwards thumb sign: medium skin tone",1,[]],["🏾","rightwards thumb sign: medium-dark skin tone",1,[]],["🏿","rightwards thumb sign: dark skin tone",1,[]],["✊","raised fist",1,["clenched","fist","hand","punch","raised","solidarity"]],["✊🏻","raised fist: light skin tone",1,[]],["✊🏼","raised fist: medium-light skin tone",1,[]],["✊🏽","raised fist: medium skin tone",1,[]],["✊🏾","raised fist: medium-dark skin tone",1,[]],["✊🏿","raised fist: dark skin tone",1,[]],["👊","oncoming fist",1,["absolutely","agree","boom","bro","bruh","bump","clenched","correct","fist","hand","knuckle","oncoming","pound","punch","rock","ttyl"]],["👊🏻","oncoming fist: light skin tone",1,[]],["👊🏼","oncoming fist: medium-light skin tone",1,[]],["👊🏽","oncoming fist: medium skin tone",1,[]],["👊🏾","oncoming fist: medium-dark skin tone",1,[]],["👊🏿","oncoming fist: dark skin tone",1,[]],["🤛","left-facing fist",1,["fist","left-facing","leftwards"]],["🤛🏻","left-facing fist: light skin tone",1,[]],["🤛🏼","left-facing fist: medium-light skin tone",1,[]],["🤛🏽","left-facing fist: medium skin tone",1,[]],["🤛🏾","left-facing fist: medium-dark skin tone",1,[]],["🤛🏿","left-facing fist: dark skin tone",1,[]],["🤜","right-facing fist",1,["fist","right-facing","rightwards"]],["🤜🏻","right-facing fist: light skin tone",1,[]],["🤜🏼","right-facing fist: medium-light skin tone",1,[]],["🤜🏽","right-facing fist: medium skin tone",1,[]],["🤜🏾","right-facing fist: medium-dark skin tone",1,[]],["🤜🏿","right-facing fist: dark skin tone",1,[]],["👏","clapping hands",1,["applause","approval","awesome","clap","congrats","congratulations","excited","good","great","hand","homie","job","nice","prayed","well","yay"]],["👏🏻","clapping hands: light skin tone",1,[]],["👏🏼","clapping hands: medium-light skin tone",1,[]],["👏🏽","clapping hands: medium skin tone",1,[]],["👏🏾","clapping hands: medium-dark skin tone",1,[]],["👏🏿","clapping hands: dark skin tone",1,[]],["🙌","raising hands",1,["celebration","gesture","hand","hands","hooray","praise","raised","raising"]],["🙌🏻","raising hands: light skin tone",1,[]],["🙌🏼","raising hands: medium-light skin tone",1,[]],["🙌🏽","raising hands: medium skin tone",1,[]],["🙌🏾","raising hands: medium-dark skin tone",1,[]],["🙌🏿","raising hands: dark skin tone",1,[]],["🫶","heart hands",1,["<3","hands","heart","love","you"]],["🫶🏻","heart hands: light skin tone",1,[]],["🫶🏼","heart hands: medium-light skin tone",1,[]],["🫶🏽","heart hands: medium skin tone",1,[]],["🫶🏾","heart hands: medium-dark skin tone",1,[]],["🫶🏿","heart hands: dark skin tone",1,[]],["👐","open hands",1,["hand","hands","hug","jazz","open","swerve"]],["👐🏻","open hands: light skin tone",1,[]],["👐🏼","open hands: medium-light skin tone",1,[]],["👐🏽","open hands: medium skin tone",1,[]],["👐🏾","open hands: medium-dark skin tone",1,[]],["👐🏿","open hands: dark skin tone",1,[]],["🤲","palms up together",1,["cupped","dua","hands","palms","pray","prayer","together","up","wish"]],["🤲🏻","palms up together: light skin tone",1,[]],["🤲🏼","palms up together: medium-light skin tone",1,[]],["🤲🏽","palms up together: medium skin tone",1,[]],["🤲🏾","palms up together: medium-dark skin tone",1,[]],["🤲🏿","palms up together: dark skin tone",1,[]],["🤝","handshake",1,["agreement","deal","hand","handshake","meeting","shake"]],["🤝🏻","handshake: light skin tone",1,[]],["🤝🏼","handshake: medium-light skin tone",1,[]],["🤝🏽","handshake: medium skin tone",1,[]],["🤝🏾","handshake: medium-dark skin tone",1,[]],["🤝🏿","handshake: dark skin tone",1,[]],["🫱🏻🫲🏼","handshake: light skin tone, medium-light skin tone",1,[]],["🫱🏻🫲🏽","handshake: light skin tone, medium skin tone",1,[]],["🫱🏻🫲🏾","handshake: light skin tone, medium-dark skin tone",1,[]],["🫱🏻🫲🏿","handshake: light skin tone, dark skin tone",1,[]],["🫱🏼🫲🏻","handshake: medium-light skin tone, light skin tone",1,[]],["🫱🏼🫲🏽","handshake: medium-light skin tone, medium skin tone",1,[]],["🫱🏼🫲🏾","handshake: medium-light skin tone, medium-dark skin tone",1,[]],["🫱🏼🫲🏿","handshake: medium-light skin tone, dark skin tone",1,[]],["🫱🏽🫲🏻","handshake: medium skin tone, light skin tone",1,[]],["🫱🏽🫲🏼","handshake: medium skin tone, medium-light skin tone",1,[]],["🫱🏽🫲🏾","handshake: medium skin tone, medium-dark skin tone",1,[]],["🫱🏽🫲🏿","handshake: medium skin tone, dark skin tone",1,[]],["🫱🏾🫲🏻","handshake: medium-dark skin tone, light skin tone",1,[]],["🫱🏾🫲🏼","handshake: medium-dark skin tone, medium-light skin tone",1,[]],["🫱🏾🫲🏽","handshake: medium-dark skin tone, medium skin tone",1,[]],["🫱🏾🫲🏿","handshake: medium-dark skin tone, dark skin tone",1,[]],["🫱🏿🫲🏻","handshake: dark skin tone, light skin tone",1,[]],["🫱🏿🫲🏼","handshake: dark skin tone, medium-light skin tone",1,[]],["🫱🏿🫲🏽","handshake: dark skin tone, medium skin tone",1,[]],["🫱🏿🫲🏾","handshake: dark skin tone, medium-dark skin tone",1,[]],["🙏","folded hands",1,["appreciate","ask","beg","blessed","bow","cmon","five","folded","gesture","hand","high","please","pray","thanks","thx"]],["🙏🏻","folded hands: light skin tone",1,[]],["🙏🏼","folded hands: medium-light skin tone",1,[]],["🙏🏽","folded hands: medium skin tone",1,[]],["🙏🏾","folded hands: medium-dark skin tone",1,[]],["🙏🏿","folded hands: dark skin tone",1,[]],["✍️","writing hand",1,["hand","write","writing"]],["✍🏻","writing hand: light skin tone",1,[]],["✍🏼","writing hand: medium-light skin tone",1,[]],["✍🏽","writing hand: medium skin tone",1,[]],["✍🏾","writing hand: medium-dark skin tone",1,[]],["✍🏿","writing hand: dark skin tone",1,[]],["💅","nail polish",1,["bored","care","cosmetics","done","makeup","manicure","nail","polish","whatever"]],["💅🏻","nail polish: light skin tone",1,[]],["💅🏼","nail polish: medium-light skin tone",1,[]],["💅🏽","nail polish: medium skin tone",1,[]],["💅🏾","nail polish: medium-dark skin tone",1,[]],["💅🏿","nail polish: dark skin tone",1,[]],["🤳","selfie",1,["camera","phone","selfie"]],["🤳🏻","selfie: light skin tone",1,[]],["🤳🏼","selfie: medium-light skin tone",1,[]],["🤳🏽","selfie: medium skin tone",1,[]],["🤳🏾","selfie: medium-dark skin tone",1,[]],["🤳🏿","selfie: dark skin tone",1,[]],["💪","flexed biceps",1,["arm","beast","bench","biceps","bodybuilder","bro","curls","flex","gains","gym","jacked","muscle","press","ripped","strong","weightlift"]],["💪🏻","flexed biceps: light skin tone",1,[]],["💪🏼","flexed biceps: medium-light skin tone",1,[]],["💪🏽","flexed biceps: medium skin tone",1,[]],["💪🏾","flexed biceps: medium-dark skin tone",1,[]],["💪🏿","flexed biceps: dark skin tone",1,[]],["🦾","mechanical arm",1,["accessibility","arm","mechanical","prosthetic"]],["🦿","mechanical leg",1,["accessibility","leg","mechanical","prosthetic"]],["🦵","leg",1,["bent","foot","kick","knee","leg","limb"]],["🦵🏻","leg: light skin tone",1,[]],["🦵🏼","leg: medium-light skin tone",1,[]],["🦵🏽","leg: medium skin tone",1,[]],["🦵🏾","leg: medium-dark skin tone",1,[]],["🦵🏿","leg: dark skin tone",1,[]],["🦶","foot",1,["ankle","feet","foot","kick","stomp"]],["🦶🏻","foot: light skin tone",1,[]],["🦶🏼","foot: medium-light skin tone",1,[]],["🦶🏽","foot: medium skin tone",1,[]],["🦶🏾","foot: medium-dark skin tone",1,[]],["🦶🏿","foot: dark skin tone",1,[]],["👂","ear",1,["body","ear","ears","hear","hearing","listen","listening","sound"]],["👂🏻","ear: light skin tone",1,[]],["👂🏼","ear: medium-light skin tone",1,[]],["👂🏽","ear: medium skin tone",1,[]],["👂🏾","ear: medium-dark skin tone",1,[]],["👂🏿","ear: dark skin tone",1,[]],["🦻","ear with hearing aid",1,["accessibility","aid","ear","hard","hearing"]],["🦻🏻","ear with hearing aid: light skin tone",1,[]],["🦻🏼","ear with hearing aid: medium-light skin tone",1,[]],["🦻🏽","ear with hearing aid: medium skin tone",1,[]],["🦻🏾","ear with hearing aid: medium-dark skin tone",1,[]],["🦻🏿","ear with hearing aid: dark skin tone",1,[]],["👃","nose",1,["body","nose","noses","nosey","odor","smell","smells"]],["👃🏻","nose: light skin tone",1,[]],["👃🏼","nose: medium-light skin tone",1,[]],["👃🏽","nose: medium skin tone",1,[]],["👃🏾","nose: medium-dark skin tone",1,[]],["👃🏿","nose: dark skin tone",1,[]],["🧠","brain",1,["brain","intelligent","smart"]],["🫀","anatomical heart",1,["anatomical","beat","cardiology","heart","heartbeat","organ","pulse","real","red"]],["🫁","lungs",1,["breath","breathe","exhalation","inhalation","lung","lungs","organ","respiration"]],["🦷","tooth",1,["dentist","pearly","teeth","tooth","white"]],["🦴","bone",1,["bone","bones","dog","skeleton","wishbone"]],["👀","eyes",1,["body","eye","eyes","face","googly","look","looking","omg","peep","see","seeing"]],["👁️","eye",1,["1","body","eye","one"]],["👅","tongue",1,["body","lick","slurp","tongue"]],["👄","mouth",1,["beauty","body","kiss","kissing","lips","lipstick","mouth"]],["🫦","biting lip",1,["anxious","bite","biting","fear","flirt","flirting","kiss","lip","lipstick","nervous","sexy","uncomfortable","worried","worry"]],["👶","baby",1,["babies","baby","children","goo","infant","newborn","pregnant","young"]],["👶🏻","baby: light skin tone",1,[]],["👶🏼","baby: medium-light skin tone",1,[]],["👶🏽","baby: medium skin tone",1,[]],["👶🏾","baby: medium-dark skin tone",1,[]],["👶🏿","baby: dark skin tone",1,[]],["🧒","child",1,["bright-eyed","child","grandchild","kid","young","younger"]],["🧒🏻","child: light skin tone",1,[]],["🧒🏼","child: medium-light skin tone",1,[]],["🧒🏽","child: medium skin tone",1,[]],["🧒🏾","child: medium-dark skin tone",1,[]],["🧒🏿","child: dark skin tone",1,[]],["👦","boy",1,["boy","bright-eyed","child","grandson","kid","son","young","younger"]],["👦🏻","boy: light skin tone",1,[]],["👦🏼","boy: medium-light skin tone",1,[]],["👦🏽","boy: medium skin tone",1,[]],["👦🏾","boy: medium-dark skin tone",1,[]],["👦🏿","boy: dark skin tone",1,[]],["👧","girl",1,["bright-eyed","child","daughter","girl","granddaughter","kid","Virgo","young","younger","zodiac"]],["👧🏻","girl: light skin tone",1,[]],["👧🏼","girl: medium-light skin tone",1,[]],["👧🏽","girl: medium skin tone",1,[]],["👧🏾","girl: medium-dark skin tone",1,[]],["👧🏿","girl: dark skin tone",1,[]],["🧑","person",1,["adult","person"]],["🧑🏻","person: light skin tone",1,[]],["🧑🏼","person: medium-light skin tone",1,[]],["🧑🏽","person: medium skin tone",1,[]],["🧑🏾","person: medium-dark skin tone",1,[]],["🧑🏿","person: dark skin tone",1,[]],["👱","person: blond hair",1,["blond","blond-haired","human","person"]],["👱🏻","person: light skin tone, blond hair",1,[]],["👱🏼","person: medium-light skin tone, blond hair",1,[]],["👱🏽","person: medium skin tone, blond hair",1,[]],["👱🏾","person: medium-dark skin tone, blond hair",1,[]],["👱🏿","person: dark skin tone, blond hair",1,[]],["👨","man",1,["adult","bro","man"]],["👨🏻","man: light skin tone",1,[]],["👨🏼","man: medium-light skin tone",1,[]],["👨🏽","man: medium skin tone",1,[]],["👨🏾","man: medium-dark skin tone",1,[]],["👨🏿","man: dark skin tone",1,[]],["🧔","person: beard",1,["beard","bearded","person","whiskers"]],["🧔🏻","person: light skin tone, beard",1,[]],["🧔🏼","person: medium-light skin tone, beard",1,[]],["🧔🏽","person: medium skin tone, beard",1,[]],["🧔🏾","person: medium-dark skin tone, beard",1,[]],["🧔🏿","person: dark skin tone, beard",1,[]],["🧔♂️","man: beard",1,["beard","bearded","man","whiskers"]],["🧔🏻♂️","man: light skin tone, beard",1,[]],["🧔🏼♂️","man: medium-light skin tone, beard",1,[]],["🧔🏽♂️","man: medium skin tone, beard",1,[]],["🧔🏾♂️","man: medium-dark skin tone, beard",1,[]],["🧔🏿♂️","man: dark skin tone, beard",1,[]],["🧔♀️","woman: beard",1,["beard","bearded","whiskers","woman"]],["🧔🏻♀️","woman: light skin tone, beard",1,[]],["🧔🏼♀️","woman: medium-light skin tone, beard",1,[]],["🧔🏽♀️","woman: medium skin tone, beard",1,[]],["🧔🏾♀️","woman: medium-dark skin tone, beard",1,[]],["🧔🏿♀️","woman: dark skin tone, beard",1,[]],["👨🦰","man: red hair",1,[]],["👨🏻🦰","man: light skin tone, red hair",1,[]],["👨🏼🦰","man: medium-light skin tone, red hair",1,[]],["👨🏽🦰","man: medium skin tone, red hair",1,[]],["👨🏾🦰","man: medium-dark skin tone, red hair",1,[]],["👨🏿🦰","man: dark skin tone, red hair",1,[]],["👨🦱","man: curly hair",1,[]],["👨🏻🦱","man: light skin tone, curly hair",1,[]],["👨🏼🦱","man: medium-light skin tone, curly hair",1,[]],["👨🏽🦱","man: medium skin tone, curly hair",1,[]],["👨🏾🦱","man: medium-dark skin tone, curly hair",1,[]],["👨🏿🦱","man: dark skin tone, curly hair",1,[]],["👨🦳","man: white hair",1,[]],["👨🏻🦳","man: light skin tone, white hair",1,[]],["👨🏼🦳","man: medium-light skin tone, white hair",1,[]],["👨🏽🦳","man: medium skin tone, white hair",1,[]],["👨🏾🦳","man: medium-dark skin tone, white hair",1,[]],["👨🏿🦳","man: dark skin tone, white hair",1,[]],["👨🦲","man: bald",1,[]],["👨🏻🦲","man: light skin tone, bald",1,[]],["👨🏼🦲","man: medium-light skin tone, bald",1,[]],["👨🏽🦲","man: medium skin tone, bald",1,[]],["👨🏾🦲","man: medium-dark skin tone, bald",1,[]],["👨🏿🦲","man: dark skin tone, bald",1,[]],["👩","woman",1,["adult","lady","woman"]],["👩🏻","woman: light skin tone",1,[]],["👩🏼","woman: medium-light skin tone",1,[]],["👩🏽","woman: medium skin tone",1,[]],["👩🏾","woman: medium-dark skin tone",1,[]],["👩🏿","woman: dark skin tone",1,[]],["👩🦰","woman: red hair",1,[]],["👩🏻🦰","woman: light skin tone, red hair",1,[]],["👩🏼🦰","woman: medium-light skin tone, red hair",1,[]],["👩🏽🦰","woman: medium skin tone, red hair",1,[]],["👩🏾🦰","woman: medium-dark skin tone, red hair",1,[]],["👩🏿🦰","woman: dark skin tone, red hair",1,[]],["🧑🦰","person: red hair",1,[]],["🧑🏻🦰","person: light skin tone, red hair",1,[]],["🧑🏼🦰","person: medium-light skin tone, red hair",1,[]],["🧑🏽🦰","person: medium skin tone, red hair",1,[]],["🧑🏾🦰","person: medium-dark skin tone, red hair",1,[]],["🧑🏿🦰","person: dark skin tone, red hair",1,[]],["👩🦱","woman: curly hair",1,[]],["👩🏻🦱","woman: light skin tone, curly hair",1,[]],["👩🏼🦱","woman: medium-light skin tone, curly hair",1,[]],["👩🏽🦱","woman: medium skin tone, curly hair",1,[]],["👩🏾🦱","woman: medium-dark skin tone, curly hair",1,[]],["👩🏿🦱","woman: dark skin tone, curly hair",1,[]],["🧑🦱","person: curly hair",1,[]],["🧑🏻🦱","person: light skin tone, curly hair",1,[]],["🧑🏼🦱","person: medium-light skin tone, curly hair",1,[]],["🧑🏽🦱","person: medium skin tone, curly hair",1,[]],["🧑🏾🦱","person: medium-dark skin tone, curly hair",1,[]],["🧑🏿🦱","person: dark skin tone, curly hair",1,[]],["👩🦳","woman: white hair",1,[]],["👩🏻🦳","woman: light skin tone, white hair",1,[]],["👩🏼🦳","woman: medium-light skin tone, white hair",1,[]],["👩🏽🦳","woman: medium skin tone, white hair",1,[]],["👩🏾🦳","woman: medium-dark skin tone, white hair",1,[]],["👩🏿🦳","woman: dark skin tone, white hair",1,[]],["🧑🦳","person: white hair",1,[]],["🧑🏻🦳","person: light skin tone, white hair",1,[]],["🧑🏼🦳","person: medium-light skin tone, white hair",1,[]],["🧑🏽🦳","person: medium skin tone, white hair",1,[]],["🧑🏾🦳","person: medium-dark skin tone, white hair",1,[]],["🧑🏿🦳","person: dark skin tone, white hair",1,[]],["👩🦲","woman: bald",1,[]],["👩🏻🦲","woman: light skin tone, bald",1,[]],["👩🏼🦲","woman: medium-light skin tone, bald",1,[]],["👩🏽🦲","woman: medium skin tone, bald",1,[]],["👩🏾🦲","woman: medium-dark skin tone, bald",1,[]],["👩🏿🦲","woman: dark skin tone, bald",1,[]],["🧑🦲","person: bald",1,[]],["🧑🏻🦲","person: light skin tone, bald",1,[]],["🧑🏼🦲","person: medium-light skin tone, bald",1,[]],["🧑🏽🦲","person: medium skin tone, bald",1,[]],["🧑🏾🦲","person: medium-dark skin tone, bald",1,[]],["🧑🏿🦲","person: dark skin tone, bald",1,[]],["👱♀️","woman: blond hair",1,["blond","blond-haired","blonde","hair","woman"]],["👱🏻♀️","woman: light skin tone, blond hair",1,[]],["👱🏼♀️","woman: medium-light skin tone, blond hair",1,[]],["👱🏽♀️","woman: medium skin tone, blond hair",1,[]],["👱🏾♀️","woman: medium-dark skin tone, blond hair",1,[]],["👱🏿♀️","woman: dark skin tone, blond hair",1,[]],["👱♂️","man: blond hair",1,["blond","blond-haired","hair","man"]],["👱🏻♂️","man: light skin tone, blond hair",1,[]],["👱🏼♂️","man: medium-light skin tone, blond hair",1,[]],["👱🏽♂️","man: medium skin tone, blond hair",1,[]],["👱🏾♂️","man: medium-dark skin tone, blond hair",1,[]],["👱🏿♂️","man: dark skin tone, blond hair",1,[]],["🧓","older person",1,["adult","elderly","grandparent","old","person","wise"]],["🧓🏻","older person: light skin tone",1,[]],["🧓🏼","older person: medium-light skin tone",1,[]],["🧓🏽","older person: medium skin tone",1,[]],["🧓🏾","older person: medium-dark skin tone",1,[]],["🧓🏿","older person: dark skin tone",1,[]],["👴","old man",1,["adult","bald","elderly","gramps","grandfather","grandpa","man","old","wise"]],["👴🏻","old man: light skin tone",1,[]],["👴🏼","old man: medium-light skin tone",1,[]],["👴🏽","old man: medium skin tone",1,[]],["👴🏾","old man: medium-dark skin tone",1,[]],["👴🏿","old man: dark skin tone",1,[]],["👵","old woman",1,["adult","elderly","grandma","grandmother","granny","lady","old","wise","woman"]],["👵🏻","old woman: light skin tone",1,[]],["👵🏼","old woman: medium-light skin tone",1,[]],["👵🏽","old woman: medium skin tone",1,[]],["👵🏾","old woman: medium-dark skin tone",1,[]],["👵🏿","old woman: dark skin tone",1,[]],["🙍","person frowning",1,["annoyed","disappointed","disgruntled","disturbed","frown","frowning","frustrated","gesture","irritated","person","upset"]],["🙍🏻","person frowning: light skin tone",1,[]],["🙍🏼","person frowning: medium-light skin tone",1,[]],["🙍🏽","person frowning: medium skin tone",1,[]],["🙍🏾","person frowning: medium-dark skin tone",1,[]],["🙍🏿","person frowning: dark skin tone",1,[]],["🙍♂️","man frowning",1,["annoyed","disappointed","disgruntled","disturbed","frown","frowning","frustrated","gesture","irritated","man","upset"]],["🙍🏻♂️","man frowning: light skin tone",1,[]],["🙍🏼♂️","man frowning: medium-light skin tone",1,[]],["🙍🏽♂️","man frowning: medium skin tone",1,[]],["🙍🏾♂️","man frowning: medium-dark skin tone",1,[]],["🙍🏿♂️","man frowning: dark skin tone",1,[]],["🙍♀️","woman frowning",1,["annoyed","disappointed","disgruntled","disturbed","frown","frowning","frustrated","gesture","irritated","upset","woman"]],["🙍🏻♀️","woman frowning: light skin tone",1,[]],["🙍🏼♀️","woman frowning: medium-light skin tone",1,[]],["🙍🏽♀️","woman frowning: medium skin tone",1,[]],["🙍🏾♀️","woman frowning: medium-dark skin tone",1,[]],["🙍🏿♀️","woman frowning: dark skin tone",1,[]],["🙎","person pouting",1,["disappointed","downtrodden","frown","grimace","person","pouting","scowl","sulk","upset","whine"]],["🙎🏻","person pouting: light skin tone",1,[]],["🙎🏼","person pouting: medium-light skin tone",1,[]],["🙎🏽","person pouting: medium skin tone",1,[]],["🙎🏾","person pouting: medium-dark skin tone",1,[]],["🙎🏿","person pouting: dark skin tone",1,[]],["🙎♂️","man pouting",1,["disappointed","downtrodden","frown","grimace","man","pouting","scowl","sulk","upset","whine"]],["🙎🏻♂️","man pouting: light skin tone",1,[]],["🙎🏼♂️","man pouting: medium-light skin tone",1,[]],["🙎🏽♂️","man pouting: medium skin tone",1,[]],["🙎🏾♂️","man pouting: medium-dark skin tone",1,[]],["🙎🏿♂️","man pouting: dark skin tone",1,[]],["🙎♀️","woman pouting",1,["disappointed","downtrodden","frown","grimace","pouting","scowl","sulk","upset","whine","woman"]],["🙎🏻♀️","woman pouting: light skin tone",1,[]],["🙎🏼♀️","woman pouting: medium-light skin tone",1,[]],["🙎🏽♀️","woman pouting: medium skin tone",1,[]],["🙎🏾♀️","woman pouting: medium-dark skin tone",1,[]],["🙎🏿♀️","woman pouting: dark skin tone",1,[]],["🙅","person gesturing NO",1,["forbidden","gesture","hand","NO","not","person","prohibit"]],["🙅🏻","person gesturing NO: light skin tone",1,[]],["🙅🏼","person gesturing NO: medium-light skin tone",1,[]],["🙅🏽","person gesturing NO: medium skin tone",1,[]],["🙅🏾","person gesturing NO: medium-dark skin tone",1,[]],["🙅🏿","person gesturing NO: dark skin tone",1,[]],["🙅♂️","man gesturing NO",1,["forbidden","gesture","hand","man","NO","not","prohibit"]],["🙅🏻♂️","man gesturing NO: light skin tone",1,[]],["🙅🏼♂️","man gesturing NO: medium-light skin tone",1,[]],["🙅🏽♂️","man gesturing NO: medium skin tone",1,[]],["🙅🏾♂️","man gesturing NO: medium-dark skin tone",1,[]],["🙅🏿♂️","man gesturing NO: dark skin tone",1,[]],["🙅♀️","woman gesturing NO",1,["forbidden","gesture","hand","NO","not","prohibit","woman"]],["🙅🏻♀️","woman gesturing NO: light skin tone",1,[]],["🙅🏼♀️","woman gesturing NO: medium-light skin tone",1,[]],["🙅🏽♀️","woman gesturing NO: medium skin tone",1,[]],["🙅🏾♀️","woman gesturing NO: medium-dark skin tone",1,[]],["🙅🏿♀️","woman gesturing NO: dark skin tone",1,[]],["🙆","person gesturing OK",1,["exercise","gesture","gesturing","hand","OK","omg","person"]],["🙆🏻","person gesturing OK: light skin tone",1,[]],["🙆🏼","person gesturing OK: medium-light skin tone",1,[]],["🙆🏽","person gesturing OK: medium skin tone",1,[]],["🙆🏾","person gesturing OK: medium-dark skin tone",1,[]],["🙆🏿","person gesturing OK: dark skin tone",1,[]],["🙆♂️","man gesturing OK",1,["exercise","gesture","gesturing","hand","man","OK","omg"]],["🙆🏻♂️","man gesturing OK: light skin tone",1,[]],["🙆🏼♂️","man gesturing OK: medium-light skin tone",1,[]],["🙆🏽♂️","man gesturing OK: medium skin tone",1,[]],["🙆🏾♂️","man gesturing OK: medium-dark skin tone",1,[]],["🙆🏿♂️","man gesturing OK: dark skin tone",1,[]],["🙆♀️","woman gesturing OK",1,["exercise","gesture","gesturing","hand","OK","omg","woman"]],["🙆🏻♀️","woman gesturing OK: light skin tone",1,[]],["🙆🏼♀️","woman gesturing OK: medium-light skin tone",1,[]],["🙆🏽♀️","woman gesturing OK: medium skin tone",1,[]],["🙆🏾♀️","woman gesturing OK: medium-dark skin tone",1,[]],["🙆🏿♀️","woman gesturing OK: dark skin tone",1,[]],["💁","person tipping hand",1,["fetch","flick","flip","gossip","hand","person","sarcasm","sarcastic","sassy","seriously","tipping","whatever"]],["💁🏻","person tipping hand: light skin tone",1,[]],["💁🏼","person tipping hand: medium-light skin tone",1,[]],["💁🏽","person tipping hand: medium skin tone",1,[]],["💁🏾","person tipping hand: medium-dark skin tone",1,[]],["💁🏿","person tipping hand: dark skin tone",1,[]],["💁♂️","man tipping hand",1,["fetch","flick","flip","gossip","hand","man","sarcasm","sarcastic","sassy","seriously","tipping","whatever"]],["💁🏻♂️","man tipping hand: light skin tone",1,[]],["💁🏼♂️","man tipping hand: medium-light skin tone",1,[]],["💁🏽♂️","man tipping hand: medium skin tone",1,[]],["💁🏾♂️","man tipping hand: medium-dark skin tone",1,[]],["💁🏿♂️","man tipping hand: dark skin tone",1,[]],["💁♀️","woman tipping hand",1,["fetch","flick","flip","gossip","hand","sarcasm","sarcastic","sassy","seriously","tipping","whatever","woman"]],["💁🏻♀️","woman tipping hand: light skin tone",1,[]],["💁🏼♀️","woman tipping hand: medium-light skin tone",1,[]],["💁🏽♀️","woman tipping hand: medium skin tone",1,[]],["💁🏾♀️","woman tipping hand: medium-dark skin tone",1,[]],["💁🏿♀️","woman tipping hand: dark skin tone",1,[]],["🙋","person raising hand",1,["gesture","hand","here","know","me","person","pick","question","raise","raising"]],["🙋🏻","person raising hand: light skin tone",1,[]],["🙋🏼","person raising hand: medium-light skin tone",1,[]],["🙋🏽","person raising hand: medium skin tone",1,[]],["🙋🏾","person raising hand: medium-dark skin tone",1,[]],["🙋🏿","person raising hand: dark skin tone",1,[]],["🙋♂️","man raising hand",1,["gesture","hand","here","know","man","me","pick","question","raise","raising"]],["🙋🏻♂️","man raising hand: light skin tone",1,[]],["🙋🏼♂️","man raising hand: medium-light skin tone",1,[]],["🙋🏽♂️","man raising hand: medium skin tone",1,[]],["🙋🏾♂️","man raising hand: medium-dark skin tone",1,[]],["🙋🏿♂️","man raising hand: dark skin tone",1,[]],["🙋♀️","woman raising hand",1,["gesture","hand","here","know","me","pick","question","raise","raising","woman"]],["🙋🏻♀️","woman raising hand: light skin tone",1,[]],["🙋🏼♀️","woman raising hand: medium-light skin tone",1,[]],["🙋🏽♀️","woman raising hand: medium skin tone",1,[]],["🙋🏾♀️","woman raising hand: medium-dark skin tone",1,[]],["🙋🏿♀️","woman raising hand: dark skin tone",1,[]],["🧏","deaf person",1,["accessibility","deaf","ear","gesture","hear","person"]],["🧏🏻","deaf person: light skin tone",1,[]],["🧏🏼","deaf person: medium-light skin tone",1,[]],["🧏🏽","deaf person: medium skin tone",1,[]],["🧏🏾","deaf person: medium-dark skin tone",1,[]],["🧏🏿","deaf person: dark skin tone",1,[]],["🧏♂️","deaf man",1,["accessibility","deaf","ear","gesture","hear","man"]],["🧏🏻♂️","deaf man: light skin tone",1,[]],["🧏🏼♂️","deaf man: medium-light skin tone",1,[]],["🧏🏽♂️","deaf man: medium skin tone",1,[]],["🧏🏾♂️","deaf man: medium-dark skin tone",1,[]],["🧏🏿♂️","deaf man: dark skin tone",1,[]],["🧏♀️","deaf woman",1,["accessibility","deaf","ear","gesture","hear","woman"]],["🧏🏻♀️","deaf woman: light skin tone",1,[]],["🧏🏼♀️","deaf woman: medium-light skin tone",1,[]],["🧏🏽♀️","deaf woman: medium skin tone",1,[]],["🧏🏾♀️","deaf woman: medium-dark skin tone",1,[]],["🧏🏿♀️","deaf woman: dark skin tone",1,[]],["🙇","person bowing",1,["apology","ask","beg","bow","bowing","favor","forgive","gesture","meditate","meditation","person","pity","regret","sorry"]],["🙇🏻","person bowing: light skin tone",1,[]],["🙇🏼","person bowing: medium-light skin tone",1,[]],["🙇🏽","person bowing: medium skin tone",1,[]],["🙇🏾","person bowing: medium-dark skin tone",1,[]],["🙇🏿","person bowing: dark skin tone",1,[]],["🙇♂️","man bowing",1,["apology","ask","beg","bow","bowing","favor","forgive","gesture","man","meditate","meditation","pity","regret","sorry"]],["🙇🏻♂️","man bowing: light skin tone",1,[]],["🙇🏼♂️","man bowing: medium-light skin tone",1,[]],["🙇🏽♂️","man bowing: medium skin tone",1,[]],["🙇🏾♂️","man bowing: medium-dark skin tone",1,[]],["🙇🏿♂️","man bowing: dark skin tone",1,[]],["🙇♀️","woman bowing",1,["apology","ask","beg","bow","bowing","favor","forgive","gesture","meditate","meditation","pity","regret","sorry","woman"]],["🙇🏻♀️","woman bowing: light skin tone",1,[]],["🙇🏼♀️","woman bowing: medium-light skin tone",1,[]],["🙇🏽♀️","woman bowing: medium skin tone",1,[]],["🙇🏾♀️","woman bowing: medium-dark skin tone",1,[]],["🙇🏿♀️","woman bowing: dark skin tone",1,[]],["🤦","person facepalming",1,["again","bewilder","disbelief","exasperation","facepalm","no","not","oh","omg","person","shock","smh"]],["🤦🏻","person facepalming: light skin tone",1,[]],["🤦🏼","person facepalming: medium-light skin tone",1,[]],["🤦🏽","person facepalming: medium skin tone",1,[]],["🤦🏾","person facepalming: medium-dark skin tone",1,[]],["🤦🏿","person facepalming: dark skin tone",1,[]],["🤦♂️","man facepalming",1,["again","bewilder","disbelief","exasperation","facepalm","man","no","not","oh","omg","shock","smh"]],["🤦🏻♂️","man facepalming: light skin tone",1,[]],["🤦🏼♂️","man facepalming: medium-light skin tone",1,[]],["🤦🏽♂️","man facepalming: medium skin tone",1,[]],["🤦🏾♂️","man facepalming: medium-dark skin tone",1,[]],["🤦🏿♂️","man facepalming: dark skin tone",1,[]],["🤦♀️","woman facepalming",1,["again","bewilder","disbelief","exasperation","facepalm","no","not","oh","omg","shock","smh","woman"]],["🤦🏻♀️","woman facepalming: light skin tone",1,[]],["🤦🏼♀️","woman facepalming: medium-light skin tone",1,[]],["🤦🏽♀️","woman facepalming: medium skin tone",1,[]],["🤦🏾♀️","woman facepalming: medium-dark skin tone",1,[]],["🤦🏿♀️","woman facepalming: dark skin tone",1,[]],["🤷","person shrugging",1,["doubt","dunno","guess","idk","ignorance","indifference","knows","maybe","person","shrug","shrugging","whatever","who"]],["🤷🏻","person shrugging: light skin tone",1,[]],["🤷🏼","person shrugging: medium-light skin tone",1,[]],["🤷🏽","person shrugging: medium skin tone",1,[]],["🤷🏾","person shrugging: medium-dark skin tone",1,[]],["🤷🏿","person shrugging: dark skin tone",1,[]],["🤷♂️","man shrugging",1,["doubt","dunno","guess","idk","ignorance","indifference","knows","man","maybe","shrug","shrugging","whatever","who"]],["🤷🏻♂️","man shrugging: light skin tone",1,[]],["🤷🏼♂️","man shrugging: medium-light skin tone",1,[]],["🤷🏽♂️","man shrugging: medium skin tone",1,[]],["🤷🏾♂️","man shrugging: medium-dark skin tone",1,[]],["🤷🏿♂️","man shrugging: dark skin tone",1,[]],["🤷♀️","woman shrugging",1,["doubt","dunno","guess","idk","ignorance","indifference","knows","maybe","shrug","shrugging","whatever","who","woman"]],["🤷🏻♀️","woman shrugging: light skin tone",1,[]],["🤷🏼♀️","woman shrugging: medium-light skin tone",1,[]],["🤷🏽♀️","woman shrugging: medium skin tone",1,[]],["🤷🏾♀️","woman shrugging: medium-dark skin tone",1,[]],["🤷🏿♀️","woman shrugging: dark skin tone",1,[]],["🧑⚕️","health worker",1,["doctor","health","healthcare","nurse","therapist","worker"]],["🧑🏻⚕️","health worker: light skin tone",1,[]],["🧑🏼⚕️","health worker: medium-light skin tone",1,[]],["🧑🏽⚕️","health worker: medium skin tone",1,[]],["🧑🏾⚕️","health worker: medium-dark skin tone",1,[]],["🧑🏿⚕️","health worker: dark skin tone",1,[]],["👨⚕️","man health worker",1,["doctor","health","healthcare","man","nurse","therapist","worker"]],["👨🏻⚕️","man health worker: light skin tone",1,[]],["👨🏼⚕️","man health worker: medium-light skin tone",1,[]],["👨🏽⚕️","man health worker: medium skin tone",1,[]],["👨🏾⚕️","man health worker: medium-dark skin tone",1,[]],["👨🏿⚕️","man health worker: dark skin tone",1,[]],["👩⚕️","woman health worker",1,["doctor","health","healthcare","nurse","therapist","woman","worker"]],["👩🏻⚕️","woman health worker: light skin tone",1,[]],["👩🏼⚕️","woman health worker: medium-light skin tone",1,[]],["👩🏽⚕️","woman health worker: medium skin tone",1,[]],["👩🏾⚕️","woman health worker: medium-dark skin tone",1,[]],["👩🏿⚕️","woman health worker: dark skin tone",1,[]],["🧑🎓","student",1,["graduate","student"]],["🧑🏻🎓","student: light skin tone",1,[]],["🧑🏼🎓","student: medium-light skin tone",1,[]],["🧑🏽🎓","student: medium skin tone",1,[]],["🧑🏾🎓","student: medium-dark skin tone",1,[]],["🧑🏿🎓","student: dark skin tone",1,[]],["👨🎓","man student",1,["graduate","man","student"]],["👨🏻🎓","man student: light skin tone",1,[]],["👨🏼🎓","man student: medium-light skin tone",1,[]],["👨🏽🎓","man student: medium skin tone",1,[]],["👨🏾🎓","man student: medium-dark skin tone",1,[]],["👨🏿🎓","man student: dark skin tone",1,[]],["👩🎓","woman student",1,["graduate","student","woman"]],["👩🏻🎓","woman student: light skin tone",1,[]],["👩🏼🎓","woman student: medium-light skin tone",1,[]],["👩🏽🎓","woman student: medium skin tone",1,[]],["👩🏾🎓","woman student: medium-dark skin tone",1,[]],["👩🏿🎓","woman student: dark skin tone",1,[]],["🧑🏫","teacher",1,["instructor","lecturer","professor","teacher"]],["🧑🏻🏫","teacher: light skin tone",1,[]],["🧑🏼🏫","teacher: medium-light skin tone",1,[]],["🧑🏽🏫","teacher: medium skin tone",1,[]],["🧑🏾🏫","teacher: medium-dark skin tone",1,[]],["🧑🏿🏫","teacher: dark skin tone",1,[]],["👨🏫","man teacher",1,["instructor","lecturer","man","professor","teacher"]],["👨🏻🏫","man teacher: light skin tone",1,[]],["👨🏼🏫","man teacher: medium-light skin tone",1,[]],["👨🏽🏫","man teacher: medium skin tone",1,[]],["👨🏾🏫","man teacher: medium-dark skin tone",1,[]],["👨🏿🏫","man teacher: dark skin tone",1,[]],["👩🏫","woman teacher",1,["instructor","lecturer","professor","teacher","woman"]],["👩🏻🏫","woman teacher: light skin tone",1,[]],["👩🏼🏫","woman teacher: medium-light skin tone",1,[]],["👩🏽🏫","woman teacher: medium skin tone",1,[]],["👩🏾🏫","woman teacher: medium-dark skin tone",1,[]],["👩🏿🏫","woman teacher: dark skin tone",1,[]],["🧑⚖️","judge",1,["judge","justice","law","scales"]],["🧑🏻⚖️","judge: light skin tone",1,[]],["🧑🏼⚖️","judge: medium-light skin tone",1,[]],["🧑🏽⚖️","judge: medium skin tone",1,[]],["🧑🏾⚖️","judge: medium-dark skin tone",1,[]],["🧑🏿⚖️","judge: dark skin tone",1,[]],["👨⚖️","man judge",1,["judge","justice","law","man","scales"]],["👨🏻⚖️","man judge: light skin tone",1,[]],["👨🏼⚖️","man judge: medium-light skin tone",1,[]],["👨🏽⚖️","man judge: medium skin tone",1,[]],["👨🏾⚖️","man judge: medium-dark skin tone",1,[]],["👨🏿⚖️","man judge: dark skin tone",1,[]],["👩⚖️","woman judge",1,["judge","justice","law","scales","woman"]],["👩🏻⚖️","woman judge: light skin tone",1,[]],["👩🏼⚖️","woman judge: medium-light skin tone",1,[]],["👩🏽⚖️","woman judge: medium skin tone",1,[]],["👩🏾⚖️","woman judge: medium-dark skin tone",1,[]],["👩🏿⚖️","woman judge: dark skin tone",1,[]],["🧑🌾","farmer",1,["farmer","gardener","rancher"]],["🧑🏻🌾","farmer: light skin tone",1,[]],["🧑🏼🌾","farmer: medium-light skin tone",1,[]],["🧑🏽🌾","farmer: medium skin tone",1,[]],["🧑🏾🌾","farmer: medium-dark skin tone",1,[]],["🧑🏿🌾","farmer: dark skin tone",1,[]],["👨🌾","man farmer",1,["farmer","gardener","man","rancher"]],["👨🏻🌾","man farmer: light skin tone",1,[]],["👨🏼🌾","man farmer: medium-light skin tone",1,[]],["👨🏽🌾","man farmer: medium skin tone",1,[]],["👨🏾🌾","man farmer: medium-dark skin tone",1,[]],["👨🏿🌾","man farmer: dark skin tone",1,[]],["👩🌾","woman farmer",1,["farmer","gardener","rancher","woman"]],["👩🏻🌾","woman farmer: light skin tone",1,[]],["👩🏼🌾","woman farmer: medium-light skin tone",1,[]],["👩🏽🌾","woman farmer: medium skin tone",1,[]],["👩🏾🌾","woman farmer: medium-dark skin tone",1,[]],["👩🏿🌾","woman farmer: dark skin tone",1,[]],["🧑🍳","cook",1,["chef","cook"]],["🧑🏻🍳","cook: light skin tone",1,[]],["🧑🏼🍳","cook: medium-light skin tone",1,[]],["🧑🏽🍳","cook: medium skin tone",1,[]],["🧑🏾🍳","cook: medium-dark skin tone",1,[]],["🧑🏿🍳","cook: dark skin tone",1,[]],["👨🍳","man cook",1,["chef","cook","man"]],["👨🏻🍳","man cook: light skin tone",1,[]],["👨🏼🍳","man cook: medium-light skin tone",1,[]],["👨🏽🍳","man cook: medium skin tone",1,[]],["👨🏾🍳","man cook: medium-dark skin tone",1,[]],["👨🏿🍳","man cook: dark skin tone",1,[]],["👩🍳","woman cook",1,["chef","cook","woman"]],["👩🏻🍳","woman cook: light skin tone",1,[]],["👩🏼🍳","woman cook: medium-light skin tone",1,[]],["👩🏽🍳","woman cook: medium skin tone",1,[]],["👩🏾🍳","woman cook: medium-dark skin tone",1,[]],["👩🏿🍳","woman cook: dark skin tone",1,[]],["🧑🔧","mechanic",1,["electrician","mechanic","plumber","tradesperson"]],["🧑🏻🔧","mechanic: light skin tone",1,[]],["🧑🏼🔧","mechanic: medium-light skin tone",1,[]],["🧑🏽🔧","mechanic: medium skin tone",1,[]],["🧑🏾🔧","mechanic: medium-dark skin tone",1,[]],["🧑🏿🔧","mechanic: dark skin tone",1,[]],["👨🔧","man mechanic",1,["electrician","man","mechanic","plumber","tradesperson"]],["👨🏻🔧","man mechanic: light skin tone",1,[]],["👨🏼🔧","man mechanic: medium-light skin tone",1,[]],["👨🏽🔧","man mechanic: medium skin tone",1,[]],["👨🏾🔧","man mechanic: medium-dark skin tone",1,[]],["👨🏿🔧","man mechanic: dark skin tone",1,[]],["👩🔧","woman mechanic",1,["electrician","mechanic","plumber","tradesperson","woman"]],["👩🏻🔧","woman mechanic: light skin tone",1,[]],["👩🏼🔧","woman mechanic: medium-light skin tone",1,[]],["👩🏽🔧","woman mechanic: medium skin tone",1,[]],["👩🏾🔧","woman mechanic: medium-dark skin tone",1,[]],["👩🏿🔧","woman mechanic: dark skin tone",1,[]],["🧑🏭","factory worker",1,["assembly","factory","industrial","worker"]],["🧑🏻🏭","factory worker: light skin tone",1,[]],["🧑🏼🏭","factory worker: medium-light skin tone",1,[]],["🧑🏽🏭","factory worker: medium skin tone",1,[]],["🧑🏾🏭","factory worker: medium-dark skin tone",1,[]],["🧑🏿🏭","factory worker: dark skin tone",1,[]],["👨🏭","man factory worker",1,["assembly","factory","industrial","man","worker"]],["👨🏻🏭","man factory worker: light skin tone",1,[]],["👨🏼🏭","man factory worker: medium-light skin tone",1,[]],["👨🏽🏭","man factory worker: medium skin tone",1,[]],["👨🏾🏭","man factory worker: medium-dark skin tone",1,[]],["👨🏿🏭","man factory worker: dark skin tone",1,[]],["👩🏭","woman factory worker",1,["assembly","factory","industrial","woman","worker"]],["👩🏻🏭","woman factory worker: light skin tone",1,[]],["👩🏼🏭","woman factory worker: medium-light skin tone",1,[]],["👩🏽🏭","woman factory worker: medium skin tone",1,[]],["👩🏾🏭","woman factory worker: medium-dark skin tone",1,[]],["👩🏿🏭","woman factory worker: dark skin tone",1,[]],["🧑💼","office worker",1,["architect","business","manager","office","white-collar","worker"]],["🧑🏻💼","office worker: light skin tone",1,[]],["🧑🏼💼","office worker: medium-light skin tone",1,[]],["🧑🏽💼","office worker: medium skin tone",1,[]],["🧑🏾💼","office worker: medium-dark skin tone",1,[]],["🧑🏿💼","office worker: dark skin tone",1,[]],["👨💼","man office worker",1,["architect","business","man","manager","office","white-collar","worker"]],["👨🏻💼","man office worker: light skin tone",1,[]],["👨🏼💼","man office worker: medium-light skin tone",1,[]],["👨🏽💼","man office worker: medium skin tone",1,[]],["👨🏾💼","man office worker: medium-dark skin tone",1,[]],["👨🏿💼","man office worker: dark skin tone",1,[]],["👩💼","woman office worker",1,["architect","business","manager","office","white-collar","woman","worker"]],["👩🏻💼","woman office worker: light skin tone",1,[]],["👩🏼💼","woman office worker: medium-light skin tone",1,[]],["👩🏽💼","woman office worker: medium skin tone",1,[]],["👩🏾💼","woman office worker: medium-dark skin tone",1,[]],["👩🏿💼","woman office worker: dark skin tone",1,[]],["🧑🔬","scientist",1,["biologist","chemist","engineer","mathematician","physicist","scientist"]],["🧑🏻🔬","scientist: light skin tone",1,[]],["🧑🏼🔬","scientist: medium-light skin tone",1,[]],["🧑🏽🔬","scientist: medium skin tone",1,[]],["🧑🏾🔬","scientist: medium-dark skin tone",1,[]],["🧑🏿🔬","scientist: dark skin tone",1,[]],["👨🔬","man scientist",1,["biologist","chemist","engineer","man","mathematician","physicist","scientist"]],["👨🏻🔬","man scientist: light skin tone",1,[]],["👨🏼🔬","man scientist: medium-light skin tone",1,[]],["👨🏽🔬","man scientist: medium skin tone",1,[]],["👨🏾🔬","man scientist: medium-dark skin tone",1,[]],["👨🏿🔬","man scientist: dark skin tone",1,[]],["👩🔬","woman scientist",1,["biologist","chemist","engineer","mathematician","physicist","scientist","woman"]],["👩🏻🔬","woman scientist: light skin tone",1,[]],["👩🏼🔬","woman scientist: medium-light skin tone",1,[]],["👩🏽🔬","woman scientist: medium skin tone",1,[]],["👩🏾🔬","woman scientist: medium-dark skin tone",1,[]],["👩🏿🔬","woman scientist: dark skin tone",1,[]],["🧑💻","technologist",1,["coder","computer","developer","inventor","software","technologist"]],["🧑🏻💻","technologist: light skin tone",1,[]],["🧑🏼💻","technologist: medium-light skin tone",1,[]],["🧑🏽💻","technologist: medium skin tone",1,[]],["🧑🏾💻","technologist: medium-dark skin tone",1,[]],["🧑🏿💻","technologist: dark skin tone",1,[]],["👨💻","man technologist",1,["coder","computer","developer","inventor","man","software","technologist"]],["👨🏻💻","man technologist: light skin tone",1,[]],["👨🏼💻","man technologist: medium-light skin tone",1,[]],["👨🏽💻","man technologist: medium skin tone",1,[]],["👨🏾💻","man technologist: medium-dark skin tone",1,[]],["👨🏿💻","man technologist: dark skin tone",1,[]],["👩💻","woman technologist",1,["coder","computer","developer","inventor","software","technologist","woman"]],["👩🏻💻","woman technologist: light skin tone",1,[]],["👩🏼💻","woman technologist: medium-light skin tone",1,[]],["👩🏽💻","woman technologist: medium skin tone",1,[]],["👩🏾💻","woman technologist: medium-dark skin tone",1,[]],["👩🏿💻","woman technologist: dark skin tone",1,[]],["🧑🎤","singer",1,["actor","entertainer","rock","rockstar","singer","star"]],["🧑🏻🎤","singer: light skin tone",1,[]],["🧑🏼🎤","singer: medium-light skin tone",1,[]],["🧑🏽🎤","singer: medium skin tone",1,[]],["🧑🏾🎤","singer: medium-dark skin tone",1,[]],["🧑🏿🎤","singer: dark skin tone",1,[]],["👨🎤","man singer",1,["actor","entertainer","man","rock","rockstar","singer","star"]],["👨🏻🎤","man singer: light skin tone",1,[]],["👨🏼🎤","man singer: medium-light skin tone",1,[]],["👨🏽🎤","man singer: medium skin tone",1,[]],["👨🏾🎤","man singer: medium-dark skin tone",1,[]],["👨🏿🎤","man singer: dark skin tone",1,[]],["👩🎤","woman singer",1,["actor","entertainer","rock","rockstar","singer","star","woman"]],["👩🏻🎤","woman singer: light skin tone",1,[]],["👩🏼🎤","woman singer: medium-light skin tone",1,[]],["👩🏽🎤","woman singer: medium skin tone",1,[]],["👩🏾🎤","woman singer: medium-dark skin tone",1,[]],["👩🏿🎤","woman singer: dark skin tone",1,[]],["🧑🎨","artist",1,["artist","palette"]],["🧑🏻🎨","artist: light skin tone",1,[]],["🧑🏼🎨","artist: medium-light skin tone",1,[]],["🧑🏽🎨","artist: medium skin tone",1,[]],["🧑🏾🎨","artist: medium-dark skin tone",1,[]],["🧑🏿🎨","artist: dark skin tone",1,[]],["👨🎨","man artist",1,["artist","man","palette"]],["👨🏻🎨","man artist: light skin tone",1,[]],["👨🏼🎨","man artist: medium-light skin tone",1,[]],["👨🏽🎨","man artist: medium skin tone",1,[]],["👨🏾🎨","man artist: medium-dark skin tone",1,[]],["👨🏿🎨","man artist: dark skin tone",1,[]],["👩🎨","woman artist",1,["artist","palette","woman"]],["👩🏻🎨","woman artist: light skin tone",1,[]],["👩🏼🎨","woman artist: medium-light skin tone",1,[]],["👩🏽🎨","woman artist: medium skin tone",1,[]],["👩🏾🎨","woman artist: medium-dark skin tone",1,[]],["👩🏿🎨","woman artist: dark skin tone",1,[]],["🧑✈️","pilot",1,["pilot","plane"]],["🧑🏻✈️","pilot: light skin tone",1,[]],["🧑🏼✈️","pilot: medium-light skin tone",1,[]],["🧑🏽✈️","pilot: medium skin tone",1,[]],["🧑🏾✈️","pilot: medium-dark skin tone",1,[]],["🧑🏿✈️","pilot: dark skin tone",1,[]],["👨✈️","man pilot",1,["man","pilot","plane"]],["👨🏻✈️","man pilot: light skin tone",1,[]],["👨🏼✈️","man pilot: medium-light skin tone",1,[]],["👨🏽✈️","man pilot: medium skin tone",1,[]],["👨🏾✈️","man pilot: medium-dark skin tone",1,[]],["👨🏿✈️","man pilot: dark skin tone",1,[]],["👩✈️","woman pilot",1,["pilot","plane","woman"]],["👩🏻✈️","woman pilot: light skin tone",1,[]],["👩🏼✈️","woman pilot: medium-light skin tone",1,[]],["👩🏽✈️","woman pilot: medium skin tone",1,[]],["👩🏾✈️","woman pilot: medium-dark skin tone",1,[]],["👩🏿✈️","woman pilot: dark skin tone",1,[]],["🧑🚀","astronaut",1,["astronaut","rocket","space"]],["🧑🏻🚀","astronaut: light skin tone",1,[]],["🧑🏼🚀","astronaut: medium-light skin tone",1,[]],["🧑🏽🚀","astronaut: medium skin tone",1,[]],["🧑🏾🚀","astronaut: medium-dark skin tone",1,[]],["🧑🏿🚀","astronaut: dark skin tone",1,[]],["👨🚀","man astronaut",1,["astronaut","man","rocket","space"]],["👨🏻🚀","man astronaut: light skin tone",1,[]],["👨🏼🚀","man astronaut: medium-light skin tone",1,[]],["👨🏽🚀","man astronaut: medium skin tone",1,[]],["👨🏾🚀","man astronaut: medium-dark skin tone",1,[]],["👨🏿🚀","man astronaut: dark skin tone",1,[]],["👩🚀","woman astronaut",1,["astronaut","rocket","space","woman"]],["👩🏻🚀","woman astronaut: light skin tone",1,[]],["👩🏼🚀","woman astronaut: medium-light skin tone",1,[]],["👩🏽🚀","woman astronaut: medium skin tone",1,[]],["👩🏾🚀","woman astronaut: medium-dark skin tone",1,[]],["👩🏿🚀","woman astronaut: dark skin tone",1,[]],["🧑🚒","firefighter",1,["fire","firefighter","firetruck"]],["🧑🏻🚒","firefighter: light skin tone",1,[]],["🧑🏼🚒","firefighter: medium-light skin tone",1,[]],["🧑🏽🚒","firefighter: medium skin tone",1,[]],["🧑🏾🚒","firefighter: medium-dark skin tone",1,[]],["🧑🏿🚒","firefighter: dark skin tone",1,[]],["👨🚒","man firefighter",1,["fire","firefighter","firetruck","man"]],["👨🏻🚒","man firefighter: light skin tone",1,[]],["👨🏼🚒","man firefighter: medium-light skin tone",1,[]],["👨🏽🚒","man firefighter: medium skin tone",1,[]],["👨🏾🚒","man firefighter: medium-dark skin tone",1,[]],["👨🏿🚒","man firefighter: dark skin tone",1,[]],["👩🚒","woman firefighter",1,["fire","firefighter","firetruck","woman"]],["👩🏻🚒","woman firefighter: light skin tone",1,[]],["👩🏼🚒","woman firefighter: medium-light skin tone",1,[]],["👩🏽🚒","woman firefighter: medium skin tone",1,[]],["👩🏾🚒","woman firefighter: medium-dark skin tone",1,[]],["👩🏿🚒","woman firefighter: dark skin tone",1,[]],["👮","police officer",1,["apprehend","arrest","citation","cop","law","officer","over","police","pulled","undercover"]],["👮🏻","police officer: light skin tone",1,[]],["👮🏼","police officer: medium-light skin tone",1,[]],["👮🏽","police officer: medium skin tone",1,[]],["👮🏾","police officer: medium-dark skin tone",1,[]],["👮🏿","police officer: dark skin tone",1,[]],["👮♂️","man police officer",1,["apprehend","arrest","citation","cop","law","man","officer","over","police","pulled","undercover"]],["👮🏻♂️","man police officer: light skin tone",1,[]],["👮🏼♂️","man police officer: medium-light skin tone",1,[]],["👮🏽♂️","man police officer: medium skin tone",1,[]],["👮🏾♂️","man police officer: medium-dark skin tone",1,[]],["👮🏿♂️","man police officer: dark skin tone",1,[]],["👮♀️","woman police officer",1,["apprehend","arrest","citation","cop","law","officer","over","police","pulled","undercover","woman"]],["👮🏻♀️","woman police officer: light skin tone",1,[]],["👮🏼♀️","woman police officer: medium-light skin tone",1,[]],["👮🏽♀️","woman police officer: medium skin tone",1,[]],["👮🏾♀️","woman police officer: medium-dark skin tone",1,[]],["👮🏿♀️","woman police officer: dark skin tone",1,[]],["🕵️","detective",1,["detective","sleuth","spy"]],["🕵🏻","detective: light skin tone",1,[]],["🕵🏼","detective: medium-light skin tone",1,[]],["🕵🏽","detective: medium skin tone",1,[]],["🕵🏾","detective: medium-dark skin tone",1,[]],["🕵🏿","detective: dark skin tone",1,[]],["🕵️♂️","man detective",1,["detective","man","sleuth","spy"]],["🕵🏻♂️","man detective: light skin tone",1,[]],["🕵🏼♂️","man detective: medium-light skin tone",1,[]],["🕵🏽♂️","man detective: medium skin tone",1,[]],["🕵🏾♂️","man detective: medium-dark skin tone",1,[]],["🕵🏿♂️","man detective: dark skin tone",1,[]],["🕵️♀️","woman detective",1,["detective","sleuth","spy","woman"]],["🕵🏻♀️","woman detective: light skin tone",1,[]],["🕵🏼♀️","woman detective: medium-light skin tone",1,[]],["🕵🏽♀️","woman detective: medium skin tone",1,[]],["🕵🏾♀️","woman detective: medium-dark skin tone",1,[]],["🕵🏿♀️","woman detective: dark skin tone",1,[]],["💂","guard",1,["buckingham","guard","helmet","london","palace"]],["💂🏻","guard: light skin tone",1,[]],["💂🏼","guard: medium-light skin tone",1,[]],["💂🏽","guard: medium skin tone",1,[]],["💂🏾","guard: medium-dark skin tone",1,[]],["💂🏿","guard: dark skin tone",1,[]],["💂♂️","man guard",1,["buckingham","guard","helmet","london","man","palace"]],["💂🏻♂️","man guard: light skin tone",1,[]],["💂🏼♂️","man guard: medium-light skin tone",1,[]],["💂🏽♂️","man guard: medium skin tone",1,[]],["💂🏾♂️","man guard: medium-dark skin tone",1,[]],["💂🏿♂️","man guard: dark skin tone",1,[]],["💂♀️","woman guard",1,["buckingham","guard","helmet","london","palace","woman"]],["💂🏻♀️","woman guard: light skin tone",1,[]],["💂🏼♀️","woman guard: medium-light skin tone",1,[]],["💂🏽♀️","woman guard: medium skin tone",1,[]],["💂🏾♀️","woman guard: medium-dark skin tone",1,[]],["💂🏿♀️","woman guard: dark skin tone",1,[]],["🥷","ninja",1,["assassin","fight","fighter","hidden","ninja","person","secret","skills","sly","soldier","stealth","war"]],["🥷🏻","ninja: light skin tone",1,[]],["🥷🏼","ninja: medium-light skin tone",1,[]],["🥷🏽","ninja: medium skin tone",1,[]],["🥷🏾","ninja: medium-dark skin tone",1,[]],["🥷🏿","ninja: dark skin tone",1,[]],["👷","construction worker",1,["build","construction","fix","hardhat","hat","man","person","rebuild","remodel","repair","work","worker"]],["👷🏻","construction worker: light skin tone",1,[]],["👷🏼","construction worker: medium-light skin tone",1,[]],["👷🏽","construction worker: medium skin tone",1,[]],["👷🏾","construction worker: medium-dark skin tone",1,[]],["👷🏿","construction worker: dark skin tone",1,[]],["👷♂️","man construction worker",1,["build","construction","fix","hardhat","hat","man","rebuild","remodel","repair","work","worker"]],["👷🏻♂️","man construction worker: light skin tone",1,[]],["👷🏼♂️","man construction worker: medium-light skin tone",1,[]],["👷🏽♂️","man construction worker: medium skin tone",1,[]],["👷🏾♂️","man construction worker: medium-dark skin tone",1,[]],["👷🏿♂️","man construction worker: dark skin tone",1,[]],["👷♀️","woman construction worker",1,["build","construction","fix","hardhat","hat","man","rebuild","remodel","repair","woman","work","worker"]],["👷🏻♀️","woman construction worker: light skin tone",1,[]],["👷🏼♀️","woman construction worker: medium-light skin tone",1,[]],["👷🏽♀️","woman construction worker: medium skin tone",1,[]],["👷🏾♀️","woman construction worker: medium-dark skin tone",1,[]],["👷🏿♀️","woman construction worker: dark skin tone",1,[]],["🫅","person with crown",1,["crown","monarch","noble","person","regal","royal","royalty"]],["🫅🏻","person with crown: light skin tone",1,[]],["🫅🏼","person with crown: medium-light skin tone",1,[]],["🫅🏽","person with crown: medium skin tone",1,[]],["🫅🏾","person with crown: medium-dark skin tone",1,[]],["🫅🏿","person with crown: dark skin tone",1,[]],["🤴","prince",1,["crown","fairy","fairytale","fantasy","king","prince","royal","royalty","tale"]],["🤴🏻","prince: light skin tone",1,[]],["🤴🏼","prince: medium-light skin tone",1,[]],["🤴🏽","prince: medium skin tone",1,[]],["🤴🏾","prince: medium-dark skin tone",1,[]],["🤴🏿","prince: dark skin tone",1,[]],["👸","princess",1,["crown","fairy","fairytale","fantasy","princess","queen","royal","royalty","tale"]],["👸🏻","princess: light skin tone",1,[]],["👸🏼","princess: medium-light skin tone",1,[]],["👸🏽","princess: medium skin tone",1,[]],["👸🏾","princess: medium-dark skin tone",1,[]],["👸🏿","princess: dark skin tone",1,[]],["👳","person wearing turban",1,["person","turban","wearing"]],["👳🏻","person wearing turban: light skin tone",1,[]],["👳🏼","person wearing turban: medium-light skin tone",1,[]],["👳🏽","person wearing turban: medium skin tone",1,[]],["👳🏾","person wearing turban: medium-dark skin tone",1,[]],["👳🏿","person wearing turban: dark skin tone",1,[]],["👳♂️","man wearing turban",1,["man","turban","wearing"]],["👳🏻♂️","man wearing turban: light skin tone",1,[]],["👳🏼♂️","man wearing turban: medium-light skin tone",1,[]],["👳🏽♂️","man wearing turban: medium skin tone",1,[]],["👳🏾♂️","man wearing turban: medium-dark skin tone",1,[]],["👳🏿♂️","man wearing turban: dark skin tone",1,[]],["👳♀️","woman wearing turban",1,["turban","wearing","woman"]],["👳🏻♀️","woman wearing turban: light skin tone",1,[]],["👳🏼♀️","woman wearing turban: medium-light skin tone",1,[]],["👳🏽♀️","woman wearing turban: medium skin tone",1,[]],["👳🏾♀️","woman wearing turban: medium-dark skin tone",1,[]],["👳🏿♀️","woman wearing turban: dark skin tone",1,[]],["👲","person with skullcap",1,["cap","Chinese","gua","guapi","hat","mao","person","pi","skullcap"]],["👲🏻","person with skullcap: light skin tone",1,[]],["👲🏼","person with skullcap: medium-light skin tone",1,[]],["👲🏽","person with skullcap: medium skin tone",1,[]],["👲🏾","person with skullcap: medium-dark skin tone",1,[]],["👲🏿","person with skullcap: dark skin tone",1,[]],["🧕","woman with headscarf",1,["bandana","head","headscarf","hijab","kerchief","mantilla","tichel","woman"]],["🧕🏻","woman with headscarf: light skin tone",1,[]],["🧕🏼","woman with headscarf: medium-light skin tone",1,[]],["🧕🏽","woman with headscarf: medium skin tone",1,[]],["🧕🏾","woman with headscarf: medium-dark skin tone",1,[]],["🧕🏿","woman with headscarf: dark skin tone",1,[]],["🤵","person in tuxedo",1,["formal","person","tuxedo","wedding"]],["🤵🏻","person in tuxedo: light skin tone",1,[]],["🤵🏼","person in tuxedo: medium-light skin tone",1,[]],["🤵🏽","person in tuxedo: medium skin tone",1,[]],["🤵🏾","person in tuxedo: medium-dark skin tone",1,[]],["🤵🏿","person in tuxedo: dark skin tone",1,[]],["🤵♂️","man in tuxedo",1,["formal","groom","man","tuxedo","wedding"]],["🤵🏻♂️","man in tuxedo: light skin tone",1,[]],["🤵🏼♂️","man in tuxedo: medium-light skin tone",1,[]],["🤵🏽♂️","man in tuxedo: medium skin tone",1,[]],["🤵🏾♂️","man in tuxedo: medium-dark skin tone",1,[]],["🤵🏿♂️","man in tuxedo: dark skin tone",1,[]],["🤵♀️","woman in tuxedo",1,["formal","tuxedo","wedding","woman"]],["🤵🏻♀️","woman in tuxedo: light skin tone",1,[]],["🤵🏼♀️","woman in tuxedo: medium-light skin tone",1,[]],["🤵🏽♀️","woman in tuxedo: medium skin tone",1,[]],["🤵🏾♀️","woman in tuxedo: medium-dark skin tone",1,[]],["🤵🏿♀️","woman in tuxedo: dark skin tone",1,[]],["👰","person with veil",1,["person","veil","wedding"]],["👰🏻","person with veil: light skin tone",1,[]],["👰🏼","person with veil: medium-light skin tone",1,[]],["👰🏽","person with veil: medium skin tone",1,[]],["👰🏾","person with veil: medium-dark skin tone",1,[]],["👰🏿","person with veil: dark skin tone",1,[]],["👰♂️","man with veil",1,["man","veil","wedding"]],["👰🏻♂️","man with veil: light skin tone",1,[]],["👰🏼♂️","man with veil: medium-light skin tone",1,[]],["👰🏽♂️","man with veil: medium skin tone",1,[]],["👰🏾♂️","man with veil: medium-dark skin tone",1,[]],["👰🏿♂️","man with veil: dark skin tone",1,[]],["👰♀️","woman with veil",1,["bride","veil","wedding","woman"]],["👰🏻♀️","woman with veil: light skin tone",1,[]],["👰🏼♀️","woman with veil: medium-light skin tone",1,[]],["👰🏽♀️","woman with veil: medium skin tone",1,[]],["👰🏾♀️","woman with veil: medium-dark skin tone",1,[]],["👰🏿♀️","woman with veil: dark skin tone",1,[]],["🤰","pregnant woman",1,["pregnant","woman"]],["🤰🏻","pregnant woman: light skin tone",1,[]],["🤰🏼","pregnant woman: medium-light skin tone",1,[]],["🤰🏽","pregnant woman: medium skin tone",1,[]],["🤰🏾","pregnant woman: medium-dark skin tone",1,[]],["🤰🏿","pregnant woman: dark skin tone",1,[]],["🫃","pregnant man",1,["belly","bloated","full","man","overeat","pregnant"]],["🫃🏻","pregnant man: light skin tone",1,[]],["🫃🏼","pregnant man: medium-light skin tone",1,[]],["🫃🏽","pregnant man: medium skin tone",1,[]],["🫃🏾","pregnant man: medium-dark skin tone",1,[]],["🫃🏿","pregnant man: dark skin tone",1,[]],["🫄","pregnant person",1,["belly","bloated","full","overeat","person","pregnant","stuffed"]],["🫄🏻","pregnant person: light skin tone",1,[]],["🫄🏼","pregnant person: medium-light skin tone",1,[]],["🫄🏽","pregnant person: medium skin tone",1,[]],["🫄🏾","pregnant person: medium-dark skin tone",1,[]],["🫄🏿","pregnant person: dark skin tone",1,[]],["🤱","breast-feeding",1,["baby","breast","breast-feeding","feeding","mom","mother","nursing","woman"]],["🤱🏻","breast-feeding: light skin tone",1,[]],["🤱🏼","breast-feeding: medium-light skin tone",1,[]],["🤱🏽","breast-feeding: medium skin tone",1,[]],["🤱🏾","breast-feeding: medium-dark skin tone",1,[]],["🤱🏿","breast-feeding: dark skin tone",1,[]],["👩🍼","woman feeding baby",1,["baby","feed","feeding","mom","mother","nanny","newborn","nursing","woman"]],["👩🏻🍼","woman feeding baby: light skin tone",1,[]],["👩🏼🍼","woman feeding baby: medium-light skin tone",1,[]],["👩🏽🍼","woman feeding baby: medium skin tone",1,[]],["👩🏾🍼","woman feeding baby: medium-dark skin tone",1,[]],["👩🏿🍼","woman feeding baby: dark skin tone",1,[]],["👨🍼","man feeding baby",1,["baby","dad","father","feed","feeding","man","nanny","newborn","nursing"]],["👨🏻🍼","man feeding baby: light skin tone",1,[]],["👨🏼🍼","man feeding baby: medium-light skin tone",1,[]],["👨🏽🍼","man feeding baby: medium skin tone",1,[]],["👨🏾🍼","man feeding baby: medium-dark skin tone",1,[]],["👨🏿🍼","man feeding baby: dark skin tone",1,[]],["🧑🍼","person feeding baby",1,["baby","feed","feeding","nanny","newborn","nursing","parent"]],["🧑🏻🍼","person feeding baby: light skin tone",1,[]],["🧑🏼🍼","person feeding baby: medium-light skin tone",1,[]],["🧑🏽🍼","person feeding baby: medium skin tone",1,[]],["🧑🏾🍼","person feeding baby: medium-dark skin tone",1,[]],["🧑🏿🍼","person feeding baby: dark skin tone",1,[]],["👼","baby angel",1,["angel","baby","church","face","fairy","fairytale","fantasy","tale"]],["👼🏻","baby angel: light skin tone",1,[]],["👼🏼","baby angel: medium-light skin tone",1,[]],["👼🏽","baby angel: medium skin tone",1,[]],["👼🏾","baby angel: medium-dark skin tone",1,[]],["👼🏿","baby angel: dark skin tone",1,[]],["🎅","Santa Claus",1,["celebration","Christmas","claus","fairy","fantasy","father","holiday","merry","santa","tale","xmas"]],["🎅🏻","Santa Claus: light skin tone",1,[]],["🎅🏼","Santa Claus: medium-light skin tone",1,[]],["🎅🏽","Santa Claus: medium skin tone",1,[]],["🎅🏾","Santa Claus: medium-dark skin tone",1,[]],["🎅🏿","Santa Claus: dark skin tone",1,[]],["🤶","Mrs. Claus",1,["celebration","Christmas","claus","fairy","fantasy","holiday","merry","mother","Mrs","santa","tale","xmas"]],["🤶🏻","Mrs. Claus: light skin tone",1,[]],["🤶🏼","Mrs. Claus: medium-light skin tone",1,[]],["🤶🏽","Mrs. Claus: medium skin tone",1,[]],["🤶🏾","Mrs. Claus: medium-dark skin tone",1,[]],["🤶🏿","Mrs. Claus: dark skin tone",1,[]],["🧑🎄","Mx Claus",1,["celebration","Christmas","claus","fairy","fantasy","holiday","merry","Mx","santa","tale","xmas"]],["🧑🏻🎄","Mx Claus: light skin tone",1,[]],["🧑🏼🎄","Mx Claus: medium-light skin tone",1,[]],["🧑🏽🎄","Mx Claus: medium skin tone",1,[]],["🧑🏾🎄","Mx Claus: medium-dark skin tone",1,[]],["🧑🏿🎄","Mx Claus: dark skin tone",1,[]],["🦸","superhero",1,["good","hero","superhero","superpower"]],["🦸🏻","superhero: light skin tone",1,[]],["🦸🏼","superhero: medium-light skin tone",1,[]],["🦸🏽","superhero: medium skin tone",1,[]],["🦸🏾","superhero: medium-dark skin tone",1,[]],["🦸🏿","superhero: dark skin tone",1,[]],["🦸♂️","man superhero",1,["good","hero","man","superhero","superpower"]],["🦸🏻♂️","man superhero: light skin tone",1,[]],["🦸🏼♂️","man superhero: medium-light skin tone",1,[]],["🦸🏽♂️","man superhero: medium skin tone",1,[]],["🦸🏾♂️","man superhero: medium-dark skin tone",1,[]],["🦸🏿♂️","man superhero: dark skin tone",1,[]],["🦸♀️","woman superhero",1,["good","hero","heroine","superhero","superpower","woman"]],["🦸🏻♀️","woman superhero: light skin tone",1,[]],["🦸🏼♀️","woman superhero: medium-light skin tone",1,[]],["🦸🏽♀️","woman superhero: medium skin tone",1,[]],["🦸🏾♀️","woman superhero: medium-dark skin tone",1,[]],["🦸🏿♀️","woman superhero: dark skin tone",1,[]],["🦹","supervillain",1,["bad","criminal","evil","superpower","supervillain","villain"]],["🦹🏻","supervillain: light skin tone",1,[]],["🦹🏼","supervillain: medium-light skin tone",1,[]],["🦹🏽","supervillain: medium skin tone",1,[]],["🦹🏾","supervillain: medium-dark skin tone",1,[]],["🦹🏿","supervillain: dark skin tone",1,[]],["🦹♂️","man supervillain",1,["bad","criminal","evil","man","superpower","supervillain","villain"]],["🦹🏻♂️","man supervillain: light skin tone",1,[]],["🦹🏼♂️","man supervillain: medium-light skin tone",1,[]],["🦹🏽♂️","man supervillain: medium skin tone",1,[]],["🦹🏾♂️","man supervillain: medium-dark skin tone",1,[]],["🦹🏿♂️","man supervillain: dark skin tone",1,[]],["🦹♀️","woman supervillain",1,["bad","criminal","evil","superpower","supervillain","villain","woman"]],["🦹🏻♀️","woman supervillain: light skin tone",1,[]],["🦹🏼♀️","woman supervillain: medium-light skin tone",1,[]],["🦹🏽♀️","woman supervillain: medium skin tone",1,[]],["🦹🏾♀️","woman supervillain: medium-dark skin tone",1,[]],["🦹🏿♀️","woman supervillain: dark skin tone",1,[]],["🧙","mage",1,["fantasy","mage","magic","play","sorcerer","sorceress","sorcery","spell","summon","witch","wizard"]],["🧙🏻","mage: light skin tone",1,[]],["🧙🏼","mage: medium-light skin tone",1,[]],["🧙🏽","mage: medium skin tone",1,[]],["🧙🏾","mage: medium-dark skin tone",1,[]],["🧙🏿","mage: dark skin tone",1,[]],["🧙♂️","man mage",1,["fantasy","mage","magic","man","play","sorcerer","sorceress","sorcery","spell","summon","witch","wizard"]],["🧙🏻♂️","man mage: light skin tone",1,[]],["🧙🏼♂️","man mage: medium-light skin tone",1,[]],["🧙🏽♂️","man mage: medium skin tone",1,[]],["🧙🏾♂️","man mage: medium-dark skin tone",1,[]],["🧙🏿♂️","man mage: dark skin tone",1,[]],["🧙♀️","woman mage",1,["fantasy","mage","magic","play","sorcerer","sorceress","sorcery","spell","summon","witch","wizard","woman"]],["🧙🏻♀️","woman mage: light skin tone",1,[]],["🧙🏼♀️","woman mage: medium-light skin tone",1,[]],["🧙🏽♀️","woman mage: medium skin tone",1,[]],["🧙🏾♀️","woman mage: medium-dark skin tone",1,[]],["🧙🏿♀️","woman mage: dark skin tone",1,[]],["🧚","fairy",1,["fairy","fairytale","fantasy","myth","person","pixie","tale","wings"]],["🧚🏻","fairy: light skin tone",1,[]],["🧚🏼","fairy: medium-light skin tone",1,[]],["🧚🏽","fairy: medium skin tone",1,[]],["🧚🏾","fairy: medium-dark skin tone",1,[]],["🧚🏿","fairy: dark skin tone",1,[]],["🧚♂️","man fairy",1,["fairy","fairytale","fantasy","man","myth","Oberon","person","pixie","Puck","tale","wings"]],["🧚🏻♂️","man fairy: light skin tone",1,[]],["🧚🏼♂️","man fairy: medium-light skin tone",1,[]],["🧚🏽♂️","man fairy: medium skin tone",1,[]],["🧚🏾♂️","man fairy: medium-dark skin tone",1,[]],["🧚🏿♂️","man fairy: dark skin tone",1,[]],["🧚♀️","woman fairy",1,["fairy","fairytale","fantasy","myth","person","pixie","tale","Titania","wings","woman"]],["🧚🏻♀️","woman fairy: light skin tone",1,[]],["🧚🏼♀️","woman fairy: medium-light skin tone",1,[]],["🧚🏽♀️","woman fairy: medium skin tone",1,[]],["🧚🏾♀️","woman fairy: medium-dark skin tone",1,[]],["🧚🏿♀️","woman fairy: dark skin tone",1,[]],["🧛","vampire",1,["blood","Dracula","fangs","halloween","scary","supernatural","teeth","undead","vampire"]],["🧛🏻","vampire: light skin tone",1,[]],["🧛🏼","vampire: medium-light skin tone",1,[]],["🧛🏽","vampire: medium skin tone",1,[]],["🧛🏾","vampire: medium-dark skin tone",1,[]],["🧛🏿","vampire: dark skin tone",1,[]],["🧛♂️","man vampire",1,["blood","fangs","halloween","man","scary","supernatural","teeth","undead","vampire"]],["🧛🏻♂️","man vampire: light skin tone",1,[]],["🧛🏼♂️","man vampire: medium-light skin tone",1,[]],["🧛🏽♂️","man vampire: medium skin tone",1,[]],["🧛🏾♂️","man vampire: medium-dark skin tone",1,[]],["🧛🏿♂️","man vampire: dark skin tone",1,[]],["🧛♀️","woman vampire",1,["blood","fangs","halloween","scary","supernatural","teeth","undead","vampire","woman"]],["🧛🏻♀️","woman vampire: light skin tone",1,[]],["🧛🏼♀️","woman vampire: medium-light skin tone",1,[]],["🧛🏽♀️","woman vampire: medium skin tone",1,[]],["🧛🏾♀️","woman vampire: medium-dark skin tone",1,[]],["🧛🏿♀️","woman vampire: dark skin tone",1,[]],["🧜","merperson",1,["creature","fairytale","folklore","merperson","ocean","sea","siren","trident"]],["🧜🏻","merperson: light skin tone",1,[]],["🧜🏼","merperson: medium-light skin tone",1,[]],["🧜🏽","merperson: medium skin tone",1,[]],["🧜🏾","merperson: medium-dark skin tone",1,[]],["🧜🏿","merperson: dark skin tone",1,[]],["🧜♂️","merman",1,["creature","fairytale","folklore","merman","Neptune","ocean","Poseidon","sea","siren","trident","Triton"]],["🧜🏻♂️","merman: light skin tone",1,[]],["🧜🏼♂️","merman: medium-light skin tone",1,[]],["🧜🏽♂️","merman: medium skin tone",1,[]],["🧜🏾♂️","merman: medium-dark skin tone",1,[]],["🧜🏿♂️","merman: dark skin tone",1,[]],["🧜♀️","mermaid",1,["creature","fairytale","folklore","mermaid","merwoman","ocean","sea","siren","trident"]],["🧜🏻♀️","mermaid: light skin tone",1,[]],["🧜🏼♀️","mermaid: medium-light skin tone",1,[]],["🧜🏽♀️","mermaid: medium skin tone",1,[]],["🧜🏾♀️","mermaid: medium-dark skin tone",1,[]],["🧜🏿♀️","mermaid: dark skin tone",1,[]],["🧝","elf",1,["elf","elves","enchantment","fantasy","folklore","magic","magical","myth"]],["🧝🏻","elf: light skin tone",1,[]],["🧝🏼","elf: medium-light skin tone",1,[]],["🧝🏽","elf: medium skin tone",1,[]],["🧝🏾","elf: medium-dark skin tone",1,[]],["🧝🏿","elf: dark skin tone",1,[]],["🧝♂️","man elf",1,["elf","elves","enchantment","fantasy","folklore","magic","magical","man","myth"]],["🧝🏻♂️","man elf: light skin tone",1,[]],["🧝🏼♂️","man elf: medium-light skin tone",1,[]],["🧝🏽♂️","man elf: medium skin tone",1,[]],["🧝🏾♂️","man elf: medium-dark skin tone",1,[]],["🧝🏿♂️","man elf: dark skin tone",1,[]],["🧝♀️","woman elf",1,["elf","elves","enchantment","fantasy","folklore","magic","magical","myth","woman"]],["🧝🏻♀️","woman elf: light skin tone",1,[]],["🧝🏼♀️","woman elf: medium-light skin tone",1,[]],["🧝🏽♀️","woman elf: medium skin tone",1,[]],["🧝🏾♀️","woman elf: medium-dark skin tone",1,[]],["🧝🏿♀️","woman elf: dark skin tone",1,[]],["🧞","genie",1,["djinn","fantasy","genie","jinn","lamp","myth","rub","wishes"]],["🧞♂️","man genie",1,["djinn","fantasy","genie","jinn","lamp","man","myth","rub","wishes"]],["🧞♀️","woman genie",1,["djinn","fantasy","genie","jinn","lamp","myth","rub","wishes","woman"]],["🧟","zombie",1,["apocalypse","dead","halloween","horror","scary","undead","walking","zombie"]],["🧟♂️","man zombie",1,["apocalypse","dead","halloween","horror","man","scary","undead","walking","zombie"]],["🧟♀️","woman zombie",1,["apocalypse","dead","halloween","horror","scary","undead","walking","woman","zombie"]],["🧌","troll",1,["fairy","fantasy","monster","tale","troll","trolling"]],["","hairy creature",1,["bigfoot","cryptid","forest","giant","hairy","sasquatch","woodwose","yeti"]],["💆","person getting massage",1,["face","getting","headache","massage","person","relax","relaxing","salon","soothe","spa","tension","therapy","treatment"]],["💆🏻","person getting massage: light skin tone",1,[]],["💆🏼","person getting massage: medium-light skin tone",1,[]],["💆🏽","person getting massage: medium skin tone",1,[]],["💆🏾","person getting massage: medium-dark skin tone",1,[]],["💆🏿","person getting massage: dark skin tone",1,[]],["💆♂️","man getting massage",1,["face","getting","headache","man","massage","relax","relaxing","salon","soothe","spa","tension","therapy","treatment"]],["💆🏻♂️","man getting massage: light skin tone",1,[]],["💆🏼♂️","man getting massage: medium-light skin tone",1,[]],["💆🏽♂️","man getting massage: medium skin tone",1,[]],["💆🏾♂️","man getting massage: medium-dark skin tone",1,[]],["💆🏿♂️","man getting massage: dark skin tone",1,[]],["💆♀️","woman getting massage",1,["face","getting","headache","massage","relax","relaxing","salon","soothe","spa","tension","therapy","treatment","woman"]],["💆🏻♀️","woman getting massage: light skin tone",1,[]],["💆🏼♀️","woman getting massage: medium-light skin tone",1,[]],["💆🏽♀️","woman getting massage: medium skin tone",1,[]],["💆🏾♀️","woman getting massage: medium-dark skin tone",1,[]],["💆🏿♀️","woman getting massage: dark skin tone",1,[]],["💇","person getting haircut",1,["barber","beauty","chop","cosmetology","cut","groom","hair","haircut","parlor","person","shears","style"]],["💇🏻","person getting haircut: light skin tone",1,[]],["💇🏼","person getting haircut: medium-light skin tone",1,[]],["💇🏽","person getting haircut: medium skin tone",1,[]],["💇🏾","person getting haircut: medium-dark skin tone",1,[]],["💇🏿","person getting haircut: dark skin tone",1,[]],["💇♂️","man getting haircut",1,["barber","beauty","chop","cosmetology","cut","groom","hair","haircut","man","parlor","person","shears","style"]],["💇🏻♂️","man getting haircut: light skin tone",1,[]],["💇🏼♂️","man getting haircut: medium-light skin tone",1,[]],["💇🏽♂️","man getting haircut: medium skin tone",1,[]],["💇🏾♂️","man getting haircut: medium-dark skin tone",1,[]],["💇🏿♂️","man getting haircut: dark skin tone",1,[]],["💇♀️","woman getting haircut",1,["barber","beauty","chop","cosmetology","cut","groom","hair","haircut","parlor","person","shears","style","woman"]],["💇🏻♀️","woman getting haircut: light skin tone",1,[]],["💇🏼♀️","woman getting haircut: medium-light skin tone",1,[]],["💇🏽♀️","woman getting haircut: medium skin tone",1,[]],["💇🏾♀️","woman getting haircut: medium-dark skin tone",1,[]],["💇🏿♀️","woman getting haircut: dark skin tone",1,[]],["🚶","person walking",1,["amble","gait","hike","man","pace","pedestrian","person","stride","stroll","walk","walking"]],["🚶🏻","person walking: light skin tone",1,[]],["🚶🏼","person walking: medium-light skin tone",1,[]],["🚶🏽","person walking: medium skin tone",1,[]],["🚶🏾","person walking: medium-dark skin tone",1,[]],["🚶🏿","person walking: dark skin tone",1,[]],["🚶♂️","man walking",1,["amble","gait","hike","man","pace","pedestrian","stride","stroll","walk","walking"]],["🚶🏻♂️","man walking: light skin tone",1,[]],["🚶🏼♂️","man walking: medium-light skin tone",1,[]],["🚶🏽♂️","man walking: medium skin tone",1,[]],["🚶🏾♂️","man walking: medium-dark skin tone",1,[]],["🚶🏿♂️","man walking: dark skin tone",1,[]],["🚶♀️","woman walking",1,["amble","gait","hike","man","pace","pedestrian","stride","stroll","walk","walking","woman"]],["🚶🏻♀️","woman walking: light skin tone",1,[]],["🚶🏼♀️","woman walking: medium-light skin tone",1,[]],["🚶🏽♀️","woman walking: medium skin tone",1,[]],["🚶🏾♀️","woman walking: medium-dark skin tone",1,[]],["🚶🏿♀️","woman walking: dark skin tone",1,[]],["🚶➡️","person walking facing right",1,[]],["🚶🏻➡️","person walking facing right: light skin tone",1,[]],["🚶🏼➡️","person walking facing right: medium-light skin tone",1,[]],["🚶🏽➡️","person walking facing right: medium skin tone",1,[]],["🚶🏾➡️","person walking facing right: medium-dark skin tone",1,[]],["🚶🏿➡️","person walking facing right: dark skin tone",1,[]],["🚶♀️➡️","woman walking facing right",1,[]],["🚶🏻♀️➡️","woman walking facing right: light skin tone",1,[]],["🚶🏼♀️➡️","woman walking facing right: medium-light skin tone",1,[]],["🚶🏽♀️➡️","woman walking facing right: medium skin tone",1,[]],["🚶🏾♀️➡️","woman walking facing right: medium-dark skin tone",1,[]],["🚶🏿♀️➡️","woman walking facing right: dark skin tone",1,[]],["🚶♂️➡️","man walking facing right",1,[]],["🚶🏻♂️➡️","man walking facing right: light skin tone",1,[]],["🚶🏼♂️➡️","man walking facing right: medium-light skin tone",1,[]],["🚶🏽♂️➡️","man walking facing right: medium skin tone",1,[]],["🚶🏾♂️➡️","man walking facing right: medium-dark skin tone",1,[]],["🚶🏿♂️➡️","man walking facing right: dark skin tone",1,[]],["🧍","person standing",1,["person","stand","standing"]],["🧍🏻","person standing: light skin tone",1,[]],["🧍🏼","person standing: medium-light skin tone",1,[]],["🧍🏽","person standing: medium skin tone",1,[]],["🧍🏾","person standing: medium-dark skin tone",1,[]],["🧍🏿","person standing: dark skin tone",1,[]],["🧍♂️","man standing",1,["man","stand","standing"]],["🧍🏻♂️","man standing: light skin tone",1,[]],["🧍🏼♂️","man standing: medium-light skin tone",1,[]],["🧍🏽♂️","man standing: medium skin tone",1,[]],["🧍🏾♂️","man standing: medium-dark skin tone",1,[]],["🧍🏿♂️","man standing: dark skin tone",1,[]],["🧍♀️","woman standing",1,["stand","standing","woman"]],["🧍🏻♀️","woman standing: light skin tone",1,[]],["🧍🏼♀️","woman standing: medium-light skin tone",1,[]],["🧍🏽♀️","woman standing: medium skin tone",1,[]],["🧍🏾♀️","woman standing: medium-dark skin tone",1,[]],["🧍🏿♀️","woman standing: dark skin tone",1,[]],["🧎","person kneeling",1,["kneel","kneeling","knees","person"]],["🧎🏻","person kneeling: light skin tone",1,[]],["🧎🏼","person kneeling: medium-light skin tone",1,[]],["🧎🏽","person kneeling: medium skin tone",1,[]],["🧎🏾","person kneeling: medium-dark skin tone",1,[]],["🧎🏿","person kneeling: dark skin tone",1,[]],["🧎♂️","man kneeling",1,["kneel","kneeling","knees","man"]],["🧎🏻♂️","man kneeling: light skin tone",1,[]],["🧎🏼♂️","man kneeling: medium-light skin tone",1,[]],["🧎🏽♂️","man kneeling: medium skin tone",1,[]],["🧎🏾♂️","man kneeling: medium-dark skin tone",1,[]],["🧎🏿♂️","man kneeling: dark skin tone",1,[]],["🧎♀️","woman kneeling",1,["kneel","kneeling","knees","woman"]],["🧎🏻♀️","woman kneeling: light skin tone",1,[]],["🧎🏼♀️","woman kneeling: medium-light skin tone",1,[]],["🧎🏽♀️","woman kneeling: medium skin tone",1,[]],["🧎🏾♀️","woman kneeling: medium-dark skin tone",1,[]],["🧎🏿♀️","woman kneeling: dark skin tone",1,[]],["🧎➡️","person kneeling facing right",1,[]],["🧎🏻➡️","person kneeling facing right: light skin tone",1,[]],["🧎🏼➡️","person kneeling facing right: medium-light skin tone",1,[]],["🧎🏽➡️","person kneeling facing right: medium skin tone",1,[]],["🧎🏾➡️","person kneeling facing right: medium-dark skin tone",1,[]],["🧎🏿➡️","person kneeling facing right: dark skin tone",1,[]],["🧎♀️➡️","woman kneeling facing right",1,[]],["🧎🏻♀️➡️","woman kneeling facing right: light skin tone",1,[]],["🧎🏼♀️➡️","woman kneeling facing right: medium-light skin tone",1,[]],["🧎🏽♀️➡️","woman kneeling facing right: medium skin tone",1,[]],["🧎🏾♀️➡️","woman kneeling facing right: medium-dark skin tone",1,[]],["🧎🏿♀️➡️","woman kneeling facing right: dark skin tone",1,[]],["🧎♂️➡️","man kneeling facing right",1,[]],["🧎🏻♂️➡️","man kneeling facing right: light skin tone",1,[]],["🧎🏼♂️➡️","man kneeling facing right: medium-light skin tone",1,[]],["🧎🏽♂️➡️","man kneeling facing right: medium skin tone",1,[]],["🧎🏾♂️➡️","man kneeling facing right: medium-dark skin tone",1,[]],["🧎🏿♂️➡️","man kneeling facing right: dark skin tone",1,[]],["🧑🦯","person with white cane",1,["accessibility","blind","cane","person","probing","white"]],["🧑🏻🦯","person with white cane: light skin tone",1,[]],["🧑🏼🦯","person with white cane: medium-light skin tone",1,[]],["🧑🏽🦯","person with white cane: medium skin tone",1,[]],["🧑🏾🦯","person with white cane: medium-dark skin tone",1,[]],["🧑🏿🦯","person with white cane: dark skin tone",1,[]],["🧑🦯➡️","person with white cane facing right",1,[]],["🧑🏻🦯➡️","person with white cane facing right: light skin tone",1,[]],["🧑🏼🦯➡️","person with white cane facing right: medium-light skin tone",1,[]],["🧑🏽🦯➡️","person with white cane facing right: medium skin tone",1,[]],["🧑🏾🦯➡️","person with white cane facing right: medium-dark skin tone",1,[]],["🧑🏿🦯➡️","person with white cane facing right: dark skin tone",1,[]],["👨🦯","man with white cane",1,["accessibility","blind","cane","man","probing","white"]],["👨🏻🦯","man with white cane: light skin tone",1,[]],["👨🏼🦯","man with white cane: medium-light skin tone",1,[]],["👨🏽🦯","man with white cane: medium skin tone",1,[]],["👨🏾🦯","man with white cane: medium-dark skin tone",1,[]],["👨🏿🦯","man with white cane: dark skin tone",1,[]],["👨🦯➡️","man with white cane facing right",1,[]],["👨🏻🦯➡️","man with white cane facing right: light skin tone",1,[]],["👨🏼🦯➡️","man with white cane facing right: medium-light skin tone",1,[]],["👨🏽🦯➡️","man with white cane facing right: medium skin tone",1,[]],["👨🏾🦯➡️","man with white cane facing right: medium-dark skin tone",1,[]],["👨🏿🦯➡️","man with white cane facing right: dark skin tone",1,[]],["👩🦯","woman with white cane",1,["accessibility","blind","cane","probing","white","woman"]],["👩🏻🦯","woman with white cane: light skin tone",1,[]],["👩🏼🦯","woman with white cane: medium-light skin tone",1,[]],["👩🏽🦯","woman with white cane: medium skin tone",1,[]],["👩🏾🦯","woman with white cane: medium-dark skin tone",1,[]],["👩🏿🦯","woman with white cane: dark skin tone",1,[]],["👩🦯➡️","woman with white cane facing right",1,[]],["👩🏻🦯➡️","woman with white cane facing right: light skin tone",1,[]],["👩🏼🦯➡️","woman with white cane facing right: medium-light skin tone",1,[]],["👩🏽🦯➡️","woman with white cane facing right: medium skin tone",1,[]],["👩🏾🦯➡️","woman with white cane facing right: medium-dark skin tone",1,[]],["👩🏿🦯➡️","woman with white cane facing right: dark skin tone",1,[]],["🧑🦼","person in motorized wheelchair",1,["accessibility","motorized","person","wheelchair"]],["🧑🏻🦼","person in motorized wheelchair: light skin tone",1,[]],["🧑🏼🦼","person in motorized wheelchair: medium-light skin tone",1,[]],["🧑🏽🦼","person in motorized wheelchair: medium skin tone",1,[]],["🧑🏾🦼","person in motorized wheelchair: medium-dark skin tone",1,[]],["🧑🏿🦼","person in motorized wheelchair: dark skin tone",1,[]],["🧑🦼➡️","person in motorized wheelchair facing right",1,[]],["🧑🏻🦼➡️","person in motorized wheelchair facing right: light skin tone",1,[]],["🧑🏼🦼➡️","person in motorized wheelchair facing right: medium-light skin tone",1,[]],["🧑🏽🦼➡️","person in motorized wheelchair facing right: medium skin tone",1,[]],["🧑🏾🦼➡️","person in motorized wheelchair facing right: medium-dark skin tone",1,[]],["🧑🏿🦼➡️","person in motorized wheelchair facing right: dark skin tone",1,[]],["👨🦼","man in motorized wheelchair",1,["accessibility","man","motorized","wheelchair"]],["👨🏻🦼","man in motorized wheelchair: light skin tone",1,[]],["👨🏼🦼","man in motorized wheelchair: medium-light skin tone",1,[]],["👨🏽🦼","man in motorized wheelchair: medium skin tone",1,[]],["👨🏾🦼","man in motorized wheelchair: medium-dark skin tone",1,[]],["👨🏿🦼","man in motorized wheelchair: dark skin tone",1,[]],["👨🦼➡️","man in motorized wheelchair facing right",1,[]],["👨🏻🦼➡️","man in motorized wheelchair facing right: light skin tone",1,[]],["👨🏼🦼➡️","man in motorized wheelchair facing right: medium-light skin tone",1,[]],["👨🏽🦼➡️","man in motorized wheelchair facing right: medium skin tone",1,[]],["👨🏾🦼➡️","man in motorized wheelchair facing right: medium-dark skin tone",1,[]],["👨🏿🦼➡️","man in motorized wheelchair facing right: dark skin tone",1,[]],["👩🦼","woman in motorized wheelchair",1,["accessibility","motorized","wheelchair","woman"]],["👩🏻🦼","woman in motorized wheelchair: light skin tone",1,[]],["👩🏼🦼","woman in motorized wheelchair: medium-light skin tone",1,[]],["👩🏽🦼","woman in motorized wheelchair: medium skin tone",1,[]],["👩🏾🦼","woman in motorized wheelchair: medium-dark skin tone",1,[]],["👩🏿🦼","woman in motorized wheelchair: dark skin tone",1,[]],["👩🦼➡️","woman in motorized wheelchair facing right",1,[]],["👩🏻🦼➡️","woman in motorized wheelchair facing right: light skin tone",1,[]],["👩🏼🦼➡️","woman in motorized wheelchair facing right: medium-light skin tone",1,[]],["👩🏽🦼➡️","woman in motorized wheelchair facing right: medium skin tone",1,[]],["👩🏾🦼➡️","woman in motorized wheelchair facing right: medium-dark skin tone",1,[]],["👩🏿🦼➡️","woman in motorized wheelchair facing right: dark skin tone",1,[]],["🧑🦽","person in manual wheelchair",1,["accessibility","manual","person","wheelchair"]],["🧑🏻🦽","person in manual wheelchair: light skin tone",1,[]],["🧑🏼🦽","person in manual wheelchair: medium-light skin tone",1,[]],["🧑🏽🦽","person in manual wheelchair: medium skin tone",1,[]],["🧑🏾🦽","person in manual wheelchair: medium-dark skin tone",1,[]],["🧑🏿🦽","person in manual wheelchair: dark skin tone",1,[]],["🧑🦽➡️","person in manual wheelchair facing right",1,[]],["🧑🏻🦽➡️","person in manual wheelchair facing right: light skin tone",1,[]],["🧑🏼🦽➡️","person in manual wheelchair facing right: medium-light skin tone",1,[]],["🧑🏽🦽➡️","person in manual wheelchair facing right: medium skin tone",1,[]],["🧑🏾🦽➡️","person in manual wheelchair facing right: medium-dark skin tone",1,[]],["🧑🏿🦽➡️","person in manual wheelchair facing right: dark skin tone",1,[]],["👨🦽","man in manual wheelchair",1,["accessibility","man","manual","wheelchair"]],["👨🏻🦽","man in manual wheelchair: light skin tone",1,[]],["👨🏼🦽","man in manual wheelchair: medium-light skin tone",1,[]],["👨🏽🦽","man in manual wheelchair: medium skin tone",1,[]],["👨🏾🦽","man in manual wheelchair: medium-dark skin tone",1,[]],["👨🏿🦽","man in manual wheelchair: dark skin tone",1,[]],["👨🦽➡️","man in manual wheelchair facing right",1,[]],["👨🏻🦽➡️","man in manual wheelchair facing right: light skin tone",1,[]],["👨🏼🦽➡️","man in manual wheelchair facing right: medium-light skin tone",1,[]],["👨🏽🦽➡️","man in manual wheelchair facing right: medium skin tone",1,[]],["👨🏾🦽➡️","man in manual wheelchair facing right: medium-dark skin tone",1,[]],["👨🏿🦽➡️","man in manual wheelchair facing right: dark skin tone",1,[]],["👩🦽","woman in manual wheelchair",1,["accessibility","manual","wheelchair","woman"]],["👩🏻🦽","woman in manual wheelchair: light skin tone",1,[]],["👩🏼🦽","woman in manual wheelchair: medium-light skin tone",1,[]],["👩🏽🦽","woman in manual wheelchair: medium skin tone",1,[]],["👩🏾🦽","woman in manual wheelchair: medium-dark skin tone",1,[]],["👩🏿🦽","woman in manual wheelchair: dark skin tone",1,[]],["👩🦽➡️","woman in manual wheelchair facing right",1,[]],["👩🏻🦽➡️","woman in manual wheelchair facing right: light skin tone",1,[]],["👩🏼🦽➡️","woman in manual wheelchair facing right: medium-light skin tone",1,[]],["👩🏽🦽➡️","woman in manual wheelchair facing right: medium skin tone",1,[]],["👩🏾🦽➡️","woman in manual wheelchair facing right: medium-dark skin tone",1,[]],["👩🏿🦽➡️","woman in manual wheelchair facing right: dark skin tone",1,[]],["🏃","person running",1,["fast","hurry","marathon","move","person","quick","race","racing","run","rush","speed"]],["🏃🏻","person running: light skin tone",1,[]],["🏃🏼","person running: medium-light skin tone",1,[]],["🏃🏽","person running: medium skin tone",1,[]],["🏃🏾","person running: medium-dark skin tone",1,[]],["🏃🏿","person running: dark skin tone",1,[]],["🏃♂️","man running",1,["fast","hurry","man","marathon","move","quick","race","racing","run","rush","speed"]],["🏃🏻♂️","man running: light skin tone",1,[]],["🏃🏼♂️","man running: medium-light skin tone",1,[]],["🏃🏽♂️","man running: medium skin tone",1,[]],["🏃🏾♂️","man running: medium-dark skin tone",1,[]],["🏃🏿♂️","man running: dark skin tone",1,[]],["🏃♀️","woman running",1,["fast","hurry","marathon","move","quick","race","racing","run","rush","speed","woman"]],["🏃🏻♀️","woman running: light skin tone",1,[]],["🏃🏼♀️","woman running: medium-light skin tone",1,[]],["🏃🏽♀️","woman running: medium skin tone",1,[]],["🏃🏾♀️","woman running: medium-dark skin tone",1,[]],["🏃🏿♀️","woman running: dark skin tone",1,[]],["🏃➡️","person running facing right",1,[]],["🏃🏻➡️","person running facing right: light skin tone",1,[]],["🏃🏼➡️","person running facing right: medium-light skin tone",1,[]],["🏃🏽➡️","person running facing right: medium skin tone",1,[]],["🏃🏾➡️","person running facing right: medium-dark skin tone",1,[]],["🏃🏿➡️","person running facing right: dark skin tone",1,[]],["🏃♀️➡️","woman running facing right",1,[]],["🏃🏻♀️➡️","woman running facing right: light skin tone",1,[]],["🏃🏼♀️➡️","woman running facing right: medium-light skin tone",1,[]],["🏃🏽♀️➡️","woman running facing right: medium skin tone",1,[]],["🏃🏾♀️➡️","woman running facing right: medium-dark skin tone",1,[]],["🏃🏿♀️➡️","woman running facing right: dark skin tone",1,[]],["🏃♂️➡️","man running facing right",1,[]],["🏃🏻♂️➡️","man running facing right: light skin tone",1,[]],["🏃🏼♂️➡️","man running facing right: medium-light skin tone",1,[]],["🏃🏽♂️➡️","man running facing right: medium skin tone",1,[]],["🏃🏾♂️➡️","man running facing right: medium-dark skin tone",1,[]],["🏃🏿♂️➡️","man running facing right: dark skin tone",1,[]],["🧑🩰","ballet dancer",1,["ballet","dancer"]],["🧑🏻🩰","ballet dancer: light skin tone",1,[]],["🧑🏼🩰","ballet dancer: medium-light skin tone",1,[]],["🧑🏽🩰","ballet dancer: medium skin tone",1,[]],["🧑🏾🩰","ballet dancer: medium-dark skin tone",1,[]],["🧑🏿🩰","ballet dancer: dark skin tone",1,[]],["💃","woman dancing",1,["dance","dancer","dancing","elegant","festive","flair","flamenco","groove","let’s","salsa","tango","woman"]],["💃🏻","woman dancing: light skin tone",1,[]],["💃🏼","woman dancing: medium-light skin tone",1,[]],["💃🏽","woman dancing: medium skin tone",1,[]],["💃🏾","woman dancing: medium-dark skin tone",1,[]],["💃🏿","woman dancing: dark skin tone",1,[]],["🕺","man dancing",1,["dance","dancer","dancing","elegant","festive","flair","flamenco","groove","let’s","man","salsa","tango"]],["🕺🏻","man dancing: light skin tone",1,[]],["🕺🏼","man dancing: medium-light skin tone",1,[]],["🕺🏽","man dancing: medium skin tone",1,[]],["🕺🏾","man dancing: medium-dark skin tone",1,[]],["🕺🏿","man dancing: dark skin tone",1,[]],["🕴️","person in suit levitating",1,["business","levitating","person","suit"]],["🕴🏻","person in suit levitating: light skin tone",1,[]],["🕴🏼","person in suit levitating: medium-light skin tone",1,[]],["🕴🏽","person in suit levitating: medium skin tone",1,[]],["🕴🏾","person in suit levitating: medium-dark skin tone",1,[]],["🕴🏿","person in suit levitating: dark skin tone",1,[]],["👯","people with bunny ears",1,["bestie","bff","bunny","counterpart","dancer","double","ear","identical","pair","party","partying","people","soulmate","twin","twinsies"]],["👯🏻","people with bunny ears: light skin tone",1,[]],["👯🏼","people with bunny ears: medium-light skin tone",1,[]],["👯🏽","people with bunny ears: medium skin tone",1,[]],["👯🏾","people with bunny ears: medium-dark skin tone",1,[]],["👯🏿","people with bunny ears: dark skin tone",1,[]],["👯♂️","men with bunny ears",1,["bestie","bff","bunny","counterpart","dancer","double","ear","identical","men","pair","party","partying","people","soulmate","twin","twinsies"]],["👯🏻♂️","men with bunny ears: light skin tone",1,[]],["👯🏼♂️","men with bunny ears: medium-light skin tone",1,[]],["👯🏽♂️","men with bunny ears: medium skin tone",1,[]],["👯🏾♂️","men with bunny ears: medium-dark skin tone",1,[]],["👯🏿♂️","men with bunny ears: dark skin tone",1,[]],["👯♀️","women with bunny ears",1,["bestie","bff","bunny","counterpart","dancer","double","ear","identical","pair","party","partying","people","soulmate","twin","twinsies","women"]],["👯🏻♀️","women with bunny ears: light skin tone",1,[]],["👯🏼♀️","women with bunny ears: medium-light skin tone",1,[]],["👯🏽♀️","women with bunny ears: medium skin tone",1,[]],["👯🏾♀️","women with bunny ears: medium-dark skin tone",1,[]],["👯🏿♀️","women with bunny ears: dark skin tone",1,[]],["🧑🏻🐰🧑🏼","people with bunny ears: light skin tone, medium-light skin tone",1,[]],["🧑🏻🐰🧑🏽","people with bunny ears: light skin tone, medium skin tone",1,[]],["🧑🏻🐰🧑🏾","people with bunny ears: light skin tone, medium-dark skin tone",1,[]],["🧑🏻🐰🧑🏿","people with bunny ears: light skin tone, dark skin tone",1,[]],["🧑🏼🐰🧑🏻","people with bunny ears: medium-light skin tone, light skin tone",1,[]],["🧑🏼🐰🧑🏽","people with bunny ears: medium-light skin tone, medium skin tone",1,[]],["🧑🏼🐰🧑🏾","people with bunny ears: medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼🐰🧑🏿","people with bunny ears: medium-light skin tone, dark skin tone",1,[]],["🧑🏽🐰🧑🏻","people with bunny ears: medium skin tone, light skin tone",1,[]],["🧑🏽🐰🧑🏼","people with bunny ears: medium skin tone, medium-light skin tone",1,[]],["🧑🏽🐰🧑🏾","people with bunny ears: medium skin tone, medium-dark skin tone",1,[]],["🧑🏽🐰🧑🏿","people with bunny ears: medium skin tone, dark skin tone",1,[]],["🧑🏾🐰🧑🏻","people with bunny ears: medium-dark skin tone, light skin tone",1,[]],["🧑🏾🐰🧑🏼","people with bunny ears: medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾🐰🧑🏽","people with bunny ears: medium-dark skin tone, medium skin tone",1,[]],["🧑🏾🐰🧑🏿","people with bunny ears: medium-dark skin tone, dark skin tone",1,[]],["🧑🏿🐰🧑🏻","people with bunny ears: dark skin tone, light skin tone",1,[]],["🧑🏿🐰🧑🏼","people with bunny ears: dark skin tone, medium-light skin tone",1,[]],["🧑🏿🐰🧑🏽","people with bunny ears: dark skin tone, medium skin tone",1,[]],["🧑🏿🐰🧑🏾","people with bunny ears: dark skin tone, medium-dark skin tone",1,[]],["👨🏻🐰👨🏼","men with bunny ears: light skin tone, medium-light skin tone",1,[]],["👨🏻🐰👨🏽","men with bunny ears: light skin tone, medium skin tone",1,[]],["👨🏻🐰👨🏾","men with bunny ears: light skin tone, medium-dark skin tone",1,[]],["👨🏻🐰👨🏿","men with bunny ears: light skin tone, dark skin tone",1,[]],["👨🏼🐰👨🏻","men with bunny ears: medium-light skin tone, light skin tone",1,[]],["👨🏼🐰👨🏽","men with bunny ears: medium-light skin tone, medium skin tone",1,[]],["👨🏼🐰👨🏾","men with bunny ears: medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼🐰👨🏿","men with bunny ears: medium-light skin tone, dark skin tone",1,[]],["👨🏽🐰👨🏻","men with bunny ears: medium skin tone, light skin tone",1,[]],["👨🏽🐰👨🏼","men with bunny ears: medium skin tone, medium-light skin tone",1,[]],["👨🏽🐰👨🏾","men with bunny ears: medium skin tone, medium-dark skin tone",1,[]],["👨🏽🐰👨🏿","men with bunny ears: medium skin tone, dark skin tone",1,[]],["👨🏾🐰👨🏻","men with bunny ears: medium-dark skin tone, light skin tone",1,[]],["👨🏾🐰👨🏼","men with bunny ears: medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾🐰👨🏽","men with bunny ears: medium-dark skin tone, medium skin tone",1,[]],["👨🏾🐰👨🏿","men with bunny ears: medium-dark skin tone, dark skin tone",1,[]],["👨🏿🐰👨🏻","men with bunny ears: dark skin tone, light skin tone",1,[]],["👨🏿🐰👨🏼","men with bunny ears: dark skin tone, medium-light skin tone",1,[]],["👨🏿🐰👨🏽","men with bunny ears: dark skin tone, medium skin tone",1,[]],["👨🏿🐰👨🏾","men with bunny ears: dark skin tone, medium-dark skin tone",1,[]],["👩🏻🐰👩🏼","women with bunny ears: light skin tone, medium-light skin tone",1,[]],["👩🏻🐰👩🏽","women with bunny ears: light skin tone, medium skin tone",1,[]],["👩🏻🐰👩🏾","women with bunny ears: light skin tone, medium-dark skin tone",1,[]],["👩🏻🐰👩🏿","women with bunny ears: light skin tone, dark skin tone",1,[]],["👩🏼🐰👩🏻","women with bunny ears: medium-light skin tone, light skin tone",1,[]],["👩🏼🐰👩🏽","women with bunny ears: medium-light skin tone, medium skin tone",1,[]],["👩🏼🐰👩🏾","women with bunny ears: medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼🐰👩🏿","women with bunny ears: medium-light skin tone, dark skin tone",1,[]],["👩🏽🐰👩🏻","women with bunny ears: medium skin tone, light skin tone",1,[]],["👩🏽🐰👩🏼","women with bunny ears: medium skin tone, medium-light skin tone",1,[]],["👩🏽🐰👩🏾","women with bunny ears: medium skin tone, medium-dark skin tone",1,[]],["👩🏽🐰👩🏿","women with bunny ears: medium skin tone, dark skin tone",1,[]],["👩🏾🐰👩🏻","women with bunny ears: medium-dark skin tone, light skin tone",1,[]],["👩🏾🐰👩🏼","women with bunny ears: medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾🐰👩🏽","women with bunny ears: medium-dark skin tone, medium skin tone",1,[]],["👩🏾🐰👩🏿","women with bunny ears: medium-dark skin tone, dark skin tone",1,[]],["👩🏿🐰👩🏻","women with bunny ears: dark skin tone, light skin tone",1,[]],["👩🏿🐰👩🏼","women with bunny ears: dark skin tone, medium-light skin tone",1,[]],["👩🏿🐰👩🏽","women with bunny ears: dark skin tone, medium skin tone",1,[]],["👩🏿🐰👩🏾","women with bunny ears: dark skin tone, medium-dark skin tone",1,[]],["🧖","person in steamy room",1,["day","luxurious","pamper","person","relax","room","sauna","spa","steam","steambath","unwind"]],["🧖🏻","person in steamy room: light skin tone",1,[]],["🧖🏼","person in steamy room: medium-light skin tone",1,[]],["🧖🏽","person in steamy room: medium skin tone",1,[]],["🧖🏾","person in steamy room: medium-dark skin tone",1,[]],["🧖🏿","person in steamy room: dark skin tone",1,[]],["🧖♂️","man in steamy room",1,["day","luxurious","man","pamper","relax","room","sauna","spa","steam","steambath","unwind"]],["🧖🏻♂️","man in steamy room: light skin tone",1,[]],["🧖🏼♂️","man in steamy room: medium-light skin tone",1,[]],["🧖🏽♂️","man in steamy room: medium skin tone",1,[]],["🧖🏾♂️","man in steamy room: medium-dark skin tone",1,[]],["🧖🏿♂️","man in steamy room: dark skin tone",1,[]],["🧖♀️","woman in steamy room",1,["day","luxurious","pamper","relax","room","sauna","spa","steam","steambath","unwind","woman"]],["🧖🏻♀️","woman in steamy room: light skin tone",1,[]],["🧖🏼♀️","woman in steamy room: medium-light skin tone",1,[]],["🧖🏽♀️","woman in steamy room: medium skin tone",1,[]],["🧖🏾♀️","woman in steamy room: medium-dark skin tone",1,[]],["🧖🏿♀️","woman in steamy room: dark skin tone",1,[]],["🧗","person climbing",1,["climb","climber","climbing","mountain","person","rock","scale","up"]],["🧗🏻","person climbing: light skin tone",1,[]],["🧗🏼","person climbing: medium-light skin tone",1,[]],["🧗🏽","person climbing: medium skin tone",1,[]],["🧗🏾","person climbing: medium-dark skin tone",1,[]],["🧗🏿","person climbing: dark skin tone",1,[]],["🧗♂️","man climbing",1,["climb","climber","climbing","man","mountain","rock","scale","up"]],["🧗🏻♂️","man climbing: light skin tone",1,[]],["🧗🏼♂️","man climbing: medium-light skin tone",1,[]],["🧗🏽♂️","man climbing: medium skin tone",1,[]],["🧗🏾♂️","man climbing: medium-dark skin tone",1,[]],["🧗🏿♂️","man climbing: dark skin tone",1,[]],["🧗♀️","woman climbing",1,["climb","climber","climbing","mountain","rock","scale","up","woman"]],["🧗🏻♀️","woman climbing: light skin tone",1,[]],["🧗🏼♀️","woman climbing: medium-light skin tone",1,[]],["🧗🏽♀️","woman climbing: medium skin tone",1,[]],["🧗🏾♀️","woman climbing: medium-dark skin tone",1,[]],["🧗🏿♀️","woman climbing: dark skin tone",1,[]],["🤺","person fencing",1,["fencer","fencing","person","sword"]],["🏇","horse racing",1,["horse","jockey","racehorse","racing","riding","sport"]],["🏇🏻","horse racing: light skin tone",1,[]],["🏇🏼","horse racing: medium-light skin tone",1,[]],["🏇🏽","horse racing: medium skin tone",1,[]],["🏇🏾","horse racing: medium-dark skin tone",1,[]],["🏇🏿","horse racing: dark skin tone",1,[]],["⛷️","skier",1,["ski","skier","snow"]],["🏂","snowboarder",1,["ski","snow","snowboard","snowboarder","sport"]],["🏂🏻","snowboarder: light skin tone",1,[]],["🏂🏼","snowboarder: medium-light skin tone",1,[]],["🏂🏽","snowboarder: medium skin tone",1,[]],["🏂🏾","snowboarder: medium-dark skin tone",1,[]],["🏂🏿","snowboarder: dark skin tone",1,[]],["🏌️","person golfing",1,["ball","birdie","caddy","driving","golf","golfing","green","person","pga","putt","range","tee"]],["🏌🏻","person golfing: light skin tone",1,[]],["🏌🏼","person golfing: medium-light skin tone",1,[]],["🏌🏽","person golfing: medium skin tone",1,[]],["🏌🏾","person golfing: medium-dark skin tone",1,[]],["🏌🏿","person golfing: dark skin tone",1,[]],["🏌️♂️","man golfing",1,["ball","birdie","caddy","driving","golf","golfing","green","man","pga","putt","range","tee"]],["🏌🏻♂️","man golfing: light skin tone",1,[]],["🏌🏼♂️","man golfing: medium-light skin tone",1,[]],["🏌🏽♂️","man golfing: medium skin tone",1,[]],["🏌🏾♂️","man golfing: medium-dark skin tone",1,[]],["🏌🏿♂️","man golfing: dark skin tone",1,[]],["🏌️♀️","woman golfing",1,["ball","birdie","caddy","driving","golf","golfing","green","pga","putt","range","tee","woman"]],["🏌🏻♀️","woman golfing: light skin tone",1,[]],["🏌🏼♀️","woman golfing: medium-light skin tone",1,[]],["🏌🏽♀️","woman golfing: medium skin tone",1,[]],["🏌🏾♀️","woman golfing: medium-dark skin tone",1,[]],["🏌🏿♀️","woman golfing: dark skin tone",1,[]],["🏄","person surfing",1,["beach","ocean","person","sport","surf","surfer","surfing","swell","waves"]],["🏄🏻","person surfing: light skin tone",1,[]],["🏄🏼","person surfing: medium-light skin tone",1,[]],["🏄🏽","person surfing: medium skin tone",1,[]],["🏄🏾","person surfing: medium-dark skin tone",1,[]],["🏄🏿","person surfing: dark skin tone",1,[]],["🏄♂️","man surfing",1,["beach","man","ocean","sport","surf","surfer","surfing","swell","waves"]],["🏄🏻♂️","man surfing: light skin tone",1,[]],["🏄🏼♂️","man surfing: medium-light skin tone",1,[]],["🏄🏽♂️","man surfing: medium skin tone",1,[]],["🏄🏾♂️","man surfing: medium-dark skin tone",1,[]],["🏄🏿♂️","man surfing: dark skin tone",1,[]],["🏄♀️","woman surfing",1,["beach","ocean","person","sport","surf","surfer","surfing","swell","waves"]],["🏄🏻♀️","woman surfing: light skin tone",1,[]],["🏄🏼♀️","woman surfing: medium-light skin tone",1,[]],["🏄🏽♀️","woman surfing: medium skin tone",1,[]],["🏄🏾♀️","woman surfing: medium-dark skin tone",1,[]],["🏄🏿♀️","woman surfing: dark skin tone",1,[]],["🚣","person rowing boat",1,["boat","canoe","cruise","fishing","lake","oar","paddle","person","raft","river","row","rowboat","rowing"]],["🚣🏻","person rowing boat: light skin tone",1,[]],["🚣🏼","person rowing boat: medium-light skin tone",1,[]],["🚣🏽","person rowing boat: medium skin tone",1,[]],["🚣🏾","person rowing boat: medium-dark skin tone",1,[]],["🚣🏿","person rowing boat: dark skin tone",1,[]],["🚣♂️","man rowing boat",1,["boat","canoe","cruise","fishing","lake","man","oar","paddle","raft","river","row","rowboat","rowing"]],["🚣🏻♂️","man rowing boat: light skin tone",1,[]],["🚣🏼♂️","man rowing boat: medium-light skin tone",1,[]],["🚣🏽♂️","man rowing boat: medium skin tone",1,[]],["🚣🏾♂️","man rowing boat: medium-dark skin tone",1,[]],["🚣🏿♂️","man rowing boat: dark skin tone",1,[]],["🚣♀️","woman rowing boat",1,["boat","canoe","cruise","fishing","lake","oar","paddle","raft","river","row","rowboat","rowing","woman"]],["🚣🏻♀️","woman rowing boat: light skin tone",1,[]],["🚣🏼♀️","woman rowing boat: medium-light skin tone",1,[]],["🚣🏽♀️","woman rowing boat: medium skin tone",1,[]],["🚣🏾♀️","woman rowing boat: medium-dark skin tone",1,[]],["🚣🏿♀️","woman rowing boat: dark skin tone",1,[]],["🏊","person swimming",1,["freestyle","person","sport","swim","swimmer","swimming","triathlon"]],["🏊🏻","person swimming: light skin tone",1,[]],["🏊🏼","person swimming: medium-light skin tone",1,[]],["🏊🏽","person swimming: medium skin tone",1,[]],["🏊🏾","person swimming: medium-dark skin tone",1,[]],["🏊🏿","person swimming: dark skin tone",1,[]],["🏊♂️","man swimming",1,["freestyle","man","sport","swim","swimmer","swimming","triathlon"]],["🏊🏻♂️","man swimming: light skin tone",1,[]],["🏊🏼♂️","man swimming: medium-light skin tone",1,[]],["🏊🏽♂️","man swimming: medium skin tone",1,[]],["🏊🏾♂️","man swimming: medium-dark skin tone",1,[]],["🏊🏿♂️","man swimming: dark skin tone",1,[]],["🏊♀️","woman swimming",1,["freestyle","man","sport","swim","swimmer","swimming","triathlon"]],["🏊🏻♀️","woman swimming: light skin tone",1,[]],["🏊🏼♀️","woman swimming: medium-light skin tone",1,[]],["🏊🏽♀️","woman swimming: medium skin tone",1,[]],["🏊🏾♀️","woman swimming: medium-dark skin tone",1,[]],["🏊🏿♀️","woman swimming: dark skin tone",1,[]],["⛹️","person bouncing ball",1,["athletic","ball","basketball","bouncing","championship","dribble","net","person","player","throw"]],["⛹🏻","person bouncing ball: light skin tone",1,[]],["⛹🏼","person bouncing ball: medium-light skin tone",1,[]],["⛹🏽","person bouncing ball: medium skin tone",1,[]],["⛹🏾","person bouncing ball: medium-dark skin tone",1,[]],["⛹🏿","person bouncing ball: dark skin tone",1,[]],["⛹️♂️","man bouncing ball",1,["athletic","ball","basketball","bouncing","championship","dribble","man","net","player","throw"]],["⛹🏻♂️","man bouncing ball: light skin tone",1,[]],["⛹🏼♂️","man bouncing ball: medium-light skin tone",1,[]],["⛹🏽♂️","man bouncing ball: medium skin tone",1,[]],["⛹🏾♂️","man bouncing ball: medium-dark skin tone",1,[]],["⛹🏿♂️","man bouncing ball: dark skin tone",1,[]],["⛹️♀️","woman bouncing ball",1,["athletic","ball","basketball","bouncing","championship","dribble","net","player","throw","woman"]],["⛹🏻♀️","woman bouncing ball: light skin tone",1,[]],["⛹🏼♀️","woman bouncing ball: medium-light skin tone",1,[]],["⛹🏽♀️","woman bouncing ball: medium skin tone",1,[]],["⛹🏾♀️","woman bouncing ball: medium-dark skin tone",1,[]],["⛹🏿♀️","woman bouncing ball: dark skin tone",1,[]],["🏋️","person lifting weights",1,["barbell","bodybuilder","deadlift","lifter","lifting","person","powerlifting","weight","weightlifter","weights","workout"]],["🏋🏻","person lifting weights: light skin tone",1,[]],["🏋🏼","person lifting weights: medium-light skin tone",1,[]],["🏋🏽","person lifting weights: medium skin tone",1,[]],["🏋🏾","person lifting weights: medium-dark skin tone",1,[]],["🏋🏿","person lifting weights: dark skin tone",1,[]],["🏋️♂️","man lifting weights",1,["barbell","bodybuilder","deadlift","lifter","lifting","man","powerlifting","weight","weightlifter","weights","workout"]],["🏋🏻♂️","man lifting weights: light skin tone",1,[]],["🏋🏼♂️","man lifting weights: medium-light skin tone",1,[]],["🏋🏽♂️","man lifting weights: medium skin tone",1,[]],["🏋🏾♂️","man lifting weights: medium-dark skin tone",1,[]],["🏋🏿♂️","man lifting weights: dark skin tone",1,[]],["🏋️♀️","woman lifting weights",1,["barbell","bodybuilder","deadlift","lifter","lifting","powerlifting","weight","weightlifter","weights","woman","workout"]],["🏋🏻♀️","woman lifting weights: light skin tone",1,[]],["🏋🏼♀️","woman lifting weights: medium-light skin tone",1,[]],["🏋🏽♀️","woman lifting weights: medium skin tone",1,[]],["🏋🏾♀️","woman lifting weights: medium-dark skin tone",1,[]],["🏋🏿♀️","woman lifting weights: dark skin tone",1,[]],["🚴","person biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","person","riding","sport"]],["🚴🏻","person biking: light skin tone",1,[]],["🚴🏼","person biking: medium-light skin tone",1,[]],["🚴🏽","person biking: medium skin tone",1,[]],["🚴🏾","person biking: medium-dark skin tone",1,[]],["🚴🏿","person biking: dark skin tone",1,[]],["🚴♂️","man biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","man","riding","sport"]],["🚴🏻♂️","man biking: light skin tone",1,[]],["🚴🏼♂️","man biking: medium-light skin tone",1,[]],["🚴🏽♂️","man biking: medium skin tone",1,[]],["🚴🏾♂️","man biking: medium-dark skin tone",1,[]],["🚴🏿♂️","man biking: dark skin tone",1,[]],["🚴♀️","woman biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","riding","sport","woman"]],["🚴🏻♀️","woman biking: light skin tone",1,[]],["🚴🏼♀️","woman biking: medium-light skin tone",1,[]],["🚴🏽♀️","woman biking: medium skin tone",1,[]],["🚴🏾♀️","woman biking: medium-dark skin tone",1,[]],["🚴🏿♀️","woman biking: dark skin tone",1,[]],["🚵","person mountain biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","mountain","person","riding","sport"]],["🚵🏻","person mountain biking: light skin tone",1,[]],["🚵🏼","person mountain biking: medium-light skin tone",1,[]],["🚵🏽","person mountain biking: medium skin tone",1,[]],["🚵🏾","person mountain biking: medium-dark skin tone",1,[]],["🚵🏿","person mountain biking: dark skin tone",1,[]],["🚵♂️","man mountain biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","man","mountain","riding","sport"]],["🚵🏻♂️","man mountain biking: light skin tone",1,[]],["🚵🏼♂️","man mountain biking: medium-light skin tone",1,[]],["🚵🏽♂️","man mountain biking: medium skin tone",1,[]],["🚵🏾♂️","man mountain biking: medium-dark skin tone",1,[]],["🚵🏿♂️","man mountain biking: dark skin tone",1,[]],["🚵♀️","woman mountain biking",1,["bicycle","bicyclist","bike","biking","cycle","cyclist","mountain","riding","sport","woman"]],["🚵🏻♀️","woman mountain biking: light skin tone",1,[]],["🚵🏼♀️","woman mountain biking: medium-light skin tone",1,[]],["🚵🏽♀️","woman mountain biking: medium skin tone",1,[]],["🚵🏾♀️","woman mountain biking: medium-dark skin tone",1,[]],["🚵🏿♀️","woman mountain biking: dark skin tone",1,[]],["🤸","person cartwheeling",1,["active","cartwheel","cartwheeling","excited","flip","gymnastics","happy","person","somersault"]],["🤸🏻","person cartwheeling: light skin tone",1,[]],["🤸🏼","person cartwheeling: medium-light skin tone",1,[]],["🤸🏽","person cartwheeling: medium skin tone",1,[]],["🤸🏾","person cartwheeling: medium-dark skin tone",1,[]],["🤸🏿","person cartwheeling: dark skin tone",1,[]],["🤸♂️","man cartwheeling",1,["active","cartwheel","cartwheeling","excited","flip","gymnastics","happy","man","somersault"]],["🤸🏻♂️","man cartwheeling: light skin tone",1,[]],["🤸🏼♂️","man cartwheeling: medium-light skin tone",1,[]],["🤸🏽♂️","man cartwheeling: medium skin tone",1,[]],["🤸🏾♂️","man cartwheeling: medium-dark skin tone",1,[]],["🤸🏿♂️","man cartwheeling: dark skin tone",1,[]],["🤸♀️","woman cartwheeling",1,["active","cartwheel","cartwheeling","excited","flip","gymnastics","happy","somersault","woman"]],["🤸🏻♀️","woman cartwheeling: light skin tone",1,[]],["🤸🏼♀️","woman cartwheeling: medium-light skin tone",1,[]],["🤸🏽♀️","woman cartwheeling: medium skin tone",1,[]],["🤸🏾♀️","woman cartwheeling: medium-dark skin tone",1,[]],["🤸🏿♀️","woman cartwheeling: dark skin tone",1,[]],["🤼","people wrestling",1,["combat","duel","grapple","people","ring","tournament","wrestle","wrestling"]],["🤼🏻","people wrestling: light skin tone",1,[]],["🤼🏼","people wrestling: medium-light skin tone",1,[]],["🤼🏽","people wrestling: medium skin tone",1,[]],["🤼🏾","people wrestling: medium-dark skin tone",1,[]],["🤼🏿","people wrestling: dark skin tone",1,[]],["🤼♂️","men wrestling",1,["combat","duel","grapple","men","ring","tournament","wrestle","wrestling"]],["🤼🏻♂️","men wrestling: light skin tone",1,[]],["🤼🏼♂️","men wrestling: medium-light skin tone",1,[]],["🤼🏽♂️","men wrestling: medium skin tone",1,[]],["🤼🏾♂️","men wrestling: medium-dark skin tone",1,[]],["🤼🏿♂️","men wrestling: dark skin tone",1,[]],["🤼♀️","women wrestling",1,["combat","duel","grapple","ring","tournament","women","wrestle","wrestling"]],["🤼🏻♀️","women wrestling: light skin tone",1,[]],["🤼🏼♀️","women wrestling: medium-light skin tone",1,[]],["🤼🏽♀️","women wrestling: medium skin tone",1,[]],["🤼🏾♀️","women wrestling: medium-dark skin tone",1,[]],["🤼🏿♀️","women wrestling: dark skin tone",1,[]],["🧑🏻🧑🏼","people wrestling: light skin tone, medium-light skin tone",1,[]],["🧑🏻🧑🏽","people wrestling: light skin tone, medium skin tone",1,[]],["🧑🏻🧑🏾","people wrestling: light skin tone, medium-dark skin tone",1,[]],["🧑🏻🧑🏿","people wrestling: light skin tone, dark skin tone",1,[]],["🧑🏼🧑🏻","people wrestling: medium-light skin tone, light skin tone",1,[]],["🧑🏼🧑🏽","people wrestling: medium-light skin tone, medium skin tone",1,[]],["🧑🏼🧑🏾","people wrestling: medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼🧑🏿","people wrestling: medium-light skin tone, dark skin tone",1,[]],["🧑🏽🧑🏻","people wrestling: medium skin tone, light skin tone",1,[]],["🧑🏽🧑🏼","people wrestling: medium skin tone, medium-light skin tone",1,[]],["🧑🏽🧑🏾","people wrestling: medium skin tone, medium-dark skin tone",1,[]],["🧑🏽🧑🏿","people wrestling: medium skin tone, dark skin tone",1,[]],["🧑🏾🧑🏻","people wrestling: medium-dark skin tone, light skin tone",1,[]],["🧑🏾🧑🏼","people wrestling: medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾🧑🏽","people wrestling: medium-dark skin tone, medium skin tone",1,[]],["🧑🏾🧑🏿","people wrestling: medium-dark skin tone, dark skin tone",1,[]],["🧑🏿🧑🏻","people wrestling: dark skin tone, light skin tone",1,[]],["🧑🏿🧑🏼","people wrestling: dark skin tone, medium-light skin tone",1,[]],["🧑🏿🧑🏽","people wrestling: dark skin tone, medium skin tone",1,[]],["🧑🏿🧑🏾","people wrestling: dark skin tone, medium-dark skin tone",1,[]],["👨🏻👨🏼","men wrestling: light skin tone, medium-light skin tone",1,[]],["👨🏻👨🏽","men wrestling: light skin tone, medium skin tone",1,[]],["👨🏻👨🏾","men wrestling: light skin tone, medium-dark skin tone",1,[]],["👨🏻👨🏿","men wrestling: light skin tone, dark skin tone",1,[]],["👨🏼👨🏻","men wrestling: medium-light skin tone, light skin tone",1,[]],["👨🏼👨🏽","men wrestling: medium-light skin tone, medium skin tone",1,[]],["👨🏼👨🏾","men wrestling: medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼👨🏿","men wrestling: medium-light skin tone, dark skin tone",1,[]],["👨🏽👨🏻","men wrestling: medium skin tone, light skin tone",1,[]],["👨🏽👨🏼","men wrestling: medium skin tone, medium-light skin tone",1,[]],["👨🏽👨🏾","men wrestling: medium skin tone, medium-dark skin tone",1,[]],["👨🏽👨🏿","men wrestling: medium skin tone, dark skin tone",1,[]],["👨🏾👨🏻","men wrestling: medium-dark skin tone, light skin tone",1,[]],["👨🏾👨🏼","men wrestling: medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾👨🏽","men wrestling: medium-dark skin tone, medium skin tone",1,[]],["👨🏾👨🏿","men wrestling: medium-dark skin tone, dark skin tone",1,[]],["👨🏿👨🏻","men wrestling: dark skin tone, light skin tone",1,[]],["👨🏿👨🏼","men wrestling: dark skin tone, medium-light skin tone",1,[]],["👨🏿👨🏽","men wrestling: dark skin tone, medium skin tone",1,[]],["👨🏿👨🏾","men wrestling: dark skin tone, medium-dark skin tone",1,[]],["👩🏻👩🏼","women wrestling: light skin tone, medium-light skin tone",1,[]],["👩🏻👩🏽","women wrestling: light skin tone, medium skin tone",1,[]],["👩🏻👩🏾","women wrestling: light skin tone, medium-dark skin tone",1,[]],["👩🏻👩🏿","women wrestling: light skin tone, dark skin tone",1,[]],["👩🏼👩🏻","women wrestling: medium-light skin tone, light skin tone",1,[]],["👩🏼👩🏽","women wrestling: medium-light skin tone, medium skin tone",1,[]],["👩🏼👩🏾","women wrestling: medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼👩🏿","women wrestling: medium-light skin tone, dark skin tone",1,[]],["👩🏽👩🏻","women wrestling: medium skin tone, light skin tone",1,[]],["👩🏽👩🏼","women wrestling: medium skin tone, medium-light skin tone",1,[]],["👩🏽👩🏾","women wrestling: medium skin tone, medium-dark skin tone",1,[]],["👩🏽👩🏿","women wrestling: medium skin tone, dark skin tone",1,[]],["👩🏾👩🏻","women wrestling: medium-dark skin tone, light skin tone",1,[]],["👩🏾👩🏼","women wrestling: medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾👩🏽","women wrestling: medium-dark skin tone, medium skin tone",1,[]],["👩🏾👩🏿","women wrestling: medium-dark skin tone, dark skin tone",1,[]],["👩🏿👩🏻","women wrestling: dark skin tone, light skin tone",1,[]],["👩🏿👩🏼","women wrestling: dark skin tone, medium-light skin tone",1,[]],["👩🏿👩🏽","women wrestling: dark skin tone, medium skin tone",1,[]],["👩🏿👩🏾","women wrestling: dark skin tone, medium-dark skin tone",1,[]],["🤽","person playing water polo",1,["person","playing","polo","sport","swimming","water","waterpolo"]],["🤽🏻","person playing water polo: light skin tone",1,[]],["🤽🏼","person playing water polo: medium-light skin tone",1,[]],["🤽🏽","person playing water polo: medium skin tone",1,[]],["🤽🏾","person playing water polo: medium-dark skin tone",1,[]],["🤽🏿","person playing water polo: dark skin tone",1,[]],["🤽♂️","man playing water polo",1,["man","playing","polo","sport","swimming","water","waterpolo"]],["🤽🏻♂️","man playing water polo: light skin tone",1,[]],["🤽🏼♂️","man playing water polo: medium-light skin tone",1,[]],["🤽🏽♂️","man playing water polo: medium skin tone",1,[]],["🤽🏾♂️","man playing water polo: medium-dark skin tone",1,[]],["🤽🏿♂️","man playing water polo: dark skin tone",1,[]],["🤽♀️","woman playing water polo",1,["playing","polo","sport","swimming","water","waterpolo","woman"]],["🤽🏻♀️","woman playing water polo: light skin tone",1,[]],["🤽🏼♀️","woman playing water polo: medium-light skin tone",1,[]],["🤽🏽♀️","woman playing water polo: medium skin tone",1,[]],["🤽🏾♀️","woman playing water polo: medium-dark skin tone",1,[]],["🤽🏿♀️","woman playing water polo: dark skin tone",1,[]],["🤾","person playing handball",1,["athletics","ball","catch","chuck","handball","hurl","lob","person","pitch","playing","sport","throw","toss"]],["🤾🏻","person playing handball: light skin tone",1,[]],["🤾🏼","person playing handball: medium-light skin tone",1,[]],["🤾🏽","person playing handball: medium skin tone",1,[]],["🤾🏾","person playing handball: medium-dark skin tone",1,[]],["🤾🏿","person playing handball: dark skin tone",1,[]],["🤾♂️","man playing handball",1,["athletics","ball","catch","chuck","handball","hurl","lob","man","pitch","playing","sport","throw","toss"]],["🤾🏻♂️","man playing handball: light skin tone",1,[]],["🤾🏼♂️","man playing handball: medium-light skin tone",1,[]],["🤾🏽♂️","man playing handball: medium skin tone",1,[]],["🤾🏾♂️","man playing handball: medium-dark skin tone",1,[]],["🤾🏿♂️","man playing handball: dark skin tone",1,[]],["🤾♀️","woman playing handball",1,["athletics","ball","catch","chuck","handball","hurl","lob","pitch","playing","sport","throw","toss","woman"]],["🤾🏻♀️","woman playing handball: light skin tone",1,[]],["🤾🏼♀️","woman playing handball: medium-light skin tone",1,[]],["🤾🏽♀️","woman playing handball: medium skin tone",1,[]],["🤾🏾♀️","woman playing handball: medium-dark skin tone",1,[]],["🤾🏿♀️","woman playing handball: dark skin tone",1,[]],["🤹","person juggling",1,["act","balance","balancing","handle","juggle","juggling","manage","multitask","person","skill"]],["🤹🏻","person juggling: light skin tone",1,[]],["🤹🏼","person juggling: medium-light skin tone",1,[]],["🤹🏽","person juggling: medium skin tone",1,[]],["🤹🏾","person juggling: medium-dark skin tone",1,[]],["🤹🏿","person juggling: dark skin tone",1,[]],["🤹♂️","man juggling",1,["act","balance","balancing","handle","juggle","juggling","man","manage","multitask","skill"]],["🤹🏻♂️","man juggling: light skin tone",1,[]],["🤹🏼♂️","man juggling: medium-light skin tone",1,[]],["🤹🏽♂️","man juggling: medium skin tone",1,[]],["🤹🏾♂️","man juggling: medium-dark skin tone",1,[]],["🤹🏿♂️","man juggling: dark skin tone",1,[]],["🤹♀️","woman juggling",1,["act","balance","balancing","handle","juggle","juggling","manage","multitask","skill","woman"]],["🤹🏻♀️","woman juggling: light skin tone",1,[]],["🤹🏼♀️","woman juggling: medium-light skin tone",1,[]],["🤹🏽♀️","woman juggling: medium skin tone",1,[]],["🤹🏾♀️","woman juggling: medium-dark skin tone",1,[]],["🤹🏿♀️","woman juggling: dark skin tone",1,[]],["🧘","person in lotus position",1,["cross","legged","legs","lotus","meditation","peace","person","position","relax","serenity","yoga","yogi","zen"]],["🧘🏻","person in lotus position: light skin tone",1,[]],["🧘🏼","person in lotus position: medium-light skin tone",1,[]],["🧘🏽","person in lotus position: medium skin tone",1,[]],["🧘🏾","person in lotus position: medium-dark skin tone",1,[]],["🧘🏿","person in lotus position: dark skin tone",1,[]],["🧘♂️","man in lotus position",1,["cross","legged","legs","lotus","man","meditation","peace","position","relax","serenity","yoga","yogi","zen"]],["🧘🏻♂️","man in lotus position: light skin tone",1,[]],["🧘🏼♂️","man in lotus position: medium-light skin tone",1,[]],["🧘🏽♂️","man in lotus position: medium skin tone",1,[]],["🧘🏾♂️","man in lotus position: medium-dark skin tone",1,[]],["🧘🏿♂️","man in lotus position: dark skin tone",1,[]],["🧘♀️","woman in lotus position",1,["cross","legged","legs","lotus","meditation","peace","position","relax","serenity","woman","yoga","yogi","zen"]],["🧘🏻♀️","woman in lotus position: light skin tone",1,[]],["🧘🏼♀️","woman in lotus position: medium-light skin tone",1,[]],["🧘🏽♀️","woman in lotus position: medium skin tone",1,[]],["🧘🏾♀️","woman in lotus position: medium-dark skin tone",1,[]],["🧘🏿♀️","woman in lotus position: dark skin tone",1,[]],["🛀","person taking bath",1,["bath","bathtub","person","taking","tub"]],["🛀🏻","person taking bath: light skin tone",1,[]],["🛀🏼","person taking bath: medium-light skin tone",1,[]],["🛀🏽","person taking bath: medium skin tone",1,[]],["🛀🏾","person taking bath: medium-dark skin tone",1,[]],["🛀🏿","person taking bath: dark skin tone",1,[]],["🛌","person in bed",1,["bed","bedtime","good","goodnight","hotel","nap","night","person","sleep","tired","zzz"]],["🛌🏻","person in bed: light skin tone",1,[]],["🛌🏼","person in bed: medium-light skin tone",1,[]],["🛌🏽","person in bed: medium skin tone",1,[]],["🛌🏾","person in bed: medium-dark skin tone",1,[]],["🛌🏿","person in bed: dark skin tone",1,[]],["🧑🤝🧑","people holding hands",1,["bae","bestie","bff","couple","dating","flirt","friends","hand","hold","people","twins"]],["🧑🏻🤝🧑🏻","people holding hands: light skin tone",1,[]],["🧑🏻🤝🧑🏼","people holding hands: light skin tone, medium-light skin tone",1,[]],["🧑🏻🤝🧑🏽","people holding hands: light skin tone, medium skin tone",1,[]],["🧑🏻🤝🧑🏾","people holding hands: light skin tone, medium-dark skin tone",1,[]],["🧑🏻🤝🧑🏿","people holding hands: light skin tone, dark skin tone",1,[]],["🧑🏼🤝🧑🏻","people holding hands: medium-light skin tone, light skin tone",1,[]],["🧑🏼🤝🧑🏼","people holding hands: medium-light skin tone",1,[]],["🧑🏼🤝🧑🏽","people holding hands: medium-light skin tone, medium skin tone",1,[]],["🧑🏼🤝🧑🏾","people holding hands: medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼🤝🧑🏿","people holding hands: medium-light skin tone, dark skin tone",1,[]],["🧑🏽🤝🧑🏻","people holding hands: medium skin tone, light skin tone",1,[]],["🧑🏽🤝🧑🏼","people holding hands: medium skin tone, medium-light skin tone",1,[]],["🧑🏽🤝🧑🏽","people holding hands: medium skin tone",1,[]],["🧑🏽🤝🧑🏾","people holding hands: medium skin tone, medium-dark skin tone",1,[]],["🧑🏽🤝🧑🏿","people holding hands: medium skin tone, dark skin tone",1,[]],["🧑🏾🤝🧑🏻","people holding hands: medium-dark skin tone, light skin tone",1,[]],["🧑🏾🤝🧑🏼","people holding hands: medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾🤝🧑🏽","people holding hands: medium-dark skin tone, medium skin tone",1,[]],["🧑🏾🤝🧑🏾","people holding hands: medium-dark skin tone",1,[]],["🧑🏾🤝🧑🏿","people holding hands: medium-dark skin tone, dark skin tone",1,[]],["🧑🏿🤝🧑🏻","people holding hands: dark skin tone, light skin tone",1,[]],["🧑🏿🤝🧑🏼","people holding hands: dark skin tone, medium-light skin tone",1,[]],["🧑🏿🤝🧑🏽","people holding hands: dark skin tone, medium skin tone",1,[]],["🧑🏿🤝🧑🏾","people holding hands: dark skin tone, medium-dark skin tone",1,[]],["🧑🏿🤝🧑🏿","people holding hands: dark skin tone",1,[]],["👭","women holding hands",1,["bae","bestie","bff","couple","dating","flirt","friends","girls","hand","hold","sisters","twins","women"]],["👭🏻","women holding hands: light skin tone",1,[]],["👩🏻🤝👩🏼","women holding hands: light skin tone, medium-light skin tone",1,[]],["👩🏻🤝👩🏽","women holding hands: light skin tone, medium skin tone",1,[]],["👩🏻🤝👩🏾","women holding hands: light skin tone, medium-dark skin tone",1,[]],["👩🏻🤝👩🏿","women holding hands: light skin tone, dark skin tone",1,[]],["👩🏼🤝👩🏻","women holding hands: medium-light skin tone, light skin tone",1,[]],["👭🏼","women holding hands: medium-light skin tone",1,[]],["👩🏼🤝👩🏽","women holding hands: medium-light skin tone, medium skin tone",1,[]],["👩🏼🤝👩🏾","women holding hands: medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼🤝👩🏿","women holding hands: medium-light skin tone, dark skin tone",1,[]],["👩🏽🤝👩🏻","women holding hands: medium skin tone, light skin tone",1,[]],["👩🏽🤝👩🏼","women holding hands: medium skin tone, medium-light skin tone",1,[]],["👭🏽","women holding hands: medium skin tone",1,[]],["👩🏽🤝👩🏾","women holding hands: medium skin tone, medium-dark skin tone",1,[]],["👩🏽🤝👩🏿","women holding hands: medium skin tone, dark skin tone",1,[]],["👩🏾🤝👩🏻","women holding hands: medium-dark skin tone, light skin tone",1,[]],["👩🏾🤝👩🏼","women holding hands: medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾🤝👩🏽","women holding hands: medium-dark skin tone, medium skin tone",1,[]],["👭🏾","women holding hands: medium-dark skin tone",1,[]],["👩🏾🤝👩🏿","women holding hands: medium-dark skin tone, dark skin tone",1,[]],["👩🏿🤝👩🏻","women holding hands: dark skin tone, light skin tone",1,[]],["👩🏿🤝👩🏼","women holding hands: dark skin tone, medium-light skin tone",1,[]],["👩🏿🤝👩🏽","women holding hands: dark skin tone, medium skin tone",1,[]],["👩🏿🤝👩🏾","women holding hands: dark skin tone, medium-dark skin tone",1,[]],["👭🏿","women holding hands: dark skin tone",1,[]],["👫","woman and man holding hands",1,["bae","bestie","bff","couple","dating","flirt","friends","hand","hold","man","twins","woman"]],["👫🏻","woman and man holding hands: light skin tone",1,[]],["👩🏻🤝👨🏼","woman and man holding hands: light skin tone, medium-light skin tone",1,[]],["👩🏻🤝👨🏽","woman and man holding hands: light skin tone, medium skin tone",1,[]],["👩🏻🤝👨🏾","woman and man holding hands: light skin tone, medium-dark skin tone",1,[]],["👩🏻🤝👨🏿","woman and man holding hands: light skin tone, dark skin tone",1,[]],["👩🏼🤝👨🏻","woman and man holding hands: medium-light skin tone, light skin tone",1,[]],["👫🏼","woman and man holding hands: medium-light skin tone",1,[]],["👩🏼🤝👨🏽","woman and man holding hands: medium-light skin tone, medium skin tone",1,[]],["👩🏼🤝👨🏾","woman and man holding hands: medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼🤝👨🏿","woman and man holding hands: medium-light skin tone, dark skin tone",1,[]],["👩🏽🤝👨🏻","woman and man holding hands: medium skin tone, light skin tone",1,[]],["👩🏽🤝👨🏼","woman and man holding hands: medium skin tone, medium-light skin tone",1,[]],["👫🏽","woman and man holding hands: medium skin tone",1,[]],["👩🏽🤝👨🏾","woman and man holding hands: medium skin tone, medium-dark skin tone",1,[]],["👩🏽🤝👨🏿","woman and man holding hands: medium skin tone, dark skin tone",1,[]],["👩🏾🤝👨🏻","woman and man holding hands: medium-dark skin tone, light skin tone",1,[]],["👩🏾🤝👨🏼","woman and man holding hands: medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾🤝👨🏽","woman and man holding hands: medium-dark skin tone, medium skin tone",1,[]],["👫🏾","woman and man holding hands: medium-dark skin tone",1,[]],["👩🏾🤝👨🏿","woman and man holding hands: medium-dark skin tone, dark skin tone",1,[]],["👩🏿🤝👨🏻","woman and man holding hands: dark skin tone, light skin tone",1,[]],["👩🏿🤝👨🏼","woman and man holding hands: dark skin tone, medium-light skin tone",1,[]],["👩🏿🤝👨🏽","woman and man holding hands: dark skin tone, medium skin tone",1,[]],["👩🏿🤝👨🏾","woman and man holding hands: dark skin tone, medium-dark skin tone",1,[]],["👫🏿","woman and man holding hands: dark skin tone",1,[]],["👬","men holding hands",1,["bae","bestie","bff","boys","brothers","couple","dating","flirt","friends","hand","hold","men","twins"]],["👬🏻","men holding hands: light skin tone",1,[]],["👨🏻🤝👨🏼","men holding hands: light skin tone, medium-light skin tone",1,[]],["👨🏻🤝👨🏽","men holding hands: light skin tone, medium skin tone",1,[]],["👨🏻🤝👨🏾","men holding hands: light skin tone, medium-dark skin tone",1,[]],["👨🏻🤝👨🏿","men holding hands: light skin tone, dark skin tone",1,[]],["👨🏼🤝👨🏻","men holding hands: medium-light skin tone, light skin tone",1,[]],["👬🏼","men holding hands: medium-light skin tone",1,[]],["👨🏼🤝👨🏽","men holding hands: medium-light skin tone, medium skin tone",1,[]],["👨🏼🤝👨🏾","men holding hands: medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼🤝👨🏿","men holding hands: medium-light skin tone, dark skin tone",1,[]],["👨🏽🤝👨🏻","men holding hands: medium skin tone, light skin tone",1,[]],["👨🏽🤝👨🏼","men holding hands: medium skin tone, medium-light skin tone",1,[]],["👬🏽","men holding hands: medium skin tone",1,[]],["👨🏽🤝👨🏾","men holding hands: medium skin tone, medium-dark skin tone",1,[]],["👨🏽🤝👨🏿","men holding hands: medium skin tone, dark skin tone",1,[]],["👨🏾🤝👨🏻","men holding hands: medium-dark skin tone, light skin tone",1,[]],["👨🏾🤝👨🏼","men holding hands: medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾🤝👨🏽","men holding hands: medium-dark skin tone, medium skin tone",1,[]],["👬🏾","men holding hands: medium-dark skin tone",1,[]],["👨🏾🤝👨🏿","men holding hands: medium-dark skin tone, dark skin tone",1,[]],["👨🏿🤝👨🏻","men holding hands: dark skin tone, light skin tone",1,[]],["👨🏿🤝👨🏼","men holding hands: dark skin tone, medium-light skin tone",1,[]],["👨🏿🤝👨🏽","men holding hands: dark skin tone, medium skin tone",1,[]],["👨🏿🤝👨🏾","men holding hands: dark skin tone, medium-dark skin tone",1,[]],["👬🏿","men holding hands: dark skin tone",1,[]],["💏","kiss",1,["anniversary","babe","bae","couple","date","dating","heart","kiss","love","mwah","person","romance","together","xoxo"]],["💏🏻","kiss: light skin tone",1,[]],["💏🏼","kiss: medium-light skin tone",1,[]],["💏🏽","kiss: medium skin tone",1,[]],["💏🏾","kiss: medium-dark skin tone",1,[]],["💏🏿","kiss: dark skin tone",1,[]],["🧑🏻❤️💋🧑🏼","kiss: person, person, light skin tone, medium-light skin tone",1,[]],["🧑🏻❤️💋🧑🏽","kiss: person, person, light skin tone, medium skin tone",1,[]],["🧑🏻❤️💋🧑🏾","kiss: person, person, light skin tone, medium-dark skin tone",1,[]],["🧑🏻❤️💋🧑🏿","kiss: person, person, light skin tone, dark skin tone",1,[]],["🧑🏼❤️💋🧑🏻","kiss: person, person, medium-light skin tone, light skin tone",1,[]],["🧑🏼❤️💋🧑🏽","kiss: person, person, medium-light skin tone, medium skin tone",1,[]],["🧑🏼❤️💋🧑🏾","kiss: person, person, medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼❤️💋🧑🏿","kiss: person, person, medium-light skin tone, dark skin tone",1,[]],["🧑🏽❤️💋🧑🏻","kiss: person, person, medium skin tone, light skin tone",1,[]],["🧑🏽❤️💋🧑🏼","kiss: person, person, medium skin tone, medium-light skin tone",1,[]],["🧑🏽❤️💋🧑🏾","kiss: person, person, medium skin tone, medium-dark skin tone",1,[]],["🧑🏽❤️💋🧑🏿","kiss: person, person, medium skin tone, dark skin tone",1,[]],["🧑🏾❤️💋🧑🏻","kiss: person, person, medium-dark skin tone, light skin tone",1,[]],["🧑🏾❤️💋🧑🏼","kiss: person, person, medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾❤️💋🧑🏽","kiss: person, person, medium-dark skin tone, medium skin tone",1,[]],["🧑🏾❤️💋🧑🏿","kiss: person, person, medium-dark skin tone, dark skin tone",1,[]],["🧑🏿❤️💋🧑🏻","kiss: person, person, dark skin tone, light skin tone",1,[]],["🧑🏿❤️💋🧑🏼","kiss: person, person, dark skin tone, medium-light skin tone",1,[]],["🧑🏿❤️💋🧑🏽","kiss: person, person, dark skin tone, medium skin tone",1,[]],["🧑🏿❤️💋🧑🏾","kiss: person, person, dark skin tone, medium-dark skin tone",1,[]],["👩❤️💋👨","kiss: woman, man",1,[]],["👩🏻❤️💋👨🏻","kiss: woman, man, light skin tone",1,[]],["👩🏻❤️💋👨🏼","kiss: woman, man, light skin tone, medium-light skin tone",1,[]],["👩🏻❤️💋👨🏽","kiss: woman, man, light skin tone, medium skin tone",1,[]],["👩🏻❤️💋👨🏾","kiss: woman, man, light skin tone, medium-dark skin tone",1,[]],["👩🏻❤️💋👨🏿","kiss: woman, man, light skin tone, dark skin tone",1,[]],["👩🏼❤️💋👨🏻","kiss: woman, man, medium-light skin tone, light skin tone",1,[]],["👩🏼❤️💋👨🏼","kiss: woman, man, medium-light skin tone",1,[]],["👩🏼❤️💋👨🏽","kiss: woman, man, medium-light skin tone, medium skin tone",1,[]],["👩🏼❤️💋👨🏾","kiss: woman, man, medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼❤️💋👨🏿","kiss: woman, man, medium-light skin tone, dark skin tone",1,[]],["👩🏽❤️💋👨🏻","kiss: woman, man, medium skin tone, light skin tone",1,[]],["👩🏽❤️💋👨🏼","kiss: woman, man, medium skin tone, medium-light skin tone",1,[]],["👩🏽❤️💋👨🏽","kiss: woman, man, medium skin tone",1,[]],["👩🏽❤️💋👨🏾","kiss: woman, man, medium skin tone, medium-dark skin tone",1,[]],["👩🏽❤️💋👨🏿","kiss: woman, man, medium skin tone, dark skin tone",1,[]],["👩🏾❤️💋👨🏻","kiss: woman, man, medium-dark skin tone, light skin tone",1,[]],["👩🏾❤️💋👨🏼","kiss: woman, man, medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾❤️💋👨🏽","kiss: woman, man, medium-dark skin tone, medium skin tone",1,[]],["👩🏾❤️💋👨🏾","kiss: woman, man, medium-dark skin tone",1,[]],["👩🏾❤️💋👨🏿","kiss: woman, man, medium-dark skin tone, dark skin tone",1,[]],["👩🏿❤️💋👨🏻","kiss: woman, man, dark skin tone, light skin tone",1,[]],["👩🏿❤️💋👨🏼","kiss: woman, man, dark skin tone, medium-light skin tone",1,[]],["👩🏿❤️💋👨🏽","kiss: woman, man, dark skin tone, medium skin tone",1,[]],["👩🏿❤️💋👨🏾","kiss: woman, man, dark skin tone, medium-dark skin tone",1,[]],["👩🏿❤️💋👨🏿","kiss: woman, man, dark skin tone",1,[]],["👨❤️💋👨","kiss: man, man",1,[]],["👨🏻❤️💋👨🏻","kiss: man, man, light skin tone",1,[]],["👨🏻❤️💋👨🏼","kiss: man, man, light skin tone, medium-light skin tone",1,[]],["👨🏻❤️💋👨🏽","kiss: man, man, light skin tone, medium skin tone",1,[]],["👨🏻❤️💋👨🏾","kiss: man, man, light skin tone, medium-dark skin tone",1,[]],["👨🏻❤️💋👨🏿","kiss: man, man, light skin tone, dark skin tone",1,[]],["👨🏼❤️💋👨🏻","kiss: man, man, medium-light skin tone, light skin tone",1,[]],["👨🏼❤️💋👨🏼","kiss: man, man, medium-light skin tone",1,[]],["👨🏼❤️💋👨🏽","kiss: man, man, medium-light skin tone, medium skin tone",1,[]],["👨🏼❤️💋👨🏾","kiss: man, man, medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼❤️💋👨🏿","kiss: man, man, medium-light skin tone, dark skin tone",1,[]],["👨🏽❤️💋👨🏻","kiss: man, man, medium skin tone, light skin tone",1,[]],["👨🏽❤️💋👨🏼","kiss: man, man, medium skin tone, medium-light skin tone",1,[]],["👨🏽❤️💋👨🏽","kiss: man, man, medium skin tone",1,[]],["👨🏽❤️💋👨🏾","kiss: man, man, medium skin tone, medium-dark skin tone",1,[]],["👨🏽❤️💋👨🏿","kiss: man, man, medium skin tone, dark skin tone",1,[]],["👨🏾❤️💋👨🏻","kiss: man, man, medium-dark skin tone, light skin tone",1,[]],["👨🏾❤️💋👨🏼","kiss: man, man, medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾❤️💋👨🏽","kiss: man, man, medium-dark skin tone, medium skin tone",1,[]],["👨🏾❤️💋👨🏾","kiss: man, man, medium-dark skin tone",1,[]],["👨🏾❤️💋👨🏿","kiss: man, man, medium-dark skin tone, dark skin tone",1,[]],["👨🏿❤️💋👨🏻","kiss: man, man, dark skin tone, light skin tone",1,[]],["👨🏿❤️💋👨🏼","kiss: man, man, dark skin tone, medium-light skin tone",1,[]],["👨🏿❤️💋👨🏽","kiss: man, man, dark skin tone, medium skin tone",1,[]],["👨🏿❤️💋👨🏾","kiss: man, man, dark skin tone, medium-dark skin tone",1,[]],["👨🏿❤️💋👨🏿","kiss: man, man, dark skin tone",1,[]],["👩❤️💋👩","kiss: woman, woman",1,[]],["👩🏻❤️💋👩🏻","kiss: woman, woman, light skin tone",1,[]],["👩🏻❤️💋👩🏼","kiss: woman, woman, light skin tone, medium-light skin tone",1,[]],["👩🏻❤️💋👩🏽","kiss: woman, woman, light skin tone, medium skin tone",1,[]],["👩🏻❤️💋👩🏾","kiss: woman, woman, light skin tone, medium-dark skin tone",1,[]],["👩🏻❤️💋👩🏿","kiss: woman, woman, light skin tone, dark skin tone",1,[]],["👩🏼❤️💋👩🏻","kiss: woman, woman, medium-light skin tone, light skin tone",1,[]],["👩🏼❤️💋👩🏼","kiss: woman, woman, medium-light skin tone",1,[]],["👩🏼❤️💋👩🏽","kiss: woman, woman, medium-light skin tone, medium skin tone",1,[]],["👩🏼❤️💋👩🏾","kiss: woman, woman, medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼❤️💋👩🏿","kiss: woman, woman, medium-light skin tone, dark skin tone",1,[]],["👩🏽❤️💋👩🏻","kiss: woman, woman, medium skin tone, light skin tone",1,[]],["👩🏽❤️💋👩🏼","kiss: woman, woman, medium skin tone, medium-light skin tone",1,[]],["👩🏽❤️💋👩🏽","kiss: woman, woman, medium skin tone",1,[]],["👩🏽❤️💋👩🏾","kiss: woman, woman, medium skin tone, medium-dark skin tone",1,[]],["👩🏽❤️💋👩🏿","kiss: woman, woman, medium skin tone, dark skin tone",1,[]],["👩🏾❤️💋👩🏻","kiss: woman, woman, medium-dark skin tone, light skin tone",1,[]],["👩🏾❤️💋👩🏼","kiss: woman, woman, medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾❤️💋👩🏽","kiss: woman, woman, medium-dark skin tone, medium skin tone",1,[]],["👩🏾❤️💋👩🏾","kiss: woman, woman, medium-dark skin tone",1,[]],["👩🏾❤️💋👩🏿","kiss: woman, woman, medium-dark skin tone, dark skin tone",1,[]],["👩🏿❤️💋👩🏻","kiss: woman, woman, dark skin tone, light skin tone",1,[]],["👩🏿❤️💋👩🏼","kiss: woman, woman, dark skin tone, medium-light skin tone",1,[]],["👩🏿❤️💋👩🏽","kiss: woman, woman, dark skin tone, medium skin tone",1,[]],["👩🏿❤️💋👩🏾","kiss: woman, woman, dark skin tone, medium-dark skin tone",1,[]],["👩🏿❤️💋👩🏿","kiss: woman, woman, dark skin tone",1,[]],["💑","couple with heart",1,["anniversary","babe","bae","couple","dating","heart","kiss","love","person","relationship","romance","together","you"]],["💑🏻","couple with heart: light skin tone",1,[]],["💑🏼","couple with heart: medium-light skin tone",1,[]],["💑🏽","couple with heart: medium skin tone",1,[]],["💑🏾","couple with heart: medium-dark skin tone",1,[]],["💑🏿","couple with heart: dark skin tone",1,[]],["🧑🏻❤️🧑🏼","couple with heart: person, person, light skin tone, medium-light skin tone",1,[]],["🧑🏻❤️🧑🏽","couple with heart: person, person, light skin tone, medium skin tone",1,[]],["🧑🏻❤️🧑🏾","couple with heart: person, person, light skin tone, medium-dark skin tone",1,[]],["🧑🏻❤️🧑🏿","couple with heart: person, person, light skin tone, dark skin tone",1,[]],["🧑🏼❤️🧑🏻","couple with heart: person, person, medium-light skin tone, light skin tone",1,[]],["🧑🏼❤️🧑🏽","couple with heart: person, person, medium-light skin tone, medium skin tone",1,[]],["🧑🏼❤️🧑🏾","couple with heart: person, person, medium-light skin tone, medium-dark skin tone",1,[]],["🧑🏼❤️🧑🏿","couple with heart: person, person, medium-light skin tone, dark skin tone",1,[]],["🧑🏽❤️🧑🏻","couple with heart: person, person, medium skin tone, light skin tone",1,[]],["🧑🏽❤️🧑🏼","couple with heart: person, person, medium skin tone, medium-light skin tone",1,[]],["🧑🏽❤️🧑🏾","couple with heart: person, person, medium skin tone, medium-dark skin tone",1,[]],["🧑🏽❤️🧑🏿","couple with heart: person, person, medium skin tone, dark skin tone",1,[]],["🧑🏾❤️🧑🏻","couple with heart: person, person, medium-dark skin tone, light skin tone",1,[]],["🧑🏾❤️🧑🏼","couple with heart: person, person, medium-dark skin tone, medium-light skin tone",1,[]],["🧑🏾❤️🧑🏽","couple with heart: person, person, medium-dark skin tone, medium skin tone",1,[]],["🧑🏾❤️🧑🏿","couple with heart: person, person, medium-dark skin tone, dark skin tone",1,[]],["🧑🏿❤️🧑🏻","couple with heart: person, person, dark skin tone, light skin tone",1,[]],["🧑🏿❤️🧑🏼","couple with heart: person, person, dark skin tone, medium-light skin tone",1,[]],["🧑🏿❤️🧑🏽","couple with heart: person, person, dark skin tone, medium skin tone",1,[]],["🧑🏿❤️🧑🏾","couple with heart: person, person, dark skin tone, medium-dark skin tone",1,[]],["👩❤️👨","couple with heart: woman, man",1,[]],["👩🏻❤️👨🏻","couple with heart: woman, man, light skin tone",1,[]],["👩🏻❤️👨🏼","couple with heart: woman, man, light skin tone, medium-light skin tone",1,[]],["👩🏻❤️👨🏽","couple with heart: woman, man, light skin tone, medium skin tone",1,[]],["👩🏻❤️👨🏾","couple with heart: woman, man, light skin tone, medium-dark skin tone",1,[]],["👩🏻❤️👨🏿","couple with heart: woman, man, light skin tone, dark skin tone",1,[]],["👩🏼❤️👨🏻","couple with heart: woman, man, medium-light skin tone, light skin tone",1,[]],["👩🏼❤️👨🏼","couple with heart: woman, man, medium-light skin tone",1,[]],["👩🏼❤️👨🏽","couple with heart: woman, man, medium-light skin tone, medium skin tone",1,[]],["👩🏼❤️👨🏾","couple with heart: woman, man, medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼❤️👨🏿","couple with heart: woman, man, medium-light skin tone, dark skin tone",1,[]],["👩🏽❤️👨🏻","couple with heart: woman, man, medium skin tone, light skin tone",1,[]],["👩🏽❤️👨🏼","couple with heart: woman, man, medium skin tone, medium-light skin tone",1,[]],["👩🏽❤️👨🏽","couple with heart: woman, man, medium skin tone",1,[]],["👩🏽❤️👨🏾","couple with heart: woman, man, medium skin tone, medium-dark skin tone",1,[]],["👩🏽❤️👨🏿","couple with heart: woman, man, medium skin tone, dark skin tone",1,[]],["👩🏾❤️👨🏻","couple with heart: woman, man, medium-dark skin tone, light skin tone",1,[]],["👩🏾❤️👨🏼","couple with heart: woman, man, medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾❤️👨🏽","couple with heart: woman, man, medium-dark skin tone, medium skin tone",1,[]],["👩🏾❤️👨🏾","couple with heart: woman, man, medium-dark skin tone",1,[]],["👩🏾❤️👨🏿","couple with heart: woman, man, medium-dark skin tone, dark skin tone",1,[]],["👩🏿❤️👨🏻","couple with heart: woman, man, dark skin tone, light skin tone",1,[]],["👩🏿❤️👨🏼","couple with heart: woman, man, dark skin tone, medium-light skin tone",1,[]],["👩🏿❤️👨🏽","couple with heart: woman, man, dark skin tone, medium skin tone",1,[]],["👩🏿❤️👨🏾","couple with heart: woman, man, dark skin tone, medium-dark skin tone",1,[]],["👩🏿❤️👨🏿","couple with heart: woman, man, dark skin tone",1,[]],["👨❤️👨","couple with heart: man, man",1,[]],["👨🏻❤️👨🏻","couple with heart: man, man, light skin tone",1,[]],["👨🏻❤️👨🏼","couple with heart: man, man, light skin tone, medium-light skin tone",1,[]],["👨🏻❤️👨🏽","couple with heart: man, man, light skin tone, medium skin tone",1,[]],["👨🏻❤️👨🏾","couple with heart: man, man, light skin tone, medium-dark skin tone",1,[]],["👨🏻❤️👨🏿","couple with heart: man, man, light skin tone, dark skin tone",1,[]],["👨🏼❤️👨🏻","couple with heart: man, man, medium-light skin tone, light skin tone",1,[]],["👨🏼❤️👨🏼","couple with heart: man, man, medium-light skin tone",1,[]],["👨🏼❤️👨🏽","couple with heart: man, man, medium-light skin tone, medium skin tone",1,[]],["👨🏼❤️👨🏾","couple with heart: man, man, medium-light skin tone, medium-dark skin tone",1,[]],["👨🏼❤️👨🏿","couple with heart: man, man, medium-light skin tone, dark skin tone",1,[]],["👨🏽❤️👨🏻","couple with heart: man, man, medium skin tone, light skin tone",1,[]],["👨🏽❤️👨🏼","couple with heart: man, man, medium skin tone, medium-light skin tone",1,[]],["👨🏽❤️👨🏽","couple with heart: man, man, medium skin tone",1,[]],["👨🏽❤️👨🏾","couple with heart: man, man, medium skin tone, medium-dark skin tone",1,[]],["👨🏽❤️👨🏿","couple with heart: man, man, medium skin tone, dark skin tone",1,[]],["👨🏾❤️👨🏻","couple with heart: man, man, medium-dark skin tone, light skin tone",1,[]],["👨🏾❤️👨🏼","couple with heart: man, man, medium-dark skin tone, medium-light skin tone",1,[]],["👨🏾❤️👨🏽","couple with heart: man, man, medium-dark skin tone, medium skin tone",1,[]],["👨🏾❤️👨🏾","couple with heart: man, man, medium-dark skin tone",1,[]],["👨🏾❤️👨🏿","couple with heart: man, man, medium-dark skin tone, dark skin tone",1,[]],["👨🏿❤️👨🏻","couple with heart: man, man, dark skin tone, light skin tone",1,[]],["👨🏿❤️👨🏼","couple with heart: man, man, dark skin tone, medium-light skin tone",1,[]],["👨🏿❤️👨🏽","couple with heart: man, man, dark skin tone, medium skin tone",1,[]],["👨🏿❤️👨🏾","couple with heart: man, man, dark skin tone, medium-dark skin tone",1,[]],["👨🏿❤️👨🏿","couple with heart: man, man, dark skin tone",1,[]],["👩❤️👩","couple with heart: woman, woman",1,[]],["👩🏻❤️👩🏻","couple with heart: woman, woman, light skin tone",1,[]],["👩🏻❤️👩🏼","couple with heart: woman, woman, light skin tone, medium-light skin tone",1,[]],["👩🏻❤️👩🏽","couple with heart: woman, woman, light skin tone, medium skin tone",1,[]],["👩🏻❤️👩🏾","couple with heart: woman, woman, light skin tone, medium-dark skin tone",1,[]],["👩🏻❤️👩🏿","couple with heart: woman, woman, light skin tone, dark skin tone",1,[]],["👩🏼❤️👩🏻","couple with heart: woman, woman, medium-light skin tone, light skin tone",1,[]],["👩🏼❤️👩🏼","couple with heart: woman, woman, medium-light skin tone",1,[]],["👩🏼❤️👩🏽","couple with heart: woman, woman, medium-light skin tone, medium skin tone",1,[]],["👩🏼❤️👩🏾","couple with heart: woman, woman, medium-light skin tone, medium-dark skin tone",1,[]],["👩🏼❤️👩🏿","couple with heart: woman, woman, medium-light skin tone, dark skin tone",1,[]],["👩🏽❤️👩🏻","couple with heart: woman, woman, medium skin tone, light skin tone",1,[]],["👩🏽❤️👩🏼","couple with heart: woman, woman, medium skin tone, medium-light skin tone",1,[]],["👩🏽❤️👩🏽","couple with heart: woman, woman, medium skin tone",1,[]],["👩🏽❤️👩🏾","couple with heart: woman, woman, medium skin tone, medium-dark skin tone",1,[]],["👩🏽❤️👩🏿","couple with heart: woman, woman, medium skin tone, dark skin tone",1,[]],["👩🏾❤️👩🏻","couple with heart: woman, woman, medium-dark skin tone, light skin tone",1,[]],["👩🏾❤️👩🏼","couple with heart: woman, woman, medium-dark skin tone, medium-light skin tone",1,[]],["👩🏾❤️👩🏽","couple with heart: woman, woman, medium-dark skin tone, medium skin tone",1,[]],["👩🏾❤️👩🏾","couple with heart: woman, woman, medium-dark skin tone",1,[]],["👩🏾❤️👩🏿","couple with heart: woman, woman, medium-dark skin tone, dark skin tone",1,[]],["👩🏿❤️👩🏻","couple with heart: woman, woman, dark skin tone, light skin tone",1,[]],["👩🏿❤️👩🏼","couple with heart: woman, woman, dark skin tone, medium-light skin tone",1,[]],["👩🏿❤️👩🏽","couple with heart: woman, woman, dark skin tone, medium skin tone",1,[]],["👩🏿❤️👩🏾","couple with heart: woman, woman, dark skin tone, medium-dark skin tone",1,[]],["👩🏿❤️👩🏿","couple with heart: woman, woman, dark skin tone",1,[]],["👨👩👦","family: man, woman, boy",1,[]],["👨👩👧","family: man, woman, girl",1,[]],["👨👩👧👦","family: man, woman, girl, boy",1,[]],["👨👩👦👦","family: man, woman, boy, boy",1,[]],["👨👩👧👧","family: man, woman, girl, girl",1,[]],["👨👨👦","family: man, man, boy",1,[]],["👨👨👧","family: man, man, girl",1,[]],["👨👨👧👦","family: man, man, girl, boy",1,[]],["👨👨👦👦","family: man, man, boy, boy",1,[]],["👨👨👧👧","family: man, man, girl, girl",1,[]],["👩👩👦","family: woman, woman, boy",1,[]],["👩👩👧","family: woman, woman, girl",1,[]],["👩👩👧👦","family: woman, woman, girl, boy",1,[]],["👩👩👦👦","family: woman, woman, boy, boy",1,[]],["👩👩👧👧","family: woman, woman, girl, girl",1,[]],["👨👦","family: man, boy",1,[]],["👨👦👦","family: man, boy, boy",1,[]],["👨👧","family: man, girl",1,[]],["👨👧👦","family: man, girl, boy",1,[]],["👨👧👧","family: man, girl, girl",1,[]],["👩👦","family: woman, boy",1,[]],["👩👦👦","family: woman, boy, boy",1,[]],["👩👧","family: woman, girl",1,[]],["👩👧👦","family: woman, girl, boy",1,[]],["👩👧👧","family: woman, girl, girl",1,[]],["🗣️","speaking head",1,["face","head","silhouette","speak","speaking"]],["👤","bust in silhouette",1,["bust","mysterious","shadow","silhouette"]],["👥","busts in silhouette",1,["bff","bust","busts","everyone","friend","friends","people","silhouette"]],["🫂","people hugging",1,["comfort","embrace","farewell","friendship","goodbye","hello","hug","hugging","love","people","thanks"]],["👪","family",1,["child","family"]],["🧑🧑🧒","family: adult, adult, child",1,["adult","child","family"]],["🧑🧑🧒🧒","family: adult, adult, child, child",1,["adult","child","family"]],["🧑🧒","family: adult, child",1,["adult","child","family"]],["🧑🧒🧒","family: adult, child, child",1,["adult","child","family"]],["👣","footprints",1,["barefoot","clothing","footprint","footprints","omw","print","walk"]],["","fingerprint",1,["clue","crime","detective","fingerprint","forensics","identity","mystery","print","safety","trace"]],["🐵","monkey face",2,["animal","banana","face","monkey"]],["🐒","monkey",2,["animal","banana","monkey"]],["🦍","gorilla",2,["animal","gorilla"]],["🦧","orangutan",2,["animal","ape","monkey","orangutan"]],["🐶","dog face",2,["adorbs","animal","dog","face","pet","puppies","puppy"]],["🐕","dog",2,["animal","animals","dog","dogs","pet"]],["🦮","guide dog",2,["accessibility","animal","blind","dog","guide"]],["🐕🦺","service dog",2,["accessibility","animal","assistance","dog","service"]],["🐩","poodle",2,["animal","dog","fluffy","poodle"]],["🐺","wolf",2,["animal","face","wolf"]],["🦊","fox",2,["animal","face","fox"]],["🦝","raccoon",2,["animal","curious","raccoon","sly"]],["🐱","cat face",2,["animal","cat","face","kitten","kitty","pet"]],["🐈","cat",2,["animal","animals","cat","cats","kitten","pet"]],["🐈⬛","black cat",2,["animal","black","cat","feline","halloween","meow","unlucky"]],["🦁","lion",2,["alpha","animal","face","Leo","lion","mane","order","rawr","roar","safari","strong","zodiac"]],["🐯","tiger face",2,["animal","big","cat","face","predator","tiger"]],["🐅","tiger",2,["animal","big","cat","predator","tiger","zoo"]],["🐆","leopard",2,["animal","big","cat","leopard","predator","zoo"]],["🐴","horse face",2,["animal","dressage","equine","face","farm","horse","horses"]],["🫎","moose",2,["alces","animal","antlers","elk","mammal","moose"]],["🫏","donkey",2,["animal","ass","burro","donkey","hinny","mammal","mule","stubborn"]],["🐎","horse",2,["animal","equestrian","farm","horse","racehorse","racing"]],["🦄","unicorn",2,["face","unicorn"]],["🦓","zebra",2,["animal","stripe","zebra"]],["🦌","deer",2,["animal","deer"]],["🦬","bison",2,["animal","bison","buffalo","herd","wisent"]],["🐮","cow face",2,["animal","cow","face","farm","milk","moo"]],["🐂","ox",2,["animal","animals","bull","farm","ox","Taurus","zodiac"]],["🐃","water buffalo",2,["animal","buffalo","water","zoo"]],["🐄","cow",2,["animal","animals","cow","farm","milk","moo"]],["🐷","pig face",2,["animal","bacon","face","farm","pig","pork"]],["🐖","pig",2,["animal","bacon","farm","pig","pork","sow"]],["🐗","boar",2,["animal","boar","pig"]],["🐽","pig nose",2,["animal","face","farm","nose","pig","smell","snout"]],["🐏","ram",2,["animal","Aries","horns","male","ram","sheep","zodiac","zoo"]],["🐑","ewe",2,["animal","baa","ewe","farm","female","fluffy","lamb","sheep","wool"]],["🐐","goat",2,["animal","Capricorn","farm","goat","milk","zodiac"]],["🐪","camel",2,["animal","camel","desert","dromedary","hump","one"]],["🐫","two-hump camel",2,["animal","bactrian","camel","desert","hump","two","two-hump"]],["🦙","llama",2,["alpaca","animal","guanaco","llama","vicuña","wool"]],["🦒","giraffe",2,["animal","giraffe","spots"]],["🐘","elephant",2,["animal","elephant"]],["🦣","mammoth",2,["animal","extinction","large","mammoth","tusk","wooly"]],["🦏","rhinoceros",2,["animal","rhinoceros"]],["🦛","hippopotamus",2,["animal","hippo","hippopotamus"]],["🐭","mouse face",2,["animal","face","mouse"]],["🐁","mouse",2,["animal","animals","mouse"]],["🐀","rat",2,["animal","rat"]],["🐹","hamster",2,["animal","face","hamster","pet"]],["🐰","rabbit face",2,["animal","bunny","face","pet","rabbit"]],["🐇","rabbit",2,["animal","bunny","pet","rabbit"]],["🐿️","chipmunk",2,["animal","chipmunk","squirrel"]],["🦫","beaver",2,["animal","beaver","dam","teeth"]],["🦔","hedgehog",2,["animal","hedgehog","spiny"]],["🦇","bat",2,["animal","bat","vampire"]],["🐻","bear",2,["animal","bear","face","grizzly","growl","honey"]],["🐻❄️","polar bear",2,["animal","arctic","bear","polar","white"]],["🐨","koala",2,["animal","australia","bear","down","face","koala","marsupial","under"]],["🐼","panda",2,["animal","bamboo","face","panda"]],["🦥","sloth",2,["lazy","sloth","slow"]],["🦦","otter",2,["animal","fishing","otter","playful"]],["🦨","skunk",2,["animal","skunk","stink"]],["🦘","kangaroo",2,["animal","joey","jump","kangaroo","marsupial"]],["🦡","badger",2,["animal","badger","honey","pester"]],["🐾","paw prints",2,["feet","paw","paws","print","prints"]],["🦃","turkey",2,["bird","gobble","thanksgiving","turkey"]],["🐔","chicken",2,["animal","bird","chicken","ornithology"]],["🐓","rooster",2,["animal","bird","ornithology","rooster"]],["🐣","hatching chick",2,["animal","baby","bird","chick","egg","hatching"]],["🐤","baby chick",2,["animal","baby","bird","chick","ornithology"]],["🐥","front-facing baby chick",2,["animal","baby","bird","chick","front-facing","newborn","ornithology"]],["🐦","bird",2,["animal","bird","ornithology"]],["🐧","penguin",2,["animal","antarctica","bird","ornithology","penguin"]],["🕊️","dove",2,["bird","dove","fly","ornithology","peace"]],["🦅","eagle",2,["animal","bird","eagle","ornithology"]],["🦆","duck",2,["animal","bird","duck","ornithology"]],["🦢","swan",2,["animal","bird","cygnet","duckling","ornithology","swan","ugly"]],["🦉","owl",2,["animal","bird","ornithology","owl","wise"]],["🦤","dodo",2,["animal","bird","dodo","extinction","large","ornithology"]],["🪶","feather",2,["bird","feather","flight","light","plumage"]],["🦩","flamingo",2,["animal","bird","flamboyant","flamingo","ornithology","tropical"]],["🦚","peacock",2,["animal","bird","colorful","ornithology","ostentatious","peacock","peahen","pretty","proud"]],["🦜","parrot",2,["animal","bird","ornithology","parrot","pirate","talk"]],["🪽","wing",2,["angelic","ascend","aviation","bird","fly","flying","heavenly","mythology","soar","wing"]],["🐦⬛","black bird",2,["animal","beak","bird","black","caw","corvid","crow","ornithology","raven","rook"]],["🪿","goose",2,["animal","bird","duck","flock","fowl","gaggle","gander","geese","goose","honk","ornithology","silly"]],["🐦🔥","phoenix",2,["ascend","ascension","emerge","fantasy","firebird","glory","immortal","phoenix","rebirth","reincarnation","reinvent","renewal","revival","revive","rise","transform"]],["🐸","frog",2,["animal","face","frog"]],["🐊","crocodile",2,["animal","crocodile","zoo"]],["🐢","turtle",2,["animal","terrapin","tortoise","turtle"]],["🦎","lizard",2,["animal","lizard","reptile"]],["🐍","snake",2,["animal","bearer","Ophiuchus","serpent","snake","zodiac"]],["🐲","dragon face",2,["animal","dragon","face","fairy","fairytale","tale"]],["🐉","dragon",2,["animal","dragon","fairy","fairytale","knights","tale"]],["🦕","sauropod",2,["brachiosaurus","brontosaurus","dinosaur","diplodocus","sauropod"]],["🦖","T-Rex",2,["dinosaur","Rex","T","T-Rex","Tyrannosaurus"]],["🐳","spouting whale",2,["animal","beach","face","ocean","spouting","whale"]],["🐋","whale",2,["animal","beach","ocean","whale"]],["🐬","dolphin",2,["animal","beach","dolphin","flipper","ocean"]],["","orca",2,["marine","ocean","whale"]],["🦭","seal",2,["animal","lion","ocean","sea","seal"]],["🐟","fish",2,["animal","dinner","fish","fishes","fishing","Pisces","zodiac"]],["🐠","tropical fish",2,["animal","fish","fishes","tropical"]],["🐡","blowfish",2,["animal","blowfish","fish"]],["🦈","shark",2,["animal","fish","shark"]],["🐙","octopus",2,["animal","creature","ocean","octopus"]],["🐚","spiral shell",2,["animal","beach","conch","sea","shell","spiral"]],["🪸","coral",2,["change","climate","coral","ocean","reef","sea"]],["🪼","jellyfish",2,["animal","aquarium","burn","invertebrate","jelly","jellyfish","life","marine","ocean","ouch","plankton","sea","sting","stinger","tentacles"]],["🦀","crab",2,["Cancer","crab","zodiac"]],["🦞","lobster",2,["animal","bisque","claws","lobster","seafood"]],["🦐","shrimp",2,["food","shellfish","shrimp","small"]],["🦑","squid",2,["animal","food","mollusk","squid"]],["🦪","oyster",2,["diving","oyster","pearl"]],["🐌","snail",2,["animal","escargot","garden","nature","slug","snail"]],["🦋","butterfly",2,["butterfly","insect","pretty"]],["","monarch butterfly",2,[]],["🐛","bug",2,["animal","bug","garden","insect"]],["🐜","ant",2,["animal","ant","garden","insect"]],["🐝","honeybee",2,["animal","bee","bumblebee","honey","honeybee","insect","nature","spring"]],["🪲","beetle",2,["animal","beetle","bug","insect"]],["🐞","lady beetle",2,["animal","beetle","garden","insect","lady","ladybird","ladybug","nature"]],["🦗","cricket",2,["animal","bug","cricket","grasshopper","insect","Orthoptera"]],["🪳","cockroach",2,["animal","cockroach","insect","pest","roach"]],["🕷️","spider",2,["animal","insect","spider"]],["🕸️","spider web",2,["spider","web"]],["🦂","scorpion",2,["Scorpio","scorpion","Scorpius","zodiac"]],["🦟","mosquito",2,["bite","disease","fever","insect","malaria","mosquito","pest","virus"]],["🪰","fly",2,["animal","disease","fly","insect","maggot","pest","rotting"]],["🪱","worm",2,["animal","annelid","earthworm","parasite","worm"]],["🦠","microbe",2,["amoeba","bacteria","microbe","science","virus"]],["💐","bouquet",2,["anniversary","birthday","bouquet","date","flower","love","plant","romance"]],["🌸","cherry blossom",2,["blossom","cherry","flower","plant","spring","springtime"]],["💮","white flower",2,["flower","white"]],["🪷","lotus",2,["beauty","Buddhism","calm","flower","Hinduism","lotus","peace","purity","serenity"]],["🏵️","rosette",2,["plant","rosette"]],["🌹","rose",2,["beauty","elegant","flower","love","plant","red","rose","valentine"]],["🥀","wilted flower",2,["dying","flower","wilted"]],["🌺","hibiscus",2,["flower","hibiscus","plant"]],["🌻","sunflower",2,["flower","outdoors","plant","sun","sunflower"]],["🌼","blossom",2,["blossom","buttercup","dandelion","flower","plant"]],["🌷","tulip",2,["blossom","flower","growth","plant","tulip"]],["🪻","hyacinth",2,["bloom","bluebonnet","flower","hyacinth","indigo","lavender","lilac","lupine","plant","purple","shrub","snapdragon","spring","violet"]],["🌱","seedling",2,["plant","sapling","seedling","sprout","young"]],["🪴","potted plant",2,["decor","grow","house","nurturing","plant","pot","potted"]],["🌲","evergreen tree",2,["christmas","evergreen","forest","pine","tree"]],["🌳","deciduous tree",2,["deciduous","forest","green","habitat","shedding","tree"]],["🌴","palm tree",2,["beach","palm","plant","tree","tropical"]],["🌵","cactus",2,["cactus","desert","drought","nature","plant"]],["🌾","sheaf of rice",2,["ear","grain","grains","plant","rice","sheaf"]],["🌿","herb",2,["herb","leaf","plant"]],["☘️","shamrock",2,["irish","plant","shamrock"]],["🍀","four leaf clover",2,["4","clover","four","four-leaf","irish","leaf","lucky","plant"]],["🍁","maple leaf",2,["falling","leaf","maple"]],["🍂","fallen leaf",2,["autumn","fall","fallen","falling","leaf"]],["🍃","leaf fluttering in wind",2,["blow","flutter","fluttering","leaf","wind"]],["🪹","empty nest",2,["branch","empty","home","nest","nesting"]],["🪺","nest with eggs",2,["bird","branch","egg","eggs","nest","nesting"]],["🍄","mushroom",2,["fungus","mushroom","toadstool"]],["","leafless tree",2,["bare","barren","branches","dead","drought","leafless","tree","trunk","winter","wood"]],["🍇","grapes",3,["Dionysus","fruit","grape","grapes"]],["🍈","melon",3,["cantaloupe","fruit","melon"]],["🍉","watermelon",3,["fruit","watermelon"]],["🍊","tangerine",3,["c","citrus","fruit","nectarine","orange","tangerine","vitamin"]],["🍋","lemon",3,["citrus","fruit","lemon","sour"]],["🍋🟩","lime",3,["acidity","citrus","cocktail","fruit","garnish","key","lime","margarita","mojito","refreshing","salsa","sour","tangy","tequila","tropical","zest"]],["🍌","banana",3,["banana","fruit","potassium"]],["🍍","pineapple",3,["colada","fruit","pina","pineapple","tropical"]],["🥭","mango",3,["food","fruit","mango","tropical"]],["🍎","red apple",3,["apple","diet","food","fruit","health","red","ripe"]],["🍏","green apple",3,["apple","fruit","green"]],["🍐","pear",3,["fruit","pear"]],["🍑","peach",3,["fruit","peach"]],["🍒","cherries",3,["berries","cherries","cherry","fruit","red"]],["🍓","strawberry",3,["berry","fruit","strawberry"]],["🫐","blueberries",3,["berries","berry","bilberry","blue","blueberries","blueberry","food","fruit"]],["🥝","kiwi fruit",3,["food","fruit","kiwi"]],["🍅","tomato",3,["food","fruit","tomato","vegetable"]],["🫒","olive",3,["food","olive"]],["🥥","coconut",3,["coconut","colada","palm","piña"]],["🥑","avocado",3,["avocado","food","fruit"]],["🍆","eggplant",3,["aubergine","eggplant","vegetable"]],["🥔","potato",3,["food","potato","vegetable"]],["🥕","carrot",3,["carrot","food","vegetable"]],["🌽","ear of corn",3,["corn","crops","ear","farm","maize","maze"]],["🌶️","hot pepper",3,["hot","pepper"]],["🫑","bell pepper",3,["bell","capsicum","food","pepper","vegetable"]],["🥒","cucumber",3,["cucumber","food","pickle","vegetable"]],["","pickle",3,[]],["🥬","leafy green",3,["bok","burgers","cabbage","choy","green","kale","leafy","lettuce","salad"]],["🥦","broccoli",3,["broccoli","cabbage","wild"]],["🧄","garlic",3,["flavoring","garlic"]],["🧅","onion",3,["flavoring","onion"]],["🥜","peanuts",3,["food","nut","peanut","peanuts","vegetable"]],["🫘","beans",3,["beans","food","kidney","legume","small"]],["🌰","chestnut",3,["almond","chestnut","plant"]],["🫚","ginger root",3,["beer","ginger","health","herb","natural","root","spice"]],["🫛","pea pod",3,["beans","beanstalk","edamame","legume","pea","pod","soybean","vegetable","veggie"]],["🍄🟫","brown mushroom",3,["food","fungi","fungus","mushroom","nature","pizza","portobello","shiitake","shroom","spore","sprout","toppings","truffle","vegetable","vegetarian","veggie"]],["","root vegetable",3,["beet","food","garden","radish","root","salad","turnip","vegetable","vegetarian"]],["🍞","bread",3,["bread","carbs","food","grain","loaf","restaurant","toast","wheat"]],["🥐","croissant",3,["bread","breakfast","crescent","croissant","food","french","roll"]],["🥖","baguette bread",3,["baguette","bread","food","french"]],["🫓","flatbread",3,["arepa","bread","flatbread","food","gordita","lavash","naan","pita"]],["🥨","pretzel",3,["convoluted","pretzel","twisted"]],["🥯","bagel",3,["bagel","bakery","bread","breakfast","schmear"]],["🥞","pancakes",3,["breakfast","crêpe","food","hotcake","pancake","pancakes"]],["🧇","waffle",3,["breakfast","indecisive","iron","waffle"]],["🧀","cheese wedge",3,["cheese","wedge"]],["🍖","meat on bone",3,["bone","meat"]],["🍗","poultry leg",3,["bone","chicken","drumstick","hungry","leg","poultry","turkey"]],["🥩","cut of meat",3,["chop","cut","lambchop","meat","porkchop","red","steak"]],["🥓","bacon",3,["bacon","breakfast","food","meat"]],["🍔","hamburger",3,["burger","eat","fast","food","hamburger","hungry"]],["🍟","french fries",3,["fast","food","french","fries"]],["🍕","pizza",3,["cheese","food","hungry","pepperoni","pizza","slice"]],["🌭","hot dog",3,["dog","frankfurter","hot","hotdog","sausage"]],["🥪","sandwich",3,["bread","sandwich"]],["🌮","taco",3,["mexican","taco"]],["🌯","burrito",3,["burrito","mexican","wrap"]],["🫔","tamale",3,["food","mexican","pamonha","tamale","wrapped"]],["🥙","stuffed flatbread",3,["falafel","flatbread","food","gyro","kebab","stuffed"]],["🧆","falafel",3,["chickpea","falafel","meatball"]],["🥚","egg",3,["breakfast","egg","food"]],["🍳","cooking",3,["breakfast","cooking","easy","egg","fry","frying","over","pan","restaurant","side","sunny","up"]],["🥘","shallow pan of food",3,["casserole","food","paella","pan","shallow"]],["🍲","pot of food",3,["food","pot","soup","stew"]],["🫕","fondue",3,["cheese","chocolate","fondue","food","melted","pot","ski"]],["🥣","bowl with spoon",3,["bowl","breakfast","cereal","congee","oatmeal","porridge","spoon"]],["🥗","green salad",3,["food","green","salad"]],["🍿","popcorn",3,["corn","movie","pop","popcorn"]],["🧈","butter",3,["butter","dairy"]],["🧂","salt",3,["condiment","flavor","mad","salt","salty","shaker","taste","upset"]],["🥫","canned food",3,["can","canned","food"]],["🍱","bento box",3,["bento","box","food"]],["🍘","rice cracker",3,["cracker","food","rice"]],["🍙","rice ball",3,["ball","food","Japanese","rice"]],["🍚","cooked rice",3,["cooked","food","rice"]],["🍛","curry rice",3,["curry","food","rice"]],["🍜","steaming bowl",3,["bowl","chopsticks","food","noodle","pho","ramen","soup","steaming"]],["🍝","spaghetti",3,["food","meatballs","pasta","restaurant","spaghetti"]],["🍠","roasted sweet potato",3,["food","potato","roasted","sweet"]],["🍢","oden",3,["food","kebab","oden","restaurant","seafood","skewer","stick"]],["🍣","sushi",3,["food","sushi"]],["🍤","fried shrimp",3,["fried","prawn","shrimp","tempura"]],["🍥","fish cake with swirl",3,["cake","fish","food","pastry","restaurant","swirl"]],["🥮","moon cake",3,["autumn","cake","festival","moon","yuèbǐng"]],["🍡","dango",3,["dango","dessert","Japanese","skewer","stick","sweet"]],["🥟","dumpling",3,["dumpling","empanada","gyōza","jiaozi","pierogi","potsticker"]],["🥠","fortune cookie",3,["cookie","fortune","prophecy"]],["🥡","takeout box",3,["box","chopsticks","delivery","food","oyster","pail","takeout"]],["🍦","soft ice cream",3,["cream","dessert","food","ice","icecream","restaurant","serve","soft","sweet"]],["🍧","shaved ice",3,["dessert","ice","restaurant","shaved","sweet"]],["🍨","ice cream",3,["cream","dessert","food","ice","restaurant","sweet"]],["🍩","doughnut",3,["breakfast","dessert","donut","doughnut","food","sweet"]],["🍪","cookie",3,["chip","chocolate","cookie","dessert","sweet"]],["🎂","birthday cake",3,["bday","birthday","cake","celebration","dessert","happy","pastry","sweet"]],["🍰","shortcake",3,["cake","dessert","pastry","shortcake","slice","sweet"]],["🧁","cupcake",3,["bakery","cupcake","dessert","sprinkles","sugar","sweet","treat"]],["🥧","pie",3,["apple","filling","fruit","meat","pastry","pie","pumpkin","slice"]],["🍫","chocolate bar",3,["bar","candy","chocolate","dessert","halloween","sweet","tooth"]],["🍬","candy",3,["candy","cavities","dessert","halloween","restaurant","sweet","tooth","wrapper"]],["🍭","lollipop",3,["candy","dessert","food","lollipop","restaurant","sweet"]],["🍮","custard",3,["custard","dessert","pudding","sweet"]],["🍯","honey pot",3,["barrel","bear","food","honey","honeypot","jar","pot","sweet"]],["🍼","baby bottle",3,["babies","baby","birth","born","bottle","drink","infant","milk","newborn"]],["🥛","glass of milk",3,["drink","glass","milk"]],["☕","hot beverage",3,["beverage","cafe","caffeine","chai","coffee","drink","hot","morning","steaming","tea"]],["🫖","teapot",3,["brew","drink","food","pot","tea","teapot"]],["🍵","teacup without handle",3,["beverage","cup","drink","handle","oolong","tea","teacup"]],["🍶","sake",3,["bar","beverage","bottle","cup","drink","restaurant","sake"]],["🍾","bottle with popping cork",3,["bar","bottle","cork","drink","popping"]],["🍷","wine glass",3,["alcohol","bar","beverage","booze","club","drink","drinking","drinks","glass","restaurant","wine"]],["🍸","cocktail glass",3,["alcohol","bar","booze","club","cocktail","drink","drinking","drinks","glass","mad","martini","men"]],["🍹","tropical drink",3,["alcohol","bar","booze","club","cocktail","drink","drinking","drinks","drunk","mai","party","tai","tropical","tropics"]],["🍺","beer mug",3,["alcohol","ale","bar","beer","booze","drink","drinking","drinks","mug","octoberfest","oktoberfest","pint","stein","summer"]],["🍻","clinking beer mugs",3,["alcohol","bar","beer","booze","bottoms","cheers","clink","clinking","drinking","drinks","mugs"]],["🥂","clinking glasses",3,["celebrate","clink","clinking","drink","glass","glasses"]],["🥃","tumbler glass",3,["glass","liquor","scotch","shot","tumbler","whiskey","whisky"]],["🫗","pouring liquid",3,["accident","drink","empty","glass","liquid","oops","pour","pouring","spill","water"]],["🥤","cup with straw",3,["cup","drink","juice","malt","soda","soft","straw","water"]],["🧋","bubble tea",3,["boba","bubble","food","milk","pearl","tea"]],["🧃","beverage box",3,["beverage","box","juice","straw","sweet"]],["🧉","mate",3,["drink","mate"]],["🧊","ice",3,["cold","cube","ice","iceberg"]],["🥢","chopsticks",3,["chopsticks","hashi","jeotgarak","kuaizi"]],["🍽️","fork and knife with plate",3,["cooking","dinner","eat","fork","knife","plate"]],["🍴","fork and knife",3,["breakfast","breaky","cooking","cutlery","delicious","dinner","eat","feed","food","fork","hungry","knife","lunch","restaurant","yum","yummy"]],["🥄","spoon",3,["eat","spoon","tableware"]],["🔪","kitchen knife",3,["chef","cooking","hocho","kitchen","knife","tool","weapon"]],["🫙","jar",3,["condiment","container","empty","jar","nothing","sauce","store"]],["🏺","amphora",3,["amphora","Aquarius","cooking","drink","jug","tool","weapon","zodiac"]],["🌍","globe showing Europe-Africa",4,["Africa","earth","Europe","Europe-Africa","globe","showing","world"]],["🌎","globe showing Americas",4,["Americas","earth","globe","showing","world"]],["🌏","globe showing Asia-Australia",4,["Asia","Asia-Australia","Australia","earth","globe","showing","world"]],["🌐","globe with meridians",4,["earth","globe","internet","meridians","web","world","worldwide"]],["🗺️","world map",4,["map","world"]],["🗾","map of Japan",4,["Japan","map"]],["🧭","compass",4,["compass","direction","magnetic","navigation","orienteering"]],["🏔️","snow-capped mountain",4,["cold","mountain","snow","snow-capped"]],["⛰️","mountain",4,["mountain"]],["","landslide",4,["avalanche","danger","disaster","earthquake","mountain","mudslide","rocks"]],["🌋","volcano",4,["eruption","mountain","nature","volcano"]],["🗻","mount fuji",4,["fuji","mount","mountain","nature"]],["🏕️","camping",4,["camping"]],["🏖️","beach with umbrella",4,["beach","umbrella"]],["🏜️","desert",4,["desert"]],["🏝️","desert island",4,["desert","island"]],["🏞️","national park",4,["national","park"]],["🏟️","stadium",4,["stadium"]],["🏛️","classical building",4,["building","classical"]],["🏗️","building construction",4,["building","construction","crane"]],["🧱","brick",4,["brick","bricks","clay","mortar","wall"]],["🪨","rock",4,["boulder","heavy","rock","solid","stone","tough"]],["🪵","wood",4,["log","lumber","timber","wood"]],["🛖","hut",4,["home","house","hut","roundhouse","shelter","yurt"]],["🏘️","houses",4,["house","houses"]],["🏚️","derelict house",4,["derelict","home","house"]],["🏠","house",4,["building","country","heart","home","house","ranch","settle","simple","suburban","suburbia","where"]],["🏡","house with garden",4,["building","country","garden","heart","home","house","ranch","settle","simple","suburban","suburbia","where"]],["🏢","office building",4,["building","city","cubical","job","office"]],["🏣","Japanese post office",4,["building","Japanese","office","post"]],["🏤","post office",4,["building","European","office","post"]],["🏥","hospital",4,["building","doctor","hospital","medicine"]],["🏦","bank",4,["bank","building"]],["🏨","hotel",4,["building","hotel"]],["🏩","love hotel",4,["building","hotel","love"]],["🏪","convenience store",4,["24","building","convenience","hours","store"]],["🏫","school",4,["building","school"]],["🏬","department store",4,["building","department","store"]],["🏭","factory",4,["building","factory"]],["🏯","Japanese castle",4,["building","castle","Japanese"]],["🏰","castle",4,["building","castle","European"]],["💒","wedding",4,["chapel","hitched","nuptials","romance","wedding"]],["🗼","Tokyo tower",4,["Tokyo","tower"]],["🗽","Statue of Liberty",4,["liberty","Liberty","new","ny","nyc","statue","Statue","york"]],["⛪","church",4,["bless","chapel","Christian","church","cross","religion"]],["🕌","mosque",4,["islam","masjid","mosque","Muslim","religion"]],["🛕","hindu temple",4,["hindu","temple"]],["🕍","synagogue",4,["Jew","Jewish","judaism","religion","synagogue","temple"]],["⛩️","shinto shrine",4,["religion","shinto","shrine"]],["🕋","kaaba",4,["hajj","islam","kaaba","Muslim","religion","umrah"]],["⛲","fountain",4,["fountain"]],["⛺","tent",4,["camping","tent"]],["🌁","foggy",4,["fog","foggy"]],["🌃","night with stars",4,["night","star","stars"]],["🏙️","cityscape",4,["city","cityscape"]],["🌄","sunrise over mountains",4,["morning","mountains","over","sun","sunrise"]],["🌅","sunrise",4,["morning","nature","sun","sunrise"]],["🌆","cityscape at dusk",4,["at","building","city","cityscape","dusk","evening","landscape","sun","sunset"]],["🌇","sunset",4,["building","dusk","sun","sunset"]],["🌉","bridge at night",4,["at","bridge","night"]],["♨️","hot springs",4,["hot","hotsprings","springs","steaming"]],["🎠","carousel horse",4,["carousel","entertainment","horse"]],["🛝","playground slide",4,["amusement","park","play","playground","playing","slide","sliding","theme"]],["🎡","ferris wheel",4,["amusement","ferris","park","theme","wheel"]],["🎢","roller coaster",4,["amusement","coaster","park","roller","theme"]],["💈","barber pole",4,["barber","cut","fresh","haircut","pole","shave"]],["🎪","circus tent",4,["circus","tent"]],["🚂","locomotive",4,["caboose","engine","locomotive","railway","steam","train","trains","travel"]],["🚃","railway car",4,["car","electric","railway","train","tram","travel","trolleybus"]],["🚄","high-speed train",4,["high-speed","railway","shinkansen","speed","train"]],["🚅","bullet train",4,["bullet","high-speed","nose","railway","shinkansen","speed","train","travel"]],["🚆","train",4,["arrived","choo","railway","train"]],["🚇","metro",4,["metro","subway","travel"]],["🚈","light rail",4,["arrived","light","monorail","rail","railway"]],["🚉","station",4,["railway","station","train"]],["🚊","tram",4,["tram","trolleybus"]],["🚝","monorail",4,["monorail","vehicle"]],["🚞","mountain railway",4,["car","mountain","railway","trip"]],["🚋","tram car",4,["bus","car","tram","trolley","trolleybus"]],["🚌","bus",4,["bus","school","vehicle"]],["🚍","oncoming bus",4,["bus","cars","oncoming"]],["🚎","trolleybus",4,["bus","tram","trolley","trolleybus"]],["🚐","minibus",4,["bus","drive","minibus","van","vehicle"]],["🚑","ambulance",4,["ambulance","emergency","vehicle"]],["🚒","fire engine",4,["engine","fire","truck"]],["🚓","police car",4,["5–0","car","cops","patrol","police"]],["🚔","oncoming police car",4,["car","oncoming","police"]],["🚕","taxi",4,["cab","cabbie","car","drive","taxi","vehicle","yellow"]],["🚖","oncoming taxi",4,["cab","cabbie","cars","drove","hail","oncoming","taxi","yellow"]],["🚗","automobile",4,["automobile","car","driving","vehicle"]],["🚘","oncoming automobile",4,["automobile","car","cars","drove","oncoming","vehicle"]],["🚙","sport utility vehicle",4,["car","drive","recreational","sport","sportutility","utility","vehicle"]],["🛻","pickup truck",4,["automobile","car","flatbed","pick-up","pickup","transportation","truck"]],["🚚","delivery truck",4,["car","delivery","drive","truck","vehicle"]],["🚛","articulated lorry",4,["articulated","car","drive","lorry","move","semi","truck","vehicle"]],["🚜","tractor",4,["tractor","vehicle"]],["🏎️","racing car",4,["car","racing","zoom"]],["🏍️","motorcycle",4,["motorcycle","racing"]],["🛵","motor scooter",4,["motor","scooter"]],["🦽","manual wheelchair",4,["accessibility","manual","wheelchair"]],["🦼","motorized wheelchair",4,["accessibility","motorized","wheelchair"]],["🛺","auto rickshaw",4,["auto","rickshaw","tuk"]],["🚲","bicycle",4,["bicycle","bike","class","cycle","cycling","cyclist","gang","ride","spin","spinning"]],["🛴","kick scooter",4,["kick","scooter"]],["🛹","skateboard",4,["board","skate","skateboard","skater","wheels"]],["🛼","roller skate",4,["blades","roller","skate","skates","sport"]],["🚏","bus stop",4,["bus","busstop","stop"]],["🛣️","motorway",4,["highway","motorway","road"]],["🛤️","railway track",4,["railway","track","train"]],["🛢️","oil drum",4,["drum","oil"]],["⛽","fuel pump",4,["diesel","fuel","fuelpump","gas","gasoline","pump","station"]],["🛞","wheel",4,["car","circle","tire","turn","vehicle","wheel"]],["🚨","police car light",4,["alarm","alert","beacon","car","emergency","light","police","revolving","siren"]],["🚥","horizontal traffic light",4,["horizontal","intersection","light","signal","stop","stoplight","traffic"]],["🚦","vertical traffic light",4,["drove","intersection","light","signal","stop","stoplight","traffic","vertical"]],["🛑","stop sign",4,["octagonal","sign","stop"]],["🚧","construction",4,["barrier","construction"]],["","lighthouse",4,[]],["⚓","anchor",4,["anchor","ship","tool"]],["🛟","ring buoy",4,["buoy","float","life","lifesaver","preserver","rescue","ring","safety","save","saver","swim"]],["⛵","sailboat",4,["boat","resort","sailboat","sailing","sea","yacht"]],["🛶","canoe",4,["boat","canoe"]],["🚤","speedboat",4,["billionaire","boat","lake","luxury","millionaire","speedboat","summer","travel"]],["🛳️","passenger ship",4,["passenger","ship"]],["⛴️","ferry",4,["boat","ferry","passenger"]],["🛥️","motor boat",4,["boat","motor","motorboat"]],["🚢","ship",4,["boat","passenger","ship","travel"]],["✈️","airplane",4,["aeroplane","airplane","fly","flying","jet","plane","travel"]],["🛩️","small airplane",4,["aeroplane","airplane","plane","small"]],["🛫","airplane departure",4,["aeroplane","airplane","check-in","departure","departures","plane"]],["🛬","airplane arrival",4,["aeroplane","airplane","arrival","arrivals","arriving","landing","plane"]],["🪂","parachute",4,["hang-glide","parachute","parasail","skydive"]],["💺","seat",4,["chair","seat"]],["🚁","helicopter",4,["copter","helicopter","roflcopter","travel","vehicle"]],["🚟","suspension railway",4,["railway","suspension"]],["🚠","mountain cableway",4,["cable","cableway","gondola","lift","mountain","ski"]],["🚡","aerial tramway",4,["aerial","cable","car","gondola","ropeway","tramway"]],["🛰️","satellite",4,["satellite","space"]],["🚀","rocket",4,["launch","rocket","rockets","space","travel"]],["🛸","flying saucer",4,["aliens","extra","flying","saucer","terrestrial","UFO"]],["🛎️","bellhop bell",4,["bell","bellhop","hotel"]],["🧳","luggage",4,["bag","luggage","packing","roller","suitcase","travel"]],["⌛","hourglass done",4,["done","hourglass","sand","time","timer"]],["⏳","hourglass not done",4,["done","flowing","hourglass","hours","not","sand","timer","waiting","yolo"]],["⌚","watch",4,["clock","time","watch"]],["⏰","alarm clock",4,["alarm","clock","hours","hrs","late","time","waiting"]],["⏱️","stopwatch",4,["clock","stopwatch","time"]],["⏲️","timer clock",4,["clock","timer"]],["🕰️","mantelpiece clock",4,["clock","mantelpiece","time"]],["🕛","twelve o’clock",4,["12","12:00","clock","o’clock","time","twelve"]],["🕧","twelve-thirty",4,["12","12:30","30","clock","thirty","time","twelve","twelve-thirty"]],["🕐","one o’clock",4,["1","1:00","clock","o’clock","one","time"]],["🕜","one-thirty",4,["1","1:30","30","clock","one","one-thirty","thirty","time"]],["🕑","two o’clock",4,["2","2:00","clock","o’clock","time","two"]],["🕝","two-thirty",4,["2","2:30","30","clock","thirty","time","two","two-thirty"]],["🕒","three o’clock",4,["3","3:00","clock","o’clock","three","time"]],["🕞","three-thirty",4,["3","3:30","30","clock","thirty","three","three-thirty","time"]],["🕓","four o’clock",4,["4","4:00","clock","four","o’clock","time"]],["🕟","four-thirty",4,["30","4","4:30","clock","four","four-thirty","thirty","time"]],["🕔","five o’clock",4,["5","5:00","clock","five","o’clock","time"]],["🕠","five-thirty",4,["30","5","5:30","clock","five","five-thirty","thirty","time"]],["🕕","six o’clock",4,["6","6:00","clock","o’clock","six","time"]],["🕡","six-thirty",4,["30","6","6:30","clock","six","six-thirty","thirty"]],["🕖","seven o’clock",4,["0","7","7:00","clock","o’clock","seven"]],["🕢","seven-thirty",4,["30","7","7:30","clock","seven","seven-thirty","thirty"]],["🕗","eight o’clock",4,["8","8:00","clock","eight","o’clock","time"]],["🕣","eight-thirty",4,["30","8","8:30","clock","eight","eight-thirty","thirty","time"]],["🕘","nine o’clock",4,["9","9:00","clock","nine","o’clock","time"]],["🕤","nine-thirty",4,["30","9","9:30","clock","nine","nine-thirty","thirty","time"]],["🕙","ten o’clock",4,["0","10","10:00","clock","o’clock","ten"]],["🕥","ten-thirty",4,["10","10:30","30","clock","ten","ten-thirty","thirty","time"]],["🕚","eleven o’clock",4,["11","11:00","clock","eleven","o’clock","time"]],["🕦","eleven-thirty",4,["11","11:30","30","clock","eleven","eleven-thirty","thirty","time"]],["🌑","new moon",4,["dark","moon","new","space"]],["🌒","waxing crescent moon",4,["crescent","dreams","moon","space","waxing"]],["🌓","first quarter moon",4,["first","moon","quarter","space"]],["🌔","waxing gibbous moon",4,["gibbous","moon","space","waxing"]],["🌕","full moon",4,["full","moon","space"]],["🌖","waning gibbous moon",4,["gibbous","moon","space","waning"]],["🌗","last quarter moon",4,["last","moon","quarter","space"]],["🌘","waning crescent moon",4,["crescent","moon","space","waning"]],["🌙","crescent moon",4,["crescent","moon","ramadan","space"]],["🌚","new moon face",4,["face","moon","new","space"]],["🌛","first quarter moon face",4,["face","first","moon","quarter","space"]],["🌜","last quarter moon face",4,["dreams","face","last","moon","quarter"]],["🌡️","thermometer",4,["thermometer","weather"]],["☀️","sun",4,["bright","rays","space","sun","sunny","weather"]],["🌝","full moon face",4,["bright","face","full","moon"]],["🌞","sun with face",4,["beach","bright","day","face","heat","shine","sun","sunny","sunshine","weather"]],["🪐","ringed planet",4,["planet","ringed","saturn","saturnine"]],["⭐","star",4,["astronomy","medium","star","stars","white"]],["🌟","glowing star",4,["glittery","glow","glowing","night","shining","sparkle","star","win"]],["🌠","shooting star",4,["falling","night","shooting","space","star"]],["🌌","milky way",4,["milky","space","way"]],["☁️","cloud",4,["cloud","weather"]],["⛅","sun behind cloud",4,["behind","cloud","cloudy","sun","weather"]],["⛈️","cloud with lightning and rain",4,["cloud","lightning","rain","thunder","thunderstorm"]],["🌤️","sun behind small cloud",4,["behind","cloud","sun","weather"]],["🌥️","sun behind large cloud",4,["behind","cloud","sun","weather"]],["🌦️","sun behind rain cloud",4,["behind","cloud","rain","sun","weather"]],["🌧️","cloud with rain",4,["cloud","rain","weather"]],["🌨️","cloud with snow",4,["cloud","cold","snow","weather"]],["🌩️","cloud with lightning",4,["cloud","lightning","weather"]],["🌪️","tornado",4,["cloud","tornado","weather","whirlwind"]],["🌫️","fog",4,["cloud","fog","weather"]],["🌬️","wind face",4,["blow","cloud","face","wind"]],["🌀","cyclone",4,["cyclone","dizzy","hurricane","twister","typhoon","weather"]],["🌈","rainbow",4,["gay","genderqueer","glbt","glbtq","lesbian","lgbt","lgbtq","lgbtqia","nature","pride","queer","rain","rainbow","trans","transgender","weather"]],["🌂","closed umbrella",4,["closed","clothing","rain","umbrella"]],["☂️","umbrella",4,["clothing","rain","umbrella"]],["☔","umbrella with rain drops",4,["clothing","drop","drops","rain","umbrella","weather"]],["⛱️","umbrella on ground",4,["ground","rain","sun","umbrella"]],["⚡","high voltage",4,["danger","electric","electricity","high","lightning","nature","thunder","thunderbolt","voltage","zap"]],["❄️","snowflake",4,["cold","snow","snowflake","weather"]],["☃️","snowman",4,["cold","man","snow","snowman"]],["⛄","snowman without snow",4,["cold","man","snow","snowman"]],["☄️","comet",4,["comet","space"]],["","meteor",4,[]],["🔥","fire",4,["af","burn","fire","flame","hot","lit","litaf","tool"]],["💧","droplet",4,["cold","comic","drop","droplet","nature","sad","sweat","tear","water","weather"]],["🌊","water wave",4,["nature","ocean","surf","surfer","surfing","water","wave"]],["🎃","jack-o-lantern",5,["celebration","halloween","jack","jack-o-lantern","lantern","pumpkin"]],["🎄","Christmas tree",5,["celebration","Christmas","tree"]],["🎆","fireworks",5,["boom","celebration","entertainment","fireworks","yolo"]],["🎇","sparkler",5,["boom","celebration","fireworks","sparkle","sparkler"]],["🧨","firecracker",5,["dynamite","explosive","fire","firecracker","fireworks","light","pop","popping","spark"]],["✨","sparkles",5,["*","magic","sparkle","sparkles","star"]],["🎈","balloon",5,["balloon","birthday","celebrate","celebration"]],["🎉","party popper",5,["awesome","birthday","celebrate","celebration","excited","hooray","party","popper","tada","woohoo"]],["🎊","confetti ball",5,["ball","celebrate","celebration","confetti","party","woohoo"]],["🎋","tanabata tree",5,["banner","celebration","Japanese","tanabata","tree"]],["🎍","pine decoration",5,["bamboo","celebration","decoration","Japanese","pine","plant"]],["🎎","Japanese dolls",5,["celebration","doll","dolls","festival","Japanese"]],["🎏","carp streamer",5,["carp","celebration","streamer"]],["🎐","wind chime",5,["bell","celebration","chime","wind"]],["🎑","moon viewing ceremony",5,["celebration","ceremony","moon","viewing"]],["🧧","red envelope",5,["envelope","gift","good","hóngbāo","lai","luck","money","red","see"]],["🎀","ribbon",5,["celebration","ribbon"]],["🎁","wrapped gift",5,["birthday","bow","box","celebration","christmas","gift","present","surprise","wrapped"]],["🎗️","reminder ribbon",5,["celebration","reminder","ribbon"]],["🎟️","admission tickets",5,["admission","ticket","tickets"]],["🎫","ticket",5,["admission","stub","ticket"]],["🎖️","military medal",5,["award","celebration","medal","military"]],["🏆","trophy",5,["champion","champs","prize","slay","sport","trophy","victory","win","winning"]],["🏅","sports medal",5,["award","gold","medal","sports","winner"]],["🥇","1st place medal",5,["1st","first","gold","medal","place"]],["🥈","2nd place medal",5,["2nd","medal","place","second","silver"]],["🥉","3rd place medal",5,["3rd","bronze","medal","place","third"]],["⚽","soccer ball",5,["ball","football","futbol","soccer","sport"]],["⚾","baseball",5,["ball","baseball","sport"]],["🥎","softball",5,["ball","glove","softball","sports","underarm"]],["🏀","basketball",5,["ball","basketball","hoop","sport"]],["🏐","volleyball",5,["ball","game","volleyball"]],["🏈","american football",5,["american","ball","bowl","football","sport","super"]],["🏉","rugby football",5,["ball","football","rugby","sport"]],["🎾","tennis",5,["ball","racquet","sport","tennis"]],["🥏","flying disc",5,["disc","flying","ultimate"]],["🎳","bowling",5,["ball","bowling","game","sport","strike"]],["🏏","cricket game",5,["ball","bat","cricket","game"]],["🏑","field hockey",5,["ball","field","game","hockey","stick"]],["🏒","ice hockey",5,["game","hockey","ice","puck","stick"]],["🥍","lacrosse",5,["ball","goal","lacrosse","sports","stick"]],["🏓","ping pong",5,["ball","bat","game","paddle","ping","pingpong","pong","table","tennis"]],["🏸","badminton",5,["badminton","birdie","game","racquet","shuttlecock"]],["🥊","boxing glove",5,["boxing","glove"]],["🥋","martial arts uniform",5,["arts","judo","karate","martial","taekwondo","uniform"]],["🥅","goal net",5,["goal","net"]],["⛳","flag in hole",5,["flag","golf","hole","sport"]],["⛸️","ice skate",5,["ice","skate","skating"]],["🎣","fishing pole",5,["entertainment","fish","fishing","pole","sport"]],["🤿","diving mask",5,["diving","mask","scuba","snorkeling"]],["🎽","running shirt",5,["athletics","running","sash","shirt"]],["🎿","skis",5,["ski","skis","snow","sport"]],["🛷","sled",5,["luge","sled","sledge","sleigh","snow","toboggan"]],["🥌","curling stone",5,["curling","game","rock","stone"]],["🎯","bullseye",5,["bull","bullseye","dart","direct","entertainment","game","hit","target"]],["🪀","yo-yo",5,["fluctuate","toy","yo-yo"]],["🪁","kite",5,["fly","kite","soar"]],["🔫","water pistol",5,["gun","handgun","pistol","revolver","tool","water","weapon"]],["🎱","pool 8 ball",5,["8","8ball","ball","billiard","eight","game","pool"]],["🔮","crystal ball",5,["ball","crystal","fairy","fairytale","fantasy","fortune","future","magic","tale","tool"]],["🪄","magic wand",5,["magic","magician","wand","witch","wizard"]],["🎮","video game",5,["controller","entertainment","game","video"]],["🕹️","joystick",5,["game","joystick","video","videogame"]],["🎰","slot machine",5,["casino","gamble","gambling","game","machine","slot","slots"]],["🎲","game die",5,["dice","die","entertainment","game"]],["🧩","puzzle piece",5,["clue","interlocking","jigsaw","piece","puzzle"]],["🧸","teddy bear",5,["bear","plaything","plush","stuffed","teddy","toy"]],["🪅","piñata",5,["candy","celebrate","celebration","cinco","de","festive","mayo","party","pinada","pinata","piñata"]],["🪩","mirror ball",5,["ball","dance","disco","glitter","mirror","party"]],["🪆","nesting dolls",5,["babooshka","baboushka","babushka","doll","dolls","matryoshka","nesting","russia"]],["♠️","spade suit",5,["card","game","spade","suit"]],["♥️","heart suit",5,["card","emotion","game","heart","hearts","suit"]],["♦️","diamond suit",5,["card","diamond","game","suit"]],["♣️","club suit",5,["card","club","clubs","game","suit"]],["♟️","chess pawn",5,["chess","dupe","expendable","pawn"]],["🃏","joker",5,["card","game","joker","wildcard"]],["🀄","mahjong red dragon",5,["dragon","game","mahjong","red"]],["🎴","flower playing cards",5,["card","cards","flower","game","Japanese","playing"]],["🎭","performing arts",5,["actor","actress","art","arts","entertainment","mask","performing","theater","theatre","thespian"]],["🖼️","framed picture",5,["art","frame","framed","museum","painting","picture"]],["🎨","artist palette",5,["art","artist","artsy","arty","colorful","creative","entertainment","museum","painter","painting","palette"]],["🧵","thread",5,["needle","sewing","spool","string","thread"]],["🪡","sewing needle",5,["embroidery","needle","sew","sewing","stitches","sutures","tailoring","thread"]],["🧶","yarn",5,["ball","crochet","knit","yarn"]],["🪢","knot",5,["cord","knot","rope","tangled","tie","twine","twist"]],["👓","glasses",6,["clothing","eye","eyeglasses","eyewear","glasses"]],["🕶️","sunglasses",6,["dark","eye","eyewear","glasses","sunglasses"]],["🥽","goggles",6,["dive","eye","goggles","protection","scuba","swimming","welding"]],["🥼","lab coat",6,["clothes","coat","doctor","dr","experiment","jacket","lab","scientist","white"]],["🦺","safety vest",6,["emergency","safety","vest"]],["👔","necktie",6,["clothing","employed","necktie","serious","shirt","tie"]],["👕","t-shirt",6,["blue","casual","clothes","clothing","collar","dressed","shirt","shopping","t-shirt","tshirt","weekend"]],["👖","jeans",6,["blue","casual","clothes","clothing","denim","dressed","jeans","pants","shopping","trousers","weekend"]],["🧣","scarf",6,["bundle","cold","neck","scarf","up"]],["🧤","gloves",6,["gloves","hand"]],["🧥","coat",6,["brr","bundle","coat","cold","jacket","up"]],["🧦","socks",6,["socks","stocking"]],["👗","dress",6,["clothes","clothing","dress","dressed","fancy","shopping"]],["👘","kimono",6,["clothing","comfortable","kimono"]],["🥻","sari",6,["clothing","dress","sari"]],["🩱","one-piece swimsuit",6,["bathing","one-piece","suit","swimsuit"]],["🩲","briefs",6,["bathing","briefs","one-piece","suit","swimsuit","underwear"]],["🩳","shorts",6,["bathing","pants","shorts","suit","swimsuit","underwear"]],["👙","bikini",6,["bathing","beach","bikini","clothing","pool","suit","swim"]],["👚","woman’s clothes",6,["blouse","clothes","clothing","collar","dress","dressed","lady","shirt","shopping","woman","woman’s"]],["🪭","folding hand fan",6,["clack","clap","cool","cooling","dance","fan","flirt","flutter","folding","hand","hot","shy"]],["👛","purse",6,["clothes","clothing","coin","dress","fancy","handbag","purse","shopping"]],["👜","handbag",6,["bag","clothes","clothing","dress","handbag","lady","purse","shopping"]],["👝","clutch bag",6,["bag","clothes","clothing","clutch","dress","handbag","pouch","purse"]],["🛍️","shopping bags",6,["bag","bags","hotel","shopping"]],["🎒","backpack",6,["backpack","backpacking","bag","bookbag","education","rucksack","satchel","school"]],["🩴","thong sandal",6,["beach","flip","flop","sandal","sandals","shoe","thong","thongs","zōri"]],["👞","man’s shoe",6,["brown","clothes","clothing","feet","foot","kick","man","man’s","shoe","shoes","shopping"]],["👟","running shoe",6,["athletic","clothes","clothing","fast","kick","running","shoe","shoes","shopping","sneaker","tennis"]],["🥾","hiking boot",6,["backpacking","boot","brown","camping","hiking","outdoors","shoe"]],["🥿","flat shoe",6,["ballet","comfy","flat","flats","shoe","slip-on","slipper"]],["👠","high-heeled shoe",6,["clothes","clothing","dress","fashion","heel","heels","high-heeled","shoe","shoes","shopping","stiletto","woman"]],["👡","woman’s sandal",6,["clothing","sandal","shoe","woman","woman’s"]],["🩰","ballet shoes",6,["ballet","dance","shoes"]],["👢","woman’s boot",6,["boot","clothes","clothing","dress","shoe","shoes","shopping","woman","woman’s"]],["🪮","hair pick",6,["Afro","comb","groom","hair","pick"]],["👑","crown",6,["clothing","crown","family","king","medieval","queen","royal","royalty","win"]],["👒","woman’s hat",6,["clothes","clothing","garden","hat","hats","party","woman","woman’s"]],["🎩","top hat",6,["clothes","clothing","fancy","formal","hat","magic","top","tophat"]],["🎓","graduation cap",6,["cap","celebration","clothing","education","graduation","hat","scholar"]],["🧢","billed cap",6,["baseball","bent","billed","cap","dad","hat"]],["🪖","military helmet",6,["army","helmet","military","soldier","war","warrior"]],["⛑️","rescue worker’s helmet",6,["aid","cross","face","hat","helmet","rescue","worker’s"]],["📿","prayer beads",6,["beads","clothing","necklace","prayer","religion"]],["💄","lipstick",6,["cosmetics","date","lipstick","makeup"]],["💍","ring",6,["diamond","engaged","engagement","married","ring","romance","shiny","sparkling","wedding"]],["💎","gem stone",6,["diamond","engagement","gem","jewel","money","romance","stone","wedding"]],["🔇","muted speaker",6,["mute","muted","quiet","silent","sound","speaker"]],["🔈","speaker low volume",6,["low","soft","sound","speaker","volume"]],["🔉","speaker medium volume",6,["medium","sound","speaker","volume"]],["🔊","speaker high volume",6,["high","loud","music","sound","speaker","volume"]],["📢","loudspeaker",6,["address","communication","loud","loudspeaker","public","sound"]],["📣","megaphone",6,["cheering","megaphone","sound"]],["📯","postal horn",6,["horn","post","postal"]],["🔔","bell",6,["bell","break","church","sound"]],["🔕","bell with slash",6,["bell","forbidden","mute","no","not","prohibited","quiet","silent","slash","sound"]],["🎼","musical score",6,["music","musical","note","score"]],["🎵","musical note",6,["music","musical","note","sound"]],["🎶","musical notes",6,["music","musical","note","notes","sound"]],["🎙️","studio microphone",6,["mic","microphone","music","studio"]],["🎚️","level slider",6,["level","music","slider"]],["🎛️","control knobs",6,["control","knobs","music"]],["🎤","microphone",6,["karaoke","mic","microphone","music","sing","sound"]],["🎧","headphone",6,["earbud","headphone","sound"]],["📻","radio",6,["entertainment","radio","tbt","video"]],["🎷","saxophone",6,["instrument","music","sax","saxophone"]],["🎺","trumpet",6,["instrument","music","trumpet"]],["","trombone",6,["brass","instrument","jazz","music","sad","slide"]],["🪗","accordion",6,["accordion","box","concertina","instrument","music","squeeze","squeezebox"]],["🎸","guitar",6,["guitar","instrument","music","strat"]],["🎹","musical keyboard",6,["instrument","keyboard","music","musical","piano"]],["🎻","violin",6,["instrument","music","violin"]],["🪕","banjo",6,["banjo","music","stringed"]],["🥁","drum",6,["drum","drumsticks","music"]],["🪘","long drum",6,["beat","conga","drum","instrument","long","rhythm"]],["🪇","maracas",6,["cha","dance","instrument","maracas","music","party","percussion","rattle","shake","shaker"]],["🪈","flute",6,["band","fife","flautist","flute","instrument","marching","music","orchestra","piccolo","pipe","recorder","woodwind"]],["","harp",6,["cupid","harp","instrument","love","music","orchestra"]],["📱","mobile phone",6,["cell","communication","mobile","phone","telephone"]],["📲","mobile phone with arrow",6,["arrow","build","call","cell","communication","mobile","phone","receive","telephone"]],["☎️","telephone",6,["phone","telephone"]],["📞","telephone receiver",6,["communication","phone","receiver","telephone","voip"]],["📟","pager",6,["communication","pager"]],["📠","fax machine",6,["communication","fax","machine"]],["🔋","battery",6,["battery"]],["🪫","low battery",6,["battery","drained","electronic","energy","low","power"]],["🔌","electric plug",6,["electric","electricity","plug"]],["💻","laptop",6,["computer","laptop","office","pc","personal"]],["🖥️","desktop computer",6,["computer","desktop","monitor"]],["🖨️","printer",6,["computer","printer"]],["⌨️","keyboard",6,["computer","keyboard"]],["🖱️","computer mouse",6,["computer","mouse"]],["🖲️","trackball",6,["computer","trackball"]],["💽","computer disk",6,["computer","disk","minidisk","optical"]],["💾","floppy disk",6,["computer","disk","floppy"]],["💿","optical disk",6,["blu-ray","CD","computer","disk","dvd","optical"]],["📀","dvd",6,["Blu-ray","cd","computer","disk","DVD","optical"]],["🧮","abacus",6,["abacus","calculation","calculator"]],["🎥","movie camera",6,["bollywood","camera","cinema","film","hollywood","movie","record"]],["🎞️","film frames",6,["cinema","film","frames","movie"]],["📽️","film projector",6,["cinema","film","movie","projector","video"]],["🎬","clapper board",6,["action","board","clapper","movie"]],["📺","television",6,["television","tv","video"]],["📷","camera",6,["camera","photo","selfie","snap","tbt","trip","video"]],["📸","camera with flash",6,["camera","flash","video"]],["📹","video camera",6,["camcorder","camera","tbt","video"]],["📼","videocassette",6,["old","school","tape","vcr","vhs","video","videocassette"]],["🔍","magnifying glass tilted left",6,["glass","lab","left","left-pointing","magnifying","science","search","tilted","tool"]],["🔎","magnifying glass tilted right",6,["contact","glass","lab","magnifying","right","right-pointing","science","search","tilted","tool"]],["🕯️","candle",6,["candle","light"]],["💡","light bulb",6,["bulb","comic","electric","idea","light"]],["🔦","flashlight",6,["electric","flashlight","light","tool","torch"]],["🏮","red paper lantern",6,["bar","lantern","light","paper","red","restaurant"]],["🪔","diya lamp",6,["diya","lamp","light","oil"]],["📔","notebook with decorative cover",6,["book","cover","decorated","decorative","education","notebook","school","writing"]],["📕","closed book",6,["book","closed","education"]],["📖","open book",6,["book","education","fantasy","knowledge","library","novels","open","reading"]],["📗","green book",6,["book","education","fantasy","green","library","reading"]],["📘","blue book",6,["blue","book","education","fantasy","library","reading"]],["📙","orange book",6,["book","education","fantasy","library","orange","reading"]],["📚","books",6,["book","books","education","fantasy","knowledge","library","novels","reading","school","study"]],["📓","notebook",6,["notebook"]],["📒","ledger",6,["ledger","notebook"]],["📃","page with curl",6,["curl","document","page","paper"]],["📜","scroll",6,["paper","scroll"]],["📄","page facing up",6,["document","facing","page","paper","up"]],["📰","newspaper",6,["communication","news","newspaper","paper"]],["🗞️","rolled-up newspaper",6,["news","newspaper","paper","rolled","rolled-up"]],["📑","bookmark tabs",6,["bookmark","mark","marker","tabs"]],["🔖","bookmark",6,["bookmark","mark"]],["🏷️","label",6,["label","tag"]],["🪙","coin",6,["coin","dollar","euro","gold","metal","money","rich","silver","treasure"]],["💰","money bag",6,["bag","bank","bet","billion","cash","cost","dollar","gold","million","money","moneybag","paid","paying","pot","rich","win"]],["","treasure chest",6,["gem","gold","jewels","loot","money","prize","silver","valuables","wealth"]],["💴","yen banknote",6,["bank","banknote","bill","currency","money","note","yen"]],["💵","dollar banknote",6,["bank","banknote","bill","currency","dollar","money","note"]],["💶","euro banknote",6,["100","bank","banknote","bill","currency","euro","money","note","rich"]],["💷","pound banknote",6,["bank","banknote","bill","billion","cash","currency","money","note","pound","pounds"]],["💸","money with wings",6,["bank","banknote","bill","billion","cash","dollar","fly","million","money","note","pay","wings"]],["💳","credit card",6,["bank","card","cash","charge","credit","money","pay"]],["🧾","receipt",6,["accounting","bookkeeping","evidence","invoice","proof","receipt"]],["💹","chart increasing with yen",6,["bank","chart","currency","graph","growth","increasing","market","money","rise","trend","upward","yen"]],["✉️","envelope",6,["e-mail","email","envelope","letter"]],["📧","e-mail",6,["e-mail","email","letter","mail"]],["📨","incoming envelope",6,["delivering","e-mail","email","envelope","incoming","letter","mail","receive","sent"]],["📩","envelope with arrow",6,["arrow","communication","down","e-mail","email","envelope","letter","mail","outgoing","send","sent"]],["📤","outbox tray",6,["box","email","letter","mail","outbox","sent","tray"]],["📥","inbox tray",6,["box","email","inbox","letter","mail","receive","tray","zero"]],["📦","package",6,["box","communication","delivery","package","parcel","shipping"]],["📫","closed mailbox with raised flag",6,["closed","communication","flag","mail","mailbox","postbox","raised"]],["📪","closed mailbox with lowered flag",6,["closed","flag","lowered","mail","mailbox","postbox"]],["📬","open mailbox with raised flag",6,["flag","mail","mailbox","open","postbox","raised"]],["📭","open mailbox with lowered flag",6,["flag","lowered","mail","mailbox","open","postbox"]],["📮","postbox",6,["mail","mailbox","postbox"]],["🗳️","ballot box with ballot",6,["ballot","box"]],["✏️","pencil",6,["pencil"]],["✒️","black nib",6,["black","nib","pen"]],["🖋️","fountain pen",6,["fountain","pen"]],["🖊️","pen",6,["ballpoint","pen"]],["🖌️","paintbrush",6,["paintbrush","painting"]],["🖍️","crayon",6,["crayon"]],["📝","memo",6,["communication","media","memo","notes","pencil"]],["","eraser",6,[]],["💼","briefcase",6,["briefcase","office"]],["📁","file folder",6,["file","folder"]],["📂","open file folder",6,["file","folder","open"]],["🗂️","card index dividers",6,["card","dividers","index"]],["📅","calendar",6,["calendar","date"]],["📆","tear-off calendar",6,["calendar","tear-off"]],["🗒️","spiral notepad",6,["note","notepad","pad","spiral"]],["🗓️","spiral calendar",6,["calendar","pad","spiral"]],["📇","card index",6,["card","index","old","rolodex","school"]],["📈","chart increasing",6,["chart","data","graph","growth","increasing","right","trend","up","upward"]],["📉","chart decreasing",6,["chart","data","decreasing","down","downward","graph","negative","trend"]],["📊","bar chart",6,["bar","chart","data","graph"]],["📋","clipboard",6,["clipboard","do","list","notes"]],["📌","pushpin",6,["collage","pin","pushpin"]],["📍","round pushpin",6,["location","map","pin","pushpin","round"]],["📎","paperclip",6,["paperclip"]],["🖇️","linked paperclips",6,["link","linked","paperclip","paperclips"]],["📏","straight ruler",6,["angle","edge","math","ruler","straight","straightedge"]],["📐","triangular ruler",6,["angle","math","rule","ruler","set","slide","triangle","triangular"]],["✂️","scissors",6,["cut","cutting","paper","scissors","tool"]],["🗃️","card file box",6,["box","card","file"]],["🗄️","file cabinet",6,["cabinet","file","filing","paper"]],["🗑️","wastebasket",6,["can","garbage","trash","waste","wastebasket"]],["🔒","locked",6,["closed","lock","locked","private"]],["🔓","unlocked",6,["cracked","lock","open","unlock","unlocked"]],["🔏","locked with pen",6,["ink","lock","locked","nib","pen","privacy"]],["🔐","locked with key",6,["bike","closed","key","lock","locked","secure"]],["🔑","key",6,["key","keys","lock","major","password","unlock"]],["🗝️","old key",6,["clue","key","lock","old"]],["","net with handle",6,[]],["🔨","hammer",6,["hammer","home","improvement","repairs","tool"]],["🪓","axe",6,["ax","axe","chop","hatchet","split","wood"]],["⛏️","pick",6,["hammer","mining","pick","tool"]],["⚒️","hammer and pick",6,["hammer","pick","tool"]],["🛠️","hammer and wrench",6,["hammer","spanner","tool","wrench"]],["🗡️","dagger",6,["dagger","knife","weapon"]],["⚔️","crossed swords",6,["crossed","swords","weapon"]],["💣","bomb",6,["bomb","boom","comic","dangerous","explosion","hot"]],["🪃","boomerang",6,["boomerang","rebound","repercussion","weapon"]],["🏹","bow and arrow",6,["archer","archery","arrow","bow","Sagittarius","tool","weapon","zodiac"]],["🛡️","shield",6,["shield","weapon"]],["🪚","carpentry saw",6,["carpenter","carpentry","cut","lumber","saw","tool","trim"]],["🔧","wrench",6,["home","improvement","spanner","tool","wrench"]],["🪛","screwdriver",6,["flathead","handy","screw","screwdriver","tool"]],["🔩","nut and bolt",6,["bolt","home","improvement","nut","tool"]],["⚙️","gear",6,["cog","cogwheel","gear","tool"]],["🗜️","clamp",6,["clamp","compress","tool","vice"]],["⚖️","balance scale",6,["balance","justice","Libra","scale","scales","tool","weight","zodiac"]],["🦯","white cane",6,["accessibility","blind","cane","probing","white"]],["🔗","link",6,["link","links"]],["⛓️💥","broken chain",6,["break","breaking","broken","chain","cuffs","freedom"]],["⛓️","chains",6,["chain","chains"]],["🪝","hook",6,["catch","crook","curve","ensnare","hook","point","selling"]],["🧰","toolbox",6,["box","chest","mechanic","red","tool","toolbox"]],["🧲","magnet",6,["attraction","horseshoe","magnet","magnetic","negative","positive","shape","u"]],["🪜","ladder",6,["climb","ladder","rung","step"]],["","shovel",6,["bury","dig","garden","hole","plant","scoop","shovel","snow","spade"]],["⚗️","alembic",6,["alembic","chemistry","tool"]],["🧪","test tube",6,["chemist","chemistry","experiment","lab","science","test","tube"]],["🧫","petri dish",6,["bacteria","biologist","biology","culture","dish","lab","petri"]],["🧬","dna",6,["biologist","dna","evolution","gene","genetics","life"]],["🔬","microscope",6,["experiment","lab","microscope","science","tool"]],["🔭","telescope",6,["contact","extraterrestrial","science","telescope","tool"]],["📡","satellite antenna",6,["aliens","antenna","contact","dish","satellite","science"]],["💉","syringe",6,["doctor","flu","medicine","needle","shot","sick","syringe","tool","vaccination"]],["🩸","drop of blood",6,["bleed","blood","donation","drop","injury","medicine","menstruation"]],["💊","pill",6,["doctor","drugs","medicated","medicine","pill","pills","sick","vitamin"]],["🩹","adhesive bandage",6,["adhesive","bandage"]],["🩼","crutch",6,["aid","cane","crutch","disability","help","hurt","injured","mobility","stick"]],["🩺","stethoscope",6,["doctor","heart","medicine","stethoscope"]],["🩻","x-ray",6,["bones","doctor","medical","skeleton","skull","x-ray","xray"]],["🚪","door",6,["back","closet","door","front"]],["🛗","elevator",6,["accessibility","elevator","hoist","lift"]],["🪞","mirror",6,["makeup","mirror","reflection","reflector","speculum"]],["🪟","window",6,["air","frame","fresh","opening","transparent","view","window"]],["🛏️","bed",6,["bed","hotel","sleep"]],["🛋️","couch and lamp",6,["couch","hotel","lamp"]],["🪑","chair",6,["chair","seat","sit"]],["🚽","toilet",6,["bathroom","toilet"]],["🪠","plunger",6,["cup","force","plumber","plunger","poop","suction","toilet"]],["🚿","shower",6,["shower","water"]],["🛁","bathtub",6,["bath","bathtub"]],["🪤","mouse trap",6,["bait","cheese","lure","mouse","mousetrap","snare","trap"]],["🪒","razor",6,["razor","sharp","shave"]],["🧴","lotion bottle",6,["bottle","lotion","moisturizer","shampoo","sunscreen"]],["🧷","safety pin",6,["diaper","pin","punk","rock","safety"]],["🧹","broom",6,["broom","cleaning","sweeping","witch"]],["🧺","basket",6,["basket","farming","laundry","picnic"]],["🧻","roll of paper",6,["paper","roll","toilet","towels"]],["🪣","bucket",6,["bucket","cask","pail","vat"]],["🧼","soap",6,["bar","bathing","clean","cleaning","lather","soap","soapdish"]],["🫧","bubbles",6,["bubble","bubbles","burp","clean","floating","pearl","soap","underwater"]],["🪥","toothbrush",6,["bathroom","brush","clean","dental","hygiene","teeth","toiletry","toothbrush"]],["🧽","sponge",6,["absorbing","cleaning","porous","soak","sponge"]],["🧯","fire extinguisher",6,["extinguish","extinguisher","fire","quench"]],["🛒","shopping cart",6,["cart","shopping","trolley"]],["🚬","cigarette",6,["cigarette","smoking"]],["⚰️","coffin",6,["coffin","dead","death","vampire"]],["🪦","headstone",6,["cemetery","dead","grave","graveyard","headstone","memorial","rip","tomb","tombstone"]],["⚱️","funeral urn",6,["ashes","death","funeral","urn"]],["🧿","nazar amulet",6,["amulet","bead","blue","charm","evil-eye","nazar","talisman"]],["🪬","hamsa",6,["amulet","Fatima","fortune","guide","hamsa","hand","Mary","Miriam","palm","protect","protection"]],["🗿","moai",6,["face","moai","moyai","statue","stoneface","travel"]],["🪧","placard",6,["card","demonstration","notice","picket","placard","plaque","protest","sign"]],["🪪","identification card",6,["card","credentials","document","ID","identification","license","security"]],["🏧","ATM sign",7,["ATM","automated","bank","cash","money","sign","teller"]],["🚮","litter in bin sign",7,["bin","litter","litterbin","sign"]],["🚰","potable water",7,["drinking","potable","water"]],["♿","wheelchair symbol",7,["access","handicap","symbol","wheelchair"]],["🚹","men’s room",7,["bathroom","lavatory","man","men’s","restroom","room","toilet","WC"]],["🚺","women’s room",7,["bathroom","lavatory","restroom","room","toilet","WC","woman","women’s"]],["🚻","restroom",7,["bathroom","lavatory","restroom","toilet","WC"]],["🚼","baby symbol",7,["baby","changing","symbol"]],["🚾","water closet",7,["bathroom","closet","lavatory","restroom","toilet","water","WC"]],["🛂","passport control",7,["control","passport"]],["🛃","customs",7,["customs","packing"]],["🛄","baggage claim",7,["arrived","baggage","bags","case","checked","claim","journey","packing","plane","ready","travel","trip"]],["🛅","left luggage",7,["baggage","case","left","locker","luggage"]],["⚠️","warning",7,["caution","warning"]],["🚸","children crossing",7,["child","children","crossing","pedestrian","traffic"]],["⛔","no entry",7,["do","entry","fail","forbidden","no","not","pass","prohibited","traffic"]],["🚫","prohibited",7,["entry","forbidden","no","not","prohibited","smoke"]],["🚳","no bicycles",7,["bicycle","bicycles","bike","forbidden","no","not","prohibited"]],["🚭","no smoking",7,["forbidden","no","not","prohibited","smoke","smoking"]],["🚯","no littering",7,["forbidden","litter","littering","no","not","prohibited"]],["🚱","non-potable water",7,["dry","non-drinking","non-potable","prohibited","water"]],["🚷","no pedestrians",7,["forbidden","no","not","pedestrian","pedestrians","prohibited"]],["📵","no mobile phones",7,["cell","forbidden","mobile","no","not","phone","phones","prohibited","telephone"]],["🔞","no one under eighteen",7,["18","age","eighteen","forbidden","no","not","one","prohibited","restriction","underage"]],["☢️","radioactive",7,["radioactive","sign"]],["☣️","biohazard",7,["biohazard","sign"]],["⬆️","up arrow",7,["arrow","cardinal","direction","north","up"]],["↗️","up-right arrow",7,["arrow","direction","intercardinal","northeast","up-right"]],["➡️","right arrow",7,["arrow","cardinal","direction","east","right"]],["↘️","down-right arrow",7,["arrow","direction","down-right","intercardinal","southeast"]],["⬇️","down arrow",7,["arrow","cardinal","direction","down","south"]],["↙️","down-left arrow",7,["arrow","direction","down-left","intercardinal","southwest"]],["⬅️","left arrow",7,["arrow","cardinal","direction","left","west"]],["↖️","up-left arrow",7,["arrow","direction","intercardinal","northwest","up-left"]],["↕️","up-down arrow",7,["arrow","up-down"]],["↔️","left-right arrow",7,["arrow","left-right"]],["↩️","right arrow curving left",7,["arrow","curving","left","right"]],["↪️","left arrow curving right",7,["arrow","curving","left","right"]],["⤴️","right arrow curving up",7,["arrow","curving","right","up"]],["⤵️","right arrow curving down",7,["arrow","curving","down","right"]],["🔃","clockwise vertical arrows",7,["arrow","arrows","clockwise","refresh","reload","vertical"]],["🔄","counterclockwise arrows button",7,["again","anticlockwise","arrow","arrows","button","counterclockwise","deja","refresh","rewindershins","vu"]],["🔙","BACK arrow",7,["arrow","BACK"]],["🔚","END arrow",7,["arrow","END"]],["🔛","ON! arrow",7,["arrow","mark","ON!"]],["🔜","SOON arrow",7,["arrow","brb","omw","SOON"]],["🔝","TOP arrow",7,["arrow","homie","TOP","up"]],["🛐","place of worship",7,["place","pray","religion","worship"]],["⚛️","atom symbol",7,["atheist","atom","symbol"]],["🕉️","om",7,["Hindu","om","religion"]],["✡️","star of David",7,["David","Jew","Jewish","judaism","religion","star"]],["☸️","wheel of dharma",7,["Buddhist","dharma","religion","wheel"]],["☯️","yin yang",7,["difficult","lives","religion","tao","taoist","total","yang","yin","yinyang"]],["✝️","latin cross",7,["christ","Christian","cross","latin","religion"]],["☦️","orthodox cross",7,["Christian","cross","orthodox","religion"]],["☪️","star and crescent",7,["crescent","islam","Muslim","ramadan","religion","star"]],["☮️","peace symbol",7,["healing","peace","peaceful","symbol"]],["🕎","menorah",7,["candelabrum","candlestick","hanukkah","jewish","judaism","menorah","religion"]],["🔯","dotted six-pointed star",7,["dotted","fortune","jewish","judaism","six-pointed","star"]],["🪯","khanda",7,["Deg","Fateh","Khalsa","Khanda","religion","Sikh","Sikhism","Tegh"]],["♈","Aries",7,["Aries","horoscope","ram","zodiac"]],["♉","Taurus",7,["bull","horoscope","ox","Taurus","zodiac"]],["♊","Gemini",7,["Gemini","horoscope","twins","zodiac"]],["♋","Cancer",7,["Cancer","crab","horoscope","zodiac"]],["♌","Leo",7,["horoscope","Leo","lion","zodiac"]],["♍","Virgo",7,["horoscope","Virgo","zodiac"]],["♎","Libra",7,["balance","horoscope","justice","Libra","scales","zodiac"]],["♏","Scorpio",7,["horoscope","Scorpio","scorpion","Scorpius","zodiac"]],["♐","Sagittarius",7,["archer","horoscope","Sagittarius","zodiac"]],["♑","Capricorn",7,["Capricorn","goat","horoscope","zodiac"]],["♒","Aquarius",7,["Aquarius","bearer","horoscope","water","zodiac"]],["♓","Pisces",7,["fish","horoscope","Pisces","zodiac"]],["⛎","Ophiuchus",7,["bearer","Ophiuchus","serpent","snake","zodiac"]],["🔀","shuffle tracks button",7,["arrow","button","crossed","shuffle","tracks"]],["🔁","repeat button",7,["arrow","button","clockwise","repeat"]],["🔂","repeat single button",7,["arrow","button","clockwise","once","repeat","single"]],["▶️","play button",7,["arrow","button","play","right","triangle"]],["⏩","fast-forward button",7,["arrow","button","double","fast","fast-forward","forward"]],["⏭️","next track button",7,["arrow","button","next","scene","track","triangle"]],["⏯️","play or pause button",7,["arrow","button","pause","play","right","triangle"]],["◀️","reverse button",7,["arrow","button","left","reverse","triangle"]],["⏪","fast reverse button",7,["arrow","button","double","fast","reverse","rewind"]],["⏮️","last track button",7,["arrow","button","last","previous","scene","track","triangle"]],["🔼","upwards button",7,["arrow","button","red","up","upwards"]],["⏫","fast up button",7,["arrow","button","double","fast","up"]],["🔽","downwards button",7,["arrow","button","down","downwards","red"]],["⏬","fast down button",7,["arrow","button","double","down","fast"]],["⏸️","pause button",7,["bar","button","double","pause","vertical"]],["⏹️","stop button",7,["button","square","stop"]],["⏺️","record button",7,["button","circle","record"]],["⏏️","eject button",7,["button","eject"]],["🎦","cinema",7,["camera","cinema","film","movie"]],["🔅","dim button",7,["brightness","button","dim","low"]],["🔆","bright button",7,["bright","brightness","button","light"]],["📶","antenna bars",7,["antenna","bar","bars","cell","communication","mobile","phone","signal","telephone"]],["🛜","wireless",7,["broadband","computer","connectivity","hotspot","internet","network","router","smartphone","wi-fi","wifi","wireless","wlan"]],["📳","vibration mode",7,["cell","communication","mobile","mode","phone","telephone","vibration"]],["📴","mobile phone off",7,["cell","mobile","off","phone","telephone"]],["♀️","female sign",7,["female","sign","woman"]],["♂️","male sign",7,["male","man","sign"]],["⚧️","transgender symbol",7,["symbol","transgender"]],["✖️","multiply",7,["×","cancel","multiplication","multiply","sign","x"]],["➕","plus",7,["+","plus"]],["➖","minus",7,["-","−","heavy","math","minus","sign"]],["➗","divide",7,["÷","divide","division","heavy","math","sign"]],["🟰","heavy equals sign",7,["answer","equal","equality","equals","heavy","math","sign"]],["♾️","infinity",7,["forever","infinity","unbounded","universal"]],["‼️","double exclamation mark",7,["!","!!","bangbang","double","exclamation","mark","punctuation"]],["⁉️","exclamation question mark",7,["!","!?","?","exclamation","interrobang","mark","punctuation","question"]],["❓","red question mark",7,["?","mark","punctuation","question","red"]],["❔","white question mark",7,["?","mark","outlined","punctuation","question","white"]],["❕","white exclamation mark",7,["!","exclamation","mark","outlined","punctuation","white"]],["❗","red exclamation mark",7,["!","exclamation","mark","punctuation","red"]],["〰️","wavy dash",7,["dash","punctuation","wavy"]],["💱","currency exchange",7,["bank","currency","exchange","money"]],["💲","heavy dollar sign",7,["billion","cash","charge","currency","dollar","heavy","million","money","pay","sign"]],["⚕️","medical symbol",7,["aesculapius","medical","medicine","staff","symbol"]],["♻️","recycling symbol",7,["recycle","recycling","symbol"]],["⚜️","fleur-de-lis",7,["fleur-de-lis","knights"]],["🔱","trident emblem",7,["anchor","emblem","poseidon","ship","tool","trident"]],["📛","name badge",7,["badge","name"]],["🔰","Japanese symbol for beginner",7,["beginner","chevron","green","Japanese","leaf","symbol","tool","yellow"]],["⭕","hollow red circle",7,["circle","heavy","hollow","large","o","red"]],["✅","check mark button",7,["✓","button","check","checked","checkmark","complete","completed","done","fixed","mark","tick"]],["☑️","check box with check",7,["✓","ballot","box","check","checked","done","off","tick"]],["✔️","check mark",7,["✓","check","checked","checkmark","done","heavy","mark","tick"]],["❌","cross mark",7,["×","cancel","cross","mark","multiplication","multiply","x"]],["❎","cross mark button",7,["×","button","cross","mark","multiplication","multiply","square","x"]],["➰","curly loop",7,["curl","curly","loop"]],["➿","double curly loop",7,["curl","curly","double","loop"]],["〽️","part alternation mark",7,["alternation","mark","part"]],["✳️","eight-spoked asterisk",7,["*","asterisk","eight-spoked"]],["✴️","eight-pointed star",7,["*","eight-pointed","star"]],["❇️","sparkle",7,["*","sparkle"]],["©️","copyright",7,["C","copyright"]],["®️","registered",7,["R","registered"]],["™️","trade mark",7,["mark","TM","trade","trademark"]],["","splatter",7,["drip","holi","ink","liquid","mess","paint","spill","splatter","stain"]],["#️⃣","keycap: #",7,[]],["*️⃣","keycap: *",7,[]],["0️⃣","keycap: 0",7,["0","keycap","zero"]],["1️⃣","keycap: 1",7,["1","keycap","one"]],["2️⃣","keycap: 2",7,["2","keycap","two"]],["3️⃣","keycap: 3",7,["3","keycap","three"]],["4️⃣","keycap: 4",7,["4","four","keycap"]],["5️⃣","keycap: 5",7,["5","five","keycap"]],["6️⃣","keycap: 6",7,["6","keycap","six"]],["7️⃣","keycap: 7",7,["7","keycap","seven"]],["8️⃣","keycap: 8",7,["8","eight","keycap"]],["9️⃣","keycap: 9",7,["9","keycap","nine"]],["🔟","keycap: 10",7,[]],["🔠","input latin uppercase",7,["ABCD","input","latin","letters","uppercase"]],["🔡","input latin lowercase",7,["abcd","input","latin","letters","lowercase"]],["🔢","input numbers",7,["1234","input","numbers"]],["🔣","input symbols",7,["&","%","♪","〒","input","symbols"]],["🔤","input latin letters",7,["abc","alphabet","input","latin","letters"]],["🅰️","A button (blood type)",7,["blood","button","type"]],["🆎","AB button (blood type)",7,["AB","blood","button","type"]],["🅱️","B button (blood type)",7,["B","blood","button","type"]],["🆑","CL button",7,["button","CL"]],["🆒","COOL button",7,["button","COOL"]],["🆓","FREE button",7,["button","FREE"]],["ℹ️","information",7,["I","information"]],["🆔","ID button",7,["button","ID","identity"]],["Ⓜ️","circled M",7,["circle","circled","M"]],["🆕","NEW button",7,["button","NEW"]],["🆖","NG button",7,["button","NG"]],["🅾️","O button (blood type)",7,["blood","button","O","type"]],["🆗","OK button",7,["button","OK","okay"]],["🅿️","P button",7,["button","P","parking"]],["🆘","SOS button",7,["button","help","SOS"]],["🆙","UP! button",7,["button","mark","UP","UP!"]],["🆚","VS button",7,["button","versus","VS"]],["🈁","Japanese “here” button",7,["button","here","Japanese","katakana"]],["🈂️","Japanese “service charge” button",7,["button","charge","Japanese","katakana","service"]],["🈷️","Japanese “monthly amount” button",7,["amount","button","ideograph","Japanese","monthly"]],["🈶","Japanese “not free of charge” button",7,["button","charge","free","ideograph","Japanese","not"]],["🈯","Japanese “reserved” button",7,["button","ideograph","Japanese","reserved"]],["🉐","Japanese “bargain” button",7,["bargain","button","ideograph","Japanese"]],["🈹","Japanese “discount” button",7,["button","discount","ideograph","Japanese"]],["🈚","Japanese “free of charge” button",7,["button","charge","free","ideograph","Japanese"]],["🈲","Japanese “prohibited” button",7,["button","ideograph","Japanese","prohibited"]],["🉑","Japanese “acceptable” button",7,["acceptable","button","ideograph","Japanese"]],["🈸","Japanese “application” button",7,["application","button","ideograph","Japanese"]],["🈴","Japanese “passing grade” button",7,["button","grade","ideograph","Japanese","passing"]],["🈳","Japanese “vacancy” button",7,["button","ideograph","Japanese","vacancy"]],["㊗️","Japanese “congratulations” button",7,["button","congratulations","ideograph","Japanese"]],["㊙️","Japanese “secret” button",7,["button","ideograph","Japanese","secret"]],["🈺","Japanese “open for business” button",7,["business","button","ideograph","Japanese","open"]],["🈵","Japanese “no vacancy” button",7,["button","ideograph","Japanese","no","vacancy"]],["🔴","red circle",7,["circle","geometric","red"]],["🟠","orange circle",7,["circle","orange"]],["🟡","yellow circle",7,["circle","yellow"]],["🟢","green circle",7,["circle","green"]],["🔵","blue circle",7,["blue","circle","geometric"]],["🟣","purple circle",7,["circle","purple"]],["🟤","brown circle",7,["brown","circle"]],["⚫","black circle",7,["black","circle","geometric"]],["⚪","white circle",7,["circle","geometric","white"]],["🟥","red square",7,["card","penalty","red","square"]],["🟧","orange square",7,["orange","square"]],["🟨","yellow square",7,["card","penalty","square","yellow"]],["🟩","green square",7,["green","square"]],["🟦","blue square",7,["blue","square"]],["🟪","purple square",7,["purple","square"]],["🟫","brown square",7,["brown","square"]],["⬛","black large square",7,["black","geometric","large","square"]],["⬜","white large square",7,["geometric","large","square","white"]],["◼️","black medium square",7,["black","geometric","medium","square"]],["◻️","white medium square",7,["geometric","medium","square","white"]],["◾","black medium-small square",7,["black","geometric","medium-small","square"]],["◽","white medium-small square",7,["geometric","medium-small","square","white"]],["▪️","black small square",7,["black","geometric","small","square"]],["▫️","white small square",7,["geometric","small","square","white"]],["🔶","large orange diamond",7,["diamond","geometric","large","orange"]],["🔷","large blue diamond",7,["blue","diamond","geometric","large"]],["🔸","small orange diamond",7,["diamond","geometric","orange","small"]],["🔹","small blue diamond",7,["blue","diamond","geometric","small"]],["🔺","red triangle pointed up",7,["geometric","pointed","red","triangle","up"]],["🔻","red triangle pointed down",7,["down","geometric","pointed","red","triangle"]],["💠","diamond with a dot",7,["comic","diamond","dot","geometric"]],["🔘","radio button",7,["button","geometric","radio"]],["🔳","white square button",7,["button","geometric","outlined","square","white"]],["🔲","black square button",7,["black","button","geometric","square"]],["🏁","chequered flag",8,["checkered","chequered","finish","flag","flags","game","race","racing","sport","win"]],["🚩","triangular flag",8,["construction","flag","golf","post","triangular"]],["🎌","crossed flags",8,["celebration","cross","crossed","flags","Japanese"]],["🏴","black flag",8,["black","flag","waving"]],["🏳️","white flag",8,["flag","waving","white"]],["🏳️🌈","rainbow flag",8,["bisexual","flag","gay","genderqueer","glbt","glbtq","lesbian","lgbt","lgbtq","lgbtqia","pride","queer","rainbow","trans","transgender"]],["🏳️⚧️","transgender flag",8,["blue","flag","light","pink","transgender","white"]],["🏴☠️","pirate flag",8,["flag","Jolly","pirate","plunder","Roger","treasure"]],["🇦🇨","flag: Ascension Island",8,[]],["🇦🇩","flag: Andorra",8,[]],["🇦🇪","flag: United Arab Emirates",8,[]],["🇦🇫","flag: Afghanistan",8,[]],["🇦🇬","flag: Antigua & Barbuda",8,[]],["🇦🇮","flag: Anguilla",8,[]],["🇦🇱","flag: Albania",8,[]],["🇦🇲","flag: Armenia",8,[]],["🇦🇴","flag: Angola",8,[]],["🇦🇶","flag: Antarctica",8,[]],["🇦🇷","flag: Argentina",8,[]],["🇦🇸","flag: American Samoa",8,[]],["🇦🇹","flag: Austria",8,[]],["🇦🇺","flag: Australia",8,[]],["🇦🇼","flag: Aruba",8,[]],["🇦🇽","flag: Åland Islands",8,[]],["🇦🇿","flag: Azerbaijan",8,[]],["🇧🇦","flag: Bosnia & Herzegovina",8,[]],["🇧🇧","flag: Barbados",8,[]],["🇧🇩","flag: Bangladesh",8,[]],["🇧🇪","flag: Belgium",8,[]],["🇧🇫","flag: Burkina Faso",8,[]],["🇧🇬","flag: Bulgaria",8,[]],["🇧🇭","flag: Bahrain",8,[]],["🇧🇮","flag: Burundi",8,[]],["🇧🇯","flag: Benin",8,[]],["🇧🇱","flag: St. Barthélemy",8,[]],["🇧🇲","flag: Bermuda",8,[]],["🇧🇳","flag: Brunei",8,[]],["🇧🇴","flag: Bolivia",8,[]],["🇧🇶","flag: Caribbean Netherlands",8,[]],["🇧🇷","flag: Brazil",8,[]],["🇧🇸","flag: Bahamas",8,[]],["🇧🇹","flag: Bhutan",8,[]],["🇧🇻","flag: Bouvet Island",8,[]],["🇧🇼","flag: Botswana",8,[]],["🇧🇾","flag: Belarus",8,[]],["🇧🇿","flag: Belize",8,[]],["🇨🇦","flag: Canada",8,[]],["🇨🇨","flag: Cocos (Keeling) Islands",8,[]],["🇨🇩","flag: Congo - Kinshasa",8,[]],["🇨🇫","flag: Central African Republic",8,[]],["🇨🇬","flag: Congo - Brazzaville",8,[]],["🇨🇭","flag: Switzerland",8,[]],["🇨🇮","flag: Côte d’Ivoire",8,[]],["🇨🇰","flag: Cook Islands",8,[]],["🇨🇱","flag: Chile",8,[]],["🇨🇲","flag: Cameroon",8,[]],["🇨🇳","flag: China",8,[]],["🇨🇴","flag: Colombia",8,[]],["🇨🇵","flag: Clipperton Island",8,[]],["🇨🇶","flag: Sark",8,[]],["🇨🇷","flag: Costa Rica",8,[]],["🇨🇺","flag: Cuba",8,[]],["🇨🇻","flag: Cape Verde",8,[]],["🇨🇼","flag: Curaçao",8,[]],["🇨🇽","flag: Christmas Island",8,[]],["🇨🇾","flag: Cyprus",8,[]],["🇨🇿","flag: Czechia",8,[]],["🇩🇪","flag: Germany",8,[]],["🇩🇬","flag: Diego Garcia",8,[]],["🇩🇯","flag: Djibouti",8,[]],["🇩🇰","flag: Denmark",8,[]],["🇩🇲","flag: Dominica",8,[]],["🇩🇴","flag: Dominican Republic",8,[]],["🇩🇿","flag: Algeria",8,[]],["🇪🇦","flag: Ceuta & Melilla",8,[]],["🇪🇨","flag: Ecuador",8,[]],["🇪🇪","flag: Estonia",8,[]],["🇪🇬","flag: Egypt",8,[]],["🇪🇭","flag: Western Sahara",8,[]],["🇪🇷","flag: Eritrea",8,[]],["🇪🇸","flag: Spain",8,[]],["🇪🇹","flag: Ethiopia",8,[]],["🇪🇺","flag: European Union",8,[]],["🇫🇮","flag: Finland",8,[]],["🇫🇯","flag: Fiji",8,[]],["🇫🇰","flag: Falkland Islands",8,[]],["🇫🇲","flag: Micronesia",8,[]],["🇫🇴","flag: Faroe Islands",8,[]],["🇫🇷","flag: France",8,[]],["🇬🇦","flag: Gabon",8,[]],["🇬🇧","flag: United Kingdom",8,[]],["🇬🇩","flag: Grenada",8,[]],["🇬🇪","flag: Georgia",8,[]],["🇬🇫","flag: French Guiana",8,[]],["🇬🇬","flag: Guernsey",8,[]],["🇬🇭","flag: Ghana",8,[]],["🇬🇮","flag: Gibraltar",8,[]],["🇬🇱","flag: Greenland",8,[]],["🇬🇲","flag: Gambia",8,[]],["🇬🇳","flag: Guinea",8,[]],["🇬🇵","flag: Guadeloupe",8,[]],["🇬🇶","flag: Equatorial Guinea",8,[]],["🇬🇷","flag: Greece",8,[]],["🇬🇸","flag: South Georgia & South Sandwich Islands",8,[]],["🇬🇹","flag: Guatemala",8,[]],["🇬🇺","flag: Guam",8,[]],["🇬🇼","flag: Guinea-Bissau",8,[]],["🇬🇾","flag: Guyana",8,[]],["🇭🇰","flag: Hong Kong SAR China",8,[]],["🇭🇲","flag: Heard Island & McDonald Islands",8,[]],["🇭🇳","flag: Honduras",8,[]],["🇭🇷","flag: Croatia",8,[]],["🇭🇹","flag: Haiti",8,[]],["🇭🇺","flag: Hungary",8,[]],["🇮🇨","flag: Canary Islands",8,[]],["🇮🇩","flag: Indonesia",8,[]],["🇮🇪","flag: Ireland",8,[]],["🇮🇱","flag: Israel",8,[]],["🇮🇲","flag: Isle of Man",8,[]],["🇮🇳","flag: India",8,[]],["🇮🇴","flag: British Indian Ocean Territory",8,[]],["🇮🇶","flag: Iraq",8,[]],["🇮🇷","flag: Iran",8,[]],["🇮🇸","flag: Iceland",8,[]],["🇮🇹","flag: Italy",8,[]],["🇯🇪","flag: Jersey",8,[]],["🇯🇲","flag: Jamaica",8,[]],["🇯🇴","flag: Jordan",8,[]],["🇯🇵","flag: Japan",8,[]],["🇰🇪","flag: Kenya",8,[]],["🇰🇬","flag: Kyrgyzstan",8,[]],["🇰🇭","flag: Cambodia",8,[]],["🇰🇮","flag: Kiribati",8,[]],["🇰🇲","flag: Comoros",8,[]],["🇰🇳","flag: St. Kitts & Nevis",8,[]],["🇰🇵","flag: North Korea",8,[]],["🇰🇷","flag: South Korea",8,[]],["🇰🇼","flag: Kuwait",8,[]],["🇰🇾","flag: Cayman Islands",8,[]],["🇰🇿","flag: Kazakhstan",8,[]],["🇱🇦","flag: Laos",8,[]],["🇱🇧","flag: Lebanon",8,[]],["🇱🇨","flag: St. Lucia",8,[]],["🇱🇮","flag: Liechtenstein",8,[]],["🇱🇰","flag: Sri Lanka",8,[]],["🇱🇷","flag: Liberia",8,[]],["🇱🇸","flag: Lesotho",8,[]],["🇱🇹","flag: Lithuania",8,[]],["🇱🇺","flag: Luxembourg",8,[]],["🇱🇻","flag: Latvia",8,[]],["🇱🇾","flag: Libya",8,[]],["🇲🇦","flag: Morocco",8,[]],["🇲🇨","flag: Monaco",8,[]],["🇲🇩","flag: Moldova",8,[]],["🇲🇪","flag: Montenegro",8,[]],["🇲🇫","flag: St. Martin",8,[]],["🇲🇬","flag: Madagascar",8,[]],["🇲🇭","flag: Marshall Islands",8,[]],["🇲🇰","flag: North Macedonia",8,[]],["🇲🇱","flag: Mali",8,[]],["🇲🇲","flag: Myanmar (Burma)",8,[]],["🇲🇳","flag: Mongolia",8,[]],["🇲🇴","flag: Macao SAR China",8,[]],["🇲🇵","flag: Northern Mariana Islands",8,[]],["🇲🇶","flag: Martinique",8,[]],["🇲🇷","flag: Mauritania",8,[]],["🇲🇸","flag: Montserrat",8,[]],["🇲🇹","flag: Malta",8,[]],["🇲🇺","flag: Mauritius",8,[]],["🇲🇻","flag: Maldives",8,[]],["🇲🇼","flag: Malawi",8,[]],["🇲🇽","flag: Mexico",8,[]],["🇲🇾","flag: Malaysia",8,[]],["🇲🇿","flag: Mozambique",8,[]],["🇳🇦","flag: Namibia",8,[]],["🇳🇨","flag: New Caledonia",8,[]],["🇳🇪","flag: Niger",8,[]],["🇳🇫","flag: Norfolk Island",8,[]],["🇳🇬","flag: Nigeria",8,[]],["🇳🇮","flag: Nicaragua",8,[]],["🇳🇱","flag: Netherlands",8,[]],["🇳🇴","flag: Norway",8,[]],["🇳🇵","flag: Nepal",8,[]],["🇳🇷","flag: Nauru",8,[]],["🇳🇺","flag: Niue",8,[]],["🇳🇿","flag: New Zealand",8,[]],["🇴🇲","flag: Oman",8,[]],["🇵🇦","flag: Panama",8,[]],["🇵🇪","flag: Peru",8,[]],["🇵🇫","flag: French Polynesia",8,[]],["🇵🇬","flag: Papua New Guinea",8,[]],["🇵🇭","flag: Philippines",8,[]],["🇵🇰","flag: Pakistan",8,[]],["🇵🇱","flag: Poland",8,[]],["🇵🇲","flag: St. Pierre & Miquelon",8,[]],["🇵🇳","flag: Pitcairn Islands",8,[]],["🇵🇷","flag: Puerto Rico",8,[]],["🇵🇸","flag: Palestinian Territories",8,[]],["🇵🇹","flag: Portugal",8,[]],["🇵🇼","flag: Palau",8,[]],["🇵🇾","flag: Paraguay",8,[]],["🇶🇦","flag: Qatar",8,[]],["🇷🇪","flag: Réunion",8,[]],["🇷🇴","flag: Romania",8,[]],["🇷🇸","flag: Serbia",8,[]],["🇷🇺","flag: Russia",8,[]],["🇷🇼","flag: Rwanda",8,[]],["🇸🇦","flag: Saudi Arabia",8,[]],["🇸🇧","flag: Solomon Islands",8,[]],["🇸🇨","flag: Seychelles",8,[]],["🇸🇩","flag: Sudan",8,[]],["🇸🇪","flag: Sweden",8,[]],["🇸🇬","flag: Singapore",8,[]],["🇸🇭","flag: St. Helena, Ascension & Tristan da Cunha",8,[]],["🇸🇮","flag: Slovenia",8,[]],["🇸🇯","flag: Svalbard & Jan Mayen",8,[]],["🇸🇰","flag: Slovakia",8,[]],["🇸🇱","flag: Sierra Leone",8,[]],["🇸🇲","flag: San Marino",8,[]],["🇸🇳","flag: Senegal",8,[]],["🇸🇴","flag: Somalia",8,[]],["🇸🇷","flag: Suriname",8,[]],["🇸🇸","flag: South Sudan",8,[]],["🇸🇹","flag: São Tomé & Príncipe",8,[]],["🇸🇻","flag: El Salvador",8,[]],["🇸🇽","flag: Sint Maarten",8,[]],["🇸🇾","flag: Syria",8,[]],["🇸🇿","flag: Eswatini",8,[]],["🇹🇦","flag: Tristan da Cunha",8,[]],["🇹🇨","flag: Turks & Caicos Islands",8,[]],["🇹🇩","flag: Chad",8,[]],["🇹🇫","flag: French Southern and Antarctic Lands",8,[]],["🇹🇬","flag: Togo",8,[]],["🇹🇭","flag: Thailand",8,[]],["🇹🇯","flag: Tajikistan",8,[]],["🇹🇰","flag: Tokelau",8,[]],["🇹🇱","flag: Timor-Leste",8,[]],["🇹🇲","flag: Turkmenistan",8,[]],["🇹🇳","flag: Tunisia",8,[]],["🇹🇴","flag: Tonga",8,[]],["🇹🇷","flag: Türkiye",8,[]],["🇹🇹","flag: Trinidad & Tobago",8,[]],["🇹🇻","flag: Tuvalu",8,[]],["🇹🇼","flag: Taiwan",8,[]],["🇹🇿","flag: Tanzania",8,[]],["🇺🇦","flag: Ukraine",8,[]],["🇺🇬","flag: Uganda",8,[]],["🇺🇲","flag: U.S. Outlying Islands",8,[]],["🇺🇳","flag: United Nations",8,[]],["🇺🇸","flag: United States",8,[]],["🇺🇾","flag: Uruguay",8,[]],["🇺🇿","flag: Uzbekistan",8,[]],["🇻🇦","flag: Vatican City",8,[]],["🇻🇨","flag: St. Vincent & Grenadines",8,[]],["🇻🇪","flag: Venezuela",8,[]],["🇻🇬","flag: British Virgin Islands",8,[]],["🇻🇮","flag: U.S. Virgin Islands",8,[]],["🇻🇳","flag: Vietnam",8,[]],["🇻🇺","flag: Vanuatu",8,[]],["🇼🇫","flag: Wallis & Futuna",8,[]],["🇼🇸","flag: Samoa",8,[]],["🇽🇰","flag: Kosovo",8,[]],["🇾🇪","flag: Yemen",8,[]],["🇾🇹","flag: Mayotte",8,[]],["🇿🇦","flag: South Africa",8,[]],["🇿🇲","flag: Zambia",8,[]],["🇿🇼","flag: Zimbabwe",8,[]],["🏴","flag: England",8,[]],["🏴","flag: Scotland",8,[]],["🏴","flag: Wales",8,[]]]'),Ns={groups:_p,entries:Np};function Mt(e){return e.normalize("NFKC").toLowerCase().replace(/[_\s]+|(?<=[\p{L}\p{N}])-+/gu," ").trim()}const ac={"+1":["👍"],thumbsup:["👍"],thumbs_up:["👍"],"-1":["👎"],thumbsdown:["👎"],thumbs_down:["👎"],tada:["🎉"],heart:["❤️"],smile:["😄"],woman_technologist:["👩💻"],fire:["🔥"],rocket:["🚀"],eyes:["👀"],joy:["😂"],grin:["😁"],laughing:["😆"],wink:["😉"],pray:["🙏"],clap:["👏"],wave:["👋"],ok_hand:["👌"],sparkles:["✨"],white_check_mark:["✅"],x:["❌"],warning:["⚠️"],thinking_face:["🤔"],sob:["😭"],cry:["😢"],shrug:["🤷"],facepalm:["🤦"],raised_hands:["🙌"],muscle:["💪"],star:["⭐"],sunglasses:["😎"],heart_eyes:["😍"],rofl:["🤣"],slightly_smiling_face:["🙂"],upside_down_face:["🙃"],see_no_evil:["🙈"],point_up:["☝️"],point_right:["👉"],bulb:["💡"],memo:["📝"],bug:["🐛"],zap:["⚡"],boom:["💥"],coffee:["☕"],beer:["🍺"],pizza:["🍕"],cake:["🍰"],gift:["🎁"],calendar:["📆"],lock:["🔒"],key:["🔑"],link:["🔗"],chart_with_upwards_trend:["📈"],rotating_light:["🚨"],construction:["🚧"],hourglass:["⌛"],alarm_clock:["⏰"],bell:["🔔"],speech_balloon:["💬"],100:["💯"]},Fo=new RegExp("\\p{L}","u");function Bp(e=ac){const n=new Set(Object.keys(e).map(Mt).filter(t=>!Fo.test(t)));return t=>n.has(Mt(t))?!0:Array.from(t).length>=2&&Fo.test(t)}const Sp=32,$o=8;function Ep(e,n=ac){const t=new Map;for(const[r,s]of Object.entries(n))for(const l of s){const c=t.get(l)??[];c.push(r),t.set(l,c)}const a=e.map(r=>({entry:r,explicitAliases:(t.get(r.emoji)??[]).map(Mt),name:Mt(r.name),nameWords:Mt(r.name).split(" "),aliases:[r.name,...r.keywords,...t.get(r.emoji)??[]].map(Mt)}));return(r,s=$o)=>{const l=Number.isFinite(s)?Math.max(0,Math.min(Sp,Math.floor(s))):$o;if(l===0)return[];const c=Mt(r);if(!c)return a.slice(0,l).map(({entry:h})=>h);const d=c.split(" ").filter(Boolean),m=[[],[],[],[],[]];for(const{entry:h,aliases:p,explicitAliases:g,name:b,nameWords:k}of a){if(!d.every(v=>p.some(w=>w.includes(v))))continue;const x=g.includes(c)?0:b===c?1:d.every(v=>k.some(w=>w.startsWith(v)))?2:g.some(v=>v.startsWith(c))?3:4;if(m[x].length<l&&m[x].push(h),m[0].length===l)break}return m.flat().slice(0,l)}}const Ip=/^ {0,3}(`{3,}|~{3,})(.*)$/u,Rp=/:([\p{L}\p{M}\p{N}_+\-]*)$/u,Cp=/.$/u,Tp=/[\s\p{P}\p{S}]/u,Mp=/[:/@\\`]/u,Ap=/(?:\w+:\/\/|www\.)\S*$/iu;function rc(e,n){let t=0,a=n;for(;a>0&&e[--a]==="\\";)t++;return t%2===1}function zp(e){let n=null,t=0;for(const a of e.split(`
|
|
52
|
+
`)){const r=Ip.exec(a);if(n){r&&r[1][0]===n.marker&&r[1].length>=n.length&&r[2].trim()===""&&(n=null);continue}if(!t&&r){n={marker:r[1][0],length:r[1].length};continue}for(let s=0;s<a.length;s++){if(a[s]!=="`"||!t&&rc(a,s))continue;let l=s+1;for(;a[l]==="`";)l++;const c=l-s;t?t===c&&(t=0):t=c,s=l-1}}return n!==null||t!==0}function Pp(e){const{text:n,selectionStart:t,selectionEnd:a,interaction:r}=e;if(e.composing||!r||r.kind!=="typing"||r.text!==n||t!==a||!Number.isInteger(t)||t<0||t>n.length)return null;const s=n.slice(0,t),l=Rp.exec(s);if(!l)return null;const c=t-l[0].length,d=n.slice(0,c).match(Cp)?.[0];return d&&(!Tp.test(d)||Mp.test(d))||rc(n,c)||zp(s)||Ap.test(n.slice(0,c))||e.mentionRanges?.some(m=>c<m.end&&t>m.start)?null:{start:c,end:t,query:l[1]}}function Dp(e,n,t){return!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end>e.length||n.end<=n.start||e.slice(n.start,n.end)!==`:${n.query}`?null:{text:e.slice(0,n.start)+t+e.slice(n.end),caret:n.start+t.length,edit:{start:n.start,end:n.end,insert:t}}}const Lp=Ep(Ns.entries.map(([e,n,,t])=>({emoji:e,name:n,keywords:t}))),Op=Bp();function qp(e){const{draftKey:n,text:t,enabled:a,fieldRef:r,listboxId:s,mentionQueryStart:l,mentionRanges:c,intent:d,isComposing:m,onEdit:h,search:p=Lp}=e,[g,b]=u.useState(""),[k,x]=u.useState(null),[v,w]=u.useState({key:"",index:0}),f=d?`${d.draftKey}:${d.sequence}`:"",j=u.useMemo(()=>a&&d&&d.draftKey===n&&f!==g&&d.kind==="typing"&&wp(d.inputType,d.composing)?Pp({text:t,selectionStart:d.selectionStart,selectionEnd:d.selectionEnd,interaction:{text:d.text,kind:d.kind},composing:d.composing,mentionRanges:c}):null,[a,d,n,f,g,t,c]);u.useEffect(()=>{if(d&&d.text!==t||k===null)return;const N=k.lastIndexOf(":"),G=Number(k.slice(N+1)),K=k.slice(0,N)!==n||t.charAt(G)!==":",$=j!==null&&j.start!==G;(K||$)&&x(null)},[j,n,k,d,t]);const S=j!==null&&Op(j.query)&&`${n}:${j.start}`!==k,E=fp(l,S?j.start:null),_=E==="emoji",C=u.useMemo(()=>_&&j?p(j.query,32):[],[_,j,p]),B=j?`${n}:${j.start}:${j.query}`:"",M=v.key===B?Math.min(v.index,Math.max(0,C.length-1)):0,V=u.useCallback(N=>{Number.isInteger(N)&&N>=0&&N<C.length&&w({key:B,index:N})},[B,C.length]),O=u.useCallback(()=>{j&&x(`${n}:${j.start}`)},[n,j]),q=u.useCallback(N=>{const G=r.current;if(!_||!j||m()||!C.includes(N)||!G||G.value!==t||G.selectionStart!==j.end||G.selectionEnd!==j.end)return;const K=Dp(t,j,N.emoji);K&&(h(K),b(f),x(`${n}:${j.start}`))},[_,j,C,r,t,h,f,n,m]),F=u.useCallback(N=>!_||N.nativeEvent.isComposing||N.key==="Process"?!1:N.key==="Escape"?(N.preventDefault(),N.stopPropagation(),O(),!0):C.length&&(N.key==="ArrowUp"||N.key==="ArrowDown")?(N.preventDefault(),V((M+(N.key==="ArrowDown"?1:-1)+C.length)%C.length),!0):(N.key==="Enter"||N.key==="Tab")&&!N.shiftKey&&C[M]?(N.preventDefault(),q(C[M]),!0):N.key==="Enter"&&!N.shiftKey?(N.preventDefault(),O(),!0):!1,[_,O,C,M,V,q]);return{owner:E,open:_,query:j,rows:C,active:M,setActive:V,close:O,pick:q,onKeyDown:F,listboxId:s,aria:E==="emoji"?{role:"combobox","aria-expanded":_,"aria-controls":_?s:void 0,"aria-autocomplete":"list","aria-activedescendant":_&&C.length?nc(s,M):void 0}:{}}}const Fp=/^\s/;function $p(e,n,t,a,r=!0){const s=`@${a.label}`,l=e.slice(t.end),c=Fp.test(l)?"":" ",d=`${e.slice(0,t.start)}${s}${c}${l}`,m={start:t.start,end:t.start+s.length,kind:a.kind,accountId:a.accountId,...a.kind==="agent"&&a.endpointId?{endpointId:a.endpointId}:{},label:a.label,notify:r},h=Sn(e,d,n).filter(p=>p.end<=t.start||p.start>=m.end);return{text:d,caret:m.end+1,tokens:Kp([...h,m])}}function Kp(e){return e.sort((n,t)=>n.start-t.start)}function Sn(e,n,t){if(t.length===0)return[];if(e===n)return t.filter(m=>Jr(n,m));let a=0;const r=Math.min(e.length,n.length);for(;a<r&&e[a]===n[a];)a+=1;let s=0;for(;s<r-a&&e[e.length-1-s]===n[n.length-1-s];)s+=1;const l=e.length-s,c=n.length-e.length,d=[];for(const m of t)m.end<=a?d.push(m):m.start>=l&&d.push({...m,start:m.start+c,end:m.end+c});return d.filter(m=>Jr(n,m))}function Jr(e,n){return e.slice(n.start,n.end)===`@${n.label}`}function Up(e,n,t,a){let{start:r,end:s}=t;if(r===s){const c=n.find(d=>a==="Backspace"?r>d.start&&r<=d.end:r>=d.start&&r<d.end);if(!c)return null;r=c.start,s=c.end}else{let c=!1;for(const d of n)d.start<s&&d.end>r&&(d.start<r&&(r=d.start,c=!0),d.end>s&&(s=d.end,c=!0));if(!c)return null}const l=e.slice(0,r)+e.slice(s);return{text:l,caret:r,tokens:Sn(e,l,n)}}function Hp(e,n,t){const a=e.find(r=>n>r.start&&n<r.end);return a?t==="backward"?a.start:a.end:n}function Gp(e,n){const t=new Set,a=[];for(const r of e){if(!r.notify||n&&!n.has(`${r.kind}:${r.accountId}`)||r.kind==="agent"&&!r.endpointId)continue;const s=`${r.kind}:${r.accountId}:${r.endpointId??""}`;t.has(s)||(t.add(s),a.push(r.kind==="agent"?{kind:"agent",account_id:r.accountId,endpoint_id:r.endpointId}:{kind:"human",account_id:r.accountId}))}return a}function Wp(e,n){const t=[];let a=0;for(const r of n)r.start<a||!Jr(e,r)||(r.start>a&&t.push({kind:"text",text:e.slice(a,r.start)}),t.push({kind:"token",text:e.slice(r.start,r.end),token:r}),a=r.end);return a<e.length&&t.push({kind:"text",text:e.slice(a)}),t}const Vp=({fieldRef:e,text:n,tokens:t})=>{const a=u.useRef(null),r=_s();return u.useLayoutEffect(()=>{const s=e.current,l=a.current;if(!s||!l)return;tc(s,l),l.style.left=`${s.offsetLeft}px`,l.style.top=`${s.offsetTop}px`,l.scrollTop=s.scrollTop;const c=()=>{l.scrollTop=s.scrollTop};return s.addEventListener("scroll",c),()=>s.removeEventListener("scroll",c)},[e,n,t]),t.length===0?null:i.jsxs("div",{ref:a,"aria-hidden":"true","data-mention-overlay":"",className:"pointer-events-none absolute overflow-hidden text-transparent",children:[Wp(n,t).map((s,l)=>s.kind==="text"?i.jsx("span",{children:s.text},l):i.jsx("span",{"data-mention-pill":s.token.notify?"notify":"silent",className:H("box-decoration-clone rounded-sm px-0.5 py-px -mx-0.5",r?.self?.accountId===s.token.accountId?"bg-warning-wash group-hover/mention-field:bg-[color-mix(in_srgb,var(--color-warning-wash),var(--color-warning)_3%)]":"bg-accent-wash group-hover/mention-field:bg-[color-mix(in_srgb,var(--color-accent-wash),var(--color-accent)_3%)]",!s.token.notify&&"underline decoration-dashed decoration-ink-dim"),children:s.text},l)),n.endsWith(`
|
|
53
|
+
`)?" ":null]})},sc=({mentions:e})=>{pe();const[n,t]=u.useState("idle"),a=e.notice,r=e.source,s=r?.conversationId??null,l=u.useRef(0),c=u.useRef(null);if(u.useLayoutEffect(()=>(l.current+=1,c.current=null,t("idle"),()=>{l.current+=1,c.current=null}),[s,a]),!a||!r)return null;const d=r?.conversationKind!=="dm"&&!a.invited&&(r?.canInvite?.(a.candidate)??!1)?r?.onInvite:void 0,m=a.candidate.label,h=n==="failed"?o("ui.teamBridge.mentions.notice.invite_failed",{name:m}):a.invited?o("ui.teamBridge.mentions.notice.invited",{name:m}):a.candidate.invited?o("ui.teamBridge.mentions.notice.pending",{name:m}):o("ui.teamBridge.mentions.notice.not_member",{name:m});return i.jsxs("div",{role:"status","data-mention-notice":"",className:"flex flex-wrap items-center gap-x-2 gap-y-1 rounded-md bg-warning-wash px-3 py-1.5 text-body-sm text-ink",children:[i.jsx("span",{className:"min-w-0 flex-1",children:h}),d&&i.jsx(X,{variant:"link",size:"sm",className:"h-7 px-1.5",disabled:n==="inviting",onClick:()=>{const p=Symbol("mention-invite"),g=l.current;c.current=p;const b=()=>l.current===g&&c.current===p;t("inviting"),d(a.candidate).then(()=>{b()&&(c.current=null,t("idle"),e.resolveNotice())},()=>{b()&&(c.current=null,t("failed"))})},children:o("ui.teamBridge.mentions.notice.invite")}),!a.invited&&i.jsx(X,{variant:"link",size:"sm",className:"h-7 px-1.5",onClick:()=>{t("idle"),e.silenceNotice()},children:o("ui.teamBridge.mentions.notice.silent")}),i.jsx(X,{variant:"ghost",size:"icon-sm","aria-label":o("ui.common.actions.dismiss"),title:o("ui.common.actions.dismiss"),onClick:()=>{t("idle"),e.dismissNotice()},children:i.jsx(gt,{size:14,"aria-hidden":"true"})})]})};function Jp(e){const n=Math.max(8,Math.round(e*.32));return{outer:n,inner:n-1}}const Ko="[clip-path:polygon(100%_100%,0_100%,100%_0)] rtl:[clip-path:polygon(0_100%,100%_100%,0_0)]";function Qp(e){return e<=20?12:e<=24?14:e<=36?18:e<=56?26:28}function kn({member:e,kind:n,endpointId:t,label:a,size:r=36,className:s,fallback:l,selected:c=!1}){const d=Su(Eu(e,n,t),r),m=Jp(r),[h,p]=u.useState(),g=n==="agent"?i.jsx(Ot,{size:Qp(r)}):l??_a(a);return i.jsxs("span",{"aria-hidden":"true","data-team-bridge-avatar":"",style:{"--profile-avatar-size":`${r}px`},className:H("relative inline-flex size-[var(--profile-avatar-size)] shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-body-sm",n==="agent"?"text-accent":"text-accent-alt",c?"bg-surface":"bg-accent-alt-wash",s,n==="agent"&&"rounded-ee-xs"),children:[d&&d!==h?i.jsx("img",{alt:"",src:d,className:"size-full object-cover",onError:()=>p(d)}):g,n==="agent"&&i.jsx("span",{"data-agent-mark":"",style:{width:m.outer,height:m.outer},className:H("pointer-events-none absolute end-0 bottom-0",c?"bg-surface":"bg-accent-alt-wash",Ko),children:i.jsx("span",{style:{width:m.inner,height:m.inner},className:H("absolute end-0 bottom-0 block bg-accent",Ko)})})]})}function Yp({onBeforeNavigate:e}){const n=Vh();return i.jsx(X,{variant:"ghost",size:"sm",className:"w-full",onClick:()=>{e()&&n("/settings")},children:o("ui.settings.personal_profile.edit")})}function ct({member:e,label:n,kind:t,onMessage:a,onEditOwnProfile:r,canMessage:s=!0,openDelayMs:l=400,fastOpenDelayMs:c,toggleOnClick:d=!0,openOnFocus:m=!0,children:h}){const p=pe(),g=ms(),b=ht(),k=u.useRef(!1),[x,v]=u.useState(!1),[w,f]=u.useState(()=>new Date),j=u.useId(),S=u.useRef(void 0),E=u.useRef(null),_=u.useRef(!1),C=u.useRef(!1),B=u.useRef(null),M=u.useRef(void 0),V=u.useRef(!1),O=u.useRef(!1),q=t==="agent",F=q?n:e.profile?.display_name||n,N=!q&&!!g.accountId&&e.account_id===g.accountId,G=()=>!N||fd(b)!==g.token||ps(b).accountId!==e.account_id?!1:(k.current=!0,$(!1),fg(g.token),!0),K=()=>{clearTimeout(S.current),S.current=void 0},$=L=>{K(),L||(M.current=void 0),v(L)},R=()=>{K(),S.current=setTimeout(()=>{S.current=void 0,E.current?.contains(document.activeElement)||v(!1)},200)},D=L=>{K(),S.current=setTimeout(()=>{S.current=void 0,v(!0)},Math.max(0,L))},T=(L,ne)=>{if(x||M.current===void 0)return;const J=c!==void 0&&L instanceof Element&&ne.contains(L.closest("[data-team-bridge-avatar]"));if(J===V.current&&S.current!==void 0)return;V.current=J;const ge=Date.now()-M.current,de=l-ge;D(J&&c!==void 0?Math.min(c,de):de)};u.useEffect(()=>()=>clearTimeout(S.current),[]),u.useEffect(()=>{x||(clearTimeout(S.current),S.current=void 0,M.current=void 0)},[x]),u.useEffect(()=>{if(!x||!O.current)return;O.current=!1;const L=requestAnimationFrame(()=>{const ne=E.current?.querySelectorAll("button");ne?.[ne.length-1]?.focus()});return()=>cancelAnimationFrame(L)},[x]),u.useEffect(()=>{if(!x)return;f(new Date);const L=setInterval(()=>f(new Date),6e4);return()=>clearInterval(L)},[x]);let z;if(e.profile?.timezone)try{z=Ha(w,{timeZone:e.profile.timezone,hour:"numeric",minute:"2-digit"},p)}catch{}const Z=u.cloneElement(h,{...d?{"aria-label":o("ui.teamBridge.profile.open_profile",{name:n})}:{"aria-keyshortcuts":"Shift+F10 ContextMenu","aria-expanded":x},onMouseEnter:L=>{if(h.props.onMouseEnter?.(L),!L.defaultPrevented){if(M.current=Date.now(),V.current=!1,x){K();return}D(l),T(L.target,L.currentTarget)}},onMouseOver:L=>{h.props.onMouseOver?.(L),L.defaultPrevented||T(L.target,L.currentTarget)},onMouseLeave:L=>{h.props.onMouseLeave?.(L),M.current=void 0,L.defaultPrevented||R()},onFocus:L=>{h.props.onFocus?.(L),m&&!L.defaultPrevented&&!_.current&&$(!0)},onKeyDown:L=>{h.props.onKeyDown?.(L),!(m||L.defaultPrevented)&&(L.key!=="ContextMenu"&&!(L.shiftKey&&L.key==="F10")||(L.preventDefault(),B.current=L.currentTarget,O.current=!0,$(!0)))},onBlur:L=>{h.props.onBlur?.(L),!L.defaultPrevented&&!E.current?.contains(L.relatedTarget)&&R()},onClick:d?h.props.onClick:L=>{h.props.onClick?.(L),$(!1)}});return i.jsxs(Kd,{open:x,onOpenChange:$,modal:!1,children:[d?i.jsx(Ud,{asChild:!0,children:Z}):i.jsx(ig,{asChild:!0,children:Z}),i.jsx(Hd,{ref:E,"aria-labelledby":j,"data-profile-card":"","data-profile-kind":q?"agent":"human",collisionPadding:16,className:"flex max-h-[min(var(--radix-popover-content-available-height),calc(100dvh-2rem))] w-80 max-w-[min(var(--radix-popover-content-available-width),calc(100vw-2rem))] flex-col p-0",onMouseEnter:K,onMouseLeave:R,onFocusCapture:()=>{C.current=!0,K()},onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||(C.current=!1,R())},onOpenAutoFocus:L=>L.preventDefault(),onCloseAutoFocus:L=>{if(k.current){k.current=!1,L.preventDefault();return}if(!C.current){L.preventDefault();return}if(C.current=!1,!d){L.preventDefault(),B.current?.focus();return}_.current=!0,queueMicrotask(()=>{_.current=!1})},children:i.jsxs("div",{"data-profile-scroll":"",className:"min-h-0 overflow-y-auto overscroll-contain p-4 space-y-3",children:[i.jsxs("div",{className:"flex items-start justify-between gap-3",children:[i.jsx(kn,{member:e,kind:t,label:F,size:64}),i.jsx(ag,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon","aria-label":o("ui.teamBridge.profile.close_profile"),children:i.jsx(gt,{size:16,"aria-hidden":"true"})})})]}),i.jsxs("div",{className:"min-w-0 space-y-1 [overflow-wrap:anywhere]",children:[i.jsx("h2",{id:j,className:"text-body font-semibold text-ink",children:F}),e.profile?.title&&i.jsx("p",{className:"text-body-sm text-ink",children:e.profile.title})]}),i.jsx(yi,{children:o(q?"ui.teamBridge.profile.agent_badge":"ui.teamBridge.profile.human_badge")}),q&&i.jsx("p",{className:"text-body-sm text-ink-muted [overflow-wrap:anywhere]",children:o("ui.teamBridge.profile.owned_by",{name:nn(e)})}),e.profile?.description&&i.jsx("p",{className:"line-clamp-6 whitespace-pre-wrap text-body-sm text-ink [overflow-wrap:anywhere]",children:e.profile.description}),z&&i.jsxs("p",{className:"flex items-center gap-2 text-body-sm text-ink-muted",children:[i.jsx(wi,{size:14,"aria-hidden":"true"}),o("ui.teamBridge.profile.local_time",{time:z})]}),N&&(r?i.jsx(X,{variant:"ghost",size:"sm",className:"w-full",onClick:()=>{G()&&r()},children:o("ui.settings.personal_profile.edit")}):i.jsx(Yp,{onBeforeNavigate:G})),s&&i.jsxs(X,{variant:"tonal",className:"w-full",onClick:()=>{$(!1),a()},children:[i.jsx(pd,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.profile.message")]})]})})]})}const Uo=48,Ho=26,Xp=8,Go={"member-human":"ui.teamBridge.mentions.section.member_human","member-agent":"ui.teamBridge.mentions.section.member_agent","org-human":"ui.teamBridge.mentions.section.org_human","org-agent":"ui.teamBridge.mentions.section.org_agent"};function Qr(e,n){return`${e}-option-${n}`}const Zp=({row:e})=>{const n=e.profile??{account_id:e.accountId,display_label:e.label,role:"member",bridge_enabled:!1,bridge_state:"none"};return i.jsx(kn,{member:n,label:e.label,kind:e.kind,size:28,className:"size-7 rounded-md text-meta",fallback:e.kind==="human"?_a(e.label):void 0})},ef=({listboxId:e,sections:n,active:t,query:a,onActive:r,onPick:s,position:l,inline:c=!1})=>{pe();const d=u.useRef(null),m=n.length===0,[h,p]=u.useState({row:Uo,header:Ho});u.useLayoutEffect(()=>{const v=d.current,w=v?.querySelector('[role="option"]'),f=v?.querySelector("[data-mention-header]"),j={row:w?.offsetHeight||Uo,header:f?.offsetHeight||Ho};(j.row!==h.row||j.header!==h.header)&&p(j)});const g=h.row*Xp+h.header+8;u.useEffect(()=>{d.current?.querySelector(`#${CSS.escape(Qr(e,t))}`)?.scrollIntoView?.({block:"nearest"})},[t,e,g]);let b=-1;const k=c||!l?void 0:{position:"fixed",left:l.left,bottom:l.bottom},x=i.jsx("div",{"data-mention-popover":"",style:k,"data-lo-floating":"",className:H("z-50 w-[min(22rem,calc(100vw-16px))] overflow-hidden rounded-md bg-elevated shadow-overlay"),children:i.jsx("div",{ref:d,id:e,role:"listbox",tabIndex:-1,"aria-label":o("ui.teamBridge.mentions.listbox_label"),style:{maxHeight:g},className:"overflow-y-auto py-1",children:m?i.jsx("div",{className:"px-3 py-2 text-body-sm text-ink-muted",children:o("ui.teamBridge.mentions.empty",{query:a})}):n.map(v=>i.jsxs("div",{role:"group","aria-label":o(Go[v.id]),children:[i.jsx("div",{"aria-hidden":"true","data-mention-header":"",className:"px-3 pt-1.5 pb-0.5 font-medium text-meta text-ink-dim",children:o(Go[v.id])}),v.rows.map(w=>{const f=w;b+=1;const j=b,S=j===t,E=f.bridgeOff?o("ui.teamBridge.mentions.tag.bridge_off"):f.invited?o("ui.teamBridge.members.state.invited_short"):f.member?null:o("ui.teamBridge.mentions.tag.not_member");return i.jsxs("div",{id:Qr(e,j),role:"option","aria-selected":S,"data-mention-option":`${f.kind}:${f.accountId}`,onMouseMove:()=>{S||r(j)},onMouseDown:_=>{_.preventDefault()},onClick:()=>s(f),className:H("relative mx-1 flex min-h-12 cursor-pointer items-center gap-2.5 rounded-sm px-2 py-1",S?H("bg-accent-wash","before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:rounded-full before:bg-accent"):""),children:[i.jsx(Zp,{row:f}),i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i.jsx("span",{className:"truncate text-body-sm text-ink",children:f.label}),f.secondary&&i.jsx("span",{className:"truncate text-meta text-ink-muted",children:f.secondary})]}),E&&i.jsx("span",{className:"shrink-0 text-meta-sm text-ink-dim",children:E})]},`${f.kind}:${f.accountId}`)})]},v.id))})});return c||typeof document>"u"?x:$d.createPortal(x,document.body)},nf=48,tf=/[\s([{"'“‘«<,;:!?]/u;function af(e,n){return n===0?!0:tf.test(e.charAt(n-1))}function rf(e,n){const t=Math.max(0,n-nf-1);for(let a=n-1;a>=t;a-=1){const r=e.charAt(a);if(r===`
|
|
54
|
+
`)return null;if(r==="@"){if(!af(e,a))return null;const s=e.slice(a+1,n);return s.startsWith(" ")?null:{start:a,end:n,query:s}}}return null}function Yr(e){return e.normalize("NFKD").replace(of,"").toLocaleLowerCase()}const sf=/[\s()[\],.'’"-]+/u,of=new RegExp("\\p{M}","gu"),Wo=/\s+/g,lf=3;function df(e){return Yr(e).split(sf).filter(n=>n.length>0)}function cf(e,n){let t=0;for(const a of n)if(a===e[t]&&(t+=1),t===e.length)return!0;return e.length===0}function uf(e,n){const t=Yr(e).trim();if(t==="")return 0;const a=[n.label,...n.aliases??[]],r=a.map(Yr);if(r.some(l=>l.startsWith(t)))return 0;if(a.some(l=>{const c=df(l);return c.some((d,m)=>c.slice(m).join(" ").startsWith(t))}))return 1;if(r.some(l=>l.includes(t)))return 2;const s=t.replace(Wo,"");return s.length<lf?null:r.some(l=>cf(s,l.replace(Wo,"")))?3:null}const mf=["member-human","member-agent","org-human","org-agent"];function hf(e){return`${e.member?"member":"org"}-${e.kind}`}function gf(e,n){const t=n.flatMap((r,s)=>{const l=uf(e,r);return l===null?[]:[{candidate:r,tier:l,index:s}]}),a=[];for(const r of mf){const s=t.filter(l=>hf(l.candidate)===r).sort((l,c)=>l.tier-c.tier||l.index-c.index).map(l=>l.candidate);s.length>0&&a.push({id:r,rows:s})}return{sections:a,flat:a.flatMap(r=>r.rows)}}function It(e){return`${e.kind}:${e.accountId}`}const Vo=50;function pf(e,n){return e?.accountId&&e.tenantId?JSON.stringify(["mention-draft-v2",e.accountId,e.tenantId,n]):null}const Jo=ys()(Ld(e=>({drafts:{},write:(n,t,a)=>e(r=>{const s={...r.drafts},l=Sn(t,t,a);l.length===0?delete s[n]:s[n]={text:t,tokens:l,at:Date.now()};const c=Object.keys(s);if(c.length>Vo)for(const d of c.sort((m,h)=>s[m].at-s[h].at).slice(0,c.length-Vo))delete s[d];return{drafts:s}})}),{name:"team-bridge-mention-drafts",storage:Jh(()=>localStorage),version:2,migrate:()=>({drafts:{}})})),Qo=[],ff=50;function kf(e){const{draftKey:n,text:t,setText:a,fieldRef:r,listboxId:s}=e,l=_s(),c=l!==null,d=pf(l?.draftOwner,n),m=d??JSON.stringify(["unresolved",n]),h=d?Jo.getState().drafts[d]:void 0,p=Jo(P=>P.write),g=u.useCallback((P,ie)=>{d&&p(d,P,ie)},[d,p]),[b,k]=u.useState(()=>h?Sn(h.text,t,h.tokens):Qo),x=u.useRef(t),v=u.useRef(h&&h.text!==t?h:null),[w,f]=u.useState(null),j=u.useRef(!1),S=u.useRef(null),E=u.useRef([]),_=u.useRef(null),C=u.useRef(null),B=u.useRef(null),M=u.useRef(0),[V,O]=u.useState(null),q=u.useCallback(P=>{for(let ie=E.current.length-1;ie>=0;ie-=1)if(E.current[ie].text===P)return E.current[ie].tokens},[]),F=C.current===t&&r.current?.value===t,N=u.useRef(m);if(N.current!==m){N.current=m,v.current=h&&h.text!==t?h:null,f(null),j.current=!1,x.current=t,E.current=[],_.current=null,C.current=null,B.current=null,O(null);const P=h?Sn(h.text,t,h.tokens):Qo;P!==b&&k(P)}else if(x.current!==t){const P=v.current,le=w===t||F,we=_.current===t;_.current=null;const Pe=we||!le&&x.current===""?q(t):void 0,ln=P?.text===t?Sn(t,t,P.tokens):Pe??Sn(x.current,t,b);P?.text===t&&(v.current=null),le||(f(null),j.current=!1),x.current=t,k(ln)}u.useLayoutEffect(()=>{F&&f(t),C.current=null},[t]),u.useEffect(()=>{if(v.current)return;g(t,b);const P=E.current,ie=P.at(-1);(!ie||ie.text!==t||ie.tokens!==b)&&(P.push({text:t,tokens:b}),P.length>ff&&P.shift())},[g,t,b]);const[G,K]=u.useState(null),[$,R]=u.useState(null),[D,T]=u.useState(0),[z,Z]=u.useState(null),L=u.useRef(!1),ne=u.useMemo(()=>{if(!c||G===null||w!==t)return null;const P=rf(t,G);return!P||b.some(ie=>P.start>=ie.start&&P.start<ie.end)?null:P},[c,G,t,b,w]),J=u.useMemo(()=>ne?gf(ne.query,l?.candidates??[]):{sections:[],flat:[]},[ne,l?.candidates]),ge=J.flat,de=ne!==null&&ge.length===0&&ne.query.endsWith(" "),Q=de?ne.start:null;u.useEffect(()=>{Q!==null&&R(Q)},[Q]);const re=ne!==null&&$!==ne.start&&!de&&!L.current,ve=ne?.query;u.useEffect(()=>{T(0)},[ve]);const he=u.useCallback((P="forward")=>{const ie=r.current;if(!ie)return;if(ie.selectionStart!==ie.selectionEnd){K(null);return}const le=ie.selectionStart,we=Hp(b,le,P);we!==le&&ie.setSelectionRange(we,we),K(we)},[r,b]);u.useLayoutEffect(()=>{c&&r.current===r.current?.ownerDocument.activeElement&&he()},[t,c]),u.useLayoutEffect(()=>{const P=B.current,ie=P?.draftKey===m&&P.text===t;ie||(B.current=null),O(ie?P:null)},[t,m]);const ue=u.useCallback((P,ie)=>{const le=r.current;v.current=null,S.current=P,g(P.text,P.tokens),f(P.text);let we=!1;if(le&&ie){le.focus(),le.setSelectionRange(ie.start,ie.end);try{we=le.ownerDocument.execCommand?.(ie.insert===""?"delete":"insertText",!1,ie.insert)===!0&&le.value===P.text}catch{we=!1}}S.current=null,x.current=P.text,k(P.tokens),we||a(P.text),K(P.caret),requestAnimationFrame(()=>{const Pe=r.current;Pe&&Pe.setSelectionRange(P.caret,P.caret)})},[r,a,g]),ke=u.useCallback(P=>{requestAnimationFrame(()=>{const ie=r.current;ie&&(ie.focus(),P!==void 0&&ie.setSelectionRange(P,P))})},[r]),ee=u.useCallback(P=>{if(!ne)return;const ie=$p(t,b,ne,P,P.member),le=ie.text.slice(ne.start,ie.caret);ue(ie,{start:ne.start,end:ne.end,insert:le}),R(null);const we=ie.tokens.find(Pe=>Pe.start===ne.start);we&&!P.member&&Z({candidate:P,token:we}),ke(ie.caret)},[ne,t,b,ue,ke]),me=u.useCallback(()=>{ne&&R(ne.start)},[ne]),Ce=u.useCallback(P=>{if(!c||P.nativeEvent.isComposing||P.key==="Process")return!1;const ie=P.currentTarget;if(re&&ge.length>0){if(P.key==="ArrowDown"||P.key==="ArrowUp"){P.preventDefault();const le=P.key==="ArrowDown"?1:-1;return T(we=>(we+le+ge.length)%ge.length),!0}if(P.key==="Enter"&&!P.shiftKey||P.key==="Tab"&&!P.shiftKey)return P.preventDefault(),ee(ge[Math.min(D,ge.length-1)]),!0}if(re&&P.key==="Escape")return P.preventDefault(),P.stopPropagation(),me(),!0;if(P.key==="Backspace"||P.key==="Delete"){const le=Up(t,b,{start:ie.selectionStart,end:ie.selectionEnd},P.key);if(le)return P.preventDefault(),ue(le,{start:le.caret,end:le.caret+(t.length-le.text.length),insert:""}),!0}if((P.key==="ArrowLeft"||P.key==="ArrowRight")&&!P.shiftKey&&ie.selectionStart===ie.selectionEnd){const le=ie.selectionStart,we=ie.ownerDocument.defaultView?.getComputedStyle(ie).direction==="rtl",Pe=P.key==="ArrowRight"!==we,ln=b.find(Fe=>Pe?le===Fe.start:le===Fe.end);if(ln){P.preventDefault();const Fe=Pe?ln.end:ln.start;return ie.setSelectionRange(Fe,Fe),K(Fe),!0}}return!1},[c,re,ge,D,ee,me,t,b,ue]),je=u.useCallback(P=>{const ie=P.nativeEvent;L.current=!!ie.isComposing;const le=P.currentTarget;j.current&&f(t);const we=B.current;we&&(le.selectionStart!==we.selectionStart||le.selectionEnd!==we.selectionEnd)&&(B.current=null,O(null));const Pe=G??le.selectionStart;he(le.selectionStart<Pe?"backward":"forward")},[G,he,t]);u.useEffect(()=>{const P=r.current;if(!P||!c)return;const ie=()=>{L.current=!0,B.current=null,O(null)},le=()=>{L.current=!1,he()},we=ln=>{const Fe=ln.inputType,dn=Fe==="historyUndo"||Fe==="historyRedo";dn&&(_.current=P.value),v.current=null,C.current=P.value,B.current={draftKey:m,sequence:++M.current,text:P.value,selectionStart:P.selectionStart,selectionEnd:P.selectionEnd,kind:Fe==="insertFromPaste"?"paste":dn?"restore":"typing",inputType:Fe,composing:L.current||!!ln.isComposing};const be=S.current?.text===P.value?S.current.tokens:(dn?q(P.value):void 0)??Sn(x.current,P.value,b);g(P.value,be)},Pe=()=>{j.current=!0};return P.addEventListener("compositionstart",ie),P.addEventListener("compositionend",le),P.addEventListener("input",we),P.addEventListener("pointerdown",Pe),P.addEventListener("keydown",Pe),()=>{P.removeEventListener("compositionstart",ie),P.removeEventListener("compositionend",le),P.removeEventListener("input",we),P.removeEventListener("pointerdown",Pe),P.removeEventListener("keydown",Pe)}},[r,c,he,q,b,g,m]);const ye=u.useMemo(()=>new Set((l?.candidates??[]).filter(P=>P.member).map(P=>It(P))),[l?.candidates]),xe=u.useRef(new Set),fe=l?.conversationId??null;u.useLayoutEffect(()=>{Z(null),xe.current.clear()},[fe]),u.useEffect(()=>{if(xe.current.size===0)return;const P=[...xe.current].filter(ie=>ye.has(ie));if(P.length!==0){for(const ie of P)xe.current.delete(ie);k(ie=>ie.map(le=>P.includes(It(le))?{...le,notify:!0}:le))}},[ye]);const qe=u.useCallback(()=>{if(!l?.sendMentions)return;const P=Gp(Sn(x.current,t,b),ye);return P.length>0?P:void 0},[l?.sendMentions,t,b,ye]),Wn=u.useCallback((P,ie=!0)=>{z&&(P&&k(le=>le.map(we=>we.start===z.token.start&&It(we)===It(z.candidate)?{...we,...P}:we)),ie&&Z(null),ke(z.token.end+1))},[z,ke]);return u.useEffect(()=>{z&&!b.some(P=>P.start===z.token.start&&It(P)===It(z.candidate))&&Z(null)},[z,b]),{enabled:c,open:re,sections:J.sections,flat:ge,active:D,setActive:T,pick:ee,close:me,anchorIndex:ne?.start??null,tokens:b,onKeyDown:Ce,onSelect:je,payload:qe,notice:z,dismissNotice:()=>Wn({notify:!1}),silenceNotice:()=>Wn({notify:!1}),resolveNotice:()=>{z&&(xe.current.add(It(z.candidate)),Z({...z,invited:!0}),ke(z.token.end+1))},source:l,listboxId:s,inputScopeKey:m,emojiIntent:V,isComposing:()=>L.current,clearEmojiIntent:()=>{B.current=null,O(null)},applyTextEdit:P=>{ue({text:P.text,caret:P.caret,tokens:Sn(t,P.text,b)},P.edit)}}}function oc(e){const n=u.useId().replace(/:/g,""),t=kf({...e,listboxId:n}),a=qp({draftKey:t.inputScopeKey,text:e.text,enabled:t.enabled,fieldRef:e.fieldRef,listboxId:`${n}-emoji`,mentionQueryStart:t.open?t.anchorIndex:null,mentionRanges:t.tokens,intent:t.emojiIntent,isComposing:t.isComposing,onEdit:t.applyTextEdit});return{...t,open:t.open&&a.owner==="mention",emoji:a,stage:r=>{t.source&&Iu(t.source.conversationId,r,t.payload())},bindField:r=>({onKeyDown:s=>{kp(a.owner,s,{mention:t.onKeyDown,emoji:a.onKeyDown,composer:l=>{a.owner==="none"&&t.onKeyDown(l)||r.onKeyDown?.(l)}})},...t.enabled?{onSelect:t.onSelect,onBlur:t.clearEmojiIntent,role:"combobox","aria-expanded":t.open,"aria-controls":t.open?n:void 0,"aria-autocomplete":"list","aria-activedescendant":t.open&&t.flat.length>0?Qr(n,t.active):void 0}:{},...a.owner==="emoji"?a.aria:{}})}}const wf=352,ua=8;function lc({mentions:e,fieldRef:n,text:t,children:a}){const[r,s]=u.useState(null),{open:l,anchorIndex:c}=e;return u.useLayoutEffect(()=>{const d=n.current;if(!l||c===null||!d){s(null);return}const m=d.ownerDocument.defaultView,h=()=>{const g=ic(d,c),b=m?.innerWidth??0,k=m?.innerHeight??0,x=Math.min(wf,b-2*ua),w=m?.getComputedStyle(d).direction==="rtl"?g.right+8-x:g.left-8,f=Math.min(Math.max(ua,w),Math.max(ua,b-ua-x));s({left:f,bottom:k-g.top+6})};h(),d.addEventListener("scroll",h),m?.addEventListener("resize",h);const p=typeof ResizeObserver>"u"?null:new ResizeObserver(h);return p?.observe(d),()=>{d.removeEventListener("scroll",h),m?.removeEventListener("resize",h),p?.disconnect()}},[l,c,n]),e.enabled?i.jsxs("div",{className:"group/mention-field relative flex min-w-0 flex-1",children:[i.jsx(Vp,{fieldRef:n,text:t,tokens:e.tokens}),a,e.emoji?.open&&e.emoji.query&&i.jsx(jp,{fieldRef:n,anchorIndex:e.emoji.query.start,listboxId:e.emoji.listboxId,rows:e.emoji.rows,active:e.emoji.active,label:o("ui.teamBridge.reactions.choose"),emptyLabel:o("ui.teamBridge.reactions.noResults"),onActive:e.emoji.setActive,onPick:e.emoji.pick}),l&&r&&i.jsx(ef,{listboxId:e.listboxId,sections:e.sections,active:e.active,query:c===null?"":t.slice(c+1,n.current?.selectionStart),onActive:e.setActive,onPick:e.pick,position:r})]}):i.jsx(i.Fragment,{children:a})}function dc(e,n){return n?e.members.find(t=>t.kind==="human"&&t.account_id===n&&t.state==="active")??null:null}function Kn(e,n){return e.kind!=="dm"&&e.status==="open"&&!e.builtin&&dc(e,n)!==null}function Ki(e,n){const t=dc(e,n);return e.kind!=="dm"&&e.status==="open"&&!e.builtin&&t!==null&&t.role==="owner"}function cc(e,n,t){return e.localeCompare(n,t,{sensitivity:"base"})}function Xr(e,n){const t=n.trim().toLocaleLowerCase();return t===""||e.toLocaleLowerCase().includes(t)}function uc(e,n){return{people:e.filter(t=>n(t)==="human"),agents:e.filter(t=>n(t)==="agent")}}function Ma(e,n){return`${e}:${n}`}function bf(e){return new Set(e.filter(n=>n.state==="active"||n.state==="invited").map(n=>Ma(n.kind,n.account_id)))}function yf(e,n,t,a,r){const s=bf(e.members),l=[];for(const c of n){const d=nn(c),m=hs(c,t);s.has(Ma("human",c.account_id))||l.push({recipient:{kind:"human",accountId:c.account_id,label:d},disabledReason:m==="openable"||m==="paused"||m==="self"?null:"bridge_unavailable"});const h=c.agent;!h||s.has(Ma("agent",c.account_id))||l.push({recipient:{kind:"agent",accountId:c.account_id,endpointId:h.endpoint_id,agentName:h.name.trim(),ownerLabel:d,label:a(h.name.trim(),d)},disabledReason:e.agent_capable?h.state==="active"||h.state==="paused"?null:"agent_unavailable":"agent_not_permitted"})}return l.sort((c,d)=>+(c.disabledReason!==null)-+(d.disabledReason!==null)||cc(c.recipient.label,d.recipient.label,r))}function mc(e,n,t,a,r,s){return e.members.flatMap(l=>l.state==="active"||l.state==="invited"?[{member:l,state:l.state}]:[]).map(({member:l,state:c})=>({member:l,label:Na(l,n,{named:a,unnamed:d=>a("",d)},null)??l.account_id,state:c,self:l.kind==="human"&&l.account_id===t,removable:r&&l.kind==="human"&&l.account_id!==t})).sort((l,c)=>+(c.member.role==="owner")-+(l.member.role==="owner")||cc(l.label,c.label,s))}const xf="agents";function vf(e,n,t){if(!t||e.kind==="dm"||e.status!=="open"||n.state!=="active"&&n.state!=="invited")return null;const a=n.account_id===t;return n.kind==="human"?a?n.state!=="active"?null:!e.builtin||e.builtin===xf?"leave":null:Ki(e,t)?"remove":null:a?e.builtin?null:n.state==="active"?"withdraw":"decline":null}function jf(e){if(e.kind==="dm")return"dm";switch(e.builtin){case"general":case"humans":case"agents":return e.builtin;default:return null}}const _f=8;function Nf(e,n,t,a,r){return mc(e,n,t,a,!1,r).map(({member:s,label:l,state:c,self:d})=>({member:s,label:l,state:c==="invited"&&s.kind==="agent"?"pending_approval":c,self:d,ownAgent:s.kind==="agent"&&s.account_id===t,action:vf(e,s,t),key:Ma(s.kind,s.account_id)}))}function Bf(e){switch(e){case"bridge_unavailable":return o("ui.teamBridge.members.reason_short.bridge_unavailable");case"agent_unavailable":return o("ui.teamBridge.members.reason_short.agent_unavailable");case"agent_not_permitted":return o("ui.teamBridge.members.reason_short.agent_not_permitted");default:return""}}const Rr="flex min-h-9 items-center gap-2 rounded-md px-2 py-1",Yo="px-2 pt-3 pb-1 text-meta text-ink-dim";function Xo({accountId:e,label:n,kind:t,people:a}){const r=a.find(s=>s.account_id===e)??{account_id:e,display_label:n,role:"member",bridge_enabled:!1,bridge_state:"none"};return i.jsx(kn,{member:r,kind:t,label:n,size:24,className:"size-6 rounded-md text-meta"})}function Sf(e){return`${e.kind}:${e.account_id}`}function Ef({open:e,conversation:n,people:t,selfAccountId:a,peopleState:r,canInvite:s,canRemove:l,mutationError:c=!1,pendingKey:d=null,onClose:m,onRetryMembers:h,onAdd:p,onRemove:g}){const b=pe(),k=u.useId(),x=u.useId(),v=u.useRef(null),w=u.useRef(null),[f,j]=u.useState(""),[S,E]=u.useState(new Set),[_,C]=u.useState(null);u.useEffect(()=>{e&&(j(""),E(new Set),C(null))},[e]);const B=u.useCallback((Q,re)=>lt(Q,re,{named:(ve,he)=>o("ui.teamBridge.chief.label",{agent:ve,person:he}),unnamed:ve=>o("ui.teamBridge.chief.unnamed",{person:ve})}),[]),M=u.useMemo(()=>yf(n,t,a,B,b),[n,t,a,B,b]);u.useEffect(()=>{E(Q=>{const re=new Set(M.filter(({disabledReason:ue})=>ue===null).map(({recipient:ue})=>on(ue)));let ve=!1;const he=new Set;for(const ue of Q)re.has(ue)?he.add(ue):ve=!0;return ve?he:Q})},[M]);const V=u.useMemo(()=>M.filter(({recipient:Q})=>Xr(Q.label,f)),[M,f]),O=u.useMemo(()=>mc(n,t,a,B,l,b),[n,t,a,B,l,b]),q=O.filter(({label:Q})=>Xr(Q,f)),F=f.trim()!=="",N=(Q,re)=>{const{people:ve,agents:he}=uc(Q,re);return[{key:"people",heading:o("ui.teamBridge.members.group.people"),rows:ve},{key:"agents",heading:o("ui.teamBridge.members.group.agents_v2"),rows:he}].filter(ue=>ue.rows.length>0)},G=N(V,({recipient:Q})=>Q.kind),K=N(q,({member:Q})=>Q.kind),$=M.filter(({recipient:Q,disabledReason:re})=>re===null&&S.has(on(Q))),R=d!==null,D=u.useRef(null),T=u.useRef(new Map);u.useEffect(()=>{_&&D.current?.focus()},[_]);const z=()=>{const Q=_;C(null),Q&&T.current.get(Q)?.focus()},Z=_!==null&&q.some(({member:Q,removable:re})=>re&&Q.account_id===_);u.useEffect(()=>{_!==null&&!Z&&C(null)},[_,Z]);const L=u.useRef(null);u.useEffect(()=>{if(d!==null||!c)return;const Q=L.current;L.current=null,Q&&T.current.get(Q)?.focus()},[d,c]);const ne=Q=>{if(!s||Q.disabledReason!==null||R)return;const re=on(Q.recipient);E(ve=>{const he=new Set(ve);return he.has(re)?he.delete(re):he.add(re),he})},J=({member:Q,label:re,state:ve,self:he,removable:ue})=>{const ke=Q.account_id,ee=d===`remove:${ke}`,me=ue&&_===ke;return i.jsxs("div",{className:H("group rounded-md",!me&&ue&&"hover:bg-row-hover"),children:[i.jsxs("div",{className:Rr,children:[i.jsx(Xo,{accountId:ke,label:re,kind:Q.kind,people:t}),i.jsxs("p",{className:H("min-w-0 flex-1 truncate text-body-sm",ee?"text-ink-muted":"text-ink"),children:[re,he&&i.jsxs("span",{className:"text-ink-dim",children:[" ",o("ui.teamBridge.members.you")]})]}),Q.role==="owner"&&i.jsx(yi,{variant:"neutral",className:"shrink-0",children:o("ui.teamBridge.members.role.owner")}),ve==="invited"&&i.jsx(yi,{variant:"neutral",className:"shrink-0",children:o("ui.teamBridge.members.state.invited_short")}),ee&&i.jsx("span",{className:"shrink-0 text-meta text-ink-dim",children:o("ui.teamBridge.members.removing_v2")}),ue&&!ee&&i.jsx("span",{className:H("shrink-0",wd(me)),children:i.jsx(Ji,{content:o("ui.teamBridge.members.remove_tooltip"),children:i.jsx(X,{ref:Ce=>{Ce?T.current.set(ke,Ce):T.current.delete(ke)},type:"button",size:"icon-sm",variant:"ghost",disabled:R,"aria-label":o("ui.teamBridge.members.remove_label",{name:re}),"aria-expanded":me,onClick:()=>C(me?null:ke),children:i.jsx(Wr,{"aria-hidden":"true"})})})})]}),me&&i.jsxs("div",{className:"flex items-center justify-end gap-1 px-2 pb-1.5",children:[i.jsx(X,{ref:D,type:"button",size:"sm",variant:"ghost",disabled:R,onClick:z,children:o("ui.teamBridge.create.cancel")}),i.jsx(X,{type:"button",size:"sm",variant:"danger",disabled:R,onClick:()=>{C(null),L.current=ke,g(ke)},children:o("ui.teamBridge.members.remove",{name:re})})]})]},`${Sf(Q)}:${ve}`)},ge=(Q,re,ve)=>{const he=on(Q.recipient),ue=Q.recipient.label,ke=i.jsx(Xo,{accountId:Q.recipient.accountId,label:ue,kind:Q.recipient.kind,people:t});if(Q.disabledReason!==null){const je=Bf(Q.disabledReason);return i.jsxs("fieldset",{"aria-disabled":"true","aria-label":o("ui.teamBridge.members.ineligible_label",{name:ue,reason:je}),"data-ineligible":"",className:H(Rr,"m-0 min-w-0 border-0"),children:[ke,i.jsx("span",{className:"min-w-0 flex-1 truncate text-body-sm text-ink-muted",children:ue}),i.jsx("span",{className:"shrink-0 text-end text-meta text-ink-dim",children:je})]},he)}const ee=S.has(he),me=!s||R,Ce=`${x}-${re}-${ve}-label`;return i.jsxs("div",{className:H(Rr,me?"cursor-not-allowed":"cursor-pointer hover:bg-row-hover",ee&&"bg-row-selected"),onClick:je=>{je.target.closest?.("[data-row-checkbox]")||ne(Q)},onKeyDown:je=>{je.key!=="Enter"&&je.key!==" "||(je.preventDefault(),ne(Q))},children:[ke,i.jsx("span",{id:Ce,className:H("min-w-0 flex-1 truncate text-body-sm",me?"text-ink-muted":"text-ink"),children:ue}),i.jsx("span",{className:"flex shrink-0","data-row-checkbox":"",children:i.jsx(rg,{checked:ee,disabled:me,onCheckedChange:()=>ne(Q),"aria-labelledby":Ce})})]},he)},de="min-h-0 space-y-0.5 pb-2 [scrollbar-gutter:stable] md:flex-1 md:overflow-y-auto md:pe-2";return i.jsx(qt,{open:e,onOpenChange:Q=>!Q&&m(),children:i.jsxs(Ft,{ref:w,tabIndex:-1,className:"h-[min(780px,90dvh)] max-w-2xl gap-0 overflow-hidden p-0",closeDisabled:R,onOpenAutoFocus:Q=>{Q.preventDefault(),(v.current??w.current)?.focus()},onEscapeKeyDown:Q=>{_&&(Q.preventDefault(),z())},children:[i.jsxs(Gd,{className:"px-6 pt-6 pb-4 pe-12",children:[i.jsx($t,{children:o("ui.teamBridge.members.title")}),i.jsx(Kt,{children:o("ui.teamBridge.members.description")})]}),i.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-1 overflow-auto md:grid-cols-2 md:overflow-hidden",children:[i.jsxs("section",{className:"flex min-h-64 flex-col gap-3 px-6 md:min-h-0 md:overflow-hidden md:pe-3","aria-labelledby":`${k}-current`,children:[i.jsxs("h3",{id:`${k}-current`,className:"flex h-8 items-center gap-2 text-sm font-medium text-ink",children:[o("ui.teamBridge.members.current"),i.jsx("span",{className:"font-normal text-ink-dim tabular-nums",children:fa(O.length,void 0,b)})]}),i.jsx("div",{className:de,children:O.length===0?i.jsx("p",{className:"px-2 py-4 text-sm text-ink-muted",children:o("ui.teamBridge.members.current_empty")}):K.length===0?i.jsx("p",{className:"px-2 py-4 text-sm text-ink-muted",children:o("ui.teamBridge.members.current_no_matches")}):K.map((Q,re)=>i.jsxs("fieldset",{"aria-labelledby":`${k}-current-${Q.key}`,className:"m-0 min-w-0 space-y-0.5 border-0 p-0",children:[i.jsx("p",{id:`${k}-current-${Q.key}`,className:H(Yo,re===0&&"pt-0"),children:Q.heading}),Q.rows.map(J)]},Q.key))})]}),i.jsxs("section",{className:"flex min-h-80 flex-col gap-3 px-6 py-5 md:min-h-0 md:overflow-hidden md:ps-3 md:py-0","aria-labelledby":x,children:[i.jsxs("div",{className:"flex h-8 items-center justify-between gap-2",children:[i.jsx("h3",{id:x,className:"text-sm font-medium text-ink",children:o("ui.teamBridge.members.invite")}),!s&&i.jsx("span",{className:"text-meta-sm text-ink-dim",children:o("ui.teamBridge.members.read_only")})]}),r==="loading"?i.jsx(en,{size:"sm",label:o("ui.teamBridge.members.loading")}):r==="error"?i.jsxs("div",{className:"flex flex-col items-start gap-2",children:[i.jsx("p",{className:"text-sm text-ink-muted",children:o("ui.teamBridge.members.load_error")}),h&&i.jsx(X,{type:"button",size:"sm",variant:"outline",onClick:()=>h(n.tenant_id),children:o("ui.teamBridge.list.retry")})]}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"relative",children:[i.jsx(kd,{size:15,"aria-hidden":"true",className:"pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-ink-dim"}),i.jsx(Gi,{ref:v,value:f,onChange:Q=>j(Q.target.value),placeholder:o("ui.teamBridge.members.search"),"aria-label":o("ui.teamBridge.members.search"),className:"ps-9",disabled:R})]}),i.jsx("div",{className:de,children:V.length===0?i.jsx("p",{className:"px-2 py-4 text-sm text-ink-muted",children:M.length===0&&!F?o("ui.teamBridge.members.empty"):F&&q.length>0?o("ui.teamBridge.members.no_invitable_matches",{query:f.trim()}):o("ui.teamBridge.members.no_matches")}):G.map((Q,re)=>i.jsxs("fieldset",{className:"m-0 min-w-0 space-y-0.5 border-0 p-0","aria-labelledby":`${x}-${Q.key}`,children:[i.jsx("p",{id:`${x}-${Q.key}`,className:H(Yo,re===0&&"pt-0"),children:Q.heading}),Q.rows.map((ve,he)=>ge(ve,Q.key,he))]},Q.key))})]})]})]}),c&&i.jsx("p",{role:"alert",className:"px-6 pt-2 text-sm text-danger",children:o("ui.teamBridge.members.mutation_error")}),i.jsxs("div",{className:"mt-2 flex items-center justify-between gap-3 rounded-b-lg border-hairline border-t bg-surface px-6 py-4",children:[i.jsx("p",{className:"max-w-sm text-meta text-ink-muted",children:o("ui.teamBridge.members.invitation_note_v3")}),i.jsxs("div",{className:"flex shrink-0 gap-2",children:[i.jsx(X,{type:"button",variant:"ghost",onClick:m,disabled:R,children:o("ui.teamBridge.create.cancel")}),i.jsx(X,{type:"button",variant:"primary",disabled:!s||$.length===0||R,onClick:()=>p($.map(({recipient:Q})=>gs(Q))),children:o("ui.teamBridge.members.invite_count",{count:$.length})})]})]})]})})}function hc(e,n){if(!e)return null;const t=Date.parse(e);return Number.isNaN(t)?null:Qh(t,{dateStyle:"medium",timeStyle:"short"},n)}const Zo="";function Bs(e){return e.name?.trim()||o("ui.teamBridge.list.untitled")}const If=({open:e,name:n,onConfirm:t,onClose:a})=>(pe(),i.jsx(qt,{open:e,onOpenChange:r=>{r||a()},children:i.jsxs(Ft,{className:"gap-4",children:[i.jsx($t,{children:o("ui.teamBridge.archive.confirm.title",{name:n})}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:o("ui.teamBridge.archive.confirm.body")}),i.jsxs(Wa,{children:[i.jsx(X,{type:"button",variant:"ghost",onClick:a,children:o("ui.teamBridge.create.cancel")}),i.jsx(X,{type:"button",variant:"primary",onClick:t,children:o("ui.teamBridge.archive.confirm.confirm")})]})]})})),Rf=({open:e,name:n,pending:t=!1,error:a=null,onConfirm:r,onClose:s})=>{pe();const l=u.useId(),[c,d]=u.useState("");u.useEffect(()=>{e&&d("")},[e]);const m=c.trim().replace(/^#/,"")===n,h=o("ui.teamBridge.archive.delete.confirm_label",{name:Zo}).split(Zo);return i.jsx(qt,{open:e,onOpenChange:p=>{!p&&!t&&s()},children:i.jsxs(Ft,{className:"gap-4",closeDisabled:t,children:[i.jsx($t,{children:o("ui.teamBridge.archive.delete.title",{name:n})}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:o("ui.teamBridge.archive.delete.body")}),i.jsxs("label",{htmlFor:l,className:"flex flex-col gap-1 text-[13px] text-ink-muted",children:[h.map((p,g)=>i.jsxs(u.Fragment,{children:[g>0&&i.jsx("span",{className:"select-all break-all font-medium text-ink",children:n}),p]},`${g}:${p}`)),i.jsx(Gi,{id:l,value:c,onChange:p=>d(p.target.value),autoComplete:"off",autoCapitalize:"off",spellCheck:!1,autoFocus:!0})]}),a&&i.jsx("p",{role:"alert",className:"text-[13px] text-danger",children:a==="gone"?o("ui.teamBridge.archive.delete.not_found"):o("ui.teamBridge.archive.delete.error")}),i.jsxs(Wa,{children:[i.jsx(X,{type:"button",variant:"ghost",disabled:t,onClick:s,children:o("ui.teamBridge.create.cancel")}),i.jsx(X,{type:"button",variant:"danger",disabled:!m||t,onClick:r,children:o("ui.teamBridge.archive.delete.confirm")})]})]})})},Cf=({conversation:e,canManage:n,unarchiving:t=!1,error:a=!1,onUnarchive:r,onDelete:s})=>{const l=pe(),c=e.archived_at?hc(e.archived_at,l):null,d=e.archived_by_label??null,m=d&&c?o("ui.teamBridge.archive.banner.by_on",{name:d,date:c}):c?o("ui.teamBridge.archive.banner.on",{date:c}):o("ui.teamBridge.archive.banner.plain");return i.jsxs("output",{className:"mx-4 mb-2 flex flex-wrap items-center gap-x-3 gap-y-2 rounded-md bg-elevated px-3 py-2",children:[i.jsx(Ba,{size:15,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}),i.jsxs("p",{className:"min-w-0 flex-1 text-[13px] text-ink-muted",children:[m,a&&i.jsx("span",{role:"alert",className:"ms-2 text-danger",children:o("ui.teamBridge.archive.banner.unarchive_error")})]}),n&&i.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[i.jsx(X,{type:"button",size:"sm",variant:"ghost",disabled:t,onClick:r,children:o("ui.teamBridge.archive.banner.unarchive")}),i.jsx(X,{type:"button",size:"sm",variant:"danger",disabled:t,onClick:s,children:o("ui.teamBridge.archive.banner.delete")})]})]})},Tf=({state:e,conversations:n,organizationName:t,onOpen:a,onRetry:r,hasMore:s=!1,loadingMore:l=!1,loadMoreFailed:c=!1,onLoadMore:d})=>{const m=pe();return i.jsxs("section",{"aria-label":o("ui.teamBridge.archive.section.archived"),className:"flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-5",children:[i.jsx("h2",{className:"font-medium text-lg text-ink",children:o("ui.teamBridge.archive.section.archived")}),e==="loading"?i.jsx("div",{className:"py-2",children:i.jsx(en,{size:"sm",label:o("ui.teamBridge.archive.list.loading")})}):e==="error"?i.jsxs("div",{className:"flex flex-col items-start gap-2",children:[i.jsx("p",{className:"text-[13px] text-ink-muted",children:o("ui.teamBridge.archive.list.error")}),r&&i.jsx(X,{size:"sm",variant:"ghost",onClick:r,children:o("ui.teamBridge.list.retry")})]}):n.length===0?i.jsx("p",{className:"text-ink-muted",children:o("ui.teamBridge.archive.list.empty")}):i.jsx("ul",{className:"flex flex-col",children:n.map(h=>{const p=h.archived_at?hc(h.archived_at,m):null,g=h.archived_by_label??null,b=g&&p?o("ui.teamBridge.archive.list.meta_by_on",{name:g,date:p}):p?o("ui.teamBridge.archive.list.meta_on",{date:p}):null,k=t?.(h)??null;return i.jsx("li",{children:i.jsxs("button",{type:"button",onClick:()=>a(h),"data-conversation-id":h.id,className:"flex min-h-[38px] w-full items-center gap-2 rounded-md px-2 py-1 text-start text-[13px] text-ink-muted transition-colors duration-fast ease-out-quart hover:bg-row-hover hover:text-ink",children:[i.jsx(Da,{size:15,"aria-hidden":"true",className:"shrink-0"}),i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i.jsx("span",{className:"truncate",children:Bs(h)}),(b||k)&&i.jsx("span",{className:"truncate text-meta-sm text-ink-dim",children:[k,b].filter(Boolean).join(" · ")})]})]})},h.id)})}),e==="ready"&&(s||c)&&d&&i.jsxs("div",{className:"flex flex-col items-start gap-1 pt-1",children:[c&&i.jsx("p",{role:"alert",className:"text-[12px] text-danger",children:o("ui.teamBridge.archive.list.load_more_error")}),i.jsx(X,{size:"sm",variant:"ghost",disabled:l,onClick:d,children:l?o("ui.teamBridge.archive.list.loading"):o("ui.teamBridge.archive.list.load_more")})]})]})},Zr=new Map,Aa=(e,n,t)=>`${e??""}/${n??"draft"}${t?`#${t}`:""}`;function Ss(e){let n=Zr.get(e);return n||(n={seen:new Set,highestSeq:-1,loading:!0},Zr.set(e,n)),n}function gc(e,n){const t=Ss(e);if(n.length===0){t.loading=!1;return}for(const a of n)t.seen.add(a.id),a.seq!==void 0&&(t.highestSeq=Math.max(t.highestSeq,a.seq));t.loading=!1}function Mf(e,n,{commit:t=!0}={}){const a=Ss(e),r=new Set;if(!a.loading)for(const s of n){const l=s.seq===void 0||s.seq>a.highestSeq;!a.seen.has(s.id)&&l&&r.add(s.id)}return t&&gc(e,n),r}function Af(e){Ss(e).loading=!1}function pc(e){const n=Zr.get(e);n&&(n.loading=!0)}const zf=4;function Pf(e){const n=e&&typeof e=="object"?e.status?.attachments:void 0,t=Ru.safeParse(n);if(!t.success||!t.data.enabled)return null;const a=new Set(t.data.mime_types);return!a.has("image/png")||!a.has("image/jpeg")?null:t.data}function el(e){return e?Math.min(e.max_count,zf):0}function Es(e){const n=a=>e[a];if(e.length>=8&&n(0)===137&&n(1)===80&&n(2)===78&&n(3)===71)return"image/png";if(e.length>=3&&n(0)===255&&n(1)===216&&n(2)===255)return"image/jpeg";if(e.length>=6&&n(0)===71&&n(1)===73&&n(2)===70)return"image/gif";const t=(a,r)=>String.fromCharCode(...e.subarray(a,r));if(e.length>=12&&t(0,4)==="RIFF"&&t(8,12)==="WEBP")return"image/webp";if(e.length>=12&&t(4,8)==="ftyp"){const a=t(8,12);if(["heic","heix","hevc","heim","heis","mif1","msf1"].includes(a))return"image/heic"}return null}function Df(e,n){if(n==="account_mismatch")return"account_mismatch";switch(e){case 413:return"too_large";case 415:return"unsupported";case 422:return"invalid";case 429:return"rate_limited";case 400:return"limit";case 409:return"failed";case 404:return"expired";case 401:return"signed_out";case null:case void 0:case 502:case 503:return"offline";default:return"failed"}}function ka(e){return e?.code==="attachment_not_found"}const Lf=/client_ref/i;function nl(e){const n=e?.code;if(n==="client_ref_conflict"||n==="conflict_client_ref")return!0;const t=e?.message;return typeof t=="string"&&Lf.test(t)}async function Cr(e,n,t){return e?.stageHeld?e.stageHeld(n,t):[...e?.ids??[]]}class ut extends Error{reason;constructor(n){super(`attachment ${n}`),this.name="AttachmentPrepareError",this.reason=n}}function Of(e){let n="";for(let a=0;a<e.length;a+=32768)n+=String.fromCharCode(...e.subarray(a,a+32768));return btoa(n)}function qf(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a<n.length;a+=1)t[a]=n.charCodeAt(a);return t}async function Ff(e,n){if(typeof createImageBitmap!="function"||typeof OffscreenCanvas!="function")throw new ut("unsupported");let t;try{t=await createImageBitmap(new Blob([e],{type:n}))}catch{throw new ut("unsupported")}try{const a=new OffscreenCanvas(t.width,t.height),r=a.getContext("2d");if(!r)throw new ut("unsupported");r.drawImage(t,0,0);const s=await a.convertToBlob({type:"image/png"});return new Uint8Array(await s.arrayBuffer())}finally{t.close()}}async function $f(e,n){if(typeof createImageBitmap!="function")return{width:0,height:0};try{const t=await createImageBitmap(new Blob([e],{type:n})),a={width:t.width,height:t.height};return t.close(),a}catch{return{width:0,height:0}}}async function fc(e,n){let t=new Uint8Array(await e.arrayBuffer());const a=Es(t);if(!a)throw new ut("unsupported");let r;a==="image/png"||a==="image/jpeg"?r=a:(t=await Ff(t,a),r="image/png");const s=await Lm({data_b64:Of(t),mime_type:r},qm,Om,{edgeIsHard:!0});if(s.mime_type!=="image/png"&&s.mime_type!=="image/jpeg")throw new ut("unsupported");const l=qf(s.data_b64);if(l.byteLength>n)throw new ut("too_large");const c=await $f(l,s.mime_type);return{bytes:l,mime:s.mime_type,...c}}function Tr(e){if(!e)return[];const n=[];if(e.items&&e.items.length>0){for(const t of Array.from(e.items)){if(t.kind!=="file")continue;const a=t.getAsFile();a&&tl(a)&&n.push(a)}return n}for(const t of Array.from(e.files??[]))tl(t)&&n.push(t);return n}function kc(e){return Dm(e)}function tl(e){return e.type===""||e.type.startsWith("image/")}function Kf(e){return e.state===void 0||e.state==="bound"?e.mime==="image/png"||e.mime==="image/jpeg"?"fetch":"unavailable":e.state==="expired"?"expired":"unavailable"}function Uf(e,n){return{id:e.id,conversationId:n,mime:e.mime,size:e.size,width:e.width,height:e.height,...e.expires_at?{expiresAt:e.expires_at}:{}}}function Hf(e,n=Date.now()){if(!e.expiresAt)return!1;const t=Date.parse(e.expiresAt);return Number.isFinite(t)&&t<=n}const Gf=16,At=new Map,wc=(e,n)=>`${e}\0${n}`;function Wf(e,n,t){if(!e)return;const a=wc(e,n);for(At.delete(a),At.set(a,t);At.size>Gf;){const r=At.keys().next().value;if(r===void 0)break;At.delete(r)}}function bc(e,n){return e?At.get(wc(e,n))??null:null}function Vf(){At.clear()}cs(Vf);const yc=({recipients:e,candidates:n,onChange:t,profileFor:a,autoFocus:r=!0})=>{pe();const s=u.useId(),l=u.useRef(null),[c,d]=u.useState(""),[m,h]=u.useState(!1),[p,g]=u.useState(0);u.useEffect(()=>{document.getElementById(`${s}-${p}`)?.scrollIntoView({block:"nearest"})},[p,s]);const b=u.useMemo(()=>new Set(e.map(on)),[e]),k=u.useMemo(()=>{const w=c.trim().toLocaleLowerCase();return n.filter(f=>!b.has(on(f))&&(w===""||f.label.toLocaleLowerCase().includes(w)))},[n,b,c]),x=w=>{t([...e,w]),d(""),g(0),l.current?.focus()},v=m&&k.length>0;return i.jsxs("div",{className:"relative shrink-0 px-5 pt-3 pb-2",children:[i.jsxs("div",{className:"flex min-h-9 flex-wrap items-center gap-1.5 rounded-lg bg-elevated px-2 py-1",children:[i.jsx("span",{className:"pe-1 text-[13px] text-ink-dim",children:o("ui.teamBridge.compose.to")}),e.map(w=>{const f=a?.(w);return i.jsxs("span",{className:"flex h-6 items-center gap-1 rounded-md bg-accent-wash pe-0.5 ps-1.5 text-[13px] text-ink",children:[f?i.jsx(ct,{member:f,label:w.label,kind:w.kind,onMessage:()=>{},canMessage:!1,children:i.jsxs("button",{type:"button",className:"flex min-w-0 items-center gap-1 rounded-sm",children:[i.jsx(kn,{member:f,kind:w.kind,endpointId:w.kind==="agent"?w.endpointId:void 0,label:w.label,size:20,className:"text-[10px]"}),w.label]})}):i.jsxs(i.Fragment,{children:[w.kind==="agent"&&i.jsx(Ot,{size:12,"aria-hidden":"true",className:"text-accent"}),w.label]}),i.jsx("button",{type:"button","aria-label":o("ui.teamBridge.compose.remove",{name:w.label}),onClick:()=>t(e.filter(j=>on(j)!==on(w))),className:"flex size-5 items-center justify-center rounded-sm text-ink-dim hover:bg-row-hover hover:text-ink",children:i.jsx(gt,{size:12})})]},on(w))}),i.jsx("input",{ref:l,autoFocus:r,role:"combobox","aria-expanded":v,"aria-controls":s,"aria-autocomplete":"list","aria-activedescendant":v?`${s}-${Math.min(p,k.length-1)}`:void 0,"aria-label":o("ui.teamBridge.compose.label"),placeholder:e.length===0?o("ui.teamBridge.compose.placeholder"):void 0,value:c,onFocus:()=>h(!0),onBlur:()=>h(!1),onChange:w=>{d(w.target.value),g(0),h(!0)},onKeyDown:w=>{if(w.key==="ArrowDown")w.preventDefault(),h(!0),g(f=>Math.max(0,Math.min(f+1,k.length-1)));else if(w.key==="ArrowUp")w.preventDefault(),g(f=>Math.max(f-1,0));else if(w.key==="Enter"&&v){w.preventDefault();const f=k[Math.min(p,k.length-1)];f&&x(f)}else w.key==="Escape"?h(!1):w.key==="Backspace"&&c===""&&e.length>0&&t(e.slice(0,-1))},className:"h-7 min-w-32 flex-1 bg-transparent text-[13px] text-ink outline-none placeholder:text-ink-dim"})]}),v&&i.jsx("div",{id:s,tabIndex:-1,role:"listbox","aria-label":o("ui.teamBridge.compose.label"),"data-lo-floating":"",className:"absolute top-full right-5 left-5 z-20 mt-1 max-h-64 overflow-y-auto rounded-lg bg-elevated p-1 shadow-overlay",children:k.map((w,f)=>{const j=a?.(w);return i.jsxs("button",{id:`${s}-${f}`,type:"button",tabIndex:-1,role:"option","aria-selected":f===p,onMouseDown:S=>S.preventDefault(),onClick:()=>x(w),onMouseEnter:()=>g(f),className:H("flex h-[30px] w-full cursor-default items-center gap-2 rounded-md px-2 text-start text-[13px]",f===p?"bg-row-hover text-ink":"text-ink-muted"),children:[j?i.jsx(kn,{member:j,kind:w.kind,endpointId:w.kind==="agent"?w.endpointId:void 0,label:w.label,size:20,className:"text-[10px]"}):i.jsx("span",{"aria-hidden":"true",className:H("flex size-5 shrink-0 items-center justify-center overflow-hidden rounded-full text-[10px] font-semibold","bg-accent-alt-wash",w.kind==="agent"?"text-accent":"text-accent-alt"),children:w.kind==="agent"?i.jsx(Ot,{size:12}):w.label.trim().charAt(0).toUpperCase()||"?"}),i.jsx("span",{className:"min-w-0 flex-1 truncate",children:w.label})]},on(w))})})]})};function xc({state:e}){return e.chips.length?i.jsxs("div",{className:"px-3.5 pt-3",children:[i.jsx("ul",{className:"flex flex-wrap gap-2","aria-label":o("ui.teamBridge.files.staged"),children:e.chips.map(n=>i.jsxs("li",{className:"flex w-60 min-w-0 items-center gap-2 rounded-md border border-control bg-sunken p-2","data-file-chip":n.status,children:[n.status==="uploading"?i.jsx(en,{size:"sm"}):i.jsx(fs,{size:18,className:H("shrink-0",n.status==="error"&&e.enabled?"text-danger":"text-ink-muted"),"aria-hidden":"true"}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("details",{className:"group/file-name",children:i.jsxs("summary",{className:"flex min-h-6 cursor-pointer list-none items-start gap-1 rounded-sm focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-1 [&::-webkit-details-marker]:hidden",children:[i.jsx(Wd,{size:12,"aria-hidden":"true",className:"mt-1 shrink-0 text-ink-muted group-open/file-name:rotate-90"}),i.jsx("bdi",{className:"block min-w-0 truncate text-sm text-ink group-open/file-name:whitespace-normal group-open/file-name:break-all",children:n.file.name})]})}),i.jsx("span",{className:H("text-xs",n.status==="error"&&e.enabled?"text-danger":"text-ink-muted"),children:o(n.status==="error"?e.enabled?"ui.teamBridge.files.failed":"ui.teamBridge.files.not_uploaded":n.status==="uploading"?"ui.teamBridge.files.uploading":"ui.teamBridge.files.attached")})]}),n.status==="error"&&e.enabled&&i.jsx(X,{variant:"ghost",size:"icon-sm","aria-label":o("ui.teamBridge.files.retry"),onClick:()=>e.retry(n.key),children:i.jsx(xs,{size:14,"aria-hidden":"true"})}),i.jsx(X,{variant:"ghost",size:"icon-sm","aria-label":o("ui.teamBridge.files.remove"),onClick:()=>e.remove(n.key),children:i.jsx(gt,{size:14,"aria-hidden":"true"})})]},n.key))}),!e.enabled&&i.jsx("output",{className:"pt-1 text-xs text-ink-muted",children:o("ui.teamBridge.files.unavailable")})]}):null}const vc=250,Jf=200;function Qf(e){const{id:n,canRecord:t,onTranscript:a}=e,[r,s]=u.useState(!1),[l,c]=u.useState(!1),[d,m]=u.useState(!1),[h,p]=u.useState(null),[g,b]=u.useState(0),k=u.useRef(null),x=u.useRef(null),v=u.useRef([]),w=u.useRef(null),f=u.useRef(null),j=u.useRef(a);u.useEffect(()=>{j.current=a});const S=u.useCallback(async O=>{f.current?.abort();const q=new AbortController;f.current=q,w.current=O;try{m(!0);const F=await Fm.createTranscriptionWithRetry($m.baseUrl,{file:new File([O],"recording.webm",{type:"audio/webm"})},{signal:q.signal,onRetry:({attempt:N,total:G,delayMs:K,error:$})=>{console.warn(`Transcription attempt ${N}/${G} failed with a transient upstream fault; retrying in ${K} ms.`,$)}});F.result?.text?j.current(F.result.text):Km(Um()),w.current=null,p(null)}catch(F){if(q.signal.aborted)return;console.error("Error transcribing audio:",F),Hm(F)?p(Gm(F)):(p(null),w.current=null,pa(Wm(F)))}finally{f.current===q&&m(!1)}},[]),E=u.useCallback(O=>{s(!1);const q=x.current;if(!q)return;const F=k.current?.startedAt??null,N=F===null?Number.POSITIVE_INFINITY:performance.now()-F;if(k.current=null,q.state==="inactive"){c(!1),b(0);return}(O==="abort"||N<vc)&&(q.onstop=()=>{for(const G of q.stream?.getTracks()??[])G.stop();v.current=[]}),q.stop(),c(!1),b(0)},[]),_=u.useCallback((O="release")=>{const q=k.current;if(q){if(q.startedAt===null){k.current=null,s(!1);return}E(O)}},[E]),C=u.useCallback(async()=>{if(!t||k.current||d)return;if(!navigator?.mediaDevices?.getUserMedia){console.error("This runtime exposes no MediaRecorder"),pa(o("ui.canvas.inline_edit.dictation_is_not_available_on_this_device"));return}const O={startedAt:null};k.current=O,s(!0);try{const q=await navigator.mediaDevices.getUserMedia({audio:!0});if(k.current!==O){for(const N of q.getTracks())N.stop();return}const F=new MediaRecorder(q);x.current=F,v.current=[],F.ondataavailable=N=>{N.data.size>0&&v.current.push(N.data)},F.onstop=()=>{const N=new Blob(v.current,{type:"audio/webm"});v.current=[];for(const G of q.getTracks())G.stop();p(null),S(N)},F.start(),O.startedAt=performance.now(),s(!1),c(!0),b(0)}catch(q){if(k.current!==O)return;k.current=null,s(!1),console.error("Error accessing microphone:",q),pa(o("ui.canvas.inline_edit.error_accessing_microphone_please_ensure_microphone_permissions_are_gran"))}},[t,d,S]),B=u.useCallback(()=>{l&&E("release")},[l,E]),M=u.useCallback(()=>{l&&E("abort")},[l,E]),V=u.useCallback(()=>{const O=w.current;!O||d||(p(null),S(O))},[d,S]);return Vm(n,Jm.MESSAGE_INPUT,{start:C,stop:_},()=>!!(t&&!l&&!d)),u.useEffect(()=>(No(n,l||r),()=>No(n,!1)),[n,l,r]),u.useEffect(()=>{if(!l)return;const O=performance.now(),q=window.setInterval(()=>b(performance.now()-O),Jf);return()=>window.clearInterval(q)},[l]),u.useEffect(()=>{if(!l&&!r)return;const O=q=>{if(!(q.defaultPrevented||q.isComposing||q.keyCode===229)){if(l&&q.key==="Enter"){q.preventDefault(),B();return}q.key==="Escape"&&(q.preventDefault(),l?M():_("abort"))}};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[l,r,B,M,_]),u.useEffect(()=>()=>{k.current=null;const O=x.current;O&&O.state!=="inactive"&&(O.onstop=()=>{for(const q of O.stream?.getTracks()??[])q.stop();v.current=[]},O.stop()),f.current?.abort()},[]),{isRecording:l,isPreparing:r,isTranscribing:d,failure:h,elapsedMs:g,start:C,stop:_,confirm:B,cancel:M,retry:V}}function Yf(e){const n=e?.status?.files,t=Cu.safeParse(n);return t.success?t.data:null}function jc(e){const[,n]=u.useReducer(p=>p+1,0),t=JSON.stringify([e.scopeKey,e.accountId,e.tenantId,e.conversationId]),a=u.useRef({scope:t,generation:0,active:!0,chips:[]});a.current.scope!==t&&(a.current={scope:t,generation:a.current.generation+1,active:!0,chips:[]});const r=a.current,s=u.useRef(e.capability);s.current=e.capability,u.useEffect(()=>(r.active=!0,()=>{r.active=!1}),[r]);const l=()=>a.current===r&&r.active,c=(p,g)=>{l()&&(r.chips=r.chips.map(b=>b.key===p?{...b,...g}:b),n())},d=async(p,g)=>{const b=s.current;if(!l()||!b||!e.accountId||!e.tenantId)throw new Error("File upload authority unavailable");if(!p.file.size||p.file.size>Math.max(...b.classes.map(k=>k.max_bytes))||encodeURIComponent(p.file.name).length>1024)throw c(p.key,{status:"error"}),new Error("File exceeds upload bounds");c(p.key,{status:"uploading"});try{const k=new Uint8Array(await p.file.arrayBuffer());if(!l()||!r.chips.some(v=>v.key===p.key)||!s.current)throw new Error("File upload cancelled");const x=await Je.uploadFile(e.tenantId,g,k,e.accountId,p.file.name);if(!l()||!r.chips.some(v=>v.key===p.key)||!s.current)throw new Error("File upload cancelled");return c(p.key,{status:"ready",id:x.id}),x.id}catch(k){throw c(p.key,{status:"error"}),k}},m=p=>{if(!l())return;const g=s.current,b=Math.min(10,g?.max_items??10);for(const k of p){const x={key:crypto.randomUUID(),file:k,status:g&&r.chips.length<b?"held":"error"};r.chips=[...r.chips,x],g&&e.conversationId&&x.status==="held"&&d(x,e.conversationId).catch(()=>{})}n()},h=async(p,g)=>{if(!l()||g!==e.tenantId||!s.current||e.conversationId&&p!==e.conversationId)throw new Error("File destination changed");const b=[...r.chips];if(b.length>Math.min(10,s.current.max_items??10))throw new Error("Too many files");const k=[];for(const x of b){if(!l()||!r.chips.some(v=>v.key===x.key))throw new Error("File destination changed");if(x.status==="uploading")throw new Error("File upload still pending");k.push(x.status==="ready"&&x.id?x.id:await d(x,p))}if(!l()||!s.current)throw new Error("File destination changed");return k};return{chips:r.chips,enabled:e.capability!==null,busy:r.chips.some(p=>p.status==="uploading"),blocked:r.chips.length>0&&(!e.capability||r.chips.some(p=>p.status==="error")),add:m,stageInto:h,receipt:()=>({count:r.chips.length,stageInto:h}),retry:p=>{const g=r.chips.find(b=>b.key===p);!g||!s.current||(e.conversationId?d(g,e.conversationId).catch(()=>{}):c(p,{status:"held"}))},remove:p=>{l()&&(r.chips=r.chips.filter(g=>g.key!==p),n())},clear:()=>{l()&&(r.chips=[],n())}}}function Ui(e){const n=Array.from(e.items??[]).filter(t=>t.kind==="file");return n.length?n.flatMap(t=>{const a=t.getAsFile();return a?[a]:[]}):Array.from(e.files??[])}async function Xf(e){if(typeof createImageBitmap!="function")return!1;try{return(await createImageBitmap(e)).close(),!0}catch{return!1}}async function Is(e){const n=[],t=[];for(const a of e){const r=Es(new Uint8Array(await a.slice(0,32).arrayBuffer()));(r!==null&&(r!=="image/heic"||await Xf(a))?n:t).push(a)}return{images:n,generic:t}}let il=!1,al=0;const Zf=e=>e?JSON.stringify([e.conversationId,e.tenantId,e.accountId,e.threadRootId??null]):"";function _c(e,n,t=Je){const a=Zf(e),r=u.useRef(e);r.current=e;const s=u.useRef(t);s.current=t;const l=Do(w=>w.shareTyping),c=u.useRef(l);c.current=l;const d=u.useRef({active:null,sent:!1,sending:!1,inflight:null,lastPutAt:Number.NEGATIVE_INFINITY,resendMs:Er,resendTimer:null,idleTimer:null}),m=u.useCallback(()=>{const w=d.current;w.resendTimer!==null&&clearTimeout(w.resendTimer),w.idleTimer!==null&&clearTimeout(w.idleTimer),w.resendTimer=null,w.idleTimer=null},[]),h=u.useCallback(()=>{const w=d.current;m();const f=w.active,j=w.sent;if(w.active=null,w.sent=!1,!f||!j)return;const S=()=>s.current.typingClear(f).catch(()=>{});w.inflight?w.inflight.then(S):S()},[m]),p=u.useCallback(()=>{const w=d.current,f=w.active;if(!f||w.sending)return;w.sent=!0,w.lastPutAt=Date.now();const S=s.current.typingSet(f).then(E=>{if("shared"in E){Do.getState().setShareTyping(!1),w.active===f&&(m(),w.active=null,w.sent=!1);return}w.resendMs=Ta(E.resend_after_ms,Er)},E=>{if(E?.code==="outdated_hub")il=!0;else if(E?.status===429||E?.status===503)al=Date.now()+Ta(Jd(E),Gr);else return;w.active===f&&(m(),w.active=null,w.sent=!1)}).then(()=>{w.inflight===S&&(w.inflight=null)},()=>{w.inflight===S&&(w.inflight=null)});w.inflight=S},[m]),g=u.useCallback(w=>{const f=d.current;f.resendTimer!==null&&clearTimeout(f.resendTimer),f.resendTimer=setTimeout(()=>{f.resendTimer=null,f.active&&(p(),g(f.resendMs))},w)},[p]),b=u.useCallback(w=>{const f=d.current,j=r.current;if(w.trim()===""){h();return}if(!j||f.sending||c.current===!1||il||Date.now()<al||typeof document<"u"&&document.visibilityState==="hidden"||(f.idleTimer!==null&&clearTimeout(f.idleTimer),f.idleTimer=setTimeout(()=>{f.idleTimer=null,h()},kg),f.active))return;f.active=j;const S=Date.now()-f.lastPutAt;S>=f.resendMs?(p(),g(f.resendMs)):g(f.resendMs-S)},[p,g,h]),k=u.useCallback(()=>h(),[h]),x=u.useCallback(()=>{d.current.sending=!0,h()},[h]),v=u.useCallback(()=>{d.current.sending=!1},[]);return u.useEffect(()=>{n.trim()===""&&h()},[n,h]),u.useEffect(()=>()=>{h(),d.current.lastPutAt=Number.NEGATIVE_INFINITY,d.current.resendMs=Er},[a,h]),u.useEffect(()=>{l===!1&&h()},[l,h]),u.useEffect(()=>{if(typeof document>"u")return;const w=()=>{document.visibilityState==="hidden"&&h()};return document.addEventListener("visibilitychange",w),()=>document.removeEventListener("visibilitychange",w)},[h]),u.useMemo(()=>({onInput:b,onBlur:k,onSendStart:x,onSendEnd:v}),[b,k,x,v])}const ek=20,rl=6*ek+16,nk={canUseRadientSpeech:!1,speechBlock:"could-not-check"},sl=[],tk="team-bridge-composer",ik=e=>{const n=Math.floor(e/1e3);return`${Math.floor(n/60)}:${String(n%60).padStart(2,"0")}`},ak=e=>new Promise(n=>{const t=new FileReader;t.onload=()=>typeof t.result=="string"?n(t.result):n(null),t.onerror=()=>n(null),t.readAsDataURL(e)}),rk=({conversationId:e,placeholder:n,disabled:t=!1,sending:a=!1,sendDisabled:r=!1,canAttach:s=!1,onFileCountChange:l,fileContext:c,trailing:d,hint:m,disabledReasonId:h,recordingProbe:p,onSendMessage:g,typingTarget:b=null})=>{pe();const k=u.useId(),x=jc({scopeKey:e,...c,capability:c?.capability??null});u.useEffect(()=>{l?.(x.chips.length)},[x.chips.length,l]);const v=En(ee=>ee.inputByConversation[e]?.attachments),w=En(ee=>ee.removeAttachment),f=v??sl,j=JSON.stringify([e,c?.accountId,c?.tenantId]),S=u.useRef({identity:j});S.current.identity!==j&&(S.current={identity:j});const E=x.add,_=u.useRef(()=>{}),C=u.useRef({onSendStart:()=>{},onSendEnd:()=>{}}),{inputValue:B,setInputValue:M,appendTranscriptText:V,handleKeyDown:O,handleSubmit:q,textareaRef:F,sendInFlight:N}=Qm({conversationId:e,transcriptless:!0,hasAdditionalContent:x.chips.length>0,onSubmit:async ee=>{if(x.busy||x.blocked)return!1;const me=x.chips.map(ye=>ye.key);_.current(ee);const Ce=C.current;Ce.onSendStart();let je;try{je=await g(ee,(En.getState().inputByConversation[e]?.attachments??sl).map(ye=>ye.path),x.receipt())}finally{Ce.onSendEnd()}if(je)for(const ye of me)x.remove(ye);return je}}),G=oc({draftKey:e,text:B,setText:M,fieldRef:F});_.current=G.stage;const K=_c(b,B);C.current=K,u.useLayoutEffect(()=>{const ee=F.current;if(!ee)return;const me=()=>{const xe=ee.scrollTop;ee.style.height="auto";const fe=Math.ceil(ee.scrollHeight);ee.style.height=`${Math.min(fe,rl)}px`,ee.style.overflowY=fe>rl?"auto":"hidden",ee.scrollTop!==xe&&(ee.scrollTop=xe)};if(me(),typeof ResizeObserver>"u")return;let Ce=!0,je=ee.getBoundingClientRect().width;const ye=new ResizeObserver(()=>{if(!Ce)return;const xe=ee.getBoundingClientRect().width;xe!==je&&(je=xe,me())});return ye.observe(ee),()=>{Ce=!1,ye.disconnect()}},[B]);const $={onPaste:ee=>{const me=Ui(ee.clipboardData);me.length!==0&&(kc(ee.clipboardData)&&ee.preventDefault(),R(me))},onDragOver:ee=>{Array.from(ee.dataTransfer.types).includes("Files")&&ee.preventDefault()},onDrop:ee=>{const me=Ui(ee.dataTransfer);me.length!==0&&(ee.preventDefault(),R(me))}},R=u.useCallback(async ee=>{if(t)return;const me=En.getState(),Ce=S.current,{images:je,generic:ye}=await Is(ee);if(S.current===Ce){ye.length&&E(ye);for(const xe of je){const fe=window.api?.getPathForFile?.(xe)??"";if(fe){me.addAttachment(e,{id:Ao(),path:Yh(fe)});continue}const qe=await ak(xe);qe&&S.current===Ce&&me.addAttachment(e,{id:Ao(),path:qe})}}},[e,t,E]),D=u.useRef(null),T=B.trim().length>0||f.length>0||x.chips.length>0,z=t,Z=a||N,L=u.useCallback(()=>{const ee=F.current;ee&&(ee.focus(),br())},[F]),ne=u.useCallback(()=>F.current,[F]);u.useEffect(()=>Ym(L,ne),[L,ne]),u.useEffect(()=>{if(z||!Tu())return;const ee=F.current;if(!ee)return;const me=document.activeElement;if(me===ee){br();return}const Ce=Mu(me);Ce==="take"?L():Ce==="drop"&&br()},[z,e,L,F]);const{canUseRadientSpeech:J,speechBlock:ge}=p??nk,de=J,Q=Xm("recording",ge),re=Qf({id:tk,canRecord:!z&&de,onTranscript:ee=>V(ee)}),ve=Zm(eh()),he=de?ve===null?o("ui.chat.composer.start_recording"):o("ui.chat.composer.start_recording_hint",{shortcut:zt(ve),pushToTalk:nh().label}):Q,ue=u.useRef(0),ke=vc;return i.jsxs("div",{className:"flex w-full flex-col gap-1.5",children:[i.jsx(sc,{mentions:G}),i.jsx(xc,{state:x}),f.length>0&&i.jsx("div",{className:"max-h-[240px] shrink-0 overflow-y-auto",children:i.jsx(th,{attachments:f,onRemoveAttachment:ee=>w(e,ee),disabled:z})}),re.failure!==null&&i.jsxs("div",{"data-dictation-failure":"",className:"flex items-center gap-2 px-2 [min-height:1.5rem]",children:[i.jsx(vs,{"aria-hidden":"true",className:"size-3.5 shrink-0 text-danger"}),i.jsx("span",{className:"min-w-0 flex-1 text-body-sm text-ink-muted",children:re.failure}),i.jsx(X,{type:"button",variant:"link",size:"sm",className:"h-7 shrink-0 px-2 underline",onClick:re.retry,children:o("ui.common.actions.retry")})]}),i.jsxs("div",{...$,"data-glass-region":"composer","data-composer-bar":"",className:H("group flex w-full flex-col rounded-md bg-elevated transition-colors duration-fast ease-out-quart","has-[textarea:focus-visible]:outline-2 has-[textarea:focus-visible]:outline-accent has-[textarea:focus-visible]:outline-offset-2 has-[textarea:focus-visible]:outline-solid"),children:[i.jsx(lc,{mentions:G,fieldRef:F,text:B,children:i.jsx("textarea",{ref:F,id:k,rows:1,value:B,disabled:z,"aria-label":n,"aria-describedby":h,placeholder:n,onChange:ee=>{M(ee.target.value),K.onInput(ee.target.value)},onBlurCapture:K.onBlur,...re.isRecording||re.isPreparing?{onKeyDown:()=>{}}:G.bindField({onKeyDown:O}),className:"relative block min-h-9 w-full resize-none bg-transparent px-3 pt-2.5 pb-1.5 text-[14px] leading-5 text-ink outline-none placeholder:text-ink-dim disabled:cursor-not-allowed disabled:text-ink-dim"})}),i.jsx("div",{"data-composer-controls":"",className:"flex h-9 min-w-0 items-center gap-1 px-1.5 pb-1.5",children:re.isRecording||re.isPreparing?i.jsxs(i.Fragment,{children:[i.jsxs("span",{"data-dictation-strip":"","aria-live":"polite",className:"flex min-w-0 flex-1 items-center gap-2 ps-1.5",children:[i.jsx("span",{"aria-hidden":"true",className:H("size-2 shrink-0 rounded-full",re.isPreparing?"bg-accent":"animate-pulse bg-danger")}),i.jsx("span",{className:"shrink-0 font-medium text-meta-sm text-ink",children:re.isPreparing?o("ui.chat.composer.starting_recording"):o("ui.chat.composer.placeholder.recording")}),re.isRecording&&i.jsx("span",{"data-dictation-elapsed":"",className:"shrink-0 font-mono text-meta-sm tabular-nums text-ink-muted",children:ik(re.elapsedMs)})]}),re.isRecording&&i.jsx(X,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-success hover:bg-success-wash hover:text-success","aria-label":o("ui.chat.composer.confirm_recording"),title:o("ui.chat.composer.confirm_recording_hint"),onClick:re.confirm,children:i.jsx(sg,{"aria-hidden":"true"})}),i.jsx(X,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-danger hover:bg-danger-wash hover:text-danger","aria-label":o("ui.chat.composer.cancel_recording"),title:o("ui.chat.composer.cancel_recording_hint"),onClick:re.isRecording?re.cancel:()=>re.stop("abort"),children:i.jsx(gt,{"aria-hidden":"true"})})]}):re.isTranscribing?i.jsxs("span",{"data-dictation-transcribing":"","aria-live":"polite",className:"flex min-w-0 flex-1 items-center gap-2 ps-1.5",children:[i.jsx(en,{size:"sm"}),i.jsx("span",{className:"truncate font-medium text-body-sm text-ink-muted",children:o("ui.chat.composer.processing_audio")})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{className:H("min-w-0 flex-1 truncate ps-1.5 text-meta-sm text-ink-dim opacity-0 transition-opacity duration-fast",!T&&"group-has-[textarea:focus]:opacity-100"),"aria-hidden":T,children:m??o("ui.teamBridge.composer.hint")}),i.jsx(X,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-ink-dim","aria-label":o("ui.chat.composer.start_recording"),"aria-busy":re.isPreparing||void 0,title:he,disabled:z||!de,onPointerDown:ee=>{if(ee.button===0){try{ee.currentTarget.setPointerCapture(ee.pointerId)}catch{}ue.current=performance.now(),re.start()}},onPointerUp:ee=>{ee.currentTarget.hasPointerCapture?.(ee.pointerId)===!0&&(ee.currentTarget.releasePointerCapture?.(ee.pointerId),!(performance.now()-ue.current<ke)&&re.confirm())},onClick:ee=>{ee.detail===0&&re.start()},children:i.jsx(ih,{"aria-hidden":"true"})}),(s||x.enabled)&&i.jsxs(i.Fragment,{children:[i.jsx(X,{variant:"ghost",size:"icon-sm","aria-label":o(x.enabled?"ui.teamBridge.files.add":"ui.teamBridge.attachments.add"),title:o(x.enabled?"ui.teamBridge.files.add":"ui.teamBridge.attachments.add"),disabled:z,onClick:()=>D.current?.click(),children:x.enabled?i.jsx(bd,{size:16,"aria-hidden":"true"}):i.jsx(Qd,{size:16,"aria-hidden":"true"})}),i.jsx("input",{ref:D,type:"file",accept:c?.capability?void 0:"image/png,image/jpeg,image/webp,image/gif,image/heic,image/heif",multiple:!0,hidden:!0,tabIndex:-1,onChange:ee=>{R(Array.from(ee.target.files??[])),ee.target.value=""}})]}),d,i.jsx(X,{size:"icon-sm",variant:T||Z?"primary":"ghost",className:"shrink-0 rounded-sm",disabled:!T||z||r||Z||x.busy||x.blocked,"aria-label":o("ui.teamBridge.composer.send"),onClick:()=>void q(),children:Z?i.jsx(en,{size:"sm"}):i.jsx(ld,{size:16})})]})})]})]})};function sk(e){switch(e){case"org_wide_membership":return o("ui.teamBridge.conversation_menu.reason.org_wide");case"agents_builtin":return o("ui.teamBridge.conversation_menu.reason.agents_builtin",{channel:zt("#agents")});case"general_not_member_yet":return o("ui.teamBridge.conversation_menu.reason.general_not_member_yet",{channel:zt("#general")});case"agent_not_permitted":return o("ui.teamBridge.conversation_menu.reason.agent_not_permitted")}}const Rt=({icon:e,label:n,reason:t,destructive:a,onSelect:r,testId:s})=>i.jsxs(Zi,{disabled:t!==void 0||!r,destructive:a&&t===void 0,onSelect:r,"data-menu-item":s,className:H(t&&"items-start"),children:[e,i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i.jsx("span",{className:"truncate",children:n}),t&&i.jsx("span",{className:"whitespace-normal text-ink-dim text-meta-sm",children:sk(t)})]})]}),Nc=({sections:e,conversation:n,agentNotify:t=null,handlers:a})=>{const r=ah(n),s=r==="mute",l=c=>{switch(c.id){case"view_members":return i.jsx(Rt,{testId:c.id,icon:i.jsx(mt,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.conversation_menu.view_members"),onSelect:a.onViewMembers});case"add_members":return i.jsx(Rt,{testId:c.id,icon:i.jsx(pi,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.members.menu"),onSelect:a.onAddMembers});case"join":return i.jsx(Rt,{testId:c.id,icon:i.jsx(Rg,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.conversation_menu.join"),onSelect:a.onJoin});case"notify":return i.jsxs(i.Fragment,{children:[i.jsxs(Zi,{"data-menu-item":"mute",onSelect:()=>a.onNotifyChange?.(sh(r)),children:[s?i.jsx(Au,{size:16,"aria-hidden":"true"}):i.jsx(Yd,{size:16,"aria-hidden":"true"}),i.jsx("span",{children:s?o("ui.teamBridge.menu.unmute"):o("ui.teamBridge.menu.mute")})]}),i.jsx(mi,{children:o("ui.teamBridge.notify.label")}),i.jsx(Hr,{value:r,"aria-label":o("ui.teamBridge.notify.label"),onValueChange:d=>a.onNotifyChange?.(Bo(d)),children:oh.map(d=>i.jsx(Ra,{value:d.value,children:i.jsx("span",{className:"min-w-0 flex-1 truncate",children:o(d.labelKey)})},d.value))})]});case"agent_notify":return i.jsxs(i.Fragment,{children:[i.jsx(mi,{children:o("ui.teamBridge.agentNotify.label")}),i.jsx(Hr,{value:t??"","aria-label":o("ui.teamBridge.agentNotify.label"),onValueChange:d=>a.onAgentNotifyChange?.(Bo(d)),children:rh.map(d=>i.jsx(Ra,{value:d.value,children:i.jsx("span",{className:"min-w-0 flex-1 truncate",children:o(d.labelKey)})},d.value))})]});case"remove_agent":return i.jsx(Rt,{testId:c.id,icon:i.jsx(Ag,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.conversation_menu.remove_agent",{name:c.agentName}),reason:c.disabledReason,onSelect:a.onOwnAgent?()=>a.onOwnAgent?.(c):void 0});case"add_agent":return i.jsx(Rt,{testId:c.id,icon:i.jsx(Ot,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.conversation_menu.add_agent",{name:c.agentName}),reason:c.disabledReason,onSelect:a.onOwnAgent?()=>a.onOwnAgent?.(c):void 0});case"leave":return i.jsx(Rt,{testId:c.id,destructive:!0,icon:i.jsx(dd,{size:16,"aria-hidden":"true"}),label:c.kind==="group"?o("ui.teamBridge.conversation_menu.leave_group"):o("ui.teamBridge.conversation_menu.leave_channel"),reason:c.disabledReason,onSelect:a.onLeave});case"archive":return i.jsx(Rt,{testId:c.id,icon:i.jsx(Ba,{size:16,"aria-hidden":"true"}),label:o("ui.teamBridge.archive.menu.archive"),onSelect:a.onArchive})}};return i.jsx(i.Fragment,{children:e.map((c,d)=>i.jsxs(u.Fragment,{children:[d>0&&i.jsx(Vd,{}),c.map(m=>i.jsx(u.Fragment,{children:l(m)},m.id))]},c.map(m=>m.id).join(":")))})},ok=({sections:e,conversation:n,agentNotify:t,handlers:a,defaultOpen:r=!1})=>(pe(),e.length===0?null:i.jsxs(Qi,{defaultOpen:r,children:[i.jsx(Yi,{asChild:!0,children:i.jsx(X,{type:"button",size:"icon-sm",variant:"ghost","aria-label":o("ui.teamBridge.menu.label"),title:o("ui.teamBridge.menu.label"),children:i.jsx(Oa,{size:16,"aria-hidden":"true"})})}),i.jsx(Xi,{align:"end",className:"w-64",children:i.jsx(Nc,{sections:e,conversation:n,agentNotify:t,handlers:a})})]}));function lk({subject:e,conversationName:n,pending:t,error:a,onClose:r,onConfirm:s}){pe();const l=n,c=e?e.kind==="leave"?{title:e.conversationKind==="group"?o("ui.teamBridge.conversation_menu.confirm.leave_group_title",{conversation:l}):o("ui.teamBridge.conversation_menu.confirm.leave_channel_title",{conversation:l}),body:e.agentStays?o("ui.teamBridge.conversation_menu.confirm.leave_body_agents",{channel:zt("#agents")}):o("ui.teamBridge.conversation_menu.confirm.leave_body"),confirm:o("ui.teamBridge.members_panel.confirm.leave"),danger:!0}:e.kind==="remove_agent"&&e.action==="decline"?{title:o("ui.teamBridge.members_panel.confirm.decline_title",{name:e.agentName}),body:o("ui.teamBridge.members_panel.confirm.decline_body",{name:e.agentName,conversation:l}),confirm:o("ui.teamBridge.members_panel.confirm.decline"),danger:!0}:e.kind==="remove_agent"?{title:o("ui.teamBridge.conversation_menu.confirm.remove_agent_title",{name:e.agentName,conversation:l}),body:o("ui.teamBridge.conversation_menu.confirm.remove_agent_body",{name:e.agentName}),confirm:o("ui.teamBridge.members_panel.confirm.remove"),danger:!0}:{title:o("ui.teamBridge.conversation_menu.confirm.add_agent_title",{name:e.agentName,conversation:l}),body:o("ui.teamBridge.conversation_menu.confirm.add_agent_body",{name:e.agentName}),confirm:o("ui.teamBridge.conversation_menu.confirm.add_agent"),danger:!1}:null;return i.jsx(qt,{open:e!==null,onOpenChange:d=>{!d&&!t&&r()},children:i.jsxs(Ft,{className:"gap-4",closeDisabled:t,children:[i.jsx($t,{children:c?.title}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:c?.body}),a&&i.jsx("p",{role:"alert",className:"text-[12px] text-danger",children:a==="not_in_general"?o("ui.teamBridge.conversation_menu.error.not_in_general",{channel:zt("#general")}):a==="general_rejoin_refused"?o("ui.teamBridge.conversation_menu.error.general_rejoin_refused",{channel:zt("#general")}):o("ui.teamBridge.conversation_menu.error.generic")}),i.jsxs(Wa,{children:[i.jsx(X,{type:"button",variant:"ghost",disabled:t,onClick:r,children:o("ui.teamBridge.create.cancel")}),i.jsx(X,{type:"button",variant:c?.danger?"danger":"primary",disabled:t,onClick:s,children:c?.confirm})]})]})})}const dk=new Set(["general","humans"]);function ck(e,n){return n?e.members.find(t=>t.kind==="agent"&&t.account_id===n&&(t.state==="active"||t.state==="invited"))??null:null}function hi(e){const n=e?.endpoint_id;return typeof n=="string"&&n!==""?n:void 0}function uk(e,n,t,a){return n?a===void 0?e.members.some(r=>r.kind==="agent"&&r.account_id===n)||!!t?.agent:t?.account_id===n&&t.agent&&t.agent.endpoint_id===a?!0:e.members.some(r=>r.kind==="agent"&&r.account_id===n&&hi(r)===a):!1}function mk(e,n){return e.members.some(t=>t.kind==="human"&&t.account_id===n&&t.state==="active")}function hk(e){const{conversation:n,selfAccountId:t,selfPerson:a}=e;if(!t||n.kind==="dm")return null;const r=ck(n,t),s=a?.account_id===t?a.agent:void 0,l=s?.name.trim()||r?.display_label.trim()||"";if(!r&&!s||!l)return null;const c=n.builtin;if(c==="humans")return null;if(c==="agents")return r&&r.state==="active"?{id:"remove_agent",agentName:l,action:"withdraw",endpointId:hi(r),disabledReason:"agents_builtin"}:null;if(c==="general"){if(r?.state==="active")return{id:"remove_agent",agentName:l,action:"withdraw",endpointId:hi(r)};const d=n.members.find(m=>m.kind==="agent"&&m.account_id===t&&(m.state==="left"||m.state==="removed"));return d?{id:"add_agent",agentName:l,action:"accept",endpointId:hi(d)??s?.endpoint_id}:{id:"remove_agent",agentName:l,action:"withdraw",disabledReason:"general_not_member_yet"}}return r?{id:"remove_agent",agentName:l,action:r.state==="active"?"withdraw":"decline",endpointId:hi(r)??s?.endpoint_id}:!s||!Kn(n,t)?null:{id:"add_agent",agentName:l,action:"add",endpointId:s.endpoint_id,disabledReason:n.agent_capable?void 0:"agent_not_permitted"}}function gk(e){const{conversation:n,selfAccountId:t,wiring:a}=e,r=qa(n),s=n.kind==="dm",l=n.status==="open",c=!r&&mk(n,t),d=!e.readOnly&&l,m=[];a.viewMembers&&!s&&!r&&m.push({id:"view_members"}),d&&a.addMembers&&Kn(n,t)&&m.push({id:"add_members"}),d&&a.join&&r&&m.push({id:"join"});const h=[];d&&!r&&a.notify&&(h.push({id:"notify"}),a.agentNotify&&e.agentNotifyEnabled&&n.members.some(g=>g.kind==="agent"&&g.account_id===t&&g.state==="active")&&h.push({id:"agent_notify"}));const p=[];if(d&&c&&a.ownAgent){const g=hk(e);g&&p.push(g)}if(d&&c&&a.leave&&!s){const g=n.kind==="group"?"group":"channel";p.push(n.builtin&&dk.has(n.builtin)?{id:"leave",kind:g,disabledReason:"org_wide_membership"}:{id:"leave",kind:g})}return d&&a.archive&&e.archivable&&p.push({id:"archive"}),[m,h,p].filter(g=>g.length>0)}function pk(e,n,t,a){if(!n||a.disabledReason||!uk(e,n,t,a.endpointId))return null;if(a.action!=="add")return{op:a.action,endpointId:a.endpointId};const r=t?.account_id===n?t.agent:void 0;return!r||r.endpoint_id!==a.endpointId||!Kn(e,n)?null:{op:"add",member:{account_id:n,kind:"agent",endpoint_id:r.endpoint_id,display_label:a.agentName.slice(0,64)}}}function fk(e,n,t=[]){const a=yd(e.filter(r=>r.id!==n),t);return a?{type:"conversation",id:a.id}:null}async function kk(e){if(await e.leave(),e.serverWithdrawsAgent||!e.ownActiveAgent)return{status:"left"};if(e.builtin)return{status:"left"};const n=hi(e.ownActiveAgent);try{return await e.withdraw(n),{status:"left"}}catch(t){return{status:"partial",endpointId:n,error:t}}}function wk(e){const n=e;return n?.code==="member_not_found"?!0:n?.code==="invalid_transition"&&n.detail?.details?.rule==="not_active"}function bk(e){const n=e;return n?.code==="agent_not_permitted"?!0:n?.code==="invalid_transition"&&n.detail?.details?.rule==="not_opted_out"}function yk(e){return e?.code==="member_not_found"}const xk=/\s+/g,vk=/^#+/;function jk(e){return e.trim().toLowerCase().replace(xk,"-").replace(vk,"")}const _k=({open:e,onClose:n,candidates:t,onCreate:a,pending:r=!1,error:s})=>{pe();const l=u.useId(),c=u.useId(),[d,m]=u.useState(""),[h,p]=u.useState(""),[g,b]=u.useState([]);u.useEffect(()=>{e&&(m(""),p(""),b([]))},[e]);const k=jk(d),x=k.length>0;return i.jsx(qt,{open:e,onOpenChange:v=>{v||n()},children:i.jsxs(Ft,{className:"gap-4",children:[i.jsx($t,{children:o("ui.teamBridge.create.title")}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:o("ui.teamBridge.create.channel_description")}),i.jsxs("label",{htmlFor:l,className:"flex flex-col gap-1 text-[13px] text-ink-muted",children:[o("ui.teamBridge.create.name"),i.jsx(Gi,{id:l,value:d,onChange:v=>m(v.target.value),placeholder:o("ui.teamBridge.create.name_placeholder"),maxLength:80,autoFocus:!0})]}),i.jsxs("label",{htmlFor:c,className:"flex flex-col gap-1 text-[13px] text-ink-muted",children:[o("ui.teamBridge.create.topic"),i.jsx(Gi,{id:c,value:h,onChange:v=>p(v.target.value),maxLength:512})]}),i.jsxs("div",{className:"flex flex-col gap-1 text-[13px] text-ink-muted",children:[i.jsx("span",{children:o("ui.teamBridge.create.members")}),i.jsx("div",{className:"relative -mx-5",children:i.jsx(yc,{recipients:g,candidates:t,onChange:b,autoFocus:!1})})]}),s&&i.jsx("p",{role:"alert",className:"text-[13px] text-danger",children:s}),i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx(X,{type:"button",variant:"ghost",onClick:n,children:o("ui.teamBridge.create.cancel")}),i.jsx(X,{type:"button",variant:"primary",disabled:!x||r,onClick:()=>a({kind:"channel",name:k,...h.trim()?{topic:h.trim()}:{},visibility:"tenant",agentCapable:!0,members:g.map(gs)}),children:o("ui.teamBridge.create.confirm")})]})]})})},Nk=({status:e,api:n=zu,defaultExpanded:t})=>{const a=ht(),r=e?.tenant_id??null,s=e?.account_id??null,l=e?.surface_state==="C"&&e.default_on?.notice_pending===!0,c=[...Rn.all,"default-on-settings",s,r],m=Ua({queryKey:c,queryFn:()=>n.settings(r??void 0),enabled:l&&r!==null,staleTime:6e4}).data??null,h=wg(e??null,m,s),p=bg({api:n,accountId:s,tenantId:m?.settings.tenant_id??r,markerTenantId:r,onSettings:g=>a.setQueryData(c,g),onChanged:async()=>{Pu.invalidateStatus(),await a.invalidateQueries({queryKey:Rn.status})}});return!e||!h?null:i.jsx("div",{className:"shrink-0 px-4 py-1",children:i.jsx(yg,{consentText:Xh(e,m),pending:p.pending,failure:p.failure,onTurnOff:()=>void p.turnOff(),onDismiss:()=>void p.dismiss(),defaultExpanded:t})})},Bk=W.discriminatedUnion("kind",[W.object({kind:W.literal("human"),accountId:W.string().min(1),label:W.string()}),W.object({kind:W.literal("agent"),accountId:W.string().min(1),endpointId:W.string().min(1),label:W.string()})]),Sk=W.object({target:W.discriminatedUnion("type",[W.object({type:W.literal("conversation"),id:W.string().min(1)}),W.object({type:W.literal("person"),accountId:W.string().min(1)}),W.object({type:W.literal("chief"),accountId:W.string().min(1)}),W.object({type:W.literal("compose"),recipients:W.array(Bk)})]),body:W.string(),clientRef:W.string().min(1),conversationId:W.string().min(1).optional(),sendAt:W.string().datetime({offset:!0}).optional(),createUncertain:W.boolean().optional(),attachments:W.array(W.object({id:W.string().regex(/^[a-zA-Z0-9_-]{1,128}$/),conversationId:W.string().min(1).max(128),mime:W.enum(["image/png","image/jpeg"]),size:W.number().int().nonnegative(),width:W.number().int().nonnegative(),height:W.number().int().nonnegative(),expiresAt:W.string().max(64).optional()}).strict()).max(4).optional()});function Ze(e){switch(e.type){case"conversation":return`conversation:${e.id}`;case"person":return`person:${e.accountId}`;case"chief":return`chief:${e.accountId}`;case"compose":return"compose"}}function es(e,n){try{const t=JSON.parse(e.getItem(n)??"{}");if(!t||typeof t!="object"||Array.isArray(t))return{};const a={};for(const[r,s]of Object.entries(t)){const l=Sk.safeParse(s);l.success&&Ze(l.data.target)===r&&(a[r]=l.data)}return a}catch{return{}}}function Ek(e,n){const t=new Map,a=`${cd}${encodeURIComponent(n)}:`;try{for(const r of Object.keys(e))r.startsWith(a)&&t.set(r,es(e,r))}catch{}return t}function Ik(e){return decodeURIComponent(e.slice(e.lastIndexOf(":")+1))}const Rk=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})$/;function ol(e,n=Date.now()){const t=new Date(e),a=t.getTime(),r=Rk.exec(e);return!r||t.getFullYear()!==Number(r[1])||t.getMonth()+1!==Number(r[2])||t.getDate()!==Number(r[3])||t.getHours()!==Number(r[4])||t.getMinutes()!==Number(r[5])?null:Number.isFinite(a)&&a>=n+6e4&&a<=n+120*864e5?new Date(a).toISOString():null}function Ck({reasonId:e,busy:n,onRetry:t,onDiscard:a}){return i.jsxs("div",{className:"flex min-w-0 flex-col gap-2 px-3.5 pt-3 text-sm text-ink-muted",children:[i.jsx("p",{id:e,children:o("ui.teamBridge.schedule.held")}),i.jsxs("div",{className:"flex min-w-0 flex-col items-stretch gap-1",children:[t&&i.jsx(X,{variant:"primary",className:"h-auto min-h-8 w-full max-w-full justify-start whitespace-normal py-1.5 text-left [overflow-wrap:anywhere]",disabled:n,onClick:t,children:o("ui.teamBridge.schedule.retry")}),i.jsx(X,{variant:"ghost",className:"h-auto min-h-8 w-full max-w-full justify-start whitespace-normal py-1.5 text-left text-danger hover:text-danger [overflow-wrap:anywhere]",disabled:n,onClick:a,children:o("ui.teamBridge.schedule.discard_attempt")})]})]})}const Tk={agent_unavailable:()=>o("ui.teamBridge.invitations.failed.agent_unavailable"),already_answered:()=>o("ui.teamBridge.invitations.failed.already_answered"),gone:()=>o("ui.teamBridge.invitations.failed.gone"),outdated:()=>o("ui.teamBridge.invitations.failed.outdated"),runtime_outdated:()=>o("ui.teamBridge.invitations.failed.runtime_outdated"),not_available:()=>o("ui.teamBridge.invitations.failed.not_available"),sign_in:()=>o("ui.teamBridge.invitations.failed.sign_in"),unreachable:()=>o("ui.teamBridge.invitations.failed.unreachable"),unconfirmed:()=>o("ui.teamBridge.invitations.failed.unconfirmed")},Mk=new Set(["already_answered","gone","outdated","runtime_outdated"]);function ll(e){return Tk[e]()}function Ak(e){return!Mk.has(e)}function zk(e){return e?e.self?e.role==="added"?o("ui.teamBridge.invitations.added_by_you"):o("ui.teamBridge.invitations.created_by_you"):e.role==="added"?o("ui.teamBridge.invitations.added_by",{name:e.name}):o("ui.teamBridge.invitations.created_by",{name:e.name}):null}function Pk({invitations:e,listState:n,onRetry:t,readOnly:a=!1,organizationNames:r}){const s=ud(),[l,c]=u.useState({}),d=u.useRef([]),m=new Set(Object.entries(l).filter(([,p])=>p.phase!=="idle").map(([p])=>p));d.current=Du(d.current,e,m);const h=(p,g)=>{c(b=>({...b,[p.key]:{phase:"pending",decision:g}})),s.mutateAsync({conversationId:p.conversationId,tenantId:p.tenantId,decision:g}).then(()=>c(b=>({...b,[p.key]:{phase:"done",decision:g}})),b=>c(k=>({...k,[p.key]:{phase:"failed",kind:Lu(b)}})))};return i.jsx(Dk,{invitations:d.current,rowStates:l,listState:n,onRetry:t,readOnly:a,organizationNames:r,onAnswer:h})}function Dk({invitations:e,rowStates:n={},listState:t,onRetry:a,readOnly:r=!1,organizationNames:s={},onAnswer:l}){return pe(),i.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-5","aria-label":o("ui.teamBridge.invitations.title"),children:[i.jsx("h2",{className:"text-lg font-medium text-ink",children:o("ui.teamBridge.invitations.title")}),i.jsx("p",{className:"max-w-prose text-sm text-ink-muted",children:o(Ou)}),r&&e.length>0&&i.jsx("p",{className:"max-w-prose text-sm text-ink-muted",children:o("ui.teamBridge.invitations.read_only")}),t==="loading"&&e.length===0?i.jsx(en,{size:"sm",label:o("ui.teamBridge.invitations.loading")}):t==="error"&&e.length===0?i.jsxs("div",{role:"alert",className:"flex flex-col items-start gap-2",children:[i.jsx("p",{className:"text-sm text-ink-muted",children:o("ui.teamBridge.invitations.load_failed")}),a&&i.jsx(X,{size:"sm",variant:"ghost",onClick:a,children:o("ui.teamBridge.list.retry")})]}):e.length===0?i.jsx("p",{className:"text-sm text-ink-muted",children:o("ui.teamBridge.invitations.empty")}):i.jsx("ul",{className:"flex flex-col gap-2",children:e.map(c=>i.jsx(Lk,{invitation:c,state:n[c.key]??{phase:"idle"},readOnly:r,organizationName:s[c.tenantId],onAnswer:d=>l(c,d)},c.key))})]})}function Lk({invitation:e,state:n,readOnly:t,organizationName:a,onAnswer:r}){const s=e.conversationKind==="group"?mt:Da,l=zk(e.inviter),c=e.agentName,d=n.phase==="pending",m=n.phase==="failed"?n.kind:null,h=n.phase==="idle"||d||m!==null&&Ak(m);return i.jsxs("li",{className:"flex flex-col gap-1.5 rounded-lg bg-elevated p-3 text-ink",children:[i.jsxs("p",{className:"flex min-w-0 items-center gap-2 text-sm font-medium",children:[i.jsx(s,{size:14,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}),i.jsx("span",{className:"truncate",children:e.conversationName??o("ui.teamBridge.list.untitled")}),a?.trim()&&i.jsx("span",{className:"truncate font-normal text-meta-sm text-ink-dim",children:a.trim()})]}),i.jsx("p",{className:"text-sm text-ink-muted",children:o("ui.teamBridge.invitations.agent_line",c?{agent:c}:{agent:o("ui.teamBridge.invitations.agent_fallback")})}),l&&i.jsx("p",{className:"text-meta text-ink-dim",children:l}),i.jsxs("div",{className:"flex min-h-8 flex-wrap items-center gap-2",children:[h&&i.jsxs(i.Fragment,{children:[i.jsx(dl,{variant:"primary",idle:o("ui.teamBridge.invitations.accept"),busy:o("ui.teamBridge.invitations.accepting"),pending:d&&n.decision==="accept",inFlight:d,readOnly:t,onPress:()=>r("accept")}),i.jsx(dl,{variant:"ghost",idle:o("ui.teamBridge.invitations.decline"),busy:o("ui.teamBridge.invitations.declining"),pending:d&&n.decision==="decline",inFlight:d,readOnly:t,onPress:()=>r("decline")})]}),m!==null&&i.jsx("p",{role:"alert",title:ll(m),className:"min-w-0 flex-1 truncate text-sm text-danger",children:ll(m)}),n.phase==="done"&&i.jsx("p",{"aria-live":"polite",className:"text-sm text-ink-muted",children:n.decision==="accept"?c?o("ui.teamBridge.invitations.accepted",{agent:c}):o("ui.teamBridge.invitations.accepted_unnamed"):c?o("ui.teamBridge.invitations.declined",{agent:c}):o("ui.teamBridge.invitations.declined_unnamed")})]})]})}function dl({variant:e,idle:n,busy:t,pending:a,inFlight:r,readOnly:s,onPress:l}){return i.jsx(X,{size:"sm",variant:e,disabled:s,"aria-disabled":r||void 0,"aria-busy":a||void 0,onClick:r?void 0:l,className:a?"cursor-progress":void 0,children:i.jsxs("span",{className:"grid",children:[i.jsx("span",{className:H("col-start-1 row-start-1",a&&"invisible"),"aria-hidden":a,children:n}),i.jsx("span",{className:H("col-start-1 row-start-1",!a&&"invisible"),"aria-hidden":!a,children:t})]})})}function Bc(e,n){const t=e.ownerDocument,a=t.activeElement instanceof(t.defaultView?.HTMLElement??HTMLElement)?t.activeElement:null;e.querySelector("[data-thread-close]")?.focus();const r=s=>{s.key!=="Escape"||s.defaultPrevented||s.isComposing||t.querySelector('[role="menu"], [role="listbox"]')||(s.preventDefault(),s.stopPropagation(),n())};return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r),a?.isConnected&&(e.contains(t.activeElement)||t.activeElement===t.body)&&a.focus()}}const Ok="px-5 pt-3 pb-1 text-meta text-ink-dim";function qk({row:e,people:n}){const{member:t}=e,a=n.find(s=>s.account_id===t.account_id)??{account_id:t.account_id,display_label:e.label,role:"member",bridge_enabled:!1,bridge_state:"none"},r=t.endpoint_id;return i.jsx(kn,{member:a,kind:t.kind,endpointId:typeof r=="string"?r:void 0,label:e.label,size:28,className:"size-7 text-meta"})}function Fk(e,n){switch(e){case"leave":return{icon:i.jsx(dd,{"aria-hidden":"true"}),name:o("ui.teamBridge.members_panel.leave_label"),tooltip:o("ui.teamBridge.members_panel.leave_tooltip")};case"decline":return{icon:i.jsx(Wr,{"aria-hidden":"true"}),name:o("ui.teamBridge.members_panel.decline_label",{name:n}),tooltip:o("ui.teamBridge.members_panel.decline_tooltip")};default:return{icon:i.jsx(Wr,{"aria-hidden":"true"}),name:o("ui.teamBridge.members.remove_label",{name:n}),tooltip:o("ui.teamBridge.members.remove_tooltip")}}}function $k({conversation:e,people:n,selfAccountId:t,conversationName:a,onAddMembers:r,onAction:s,onClose:l,agentIdentityChip:c,initialQuery:d="",initialConfirmKey:m,initialError:h=!1}){const p=pe(),g=u.useCallback((T,z)=>lt(T,z,{named:(Z,L)=>o("ui.teamBridge.chief.label",{agent:Z,person:L}),unnamed:Z=>o("ui.teamBridge.chief.unnamed",{person:Z})}),[]),b=u.useMemo(()=>Nf(e,n,t,g,p),[e,n,t,g,p]),[k,x]=u.useState(d),v=b.length>_f,w=v?b.filter(({label:T})=>Xr(T,k)):b,{people:f,agents:j}=uc(w,T=>T.member.kind),S=[{key:"people",heading:o("ui.teamBridge.members.group.people"),rows:f},{key:"agents",heading:o("ui.teamBridge.members.group.agents_v2"),rows:j}].filter(T=>T.rows.length>0),E=jf(e),[_,C]=u.useState(()=>{const T=b.find(z=>z.key===m);return T?.action?{row:T,action:T.action}:null}),[B,M]=u.useState(!1),[V,O]=u.useState(h),q=u.useRef(new Map),F=u.useRef(null),[N,G]=u.useState(null);u.useEffect(()=>{_&&!b.some(T=>T.key===_.row.key)&&C(null)},[b,_]);const K=u.useRef(null),$=u.useRef(l);$.current=l,u.useEffect(()=>{if(K.current)return Bc(K.current,()=>$.current())},[]);const R=T=>{T&&(G(T),queueMicrotask(()=>q.current.get(T)?.focus()))},D=()=>{if(!_||!s||B)return;const{row:T,action:z}=_;M(!0),O(!1),s(T,z).then(()=>{M(!1),C(null)},()=>{M(!1),C(null),O(!0),R(F.current)})};return i.jsxs("aside",{ref:K,"aria-label":o("ui.teamBridge.members_panel.title"),className:"panel-top-pad relative flex h-full min-h-0 w-full min-w-0 shrink-0 flex-col bg-surface",children:[i.jsx(xd,{side:"start"}),i.jsxs("header",{className:"flex h-11 shrink-0 items-center justify-between px-5",children:[i.jsx("h2",{className:"font-semibold text-[15px] text-ink",children:o("ui.teamBridge.members_panel.title")}),i.jsx(X,{"data-thread-close":!0,size:"icon-sm",variant:"ghost",onClick:l,"aria-label":o("ui.teamBridge.members_panel.close"),children:i.jsx(gt,{size:16})})]}),r&&i.jsx("div",{className:"shrink-0 px-3 pb-1",children:i.jsxs(X,{type:"button",size:"sm",variant:"ghost",className:"w-full justify-start",onClick:r,children:[i.jsx(pi,{size:14,"aria-hidden":"true"}),o("ui.teamBridge.members.menu")]})}),v&&i.jsxs("div",{className:"relative shrink-0 px-5 pt-1 pb-2",children:[i.jsx(kd,{size:14,"aria-hidden":"true",className:"pointer-events-none absolute start-8 top-1/2 -translate-y-1/2 text-ink-dim"}),i.jsx(Gi,{value:k,onChange:T=>x(T.target.value),placeholder:o("ui.teamBridge.members.search"),"aria-label":o("ui.teamBridge.members.search"),className:"ps-9"})]}),E&&i.jsx("p",{className:H("shrink-0 px-5 pb-2 text-meta text-ink-dim"),children:E==="dm"?o("ui.teamBridge.members_panel.note.dm"):o(`ui.teamBridge.members_panel.note.${E}`,{channel:zt(`#${E}`)})}),V&&i.jsx("p",{role:"alert",className:H("shrink-0 px-5 pb-2 text-[13px] text-danger"),children:o("ui.teamBridge.members.mutation_error")}),i.jsx(Ca,{className:"min-h-0 flex-1",children:i.jsx("div",{className:"pb-4",children:S.length===0?i.jsx("p",{className:"px-5 py-3 text-body-sm text-ink-dim",children:o("ui.teamBridge.members.current_no_matches")}):S.map(T=>i.jsxs("section",{"aria-label":T.heading,children:[i.jsx("h3",{className:Ok,children:T.heading}),i.jsx("ul",{children:T.rows.map(z=>{const Z=s?z.action:null,L=Z?Fk(Z,z.label):null,ne=_?.row.key===z.key;return i.jsxs("li",{className:H("group flex min-h-10 items-center gap-2.5 px-5 py-1.5 hover:bg-elevated"),children:[i.jsx(qk,{row:z,people:n}),i.jsxs("p",{className:"min-w-0 flex-1 truncate text-body-sm text-ink",children:[z.label,z.self&&i.jsxs("span",{className:"text-ink-dim",children:[" ",o("ui.teamBridge.members.you")]}),z.member.role==="owner"&&i.jsxs("span",{className:"text-ink-dim",children:[" · ",o("ui.teamBridge.members.role.owner")]})]}),z.member.kind==="agent"&&c?.(z),z.state==="invited"&&i.jsx(yi,{variant:"neutral",className:"shrink-0",children:o("ui.teamBridge.members.state.invited_short")}),z.state==="pending_approval"&&i.jsx(yi,{variant:"neutral",className:"shrink-0",children:o("ui.teamBridge.members_panel.state.pending_approval")}),i.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center",children:Z&&L&&i.jsx("span",{className:H("shrink-0",wd(ne)),children:i.jsx(Ji,{content:L.tooltip,suppressed:N===z.key,discardWhileSuppressed:!0,children:i.jsx(X,{ref:J=>{J?q.current.set(z.key,J):q.current.delete(z.key)},type:"button",size:"icon-sm",variant:"ghost",disabled:B,"aria-label":L.name,"aria-haspopup":"dialog",onPointerEnter:()=>{N===z.key&&G(null)},onBlur:()=>{N===z.key&&G(null)},onClick:()=>{F.current=z.key,O(!1),C({row:z,action:Z})},children:L.icon})})})})]},z.key)})})]},T.key))})}),i.jsx(Kk,{subject:_,conversationName:a,pending:B,onClose:()=>{B||(C(null),R(F.current))},onConfirm:D})]})}function Kk({subject:e,conversationName:n,pending:t,onClose:a,onConfirm:r}){pe();const s=e?.action,l=e?.row.label??"",c=s==="leave"?{title:o("ui.teamBridge.members_panel.confirm.leave_title",{conversation:n}),body:o("ui.teamBridge.members_panel.confirm.leave_body"),confirm:o("ui.teamBridge.members_panel.confirm.leave")}:s==="decline"?{title:o("ui.teamBridge.members_panel.confirm.decline_title",{name:l}),body:o("ui.teamBridge.members_panel.confirm.decline_body",{name:l,conversation:n}),confirm:o("ui.teamBridge.members_panel.confirm.decline")}:{title:o("ui.teamBridge.members_panel.confirm.remove_title",{name:l,conversation:n}),body:s==="withdraw"?o("ui.teamBridge.members_panel.confirm.withdraw_body"):e?.row.state==="invited"?o("ui.teamBridge.members_panel.confirm.remove_invited_body"):o("ui.teamBridge.members_panel.confirm.remove_body"),confirm:o("ui.teamBridge.members_panel.confirm.remove")};return i.jsx(qt,{open:e!==null,onOpenChange:d=>{d||a()},children:i.jsxs(Ft,{className:"gap-4",closeDisabled:t,children:[i.jsx($t,{children:c.title}),i.jsx(Kt,{className:"text-[13px] text-ink-muted",children:c.body}),i.jsxs(Wa,{children:[i.jsx(X,{type:"button",variant:"ghost",disabled:t,onClick:a,children:o("ui.teamBridge.create.cancel")}),i.jsx(X,{type:"button",variant:s==="decline"?"primary":"danger",disabled:t,onClick:r,children:c.confirm})]})]})})}function Sc(e){return e.state===void 0||e.state==="bound"}function cl(e){return e.mime==="image/png"||e.mime==="image/jpeg"}const Uk={regular:400,compact:280},ul={regular:{width:400,height:320},compact:{width:280,height:220}},Hk={width:240,height:160},Gk=4;function Ec(e){const n=e?.width,t=e?.height;return!n||!t||!Number.isFinite(n)||!Number.isFinite(t)||n<0||t<0?null:{width:n,height:t}}function Wk(e){const n=Ec(e);if(!n)return"contain";const t=n.width/n.height;return t>2.5||t<.4?"contain":"cover"}function Vk(e,n,t=!1){const a=t?"compact":"regular",r=ul[a].width,s=ul[a].height,l=Ec(e);if(!l)return{...Hk};const{width:c,height:d}=l,m=Math.min(r/c,s/d,1);return{width:Math.max(64,Math.round(c*m)),height:Math.max(64,Math.round(d*m))}}function Ic(e){const n=e.display_name?.trim();return{id:e.id,fileClass:e.class??"",size:typeof e.size=="number"?e.size:0,displayName:n||null,state:e.state??"",expiresAt:e.expires_at??null}}function Jk(e){return e.state==="bound"}function Mr(e,n=Date.now()){if(e.state==="expired")return"expired";if(!Jk(e))return"unavailable";const t=e.expiresAt?Date.parse(e.expiresAt):Number.NaN;return t>0&&t<=n?"expired":"available"}function Qk(e){return e===413?"too_large":e===null||e===408||e===429||e>=500?"failed":"unavailable"}const Yk=/[\\/:*?"<>|]/g,Rc=/^[\s.]+|[\s.]+$/g,Xk=/[^_]/,Zk=/^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i,ml=200,Ar=new TextEncoder;function ew(e){if(Ar.encode(e).byteLength<=ml)return e;const n=Array.from(e),t=n.lastIndexOf("."),a=t>0&&n.length-t<=Cc?n.slice(t).join(""):"",r=n.slice(0,a?t:n.length);let s=ml-Ar.encode(a).byteLength,l=0;for(;l<r.length;l++){const c=Ar.encode(r[l]).byteLength;if(c>s)break;s-=c}return`${r.slice(0,l).join("").replace(Rc,"")}${a}`}const nw=new Map([["pdf",".pdf"],["text",".txt"],["container",".zip"]]);function tw(e,n){const t=ew(Array.from(Zh(e.displayName??""),a=>{const r=a.codePointAt(0)??0;return r<32||r>=127&&r<=159?"_":a}).join("").replace(Yk,"_").replace(Rc,""));return t&&Xk.test(t)?Zk.test(t)?`_${t}`:t:`file-${n+1}${nw.get(e.fileClass)??""}`}const Cc=9,hl=4;function iw(e){const n=Array.from(e),t=n.lastIndexOf(".");let a=n.length;t>0&&n.length-t<=Cc?a=t:n.length>hl*2&&(a=n.length-hl);const r=n.lastIndexOf("…");return r>=a&&(a=r+1),a>=n.length||a<=0?{head:e,tail:""}:{head:n.slice(0,a).join(""),tail:n.slice(a).join("")}}function Tc(e){return e?240:320}const aw=1e3;function rw(e){const[n,t]=u.useState(!1);return u.useEffect(()=>{if(!e){t(!1);return}const a=window.setTimeout(()=>t(!0),aw);return()=>window.clearTimeout(a)},[e]),n}function Mc(e){return e?{width:e.width,height:e.height,maxWidth:"100%"}:void 0}const sw=H("pointer-events-none absolute end-2 top-2 flex gap-0.5 rounded-sm bg-elevated p-0.5 opacity-0 shadow-overlay","transition-opacity duration-fast ease-out-quart","group-hover/tile:pointer-events-auto group-hover/tile:opacity-100","group-focus-within/tile:pointer-events-auto group-focus-within/tile:opacity-100"),ns="flex size-7 items-center justify-center rounded-xs text-ink-muted hover:bg-row-hover hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus";function Ac({url:e,box:n,fit:t,label:a,openLabel:r,onOpen:s,onDownload:l,buttonRef:c,overflow:d,busy:m}){const h=rw(!e),p=n!==null,g=d&&d>0?d:0,b=g?o("ui.chat.canonical.fold.more_images",{count:g,count_display:String(g)}):r;return i.jsxs("div",{className:H("group/tile relative max-w-full",p?"rounded-md":"size-full rounded-xs"),style:Mc(n),children:[i.jsx("button",{ref:c,type:"button","aria-label":b,title:b,"aria-busy":m,disabled:!e,onClick:s,className:H("block size-full cursor-zoom-in overflow-hidden leading-none disabled:cursor-progress",p?"rounded-md":"rounded-xs",e&&"bg-media-surface","focus-visible:outline focus-visible:outline-2 focus-visible:outline-focus",p?"focus-visible:outline-offset-2":"focus-visible:-outline-offset-2!"),"data-attachment-reserved":e?void 0:"",children:e?i.jsx("img",{src:e,alt:a,draggable:!1,className:H("size-full",t==="cover"?"object-cover":"object-scale-down")}):i.jsxs("span",{className:"relative flex size-full items-center justify-center",children:[i.jsx(fi,{"aria-hidden":"true",className:"absolute inset-0 rounded-none bg-media-surface"}),h&&i.jsx(Fa,{size:20,"aria-hidden":"true","data-attachment-held":"",className:"relative text-ink-dim"})]})}),e&&!g&&i.jsxs("div",{"data-lo-floating":"",className:sw,"data-attachment-actions":"",children:[i.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true","aria-label":r,title:r,onClick:s,className:ns,children:i.jsx(lh,{size:16,"aria-hidden":"true"})}),l&&i.jsx("button",{type:"button","aria-label":o("ui.common.forms.autocomplete_field.save",{label:a}),title:o("ui.chat.image_actions.save_as"),onClick:l,className:ns,children:i.jsx(vd,{size:16,"aria-hidden":"true"})})]})]})}function Rs({box:e,label:n,copy:t,kind:a="unavailable",onRetry:r,retryLabel:s,attributes:l}){const c=u.useId(),d=e!==null&&e.width>=120&&e.height>=88,m=a==="expired"?wi:jd;return i.jsxs("div",{style:Mc(e),className:H("flex flex-col items-center justify-center gap-1 break-words bg-media-surface px-2 text-center text-[12px] text-ink-muted",e?"rounded-md":"size-full rounded-xs"),"data-image-failure":"",...l,children:[i.jsxs("span",{role:"img","aria-label":n,"aria-describedby":c,title:d?void 0:t,className:"flex flex-col items-center gap-1",children:[i.jsx(m,{size:20,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}),i.jsx("span",{id:c,className:d?void 0:"sr-only",children:t})]}),r&&i.jsx("button",{type:"button",onClick:r,className:"min-h-6 rounded-sm px-1.5 font-medium text-accent hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-focus",children:s})]})}function ow({count:e}){return i.jsx("span",{"aria-hidden":"true","data-attachment-overflow":String(e),className:"pointer-events-none absolute inset-0 flex items-center justify-center group-has-[[data-image-failure]]/slot:items-start group-has-[[data-image-failure]]/slot:justify-end group-has-[[data-image-failure]]/slot:p-1",children:i.jsx("span",{className:"rounded-sm bg-elevated px-2 py-1 font-semibold text-[13px] text-ink",children:`+${e}`})})}function lw(e,n){return n===3&&e===0?"row-span-2":"aspect-square"}function zc({attachments:e,count:n=e.length,renderPreview:t,compact:a=!1,files:r=[],fileCount:s=r.length,readFile:l}){pe();const c=i.jsx(hw,{files:r,count:s,compact:a,readFile:l});if(e.length===0&&!(n>0))return r.length>0||s>0?c:null;const d=[],m=[];e.forEach((j,S)=>{const E=Sc(j),_=E&&cl(j)&&!!t;_||!E&&cl(j)?d.push({attachment:j,index:S,preview:_}):m.push({attachment:j,index:S})}),e.length===0&&m.push({attachment:null,index:0});const h=a?"compact":"regular",p=d.length===1,g=Math.min(d.length,Gk),b=d.length-g,k=o("ui.teamBridge.attachmentCard.list",{count:e.length||n}),x=({attachment:j,index:S,preview:E},_)=>{const C={box:p?Vk(j,!0,a):null,fit:p?Wk(j):"cover",overflow:_===g-1?b:0},B=_>=g;return i.jsxs("li",{hidden:B||void 0,"data-bridge-attachment-card":E?"preview":"unavailable",className:H("group/slot relative min-w-0",!p&&!B&&lw(_,g)),children:[E&&t?t(j,S,C):i.jsx(Rs,{box:C.box,label:o("ui.teamBridge.attachments.position",{index:String(S+1),count:String(e.length)}),copy:o("ui.teamBridge.attachments.unavailable")}),C.overflow>0&&i.jsx(ow,{count:C.overflow})]},j.id)},v=d.length>0?i.jsx("ul",{"aria-label":k,style:{maxWidth:Uk[h]},className:H("mt-1 min-w-0",p?"flex":"grid w-full grid-cols-2 gap-1 overflow-hidden rounded-md"),children:d.map(x)}):null,w=m.length>0?i.jsx("ul",{"aria-label":d.length?void 0:k,className:"mt-1.5 flex min-w-0 flex-wrap items-start gap-2",children:m.map(({attachment:j})=>i.jsx(cw,{attachment:j,count:n,compact:a},j?.id??"count-only"))}):null,f=r.length>0||s>0;return!w&&!f?v:i.jsxs(i.Fragment,{children:[v,w,f&&c]})}const dw=new Map([["image/png","PNG"],["image/jpeg","JPEG"]]),Cs="flex h-12 min-w-0 max-w-full items-center gap-2.5 rounded-md border border-control bg-media-surface px-2.5",Ts="flex size-8 shrink-0 items-center justify-center rounded-sm bg-elevated";function cw({attachment:e,count:n,compact:t}){const a=e!==null&&Sc(e),r=e?dw.get(e.mime):void 0,s=a&&e&&Number.isSafeInteger(e.size)?_d(e.size>0?e.size:null):null,l=e===null?o("ui.teamBridge.attachmentCard.list",{count:n}):r?o("ui.chat.canonical.image_label"):o("ui.teamBridge.attachmentCard.file"),c=a?r&&s?o("ui.chat.attachments.file_meta",{type:r,size:s}):s??r??null:e===null?null:o("ui.teamBridge.attachmentCard.unavailable"),d=e===null||r?Fa:a?fs:Xd;return i.jsxs("li",{style:{width:Tc(t)},"data-bridge-attachment-card":e===null||a?"metadata":"unavailable",title:a&&r?o("ui.teamBridge.attachmentCard.metadata_only"):void 0,className:Cs,children:[i.jsx("span",{className:Ts,children:i.jsx(d,{size:16,"aria-hidden":"true",className:"text-ink-muted"})}),i.jsxs("span",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"block truncate font-medium text-[13px] text-ink",children:l}),c&&i.jsx("span",{dir:"auto",className:"block truncate text-ink-dim text-meta-sm",children:c})]})]})}const gl=new Map([["pdf","application/pdf"],["text","text/plain"],["container","application/zip"]]);function uw({label:e,available:n}){const{head:t,tail:a}=iw(e);return i.jsxs("span",{dir:"auto",className:H("flex min-w-0 font-medium",n?"text-ink":"text-ink-muted"),children:[i.jsx("span",{"data-file-name-part":"head",className:"min-w-0 truncate",style:{unicodeBidi:"isolate"},children:t}),a&&i.jsx("span",{"data-file-name-part":"tail",dir:a.startsWith(".")?"ltr":void 0,className:"shrink-0 whitespace-pre",style:{unicodeBidi:"isolate"},children:a})]})}function mw({file:e,index:n,count:t,width:a,readFile:r}){const[s,l]=u.useState("idle"),c=u.useRef(!1),d=u.useRef(!0),m=u.useRef(null),h=u.useRef(null),p=u.useRef(!1);u.useEffect(()=>(d.current=!0,()=>{d.current=!1}),[]);const g=s==="unavailable"||s==="expired"?s:Mr(e),b=g==="available",k=b&&!!r&&s!=="too_large";u.useEffect(()=>{k||!p.current||(p.current=!1,m.current?.focus({preventScroll:!0}))},[k]);const x=async()=>{if(!(!r||c.current)){if(Mr(e)!=="available"){p.current=document.activeElement===h.current,l(Mr(e)==="expired"?"expired":"unavailable");return}c.current=!0,l("saving");try{const M=await r(e);if(!d.current)return;Nd(new Blob([M],{type:"application/octet-stream"}),tw(e,n)),l("idle")}catch(M){if(!d.current)return;const V=M?.status,O=Qk(typeof V=="number"?V:null);p.current=O!=="failed"&&document.activeElement===h.current,l(O)}finally{c.current=!1}}},v=e.displayName,w=v?dh(v):null,f=gl.has(e.fileClass)?e.fileClass:"other",j=v&&w?ch(v):o("ui.teamBridge.fileCard.kind",{kind:f}),S=!v&&f==="other",E=b&&Number.isSafeInteger(e.size)&&e.size>0?_d(e.size):null,_=S?E:E?o("ui.chat.attachments.file_meta",{type:j,size:E}):j,C=g==="expired"?o("ui.teamBridge.fileCard.expired"):g==="unavailable"?o("ui.teamBridge.fileCard.unavailable"):s==="saving"?o("ui.teamBridge.fileCard.saving"):s==="failed"?o("ui.teamBridge.fileCard.save_failed"):s==="too_large"?o("ui.teamBridge.fileCard.too_large"):_,B=b&&s==="failed";return i.jsxs("li",{ref:m,tabIndex:-1,style:{width:a},"data-bridge-file-card":g,"data-file-save":b&&r?s:void 0,className:H(Cs,"h-auto min-h-12 gap-2.5 py-1.5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-focus"),children:[i.jsx("span",{className:H(Ts,"text-ink-muted"),children:B?i.jsx(vs,{size:16,"aria-hidden":"true","data-file-save-failed":"",className:"text-danger"}):b?i.jsx(uh,{name:v??"",mimeType:gl.get(e.fileClass),className:"size-4"}):g==="expired"?i.jsx(wi,{size:16,"aria-hidden":"true"}):i.jsx(Xd,{size:16,"aria-hidden":"true"})}),i.jsxs("span",{className:"min-w-0 flex-1 text-[13px]",children:[v?i.jsx(uw,{label:v,available:b}):i.jsx("span",{dir:"auto",className:H("block truncate font-medium",b?"text-ink":"text-ink-muted"),children:o("ui.teamBridge.attachmentCard.file")}),C&&i.jsx("span",{"aria-live":"polite",className:"line-clamp-2 break-words text-meta-sm text-ink-dim",children:C})]}),k&&i.jsx("button",{type:"button",ref:h,className:H(ns,"shrink-0"),"aria-label":o("ui.teamBridge.fileCard.save",{index:String(n+1),count:String(t)}),title:o("ui.chat.image_actions.save_as"),"aria-busy":s==="saving"||void 0,"aria-disabled":s==="saving"||void 0,onClick:()=>void x(),children:s==="saving"?i.jsx(en,{size:"sm"}):i.jsx(vd,{size:16,"aria-hidden":"true"})})]})}function hw({files:e,count:n=e.length,compact:t=!1,readFile:a}){if(pe(),e.length===0&&!(n>0))return null;const r=Tc(t);return i.jsx("ul",{"aria-label":o("ui.teamBridge.fileCard.list",{count:e.length||n}),className:"mt-1.5 flex min-w-0 flex-wrap items-start gap-2",children:e.length?e.map((s,l)=>i.jsx(mw,{file:s,index:l,count:e.length,width:r,readFile:a},s.id)):i.jsxs("li",{style:{width:r},"data-bridge-file-card":"count-only",className:H(Cs,"gap-2.5"),children:[i.jsx("span",{className:H(Ts,"text-ink-muted"),children:i.jsx(fs,{size:16,"aria-hidden":"true"})}),i.jsx("span",{className:"min-w-0 flex-1 text-[13px]",children:i.jsx("span",{dir:"auto",className:"block truncate font-medium text-ink",children:o("ui.teamBridge.fileCard.list",{count:n})})})]})})}const gw=e=>{switch(e){case"unsupported":return o("ui.teamBridge.attachments.error_type");case"too_large":return o("ui.teamBridge.attachments.error_size");case"invalid":return o("ui.teamBridge.attachments.error_invalid");case"rate_limited":return o("ui.teamBridge.attachments.error_rate");case"limit":return o("ui.teamBridge.attachments.error_quota");case"expired":return o("ui.teamBridge.attachments.expired_staged");case"offline":return o("ui.teamBridge.attachments.error_offline");case"signed_out":return o("ui.teamBridge.plan.sign_in_reason");case"account_mismatch":return o("ui.teamBridge.attachments.error_account_changed");default:return o("ui.teamBridge.attachments.error_upload")}},pw=({chip:e,index:n,count:t,onRemove:a,onRetry:r})=>{pe();const s=o("ui.teamBridge.attachments.position",{index:String(n+1),count:String(t)}),l=e.status==="error"||e.status==="expired",c=e.status==="uploading"||e.status==="preparing",d=Pc(e),m=u.useId();return i.jsxs("li",{className:"group/chip relative","data-attachment-chip":e.status,"aria-label":s,"aria-describedby":d?m:void 0,children:[d&&i.jsx("span",{id:m,className:"sr-only",children:d}),i.jsxs("div",{title:!e.previewUrl&&e.status==="ready"?o("ui.teamBridge.attachments.preview_unavailable"):void 0,className:H("relative flex size-16 items-center justify-center overflow-hidden rounded-md border bg-sunken",l?"border-danger":"border-hairline"),children:[e.previewUrl?i.jsx("img",{src:e.previewUrl,alt:"",className:H("size-full object-cover",c?"opacity-70":"opacity-100")}):l?i.jsx(jd,{size:18,"aria-hidden":"true",className:"text-ink-dim"}):c?null:i.jsx(Fa,{size:18,"aria-hidden":"true",className:"text-ink-dim"}),c&&i.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:i.jsx("span",{className:"flex size-7 items-center justify-center rounded-full bg-elevated shadow-sm",children:i.jsx(en,{size:"sm",label:o("ui.teamBridge.attachments.uploading")})})}),l&&i.jsx("span",{"aria-hidden":"true",className:"absolute inset-x-0 bottom-0 flex items-center justify-center bg-canvas/80 py-0.5 text-danger",children:e.status==="expired"?i.jsx(wi,{size:12}):i.jsx(vs,{size:12})})]}),i.jsx(pl,{position:"top",label:o("ui.teamBridge.attachments.remove",{label:s}),onClick:a,children:i.jsx(gt,{size:12,"aria-hidden":"true"})}),l&&e.prepared&&e.reason!=="signed_out"&&e.reason!=="account_mismatch"&&i.jsx(pl,{position:"bottom",label:o("ui.teamBridge.attachments.retry",{label:s}),onClick:r,children:i.jsx(xs,{size:12,"aria-hidden":"true"})})]})},pl=({position:e,label:n,onClick:t,children:a})=>i.jsx("button",{type:"button",onClick:t,"aria-label":n,title:n,className:H("group/action absolute -right-2 flex size-6 items-center justify-center rounded-full",e==="top"?"-top-2":"-bottom-2"),children:i.jsx("span",{className:"flex size-5 items-center justify-center rounded-full border border-control bg-elevated text-ink-muted group-hover/action:text-ink group-focus-visible/action:text-ink",children:a})});function Pc(e){return e.status==="expired"?e.prepared?o("ui.teamBridge.attachments.expired_staged_retry"):o("ui.teamBridge.attachments.expired_staged"):e.status==="error"?gw(e.reason):e.status==="uploading"||e.status==="preparing"?o("ui.teamBridge.attachments.uploading"):null}const fw=({state:e})=>{pe();const n=e.chips.findIndex(c=>c.status==="error"||c.status==="expired"),t=n>=0?e.chips[n]:null,a=e.chips.filter(c=>c.status==="error"||c.status==="expired"),r=e.chips.some(c=>c.status==="uploading"||c.status==="preparing"),s=e.notice==="unsupported"||e.unsupported?o("ui.teamBridge.attachments.unsupported"):e.notice==="limit"?o("ui.teamBridge.attachments.limit",{max:e.max}):t?Pc(t)??"":r?o("ui.teamBridge.attachments.uploading"):null,l=t&&!e.notice&&!e.unsupported?"danger":"muted";return e.chips.length===0&&!s?null:i.jsxs("div",{className:"px-3.5 pt-3",children:[e.chips.length>0&&i.jsx("ul",{"aria-label":o("ui.teamBridge.attachments.strip"),className:"flex flex-wrap gap-2.5",children:e.chips.map((c,d)=>i.jsx(pw,{chip:c,index:d,count:e.chips.length,onRemove:()=>e.remove(c.key),onRetry:()=>e.retry(c.key)},c.key))}),s&&i.jsxs("p",{role:l==="danger"?"alert":"status",className:H("pt-1.5 text-[12px]",l==="danger"?"text-danger":"text-ink-muted"),children:[t&&l==="danger"&&i.jsx("span",{className:"me-1.5 font-medium",children:a.length>1?o("ui.teamBridge.attachments.failed_count",{count:a.length}):o("ui.teamBridge.attachments.position",{index:String(n+1),count:String(e.chips.length)})}),s]})]})},kw=({state:e,files:n,disabled:t=!1})=>{pe();const a=u.useRef(null);if(!e.enabled&&!n?.enabled)return null;const r=n?.enabled?e.count+n.chips.length>=10:e.count>=e.max;return i.jsxs(i.Fragment,{children:[i.jsx(X,{variant:"ghost",size:"icon","aria-label":o(n?.enabled?"ui.teamBridge.files.add":"ui.teamBridge.attachments.add"),title:r?o("ui.teamBridge.attachments.limit",{max:e.max}):o(n?.enabled?"ui.teamBridge.files.add":"ui.teamBridge.attachments.add"),disabled:t||r,onClick:()=>a.current?.click(),children:n?.enabled?i.jsx(bd,{size:16,"aria-hidden":"true"}):i.jsx(Qd,{size:16,"aria-hidden":"true"})}),i.jsx("input",{ref:a,type:"file",accept:n?.enabled?void 0:"image/png,image/jpeg,image/webp,image/gif,image/heic,image/heif",multiple:!0,hidden:!0,tabIndex:-1,onChange:s=>{const l=Array.from(s.target.files??[]);n?Is(l).then(c=>{e.add(c.images),n.add(c.generic)}):e.add(l),s.target.value=""}})]})},wa=new Map;function ww(e,n){const t=wa.get(e);if(t)return t.holders+=1,t.promise;const a={holders:1,promise:Promise.resolve("unavailable")};return a.promise=(async()=>{try{const{data:r,mimeType:s}=await Je.attachmentBytes(n),l=xi(r,s);return a.holders<=0?(bi(l),"unavailable"):(Ed(e,l),"ready")}catch(r){return r instanceof qu&&(r.status===null||r.status>=500||r.status===408||r.status===429)?"failed":"unavailable"}finally{wa.delete(e)}})(),wa.set(e,a),a.promise}function bw(e,n,t,a){const[r,s]=u.useState(()=>{const l=t?Sd(e):null;return l?{state:"ready",url:l}:{state:"loading"}});return u.useEffect(()=>{if(!t)return;let l=!0;const c=Sa(e);if(c)return s({state:"ready",url:c}),()=>{l=!1,Ea(e)};s({state:"loading"});let d=!0;return ww(e,n).then(m=>{if(d=!1,!l)return;const h=m==="ready"?Sa(e):null;s(h?{state:"ready",url:h}:{state:m==="failed"?"failed":"unavailable"})}),()=>{if(l=!1,d){const m=wa.get(e);m&&(m.holders-=1)}Ea(e)}},[e,t,a]),r}const ts=({kind:e,label:n,box:t,onRetry:a})=>i.jsx(Rs,{kind:e,label:n,box:t,copy:e==="expired"?o("ui.teamBridge.attachments.expired"):o("ui.teamBridge.attachments.unavailable"),onRetry:a,retryLabel:o("ui.teamBridge.attachments.retry_load"),attributes:{"data-attachment-placeholder":e}});function yw(e,n,t){const a=n==="image/jpeg"?"jpg":"png";Nd(e,`image-${t+1}.${a}`)}const xw=({message:e,tenantId:n,accountId:t,attachment:a,index:r,count:s,slot:l,onOpen:c,register:d,buttonRef:m})=>{const h=n===null||!t?"unavailable":Kf(a),[p,g]=u.useState(0),b=JSON.stringify(["team-bridge-member",t,n,e.conversation_id,e.id,a.id]),k=bw(b,{tenantId:n??"",conversationId:e.conversation_id,messageId:e.id,attachmentId:a.id,expectedAccountId:t??""},h==="fetch"&&!!t,p),x=o("ui.teamBridge.attachments.position",{index:String(r+1),count:String(s)}),v=k.state==="ready"?k.url:null;u.useEffect(()=>d(r,v),[v,r]);const w=v?hh(v):null;return h!=="fetch"||k.state==="unavailable"?i.jsx(ts,{kind:"unavailable",label:x,box:l.box}):k.state==="failed"?i.jsx(ts,{kind:"failed",label:x,box:l.box,onRetry:()=>g(f=>f+1)}):i.jsx(Ac,{url:v,box:l.box,fit:l.fit,overflow:l.overflow,label:x,openLabel:o("ui.teamBridge.attachments.open",{index:String(r+1),count:String(s)}),buttonRef:m,onOpen:()=>c(r),onDownload:w?()=>yw(w,a.mime,r):void 0})},vw=({message:e,tenantId:n,density:t="regular",accountId:a})=>{pe();const r=e.attachments??[],s=(e.files??[]).map(Ic),l=n!==null&&a?f=>Je.fileBytes({tenantId:n,conversationId:e.conversation_id,messageId:e.id,attachmentId:f.id,expectedAccountId:a}):void 0,c=Math.max(s.length,e.file_count??0),[d,m]=u.useState(null),[h,p]=u.useState([]),g=u.useRef([]),b=u.useRef(null);if(r.length===0&&c===0)return null;const k=r.length,x=(f,j)=>p(S=>{if(S[f]===j)return S;const E=[...S];return E[f]=j,E}),v=f=>m(j=>j===null?null:(j+f+k)%k),w=d===null?"":o("ui.teamBridge.attachments.position",{index:String(d+1),count:String(k)});return i.jsxs(i.Fragment,{children:[i.jsx(zc,{attachments:r,compact:t==="compact",files:s,fileCount:c,readFile:l,renderPreview:(f,j,S)=>i.jsx(xw,{message:e,tenantId:n,accountId:a,attachment:f,index:j,count:k,slot:S,register:x,buttonRef:E=>{g.current[j]=E},onOpen:E=>{b.current=g.current[E]??null,m(E)}})}),i.jsx(Bd,{src:d===null?void 0:h[d]??void 0,pending:d!==null&&!h[d],label:w,open:d!==null,onOpenChange:f=>{f||m(null)},restoreFocusTo:b,fallback:i.jsx(ts,{kind:"unavailable",label:w,box:{width:240,height:160}}),group:k>1&&d!==null?{index:d,count:k,onPrev:()=>v(-1),onNext:()=>v(1)}:void 0})]})},Dc=({attachments:e,accountId:n})=>{pe();const t=u.useId(),[a,r]=u.useState({}),s=e.map(c=>c.id).join(",");if(u.useEffect(()=>{const c={};for(const d of e){const m=bc(n,d.id);m&&(c[d.id]=xi(m,m.type))}return r(c),()=>{for(const d of Object.values(c))bi(d)}},[s,n]),e.length===0)return null;const l=e.length;return i.jsxs(i.Fragment,{children:[i.jsx("ul",{"aria-label":o("ui.teamBridge.attachments.in_message",{count:l}),className:"mt-1.5 flex flex-wrap gap-2",children:e.map((c,d)=>{const m=o("ui.teamBridge.attachments.position",{index:String(d+1),count:String(l)}),h=a[c.id];return i.jsx("li",{children:i.jsx(mh,{className:"size-16",role:"img","aria-label":m,"aria-describedby":h?void 0:`${t}-none`,title:h?void 0:o("ui.teamBridge.attachments.preview_unavailable"),"data-attachment-scheduled":h?"preview":"descriptor",children:h?i.jsx("img",{src:h,alt:"",className:"size-full object-cover"}):i.jsx(Fa,{size:16,"aria-hidden":"true",className:"text-ink-dim"})})},c.id)})}),i.jsx("span",{hidden:!0,id:`${t}-none`,children:o("ui.teamBridge.attachments.preview_unavailable")})]})};function jw(e,n){const t=a=>{n?Is(Ui(a)).then(r=>{e.add(r.images),n.add(r.generic)}):e.add(Tr(a))};return{onPaste:a=>{(n?Ui(a.clipboardData):Tr(a.clipboardData)).length!==0&&(kc(a.clipboardData)&&a.preventDefault(),t(a.clipboardData))},onDragOver:a=>{Array.from(a.dataTransfer.types).includes("Files")&&a.preventDefault()},onDrop:a=>{(n?Ui(a.dataTransfer):Tr(a.dataTransfer)).length!==0&&(a.preventDefault(),t(a.dataTransfer))}}}const _w=/data:image\//gi,fl=/[a-z0-9+/%=_-]/i,kl=/<\/svg\s*>/gi,Nw=/;base64$/i,zr=/[\s"'<>`]/,Bw=/[;,]/,Sw=/[)\]}.!?]{1,4}$/,Ew=80,Pr=2048,Iw=2048,Rw=256,Cw=2048;function Pt(e,n,t,a=0){let r=n,s=a;for(;r<t&&(e[r]===" "||e[r]===" ");)s=e[r]===" "?s+4-s%4:s+1,r++;return{i:r,col:s}}function wl(e,n,t){let a=n;if(e[a]==="-"||e[a]==="*"||e[a]==="+")a++;else{for(;a<t&&a-n<9&&e[a]>="0"&&e[a]<="9";)a++;if(a===n||e[a]!=="."&&e[a]!==")")return 0;a++}return a===t||e[a]==="\r"||e[a]===" "||e[a]===" "?a-n:0}function bl(e,n,t){let a=0,r=e.length;for(;a<r;){const s=a+r>>1;e[s].quote<t||e[s].quote===t&&e[s].col<=n?a=s+1:r=s}return a&&e[a-1].quote===t?e[a-1].col:0}function Tw(e,n,t,a,r,s){let l=n,c=0;for(;;){const g=Pt(e,l,t);if(g.col>3||e[g.i]!==">")break;if(!c)for(;a.length&&a[a.length-1].quote===c&&a[a.length-1].col>g.col;)a.pop();l=g.i+1,(e[l]===" "||e[l]===" ")&&l++,c++}for(;a.length&&a[a.length-1].quote>c;)a.pop();let{i:d,col:m}=Pt(e,l,t);const h=d===t||e[d]==="\r"&&d+1===t;if(h)return{at:-1,blank:h,quote:c,item:0};if(a.length&&a[a.length-1].quote===c&&a[a.length-1].col>m&&(r||!a[a.length-1].lazy||yl(e,d,t)))for(;a.length&&a[a.length-1].quote===c&&a[a.length-1].col>m;)a.pop();const p=Mw(e,d,t);for(;;){const g=bl(a,m,c);if(m-g>3)return{at:-1,blank:h,quote:c,item:g};const b=s&&d+wl(e,d,t)===t||p>=0&&d>=p?0:wl(e,d,t);if(!b)break;const k=Pt(e,d+b,t,m+b),x=k.col-m-b,v=m+b+(x===0||x>4?1:x);for(;a.length&&a[a.length-1].quote===c&&a[a.length-1].col>m;)a.pop();if(a.length&&(a[a.length-1].lazy=!1),a.push({col:v,quote:c,lazy:!1}),x>4)return{at:-1,blank:h,quote:c,item:v};d=k.i,m=k.col}if(a.length&&a[a.length-1].quote===c){const g=a[a.length-1];g.lazy=d<t&&e[d]!=="\r"&&!yl(e,d,t)}return{at:d,blank:h,quote:c,item:bl(a,m,c)}}function yl(e,n,t){const a=e[n];let r=0;for(;n+r<t&&e[n+r]===a;)r++;if(a==="#"){const s=e[n+r];return r<=6&&(n+r===t||s===" "||s===" "||s==="\r")}return a==="`"||a==="~"?r>=3:Aw(e,n,t)}function Mw(e,n,t){let a="",r=0,s=t;for(let l=t-1;l>=n;l--){const c=e[l];if(!(c===" "||c===" "||c==="\r")){if(!a&&(c==="*"||c==="-"||c==="_")&&(a=c),!a||c!==a)break;r++,s=l}}return r>=3?s:-1}function Aw(e,n,t){const a=e[n];if(a!=="*"&&a!=="-"&&a!=="_")return!1;let r=0;for(let s=n;s<t;s++)if(e[s]===a)r++;else if(e[s]!==" "&&e[s]!==" "&&e[s]!=="\r")return!1;return r>=3}function zw(e,n,t,a){let r=n;for(let c=0;c<a.quote;c++){const d=Pt(e,r,t);if(d.col>3||e[d.i]!==">")return!0;r=d.i+1,(e[r]===" "||e[r]===" ")&&r++}if(!a.item)return!1;const s=Pt(e,r,t);return!(s.i===t||e[s.i]==="\r"&&s.i+1===t)&&s.col<a.item}function Pw(e){const n=[];let t=0,a=null,r=0;const s=[];let l=!1,c=!1,d=0;for(;;){let m=e.indexOf(`
|
|
55
|
+
`,r);m<0&&(m=e.length);let h=!1;if(a&&zw(e,r,m,a)&&(n.push({start:a.start,end:r-1}),a=null,t=r-1,h=!0),a){let p=r;for(let k=0;k<a.quote;k++)p=Pt(e,p,m).i+1,(e[p]===" "||e[p]===" ")&&p++;const g=Pt(e,p,m);p=g.i;let b=0;if(g.col-a.item<=3)for(;p+b<m&&e[p+b]===a.char;)b++;b>=a.size&&!e.slice(p+b,m).trim()&&(n.push({start:a.start,end:m}),a=null,t=m,s.length&&(s[s.length-1].lazy=!1))}else{const p=Tw(e,r,m,s,l||h,c),g=p.at,b=g<0?"":e[g];let k=0;if(b==="`"||b==="~")for(;g+k<m&&e[g+k]===b;)k++;k>=3&&!(b==="`"&&e.slice(g+k,m).includes("`"))?(Dr(e,t,r,n),s.length&&(s[s.length-1].lazy=!1),a={char:b,size:k,start:r,quote:p.quote,item:p.item}):p.blank&&(Dr(e,t,r,n),t=m),l=p.blank,c=!p.blank&&p.at<0&&d===p.quote&&s.length===0,d=p.quote}if(m===e.length)break;r=m+1}return a?n.push({start:a.start,end:e.length}):Dr(e,t,e.length,n),n}function Dr(e,n,t,a){const r=[];for(let c=n;c<t;){if(e[c]!=="`"){c++;continue}let d=c;for(;d<t&&e[d]==="`";)d++;r.push({pos:c,len:d-c}),c=d}if(r.length<2)return;const s=new Map;r.forEach((c,d)=>{const m=s.get(c.len);m?m.push(d):s.set(c.len,[d])});const l=new Map;for(let c=0;c<r.length;c++){let{pos:d,len:m}=r[c],h=0;for(;d-h-1>=n&&e[d-h-1]==="\\";)h++;h%2&&(d++,m--);const p=s.get(m);if(!p)continue;let g=l.get(m)??0;for(;g<p.length&&p[g]<=c;)g++;if(l.set(m,g),g===p.length)continue;const b=r[p[g]];a.push({start:d,end:b.pos+b.len}),c=p[g]}}function Lc(e){const n=[];let t,a=0,r=-1,s,l=-1;for(const c of e.matchAll(_w)){const d=c.index,m=n[n.length-1];if(m&&d<m.end&&(m.dataLength===void 0||d<l))continue;for(t??=Pw(e);a<t.length&&t[a].end<=d;)a++;const h=a<t.length&&t[a].start<=d?t[a]:void 0;if(h&&d<l)continue;const p=h?e.length:t[a]?.start??e.length;let g=d+c[0].length;for(;g<e.length&&e[g]!==","&&!zr.test(e[g]);)g++;const b=g<e.length&&e[g]===",";if(h&&(l=Math.max(l,g)),!b&&g-d<=64)continue;const k=e.slice(d,g),x=k.search(Bw);let v=g;if(b)if(g++,Nw.test(k))for(;g<e.length;){if(fl.test(e[g])){g++;continue}if(e[g]==="\r"||e[g]===`
|
|
56
|
+
`){let j=g,S=0;for(;e[j]==="\r"||e[j]===`
|
|
57
|
+
`;){const E=j;e[j]==="\r"&&e[j+1]===`
|
|
58
|
+
`?j+=2:j++;const _=j;for(;j<e.length&&fl.test(e[j]);)j++;if(j===_||j-_<64&&j<e.length&&!`\r
|
|
59
|
+
)]}*.!?,;:`.includes(e[j])){j=E;break}S+=j-_}S>=Iw&&(v=j)}break}else if(e[g]==="<")r<g&&(r=e.indexOf(`
|
|
60
|
+
`,g),r<0&&(r=e.length)),s!==null&&(!s||s.index<g)&&(kl.lastIndex=g,s=kl.exec(e)),g=s&&s.index<r?s.index+s[0].length:r;else{let j=g;for(;j<e.length&&!zr.test(e[j]);)j++;let S=0;for(;g<e.length&&!zr.test(e[g]);){const E=e[g];if((e.startsWith("**",g)||E==="]"||E==="}"||E===")"&&!S)&&j-g<=Rw)break;E==="("&&S++,E===")"&&S&&S--,g++}g-=e.slice(Math.max(d,g-4),g).match(Sw)?.[0].length??0}g=Math.min(g,p),v=Math.min(v,p);const w=Math.max(g,v);if(h&&(l=Math.max(l,w)),w-d<Cw)continue;const f=k.slice(5,Math.min(x<0?k.length:x,5+Ew)).toLowerCase();if(h){const j=Math.min(w,h.end)-d;if(m?.dataLength!==void 0&&m.start===h.start){m.dataLength+=j;continue}n.push({start:h.start,end:h.end,mime:f,dataLength:j});continue}n.push({start:d,end:g,mime:f}),v>g&&n.push({start:g,end:v,mime:"",uncertain:!0})}return n}function Dw({body:e,span:n}){const[t,a]=u.useState(0),[r,s]=u.useState(!1),l=Math.ceil((n.end-n.start)/Pr);return i.jsxs("details",{className:H("my-1 text-sm text-ink-muted"),onToggle:c=>s(c.currentTarget.open),children:[i.jsx("summary",{className:H("w-fit cursor-pointer"),children:n.uncertain?o("ui.ownerAudit.inspect_body"):o("ui.ownerAudit.inline_image_receipt",{mime:n.mime,count:fa(n.dataLength??n.end-n.start)})}),r&&i.jsxs(i.Fragment,{children:[i.jsx("pre",{className:H("my-1 max-h-48 overflow-auto whitespace-pre-wrap break-all rounded-md bg-sunken p-2 text-mono-sm"),children:e.slice(n.start+t*Pr,Math.min(n.end,n.start+(t+1)*Pr))}),i.jsxs("div",{className:H("flex items-center gap-2"),children:[i.jsx("button",{type:"button",className:H("min-h-6 rounded px-2 text-ink hover:bg-elevated focus-visible:outline focus-visible:outline-2 disabled:text-ink-dim disabled:hover:bg-transparent"),disabled:t===0,onClick:()=>a(t-1),children:o("ui.ownerAudit.previous_chunk")}),i.jsx("span",{"aria-live":"polite",children:o("ui.ownerAudit.chunk_number",{page:fa(t+1),count:fa(l)})}),i.jsx("button",{type:"button",className:H("min-h-6 rounded px-2 text-ink hover:bg-elevated focus-visible:outline focus-visible:outline-2 disabled:text-ink-dim disabled:hover:bg-transparent"),disabled:t+1>=l,onClick:()=>a(t+1),children:o("ui.ownerAudit.next_chunk")})]})]})]})}function Lw({body:e,renderText:n}){const t=u.useMemo(()=>Lc(e),[e]);if(!t.length)return i.jsx(i.Fragment,{children:n(e)});let a=0;return i.jsxs(i.Fragment,{children:[t.map(r=>{const s=e.slice(a,r.start);return a=r.end,i.jsxs("div",{children:[s&&n(s),i.jsx(Dw,{body:e,span:r})]},r.start)}),a<e.length&&n(e.slice(a))]})}const Ow=gh().use(ph).use(fh);function Lr(e){const n=Ow.parse(e),t=new Map;So(n,"definition",r=>{const{identifier:s,url:l}=r;s!==void 0&&!t.has(s)&&t.set(s,l)});const a=[];return So(n,r=>{if(r.type==="link")a.push(r.url);else if(r.type==="linkReference"){const s=t.get(r.identifier);s!==void 0&&a.push(s)}}),a}function qw(e){if(e.trim()==="")return[];const n=Lc(e);if(n.length===0)return Lr(e);const t=[];let a=0;for(const r of n){const s=e.slice(a,r.start);s&&t.push(...Lr(s)),a=r.end}return a<e.length&&t.push(...Lr(e.slice(a))),t}const Fw=3,$w=5*60*1e3,Kw=128;function Uw(e){const n=e.expectedAccountId;if(typeof n!="string"||n.length===0||n.length>Od)return{kind:"refuse",reason:"account"};const t=e.url;return typeof t!="string"||t.length===0?{kind:"refuse",reason:"url"}:t.length>eg?{kind:"refuse",reason:"url"}:!Number.isInteger(e.index)||e.index<0||e.index>=qd?{kind:"refuse",reason:"cap"}:{kind:"ask",request:{url:t,index:e.index,expectedAccountId:n}}}function Hw(e){return e.kind==="ready"||e.kind==="retry"}const xl=e=>typeof e=="number"&&Number.isInteger(e)&&e>0,vl=e=>e&&typeof e=="object"&&typeof e.id=="string"&&Fd.test(e.id)?e:null,ma=e=>typeof e=="string"&&e.trim().length>0?e:null;function Gw(e){try{return new URL(e).hostname||null}catch{return null}}function Ww(e){const n=vl(e.image);return{url:ma(e.url)??"",siteName:ma(e.siteName),title:ma(e.title),description:ma(e.description),favicon:vl(e.favicon),image:n,imageBox:n&&xl(n.width)&&xl(n.height)?{width:n.width,height:n.height}:null}}function Oc(e){return e.siteName||Gw(e.url)||e.url||e.title||""}function Vw(e){return e.title?"":Oc(e)}function Jw(e){return!!(e.title||e.description||e.siteName||e.image||e.url)}function Qw(e){if(!e.retryable)return null;const n=e.retryAfterMs;return typeof n!="number"||!Number.isFinite(n)?{kind:"manual"}:n<=0?{kind:"after",ms:0}:n>$w?{kind:"too-far"}:{kind:"after",ms:n}}function Yw(e,n=0){switch(e.kind){case"ready":{const t=Ww(e.preview);return Jw(t)?{kind:"ready",card:t}:{kind:"absent",reason:"no-metadata"}}case"absent":return e.reason==="disabled"?{kind:"disabled"}:{kind:"absent",reason:e.reason};case"error":{const t=Qw(e);return t?t.kind==="too-far"?{kind:"silent"}:t.kind==="manual"?{kind:"retry"}:n>=Fw?{kind:"silent"}:{kind:"waiting",retryInMs:t.ms}:{kind:"silent"}}default:return{kind:"silent"}}}function Xw(e){if(e.kind==="bytes")return{kind:"served"};const{code:n,status:t}=e;switch(n){case"not-found":return{kind:"gone",status:t};case"invalid-request":return{kind:"receipt",status:t};case"account-mismatch":return{kind:"account",status:t};case"unauthorized":return{kind:"unauthorized",status:t};case"io":return t===409?{kind:"account",status:t}:t===401||t===403?{kind:"unauthorized",status:t}:{kind:"transient",status:t};default:return{kind:"transient",status:t}}}function qc(){return window.api?.desktop?.linkPreview??null}function Zw(e){return typeof e=="string"&&e.length>0&&e.length<=Od?e:null}function eb({url:e,index:n,expectedAccountId:t,bridge:a}){const r=u.useMemo(()=>Uw({url:e,index:n,expectedAccountId:t}),[e,n,t]),s=`${n}\0${t??""}\0${e}`,[l,c]=u.useState({kind:"silent"}),[d,m]=u.useState(0),[h,p]=u.useState(0),[g,b]=u.useState(s);g!==s&&(b(s),m(0),c({kind:"silent"})),u.useEffect(()=>{if(r.kind!=="ask")return;const x=a??qc();if(!x)return;let v=!1,w;return(async()=>{let j;try{j=await x.resolve(r.request)}catch{v||c({kind:"silent"});return}if(v)return;const S=Yw(j,d);c(S),S.kind==="waiting"&&(w=setTimeout(()=>m(E=>E+1),S.retryInMs))})(),()=>{v=!0,w!==void 0&&clearTimeout(w)}},[r,d,h,a]);const k=u.useCallback(()=>{m(0),c({kind:"silent"}),p(x=>x+1)},[]);return{view:l,retry:k}}function jl(e,n,t){const a=e&&Fd.test(e.id)?e.id:null,r=Zw(n),[s,l]=u.useState({url:null,refusal:null});return u.useEffect(()=>{if(!a||!r){l({url:null,refusal:null});return}const c=t??qc();if(!c)return;let d=!1,m=null;return(async()=>{let p;try{p=await c.artifact({id:a,expectedAccountId:r})}catch{d||l({url:null,refusal:{kind:"transient",status:0}});return}if(d)return;const g=Xw(p);if(p.kind!=="bytes"){l({url:null,refusal:g});return}m=xi(p.data,p.mimeType),l({url:m,refusal:null})})(),()=>{d=!0,m&&bi(m)}},[a,r,t]),s}const nb=H("relative overflow-hidden rounded-lg","has-[:focus-visible]:outline-solid has-[:focus-visible]:outline-2","has-[:focus-visible]:outline-accent has-[:focus-visible]:-outline-offset-2","has-[:focus-visible]:after:pointer-events-none has-[:focus-visible]:after:absolute","has-[:focus-visible]:after:inset-0.5 has-[:focus-visible]:after:rounded-[calc(var(--radius-lg)-2px)]","has-[:focus-visible]:after:border has-[:focus-visible]:after:border-surface","bg-sunken"),_l=H("flex min-w-0 flex-col text-inherit hover:bg-row-hover","focus-visible:outline-none"),tb="flex min-w-0 flex-col gap-1 p-3",ib="flex min-w-0 items-center gap-1.5 text-meta text-ink-muted",ab="w-full bg-media-surface object-cover";function rb(e){const n=e.imageBox;return n?{aspectRatio:`${n.width} / ${n.height}`,maxHeight:176}:{height:Kw}}const sb=({view:e,imageUrl:n,faviconUrl:t,onRetry:a})=>{if(e.kind==="retry")return i.jsxs(X,{variant:"ghost",size:"sm",onClick:a,children:[i.jsx(xs,{"aria-hidden":"true"}),o("ui.common.actions.retry")]});if(e.kind!=="ready")return null;const r=e.card,s=Oc(r),l=i.jsxs(i.Fragment,{children:[n?i.jsx("img",{src:n,alt:Vw(r),className:ab,style:rb(r),onError:c=>{c.currentTarget.style.display="none"}},n):null,i.jsxs("div",{className:tb,children:[i.jsxs("div",{className:ib,children:[t?i.jsx("img",{src:t,alt:"",className:"size-4 shrink-0 rounded-xs object-cover"}):i.jsx(kh,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),i.jsx("span",{className:"truncate",children:s})]}),r.title?i.jsx("span",{className:"line-clamp-2 font-medium text-body-sm text-ink",children:r.title}):null,r.description?i.jsx("span",{className:"line-clamp-2 text-ink-muted text-meta",children:r.description}):null]})]});return i.jsx(og,{variant:"plain",padding:"none",className:nb,children:Id.test(r.url)?i.jsx("a",{href:r.url,target:"_blank",rel:"noreferrer",title:r.url,className:_l,children:l}):i.jsx("div",{className:_l,children:l})})},ob=({url:e,index:n,expectedAccountId:t,bridge:a})=>{const{view:r,retry:s}=eb({url:e,index:n,expectedAccountId:t,bridge:a}),l=r.kind==="ready"?r.card:null,c=jl(l?.image??null,t,a),d=jl(l?.favicon??null,t,a);return Hw(r)?i.jsx(sb,{view:r,imageUrl:c.url,faviconUrl:d.url,onRetry:s}):null},lb=({body:e,expectedAccountId:n,bridge:t})=>{const a=u.useMemo(()=>qw(e).slice(0,qd).map((r,s)=>({url:r,index:s})).filter(({url:r})=>Id.test(r)),[e]);return a.length===0?null:i.jsx("div",{"data-link-previews":"",className:"mt-1.5 flex max-w-sm flex-col gap-1.5 empty:hidden",children:a.map(({url:r,index:s})=>i.jsx(ob,{url:r,index:s,expectedAccountId:n,bridge:t},`${s}\0${r}`))})};function db(e){const n=_s();return u.useMemo(()=>{if(n)return wh({body:e.body,mentions:e.mentions,candidates:n.candidates,self:n.self})?.runs},[n,e.body,e.mentions])}const cb=["manipulation","personal_info","abusive","unsafe_content","out_of_scope"],ub=["screening_unavailable","awaiting_review","delivery_pending"],mb=e=>cb.includes(e),hb=e=>ub.includes(e);function gb(e,n={}){if(!e||e.length===0)return[];const t=n.origin==="human"&&n.sender?.kind==="human"&&n.sender.audit_unknown_kind!==!0,a=[],r=new Set;for(const s of e){if(r.has(s.endpoint_id))continue;const l=s.recipient_label.trim(),c=s.recipient_owner_label.trim(),d=`${s.state}:${s.endpoint_id}`;if(s.state==="refused")r.add(s.endpoint_id),a.push({kind:"refused",key:d,agent:l,owner:c,refusalClass:t&&mb(s.refusal_class)?s.refusal_class:null});else if(s.state==="held"){r.add(s.endpoint_id);const m=hb(s.hold_class)?s.hold_class:null;a.push(m==="delivery_pending"?{kind:"pending",key:d,agent:l,owner:c}:{kind:"held",key:d,agent:l,owner:c,holdReason:m})}}return a}const pb=({message:e})=>{const n=gb(e.delivery_states,e);return n.length===0?null:i.jsx("ul",{className:"m-0 mt-0.5 flex min-w-0 list-none flex-col gap-1 p-0 text-[12px] text-ink-muted [overflow-wrap:anywhere]",children:n.map(t=>i.jsx("li",{children:i.jsx(xb,{line:t})},t.key))})},fb=({text:e})=>{const[n,t]=u.useState(!1);return i.jsx(lg,{children:i.jsxs(dg,{open:n,onOpenChange:t,children:[i.jsx(cg,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":o("ui.teamBridge.delivery.info_label"),onPointerDown:a=>a.preventDefault(),onClick:a=>{a.preventDefault(),t(!0)},className:"inline-flex translate-y-px items-center rounded-sm align-baseline text-ink-dim hover:text-ink-muted focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-focus",children:i.jsx(ug,{size:12,"aria-hidden":"true"})})}),i.jsx(mg,{children:i.jsx(hg,{side:"top",align:"center",children:e})})]})})},kb={named:(e,n)=>o("ui.teamBridge.chief.label",{agent:e,person:n}),unnamed:e=>o("ui.teamBridge.delivery.recipient_unnamed",{person:e})},wb=new Intl.Segmenter(void 0,{granularity:"grapheme"}),bb=/[。、,.:;!?)」』】》〉〕]}]/u;function yb(e){let n="";for(const{segment:t}of wb.segment(e))n=t;return[e.slice(0,e.length-n.length),n]}const xb=({line:e})=>{const n=vb(e);if(e.kind==="pending")return i.jsx(i.Fragment,{children:n});const[t,a]=yb(n),r=bb.test(a)?"":" ";return i.jsxs(i.Fragment,{children:[t,i.jsxs("span",{className:"whitespace-nowrap",children:[a,r,i.jsx(fb,{text:e.kind==="refused"?o("ui.teamBridge.delivery.info_refused"):o("ui.teamBridge.delivery.info_held")})]})]})};function vb(e){const n={recipient:bh({label:e.agent,ownerLabel:e.owner},kb)??o("ui.teamBridge.sender.unknown_agent")};if(e.kind==="pending")return o("ui.teamBridge.delivery.pending",n);if(e.kind==="held")switch(e.holdReason){case"screening_unavailable":return o("ui.teamBridge.delivery.held_screening_unavailable",n);case"awaiting_review":return o("ui.teamBridge.delivery.held_awaiting_review",n);default:return o("ui.teamBridge.delivery.held",n)}switch(e.refusalClass){case"manipulation":return o("ui.teamBridge.delivery.refused_manipulation",n);case"personal_info":return o("ui.teamBridge.delivery.refused_personal_info",n);case"abusive":return o("ui.teamBridge.delivery.refused_abusive",n);case"unsafe_content":return o("ui.teamBridge.delivery.refused_unsafe_content",n);case"out_of_scope":return o("ui.teamBridge.delivery.refused_out_of_scope",n);default:return o("ui.teamBridge.delivery.refused",n)}}const jb=Ns.groups,vi=Ns.entries.map(([e,n,t,a])=>({emoji:e,name:n,group:t,keywords:a})),_b=["👍","❤️","😂","🎉","👀","🙏","✅","🔥"],Nb=/\s+/,Fc=e=>Array.from(e).filter(n=>{const t=n.codePointAt(0)??0;return!(t>=127995&&t<=127999)&&t!==65039}).join(""),Bb=30*864e5,Hi=(e,n)=>e.score*2**(-Math.max(0,n-e.at)/Bb);function Sb(e,n,t){const a={...e,[n]:{score:(e[n]?Hi(e[n],t):0)+1,at:t}};return Object.fromEntries(Object.entries(a).sort((r,s)=>Hi(s[1],t)-Hi(r[1],t)).slice(0,200))}function Eb(e,n){const t=Object.entries(e).sort((a,r)=>Hi(r[1],n)-Hi(a[1],n)||r[1].at-a[1].at).map(([a])=>a);return[...new Set([...t,..._b])].slice(0,8)}function Ib(e,n){const t=e.toLocaleLowerCase().trim().split(Nb).filter(Boolean);return vi.filter(a=>(n===null||a.group===n)&&t.every(r=>`${a.name} ${a.keywords.join(" ")} ${a.emoji}`.toLocaleLowerCase().includes(r)))}function Rb(e,n){return e.find(a=>a.emoji===n)?e.flatMap(a=>a.emoji!==n?[a]:a.reacted_by_me?a.count===1?[]:[{...a,count:a.count-1,reacted_by_me:!1}]:[{...a,count:a.count+1,reacted_by_me:!0}]):[...e,{emoji:n,count:1,reacted_by_me:!0,sample_labels:[]}]}const Ms=e=>Array.from(e).filter(n=>{const t=n.codePointAt(0)??0;return t>=127995&&t<=127999}),Cb=new Set(vi.flatMap(({emoji:e})=>{const n=Array.from(e);return n.length===2&&Ms(e).length===1?[n[0]]:[]})),is=new Map;for(const e of vi){const n=Ms(e.emoji);if(n.length!==1)continue;const t=Fc(e.emoji),a=is.get(t)??new Map;a.set(n[0],[...a.get(n[0])??[],e.emoji]),is.set(t,a)}function Tb(e,n){if(!n||Ms(e).length||e.includes("")&&Array.from(e).filter(s=>Cb.has(s)).length>1)return e;const t=Fc(e),a=String.fromCodePoint(127994+n),r=is.get(t)?.get(a)??[];return r.length===1?r[0]:e}const oi=40,$c=28,Nl=new Map;let Li=0,rn;function Mb(e,n,t){if(t<=0||t>$c*1.5||e.length!==n.length)return!1;let a=!1;for(let r=0;r<e.length;r++){if(e[r]!==n[r])return!1;r%4===3&&e[r]!==0&&(a=!0)}return a}function Dt(e){const n=Nl.get(e);if(n!==void 0)return n;if(rn===void 0)try{const a=document.createElement("canvas");a.width=oi,a.height=oi,rn=a.getContext("2d",{willReadFrequently:!0}),rn&&(rn.font=`${$c}px "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif`,rn.textBaseline="top")}catch{rn=null}let t=!1;if(rn)try{const a=l=>(rn?.clearRect(0,0,oi,oi),rn?(rn.fillStyle=l,rn.fillText(e,2,2),rn.getImageData(0,0,oi,oi).data):new Uint8ClampedArray),r=a("#fff"),s=a("#000");t=Mb(r,s,rn.measureText(e).width)}catch{t=!1}return Nl.set(e,t),t}function Ab(e,n=8){if(Li>=e.length)return()=>{};let t,a=!1;const r=()=>{if(a)return;const s=performance.now()+n;for(;Li<e.length&&performance.now()<s;)Dt(e[Li]),Li++;Li<e.length&&(t=setTimeout(r,0))};return t=setTimeout(r,0),()=>{a=!0,t!==void 0&&clearTimeout(t)}}const Bl=Intl.ListFormat;function Sl(e,n){return Bl?new Bl(n,{style:"long",type:"conjunction"}).format(e):e.join(", ")}function El(e,n,t){if(e.ownerAddedAgent)return o("ui.teamBridge.events.owner_added_agent",{actor:t,targets:n});switch(e.kind){case"invited":return o("ui.teamBridge.events.invited",{actor:t,targets:n});case"joined":return o("ui.teamBridge.events.joined",{targets:n});case"left":return o("ui.teamBridge.events.left",{targets:n});case"removed":return o("ui.teamBridge.events.removed",{actor:t,targets:n});case"consented":return o("ui.teamBridge.events.consented",{actor:t,targets:n});case"declined":return e.selfOnly?o("ui.teamBridge.events.declined_self",{actor:t}):o("ui.teamBridge.events.declined",{actor:t,targets:n});case"withdrawn":return o("ui.teamBridge.events.withdrawn",{actor:t,targets:n});default:return o("ui.teamBridge.events.unknown")}}function zb(e,n,t){const a=e.targets.map(n),r=n(e.actor),s=a.length>bo,l=El(e,Sl(a,t),r);if(!s)return{shown:l,full:l,truncated:s};const c=a.slice(0,bo),d=o("ui.teamBridge.events.others",{count:a.length-c.length});return{shown:El(e,Sl([...c,d],t),r),full:l,truncated:s}}const Pb={invited:pi,joined:pi,consented:pi,left:ca,removed:ca,declined:ca,withdrawn:ca},Db=({line:e,labelFor:n,locale:t})=>{const{shown:a,full:r,truncated:s}=zb(e,n,t),l=e.kind?Pb[e.kind]:mt,c=new Date(e.at),d=!Number.isNaN(c.getTime()),m=d?Ha(c,{hour:"numeric",minute:"2-digit"},t):"",h=d?Ga(c,{dateStyle:"full",timeStyle:"short"},t):"",p=i.jsx("span",{tabIndex:s?0:void 0,"aria-label":s?r:void 0,className:H("min-w-0 truncate",s&&"cursor-default rounded-sm underline decoration-dotted underline-offset-2 focus-visible:outline-2 focus-visible:outline-offset-2"),children:a});return i.jsxs("li",{"data-team-bridge-event":e.key,className:"group/event flex w-full min-w-0 items-center gap-3 px-5 py-1 text-ink-dim text-meta",children:[i.jsx("span",{"aria-hidden":"true",className:"flex w-9 shrink-0 justify-end",children:i.jsx(l,{className:"size-3.5"})}),s?i.jsx(Ji,{content:i.jsx("ul",{children:e.targets.map(g=>i.jsx("li",{children:n(g)},`${g.kind}:${g.account_id}:${g.endpoint_id??""}`))}),side:"top",align:"start",children:p}):p,d&&i.jsx("time",{dateTime:e.at,title:h,className:"shrink-0 text-meta-sm opacity-0 group-focus-within/event:opacity-100 group-hover/event:opacity-100",children:m})]})},Lb=({events:e,labelFor:n,locale:t})=>!e||e.length===0?null:i.jsx(i.Fragment,{children:Fu(e).map(a=>i.jsx(Db,{line:a,labelFor:n,locale:t},a.key))});function Ob(e,n=$u){return n?e==="enabled":!1}const as=ys()(Ld(e=>({accounts:{},record:(n,t)=>e(a=>{const r=a.accounts[n]??{usage:{},tone:0};return{accounts:{...a.accounts,[n]:{...r,usage:Sb(r.usage,t,Date.now())}}}}),setTone:(n,t)=>e(a=>({accounts:{...a.accounts,[n]:{usage:a.accounts[n]?.usage??{},tone:t}}}))}),{name:"team-bridge-reaction-preferences",partialize:e=>({accounts:e.accounts})})),$n=8,li=36,ha=252,Il=160,qb=8,Fb=["😀","👋","🐻","🍎","🌍","⚽","💡","🔣","🏳️"],Rl=["ui.teamBridge.reactions.category0","ui.teamBridge.reactions.category1","ui.teamBridge.reactions.category2","ui.teamBridge.reactions.category3","ui.teamBridge.reactions.category4","ui.teamBridge.reactions.category5","ui.teamBridge.reactions.category6","ui.teamBridge.reactions.category7","ui.teamBridge.reactions.category8"];function Or(e,n){const t=Tb(e,n);return Dt(t)?t:e}function $b(e){return i.jsx(Kb,{...e})}function Kb({accountId:e,onSelect:n,onClose:t,disabled:a=!1,initialQuery:r=""}){const s=u.useId(),l=as(N=>N.accounts[e]),c=as(N=>N.setTone),[d,m]=u.useState(r),[h,p]=u.useState(null),[g,b]=u.useState(0),[k,x]=u.useState(0),v=u.useRef(null),w=u.useRef(null),f=u.useMemo(()=>Ib(d,h),[d,h]),[j,S]=u.useState({candidates:f,upTo:Il}),E=j.candidates===f?Math.min(j.upTo,f.length):Math.min(Il,f.length),_=E<f.length;u.useEffect(()=>{if(!_)return;const N=setTimeout(()=>{const G=performance.now()+qb;let K=E;for(;K<f.length&&performance.now()<G;)Dt(f[K].emoji),K++;S({candidates:f,upTo:K})},0);return()=>clearTimeout(N)},[f,E,_]);const C=u.useMemo(()=>f.slice(0,E).filter(N=>Dt(N.emoji)),[f,E]),B=Eb(l?.usage??{},Date.now()).filter(Dt),M=l?.tone??0,V=N=>{a||(n(Or(N,M)),t())},O=()=>{b(0),x(0),v.current&&(v.current.scrollTop=0)},q=Math.max(0,Math.floor(k/li)-1),F=Math.min(Math.ceil(C.length/$n),q+Math.ceil(ha/li)+3);return i.jsxs("div",{className:"flex min-h-0 w-80 max-w-[calc(100vw-32px)] flex-col gap-2",style:{maxHeight:"calc(var(--radix-popover-content-available-height, 560px) - 24px)"},"aria-busy":a,children:[i.jsx("input",{"aria-label":o("ui.teamBridge.reactions.search"),placeholder:o("ui.teamBridge.reactions.search"),className:"h-9 w-full rounded-md border border-control bg-surface px-3 text-ink outline-offset-0 shrink-0",value:d,onChange:N=>{m(N.target.value),p(null),O()},onKeyDown:N=>{N.key==="ArrowDown"&&(N.preventDefault(),w.current?.querySelector(`button[data-index="${g}"]`)?.focus())}}),i.jsxs("fieldset",{className:"flex shrink-0 items-center justify-between gap-1",children:[i.jsx("legend",{className:"sr-only",children:o("ui.teamBridge.reactions.categories")}),i.jsx("button",{type:"button","aria-pressed":h===null,"aria-label":o("ui.teamBridge.reactions.all"),className:"flex min-h-8 min-w-6 items-center justify-center rounded px-1.5 py-1 hover:bg-row-hover aria-pressed:bg-accent-wash",onClick:()=>{p(null),O()},children:i.jsx(Og,{size:16})}),jb.map((N,G)=>i.jsx("button",{type:"button","aria-pressed":h===G,title:o(Rl[G]),"aria-label":o(Rl[G]),className:"min-h-8 min-w-6 rounded px-1 py-1 hover:bg-row-hover aria-pressed:bg-accent-wash",onClick:()=>{p(G),O()},children:Fb[G]},N))]}),i.jsxs("div",{className:"flex items-center justify-between gap-2",children:[i.jsx("span",{className:"text-[12px] text-ink-muted",children:o("ui.teamBridge.reactions.frequent")}),i.jsxs("select",{"aria-label":o("ui.teamBridge.reactions.tone"),value:M,onChange:N=>c(e,Number(N.target.value)),className:"h-7 rounded border border-control bg-surface text-[12px] text-ink",children:[i.jsx("option",{value:0,children:o("ui.teamBridge.reactions.toneDefault")}),[1,2,3,4,5].map(N=>i.jsx("option",{value:N,children:String.fromCodePoint(128077,127994+N)},N))]})]}),i.jsx("div",{className:"grid grid-cols-8","aria-label":o("ui.teamBridge.reactions.frequent"),children:B.map(N=>i.jsx("button",{type:"button",title:vi.find(G=>G.emoji===N)?.name??N,className:"h-9 rounded text-[22px] hover:bg-row-hover",disabled:a,onClick:()=>V(N),children:Or(N,M)},N))}),i.jsx("div",{ref:v,className:"min-h-0 flex-shrink overflow-y-auto rounded bg-surface",style:{height:ha},onScroll:N=>x(N.currentTarget.scrollTop),children:!C.length&&!_?i.jsx("p",{className:"p-4 text-ink-muted",children:o("ui.teamBridge.reactions.noResults")}):i.jsx("table",{ref:w,"aria-label":o("ui.teamBridge.reactions.choose"),"aria-rowcount":Math.ceil(C.length/$n),"aria-colcount":$n,className:"relative block w-full",style:{height:Math.ceil(C.length/$n)*li},onKeyDown:N=>{const G={ArrowRight:1,ArrowLeft:-1,ArrowDown:$n,ArrowUp:-8}[N.key];if(G!==void 0){N.preventDefault();const K=Math.max(0,Math.min(C.length-1,g+G));b(K),requestAnimationFrame(()=>w.current?.querySelector(`button[data-index="${K}"]`)?.focus());const $=Math.floor(K/$n)*li;v.current&&($<k||$>=k+ha)&&(v.current.scrollTop=Math.max(0,$-ha/2))}else(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),V(C[g].emoji))},children:i.jsx("tbody",{className:"block",children:Array.from({length:Math.max(0,F-q)},(N,G)=>{const K=q+G;return i.jsx("tr",{"aria-rowindex":K+1,className:"absolute inset-x-0 grid grid-cols-8",style:{top:K*li,height:li},children:C.slice(K*$n,(K+1)*$n).map(($,R)=>{const D=K*$n+R;return i.jsx("td",{id:`${s}-${D}`,"data-active":g===D,"aria-colindex":R+1,children:i.jsx("button",{tabIndex:g===D?0:-1,"data-index":D,type:"button","aria-label":$.name,title:$.name,className:g===D?"h-9 w-full rounded bg-accent-wash text-[22px]":"h-9 w-full rounded text-[22px] hover:bg-row-hover",onMouseEnter:()=>b(D),disabled:a,onClick:()=>V($.emoji),children:Or($.emoji,M)})},$.emoji)})},K)})})})}),i.jsxs("p",{className:"flex min-h-5 shrink-0 items-center gap-2 truncate text-[12px] text-ink-muted","aria-live":"polite",children:[a&&i.jsx(en,{size:"xs"}),C[g]?.name??" "]})]})}const Cl=new Map(vi.map(({emoji:e,name:n})=>[e,n])),Ub=[];function Hb({conversationId:e,messageId:n,accountId:t,tenantId:a,reactions:r=Ub,disabled:s=!1,toggle:l=Je.react}){const[d,m]=u.useState(r),[h,p]=u.useState(!1),[g,b]=u.useState(null),[k,x]=u.useState(!1),v=u.useRef(!1),w=as(j=>j.record);return u.useEffect(()=>{v.current||m(r)},[r,!1]),{accountId:t,rows:d,pending:h,pendingEmoji:g,error:k,disabled:s||!1,unavailable:s||h,choose:async j=>{if(v.current||s)return;const S=d,E=!d.some(_=>_.emoji===j&&_.reacted_by_me);v.current=!0,p(!0),b(j),x(!1),m(Rb(d,j));try{const _=await l(e,n,j,E,a,t);m(_.reactions),E&&w(t,j)}catch{m(S),x(!0)}finally{v.current=!1,p(!1),b(null)}}}}function Kc(e){return i.jsx(Gb,{...e})}function Gb({state:e,open:n,onOpenChange:t,children:a}){return i.jsxs(Kd,{open:n,onOpenChange:t,children:[i.jsx(Ud,{asChild:!0,children:a}),i.jsx(Hd,{className:"max-h-[var(--radix-popover-content-available-height)] w-auto overflow-y-auto p-3",align:"start",side:"top",collisionPadding:8,avoidCollisions:!0,children:i.jsx($b,{disabled:e.unavailable,accountId:e.accountId,onSelect:r=>void e.choose(r),onClose:()=>t(!1)})})]})}function Wb(e){return i.jsx(Vb,{...e})}function Vb({state:e,defaultOpen:n=!1}){const t=u.useId(),a=pe(),[r,s]=u.useState(n),{rows:l,error:c,pending:d,pendingEmoji:m,unavailable:h}=e;if(!l.length&&!c)return null;const p=g=>Jb(g,a);return i.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-1","aria-busy":d,"data-reaction-layout":"chips",children:[l.map((g,b)=>i.jsx(Ji,{content:p(g),className:"text-balance",children:i.jsxs("button",{type:"button",disabled:h,"aria-pressed":g.reacted_by_me,"data-reaction-pill":"","aria-label":`${Cl.get(g.emoji)??g.emoji} ${new Intl.NumberFormat(a).format(g.count)}`,"aria-describedby":g.sample_labels.length?`${t}-${b}`:void 0,onClick:()=>void e.choose(g.emoji),className:H("inline-flex h-6 shrink-0 items-center gap-1 rounded-full px-2 text-[12px] leading-none transition-colors duration-fast ease-out-quart disabled:text-ink-dim",g.reacted_by_me?"bg-accent-wash font-semibold text-accent hover:text-accent-hover":"bg-elevated text-ink-muted hover:bg-sunken hover:text-ink"),children:[i.jsx("span",{className:Dt(g.emoji)?"text-[16px] leading-none":"max-w-40 truncate",children:Dt(g.emoji)?g.emoji:Cl.get(g.emoji)??`U+${g.emoji.codePointAt(0)?.toString(16).toUpperCase()}`}),i.jsxs("span",{className:"relative inline-flex items-center tabular-nums",children:[i.jsx("span",{className:H(d&&m===g.emoji&&"invisible"),children:new Intl.NumberFormat(a).format(g.count)}),d&&m===g.emoji&&i.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:i.jsx(en,{size:"xs"})})]}),i.jsx("span",{id:`${t}-${b}`,className:"sr-only",children:p(g)})]},g.emoji)},g.emoji)),!e.disabled&&l.length>0&&i.jsx(Kc,{state:e,open:r,onOpenChange:s,children:i.jsx("button",{type:"button",disabled:h,"aria-label":o("ui.teamBridge.reactions.add"),"data-reaction-add":"",className:H("inline-flex size-6 shrink-0 items-center justify-center rounded-full bg-transparent text-ink-dim","transition-[opacity,color,background-color] duration-fast ease-out-quart","hover:bg-elevated hover:text-ink disabled:text-ink-dim",r?"opacity-100":"pointer-events-none opacity-0 focus-visible:pointer-events-auto focus-visible:opacity-100 group-hover/message:pointer-events-auto group-hover/message:opacity-100 group-focus-within/message:pointer-events-auto group-focus-within/message:opacity-100 [@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100"),children:i.jsx(va,{size:14,"aria-hidden":"true"})})}),c&&i.jsx("span",{role:"alert",className:"text-[12px] text-danger",children:o("ui.teamBridge.reactions.failed")})]})}const Tl=Intl.ListFormat;function Jb(e,n){const t=e.sample_labels,a=e.count-t.length;return t.length?a<=0?new Tl(n,{style:"narrow",type:"conjunction"}).format(t):new Tl(n,{style:"long",type:"conjunction"}).format([...t,o("ui.teamBridge.reactions.others",{others:a})]):a>0?o("ui.teamBridge.reactions.others",{others:a}):""}function Qb({reactions:e,onReply:n,forceVisible:t=!1}){const[a,r]=u.useState(!1),[s,l]=u.useState(0),c=u.useRef(null),[d,m]=u.useState(null),[h,p]=u.useState(null);u.useEffect(()=>{const S=d?.closest("[data-message-id]");if(!S)return;const E=()=>{let _=S.parentElement;for(;_&&!_.hasAttribute("data-radix-scroll-area-viewport");){const{overflowY:M}=getComputedStyle(_);if(M==="auto"||M==="scroll")break;_=_.parentElement}const C=_?_.getBoundingClientRect().top:0,B=S.getBoundingClientRect().top;p(B-C<16?Math.max(4,C-B+4):null)};return S.addEventListener("pointerenter",E),S.addEventListener("focusin",E),()=>{S.removeEventListener("pointerenter",E),S.removeEventListener("focusin",E)}},[d]);const g=e!==void 0&&!e.disabled,b=n,k=(g?1:0)+(b?1:0);let x=Math.min(s,Math.max(0,k-1));x===0&&g&&e.unavailable&&k>1&&(x=1);const v=()=>Array.from(c.current?.querySelectorAll("[data-toolbar-item]")??[]),w=S=>{if(!["ArrowLeft","ArrowRight","Home","End"].includes(S.key)||S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;const E=v(),_=E.indexOf(document.activeElement);if(_<0)return;const C=c.current!==null&&getComputedStyle(c.current).direction==="rtl",B=S.key==="ArrowRight"!==C,M=S.key==="Home"?0:S.key==="End"?E.length-1:Math.max(0,Math.min(E.length-1,_+(B?1:-1)));S.preventDefault(),E[M]?.focus()};if(!g&&!b)return null;let f=0;const j=()=>{const S=f++;return{"data-toolbar-item":"",tabIndex:S===x?0:-1,onFocus:()=>l(S)}};return i.jsx("div",{ref:m,"data-message-toolbar":"","data-tucked":h!==null||void 0,style:h!==null?{top:h}:void 0,className:H("pointer-events-none absolute end-4 z-10 flex",h===null&&"-top-4"),children:i.jsxs("div",{ref:c,role:"toolbar","data-glass-plane":"floating","aria-label":o("ui.teamBridge.actions.label"),"aria-orientation":"horizontal",onKeyDown:w,"data-lo-floating":"",className:H("flex h-8 items-center gap-0.5 rounded-sm bg-floating p-0.5 shadow-overlay","transition-opacity duration-fast ease-out-quart",t||a?"pointer-events-auto opacity-100":"pointer-events-none opacity-0 group-focus-within/message:pointer-events-auto group-focus-within/message:opacity-100 group-hover/message:pointer-events-auto group-hover/message:opacity-100"),children:[g&&e&&i.jsx(Kc,{state:e,open:a,onOpenChange:r,children:i.jsx(Ml,{...j(),label:o("ui.teamBridge.reactions.add"),disabled:e.unavailable,children:i.jsx(Kg,{"aria-hidden":"true"})})}),b&&i.jsx(Ml,{...j(),label:o("ui.teamBridge.replies.action"),onClick:b,children:i.jsx(pd,{"aria-hidden":"true"})})]})})}const Ml=u.forwardRef(function({label:n,children:t,...a},r){return i.jsx(Ji,{content:n,children:i.jsx(X,{ref:r,type:"button",variant:"ghost",size:"icon-sm","aria-label":n,...a,children:t})})}),Yb=3;function Uc(e){return{count:e.reply_count??0,participants:Xb(e),lastReply:e.last_reply_at&&Number.isFinite(Date.parse(e.last_reply_at))?new Date(e.last_reply_at):null,unread:e.thread_unread_count}}function Xb(e){const n=e.reply_participant_ids??[];return(e.reply_participants??[]).slice(0,Yb).map((t,a)=>{const r=n[a]??void 0;return r?{label:t,accountId:r.account_id,kind:r.kind}:{label:t}})}function Zb(e,n=new Date){if(e.toDateString()===n.toDateString())return"today";const t=new Date(n);return t.setDate(n.getDate()-1),e.toDateString()===t.toDateString()?"yesterday":"older"}const Al="h-8",ey="[--thread-row-ring:var(--thread-row-host,var(--color-canvas))] group-hover/message:[--thread-row-ring:var(--thread-row-message-hover,var(--color-surface))] hover:[--thread-row-ring:var(--color-sunken)] group-hover/message:hover:[--thread-row-ring:var(--color-sunken)]",ny=["z-[3]","z-[2]","z-[1]"],ty=20;function iy({message:e,onOpen:n,profileFor:t,locale:a,now:r,className:s}){const l=Uc(e);if(l.count<=0)return null;const c=l.unread??0,d=l.lastReply?ay(l.lastReply,a,r):null,m=o("ui.teamBridge.replies.count",{count:l.count}),h=o("ui.teamBridge.threadRow.label",{count:l.count,unread:c,last:d?.full??"",hasLast:d?"yes":"no"});return i.jsxs("button",{type:"button",onClick:n,"aria-label":h,"data-thread-row":"","data-thread-row-height":Al,"data-unread":c>0?String(c):void 0,className:H("group/thread-row @container/thread-row mt-1 flex w-full min-w-0 items-center gap-2 rounded-md px-2 text-start text-[13px] transition-colors duration-fast ease-out-quart hover:bg-sunken",Al,ey,s),children:[i.jsx(ry,{participants:l.participants,profileFor:t}),i.jsx("span",{"aria-hidden":"true",className:H("shrink-0 text-accent",c>0&&"font-semibold"),children:m}),d&&i.jsxs(i.Fragment,{children:[i.jsx("span",{"aria-hidden":"true","data-thread-row-last":"full",className:"hidden min-w-0 truncate text-ink-muted @[420px]/thread-row:inline",children:d.full}),i.jsx("span",{"aria-hidden":"true","data-thread-row-last":"short",className:"min-w-0 truncate text-ink-muted @[420px]/thread-row:hidden",children:d.short})]}),i.jsx(Wi,{"aria-hidden":"true",count:c,format:p=>o("ui.teamBridge.threadRow.unread_badge",{count:c,label:p}),className:"shrink-0"}),i.jsx(Wd,{"aria-hidden":"true",size:16,className:"ml-auto shrink-0 text-ink-dim transition-colors duration-fast group-hover/thread-row:text-ink rtl:rotate-180"})]})}function ay(e,n,t=new Date){const a=Zb(e,t),r=a==="older"?Ga(e,e.getFullYear()===t.getFullYear()?{month:"short",day:"numeric"}:{month:"short",day:"numeric",year:"numeric"},n):Ha(e,{hour:"numeric",minute:"2-digit"},n);return{full:o("ui.teamBridge.threadRow.last",{when:a,time:r}),short:a==="yesterday"?o("ui.common.time.yesterday_at",{time:r}):r}}function ry({participants:e,profileFor:n}){return e.length===0?null:i.jsx("span",{"aria-hidden":"true",className:"flex shrink-0 -space-x-1.5",children:e.map((t,a)=>{const r=t.kind??"human",l=(t.accountId&&n?.({account_id:t.accountId,kind:r,display_label:t.label})||void 0)??(r==="agent"&&t.accountId?{account_id:t.accountId,display_label:t.label,role:"member",bridge_enabled:!1,bridge_state:"none"}:void 0),c=H("relative rounded-full text-[10px] ring-2 ring-[var(--thread-row-ring)]",ny[a]),d=`${a}:${t.accountId??t.label}`;return l?i.jsx(kn,{member:l,kind:r,label:t.label,size:ty,fallback:_a(t.label),className:c},d):i.jsx("span",{"data-thread-face":"initial",className:H("inline-flex size-5 shrink-0 items-center justify-center bg-media-surface font-medium text-ink-muted",c),children:_a(t.label)},d)})})}const sy=6,oy=40,ly=44,dy=96,cy=1,uy=12;function my(e,n){return e.type==="day"?`day:${e.key}`:`msg:${n??e.message.id}`}function hy(e){return e.type==="day"?oy:e.continuation?ly:dy}function gy(e,n){const t=[],a=[],r=[];let s=0;for(const l of e){const c=n.get(l.key)??hy(l.item);t.push(l.key),a.push(s),r.push(c),s+=c}return{keys:t,offsets:a,heights:r,total:s}}function Va(e,n){const t=e.offsets.length;if(t===0)return 0;let a=0,r=t-1,s=t-1;for(;a<=r;){const l=a+r>>1;e.offsets[l]+e.heights[l]>n?(s=l,r=l-1):a=l+1}return s}function py(e,n,t,a=sy){const r=e.offsets.length;if(r===0)return{start:0,end:0};const s=Va(e,n);let l=s;const c=n+Math.max(t,0);for(;l+1<r&&e.offsets[l+1]<c;)l+=1;return{start:Math.max(0,s-a),end:Math.min(r,l+a+1)}}function fy(e,n){const t=n.start>0?e.offsets[n.start]:0,a=n.end<e.keys.length?e.total-(e.offsets[n.end]??e.total):0;return{before:Math.max(0,t),after:Math.max(0,a)}}function ky(e,n){if(e.keys.length===0)return null;const t=Va(e,n),a=e.keys[t];return a===void 0?null:{key:a,offset:e.offsets[t]}}function wy(e,n){if(e===null)return null;const t=n.keys.indexOf(e.key);return t===-1?null:n.offsets[t]-e.offset}function by({scrollTop:e,viewportHeight:n,firstVisible:t,hasOlder:a,loading:r}){return!a||r?!1:t<=uy?!0:e<=n*cy}const yy=8,xy=24;function vy(e,n,t,a=xy){const r=-(a+yy);if(e.length===0||n.keys.length===0)return null;const s=Math.min(Va(n,t),e.length-1);for(let l=s;l>=0;l-=1){const c=e[l];if(c.item.type==="day")return{day:c.item,key:c.key,hidden:n.offsets[l]-t>r}}return null}const jy="[data-radix-scroll-area-viewport]",_y="[data-window-item]",Ny="[data-window-spacer='after']";function By({entries:e,listRef:n,scrollRootRef:t,resetKey:a,hasOlder:r,loadingOlder:s,onLoadOlder:l,enabled:c=!0,isPinned:d}){const m=c&&t!==void 0,h=u.useRef(new Map),p=u.useRef(null),g=u.useRef(null),[b,k]=u.useState(0),[x,v]=u.useState({top:0,height:0}),w=u.useRef({top:0,height:0}),f=u.useCallback((D,T)=>{w.current.top===D&&w.current.height===T||(w.current={top:D,height:T},v({top:D,height:T}))},[]),j=u.useRef(null),S=u.useRef(!1),E=u.useRef(-1),[_,C]=u.useState(a);_!==a&&(C(a),h.current=new Map,p.current=null,g.current=null,S.current=!1,E.current=-1);const B=u.useMemo(()=>e.map(D=>D.key).join("|"),[e]),M=u.useMemo(()=>gy(e,h.current),[B,b]),V=m?py(M,x.height===0?M.total:x.top,x.height):{start:0,end:e.length},O=m?fy(M,V):{before:0,after:0},q=u.useRef(M);q.current=M;const F=u.useRef(l);F.current=l;const N=u.useRef(r);N.current=r;const G=u.useRef(s);G.current=s;const K=u.useRef(d);K.current=d,u.useEffect(()=>{if(!m)return;const D=t?.current?.querySelector(jy)??null;if(j.current=D,D===null)return;f(D.scrollTop,D.clientHeight);let T=0;const z=()=>{S.current=!0,T===0&&(T=requestAnimationFrame(()=>{T=0;const L=D.scrollTop,ne=D.clientHeight;f(L,ne),p.current=zl(D,q.current,L);const J=F.current;J!==void 0&&by({scrollTop:L,viewportHeight:ne,firstVisible:Va(q.current,L),hasOlder:N.current,loading:G.current})&&J()}))};D.addEventListener("scroll",z,{passive:!0});const Z=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>f(D.scrollTop,D.clientHeight));return Z?.observe(D),()=>{D.removeEventListener("scroll",z),Z?.disconnect(),T!==0&&cancelAnimationFrame(T)}},[m,f,t,a]);const $=u.useCallback(()=>{const D=n.current;if(D===null)return;const T=D.querySelector(Ny);if(T===null)return;const z=[];for(const ne of D.querySelectorAll(_y))z.at(-1)?.dataset.windowItem!==ne.dataset.windowItem&&z.push(ne);const Z=T.getBoundingClientRect().top;let L=!1;for(let ne=0;ne<z.length;ne+=1){const J=z[ne].dataset.windowItem;if(J===void 0)continue;const ge=z[ne].getBoundingClientRect().top,de=z[ne+1]?.getBoundingClientRect().top??Z,Q=Math.round(de-ge);if(Q<=0)continue;const re=h.current.get(J);re!==void 0&&Math.abs(re-Q)<1||(h.current.set(J,Q),L=!0)}L&&k(ne=>ne+1)},[n]);u.useLayoutEffect(()=>{m&&$()},[m,$,B,V.start,V.end]),u.useEffect(()=>{if(!m)return;const D=n.current;if(D===null||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>$());return T.observe(D),()=>T.disconnect()},[m,n,$]),u.useLayoutEffect(()=>{const D=g.current;g.current=M;const T=j.current;if(!m||T===null||V.end-V.start===0)return;const z=Math.max(0,T.scrollHeight-T.clientHeight);if(!S.current&&E.current!==e.length){if(E.current=e.length,V.end!==e.length||T.scrollTop===z)return;T.scrollTop=z,f(T.scrollTop,T.clientHeight);return}if(D===null||p.current===null)return;const L=p.current.atBottom&&(K.current?.()??!0)?z:Ey(T,M,p.current,z);if(L===null){p.current=null;return}L!==T.scrollTop&&(T.scrollTop=L,f(T.scrollTop,T.clientHeight),p.current=zl(T,M,T.scrollTop))},[m,f,e.length,M,V.start,V.end]);const R=m?vy(e,M,x.top):null;return{layout:M,range:V,spacers:O,stickyDay:R}}const Sy=1;function zl(e,n,t){const a=ky(n,t);return a===null?null:{...a,atBottom:e.scrollHeight-t-e.clientHeight<=Sy}}function Ey(e,n,t,a){const r=wy(t,n);return r===null?null:Math.abs(r)<1?e.scrollTop:Math.min(Math.max(e.scrollTop+r,0),a)}const Iy=600;function Ry(e,n,t){const[a,r]=u.useState(()=>({key:e,ids:new Set}));u.useLayoutEffect(()=>{const d=t?Mf(e,n,{commit:!1}):new Set;gc(e,n),d.size>0&&r(m=>({key:e,ids:new Set([...m.key===e?m.ids:[],...d])}))},[e,t,n]),u.useEffect(()=>()=>pc(e),[e]);const s=a.key===e?a.ids:Cy;u.useEffect(()=>{if(s.size===0)return;const d=setTimeout(()=>r({key:e,ids:new Set}),Iy);return()=>clearTimeout(d)},[e,s]);const l=u.useCallback(d=>s.has(d),[s]),c=u.useCallback(()=>{r(d=>d.ids.size===0?d:{key:d.key,ids:new Set})},[]);return{has:l,end:c}}const Cy=new Set,za=({messages:e,labelFor:n,profileFor:t,onMessagePerson:a,canMessagePerson:r,reactionContext:s,onReply:l,forceToolbar:c,tenantId:d,density:m,accountId:h,arrivalKey:p=Aa(d,e[0]?.conversation_id),arrivalsEnabled:g=!0,decorate:b,events:k,highlightId:x=null,presentationOf:v,unreadAfterSeq:w,scrollRootRef:f,isPinned:j,hasOlder:S=!1,loadingOlder:E=!1,onLoadOlder:_})=>{const C=pe(),B=u.useCallback(J=>v?.(J)??{key:J.id,local:!1},[v]),M=u.useMemo(()=>e.map(J=>{const ge=v?.(J);return ge?.local?{id:ge.key}:{id:ge?.key??J.id,seq:J.seq}}),[e,v]),V=Ry(p,M,g),O=yh(e,new Date),q=u.useRef(null),F=f!==void 0,N=u.useMemo(()=>O.map(J=>({item:J,key:my(J,J.type==="message"?B(J.message).key:void 0)})),[O,B]),{range:G,spacers:K,stickyDay:$}=By({entries:N,listRef:q,scrollRootRef:f,resetKey:p,hasOlder:S,loadingOlder:E,onLoadOlder:_,enabled:F,isPinned:j}),R=w===void 0?[]:e.filter(J=>J.seq>w&&J.sender.account_id!==h&&!B(J).local),D=xh(R)[0]?.id,T=J=>n(J)??(J.kind==="agent"?o("ui.teamBridge.sender.unknown_agent"):o("ui.teamBridge.sender.unknown_person")),z=Ku(e.filter(J=>!B(J).local),k),Z=J=>{const ge=z.get(J);return ge?i.jsx(Lb,{events:ge,labelFor:T,locale:C},`events:${J}`):null};u.useEffect(()=>Ab(vi.map(J=>J.emoji)),[]);const L=(J,ge)=>{const de=B(J.message),Q=J.message.id===D?i.jsx(Dy,{count:R.length,windowItem:ge}):null;return i.jsxs(u.Fragment,{children:[Q,i.jsx(Oy,{rowKey:de.key,local:de.local,delivery:de.delivery,message:J.message,continuation:J.continuation&&J.message.id!==D,label:n(J.message.sender),member:t?.(J.message.sender),profileFor:t,onMessagePerson:a,canMessagePerson:r,locale:C,reactionContext:s,onReply:l,forceToolbar:c,tenantId:d,accountId:h,density:m,arriving:V.has(de.key),highlighted:x===J.message.id,onArrivalEnd:V.end,decoration:b?.(J.message),windowItem:ge},de.key)]},de.key)},ne=O.map(J=>J.type==="day"?null:L(J));return i.jsxs("ol",{ref:q,className:"mt-auto flex w-full min-w-0 flex-col pt-4 pb-2",children:[Z(Uu),F&&$!==null&&!$.hidden&&i.jsx(Py,{day:$.day,locale:C}),F&&i.jsx(Ay,{loading:E,hasOlder:S,showStart:e.length>=md}),F&&K.before>0&&i.jsx("li",{"aria-hidden":"true","data-window-spacer":"before",className:"shrink-0",style:{height:K.before}}),F?N.slice(G.start,G.end).map(({key:J,item:ge})=>ge.type==="day"?i.jsx(zy,{item:ge,locale:C,windowItem:J},J):i.jsxs(u.Fragment,{children:[L(ge,J),Z(ge.message.id)]},J)):Ty(O,Z,C,ne),F&&i.jsx("li",{"aria-hidden":"true","data-window-spacer":"after",className:"shrink-0",style:{height:K.after}})]})};function Ty(e,n,t,a){const r=[];let s=null,l=[];const c=()=>{s===null&&l.length===0||(r.push(i.jsx(My,{item:s,locale:t,children:l},s?`day:${s.key}`:"day:none")),l=[])};return a.forEach((d,m)=>{const h=e[m];if(h?.type==="day"){c(),s=h;return}if(l.push(d),h?.type==="message"){const p=n(h.message.id);p&&l.push(p)}}),c(),r}function As(e,n){return e===null?null:e.relative==="today"?o("ui.teamBridge.thread.today"):e.relative==="yesterday"?o("ui.teamBridge.thread.yesterday"):Ga(e.date,{weekday:"long",month:"long",day:"numeric"},n)}const zs=({label:e})=>i.jsx("span",{className:"flex h-6 items-center rounded-full bg-elevated px-2.5 font-medium text-[12px] text-ink-muted",children:e}),My=({item:e,locale:n,children:t})=>{const a=As(e,n);return i.jsxs("li",{"data-day-group":"","aria-label":a??void 0,className:"relative",children:[a!==null&&i.jsxs(i.Fragment,{children:[i.jsx("span",{"aria-hidden":"true","data-day-rule":"",className:"absolute inset-x-5 top-5 h-px bg-hairline"}),i.jsx("div",{"aria-hidden":"true","data-day-divider":"",className:"pointer-events-none sticky top-2 z-[5] flex justify-center py-2",children:i.jsx(zs,{label:a})})]}),i.jsx("ol",{className:"flex w-full min-w-0 flex-col",children:t})]})},Ay=({loading:e,hasOlder:n,showStart:t})=>e?i.jsxs("li",{"data-history-edge":"loading",className:"flex h-8 shrink-0 items-center justify-center gap-2 px-5 text-ink-dim text-meta",children:[i.jsx(en,{size:"sm"}),i.jsx("span",{"aria-live":"polite",children:o("ui.teamBridge.thread.loading")})]}):n||!t?null:i.jsx("li",{"aria-hidden":"true","data-history-edge":"start",className:"mx-5 mt-2 h-px shrink-0 bg-hairline"}),zy=({item:e,locale:n,windowItem:t})=>{const a=As(e,n);return i.jsx("li",{"data-window-item":t,"data-day-group":"","aria-label":a??void 0,className:"relative",children:i.jsxs("div",{"aria-hidden":"true","data-day-divider":"",className:"flex items-center px-5 py-2",children:[i.jsx("span",{"aria-hidden":"true","data-day-rule":"",className:"h-px flex-1 bg-hairline"}),i.jsx(zs,{label:a??""}),i.jsx("span",{"aria-hidden":"true","data-day-rule":"",className:"h-px flex-1 bg-hairline"})]})})},Py=({day:e,locale:n})=>{const t=As(e,n);return t===null?null:i.jsx("li",{"aria-hidden":"true","data-day-pill-overlay":"",className:"pointer-events-none sticky top-2 z-[5] flex h-0 shrink-0 justify-center",children:i.jsx(zs,{label:t})})},Dy=({count:e,windowItem:n})=>i.jsxs("li",{"data-unread-divider":"","data-window-item":n,className:"relative mx-5 mt-3 mb-1 flex h-4 items-center",children:[i.jsx("span",{"aria-hidden":"true",className:"h-px flex-1 bg-accent"}),i.jsx("span",{className:"shrink-0 rounded-xs bg-accent px-1.5 font-semibold text-[11px] text-on-accent leading-4",children:o("ui.teamBridge.notify.count",{count:e})})]}),Ly=[["28%","64%"],["22%","48%"],["30%","72%"],["18%","40%"]],Pl=({label:e})=>i.jsx("output",{"aria-label":e,className:"mt-auto flex w-full flex-col gap-4 px-5 pt-4 pb-2",children:Ly.map(([n,t])=>i.jsxs("div",{"aria-hidden":"true",className:"flex gap-3",children:[i.jsx(fi,{className:"size-9 shrink-0 rounded-full"}),i.jsxs("div",{className:"flex flex-1 flex-col gap-2 pt-1",children:[i.jsx(fi,{className:"h-3 rounded-xs",style:{width:n}}),i.jsx(fi,{className:"h-3 rounded-xs",style:{width:t}})]})]},`${n}:${t}`))}),Oy=({reactionContext:e,rowKey:n,local:t=!1,...a})=>{const r=!!e&&a.message.body!==null;return i.jsx(Fy,{reactionContext:r&&e?t?{...e,disabled:!0}:e:void 0,...a,rowKey:n,onReply:t?void 0:a.onReply},`${e?.accountId??a.accountId??""}:${n??a.message.id}`)},qy={accountId:"",tenantId:"",disabled:!0},Fy=({reactionContext:e,...n})=>{const t=Hb({conversationId:n.message.conversation_id,messageId:n.message.id,...e??qy,reactions:n.message.reactions});return i.jsx($y,{...n,reactions:e?t:void 0})},$y=({message:e,continuation:n,label:t,member:a,profileFor:r,onMessagePerson:s,canMessagePerson:l,locale:c,reactions:d,onReply:m,forceToolbar:h,tenantId:p,accountId:g,density:b,arriving:k=!1,onArrivalEnd:x,decoration:v,highlighted:w=!1,delivery:f,rowKey:j,windowItem:S})=>{const E=Uc(e),_=db(e),C=m!==void 0&&!e.thread_root_id,B=e.sender.kind==="agent",M=t??(B?o("ui.teamBridge.sender.unknown_agent"):o("ui.teamBridge.sender.unknown_person")),V=new Date(e.created_at),O=!Number.isNaN(V.getTime()),q=O?Ha(V,{hour:"numeric",minute:"2-digit"},c):"",F=O?Ga(V,{dateStyle:"full",timeStyle:"short"},c):"",N=!!(a&&s&&(l?.(e.sender)??!0)&&a.account_id!==g&&a.bridge_enabled&&["active","paused"].includes(a.bridge_state)&&(!B||a.agent)),G=()=>s?.(e.sender),K=a?i.jsx(ct,{member:a,label:M,kind:B?"agent":"human",onMessage:G,canMessage:N,children:i.jsx("button",{type:"button",className:"mt-0.5 block size-9 shrink-0 rounded-full text-start",children:i.jsx(kn,{member:a,kind:B?"agent":"human",label:M,size:36,className:"size-9 text-[14px]",fallback:t===null?i.jsx(Oo,{size:18}):t.trim().charAt(0).toUpperCase()||"?"})})}):null;return i.jsxs("li",{"data-message-id":e.id,"data-window-item":S,"data-message-target":w||void 0,"data-row-key":j??e.id,"data-delivery":f?.status,onAnimationEnd:k?x:void 0,className:H("group/message relative isolate flex w-full min-w-0 gap-3 px-5","before:pointer-events-none before:absolute before:inset-x-2 before:inset-y-0 before:-z-10 before:rounded-sm before:transition-colors before:duration-fast before:ease-out-quart",b==="compact"?"hover:before:bg-row-hover-elevated focus-within:before:bg-row-hover-elevated":"hover:before:bg-row-hover-surface focus-within:before:bg-row-hover-surface",k&&"lo-team-bridge-arrival",w&&"lo-team-bridge-target",n?"py-px":"mt-3 pt-1 pb-0.5"),children:[i.jsx("div",{className:"w-9 shrink-0",children:n?O&&i.jsx("time",{dateTime:e.created_at,title:F,className:"flex justify-end whitespace-nowrap pt-0.5 text-meta-sm text-ink-dim leading-5 tabular-nums opacity-0 group-hover/message:opacity-100",children:q}):K??i.jsx("span",{"aria-hidden":"true","data-sender-avatar":B?"agent":t===null?"unknown":"initial",className:H("mt-0.5 flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-[14px]","bg-accent-alt-wash",B?"text-accent":t===null?"text-ink-muted":"text-accent-alt"),children:B?i.jsx(Ot,{size:18}):t===null?i.jsx(Oo,{size:18}):t.trim().charAt(0).toUpperCase()||"?"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx(Qb,{reactions:d,onReply:C?()=>m(e):void 0,forceVisible:h}),!n&&i.jsxs("div",{className:"flex items-baseline gap-2 leading-5",children:[a?i.jsx(ct,{member:a,label:M,kind:B?"agent":"human",onMessage:G,canMessage:N,children:i.jsx("button",{type:"button","data-sender":t===null?"unknown":"known",className:"min-w-0 truncate rounded-sm text-start font-semibold text-[14px] text-ink",children:M})}):i.jsx("span",{"data-sender":t===null?"unknown":"known",className:H("truncate text-[14px]",t===null?"text-ink-muted italic":"font-semibold text-ink"),children:M}),O&&i.jsx("time",{dateTime:e.created_at,title:F,className:"shrink-0 text-meta text-ink-dim tabular-nums",children:q}),v?.badge]}),n&&v?.badge&&i.jsx("div",{className:"flex pb-0.5",children:v.badge}),e.body===null||v?.withheldCopy!==void 0&&e.body.trim()===""&&(e.attachments?.length??0)===0&&v.attachments===void 0?i.jsx("p",{className:"text-[14px] text-ink-dim italic",children:v?.withheldCopy??o("ui.teamBridge.thread.withheld")}):e.body.trim()===""&&((e.attachments?.length??0)>0||v?.attachments!==void 0)?null:i.jsx(Lw,{body:e.body,renderText:$=>i.jsx(Rd,{className:"team-bridge-message-body text-[14px] transition-colors duration-fast",style:{...f?.status==="pending"?{"--md-ink":"var(--lo-ink-muted)"}:{}},mentions:_,children:$})}),f&&i.jsx("p",{className:"sr-only","aria-live":"polite",children:f.status==="failed"?o("ui.chat.canonical.send_failure.generic"):o("ui.agents.config.state.sending")}),i.jsx(pb,{message:e}),e.body!==null&&i.jsx(lb,{body:e.body,expectedAccountId:g}),((e.attachments?.length??0)>0||(e.files?.length??0)>0||(e.file_count??0)>0)&&i.jsx(vw,{message:e,tenantId:p??null,density:b,accountId:g},JSON.stringify([g,p,e.conversation_id,e.id])),v?.attachments,d&&i.jsx(Wb,{state:d}),f?.status==="failed"&&i.jsxs("div",{role:"alert","data-delivery-failed":"",className:"mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[12px]",children:[i.jsx("span",{className:"text-danger",children:o("ui.chat.canonical.send_failure.generic")}),f.onRetry&&i.jsx("button",{type:"button",onClick:f.onRetry,className:"-mx-1 rounded-sm px-1 py-1 font-medium text-accent hover:bg-row-hover hover:underline",children:o("ui.common.actions.retry")}),f.onEdit&&i.jsx("button",{type:"button",onClick:f.onEdit,className:"-mx-1 rounded-sm px-1 py-1 font-medium text-ink-muted hover:bg-row-hover hover:text-ink hover:underline",children:o("ui.chat.canonical.transcript.edit")})]}),C&&E.count>0&&i.jsx(iy,{message:e,onOpen:()=>m(e),profileFor:r,locale:c}),v?.after]})]})};function Ky(e,n){return e&&n>1}function Uy({organizations:e,directories:n,directoryStates:t,directs:a,selfAccountId:r}){return e.map(s=>{const l=s.tenantId,c=n?.[l]??[],d=ks(c,r),m=a.filter(h=>h.tenant_id===l);return{tenantId:l,name:s.name,state:t?.[l]??(c.length>0?"ready":"loading"),members:c,chiefs:d,directs:m,looseDirects:Cd(m,c,d,r)}})}function Hy(e){return e.flatMap(n=>n.looseDirects)}function Dl(e,n){return`${e}:${n}`}function Ll(e,n){return`team-bridge-org-${e}-${n}`}const Gy=({organizations:e,scope:n,onScopeChange:t,totalUnread:a,membershipsLoading:r=!1,organizationsFailed:s=!1,unreadRefreshing:l=!1,defaultOpen:c=!1,onRetry:d})=>{pe();const m=vh(e,n),h=n===Ve?o("ui.teamBridge.scope.all"):m?.name??o("ui.teamBridge.scope.unknown");return i.jsxs(Qi,{defaultOpen:c,children:[i.jsx(Yi,{asChild:!0,children:i.jsxs("button",{type:"button","aria-label":o("ui.teamBridge.scope.trigger",{name:h}),title:h,"aria-busy":l||void 0,className:H("group flex h-10 min-w-0 flex-1 items-center gap-2 rounded-sm px-2","text-start text-ink transition-colors duration-fast","hover:bg-row-hover data-[state=open]:bg-row-hover"),children:[i.jsx("span",{"aria-hidden":"true","data-org-tile":"",className:"flex size-7 shrink-0 items-center justify-center rounded-sm bg-accent-alt-wash font-semibold text-[13px] text-accent-alt",children:n!==Ve&&m?.name.trim()?m.name.trim().charAt(0).toUpperCase():i.jsx(Cg,{size:16})}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-semibold text-[15px]",children:h}),i.jsx(gg,{size:14,"aria-hidden":"true",className:"shrink-0 text-ink-dim"})]})}),i.jsxs(Xi,{align:"start",className:"w-64",children:[i.jsx(mi,{children:o("ui.teamBridge.scope.label")}),i.jsxs(Hr,{value:n,onValueChange:p=>t(jh(p)),children:[i.jsxs(Ra,{value:Ve,children:[i.jsx("span",{className:"min-w-0 flex-1 truncate",children:o("ui.teamBridge.scope.all")}),a>0&&i.jsx(Wi,{count:a,"aria-label":o("ui.teamBridge.unread.count",{count:a}),title:o("ui.teamBridge.unread.count",{count:a})})]}),e.length>0&&i.jsx(Vd,{}),e.map(p=>i.jsxs(Ra,{value:p.tenantId,children:[i.jsx("span",{className:"min-w-0 flex-1 truncate",children:p.name}),p.role&&i.jsx("span",{className:"shrink-0 text-meta-sm text-ink-dim capitalize",children:p.role}),p.unread>0&&i.jsx(Wi,{count:p.unread,"aria-label":o("ui.teamBridge.unread.count",{count:p.unread}),title:o("ui.teamBridge.unread.count",{count:p.unread})})]},p.tenantId))]}),r&&i.jsx(mi,{children:o("ui.teamBridge.scope.loading")}),!r&&s&&i.jsxs(i.Fragment,{children:[i.jsx(mi,{children:o("ui.teamBridge.scope.error")}),d&&i.jsx(Zi,{onSelect:()=>d(),children:o("ui.teamBridge.list.retry")})]}),!r&&!s&&e.length===0&&i.jsx(mi,{children:o("ui.teamBridge.scope.empty")})]})]})},Cn=W.string().min(1),We=W.string().nullish(),Gn=W.number().int().nullish(),Wy=W.object({account_id:Cn,kind:W.string(),display_label:W.string().default(""),role:W.string().default(""),state:W.string().default(""),joined_seq:Gn,notify:We}).passthrough(),Vy=W.object({account_id:Cn,display_label:W.string().default(""),reason:W.string().default("agent_owner"),agent_member_key:W.string().default("")}).passthrough(),Jy=W.object({id:Cn,tenant_id:Cn,kind:W.string(),name:We,topic:We,visibility:W.string().default(""),status:W.string().default(""),builtin:We,last_message_at:We,latest_seq:W.number().int().default(0),last_thread_root_id:We,members:W.array(Wy).default([]),member_count:W.number().int().default(0),viewers:W.array(Vy).nullish(),agent:W.object({account_id:Cn,display_label:W.string().default(""),state:W.string(),joined_seq:W.number().int(),left_seq:Gn}).passthrough()}).passthrough(),Qy=W.object({conversations:W.array(Jy),next_cursor:We,has_more:W.boolean().default(!1)}).passthrough(),Yy=W.object({id:Cn,mime:W.string().default(""),size:W.number().int().default(0),width:Gn,height:Gn,sha256:W.string().default(""),state:W.string().default(""),expires_at:We}).passthrough(),Xy=W.object({id:Cn,class:W.string().default(""),mime:W.string().default(""),size:W.number().int().default(0),display_name:We,state:W.string().default(""),expires_at:We}).passthrough(),rs=W.object({id:Cn,conversation_id:Cn,seq:W.number().int(),sender:W.object({account_id:Cn,kind:W.string(),display_label:W.string().default("")}).passthrough(),body:We,body_hash:We,origin:W.string().default(""),agent_label:We,created_at:W.string(),thread_root_id:We,reply_count:Gn,last_reply_at:We,reply_participants:W.array(W.string()).nullish(),attachments:W.array(Yy).nullish(),attachment_count:Gn,files:W.array(Xy).max(10).nullish().catch(void 0),file_count:Gn.catch(void 0),agent_delivery_status:We,agent_verdict_at:We,delivery_states:W.array(Hu).max(64).nullish().catch(void 0)}).passthrough(),Zy=W.object({messages:W.array(rs),next_before_seq:Gn,has_more:W.boolean().default(!1)}).passthrough(),e1=W.object({root:rs,replies:W.array(rs),next_after_seq:Gn,next_before_seq:W.number().int().positive().nullish(),order:W.enum(["asc","desc"]).optional(),has_more:W.boolean().default(!1)}).passthrough(),qr=({accountId:e,tenantId:n})=>({expected_account_id:e,tenant_id:n});class ss extends Error{constructor(n){super(o("ui.teamBridge.attachmentCard.unavailable")),this.status=n,this.name="OwnerAuditAttachmentError"}}const Ol=e=>({tenantId:e.tenantId,expectedAccountId:e.accountId,conversationId:e.conversationId,messageId:e.messageId,attachmentId:e.attachmentId}),ea={async fileBytes(e){const n=await zo({op:"team_bridge.owner_audit.attachment",mode:"file",...Ol(e)},null);if(n.kind!=="bytes"||n.status!==200||n.mimeType!=="application/octet-stream")throw new ss(n.kind==="error"?n.status:422);return n.data},async attachmentBytes(e){const n=await zo({op:"team_bridge.owner_audit.attachment",...Ol(e)},null);if(n.kind!=="bytes"||n.status!==200||n.mimeType!=="image/png"&&n.mimeType!=="image/jpeg")throw new ss(n.kind==="error"?n.status:422);return{data:n.data,mimeType:n.mimeType}},async conversations(e,n){return Qy.parse(await Br({op:"team_bridge.owner_audit.conversations",...qr(e),limit:50,...n===void 0?{}:{cursor:n}}))},async messages(e,n,t){return Zy.parse(await Br({op:"team_bridge.owner_audit.messages",...qr(e),conversation_id:n,limit:50,...t===void 0?{}:{before_seq:t}}))},async replies(e,n,t,a,r){return e1.parse(await Br({op:"team_bridge.owner_audit.replies",...qr(e),conversation_id:n,message_id:t,limit:r?.limit??50,...a===void 0?{}:{after_seq:a},...r?.beforeSeq===void 0?{}:{before_seq:r.beforeSeq},...r?.order===void 0?{}:{order:r.order}}))}};function Hc(e){return JSON.stringify(["owner-audit",e.accountId,e.tenantId,e.conversationId,e.messageId,e.attachmentId])}function os(e){return e.state!=="bound"?null:e.mime==="image/png"||e.mime==="image/jpeg"?"preview":null}function n1(e,n,t){return!e?.accountId||!e.tenantId||e.tenantId!==n.tenant_id||t.conversation_id!==n.id?null:{accountId:e.accountId,tenantId:e.tenantId,conversationId:n.id,messageId:t.id}}const ba=new Map;function t1(e){return e instanceof ss&&(e.status===null||e.status===408||e.status===429||e.status>=500)?"failed":"unavailable"}function i1(e,n){const t=ba.get(e);if(t)return t.holders+=1,t.promise;const a={holders:1,promise:Promise.resolve("unavailable")};return a.promise=(async()=>{try{const r=await ea.attachmentBytes(n),s=xi(r.data,r.mimeType);return a.holders<=0?(bi(s),"unavailable"):(Ed(e,s),"ready")}catch(r){return t1(r)}finally{ba.delete(e)}})(),ba.set(e,a),a.promise}function a1(e,n,t){const a=Hc(e),[r,s]=u.useState(()=>{const l=n?Sd(a):null;return{key:a,value:l?{state:"ready",url:l}:{state:"loading"}}});return u.useEffect(()=>{if(!n)return;let l=!0;const c=Sa(a);if(c)return s({key:a,value:{state:"ready",url:c}}),()=>{l=!1,Ea(a)};s({key:a,value:{state:"loading"}});let d=!0;return i1(a,e).then(m=>{if(d=!1,!l)return;const h=m==="ready"?Sa(a):null;s({key:a,value:h?{state:"ready",url:h}:{state:m==="failed"?"failed":"unavailable"}})}),()=>{if(l=!1,d){const m=ba.get(a);m&&(m.holders-=1)}Ea(a)}},[a,n,t]),n?r.key===a?r.value:{state:"loading"}:{state:"unavailable"}}function r1({scope:e,attachment:n,slot:t,index:a,count:r,register:s,onOpen:l,openerRef:c}){const[d,m]=u.useState(0),h=a1(e,os(n)==="preview",d),p=h.state==="ready"?h.url:null,g=u.useRef(null),b=u.useRef(!1);u.useEffect(()=>{s(n.id,h)},[n.id,h.state,p]),u.useEffect(()=>{h.state==="ready"&&b.current&&(b.current=!1,document.activeElement===document.body&&g.current?.focus({preventScroll:!0}))},[h.state]);const k=o("ui.teamBridge.attachments.position",{index:String(a+1),count:String(r)});return h.state==="failed"||h.state==="unavailable"?i.jsx(Rs,{box:t.box,label:k,copy:o("ui.teamBridge.attachmentCard.unavailable"),kind:h.state,retryLabel:o("ui.teamBridge.attachments.retry_load"),onRetry:h.state==="failed"?()=>{b.current=!0,m(x=>x+1)}:void 0}):i.jsx(Ac,{url:p,box:t.box,fit:t.fit,overflow:t.overflow,label:k,busy:!p,openLabel:o("ui.teamBridge.attachments.open",{index:String(a+1),count:String(r)}),buttonRef:x=>{g.current=x,c(x)},onOpen:l})}function s1({attachments:e,count:n,scope:t,compact:a=!1,files:r=[],fileCount:s=r.length}){pe();const l=JSON.stringify(t?[t.accountId,t.tenantId,t.conversationId,t.messageId]:null),c=u.useRef(l);c.current=l;const[d,m]=u.useState({key:l,id:null}),h=d.key===l?d.id:null,p=C=>{c.current===l&&m({key:l,id:C})},[g,b]=u.useState({key:l,values:{}}),k=g.key===l?g.values:{},x=u.useRef(null),v=u.useRef({}),w=e.filter(C=>os(C)==="preview"),f=w.findIndex(C=>C.id===h),j=f>=0?w[f]:void 0,S=j?k[j.id]:void 0;u.useEffect(()=>{h&&!j&&m({key:l,id:null})},[h,j,l]);const E=(C,B)=>{c.current===l&&b(M=>{const V=M.key===l?M.values:{},O=V[C];return M.key===l&&O?.state===B.state&&(B.state!=="ready"||O.state==="ready"&&O.url===B.url)?M:{key:l,values:{...V,[C]:B}}})},_=j?o("ui.teamBridge.attachments.position",{index:String(f+1),count:String(w.length)}):"";return i.jsxs(i.Fragment,{children:[i.jsx(zc,{attachments:e.map(C=>({...C,state:C.state??"unknown"})),count:n,compact:a,files:r,fileCount:s,readFile:t?C=>ea.fileBytes({...t,attachmentId:C.id}):void 0,renderPreview:t?(C,B,M)=>os(C)==="preview"?i.jsx(r1,{scope:{...t,attachmentId:C.id},attachment:C,slot:M,index:w.findIndex(V=>V.id===C.id),count:w.length,register:E,openerRef:V=>{v.current[C.id]=V},onOpen:()=>{x.current=v.current[C.id],p(C.id)}},Hc({...t,attachmentId:C.id})):null:void 0}),i.jsx(Bd,{open:!!(t&&j),src:S?.state==="ready"?S.url:void 0,pending:!!(j&&(!S||S.state==="loading")),label:_,restoreFocusTo:x,onOpenChange:C=>{C||p(null)},fallback:i.jsx("p",{children:o("ui.teamBridge.attachmentCard.unavailable")}),group:w.length>1&&j?{index:f,count:w.length,onPrev:()=>p(w[(f-1+w.length)%w.length].id),onNext:()=>p(w[(f+1)%w.length].id)}:void 0})]})}function o1(e,n){return e.agent_delivery_status==="admitted"?"admitted":e.agent_delivery_status==="rejected"?"rejected":e.agent_delivery_status==="not_screened"?"not_screened":!e.agent_delivery_status&&e.sender.kind==="agent"&&e.sender.account_id===n?"own":"unknown"}function l1(e,n){return e.name?.trim()||e.members.map(t=>_h({kind:t.kind==="agent"?"agent":"human",display_label:t.display_label})).filter(t=>t!==null).join(", ")||n}function d1(e){const n=new Map;for(const t of e)for(const a of t)n.get(a.id)?.body&&!a.body||n.set(a.id,a);return[...n.values()].sort((t,a)=>t.seq-a.seq||(t.id<a.id?-1:t.id>a.id?1:0))}function c1(e){const n=u1(e.sender.kind);return{id:e.id,conversation_id:e.conversation_id,seq:e.seq,sender:{account_id:e.sender.account_id,kind:n??"human",display_label:e.sender.display_label,...n===null?{audit_unknown_kind:!0}:{}},body:e.body??null,body_hash:e.body_hash??void 0,origin:e.origin==="human"||e.origin==="agent"||e.origin==="system"?e.origin:"system",agent_label:e.agent_label??void 0,created_at:e.created_at,thread_root_id:e.thread_root_id??void 0,delivery_states:e.delivery_states??void 0}}function u1(e){return e==="human"||e==="agent"?e:null}function m1(e,n,t,a){if(e.audit_unknown_kind===!0)return Nh(e.display_label);const r=Na(e,n,a);if(r!==null)return r;const s=t.find(l=>l.account_id===e.account_id&&l.kind===e.kind);return s?Na({...e,display_label:s.display_label},n,a):null}function h1(e,n){if(e.audit_unknown_kind!==!0)return n.find(t=>t.account_id===e.account_id)}const ki="group/row relative flex h-8 w-full items-center gap-2 rounded-md px-2 text-start text-[14px] transition-colors duration-fast ease-out-quart",ls=({id:e,name:n,first:t=!1})=>i.jsx("h3",{id:e,title:n,className:H("truncate py-1 ps-2 pe-1 text-xs font-normal text-ink-muted",!t&&"mt-2"),children:n}),ga=({children:e})=>i.jsx("p",{className:"px-2 py-1 text-[12px] text-ink-dim leading-snug",children:e}),ya={openDelayMs:1200,fastOpenDelayMs:400,toggleOnClick:!1,openOnFocus:!1},Ps=({count:e,yieldsToMenu:n=!1,register:t="attention"})=>e>0?i.jsx(Wi,{count:e,register:t,className:H("shrink-0",n&&"group-focus-within/row:invisible group-hover/row:invisible"),"aria-label":o("ui.teamBridge.unread.count",{count:e})}):null,Ds=({yieldsToMenu:e=!1})=>i.jsxs("span",{className:H("shrink-0 text-ink-dim",e&&"group-focus-within/row:invisible group-hover/row:invisible"),title:o("ui.teamBridge.notify.muted"),children:[i.jsx(Yd,{size:12,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.notify.muted")})]});function Gc(e,n){const t=!!(n&&Ka(n)),a=n?.unread_count??0;return[o("ui.teamBridge.people.message",{name:e}),t?o("ui.teamBridge.notify.muted"):null,a>0?o("ui.teamBridge.unread.count",{count:a}):null].filter(r=>r!==null).join(" ")}const Ct=({id:e,title:n,children:t,empty:a,add:r,menu:s})=>(pe(),i.jsxs("section",{"aria-labelledby":e,className:H("pb-1",ja),children:[i.jsxs("div",{className:"group/section flex h-7 items-center pt-4 pe-[4.5px] pb-1 ps-2",children:[i.jsx("h2",{id:e,className:"min-w-0 flex-1 truncate font-semibold text-meta text-ink-dim tracking-wide",children:n}),s&&i.jsxs(Qi,{children:[i.jsx(Yi,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":s.label,title:s.label,className:"flex size-5 items-center justify-center rounded-sm text-ink-dim opacity-0 transition-opacity duration-fast hover:bg-row-hover hover:text-ink focus-visible:opacity-100 group-hover/section:opacity-100 data-[state=open]:opacity-100",children:i.jsx(Oa,{size:13,"aria-hidden":"true"})})}),i.jsx(Xi,{align:"start",side:"right",children:s.items.map(l=>i.jsxs(Zi,{onSelect:l.onSelect,children:[l.icon,l.label]},l.key))})]}),r&&i.jsx("button",{type:"button",onClick:r.onAdd,"aria-label":r.label,title:r.label,className:"flex size-5 items-center justify-center rounded-sm text-ink-dim opacity-0 transition-opacity duration-fast hover:bg-row-hover hover:text-ink focus-visible:opacity-100 group-hover/section:opacity-100",children:i.jsx(va,{size:13,"aria-hidden":"true"})})]}),a?a.onCreate?i.jsx("button",{type:"button",onClick:a.onCreate,title:a.text,className:"w-full truncate rounded-md px-2 py-1 text-start text-meta text-ink-dim leading-snug transition-colors duration-fast ease-out-quart hover:bg-row-hover hover:text-ink-muted",children:a.text}):i.jsx("p",{title:a.text,className:"truncate px-2 py-1 text-meta text-ink-dim leading-snug",children:a.text}):t]})),Ls=({kind:e})=>{const n=e==="group"?mt:e==="dm"?Gu:Da;return i.jsx(n,{size:16,"aria-hidden":"true",className:"shrink-0"})},g1=({hasDraft:e=!1,conversation:n,selected:t,selfAccountId:a,title:r,organizationName:s,onSelect:l,menu:c,initialMenuOpen:d=!1})=>{const[m,h]=u.useState(d),p=(c?.sections.length??0)>0,g=pe(),b=r??ui(n,a)??o("ui.teamBridge.list.untitled"),k=qa(n),x=n.unread_count,v=w1(n.last_message_at,g);return i.jsxs("li",{className:"group/row relative",children:[i.jsxs("button",{type:"button",onClick:l,onContextMenu:p?w=>{w.preventDefault(),h(!0)}:void 0,title:v||void 0,"aria-current":t?"page":void 0,"data-conversation-id":n.id,"data-conversation-builtin":n.builtin,className:H(ki,s&&"h-auto min-h-[38px] py-1",t?H(La,"[&>svg:first-child]:text-accent"):x>0?"font-semibold text-ink hover:bg-row-hover":k?"text-ink-dim hover:bg-row-hover hover:text-ink":"text-ink-muted hover:bg-row-hover hover:text-ink"),children:[i.jsx(Ls,{kind:n.kind}),i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i.jsx("span",{className:"truncate",children:b}),s&&i.jsx("span",{className:"truncate font-normal text-meta-sm text-ink-dim",children:s})]}),k&&i.jsxs("span",{title:o("ui.teamBridge.preview.chip"),className:"shrink-0 text-ink-dim",children:[i.jsx(Td,{size:14,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.preview.chip")})]}),Ka(n)&&i.jsx(Ds,{yieldsToMenu:p}),e&&i.jsxs("span",{title:o("ui.teamBridge.drafts.indicator"),className:"shrink-0 text-ink-dim",children:[i.jsx($a,{size:12,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.drafts.indicator")})]}),i.jsx(Ps,{count:x,yieldsToMenu:p,register:ws(n)})]}),c&&p&&i.jsx(f1,{name:b,menu:c,open:m,onOpenChange:h})]})},p1="absolute end-[3px] top-[3px] flex size-6 items-center justify-center rounded-sm text-ink-dim opacity-0 transition-opacity duration-fast hover:bg-row-hover hover:text-ink focus-visible:opacity-100 group-hover/row:opacity-100 group-focus-within/row:opacity-100 data-[state=open]:opacity-100",f1=({name:e,menu:n,open:t,onOpenChange:a})=>i.jsxs(Qi,{open:t,onOpenChange:a,children:[i.jsx(Yi,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":o("ui.teamBridge.row.menu",{name:e}),"data-row-menu-trigger":"",className:p1,children:i.jsx(Oa,{size:14,"aria-hidden":"true"})})}),i.jsx(Xi,{align:"start",side:"right",className:"w-64",children:i.jsx(Nc,{sections:n.sections,conversation:n.conversation,agentNotify:n.agentNotify,handlers:n.handlers})})]}),Wc=({label:e,onStartGroup:n})=>i.jsxs(Qi,{children:[i.jsx(Yi,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":o("ui.teamBridge.row.menu",{name:e}),className:"absolute end-[3px] flex size-6 items-center justify-center rounded-sm text-ink-dim opacity-0 transition-opacity duration-fast hover:bg-row-hover hover:text-ink focus-visible:opacity-100 group-hover/row:opacity-100 group-focus-within/row:opacity-100 data-[state=open]:opacity-100",children:i.jsx(Oa,{size:14,"aria-hidden":"true"})})}),i.jsx(Xi,{align:"start",side:"right",children:i.jsxs(Zi,{onSelect:n,children:[i.jsx(mt,{size:14,"aria-hidden":"true"}),o("ui.teamBridge.row.start_group")]})})]}),ql=({hasDraft:e=!1,member:n,selfAccountId:t,identityKnown:a,selected:r,dm:s,readOnly:l,onSelect:c,onStartGroup:d})=>{pe();const m=u.useId(),h=nn(n),p=a?hs(n,t):"unknown",g=i.jsx(kn,{member:n,kind:"human",label:h,size:20,selected:r,className:"text-[10px]"});if(p==="self")return i.jsx("li",{children:i.jsx(ct,{member:n,label:h,kind:"human",onMessage:c,canMessage:!1,...ya,children:i.jsxs("button",{type:"button",className:H(ki,"cursor-default text-ink-muted"),children:[g,i.jsx("span",{className:"min-w-0 flex-1 truncate",children:o("ui.teamBridge.people.self_named",{name:h})})]})})});const b=p==="unknown"?o("ui.teamBridge.people.identity_loading"):p==="unavailable"&&!s?o("ui.teamBridge.people.bridge_off"):null;if(b)return i.jsx("li",{children:i.jsx(ct,{member:n,label:h,kind:"human",onMessage:c,canMessage:!l&&p!=="unavailable"&&p!=="unknown",...ya,children:i.jsxs("button",{type:"button","aria-disabled":"true","aria-describedby":m,className:H(ki,"h-auto min-h-8 cursor-default py-1 text-ink-muted"),children:[i.jsx("span",{className:"opacity-60",children:g}),i.jsxs("span",{className:"flex min-w-0 flex-1 flex-col text-start",children:[i.jsx("span",{className:"truncate",children:h}),i.jsx("span",{id:m,className:"truncate text-meta-sm text-ink-dim",children:b})]})]})})});const k=s?.unread_count??0,x=!l&&p!=="unavailable";return i.jsxs("li",{className:"group/row relative flex items-center",children:[i.jsx(ct,{member:n,label:h,kind:"human",onMessage:c,canMessage:(!!s||!l)&&p!=="unavailable"&&p!=="unknown",...ya,children:i.jsxs("button",{type:"button",onClick:c,"aria-current":r?"page":void 0,"data-team-bridge-person":n.account_id,"aria-label":Gc(h,s),className:H(ki,r?H(La,"[&>svg:first-child]:text-accent"):k>0?"font-semibold text-ink hover:bg-row-hover":"text-ink-muted hover:bg-row-hover hover:text-ink"),children:[g,i.jsx("span",{className:"min-w-0 flex-1 truncate",children:h}),p==="paused"&&i.jsx("span",{className:"shrink-0 text-meta-sm text-ink-dim",children:o("ui.teamBridge.people.paused")}),e&&i.jsxs("span",{title:o("ui.teamBridge.drafts.indicator"),className:"shrink-0 text-ink-dim",children:[i.jsx($a,{size:12,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.drafts.indicator")})]}),!!(s&&Ka(s))&&i.jsx(Ds,{yieldsToMenu:x}),i.jsx(Ps,{count:k,yieldsToMenu:!0,register:s?ws(s):"attention"})]})}),x&&i.jsx(Wc,{label:h,onStartGroup:()=>d({kind:"human",accountId:n.account_id,label:h})})]})},Fl=({hasDraft:e=!1,chief:n,label:t,selected:a,dm:r,readOnly:s,onSelect:l,onStartGroup:c})=>{pe();const d=r?.unread_count??0;return i.jsxs("li",{className:"group/row relative flex items-center",children:[i.jsx(ct,{member:n.person,label:t,kind:"agent",onMessage:l,canMessage:!!r||!s,...ya,children:i.jsxs("button",{type:"button",onClick:l,"aria-current":a?"page":void 0,"data-team-bridge-chief":n.person.account_id,"aria-label":Gc(t,r),className:H(ki,a?H(La,"[&>svg:first-child]:text-accent"):d>0?"font-semibold text-ink hover:bg-row-hover":"text-ink-muted hover:bg-row-hover hover:text-ink"),children:[i.jsx(kn,{member:n.person,kind:"agent",endpointId:n.endpointId,label:t,size:20,selected:a,className:"text-accent"}),i.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),n.paused&&i.jsx("span",{className:"shrink-0 text-meta-sm text-ink-dim",children:o("ui.teamBridge.people.paused")}),e&&i.jsxs("span",{title:o("ui.teamBridge.drafts.indicator"),className:"shrink-0 text-ink-dim",children:[i.jsx($a,{size:12,"aria-hidden":"true"}),i.jsx("span",{className:"sr-only",children:o("ui.teamBridge.drafts.indicator")})]}),!!(r&&Ka(r))&&i.jsx(Ds,{yieldsToMenu:!s}),i.jsx(Ps,{count:d,yieldsToMenu:!0,register:r?ws(r):"attention"})]})}),!s&&i.jsx(Wc,{label:t,onStartGroup:()=>c({kind:"agent",accountId:n.person.account_id,endpointId:n.endpointId,label:t})})]})},k1=["72%","58%","80%","64%"],st=({label:e})=>i.jsx("output",{"aria-label":e,className:"block",children:k1.map(n=>i.jsxs("div",{"aria-hidden":"true",className:"flex h-8 items-center gap-2 px-2",children:[i.jsx(fi,{className:"size-4 shrink-0 rounded-xs"}),i.jsx(fi,{className:"h-3 rounded-xs",style:{width:n}})]},n))});function $l(e,n,t){return e?.type===n&&e.accountId===t}function w1(e,n){if(!e)return"";const t=Date.parse(e);if(Number.isNaN(t))return"";const a=Math.round((t-Date.now())/6e4),r=Math.round(a/60),s=Math.abs(a)<60?Sr(a,"minute",{numeric:"auto"},n):Math.abs(r)<24?Sr(r,"hour",{numeric:"auto"},n):Sr(Math.round(r/24),"day",{numeric:"auto"},n),l=new Intl.DateTimeFormat(n,{dateStyle:"medium",timeStyle:"short"}).format(new Date(t));return`${s} · ${l}`}const Kl=48,Oi=1,b1="[data-radix-scroll-area-viewport]";function Ja({resetKey:e,contentKey:n,scrollElement:t="radix",preserveAnchor:a=!1,rowIds:r,rowSelector:s="[data-message-id]",liveEdgeAvailable:l=!0}){const c=u.useRef(null),d=u.useRef(!0),m=u.useRef(l),h=u.useRef(null),p=u.useRef([]),g=u.useRef(0),b=u.useRef(0),[k,x]=u.useState(0),v=u.useCallback(()=>t==="root"?c.current:c.current?.querySelector(b1)??null,[t]),w=u.useCallback(B=>{g.current=B.scrollTop,b.current=B.scrollHeight-B.scrollTop-B.clientHeight},[]),f=u.useCallback(()=>{if(!a)return;const B=v();if(!B)return;const M=B.getBoundingClientRect(),V=[...B.querySelectorAll(s)].find(O=>{const q=O.getBoundingClientRect();return q.bottom>M.top&&q.top<M.bottom});h.current=V?{id:V.dataset.messageId??"",offset:V.getBoundingClientRect().top-M.top}:null},[a,v,s]),j=u.useCallback(()=>{if(!a||!h.current)return;const B=v();if(!B)return;const M=[...B.querySelectorAll(s)].find(V=>V.dataset.messageId===h.current?.id);M&&(B.scrollTop+=M.getBoundingClientRect().top-B.getBoundingClientRect().top-h.current.offset,w(B))},[a,v,s,w]),S=u.useCallback(()=>{const B=v();B&&(B.scrollTop=B.scrollHeight,w(B))},[v,w]),E=u.useCallback(()=>{l&&(d.current=!0,a&&x(0),S())},[S,a,l]),_=u.useCallback(()=>{d.current=!1,f()},[f]),C=u.useCallback(()=>d.current&&l,[l]);return u.useLayoutEffect(()=>{d.current=l,m.current=l,h.current=null,p.current=r??[],a&&x(0),S()},[e,S]),u.useLayoutEffect(()=>{const B=l&&!m.current;if(m.current=l,l?B&&(d.current=!0,h.current=null,a&&x(0)):d.current=!1,d.current)S();else if(j(),a&&r){const M=p.current.at(-1),V=M?r.indexOf(M):-1;V>=0&&V<r.length-1&&x(O=>O+r.length-V-1)}p.current=r??[]},[n,S,l]),u.useEffect(()=>{const B=v();if(!B)return;w(B);const M=()=>{const N=B.scrollTop,G=B.scrollHeight-N-B.clientHeight,K=N<g.current-Oi,$=N>g.current+Oi,R=G<b.current-Oi;w(B),l?K&&G>Oi?d.current=!1:G<=Oi?d.current=!0:$&&R&&(d.current=G<=Kl):d.current=!1,d.current?(h.current=null,a&&x(0)):f()},V=N=>{N.target instanceof HTMLImageElement&&(d.current?S():j())},O=N=>{N.ctrlKey||!l||(N.deltaY<0&&B.scrollTop>0&&B.scrollHeight>B.clientHeight?d.current&&(d.current=!1,f()):N.deltaY>0&&!d.current&&B.scrollHeight-B.scrollTop-B.clientHeight<=Kl&&(d.current=!0,h.current=null,a&&x(0)))};B.addEventListener("scroll",M,{passive:!0}),B.addEventListener("wheel",O,{passive:!0}),B.addEventListener("load",V,!0);const q=B.firstElementChild,F=typeof ResizeObserver=="function"&&q?new ResizeObserver(()=>{d.current?S():j()}):null;if(F&&q){F.observe(q);for(const N of q.children)F.observe(N)}return F?.observe(B),()=>{B.removeEventListener("scroll",M),B.removeEventListener("wheel",O),B.removeEventListener("load",V,!0),F?.disconnect()}},[v,w,S,e,l,a,f,j]),{rootRef:c,pin:E,hold:_,isPinned:C,newMessages:k}}class Vc extends Error{}function y1(e){if(e.order===void 0)throw new Vc;if(e.order!=="desc")throw new Error("Thread response order mismatch");return e}function x1(e){return e instanceof Vc||e instanceof In&&e.status===422&&e.code==="invalid_request"}function v1(e,n){const t=n==="desc"?[...e].reverse():e,a=new Map;for(const r of t)for(const s of r.replies)a.set(s.id,s);return[...a.values()]}function Ul(e,n,t,a,r){if(e.root.id!==n.rootId||e.root.conversation_id!==n.conversationId||e.root.thread_root_id||e.replies.some(s=>s.id===n.rootId||s.conversation_id!==n.conversationId||s.thread_root_id!==n.rootId))throw new Error("Thread response identity mismatch");if(t==="desc"&&y1(e),e.replies.length>r||new Set(e.replies.map(s=>s.id)).size!==e.replies.length||e.replies.some((s,l)=>{const c=e.replies[l-1];return!Number.isSafeInteger(s.seq)||s.seq<=0||c&&(c.seq>s.seq||c.seq===s.seq&&c.id>=s.id)}))throw new Error("Thread response page ordering mismatch");if(a!==void 0&&e.replies.some(s=>t==="desc"?s.seq>=a:s.seq<a))throw new Error("Thread response cursor boundary mismatch");if(e.has_more){const s=t==="desc"?e.replies[0]?.seq:(e.replies.at(-1)?.seq??-1)+1,l=t==="desc"?e.next_before_seq:e.next_after_seq;if(s===void 0||!Number.isSafeInteger(s)||s<=0||l!==s)throw new Error("Thread response cursor mismatch")}return e}function Jc({queryKey:e,identity:n,read:t,canEvict:a,isAtLiveEdge:r,poll:s=!1,enabled:l=!0,retry:c=!1,retryDelay:d,refetchOnWindowFocus:m,refetchOnReconnect:h,retryOnMount:p}){const g=ht(),b=["team-bridge","reply-window-negotiation",JSON.stringify(e)],{data:k}=Ua({queryKey:b,queryFn:()=>"desc",initialData:"desc",enabled:!1,gcTime:0}),x=[...e,k],v=JSON.stringify(x),w=u.useRef({key:v,pendingNewer:!1});w.current.key!==v&&(w.current={key:v,pendingNewer:!1});const f=bs({queryKey:x,initialPageParam:void 0,maxPages:6,gcTime:0,enabled:l,retry:c,retryDelay:d,refetchOnWindowFocus:m,refetchOnReconnect:h,retryOnMount:p,queryFn:async({pageParam:E,signal:_})=>{const C=w.current,B=()=>{if(_.aborted||w.current!==C||C.key!==v)throw new dt({revert:!0})};B();const M=g.getQueryData(x),V=M?.pages.reduce((R,D)=>Math.max(R,D.replies.at(-1)?.seq??0),0)??0,O=()=>{const R=C.upperBound??V+1;if(!Number.isSafeInteger(R)||R<=0)throw new Error("Thread upper boundary is not representable");return R};if(C.attempt?.signal!==_){const R=g.getQueryState(x)?.fetchMeta?.fetchMore?.direction==="forward"&&E!==void 0;k==="desc"&&!R&&V>0&&(!(r?.()??!0)||typeof M?.pageParams[0]=="number"||C.upperBound!==void 0)&&(C.upperBound=O()),C.attempt={signal:_,older:R,first:!0,live:k==="desc"&&C.upperBound===void 0,hadRows:V>0}}const q=C.attempt,F=q.first;q.first=!1;const N=F&&!q.older&&k==="desc"?C.upperBound??E:E,G=R=>{const D=g.getQueryData(x),T=new Map(D?.pages.flatMap(z=>z.replies.map(Z=>[Z.id,Z.seq]))??[]);if(R.replies.some(z=>T.has(z.id)&&T.get(z.id)!==z.seq))throw new Error("Thread response sequence identity mismatch")};let K;try{if(F&&!q.older&&k==="desc"&&N!==void 0){const R=Ul(await t(k,void 0,1,_),n,k,void 0,1);B(),G(R);const D=R.replies.at(-1);C.latest=D?{id:D.id,seq:D.seq}:void 0,C.pendingNewer=!!(D&&D.seq>V)}K=Ul(await t(k,N,50,_),n,k,N,50),B(),G(K)}catch(R){throw k==="desc"&&F&&!M?.pages.length&&N===void 0&&!_.aborted&&x1(R)?(g.setQueryData(b,"legacy"),new dt({revert:!0})):R}if(F&&q.live){const R=K.replies.at(-1);C.latest=R?{id:R.id,seq:R.seq}:void 0}if(!q.older&&q.live&&q.hadRows&&!(r?.()??!0))throw C.upperBound=O(),C.pendingNewer=!!(C.latest&&C.latest.seq>V),queueMicrotask(()=>{if(w.current!==C||_.aborted)return;const R=g.getQueryCache().find({queryKey:x,exact:!0});R&&R.getObserversCount()>0&&g.refetchQueries({queryKey:x,exact:!0},{cancelRefetch:!0})}),new dt({revert:!0});const $=g.getQueryData(x);if(q.older&&$&&$.pages.length>=6&&a&&!a($.pages[0]))throw new dt({revert:!0});return K},getNextPageParam:(E,_,C)=>{if(!E.has_more)return;const B=k==="desc"?E.next_before_seq:E.next_after_seq;if(!(B==null||!Number.isSafeInteger(B)||B<0)&&!(k==="desc"&&B===0))return C===void 0||(k==="desc"?B<C:B>C)?B:void 0},refetchInterval:s?8e3:!1}),j=f.error instanceof In?f.error.status:void 0,S=!!(f.data&&f.isFetchNextPageError&&(j===null||typeof j=="number"&&Number.isInteger(j)&&j>=500&&j<=599));return{...f,mode:k,keepWindowOnError:S,replies:v1(f.data?.pages??[],k),pendingNewer:w.current.pendingNewer,latestPageAvailable:k==="desc"&&w.current.upperBound===void 0&&!w.current.pendingNewer&&f.data?.pageParams[0]===void 0,resetLatest:()=>w.current.key!==v?Promise.resolve():(w.current={key:v,pendingNewer:!1},g.resetQueries({queryKey:x,exact:!0}))}}function Qc(e,n){if(!n)return!1;const t=n.getBoundingClientRect(),a=new Set(e.replies.map(r=>r.id));return![...n.querySelectorAll("[data-message-id]")].some(r=>{const s=r.getBoundingClientRect();return a.has(r.dataset.messageId??"")&&s.bottom>t.top&&s.top<t.bottom})}const j1=new Set(["conversation_not_found","account_mismatch","expected_account_mismatch","deadline_exceeded","owner_audit_unavailable"]);function Os(e){const n=e instanceof Error?e.message:"",t=Po(e)?"cancelled":n==="Owner audit authority changed"?"audit-owner":n==="Team Bridge read owner changed"?"bridge-owner":n==="Team Bridge read authority changed"?"bridge-authority":n==="Account authority changed"||n==="Account authority unresolved"?"credential-authority":e instanceof Error&&e.name==="ZodError"?"schema":e instanceof In?"desktop":"other",a=e instanceof In?Object.getOwnPropertyDescriptor(e,"status")?.value:void 0;return{category:t,errorClass:Po(e)?"CancelledError":e instanceof In?"DesktopControlError":e instanceof Error&&e.name==="ZodError"?"ZodError":e instanceof Error?"Error":"unknown",status:typeof a=="number"&&Number.isInteger(a)&&a>=100&&a<=599?a:null,code:e instanceof In&&e.code?j1.has(e.code)?e.code:"other":null}}function Yc(e){const n=Os(e);return n.category==="credential-authority"||n.status===401||n.code==="account_mismatch"||n.code==="expected_account_mismatch"?"auth":n.status===403?"permission":n.status===404||n.code==="conversation_not_found"?"not-found":n.status!==null&&n.status>=500?"unavailable":"error"}function qs(e,n){const t=Os(n);return e<1&&t.category==="desktop"&&t.status!==null&&t.status>=500}const Fs=250,_1=1e3;function N1(e,n){return new Promise(t=>{let a=()=>{};const r=c=>{clearTimeout(l),a(),t(c)},s=()=>{const c=ps(e);c.epoch>n&&c.accountId&&r(!0)},l=setTimeout(()=>r(!1),_1);a=Bh(e,s),s()})}function $s(e,n){const t=ht(),a=ms(),r=u.useCallback(g=>t.getQueryCache().subscribe(g),[t]),s=u.useCallback(()=>JSON.stringify(Wu(t.getQueryData(Rn.statusFor(e.accountId)))),[t,e.accountId]),l=u.useSyncExternalStore(r,s,s),c=`${a.token}:${l}`,d=a.accountId===e.accountId&&!!e.tenantId&&t.getQueryData(Rn.statusFor(e.accountId))?.account_id===e.accountId,m=u.useMemo(()=>({accountId:e.accountId,tenantId:e.tenantId,operation:n,remaining:20}),[e.accountId,e.tenantId,n]),h=u.useRef(0);return{read:async(g,b)=>{const k=a.token,x=()=>!b.aborted&&fd(t)===k&&ps(t).accountId===e.accountId&&s()===l;try{if(!x())throw new Error("Owner audit authority changed");const v=await Vu(t,e.accountId,g);if(!x())throw new Error("Owner audit authority changed");return h.current=0,v}catch(v){if(m.remaining>0){m.remaining-=1;const f=v instanceof In?Object.getOwnPropertyDescriptor(v,"status")?.value:void 0,j=typeof f=="number"&&Number.isInteger(f)&&f>=100&&f<=599?`${Math.floor(f/100)}xx`:"unknown";try{console.warn("[owner-audit-read]",JSON.stringify({operation:n,statusClass:j}))}catch{}}if(!x())throw new dt({revert:!0});const w=Os(v);throw["cancelled","audit-owner","bridge-owner","bridge-authority","credential-authority"].includes(w.category)?new dt({revert:!0}):w.status===401&&++h.current===1&&await N1(t,a.epoch)?new dt({revert:!0}):v}},authorityToken:c,enabled:d}}function B1(e){const{read:n,authorityToken:t,enabled:a}=$s(e,"conversations");return{...bs({queryKey:["team-bridge","owner-audit",e.accountId,e.tenantId,t,"conversations"],initialPageParam:void 0,queryFn:({pageParam:s,signal:l})=>n(()=>ea.conversations(e,s),l),getNextPageParam:(s,l,c)=>s.has_more&&s.next_cursor&&s.next_cursor!==c?s.next_cursor:void 0,enabled:a,gcTime:0,retry:qs,retryDelay:Fs,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retryOnMount:!1}),auditAuthRequired:!a}}function S1(e,n,t){const{read:a,authorityToken:r,enabled:s}=$s(e,"messages"),l=ht(),c=["team-bridge","owner-audit",e.accountId,e.tenantId,r,n,"messages"];return{...bs({queryKey:c,maxPages:6,initialPageParam:void 0,queryFn:async({pageParam:m,signal:h})=>{const p=await a(()=>ea.messages(e,n,m),h),g=l.getQueryData(c);if(m!==void 0&&g&&g.pages.length>=6&&t&&!t(g.pages[0]))throw new dt({revert:!0});return p},getNextPageParam:(m,h,p)=>m.has_more&&m.next_before_seq!=null&&(p===void 0||m.next_before_seq<p)?m.next_before_seq:void 0,enabled:s,gcTime:0,retry:qs,retryDelay:Fs,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retryOnMount:!1}),auditAuthRequired:!s,refetchLatest:()=>l.resetQueries({queryKey:c,exact:!0})}}function E1(e,n,t,a,r){const{read:s,authorityToken:l,enabled:c}=$s(e,"replies");return{...Jc({queryKey:["team-bridge","owner-audit",e.accountId,e.tenantId,l,n,"replies",t],identity:{conversationId:n,rootId:t},read:(m,h,p,g)=>s(()=>ea.replies(e,n,t,m==="desc"?void 0:h??0,m==="desc"?{beforeSeq:h,order:"desc",limit:p}:void 0),g),canEvict:a,enabled:c,retry:qs,retryDelay:Fs,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retryOnMount:!1,isAtLiveEdge:r}),auditAuthRequired:!c}}const Vi=e=>e!=="loading"&&e!=="ready",Xc=u.createContext(null);function Ks(e){if(e.auditAuthRequired)return"auth";if(e.isPending)return"loading";if(e.isError){const n=Yc(e.error);if(!e.data||n==="auth"||n==="permission"||n==="not-found")return n}return"ready"}const Zc=e=>l1(e,o("ui.ownerAudit.unnamed"));function Pa({state:e="error",retry:n,inset:t="px-3"}){return i.jsxs("div",{role:"alert",className:H("space-y-2 text-sm text-danger",t),children:[i.jsx("p",{children:o(e==="auth"?"ui.ownerAudit.auth_required":e==="permission"?"ui.ownerAudit.permission_refused":e==="not-found"?"ui.ownerAudit.not_found":e==="unavailable"?"ui.ownerAudit.unavailable":"ui.ownerAudit.error")}),e==="auth"&&i.jsx(X,{variant:"ghost",asChild:!0,children:i.jsx("a",{href:"#/settings?section=radient",children:o("ui.ownerAudit.sign_in")})}),(e==="error"||e==="unavailable")&&i.jsx(X,{variant:"ghost",onClick:n,children:o("ui.ownerAudit.retry")})]})}function I1({conversations:e,state:n,selectedId:t,onSelect:a,retry:r,hasMore:s=!1,loadingMore:l=!1,loadMore:c}){return pe(),n==="loading"?i.jsx("output",{className:"px-2 py-2 text-sm text-ink-muted",children:o("ui.ownerAudit.loading")}):Vi(n)?i.jsx(Pa,{state:n,retry:r,inset:"px-2"}):i.jsxs(i.Fragment,{children:[e.length===0&&i.jsx("p",{className:"px-2 py-2 text-sm text-ink-muted",children:o("ui.ownerAudit.empty_list")}),i.jsx("ul",{children:e.map(d=>i.jsx("li",{children:i.jsxs("button",{type:"button","aria-current":t===d.id?"page":void 0,className:H(ki,"text-ink-muted hover:bg-row-hover hover:text-ink",t===d.id&&"bg-row-selected text-ink"),onClick:()=>a(d),children:[i.jsx(Ls,{kind:d.kind}),i.jsx("span",{className:"min-w-0 flex-1 truncate",children:Zc(d)})]})},d.id))}),s&&i.jsx(X,{variant:"ghost",disabled:l,onClick:c,children:o("ui.ownerAudit.more")})]})}function R1({scope:e,selectedId:n,onSelect:t}){const a=B1(e),r=[...new Map(a.data?.pages.flatMap(s=>s.conversations).map(s=>[s.id,s])??[]).values()];return i.jsx(I1,{conversations:r,selectedId:n,onSelect:t,state:Ks(a),retry:()=>void a.refetch(),hasMore:a.hasNextPage,loadingMore:a.isFetchingNextPage,loadMore:()=>void a.fetchNextPage()})}function C1(){return{named:(e,n)=>o("ui.teamBridge.chief.label",{agent:e,person:n}),unnamed:e=>o("ui.teamBridge.chief.unnamed",{person:e})}}const T1={admitted:{variant:"success",copy:"ui.ownerAudit.admitted"},rejected:{variant:"danger",copy:"ui.ownerAudit.rejected"},not_screened:{variant:"info",copy:"ui.ownerAudit.not_screened"},unknown:{variant:"neutral",copy:"ui.ownerAudit.unknown_status"}};function eu({attachmentScope:e,conversation:n,messages:t,people:a,renderReplies:r,density:s}){const l=new Map(t.map(d=>[d.id,d])),c=C1();return i.jsx(za,{messages:t.map(c1),labelFor:d=>m1(d,a,n.members,c),profileFor:d=>h1(d,a),tenantId:n.tenant_id,density:s,arrivalKey:`owner-audit:${n.tenant_id}:${n.id}`,arrivalsEnabled:!1,decorate:d=>{const m=l.get(d.id);if(!m)return;const h=o1(m,n.agent.account_id),p=h==="own"?null:T1[h],g=m.attachments?.length||m.attachment_count||0,b=(m.files??[]).map(Ic),k=Math.max(b.length,m.file_count??0);return{badge:p&&i.jsx(yi,{variant:p.variant,children:o(p.copy)}),withheldCopy:o("ui.ownerAudit.body_unavailable"),attachments:g>0||k>0?i.jsx(s1,{scope:n1(e,n,m),attachments:m.attachments??[],count:g,compact:s==="compact",files:b,fileCount:k},JSON.stringify([e?.accountId,e?.tenantId,n.id,m.id])):void 0,after:r&&(m.reply_count??0)>0?r(m):void 0}}})}function M1({conversation:e}){pe();const n=e.agent.state;return n==="active"?i.jsx("p",{className:"mx-5 mt-4 text-meta text-ink-dim",children:o("ui.ownerAudit.active")}):i.jsx("p",{className:"mx-5 mt-4 border-hairline border-t pt-3 text-ink text-sm",children:n==="left"?o("ui.ownerAudit.left"):n==="removed"?o("ui.ownerAudit.removed"):o("ui.ownerAudit.window_unconfirmed")})}const Hl=Intl.ListFormat;function A1({names:e,locale:n}){const t=Hl?new Hl(n,{style:"short",type:"unit"}).formatToParts(e.map(s=>s.name)):e.map(s=>({type:"element",value:s.name})),a=[];let r="";for(const s of t)s.type==="literal"?r+=s.value:(a.push(r),r="");return i.jsx("ul",{className:"inline",children:e.map((s,l)=>i.jsxs("li",{className:"inline",children:[l>0&&i.jsx("span",{"aria-hidden":"true",children:a[l]}),i.jsx("span",{className:"text-ink",children:s.name})]},s.key))})}function z1({attachmentScope:e=null,conversation:n,messages:t,state:a,retry:r,hasMore:s=!1,loadingMore:l=!1,loadMore:c,renderReplies:d,readerAccountId:m,people:h=nu,latestPageAvailable:p=!0,scrollHostRef:g}){const b=pe(),k=Ja({resetKey:`${n.tenant_id}:${n.id}:${a}`,contentKey:`${t.length}:${t[0]?.id??""}:${t.at(-1)?.id??""}`,scrollElement:"root",preserveAnchor:!0,rowIds:t.map(w=>w.id),liveEdgeAvailable:p}),x=u.useMemo(()=>js(k.rootRef,g),[k.rootRef,g]),v=(n.viewers??[]).filter(w=>w.account_id!==m);return i.jsxs("section",{className:"relative flex min-h-0 flex-1 flex-col","aria-label":o("ui.ownerAudit.title"),children:[i.jsxs("header",{className:"shrink-0 px-5 pb-2",children:[i.jsxs("div",{className:"flex h-11 items-center gap-2",children:[i.jsx("span",{className:"text-ink-dim",children:i.jsx(Ls,{kind:n.kind})}),i.jsx("h2",{className:"min-w-0 flex-1 truncate font-semibold text-[15px] text-ink",children:Zc(n)}),!Vi(a)&&i.jsxs(X,{variant:"ghost",size:"sm",onClick:r,children:[i.jsx(Ju,{"aria-hidden":"true"}),o("ui.ownerAudit.refresh")]})]}),i.jsxs($i,{variant:"neutral",icon:i.jsx(Td,{"aria-hidden":"true"}),className:H(od,"items-start border-transparent"),children:[i.jsxs("p",{className:"text-body-sm text-ink-muted",children:[i.jsx("span",{children:o("ui.ownerAudit.read_only")}),i.jsx("span",{className:"ms-1",children:o("ui.ownerAudit.disclosure")})]}),v.length>0&&i.jsxs("div",{className:"text-body-sm text-ink-muted",children:[i.jsx("span",{className:"me-1",children:o("ui.ownerAudit.viewers_label")}),i.jsx(A1,{locale:b,names:v.map((w,f)=>({key:`${w.account_id}:${w.agent_member_key}:${f}`,name:w.display_label||o("ui.ownerAudit.unknown_sender")}))})]})]})]}),a==="ready"&&s&&i.jsxs("aside",{className:"flex shrink-0 flex-wrap items-center gap-x-2 border-b border-hairline px-5 py-2",children:[i.jsx("p",{className:"text-meta text-ink-dim",children:o("ui.ownerAudit.page_cutoff")}),i.jsx(X,{variant:"ghost",size:"sm",onClick:c,disabled:l,children:o("ui.ownerAudit.older")})]}),i.jsx("div",{ref:x,className:"min-h-0 flex-1 overflow-auto pb-5",style:{overflowAnchor:"none"},children:i.jsx("div",{className:"min-h-full",children:a==="loading"?i.jsx("output",{className:"block px-5 py-8 text-[13px] text-ink-muted",children:o("ui.ownerAudit.loading")}):Vi(a)?i.jsx("div",{className:"py-4",children:i.jsx(Pa,{state:a,retry:r,inset:"px-5"})}):i.jsxs(i.Fragment,{children:[t.length===0?i.jsx("p",{className:"px-5 py-8 text-[13px] text-ink-muted",children:o("ui.ownerAudit.empty_history")}):i.jsx(Xc.Provider,{value:k.hold,children:i.jsx(eu,{attachmentScope:e?.accountId===m?e:null,conversation:n,messages:t,people:h,renderReplies:d})}),i.jsx(M1,{conversation:n})]})})}),a==="ready"&&(p?k.newMessages>0?i.jsx(X,{className:"absolute bottom-4 right-4",onClick:k.pin,children:o("ui.teamBridge.notify.count",{count:k.newMessages})}):null:i.jsx(X,{className:"absolute bottom-4 right-4",onClick:r,children:o("ui.ownerAudit.refresh")}))]})}const nu=[];function P1({scope:e,conversation:n,root:t,people:a}){const r=u.useRef(null),s=u.useRef(()=>!0),l=E1(e,n.id,t.id,p=>Qc(p,r.current),()=>s.current()),c=Ks(l),d=c==="loading"?"loading":Vi(c)&&(!l.data||!l.keepWindowOnError)?"error":"ready",m=Ja({resetKey:`${e.accountId}:${e.tenantId}:${n.id}:${t.id}:${l.mode}:${d}`,contentKey:`${l.replies.length}:${l.replies.at(-1)?.id??""}`,scrollElement:"root",preserveAnchor:!0,rowIds:l.replies.map(p=>p.id),liveEdgeAvailable:l.latestPageAvailable});s.current=m.isPinned;const h=u.useMemo(()=>js(m.rootRef,r),[m.rootRef]);return i.jsxs("div",{className:"relative min-h-0",children:[l.mode==="legacy"&&i.jsx("p",{className:"py-1 text-meta text-ink-dim",children:o("ui.teamBridge.replies.legacy_window")}),i.jsxs("div",{ref:h,className:"h-80 min-h-0 w-full min-w-0 overflow-x-hidden overflow-y-auto","data-audit-reply-window":!0,children:[l.mode==="desc"&&d==="ready"&&l.hasNextPage&&i.jsx(X,{variant:"ghost",size:"sm",disabled:l.isFetchingNextPage,onClick:()=>{m.hold(),l.fetchNextPage()},children:o("ui.ownerAudit.older_replies")}),d==="loading"?i.jsx("output",{className:"block py-1 text-meta text-ink-muted",children:o("ui.ownerAudit.loading")}):d==="error"?i.jsx(Pa,{state:Vi(c)?c:"error",retry:()=>void l.resetLatest()}):l.replies.length===0?i.jsx("p",{className:"py-2 text-meta text-ink-muted",children:o("ui.ownerAudit.empty_replies")}):i.jsx(eu,{attachmentScope:e,conversation:n,messages:l.replies,people:a,density:"compact"}),l.mode==="legacy"&&l.hasNextPage&&i.jsx(X,{variant:"ghost",size:"sm",disabled:l.isFetchingNextPage,onClick:()=>void l.fetchNextPage(),children:o("ui.ownerAudit.more")})]}),l.mode==="desc"&&!l.latestPageAvailable&&i.jsx(X,{variant:"ghost",size:"sm",onClick:()=>void l.resetLatest(),children:o("ui.ownerAudit.refresh")}),l.latestPageAvailable&&m.newMessages>0&&i.jsx(X,{variant:"ghost",size:"sm",onClick:m.pin,children:o("ui.teamBridge.notify.count",{count:m.newMessages})}),l.keepWindowOnError&&i.jsx(Pa,{state:Yc(l.error),retry:()=>void l.fetchNextPage()})]})}function D1({scope:e,conversation:n,root:t,people:a}){const[r,s]=u.useState(!1),l=u.useContext(Xc);return i.jsxs("details",{className:"mt-1","data-audit-reply-disclosure":!0,onToggle:c=>{c.currentTarget.open&&l?.(),s(c.currentTarget.open)},children:[i.jsx("summary",{className:"inline-flex min-h-[24px] w-fit cursor-pointer items-center text-[12px] text-accent",children:o("ui.ownerAudit.replies")}),r&&i.jsx(P1,{scope:e,conversation:n,root:t,people:a})]})}function L1({scope:e,conversation:n}){const t=u.useRef(null),a=S1(e,n.id,l=>{const c=t.current;if(!c)return!1;const d=c.getBoundingClientRect(),m=new Set(l.messages.map(h=>h.id));return![...c.querySelectorAll("[data-message-id]")].some(h=>{const p=h.getBoundingClientRect();return m.has(h.dataset.messageId??"")&&p.bottom>d.top&&p.top<d.bottom})}),s=hd(n.tenant_id,!0,e.accountId).data?.members??nu;return i.jsx(z1,{attachmentScope:e,conversation:n,messages:d1(a.data?.pages.map(l=>l.messages)??[]),state:Ks(a),retry:()=>void a.refetchLatest(),latestPageAvailable:a.data?.pageParams[0]===void 0,scrollHostRef:t,hasMore:a.hasNextPage,loadingMore:a.isFetchingNextPage,loadMore:()=>void a.fetchNextPage(),renderReplies:l=>i.jsx(D1,{scope:e,conversation:n,root:l,people:s}),readerAccountId:e.accountId,people:s})}function O1(){return pe(),i.jsxs(i.Fragment,{children:[i.jsx("h2",{className:"px-2 py-2 font-medium text-meta text-ink-dim tracking-wide",children:o("ui.ownerAudit.title")}),i.jsx("p",{className:"px-2 pb-2 text-meta text-ink-dim",children:o("ui.ownerAudit.read_only")})]})}function q1({accountId:e,enabled:n,scopeKey:t,organizations:a,onSelect:r}){const[s,l]=u.useState(null),c=s?.scopeKey===t&&a.some(d=>d.tenantId===s.conversation.tenant_id)?s.conversation:null;if(!(!n||!e))return{active:c!==null,clear:()=>l(null),panel:c&&i.jsx(L1,{scope:{accountId:e,tenantId:c.tenant_id},conversation:c},`${e}:${c.tenant_id}:${c.id}`),rail:d=>i.jsxs("section",{className:H("mt-4",ja),"aria-label":o("ui.ownerAudit.title"),children:[i.jsx(O1,{}),a.map((m,h)=>i.jsxs("div",{children:[a.length>1&&i.jsx(ls,{id:`team-bridge-audit-org-${m.tenantId}`,name:m.name,first:h===0}),i.jsx(R1,{scope:{accountId:e,tenantId:m.tenantId},selectedId:c?.tenant_id===m.tenantId?c.id:void 0,onSelect:p=>{d(),r(),l({scopeKey:t,conversation:p})}})]},`${e}:${m.tenantId}`))]})}}const Gl=200;let Wl=0;const F1=()=>(Wl+=1,Wl),Tt=ys()(e=>({entries:[],add:n=>e(t=>{const a=[...t.entries,n],r=a.filter(l=>l.status==="sent");if(r.length<=Gl)return{entries:a};const s=new Set(r.slice(0,r.length-Gl).map(l=>l.localId));return{entries:a.filter(l=>!s.has(l.localId))}}),patch:(n,t)=>e(a=>({entries:a.entries.map(r=>r.localId===n?{...r,...t}:r)})),remove:n=>e(t=>({entries:t.entries.filter(a=>a.localId!==n)}))}));function $1(e,n){return n.owner?e.filter(t=>t.owner===n.owner&&(n.conversationId!==void 0&&t.conversationId!==void 0?t.conversationId===n.conversationId:t.lane===n.lane)):[]}function K1(e,n,t,a){const r=new Map,s=new Set,l=[...n].sort((k,x)=>k.order-x.order),c=new Set(e.map(k=>k.id));for(const k of l)k.serverId&&c.has(k.serverId)&&(r.set(k.serverId,k),s.add(k.localId));const d=[...e].sort((k,x)=>k.seq-x.seq);for(const k of l){if(s.has(k.localId)||k.serverId||!t)continue;const x=d.find(v=>!r.has(v.id)&&v.sender.account_id===t.account_id&&v.sender.kind===t.kind&&v.body===k.body&&v.seq>k.baselineSeq);x&&(r.set(x.id,k),s.add(k.localId))}let m=e.reduce((k,x)=>Math.max(k,x.seq),-1);const h=new Set(e.map(k=>k.id));for(const k of l)k.serverRow&&!h.has(k.serverRow.id)&&(m=Math.max(m,k.serverRow.seq));const p=e.reduce((k,x)=>Math.max(k,x.seq),-1),g=new Map,b=[];for(const k of l)s.has(k.localId)||!t||k.serverRow&&k.serverRow.seq<=p||(k.serverRow||(m+=1),g.set(k.localId,k),b.push({...k.serverRow??{conversation_id:a??k.conversationId??"",sender:t,body:k.body,origin:"human",created_at:k.createdAt},id:k.localId,seq:k.serverRow?.seq??m}));return{messages:b.length===0?[...e]:[...e,...b],keyOf:k=>r.get(k.id)?.localId??k.id,localOf:k=>g.get(k.id),localCount:b.length}}const Vl=e=>`conversation:${e}`,Un=new Map;function U1(e,n){const t=Un.get(e)??{tail:Promise.resolve()};Un.set(e,t);const a=t.tail.catch(()=>{}).then(()=>n(t));return t.tail=a,a.catch(()=>{}).then(()=>{Un.get(e)===t&&t.tail===a&&Un.delete(e)}),a}function H1(e,n,t){const a=Un.get(e)??{tail:Promise.resolve()};a.resolved=t,Un.set(e,a),Un.has(n)||Un.set(n,a)}cs(()=>{Un.clear(),Tt.setState({entries:[]})});function G1(e){const n=Qu.safeParse(e);return n.success?n.data:void 0}const W1=2e3,Jl=3e3,Ql=new Map,qi=e=>{let n=Ql.get(e);return n||(n={top:0,targetKey:null,railPickAt:0},Ql.set(e,n)),n},Yl=e=>e?.querySelector("[data-radix-scroll-area-viewport]")??null;function V1(e,n){const[t,a]=u.useState(null),r=u.useRef(null),s=u.useRef(!1);if(r.current===null||r.current.key!==e){const l=e===null?null:qi(e);r.current={key:e,restore:l&&l.top>0&&!s.current?l.top:null,restoreUntil:Date.now()+Jl,reveal:l!==null&&n!==null&&!s.current&&Date.now()-l.railPickAt>W1&&l.targetKey!==n,viewport:null}}return u.useLayoutEffect(()=>{if(e===null)return;const l=qi(e);l.railPickAt=0,n!==null&&(l.targetKey=n)},[e,n]),u.useLayoutEffect(()=>{const l=Yl(t),c=r.current;if(!(!l||!c)){if(c.viewport!==l){const d=c.viewport;if(c.viewport=l,d!==null&&c.key!==null&&!s.current){const m=qi(c.key).top;m>0&&(c.restore=m,c.restoreUntil=Date.now()+Jl)}}if(c.restore!==null)if(l.scrollTop=c.restore,Math.abs(l.scrollTop-c.restore)<1||Date.now()>c.restoreUntil)c.restore=null;else return;if(c.reveal){const d=l.querySelector('[aria-current="page"]');if(!d)return;c.reveal=!1;const m=l.getBoundingClientRect(),h=d.getBoundingClientRect();(h.bottom<=m.top||h.top>=m.bottom)&&d.scrollIntoView?.({block:"nearest"})}}}),u.useEffect(()=>{const l=Yl(t);if(!t||!l||e===null)return;const c=()=>{r.current?.restore==null&&(qi(e).top=l.scrollTop)},d=()=>{s.current=!0,r.current&&(r.current.restore=null,r.current.reveal=!1)};return l.addEventListener("scroll",c,{passive:!0}),t.addEventListener("wheel",d,{passive:!0}),t.addEventListener("touchstart",d,{passive:!0}),t.addEventListener("pointerdown",d),t.addEventListener("keydown",d),()=>{l.removeEventListener("scroll",c),t.removeEventListener("wheel",d),t.removeEventListener("touchstart",d),t.removeEventListener("pointerdown",d),t.removeEventListener("keydown",d)}},[t,e]),{ref:a,onClickCapture:()=>{e!==null&&(qi(e).railPickAt=Date.now())}}}async function J1(e){const n=async(r,s)=>{e.onCreated(r);const l=s.tenantId??e.tenantId,c=e.stageHeld?await e.stageHeld(r,l):[...e.attachmentIds??[]],d=await e.schedule({tenant_id:l,conversation_id:r,client_ref:e.clientRef,body:e.body,send_at:e.sendAt,...c.length>0?{attachment_ids:c}:{},...e.threadRootId?{thread_root_id:e.threadRootId}:{}});return e.onScheduled?.(r),d};if(e.conversationId)return n(e.conversationId,{tenantId:e.tenantId});const t=Md(e.recipients);if(!t)throw new Error("schedule requires recipients");const a=`${e.tenantId}|${t.kind}|${e.recipients.map(on).sort().join(",")}`;return Ad({draftKey:a,input:t,body:e.body,clientRef:e.clientRef,tenantId:e.tenantId,remembered:e.remembered,create:e.create,post:n})}function Q1(e,n){return!e&&!!(n&&n>=400&&n<500&&n!==409)}function Lt(e){const n=new Date(e);return new Date(n.getTime()-n.getTimezoneOffset()*6e4).toISOString().slice(0,16)}async function Y1(e,n){const t=await Promise.allSettled(e.map(n)),a=[],r=[];return t.forEach((s,l)=>{s.status==="fulfilled"?a.push(...s.value.scheduled):r.push(e[l])}),{scheduled:a.sort((s,l)=>s.send_at.localeCompare(l.send_at)),failedTenants:r}}function X1(e,n,t,a){const r=(e.attachments??[]).map(c=>c.id),s=a!==void 0&&!xa(a,r),l=t!==void 0&&t.trim()===""&&t!==e.body&&(a?.length??0)>0;return{...t!==void 0&&t!==e.body?{body:t}:{},...n!==e.send_at?{send_at:n}:{},...s||l?{attachment_ids:[...a??[]]}:{}}}function xa(e,n){return e.length===n.length&&e.every((t,a)=>t===n[a])}function Z1(e,n,t){const a=t.body.trim()!==e.body,r=t.when!==Lt(e.sendAt),s=new Set(t.kept.map(c=>c.id)),l=new Set(e.attachments.map(c=>c.id).filter(c=>!s.has(c)));return{body:a&&n.body===e.body?t.body:n.body,when:r&&n.sendAt===e.sendAt?t.when:Lt(n.sendAt),kept:n.attachments.filter(c=>!l.has(c.id))}}function ex(e,n,t){const a=t.body.trim()!==e.body,r=n.body!==e.body,s=t.when!==Lt(e.sendAt),l=n.sendAt!==e.sendAt,c=new Set(Fr(e.attachments)),d=new Set(Fr(n.attachments)),m=new Set(Fr(t.kept));return{bodyReplaced:a&&r&&t.body.trim()!==n.body,bodyChanged:!a&&r,...a&&r&&t.body.trim()!==n.body?{lostBody:t.body}:{},timeReplaced:s&&l&&t.when!==Lt(n.sendAt),timeChanged:!s&&l,imagesAdded:[...d].filter(h=>!c.has(h)).length,imagesRemoved:[...c].filter(h=>!d.has(h)&&m.has(h)).length}}function nx(e){return e.bodyReplaced||e.bodyChanged||e.timeReplaced||e.timeChanged||e.imagesAdded>0||e.imagesRemoved>0}const Fr=e=>e.map(n=>n.id);function tx(e){return e instanceof In&&e.status===409&&e.code==="invalid_transition"&&typeof e.detail=="object"&&e.detail!==null&&e.detail.details?.rule==="concurrent_edit"?"conflict":"other"}async function ix(e,n,t,a,r){if(typeof r!="number")return e(n,t,a);try{return await e(n,t,{...a,expected_version:r})}catch(s){if(s instanceof In&&s.status===422&&s.code==="invalid_request")return e(n,t,a);throw s}}function ax(e,n,t){return e.type==="compose"&&n===e?{type:"conversation",id:t}:null}function rx(e,n){return e?{bodyReplaced:e.bodyReplaced||n.bodyReplaced,bodyChanged:(e.bodyChanged||n.bodyChanged)&&!n.bodyReplaced,lostBody:n.lostBody??e.lostBody,timeReplaced:e.timeReplaced||n.timeReplaced,timeChanged:(e.timeChanged||n.timeChanged)&&!n.timeReplaced,imagesAdded:e.imagesAdded+n.imagesAdded,imagesRemoved:e.imagesRemoved+n.imagesRemoved}:n}const Xl="rounded-md border border-control bg-surface p-2 text-ink disabled:border-hairline disabled:bg-sunken disabled:text-ink-muted",di=e=>(e??[]).map(n=>n.id);function tu({open:e,onOpenChange:n,busy:t,onSchedule:a,initialBody:r,initialSendAt:s,initialAttachments:l,accountId:c,returnFocus:d,unavailable:m=!1,initialVersion:h}){const p=pe(),g=u.useId(),[b,k]=u.useState(s?Lt(s):""),[x,v]=u.useState(r??""),[w,f]=u.useState(l??[]),[j,S]=u.useState(null),[E,_]=u.useState(null),C=u.useRef(null),B=u.useRef(null),M=u.useRef(null),V=u.useRef(!1);u.useEffect(()=>{const T=V.current;if(V.current=e,e){d?.current&&(M.current=d.current);return}if(!T)return;const z=d?.current??M.current;M.current=null,z?.isConnected&&z.focus()},[e,d]);const O=!!(s&&b===Lt(s)),q=O?s:ol(b),F=!xa(di(w),di(l)),N=r===void 0||x.trim()!==r||!O||F,G=u.useRef(!1);u.useEffect(()=>{const T=e&&!G.current;G.current=e;const z=s===void 0?null:{body:r??"",sendAt:s,attachments:l??[],...typeof h=="number"?{version:h}:{}};if(T){C.current=z,v(r??""),f(l??[]),k(s?Lt(s):""),_(null),S(null);return}const Z=C.current;if(!e||m||!Z||!z)return;if(Z.body===z.body&&Z.sendAt===z.sendAt&&xa(di(Z.attachments),di(z.attachments))){C.current=z;return}C.current=z;const L={body:x,when:b,kept:w},ne=Z1(Z,z,L),J=ex(Z,z,L);v(ne.body),k(ne.when),f(ne.kept),_(null),nx(J)&&(ne.body.trim()!==L.body.trim()||ne.when!==L.when||!xa(di(ne.kept),di(w)))&&S(ge=>({kind:"conflict",report:rx(ge?.kind==="conflict"?ge.report:null,J)}))},[e,m,r,s,l,h,x,b,w]);const K=j?.kind==="conflict"?j.report:void 0,$=K?.lostBody!==void 0&&x.trim()!==K.lostBody.trim()?K.lostBody:void 0,R=j?.kind==="conflict"&&!N,D=Intl.DateTimeFormat().resolvedOptions().timeZone;return i.jsx(qt,{open:e,onOpenChange:T=>{t||(_(null),S(null),n(T))},children:i.jsxs(Ft,{className:"top-[12vh] h-[min(84vh,40rem)] translate-y-0",showClose:!m,onCloseAutoFocus:T=>{const z=d?.current??M.current;M.current=null,!(!z||!z.isConnected)&&(T.preventDefault(),z.focus())},children:[i.jsxs(Gd,{children:[i.jsx($t,{children:o(m?"ui.teamBridge.schedule.edit_gone_title":"ui.teamBridge.schedule.title")}),i.jsx(Kt,{children:o("ui.teamBridge.schedule.timezone",{timezone:D})})]}),i.jsxs("div",{"data-schedule-body":"",className:"-mx-1 flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-1",children:[m?i.jsx($i,{variant:"warning",role:"alert",children:i.jsx("p",{children:o("ui.teamBridge.schedule.edit_gone")})}):j?.kind==="conflict"?i.jsxs($i,{variant:"warning",role:"alert",children:[i.jsx(pg,{children:o("ui.teamBridge.schedule.edit_conflict")}),$!==void 0&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_body_replaced")}),K?.bodyChanged&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_body_changed")}),K?.timeReplaced&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_time_replaced")}),K?.timeChanged&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_time_changed")}),(K?.imagesAdded??0)>0&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_images_added",{count:K?.imagesAdded??0})}),(K?.imagesRemoved??0)>0&&i.jsx("p",{children:o("ui.teamBridge.schedule.conflict_images_removed",{count:K?.imagesRemoved??0})}),i.jsx("p",{children:o(R?"ui.teamBridge.schedule.conflict_nothing_left":"ui.teamBridge.schedule.conflict_review")}),$!==void 0&&i.jsx("div",{children:i.jsx(X,{variant:"outline",size:"sm",disabled:t,onClick:()=>{v($),_(null),B.current?.focus()},children:o("ui.teamBridge.schedule.conflict_restore_body")})})]}):j?.kind==="failed"&&i.jsx($i,{variant:"danger",role:"alert",children:i.jsx("p",{children:o(s===void 0?"ui.teamBridge.schedule.failed":"ui.teamBridge.schedule.edit_failed")})}),r!==void 0&&i.jsxs("label",{className:"flex flex-col gap-1 text-sm text-ink",children:[o("ui.teamBridge.schedule.edit_body"),i.jsx("textarea",{ref:B,value:x,onChange:T=>{v(T.target.value),_(null)},disabled:t||m,className:`${Xl} ${m?"resize-none":""}`})]}),w.length>0&&i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsx(Dc,{attachments:w,accountId:c}),!m&&i.jsx(X,{variant:"ghost",size:"sm",disabled:t,onClick:()=>{f([]),_(null)},children:o("ui.teamBridge.attachments.remove_all")})]}),i.jsx("label",{htmlFor:g,className:"text-sm text-ink",children:o("ui.teamBridge.schedule.when")}),i.jsx("input",{id:g,type:"datetime-local",value:b,disabled:t||m,onChange:T=>{k(T.target.value),_(null)},"aria-describedby":m?void 0:`${g}-help`,className:Xl}),!m&&i.jsx("p",{id:`${g}-help`,className:"text-sm text-ink-muted",children:o("ui.teamBridge.schedule.window")}),!m&&b&&!q&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.schedule.invalid")}),!m&&E&&i.jsx("p",{"aria-live":"polite",className:"text-sm text-ink",children:o("ui.teamBridge.schedule.confirm",{date:new Intl.DateTimeFormat(p,{dateStyle:"full",timeStyle:"long"}).format(new Date(E))})})]}),m||R?i.jsx(X,{onClick:()=>n(!1),children:o("ui.common.actions.close")}):i.jsx(X,{disabled:!q||!N||t||r!==void 0&&!x.trim()&&w.length===0,onClick:()=>{const T=O?s:ol(b);if(!T){_(null);return}if(E!==T){_(T);return}S(null),a(T,r===void 0?void 0:x.trim(),l===void 0?void 0:w.map(z=>z.id),C.current?.version).then(()=>{n(!1),_(null)}).catch(z=>{const Z=tx(z);S(L=>L?.kind==="conflict"?L:Z==="conflict"?{kind:"conflict",report:null}:{kind:"failed"})})},children:o(E?"ui.teamBridge.schedule.confirm_action":"ui.teamBridge.schedule.review")})]})})}function sx({accountId:e,tenantIds:n,organizationNames:t,conversationNames:a,readOnly:r=!1}){const s=Ua({queryKey:["team-bridge","scheduled",e,...[...n].sort()],queryFn:()=>Y1(n,Je.scheduledList),staleTime:0,gcTime:0});return i.jsx(ox,{state:s.isPending?"loading":s.isError||n.length>0&&s.data?.failedTenants.length===n.length?"error":"ready",messages:s.data?.scheduled??[],failedTenants:s.data?.failedTenants??[],organizationNames:t,conversationNames:a,readOnly:r,refresh:()=>s.refetch(),accountId:e})}function ox({state:e,messages:n,failedTenants:t=[],organizationNames:a={},conversationNames:r={},readOnly:s=!1,refresh:l,accountId:c}){const[d,m]=u.useState(null);u.useEffect(()=>{d&&!n.some(w=>w.id===d)&&m(null)},[n,d]);const[h,p]=u.useState(null);u.useEffect(()=>{if(!h)return;const w=n.find(f=>f.id===h.id);w&&w!==h&&p(w)},[n,h]);const g=h&&!n.some(w=>w.id===h.id)?h:null,b=g&&e==="ready"&&!t.includes(g.tenant_id)?g:null,k=g&&!b?g:null,x=g?[...n,g].sort((w,f)=>w.send_at.localeCompare(f.send_at)):n,v=(w,f=!1)=>i.jsx(lx,{message:w,gone:w===b,detached:f,onEditingChange:j=>p(j?w:null),refresh:l,organizationNames:a,conversationNames:r,onCancelFailure:()=>m(w.id),onCancelSuccess:()=>m(null),readOnly:s,accountId:c},w.id);return i.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-5","aria-label":o("ui.teamBridge.schedule.list"),children:[i.jsx("h2",{className:"text-lg font-medium text-ink",children:o("ui.teamBridge.schedule.list")}),e==="ready"&&t.map(w=>i.jsxs("div",{role:"alert",className:"text-sm text-danger",children:[i.jsxs("p",{children:[o("ui.teamBridge.schedule.load_failed")," ",i.jsx("span",{children:a[w]?.trim()||w})]}),i.jsx(X,{onClick:()=>{l()},children:o("ui.teamBridge.list.retry")})]},w)),d&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.schedule.cancel_failed")}),e==="loading"?i.jsx(en,{size:"sm",label:o("ui.teamBridge.schedule.loading")}):e==="error"?i.jsxs("div",{role:"alert",children:[i.jsx("p",{children:o("ui.teamBridge.schedule.load_failed")}),i.jsx(X,{onClick:()=>{l()},children:o("ui.teamBridge.list.retry")})]}):x.length===0&&i.jsx("p",{className:"text-ink-muted",children:o("ui.teamBridge.schedule.empty")}),(e==="ready"?x:k?[k]:[]).map(w=>v(w,e!=="ready"))]})}function lx({message:e,refresh:n,readOnly:t=!1,organizationNames:a={},conversationNames:r={},onCancelFailure:s,accountId:l,onCancelSuccess:c,gone:d=!1,detached:m=!1,onEditingChange:h}){const p=pe(),[g,b]=u.useState(!1),[k,x]=u.useState(!1),v=_=>{x(_),h?.(_)},w=u.useRef(null),f=u.useId(),j=[r[e.conversation_id]?.trim(),a[e.tenant_id]?.trim()].filter(Boolean).join(" · "),S=i.jsx(tu,{open:k,onOpenChange:v,returnFocus:w,busy:g,unavailable:d||e.status==="sending",initialBody:e.body,initialSendAt:e.send_at,initialAttachments:e.attachments,initialVersion:e.version,accountId:l,onSchedule:async(_,C,B,M)=>{b(!0);try{await ix(Je.scheduledUpdate,e.tenant_id,e.id,X1(e,_,C,B),M),await n()}catch(V){throw await n(),V}finally{b(!1)}}}),E=d||m?null:i.jsxs("article",{className:"rounded-lg bg-elevated p-3 text-ink",children:[i.jsx("p",{className:"text-sm text-ink-muted",children:new Intl.DateTimeFormat(p,{dateStyle:"medium",timeStyle:"long"}).format(new Date(e.send_at))}),j&&i.jsx("p",{id:f,className:"text-sm text-ink-muted",children:j}),e.body.trim()!==""&&i.jsx(Rd,{children:e.body}),(e.attachments?.length??0)>0&&i.jsx(Dc,{attachments:e.attachments??[],accountId:l}),e.status==="sending"?i.jsx("p",{"aria-live":"polite",children:o("ui.teamBridge.schedule.sending")}):i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsx(X,{ref:w,disabled:g||t,onClick:()=>v(!0),children:o("ui.teamBridge.schedule.reschedule")}),i.jsx(X,{variant:"ghost",className:"h-auto min-h-8 max-w-full whitespace-normal text-left text-danger hover:text-danger",disabled:g||t,"aria-describedby":j?f:void 0,onClick:()=>{b(!0),Je.scheduledCancel(e.tenant_id,e.id).then(()=>(c?.(),n())).catch(()=>{s?.(),n()}).finally(()=>b(!1))},children:o("ui.teamBridge.schedule.cancel")})]})]});return i.jsxs(i.Fragment,{children:[E,S]})}const dx=["png","jpg","jpeg","gif","webp","heic","bmp","avif"],iu=/^data:([^;,]+)(;base64)?,([\s\S]*)$/;function cx(e){if(e.startsWith("data:")){const n=iu.exec(e);return n?{kind:"dataUrl",dataUrl:e,mime:n[1]}:null}return e.trim()===""?null:{kind:"path",path:e}}async function ux(e){if(e.kind==="path"){const t=await window.api?.readFile?.(e.path,"base64");if(!t?.success)return{ok:!1,why:"read"};try{return{ok:!0,bytes:Zl(t.data)}}catch{return{ok:!1,why:"read"}}}const n=iu.exec(e.dataUrl);if(!n)return{ok:!1,why:"unsupported"};if(!n[2])return{ok:!1,why:"unsupported"};try{return{ok:!0,bytes:Zl(n[3])}}catch{return{ok:!1,why:"read"}}}function Zl(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a<n.length;a+=1)t[a]=n.charCodeAt(a);return t}const ed=120;function nd(e,n,t){const a=e.startsWith("data:")?Eo(e):mx(Eo(e));return t<=1?a:`${a} · ${o("ui.teamBridge.attachments.position",{index:String(n+1),count:String(t)})}`}const mx=e=>e.length<=ed?e:`${e.slice(0,ed-1)}…`,hx=e=>{if(e.kind==="dataUrl")return e.mime.startsWith("image/");const n=e.path.split(".").pop()?.toLowerCase()??"";return dx.includes(n)};async function gx(e){const{paths:n,accountId:t,tenantId:a,conversationId:r,capability:s}=e,l=[],c=[];if(n.length===0)return{ids:l,failures:c};if(!s){for(let m=0;m<n.length;m+=1)c.push({name:nd(n[m],m,n.length),reason:"unsupported"});return{ids:l,failures:c}}const d=n.length;for(const[m,h]of n.entries()){const p=nd(h,m,d),g=cx(h);if(g===null||!hx(g)){c.push({name:p,reason:"unsupported"});continue}const b=await ux(g);if(!b.ok){c.push({name:p,reason:b.why});continue}const k=Es(b.bytes);if(k===null){c.push({name:p,reason:"unsupported"});continue}let x;try{x=(await fc(new Blob([b.bytes]),s.max_bytes)).bytes}catch(v){const w=k==="image/png"||k==="image/jpeg",f=v instanceof ut?v.reason:null;c.push({name:p,reason:f==="unsupported"&&w?"read":"unsupported"});continue}try{const v=await Je.uploadAttachment(a,r,x,t);l.push(v.id)}catch{c.push({name:p,reason:"upload"})}}return{ids:l,failures:c}}const td=()=>typeof document<"u"&&document.visibilityState==="visible"&&document.hasFocus();function px(){const[e,n]=u.useState(td);return u.useEffect(()=>{const t=()=>n(td());return window.addEventListener("focus",t),window.addEventListener("blur",t),document.addEventListener("visibilitychange",t),t(),()=>{window.removeEventListener("focus",t),window.removeEventListener("blur",t),document.removeEventListener("visibilitychange",t)}},[]),e}let id=!1,$r=0;const Fi=[];function fx({conversationId:e,tenantId:n,enabled:t,onMessageSeqAdvance:a,api:r=Je,windowActive:s}){const l=px(),c=s??l,d=e&&n?`${n}\0${e}`:"",[m,h]=u.useState({key:"",entries:Fi}),p=m.key===d?m.entries:Fi,[g,b]=u.useState(()=>Date.now()),k=u.useRef(r);k.current=r;const x=u.useRef(a);x.current=a;const v=u.useRef(null),w=u.useRef({key:"",nextAt:0,pollMs:Ir,failures:0}),f=t&&c&&!!e&&!!n;return u.useEffect(()=>{if(!f||!e||!n){h({key:"",entries:Fi});return}const j=`${n}\0${e}`,S=O=>h({key:j,entries:O});v.current?.key!==j&&(v.current=null);const E=w.current;E.key!==j&&(E.key=j,E.nextAt=0,E.pollMs=Ir,E.failures=0);let _=!1,C=null;const B=O=>{_||(E.nextAt=Date.now()+Math.max(0,O),C=setTimeout(M,Math.max(0,O)))},M=async()=>{if(C=null,id)return;const O=$r-Date.now();if(O>0){B(O);return}try{const q=await k.current.typing(e,n);if(_)return;const F=Date.now(),N=Ta(q.poll_after_ms,Ir);if(E.pollMs=N,E.failures=0,!q.enabled){S(Fi),$r=F+N,B(N);return}S(vg(q.typers,F)),b(F);const G=q.message_seq;if(G!==void 0){const K=v.current;K&&K.key===j&&G>K.seq&&x.current?.(G),(!K||K.key!==j||G>K.seq)&&(v.current={key:j,seq:G})}B(N)}catch(q){if(_)return;S(Fi);const F=q;if(F?.code==="outdated_hub"){id=!0;return}let N;F?.status===429?N=Ta(Jd(q),Gr):F?.status===503?N=Gr:(E.failures+=1,N=jg(E.failures,E.pollMs)),$r=Date.now()+N,B(N)}},V=E.nextAt-Date.now();return V>0?B(V):M(),()=>{_=!0,C!==null&&clearTimeout(C)}},[f,e,n]),u.useEffect(()=>{const j=xg(p,g);if(j===null)return;const S=setTimeout(()=>b(Date.now()),j-g);return()=>clearTimeout(S)},[p,g]),{entries:p,now:g}}const au="",ru="",ci=e=>`${au}${e}${ru}`,kx=new RegExp(`${au}(\\d)${ru}`);function wx(e){switch(Ng(e).form){case"none":return null;case"one":return o("ui.teamBridge.typing.one",{first:ci(0)});case"two":return o("ui.teamBridge.typing.two",{first:ci(0),second:ci(1)});case"three":return o("ui.teamBridge.typing.three",{first:ci(0),second:ci(1),third:ci(2)});case"several":return o("ui.teamBridge.typing.several")}}function bx(e,n){const t=[];let a=e,r=0;for(;;){const s=kx.exec(a);if(!s)break;s.index>0&&t.push(a.slice(0,s.index)),t.push(i.jsx("strong",{className:"inline-block max-w-[16ch] truncate align-bottom font-semibold text-ink-muted",children:n[Number(s[1])]??""},r++)),a=a.slice(s.index+s[0].length)}return a&&t.push(a),t}const yx=({names:e,scope:n,className:t})=>{pe();const a=wx(e);return i.jsx("output",{"aria-live":"polite","aria-atomic":"true","data-team-bridge-typing":n,"data-typing-count":e.length,className:H("block h-4 truncate ps-3 text-meta-sm leading-4 text-ink-dim",t),children:a?bx(a,e):null})},su=u.createContext(null),xx=({conversationId:e,tenantId:n,selfAccountId:t,open:a,threadRootId:r,labelFor:s,api:l,windowActive:c,children:d})=>{const m=u.useContext(ng),h=u.useCallback(()=>{!m||!e||!n||(m.invalidateQueries({queryKey:[...Rn.all,"messages",n,e]}),r&&m.invalidateQueries({predicate:({queryKey:k})=>k[0]===Rn.all[0]&&k[1]==="replies"&&k.includes(e)&&k.includes(r)}))},[m,e,n,r]),{entries:p,now:g}=fx({conversationId:e,tenantId:n,enabled:a,onMessageSeqAdvance:h,api:l,windowActive:c}),b=u.useMemo(()=>({entries:p,now:g,selfAccountId:t,labelFor:s}),[p,g,t,s]);return i.jsx(su.Provider,{value:b,children:d})},ou=({rootId:e,className:n})=>{const t=u.useContext(su),a=u.useMemo(()=>t?_g(t.entries,{scope:e,now:t.now,selfAccountId:t.selfAccountId,labelFor:t.labelFor}):[],[t,e]),r=a.join("\0"),s=u.useMemo(()=>a,[r]);return t?i.jsx(yx,{names:s,scope:e===null?"main":"thread",className:n}):null},ad=(e,n)=>{const t=bc(e,n.id);return{key:`draft:${n.id}`,status:Hf(n)?"expired":"ready",attachment:n,previewUrl:t?xi(t,t.type):void 0}};function vx(e){const{scopeKey:n,accountId:t,tenantId:a,conversationId:r,capability:s,persisted:l,onPersist:c}=e,[d,m]=u.useState(()=>(l??[]).map($=>ad(t,$))),h=u.useRef(t).current,[p,g]=u.useState(null),b=u.useRef(d);b.current=d;const k=u.useRef(0),x=JSON.stringify([n,t,a,r]),v=u.useRef(x);v.current!==x&&(v.current=x,k.current+=1);const w=k.current,f=u.useRef(c);f.current=c;const j=$=>{for(const R of $)R.previewUrl&&bi(R.previewUrl)};u.useEffect(()=>{const $=(l??[]).map(R=>ad(t,R));m(R=>(j(R),$)),g(null)},[n,t]),u.useEffect(()=>()=>{k.current+=1,j(b.current)},[]);const S=$=>{b.current=$,m($),f.current?.($.flatMap(R=>R.status==="ready"&&R.attachment?[R.attachment]:[]))},E=($,R)=>{S(b.current.map(D=>D.key===$?{...D,...R}:D))},_=async($,R,D,T=w,z=a)=>{if(!z||!h)return E($,{status:"error",reason:"failed"}),null;E($,{status:"uploading",reason:void 0});try{const Z=await Je.uploadAttachment(z,D,R.bytes,h);if(k.current!==T)return null;const L=Uf(Z,D);return Wf(t,L.id,new Blob([R.bytes],{type:R.mime})),E($,{status:"ready",attachment:L}),L}catch(Z){return k.current!==T||E($,{status:"error",reason:Df(Z?.status,Z?.code)}),null}},C=$=>{if(k.current!==w||$.length===0)return;if(!s){g("unsupported");return}const R=el(s)-b.current.length,D=$.slice(0,Math.max(0,R));g(D.length<$.length?"limit":null);const T=w,z=D.map(()=>({key:crypto.randomUUID(),status:"preparing"}));S([...b.current,...z]),D.forEach((Z,L)=>{const ne=z[L].key;fc(Z,s.max_bytes).then(J=>{if(k.current!==T)return;const ge=xi(J.bytes,J.mime);E(ne,{prepared:J,previewUrl:ge}),r?_(ne,J,r,T):E(ne,{status:"held"})},J=>{k.current===T&&E(ne,{status:"error",reason:J instanceof ut?J.reason:"invalid"})})})},B=$=>{const R=b.current.find(D=>D.key===$);R&&(R.previewUrl&&bi(R.previewUrl),S(b.current.filter(D=>D.key!==$)),g(null),R.attachment&&a&&R.status==="ready"&&h&&Je.deleteAttachment(a,R.attachment.conversationId,R.attachment.id,h).catch(()=>{}))},M=$=>{if(k.current!==w)return;const R=b.current.find(T=>T.key===$),D=r??R?.attachment?.conversationId;if(R?.prepared){if(!D){E($,{status:"held",reason:void 0});return}_($,R.prepared,D)}},V=async($,R=a)=>{const D=b.current.filter(T=>(T.status==="held"||T.status==="error")&&T.prepared);if(await Promise.all(D.map(T=>T.prepared?_(T.key,T.prepared,$,k.current,R):null)),b.current.some(T=>T.status!=="ready"))throw new Error("attachments not staged");return O()},O=()=>s===null?[]:b.current.flatMap($=>$.status==="ready"&&$.attachment?[$.attachment.id]:[]),q=$=>{const R=$?new Set($):null;S(b.current.map(D=>D.status==="ready"&&(!R||D.attachment&&R.has(D.attachment.id))?{...D,status:"expired",attachment:void 0}:D))},F=$=>{const R=new Set($),D=b.current.filter(T=>!(T.attachment&&R.has(T.attachment.id)));j(b.current.filter(T=>!D.includes(T))),S(D),g(null)},N=d.some($=>$.status==="preparing"||$.status==="uploading"),G=d.some($=>$.status==="error"||$.status==="expired")||s===null&&d.length>0,K=d.some($=>$.status==="held");return{chips:d,notice:p,dismissNotice:()=>g(null),add:C,remove:B,retry:M,uploadHeld:V,readyIds:O,markExpired:q,clearSent:F,busy:N,blocked:G,held:K,count:d.length,max:el(s),enabled:s!==null,unsupported:s===null&&d.length>0}}function jx({loadingMore:e,sawInFlight:n,grew:t}){return e?!1:n||t}function _x(e){return i.jsx(Nx,{...e})}function Nx({root:e,replies:n,state:t,labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,onClose:c,onRetry:d,onSend:m,readOnly:h=!1,hasMore:p=!1,loadingMore:g=!1,onMore:b,onRead:k,reactionContext:x,forceToolbar:v,tenantId:w,conversationId:f,accountId:j,attachmentCapability:S=null,filesCapability:E=null,windowMode:_,olderError:C=!1,latestPageAvailable:B=!0,onLatest:M,scrollHostRef:V,pinnedGetterRef:O,typingTarget:q=null,typingLineRootId:F=null}){pe();const[N,G]=u.useState(!1),K=u.useRef(!1),$=u.useRef(n.length);g&&(K.current=!0),u.useLayoutEffect(()=>{N&&jx({loadingMore:g,sawInFlight:K.current,grew:n.length!==$.current})&&(K.current=!1,G(!1))},[N,g,n.length]),u.useEffect(()=>{if(!N)return;const fe=setTimeout(()=>G(!1),1e4);return()=>clearTimeout(fe)},[N]);const R=u.useRef(null),D=u.useRef(c);D.current=c,u.useEffect(()=>{if(R.current)return Bc(R.current,()=>D.current())},[]),u.useEffect(()=>{if(!(!R.current||t!=="ready"||!k))return Zu(R.current,n,k)},[n,t,k]);const[T,z]=u.useState(""),Z=_c(q,T),L=u.useRef(null),ne=oc({draftKey:`thread|${f??""}|${e?.id??""}`,text:T,setText:z,fieldRef:L}),[J,ge]=u.useState(!1),[de,Q]=u.useState(!1),[re,ve]=u.useState(!1),he=jc({scopeKey:`${e?.id??""}`,accountId:j,tenantId:w,conversationId:f,capability:E}),ue=vx({scopeKey:`${w??""}|${f??""}|${e?.id??""}`,accountId:j,tenantId:w,conversationId:f??null,capability:f&&w?S:null}),ke=u.useRef(null),ee=u.useRef(!1),me=Ja({resetKey:`${w??""}:${f??""}:${e?.id??""}:${t}`,contentKey:`${n.length}:${n.at(-1)?.id??""}`,preserveAnchor:_!==void 0,rowIds:n.map(fe=>fe.id),rowSelector:_?"[data-thread-replies] [data-message-id]":"[data-message-id]",liveEdgeAvailable:_?B:!0});u.useLayoutEffect(()=>{if(O)return O.current=me.isPinned,()=>{O.current===me.isPinned&&(O.current=null)}},[O,me.isPinned]);const Ce=u.useMemo(()=>js(me.rootRef,V),[me.rootRef,V]),je=!!T.trim()||ue.count>0||he.chips.length>0,ye=!h,xe=async()=>{const fe=T.trim();if(ue.blocked||he.blocked){ve(!0);return}if(!je||ue.busy||he.busy||ee.current||h||t!=="ready")return;const qe=ue.readyIds(),Wn=he.chips.map(le=>le.key),P=JSON.stringify([qe,he.chips.map(le=>le.id??le.key)]),ie=ke.current?.body===fe&&ke.current.images===P?ke.current:{body:fe,images:P,clientRef:crypto.randomUUID()};ke.current=ie,ee.current=!0,ge(!0),Q(!1),ve(!1),me.pin(),ne.stage(fe),Z.onSendStart();try{const le=he.chips.length?await he.stageInto(f??"",w):[];if(qe.length+le.length>10)throw new Error("Too many attachments");await m(fe,ie.clientRef,qe,le);for(const we of Wn)he.remove(we);ke.current=null,ue.clearSent(qe),z(we=>we.trim()===fe?"":we)}catch(le){Q(!0),qe.length>0&&ka(le)&&ue.markExpired()}finally{Z.onSendEnd(),ee.current=!1,ge(!1)}};return i.jsxs("aside",{"data-glass-region":"page-sidebar",ref:R,"aria-label":o("ui.teamBridge.replies.title"),className:"panel-top-pad relative flex h-full min-h-0 w-full min-w-0 shrink-0 flex-col bg-surface [--thread-row-host:var(--color-surface)] [--thread-row-message-hover:var(--color-elevated)]",children:[i.jsx(xd,{side:"start"}),i.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between px-4",children:[i.jsx("h2",{className:"font-semibold text-[15px] text-ink",children:o("ui.teamBridge.replies.title")}),i.jsx(X,{"data-thread-close":!0,size:"icon-sm",variant:"ghost",onClick:c,"aria-label":o("ui.teamBridge.replies.close"),children:i.jsx(gt,{size:16})})]}),_==="legacy"&&i.jsx("p",{className:"px-5 py-2 text-meta text-ink-dim",children:o("ui.teamBridge.replies.legacy_window")}),_==="desc"&&!B&&i.jsx(X,{variant:"ghost",size:"sm",onClick:M,children:o("ui.ownerAudit.refresh")}),_==="desc"&&B&&me.newMessages>0&&i.jsx(X,{variant:"ghost",size:"sm",onClick:me.pin,children:o("ui.teamBridge.notify.count",{count:me.newMessages})}),i.jsxs(Ca,{ref:Ce,className:"min-h-0 flex-1 [&_[data-radix-scroll-area-viewport]>div]:block!",children:[e&&i.jsx(za,{messages:[e],arrivalKey:`${Aa(w,e.conversation_id)}/root`,arrivalsEnabled:!1,labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,tenantId:w,accountId:j,density:"compact",reactionContext:x,forceToolbar:v}),(t==="ready"||e?.reply_count!==void 0)&&(e?.reply_count??n.length)>0&&i.jsx("div",{className:"px-5 py-3 text-[12px] text-ink-dim",children:o("ui.teamBridge.replies.count",{count:e?.reply_count??n.length})}),C&&i.jsxs("div",{role:"alert",className:"px-5 py-2 text-meta text-ink-muted",children:[i.jsx("p",{children:o("ui.teamBridge.thread.error")}),i.jsx(X,{variant:"ghost",size:"sm",onClick:()=>{me.hold(),b?.()},children:o("ui.teamBridge.list.retry")})]}),_==="desc"&&t==="ready"&&p&&i.jsx(X,{variant:"ghost",size:"sm",disabled:g,onClick:()=>{me.hold(),b?.()},className:"mx-5 my-2",children:o("ui.teamBridge.replies.more")}),i.jsx("div",{"data-thread-replies":!0,children:t==="loading"?i.jsx("div",{className:"flex justify-center py-8",children:i.jsx(en,{size:"sm",label:o("ui.teamBridge.thread.loading")})}):t==="error"?i.jsxs("div",{role:"alert",className:"px-5 py-6 text-[13px] text-ink-muted",children:[i.jsx("p",{children:o("ui.teamBridge.thread.error")}),i.jsx(X,{variant:"ghost",size:"sm",onClick:d,children:o("ui.teamBridge.list.retry")})]}):n.length===0?ye?i.jsx("p",{className:"px-5 py-6 text-[13px] text-ink-muted",children:o("ui.teamBridge.replies.empty")}):null:i.jsx(za,{messages:n,arrivalKey:Aa(w,f,e?.id),arrivalsEnabled:!N,accountId:j,labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,tenantId:w,density:"compact",reactionContext:x,forceToolbar:v})}),_!=="desc"&&p&&i.jsx(X,{variant:"ghost",size:"sm",disabled:g,onClick:()=>{G(!0),$.current=n.length,me.hold(),b?.()},className:"mx-5 my-2",children:o("ui.teamBridge.replies.more")})]}),h?i.jsx("p",{className:"px-5 pb-4 text-[12px] text-ink-dim",children:o("ui.teamBridge.read_only.composer")}):i.jsxs("div",{className:"shrink-0 px-4 pb-4",children:[de&&i.jsx("p",{role:"alert",className:"pb-1 text-[12px] text-danger",children:o("ui.teamBridge.composer.error")}),i.jsx(sc,{mentions:ne}),re&&ue.blocked&&!ue.unsupported&&i.jsx("p",{role:"alert",className:"pb-1 text-[12px] text-danger",children:o("ui.teamBridge.attachments.send_blocked")}),i.jsxs("div",{"data-glass-region":"composer",className:"rounded-md bg-elevated has-[textarea:focus-visible]:outline-2 has-[textarea:focus-visible]:outline-accent has-[textarea:focus-visible]:outline-offset-2 has-[textarea:focus-visible]:outline-solid",...t==="ready"?jw(ue,he):{},children:[i.jsx(fw,{state:ue}),i.jsx(xc,{state:he}),i.jsx(lc,{mentions:ne,fieldRef:L,text:T,children:i.jsx("textarea",{ref:L,rows:2,"aria-label":o("ui.teamBridge.replies.placeholder"),placeholder:o("ui.teamBridge.replies.placeholder"),value:T,disabled:t!=="ready",onChange:fe=>{z(fe.target.value),Z.onInput(fe.target.value)},onBlurCapture:Z.onBlur,...ne.bindField({onKeyDown:fe=>{fe.key==="Enter"&&!fe.shiftKey&&!fe.nativeEvent.isComposing&&(fe.preventDefault(),xe())}}),className:"relative block max-h-40 min-h-10 w-full resize-none bg-transparent px-3.5 pt-3 pb-1 text-[14px] text-ink outline-none placeholder:text-ink-dim"})}),i.jsxs("div",{className:"flex items-center gap-2 px-2 pb-2",children:[i.jsx("span",{className:"min-w-0 flex-1 ps-1.5 text-meta-sm text-ink-dim",children:o("ui.teamBridge.composer.hint")}),i.jsx(kw,{state:ue,files:he,disabled:J||t!=="ready"}),i.jsx(X,{size:"icon-sm",variant:je||J?"primary":"ghost",className:"rounded-sm",disabled:!je||ue.busy||he.busy||J||t!=="ready","aria-label":o("ui.teamBridge.composer.send"),onClick:()=>void xe(),children:J?i.jsx(en,{size:"sm"}):i.jsx(ld,{size:16})})]})]}),F!==null&&i.jsx(ou,{rootId:F,className:"mt-1 ps-3.5"})]})]})}function Bx(e){return i.jsx(Sx,{...e})}function Sx({target:e,initialRoot:n,readOnly:t,labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,onClose:c,reactionContext:d,accountId:m,attachmentCapability:h,filesCapability:p,typingEnabled:g=!1}){const b=ht(),{tenantId:k,conversationId:x,rootId:v}=e,w=u.useMemo(()=>g&&!t?{conversationId:x,tenantId:k,accountId:m,threadRootId:v}:null,[g,t,x,k,m,v]),f=u.useRef(void 0),j=Yu(x,k,v,()=>f.current),S=u.useRef(-1),E=u.useCallback(async F=>{if(!(F<=S.current)){S.current=F;try{await j.mutateAsync({seq:F})}catch(N){throw S.current===F&&(S.current=-1),N}}},[j.mutateAsync]),_=u.useRef(null),C=u.useRef(null),B=[...Rn.all,"replies",m,k,x,v],M=Jc({queryKey:B,identity:{conversationId:x,rootId:v},read:(F,N,G=50)=>Xu(e,m,F==="desc"?void 0:N??0,F==="desc"?{beforeSeq:N,order:"desc",limit:G}:void 0),canEvict:F=>Qc(F,_.current?.querySelector("[data-radix-scroll-area-viewport]")??null),isAtLiveEdge:()=>C.current?.()??!0,poll:!0}),V=M.replies;f.current=M.mode==="desc"&&M.latestPageAvailable||M.mode!=="desc"&&!M.hasNextPage?V.reduce((F,N)=>F===void 0||N.seq>F?N.seq:F,void 0):void 0;const O=Sh({mutationFn:({body:F,clientRef:N,attachmentIds:G,files:K})=>Je.send(x,{body:F,clientRef:N,tenantId:k,expectedAccountId:m,threadRootId:v,attachmentIds:G,files:K,mentions:us(x,F)}),onSuccess:async(F,{body:N})=>{gd(x,N),await Promise.all([b.invalidateQueries({queryKey:B}),b.invalidateQueries({queryKey:Rn.messages(x,k)}),b.invalidateQueries({queryKey:Rn.conversationsPrefix})])}}),q=M.isError&&!M.keepWindowOnError?null:M.data?.pages[0]?.root??n??null;return i.jsx(_x,{root:q,replies:V,state:M.isPending?"loading":M.isError&&(!M.data||!M.keepWindowOnError)?"error":"ready",labelFor:a,profileFor:r,canMessagePerson:s,onMessagePerson:l,onClose:c,onRead:E,onRetry:()=>void M.refetch(),onSend:(F,N,G,K)=>O.mutateAsync({body:F,clientRef:N,attachmentIds:G,files:K}),tenantId:k,conversationId:x,accountId:m,attachmentCapability:h,filesCapability:p,readOnly:t,typingTarget:w,typingLineRootId:g?v:null,hasMore:M.hasNextPage,loadingMore:M.isFetchingNextPage,onMore:()=>void M.fetchNextPage(),olderError:M.keepWindowOnError,windowMode:M.mode,latestPageAvailable:M.latestPageAvailable,onLatest:()=>void M.resetLatest(),scrollHostRef:_,pinnedGetterRef:C,reactionContext:d})}const Us="lo.teamBridge.view.v1",Ex=256,Ix=["drafts","scheduled","invitations","archived"];function gn(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}const Hn=e=>typeof e=="string"&&e.length>0&&e.length<=Ex;function Qa(e){try{const n=JSON.parse(e.getItem(Us)??"{}");return gn(n)?n:{}}catch{return{}}}function Rx(e){if(!gn(e))return null;switch(e.type){case"conversation":return Hn(e.id)?{type:"conversation",id:e.id}:null;case"person":case"chief":return Hn(e.accountId)?{type:e.type,accountId:e.accountId}:null;case"compose":return Array.isArray(e.recipients)?{type:"compose",recipients:e.recipients.flatMap(t=>{if(!gn(t)||!Hn(t.accountId))return[];const a=typeof t.label=="string"?t.label:"";return t.kind==="human"?[{kind:"human",accountId:t.accountId,label:a}]:t.kind==="agent"&&Hn(t.endpointId)?[{kind:"agent",accountId:t.accountId,endpointId:t.endpointId,label:a}]:[]})}:null;default:return null}}function Cx(e){if(!gn(e))return null;const n=Rx(e.target);if(!n)return null;const t={target:n},a=e.thread;gn(a)&&Hn(a.tenantId)&&Hn(a.conversationId)&&Hn(a.rootId)&&(t.thread={tenantId:a.tenantId,conversationId:a.conversationId,rootId:a.rootId}),typeof e.quickView=="string"&&Ix.includes(e.quickView)&&(t.quickView=e.quickView);const r=e.scroll;return gn(r)&&Hn(r.messageId)&&typeof r.targetKey=="string"&&typeof r.offset=="number"&&Number.isFinite(r.offset)&&(t.scroll={messageId:r.messageId,offset:r.offset,targetKey:r.targetKey}),t}function Tx(e){return e===Ve?Ve:Hn(e)?fn(e):void 0}function Mx(e,n){const t=Qa(e)[n];return gn(t)?Tx(t.scope):void 0}function Ax(e,n,t){const a=Qa(e)[n];return!gn(a)||!gn(a.scopes)?null:Cx(a.scopes[t])}function Kr(e,n,t,a,r=t){try{const s=Qa(e),l=gn(s[n])?s[n]:{},c=gn(l.scopes)?l.scopes:{};return e.setItem(Us,JSON.stringify({...s,[n]:{scope:r,scopes:{...c,[t]:a}}})),!0}catch{return!1}}function zx(e,n,t){try{const a=Qa(e),r=gn(a[n])?a[n]:{};e.setItem(Us,JSON.stringify({...a,[n]:{...r,scope:t}}))}catch{}}function rd(e){return!e?.thread||e.target.type!=="conversation"?null:e.thread.conversationId===e.target.id?e.thread:null}function Px(e,n){return!e?.scroll||!n?null:e.scroll.targetKey===Ze(n)?{messageId:e.scroll.messageId,offset:e.scroll.offset}:null}function Dx(e,n,t,a="",r=!1,s=n==="all"){const l=ot(),c=e&&!r?xo(e,n):null,d=r?null:e??null,m=u.useRef({account:d,epoch:0});m.current.account!==d&&(m.current={account:d,epoch:m.current.epoch+1});const h=m.current.epoch,p=e?yo(e):0,g=()=>!r&&m.current.epoch===h&&(!e||yo(e)===p),[b,k]=u.useState(()=>{const R=c&&l?es(l,c):{};return a&&t&&!R[Ze(t)]&&(R[Ze(t)]={target:t,body:a,clientRef:crypto.randomUUID()}),{key:c,drafts:R}}),[x,v]=u.useState(!1),w=u.useRef(new Map([[b.key,b.drafts]])),f=u.useRef(e);u.useEffect(()=>{const R=f.current;R&&(r||e&&R!==e)&&(em(l,R),w.current.clear(),k({key:null,drafts:{}})),(r||e)&&(f.current=r?void 0:e)},[e,r,l]);const j=()=>(w.current.has(c)||w.current.set(c,c&&l?es(l,c):{}),w.current.get(c)??{}),S=j(),E=t?Ze(t):null,_=E?S[E]:void 0,C=_?.body??"",B=(R,D)=>{if(!g())return!1;const T={...j()};if(D?T[R]=D:delete T[R],w.current.set(c,T),k({key:c,drafts:T}),c){if(!l)return v(!0),!1;try{return l.setItem(c,JSON.stringify(T)),v(!1),!0}catch{return v(!0),!1}}return!0},M=R=>{if(!g()||!t||!E)return!1;const D=j()[E];return B(E,{...D??{target:t,body:C,clientRef:crypto.randomUUID()},target:t,...R})};u.useEffect(()=>{if(t?.type!=="compose")return;const R=j().compose?.target,D=z=>z.recipients.map(Z=>`${Z.kind}:${Z.accountId}`).sort().join("|"),T=R?.type==="compose"&&D(R)!==D(t);M({target:t,...T?{conversationId:void 0,sendAt:void 0,createUncertain:!1,clientRef:crypto.randomUUID()}:{}})},[t,c]);const V=R=>M({body:R,...R.trim()!==C.trim()&&!_?.sendAt?{clientRef:crypto.randomUUID()}:{}}),O=(R,D={})=>{const T=E?j()[E]:void 0;if(!T&&R.length===0)return!0;const z=(T?.attachments??[]).map(L=>L.id).join(","),Z=R.map(L=>L.id).join(",");return M({attachments:R.length>0?R:void 0,...z!==Z&&!T?.sendAt&&!D.keepClientRef?{clientRef:crypto.randomUUID()}:{}})},q=(R,D,T,z=[])=>{if(!g())return;const Z=j()[R];if(Z?.clientRef!==T)return;const L=new Set(z),ne=(Z.attachments??[]).filter(J=>!L.has(J.id));Z.body.trim()===D&&ne.length===0?B(R,null):B(R,{...Z,body:Z.body.trim()===D?"":Z.body,attachments:ne.length>0?ne:void 0,sendAt:void 0,clientRef:crypto.randomUUID()})},[F,N]=u.useState(0);u.useEffect(()=>{const R=D=>{(D.key===null||D.key.startsWith(cd))&&N(T=>T+1)};return window.addEventListener("storage",R),()=>window.removeEventListener("storage",R)},[]);const G=u.useMemo(()=>e&&!r&&s&&l?Ek(l,e):new Map,[e,r,s,F,l]),K=new Map(G);for(const[R,D]of w.current)R&&e&&R.startsWith(xo(e,""))&&(s||R===c)&&K.set(R,D);const $=c?[...K].flatMap(([R,D])=>Object.entries(D).map(([T,z])=>({key:`${R}:${T}`,tenantId:Ik(R),entry:z}))):Object.entries(S).map(([R,D])=>({key:R,tenantId:n,entry:D}));return{drafts:S,entries:$,current:_,body:C,setBody:V,setAttachments:O,update:M,clearSent:q,storageFailed:x}}const sn=new Map;cs(()=>sn.clear());const Lx={read:"ui.teamBridge.attachments.error_invalid",unsupported:"ui.teamBridge.attachments.error_type",upload:"ui.teamBridge.attachments.error_upload"},sd=({error:e,onRetry:n})=>{pe();const t=Ph(e),a=e?.message,r=typeof a=="string"?a.trim():"",s=t==="sign_in"?o("ui.teamBridge.plan.sign_in_reason"):t==="plan"?o("ui.teamBridge.plan.reason"):t==="invalid"?r||o("ui.teamBridge.scope.error"):t==="outdated"?o("ui.teamBridge.plan.update_reason"):o("ui.teamBridge.plan.unavailable_reason"),l=t==="unreachable"||t==="server";return i.jsxs("div",{className:"flex flex-col items-start gap-2 px-2 py-1",children:[i.jsx("p",{className:"text-[12px] leading-snug text-ink-muted",children:o("ui.teamBridge.people.error")}),i.jsx("p",{className:"text-[12px] leading-snug text-ink-dim",children:s}),l&&n&&i.jsx(X,{type:"button",size:"sm",variant:"outline",onClick:n,children:o("ui.teamBridge.list.retry")})]})},Ox=()=>(pe(),i.jsx("div",{"data-glass-region":"canvas",className:"flex h-full min-h-0 w-full items-center justify-center overflow-hidden bg-canvas px-6",children:i.jsx(en,{size:"sm",label:o("ui.teamBridge.plan.checking")})})),gi=()=>({named:(e,n)=>o("ui.teamBridge.chief.label",{agent:e,person:n}),unnamed:e=>o("ui.teamBridge.chief.unnamed",{person:e})}),lu=({reason:e})=>{pe();const n={off:{title:"ui.agentMessages.page_off.title",reason:"ui.agentMessages.page_off.body"},off_local:{title:"ui.agentMessages.page_off.local_title",reason:"ui.agentMessages.page_off.local_body"},plan_required:{title:"ui.teamBridge.plan.title",reason:"ui.teamBridge.plan.reason"},signed_out:{title:"ui.teamBridge.plan.sign_in_title",reason:"ui.teamBridge.plan.sign_in_reason"},update_required:{title:"ui.teamBridge.plan.update_title",reason:"ui.teamBridge.plan.update_reason"},unavailable:{title:"ui.teamBridge.plan.unavailable_title",reason:"ui.teamBridge.plan.unavailable_reason"}};return i.jsx("div",{"data-glass-region":"canvas",className:"flex h-full min-h-0 w-full items-center justify-center overflow-hidden bg-canvas px-6",children:i.jsxs("div",{className:"max-w-lg text-center",children:[i.jsx(mt,{size:20,"aria-hidden":"true",className:"mx-auto mb-3 text-ink-dim"}),i.jsx("h1",{className:"text-balance text-[16px] font-medium text-ink",children:o(n[e].title)}),i.jsxs("div",{className:"mt-2",children:[e!=="off"&&e!=="off_local"&&i.jsx("p",{className:"text-pretty text-[13px] leading-relaxed text-ink-muted",children:o("ui.teamBridge.plan.body")}),i.jsx("p",{className:"mt-4 text-[12px] leading-snug text-ink-dim",children:o(n[e].reason)}),(e==="off"||e==="off_local")&&i.jsx(X,{asChild:!0,variant:"secondary",size:"sm",className:"mt-4",children:i.jsx(Eh,{to:`/settings?setting=${Ih}`,"data-team-bridge-off-action":"settings",children:o("ui.agentMessages.page_off.action")})})]})]})})},qx=({ownerAudit:e,renderThreadPane:n,threadLink:t,onCloseThread:a,listState:r,messageState:s,onRetryMessages:l,conversations:c,target:d,messages:m,olderPaging:h,events:p,highlightMessageId:g=null,organizations:b,scope:k,totalUnread:x,membershipsLoading:v=!1,organizationsFailed:w=!1,selfAccountId:f,sending:j=!1,sendFailed:S=!1,joining:E=!1,joinFailed:_=!1,notifyFailed:C=!1,agentNotifyFailed:B=!1,onJoin:M,onNotifyChange:V,onAgentNotifyChange:O,onAddMembers:q,onRemoveMember:F,memberMutationKey:N=null,initialMembersOpen:G=!1,onMemberSelfAction:K,initialMembersPanelOpen:$=!1,onMenuJoin:R,onMenuLeave:D,onMenuOwnAgent:T,onMenuNotifyChange:z,initialMenuConfirm:Z,partialLeave:L,onRetryPartialLeave:ne,onDismissPartialLeave:J,onOpenMembersFor:ge,onArchive:de,onUnarchive:Q,onDelete:re,unarchiveFailed:ve=!1,archivedState:he="ready",archivedConversations:ue=[],archivedHasMore:ke=!1,archivedLoadingMore:ee=!1,archivedLoadMoreFailed:me=!1,onLoadMoreArchived:Ce,onOpenArchived:je,onRetryArchived:ye,initialQuickView:xe,initialScroll:fe=null,onViewMemory:qe,initialDialog:Wn,threadsCapabilityState:P="unknown",reactionsCapabilityState:ie="unknown",typingCapabilityState:le="unknown",sendMentionsCapabilityState:we="unknown",agentNotifyCapabilityState:Pe="unknown",defaultMenuOpen:ln=!1,initialDraft:Fe="",draftJournal:dn,isDraftCurrent:be=()=>!0,people:Ee=[],directories:Vn,directoryStates:wn,directoryErrors:pt,selfName:Jn,peopleState:Mn="ready",peopleError:An,peopleIncomplete:na=!1,refreshingRows:Qn=!1,refreshingUnread:ft=!1,onRetryPeople:Ya,onRetryMembers:bn,eligibility:zn=null,gatePending:ta=!1,readOnly:Se=!1,notice:tn=null,noOrgPanel:kt,readOnlyExplained:Xa=!1,onTarget:ce,onSend:ji,onSchedule:Te,attachmentCapability:Pn=null,filesCapability:Ut=null,recordingProbe:_i,onNewChannel:Ni,onRetry:cn,onScopeChange:yn,onChooseOrganization:Ht,onRetryMemberships:pn})=>{pe();const wt=Rh(),[$e,xn]=u.useState(xe??null),[Gt,un]=u.useState(Wn??null),[Wt,bt]=u.useState(G),[yt,mn]=u.useState($),[ia,vn]=u.useState(!1),[Yn,Vt]=u.useState(Z??null),[Bi,Si]=u.useState(!1),[Ei,Xn]=u.useState(null),[Ii,Jt]=u.useState(!1),[Ri,Dn]=u.useState(null),xt=nm(c,f),[Za,vt]=u.useState(!1),Qt=u.useRef(!1);Qt.current=tm(Qt.current,xt.length>0||$e==="invitations",Za);const[jn,aa]=u.useState(!1),[Qe,Yt]=u.useState(!1),[Zn,Ci]=u.useState(0),[_n,Xt]=u.useState(!1),[jt,_t]=u.useState(!1),Ln=u.useRef(!1),I=u.useRef(null),te=u.useId(),se=k===Ve&&d?.type==="conversation"?c.find(y=>y.id===d.id)?.tenant_id??k:k,ae=Dx(f,se,d,"",zn==="signed_out",k===Ve),Le=!!ae.current?.sendAt&&!ae.current?.createUncertain&&!Qe,_e=yr(f,se,d?Ze(d):""),et=`${_e}|${d?.type==="compose"?d.recipients.map(on).sort().join(","):""}`,nt=En(y=>y.inputByConversation[_e]),an=nt?.currentInput??"",Nt=(nt?.attachments??[]).map(y=>y.path);u.useEffect(()=>{const y=ae.current?.body||dn?.body||Fe;if(!y.trim())return;const A=En.getState();A.getCurrentInput(_e).trim()||(A.setComposerText(_e,y),ae.current?.body&&ae.update({body:""}),dn&&(dn.body=""))},[_e]),u.useEffect(()=>{_n&&an.trim()&&Xt(!1)},[an,_n]);const Ti=u.useRef(f);u.useEffect(()=>{const y=Ti.current;if(zn==="signed_out"||y&&f!==y){const A=En.getState();im(A,A.clearComposer,y)}Ti.current=zn==="signed_out"?void 0:f},[f,zn]),u.useEffect(()=>{!an.trim()||!d||ae.current||!be()||ae.update({})},[an,d]);const[On,Oe]=u.useState(null),Ue=!!an.trim()||Nt.length>0,tt=En(y=>y.inputByConversation),Bt=(y,A)=>tt[yr(f,y,A)]?.currentInput??"",Hs=(y,A)=>tt[yr(f,y,A)]?.attachments.length??0,Gs=(y,A)=>{const Y=Ze(y.target);return!!Bt(A,Y).trim()||Hs(A,Y)>0||(y.attachments?.length??0)>0||y.target.type==="compose"&&y.target.recipients.length>0},He=y=>{e?.clear(),xn(null),ce(y)},Zt=Wg(P)&&f!==void 0,du=Ob(ie),[Ae,it]=u.useState(Zt?t??null:null);u.useEffect(()=>{Zt&&t&&(mn(!1),it(t))},[t,Zt]);const Ke=k===Ve,Mi=f!==void 0,St=u.useMemo(()=>zd(c,k,b),[c,k,b]),at=u.useMemo(()=>St.filter(y=>y.status!=="archived"),[St]),ei=u.useMemo(()=>b.map(y=>y.tenantId),[b]),Et=u.useMemo(()=>Ch(at,ei),[at,ei]),er=u.useMemo(()=>Pd(St,ue),[St,ue]),Ai=u.useMemo(()=>Ke?[]:ks(Ee,f),[Ke,Ee,f]),nr=u.useMemo(()=>Ke?Uy({organizations:b,directories:Vn,directoryStates:wn,directs:Et.directs,selfAccountId:f}):[],[Ke,b,Vn,wn,Et,f]),ra=Ky(Ke,b.length),tr=gi(),cu=u.useMemo(()=>f&&Jn?.trim()?{accountId:f,name:Jn}:null,[f,Jn]),ni=y=>Ke?Vn?.[y]??[]:Ee,zi=(y,A)=>Na(y,ni(A),tr,cu),ir=(y,A)=>ni(A).find(Y=>Y.account_id===y.account_id),ar=(y,A)=>{const Y=ir(y,A);return!Mi||!Y||Y.account_id===f||!Y.bridge_enabled||!["active","paused"].includes(Y.bridge_state)||y.kind==="agent"&&!Y.agent?null:Hx(y,A,St,f,Se,Ke)},Ws=(y,A)=>{const Y=ar(y,A);Y&&(Y.type!=="conversation"&&Ke&&yn(fn(A)),He(Y))},Vs=(y,A)=>zi(y,A)??(y.kind==="agent"?o("ui.teamBridge.sender.unknown_agent"):o("ui.teamBridge.sender.unknown_person")),Js=Ke?Hy(nr):Cd(Et.directs,Ee,Ai,f),De=Ia(d,er,f),qn=De!==null&&qa(De),rr=De?jr(De,b):null,ti=Ke&&De!==null&&rr===null,ii=d?.type==="person"||d?.type==="chief"?Ee.find(y=>y.account_id===d.accountId)??null:null,sr=d?.type==="chief"?Ai.find(y=>y.person.account_id===d.accountId)??null:null,Nn=De?De.kind==="dm"?(()=>{const y=De.members.find(A=>A.state!=="removed"&&!(A.kind==="human"&&A.account_id===f));return y?Vs(y,De.tenant_id):o("ui.teamBridge.list.untitled")})():ui(De,f)??o("ui.teamBridge.list.untitled"):sr?lt(sr.agentName,nn(sr.person),tr):ii?nn(ii):null,uu=u.useMemo(()=>Dd(Ee,f,gi()),[Ee,f]),ai=d?.type==="compose"?d.recipients:[],U=De,[sa,Qs]=u.useState(null);U&&sa?.id!==U.id&&Qs({id:U.id,seq:U.unread_count>0?U.last_read_seq:void 0}),!U&&sa!==null&&Qs(null);const mu=U&&sa?.id===U.id?sa.seq:void 0,or=Th(U?.builtin),Pi=U?Mh(U):{active:0,invited:0},ri=y=>{Ae&&(it(null),a?.()),mn(!1),e?.clear(),xn(y)},lr=U?`${U.tenant_id}:${U.id}`:null,[hu,gu]=u.useState(lr);hu!==lr&&(gu(lr),yt&&mn(!1));const dr=yt&&U!==null&&!qn&&!ti,cr=!!(Zt&&Ae&&U&&Ae.conversationId===U.id&&Ae.tenantId===U.tenant_id&&!qn&&!ti),oa=Bg(le)&&!!f&&U!==null&&!qn&&!ti,pu=oa&&!Se&&U&&f?{conversationId:U.id,tenantId:U.tenant_id,accountId:f}:null,Ys=u.useRef(zi);Ys.current=zi;const fu=u.useCallback(y=>{if(!U)return null;const A=U.members.find(Y=>Y.account_id===y);return Ys.current({account_id:y,kind:"human",display_label:A?.display_label??""},U.tenant_id)},[U]);am(U?.id);const ku=y=>{U&&(mn(!1),it({tenantId:U.tenant_id,conversationId:U.id,rootId:y.id}))},rt=!Se&&!qn&&U?.status!=="archived"&&!ti&&(U!==null||d?.type==="compose"&&ai.length>0||(d?.type==="person"||d?.type==="chief")&&ii!==null),wu=d?.type==="compose"&&ai.length>0?o("ui.teamBridge.composer.placeholder_to",{name:ai.map(y=>y.label).join(", ")}):Nn&&d?.type!=="compose"?o("ui.teamBridge.composer.placeholder_to",{name:Nn}):o("ui.teamBridge.composer.placeholder"),ur=`${te}-gate`,Xs=du&&f&&De?{accountId:f,tenantId:De.tenant_id,disabled:!rt||De.status!=="open"}:void 0,mr=(y,A)=>{const Y={ids:[],stageHeld:async(oe,Ne)=>{const Me=await gx({paths:y,accountId:f??"",tenantId:Ne??(se===Ve?"":se),conversationId:oe,capability:Pn});if(Me.failures.length>0&&Oe({kind:"upload",failure:Me.failures[0]}),Me.ids.length!==y.length)throw new Error("attachment staging refused");if(A?.count&&(Y.files=await A.stageInto(oe,Ne)),Me.ids.length+(Y.files?.length??0)>10)throw new Error("Too many attachments");return Me.ids}};return Y},Di=Aa(U?.tenant_id,U?.id);u.useLayoutEffect(()=>{s==="ready"&&U&&m.length===0&&Af(Di)},[s,U,m.length,Di]),u.useLayoutEffect(()=>()=>pc(Di),[Di]);const la=Tt(y=>y.entries),Zs=et,eo=d?.type==="conversation"?d.id:void 0,no=u.useMemo(()=>$1(la,{owner:f,lane:Zs,conversationId:U?.id??eo}),[la,f,Zs,U?.id,eo]),hr=u.useMemo(()=>{if(!f)return null;const y=Ee.find(Y=>Y.account_id===f),A=y?nn(y):(Jn?.trim()??"")||f;return{account_id:f,kind:"human",display_label:A}},[f,Jn,Ee]),Bn=u.useMemo(()=>K1(m,no,hr,U?.id),[m,no,hr,U?.id]),to=u.useRef(new Set),bu=d?.type==="conversation"&&to.current.has(d.id)&&U===null,yu=u.useMemo(()=>m.reduce((y,A)=>Math.max(y,A.seq),-1),[m]),io=`${U?.tenant_id??""}:${U?.id??""}:${s}:${$e??""}`,Ye=Ja({resetKey:io,contentKey:`${Bn.messages.length}:${Bn.messages.at(-1)?.id??""}`});u.useLayoutEffect(()=>{if(!g)return;const y=Array.from(Ye.rootRef.current?.querySelectorAll("[data-message-id]")??[]).find(A=>A.dataset.messageId===g);y&&(Ye.hold(),y.scrollIntoView?.({block:"center"}))},[g,Ye.hold,Ye.rootRef]);const ao=u.useRef(!1),ro=u.useRef(fe);u.useLayoutEffect(()=>{const y=ro.current;if(ao.current||!y||g||s!=="ready"||Bn.messages.length===0)return;ao.current=!0;const A=Ye.rootRef.current?.querySelector("[data-radix-scroll-area-viewport]"),Y=Array.from(A?.querySelectorAll("[data-message-id]")??[]).find(oe=>oe.dataset.messageId===y.messageId);!A||!Y||(Ye.hold(),A.scrollTop+=Y.getBoundingClientRect().top-A.getBoundingClientRect().top-y.offset)},[g,s,Bn.messages.length,Ye.hold,Ye.rootRef]);const gr=u.useRef(ro.current),pr=u.useRef(()=>{});pr.current=()=>{!qe||d===null||qe({target:d,thread:Ae??t??null,quickView:$e,scroll:gr.current?{...gr.current,targetKey:Ze(d)}:null})},u.useEffect(()=>{pr.current()},[d,Ae,t,$e]),u.useEffect(()=>{const y=Ye.rootRef.current?.querySelector("[data-radix-scroll-area-viewport]");if(!y)return;let A;const Y=()=>{A=void 0,pr.current()},oe=()=>{const Ne=y.getBoundingClientRect(),Ie=y.scrollHeight-y.scrollTop-y.clientHeight<=48?void 0:Array.from(y.querySelectorAll("[data-message-id]")).find(Be=>Be.getBoundingClientRect().bottom>Ne.top);gr.current=Ie?.dataset.messageId?{messageId:Ie.dataset.messageId,offset:Ie.getBoundingClientRect().top-Ne.top}:null,A!==void 0&&clearTimeout(A),A=setTimeout(Y,250)};return y.addEventListener("scroll",oe,{passive:!0}),()=>{y.removeEventListener("scroll",oe),A!==void 0&&(clearTimeout(A),Y())}},[io,Ye.rootRef]);const fr=u.useRef(!1),so=(y,A,Y)=>{const oe=sn.get(_e);oe!==void 0&&(oe.clientRef===A||oe.clientRef===y.clientRef)&&(Y&&sn.delete(_e),Y&&be()&&ae.current?.clientRef===A&&ae.update({clientRef:crypto.randomUUID()}))},oo=y=>{const A=y.conversationId?Vl(y.conversationId):y.lane;return U1(A,async Y=>{const oe=y.conversationId?{conversationId:y.conversationId,tenantId:y.tenantId}:Y.resolved,Ne=Re=>Tt.getState().patch(y.localId,Re),Me=Re=>ji(y.body,Re,void 0,{into:oe,mentions:y.mentions,onCreated:(ze,Xe)=>{H1(A,Vl(ze),{conversationId:ze,tenantId:Xe}),to.current.add(ze),Ne({conversationId:ze,tenantId:Xe})}});let Ie=y.clientRef,Be;try{try{Be=await Me(Ie)}catch(ze){if(!nl(ze)||y.autoRetried)throw ze;Ie=crypto.randomUUID(),Ne({clientRef:Ie,autoRetried:!0});const Xe=sn.get(_e);Xe&&Xe.clientRef===y.clientRef&&sn.set(_e,{...Xe,clientRef:Ie}),Be=await Me(Ie)}const Re=G1(Be);Ne({status:"sent",serverId:Re?.id,serverRow:Re,...Re?.conversation_id?{conversationId:Re.conversation_id}:{}}),so(y,Ie,!0)}catch(Re){Ne({status:"failed"}),so(y,Ie,!1),ka(Re)&&Oe({kind:"expired"})}})},xu=async(y,A,Y)=>{const oe=y.trim();if(!oe&&A.length===0&&!Y?.count||!be()||j||Qe||Ln.current||ae.current?.createUncertain||ae.current?.sendAt||!rt||!d)return!1;if(A.length>0&&!Pn)return Oe({kind:"capability"}),!1;Oe(null);const Ne=sn.get(_e),Me=Ne?.localId?la.find(ze=>ze.localId===Ne.localId):void 0,Be=!!(Ne&&Ne.body===oe&&(!Ne.localId||Me===void 0||Me.status==="failed"))?Ne.clientRef:crypto.randomUUID();if(Ne?.body!==oe&&(fr.current=!1),!ae.update({clientRef:Be}))return!1;if(A.length===0&&!Y?.count&&hr&&d){const ze=la.find(Ge=>Ge.status==="failed"&&Ge.clientRef===Be&&Ge.owner===(f??"")),Xe=De?us(De.id,oe):void 0,Fn=ze?{...ze,body:oe,status:"pending"}:{localId:crypto.randomUUID(),clientRef:Be,body:oe,createdAt:new Date().toISOString(),order:F1(),owner:f??"",lane:et,conversationId:De?.id,tenantId:De?.tenant_id??(se===Ve?void 0:se),baselineSeq:yu,status:"pending",mentions:Xe};return ze?Tt.getState().patch(Fn.localId,{status:"pending"}):Tt.getState().add(Fn),sn.set(_e,{body:oe,clientRef:Be,localId:Fn.localId}),Ye.pin(),oo(Fn),!0}const Re={body:oe,clientRef:Be};sn.set(_e,Re),Ln.current=!0,Ye.pin();try{await ji(oe,Be,mr(A,Y));const ze=sn.get(_e)===Re;return ze&&sn.delete(_e),ze&&be()&&ae.update({clientRef:crypto.randomUUID()}),!0}catch(ze){if(nl(ze)&&!fr.current){fr.current=!0;const Xe=crypto.randomUUID(),Fn={body:oe,clientRef:Xe};if(sn.set(_e,Fn),ae.update({clientRef:Xe}))try{await ji(oe,Xe,mr(A,Y));const Ge=sn.get(_e)===Fn;return Ge&&sn.delete(_e),Ge&&be()&&ae.update({clientRef:crypto.randomUUID()}),!0}catch(Ge){return ka(Ge)&&Oe({kind:"expired"}),!1}}return ka(ze)&&Oe({kind:"expired"}),!1}finally{Ln.current=!1}},lo=async y=>{if(Zn>0)return;if(!d||!Te||Ln.current||ae.current?.createUncertain||!Ue||!rt||j||Qe)throw new Error("schedule unavailable");if(ae.current?.sendAt&&ae.current.sendAt!==y)throw new Error("retry requires original time");const A=an.trim(),Y=ae.current?.sendAt?ae.current.clientRef:crypto.randomUUID(),oe=Ze(d),Ne=d.type==="compose"&&d.recipients.length>1&&!U&&!ae.current?.conversationId;if(!ae.update({clientRef:Y,sendAt:y,...Ne?{createUncertain:!0}:{}}))throw new Error("draft persistence unavailable");Ln.current=!0,Yt(!0),Xt(!1),_t(!1);const Me=Nt,Ie=mr(Me);try{await Te(A,Y,y,ae.current?.conversationId,Ge=>{if(!ae.update({conversationId:Ge,clientRef:Y,sendAt:y,createUncertain:!1}))throw new Error("draft persistence unavailable")},Ie),dn&&dn.body.trim()===A&&(dn.body="");const Be=En.getState(),Re=Be.inputByConversation[_e],ze=(Re?.attachments??[]).map(Ge=>Ge.path),Xe=Be.getCurrentInput(_e).trim()===A,Fn=ze.length===Me.length&&ze.every((Ge,Nu)=>Ge===Me[Nu]);if(Xe&&Fn)Be.clearComposer(_e);else{for(const Ge of Re?.attachments??[])Me.includes(Ge.path)&&Be.removeAttachment(_e,Ge.id);Xe&&Be.setComposerText(_e,"")}ae.clearSent(oe,A,Y),Xt(!0)}catch(Be){_t(!0);const Re=Be?.status;throw Q1(ae.current?.sendAt,Re)&&ae.update({createUncertain:!1,sendAt:void 0}),Be}finally{Ln.current=!1,Yt(!1)}},co=V1(f?JSON.stringify([f,k]):null,d?Ze(d):null),kr=i.jsx(om,{});if(ta)return i.jsxs(i.Fragment,{children:[kr,i.jsx(Ox,{})]});if(ep(zn)&&kt)return i.jsxs(i.Fragment,{children:[kr,kt]});if(zn)return i.jsxs(i.Fragment,{children:[kr,i.jsx(lu,{reason:zn})]});const uo=y=>d?.type==="conversation"&&d.id===y.id,da=y=>He({type:"compose",recipients:[y]}),hn=Ke||Se,mo=Se?o("ui.teamBridge.read_only.note"):o("ui.teamBridge.scope.create_needs_org"),ho=v?i.jsx(st,{label:o("ui.teamBridge.scope.loading")}):w?i.jsxs("div",{className:"flex flex-col items-start gap-2 px-2 py-1",children:[i.jsx("p",{className:"text-[12px] leading-snug text-ink-muted",children:o("ui.teamBridge.scope.error")}),pn&&i.jsx(X,{type:"button",size:"sm",variant:"outline",onClick:pn,children:o("ui.teamBridge.list.retry")})]}):null,vu=v?i.jsx(st,{label:o("ui.teamBridge.scope.loading")}):w?i.jsx(ga,{children:o("ui.teamBridge.scope.error")}):null,go=ho||b.length>0?void 0:{text:o("ui.teamBridge.scope.empty")},ju=y=>{if(y.type==="compose")return y.recipients.map(Y=>Y.label).join(", ")||o("ui.teamBridge.compose.label");if(y.type==="conversation"){const Y=c.find(oe=>oe.id===y.id);return(Y?ui(Y,f):null)??o("ui.teamBridge.list.untitled")}const A=Ee.find(Y=>Y.account_id===y.accountId)?.display_label??o("ui.teamBridge.list.untitled");return y.type==="chief"?lt(Ai.find(Y=>Y.person.account_id===y.accountId)?.agentName??"",A,gi()):A},po=y=>f?ni(y).find(A=>A.account_id===f):void 0,fo=y=>{const A=uo(y),Y=z??(A&&V?(Ie,Be)=>V(Be):void 0),oe=A&&Pe==="enabled"?Dh(y,f):void 0,Ne=Se?[]:gk({conversation:y,selfAccountId:f,selfPerson:po(y.tenant_id),readOnly:Se,agentNotifyEnabled:oe!==void 0,archivable:Ro(y),wiring:{viewMembers:!0,addMembers:!!q,join:!!(R??(A&&M)),notify:!!Y,agentNotify:!!O&&A,ownAgent:!!T,leave:!!D,archive:!!de}}),Me={onNotifyChange:Y?Ie=>Y(y,Ie):void 0,onAgentNotifyChange:O,onViewMembers:()=>{if(!A){ge?.(y,"panel");return}Ae&&(it(null),a?.()),mn(!0)},onAddMembers:()=>{if(!A){ge?.(y,"add");return}vn(!1),bt(!0)},onJoin:()=>{R?R(y):M?.()},onOwnAgent:Ie=>{Xn(null),Vt({conversationId:y.id,subject:{kind:Ie.id,agentName:Ie.agentName,action:Ie.action},item:Ie})},onLeave:()=>{Xn(null),Vt({conversationId:y.id,subject:{kind:"leave",conversationKind:y.kind==="group"?"group":"channel",agentStays:y.builtin==="agents"}})},onArchive:()=>un({kind:"archive",conversationId:y.id})};return{sections:Ne,conversation:y,agentNotify:oe?.notify??null,handlers:Me}},wr=y=>i.jsx("ul",{className:"flex flex-col",children:y.map(A=>i.jsx(g1,{hasDraft:ae.entries.some(({entry:Y,tenantId:oe})=>oe===A.tenant_id&&(!!Bt(oe,Ze(Y.target)).trim()||Hs(oe,Ze(Y.target))>0||(Y.attachments?.length??0)>0)&&Ia(Y.target,[A],f)?.id===A.id),conversation:A,selected:uo(A),selfAccountId:f,title:A.kind==="dm"?(()=>{const Y=A.members.find(oe=>oe.state!=="removed"&&!(oe.kind==="human"&&oe.account_id===f));return Y?Vs(Y,A.tenant_id):void 0})():void 0,organizationName:Ke?jr(A,b)??o("ui.teamBridge.scope.unknown"):void 0,onSelect:()=>He({type:"conversation",id:A.id}),menu:fo(A)},A.id))}),ko={"aria-busy":Qn||ft||void 0,onPointerEnter:()=>vt(!0),onPointerLeave:()=>vt(!1)},wo=i.jsxs(i.Fragment,{children:[i.jsx("h1",{className:"sr-only",children:o("ui.teamBridge.page.title")}),i.jsxs("header",{className:H("flex h-12 shrink-0 items-center gap-1",ja),children:[i.jsx(Gy,{organizations:b,scope:k,onScopeChange:Ht??yn,totalUnread:x,membershipsLoading:v,organizationsFailed:w,unreadRefreshing:ft,onRetry:pn}),i.jsx("span",{"data-rail-refreshing":ft?"unread":Qn?"rows":void 0,"aria-hidden":"true",className:H("size-1.5 shrink-0 rounded-full",ft||Qn?"bg-ink-dim":"bg-transparent")}),i.jsx(X,{size:"icon",variant:"ghost","aria-label":o("ui.teamBridge.compose.new"),"aria-disabled":hn||void 0,title:hn?mo:void 0,className:hn?"text-ink-disabled hover:bg-transparent":void 0,onClick:()=>{hn||He(ae.drafts.compose?.target??{type:"compose",recipients:[]})},children:i.jsx(va,{size:16})})]}),i.jsxs("nav",{"aria-label":o("ui.teamBridge.drafts.navigation"),className:H("flex flex-col pb-1",ja),children:[i.jsxs("button",{type:"button","aria-current":$e==="drafts"?"page":void 0,onClick:()=>ri("drafts"),className:"flex h-8 items-center gap-2 rounded-md px-2 text-[14px] text-ink-muted hover:bg-row-hover hover:text-ink",children:[i.jsx($a,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.drafts.title")]}),i.jsxs("button",{type:"button",disabled:!f,"aria-current":$e==="scheduled"?"page":void 0,onClick:()=>ri("scheduled"),className:"flex h-8 items-center gap-2 rounded-md px-2 text-[14px] text-ink-muted hover:bg-row-hover hover:text-ink disabled:text-ink-disabled",children:[i.jsx(wi,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.schedule.list")]}),Qt.current&&i.jsxs("button",{type:"button","aria-current":$e==="invitations"?"page":void 0,onClick:()=>ri("invitations"),className:"flex h-8 items-center gap-2 rounded-md px-2 text-[14px] text-ink-muted hover:bg-row-hover hover:text-ink",children:[i.jsx(Fg,{size:16,"aria-hidden":"true"}),i.jsx("span",{className:"min-w-0 flex-1 truncate text-start",children:o("ui.teamBridge.invitations.title")}),xt.length>0&&i.jsx(Wi,{count:xt.length,className:"shrink-0","aria-label":o("ui.teamBridge.invitations.count",{count:xt.length})})]}),je&&($e==="archived"||Io(ue).length>0||at.some(Ro))&&i.jsxs("button",{type:"button","aria-current":$e==="archived"?"page":void 0,onClick:()=>{je(),ri("archived")},className:H("flex h-8 items-center gap-2 rounded-md px-2 text-[14px]",$e==="archived"?La:"text-ink-muted hover:bg-row-hover hover:text-ink"),children:[i.jsx(Ba,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.archive.section.archived")]})]}),i.jsxs(Ca,{ref:co.ref,"data-team-bridge-rail-scroll":"",onClickCapture:co.onClickCapture,className:"min-h-0 flex-1 [&_[data-radix-scroll-area-viewport]>div]:block!",children:[r==="error"&&(at.length>0?i.jsxs("div",{className:"space-y-1 px-4 py-3 text-[12px] text-ink-muted",children:[i.jsx("p",{children:o("ui.teamBridge.list.error_stale")}),cn&&i.jsx("button",{type:"button",className:"underline",onClick:cn,children:o("ui.teamBridge.list.retry")})]}):(d!==null||$e!==null||e?.active)&&i.jsxs("div",{className:"flex flex-col items-start gap-1 px-4 py-3",children:[i.jsx("p",{className:"text-meta text-ink-dim",children:o("ui.teamBridge.list.error")}),cn&&i.jsx("button",{type:"button",className:"min-h-6 rounded-sm font-medium text-meta text-accent hover:underline",onClick:cn,children:o("ui.teamBridge.list.retry")})]})),i.jsx(Ct,{id:"team-bridge-channels-heading",title:o("ui.teamBridge.section.channels"),menu:je?{label:o("ui.teamBridge.archive.section.menu"),items:[{key:"archived",label:o("ui.teamBridge.archive.section.archived"),icon:i.jsx(Ba,{size:14,"aria-hidden":"true"}),onSelect:()=>{je(),ri("archived")}}]}:void 0,add:hn?void 0:{label:o("ui.teamBridge.section.channels_add"),onAdd:Ni},empty:r==="ready"&&Et.channels.length===0?{text:hn?o("ui.teamBridge.section.channels_none"):o("ui.teamBridge.section.channels_empty"),onCreate:hn?void 0:Ni}:void 0,children:r==="loading"?i.jsx(st,{label:o("ui.teamBridge.list.loading")}):wr(Et.channels)}),i.jsx(Ct,{id:"team-bridge-groups-heading",title:o("ui.teamBridge.section.groups"),add:hn?void 0:{label:o("ui.teamBridge.section.groups_add"),onAdd:()=>He(ae.drafts.compose?.target??{type:"compose",recipients:[]})},empty:r==="ready"&&Et.groups.length===0?{text:hn?o("ui.teamBridge.section.groups_none"):o("ui.teamBridge.section.groups_empty"),onCreate:hn?void 0:()=>He(ae.drafts.compose?.target??{type:"compose",recipients:[]})}:void 0,children:r==="loading"?i.jsx(st,{label:o("ui.teamBridge.list.loading")}):wr(Et.groups)}),Js.length>0&&i.jsx(Ct,{id:"team-bridge-directs-heading",title:o("ui.teamBridge.section.directs"),children:wr(Js)}),Ke?i.jsxs(i.Fragment,{children:[i.jsx(Ct,{id:"team-bridge-people-heading",title:o("ui.teamBridge.people.title"),empty:go,children:ho??nr.map((y,A)=>{const Y=Ll("people",y.tenantId);return i.jsxs(u.Fragment,{children:[ra&&i.jsx(ls,{id:Y,name:y.name,first:A===0}),y.state==="loading"?i.jsx(st,{label:o("ui.teamBridge.people.loading")}):y.state==="error"?i.jsx(sd,{error:pt?.[y.tenantId],onRetry:()=>bn?.(y.tenantId)}):y.members.length===0?i.jsx(ga,{children:o("ui.teamBridge.people.empty")}):i.jsx("ul",{className:"flex flex-col","aria-labelledby":ra?Y:void 0,children:y.members.map(oe=>i.jsx(ql,{hasDraft:!!Bt(y.tenantId,`person:${oe.account_id}`).trim(),member:oe,selfAccountId:f,identityKnown:Mi,selected:!1,dm:Co(y.directs,oe.account_id,f),readOnly:Se,onSelect:()=>{yn(fn(y.tenantId)),He({type:"person",accountId:oe.account_id})},onStartGroup:Ne=>{yn(fn(y.tenantId)),da(Ne)}},Dl(y.tenantId,oe.account_id)))})]},y.tenantId)})}),i.jsx(Ct,{id:"team-bridge-chiefs-heading",title:o("ui.teamBridge.section.chiefs"),empty:go,children:vu??nr.map((y,A)=>{const Y=Ll("chiefs",y.tenantId);return i.jsxs(u.Fragment,{children:[ra&&i.jsx(ls,{id:Y,name:y.name,first:A===0}),y.state==="loading"?i.jsx(st,{label:o("ui.teamBridge.people.loading")}):y.state==="error"?i.jsx(ga,{children:o("ui.teamBridge.people.error")}):y.chiefs.length===0?i.jsx(ga,{children:o("ui.teamBridge.section.chiefs_empty")}):i.jsx("ul",{className:"flex flex-col","aria-labelledby":ra?Y:void 0,children:y.chiefs.map(oe=>i.jsx(Fl,{hasDraft:!!Bt(y.tenantId,`chief:${oe.person.account_id}`).trim(),chief:oe,label:lt(oe.agentName,nn(oe.person),tr),selected:!1,dm:To(y.directs,oe.person.account_id,f),readOnly:Se,onSelect:()=>{yn(fn(y.tenantId)),He({type:"chief",accountId:oe.person.account_id})},onStartGroup:Ne=>{yn(fn(y.tenantId)),da(Ne)}},Dl(y.tenantId,oe.person.account_id)))})]},y.tenantId)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Ct,{id:"team-bridge-people-heading",title:o("ui.teamBridge.people.title"),empty:Mn==="ready"&&Ee.length===0?{text:na?o("ui.teamBridge.people.error"):o("ui.teamBridge.people.empty")}:void 0,children:Mn==="loading"?i.jsx(st,{label:o("ui.teamBridge.people.loading")}):Mn==="error"?i.jsx(sd,{error:An,onRetry:Ya}):i.jsx("ul",{className:"flex flex-col",children:Ee.map(y=>i.jsx(ql,{hasDraft:!!Bt(se,`person:${y.account_id}`).trim(),member:y,selfAccountId:f,identityKnown:Mi,selected:$l(d,"person",y.account_id),dm:Co(St,y.account_id,f),readOnly:Se,onSelect:()=>He({type:"person",accountId:y.account_id}),onStartGroup:da},y.account_id))})}),i.jsx(Ct,{id:"team-bridge-chiefs-heading",title:o("ui.teamBridge.section.chiefs"),empty:Mn==="ready"&&Ai.length===0?{text:o("ui.teamBridge.section.chiefs_empty")}:void 0,children:Mn==="loading"?i.jsx(st,{label:o("ui.teamBridge.people.loading")}):Mn==="error"?null:i.jsx("ul",{className:"flex flex-col",children:Ai.map(y=>i.jsx(Fl,{hasDraft:!!Bt(se,`chief:${y.person.account_id}`).trim(),chief:y,label:lt(y.agentName,nn(y.person),gi()),selected:$l(d,"chief",y.person.account_id),dm:To(St,y.person.account_id,f),readOnly:Se,onSelect:()=>He({type:"chief",accountId:y.person.account_id}),onStartGroup:da},y.person.account_id))})})]}),e?.rail(()=>{xn(null),it(null),a?.()})]})]}),_u=i.jsxs("div",{"data-glass-split":"","data-glass-region":"canvas",className:"panel-flush @container/bridge relative flex min-h-0 flex-1 w-full overflow-hidden bg-canvas",children:[i.jsx(rm,{inline:i.jsx("aside",{"data-glass-region":"page-sidebar",className:"panel-top-pad flex w-72 shrink-0 flex-col bg-surface",...ko,children:wo}),children:i.jsx("aside",{"data-team-bridge-rail":"hosted",className:"flex min-h-0 flex-1 flex-col",...ko,children:wo})}),i.jsxs("section",{"data-glass-region":"canvas-content",className:H("panel-top-pad flex min-w-0 flex-1 flex-col bg-canvas",(cr||dr)&&"@max-[1024px]/bridge:invisible"),children:[tn,L&&i.jsxs("div",{role:"alert","data-partial-leave":"",className:"mx-5 mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 rounded-md bg-danger-wash px-3 py-2 text-[13px] text-ink",children:[i.jsx("span",{className:"min-w-0 flex-1",children:L.retryFailed?o("ui.teamBridge.conversation_menu.partial_leave.retry_failed",{conversation:L.name}):o("ui.teamBridge.conversation_menu.partial_leave.body",{conversation:L.name})}),i.jsx(X,{type:"button",size:"sm",variant:"ghost",disabled:L.retrying,onClick:ne,children:o("ui.teamBridge.conversation_menu.partial_leave.retry")}),i.jsx(X,{type:"button",size:"sm",variant:"ghost",disabled:L.retrying,onClick:J,children:o("ui.common.actions.dismiss")})]}),e?.active?e.panel:$e==="invitations"?i.jsx(Pk,{invitations:xt,listState:r,onRetry:cn,readOnly:Se,organizationNames:Ke?Object.fromEntries(b.map(y=>[y.tenantId,y.name])):void 0}):$e==="scheduled"&&f?i.jsx(sx,{accountId:f,organizationNames:Object.fromEntries(b.map(y=>[y.tenantId,y.name])),conversationNames:Object.fromEntries(c.flatMap(y=>{const A=ui(y,f);return A?[[y.id,A]]:[]})),tenantIds:Ke?b.map(y=>y.tenantId):[k],readOnly:Se}):$e==="archived"?i.jsx(Tf,{state:he,conversations:Io(ue),hasMore:ke,loadingMore:ee,loadMoreFailed:me,onLoadMore:Ce,organizationName:Ke?y=>jr(y,b):void 0,onRetry:ye,onOpen:y=>{xn(null),He({type:"conversation",id:y.id})}}):$e==="drafts"?i.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-5","aria-label":o("ui.teamBridge.drafts.title"),children:[i.jsx("h2",{className:"text-lg font-medium text-ink",children:o("ui.teamBridge.drafts.title")}),ae.entries.filter(({entry:y,tenantId:A})=>Gs(y,A)).length===0&&i.jsx("p",{className:"text-ink-muted",children:o("ui.teamBridge.drafts.empty")}),ae.entries.filter(({entry:y,tenantId:A})=>Gs(y,A)).map(({key:y,tenantId:A,entry:Y})=>i.jsxs("button",{type:"button",onClick:()=>{A!==k&&yn(fn(A)),He(Y.target)},className:"rounded-md bg-surface p-3 text-left text-ink hover:bg-row-hover",children:[i.jsx("span",{className:"block text-sm font-medium",children:ju(Y.target)}),i.jsx("span",{className:"block truncate text-sm text-ink-muted",children:Bt(A,Ze(Y.target))||Y.body})]},y))]}):d===null?r==="loading"?i.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:i.jsx(Pl,{label:o("ui.teamBridge.list.loading")})}):i.jsx("div",{className:"flex flex-1 items-center justify-center px-6",children:r==="error"?i.jsxs("div",{role:"alert",className:"flex max-w-sm flex-col items-center text-center",children:[i.jsx(Pg,{size:40,"aria-hidden":"true",className:"text-ink-dim"}),i.jsx("p",{className:"mt-3 font-semibold text-[15px] text-ink",children:o("ui.teamBridge.list.error")}),cn&&i.jsx("button",{type:"button",onClick:cn,className:"mt-2 min-h-6 rounded-sm px-1.5 font-medium text-[13px] text-accent hover:underline",children:o("ui.teamBridge.list.retry")})]}):i.jsxs("div",{className:"flex max-w-sm flex-col items-center text-center",children:[i.jsx(Ah,{size:40,"aria-hidden":"true",className:"text-ink-dim"}),i.jsx("p",{className:"mt-3 font-semibold text-[15px] text-ink",children:o("ui.teamBridge.list.empty.title")}),i.jsx("p",{className:"mt-1 text-[13px] text-ink-muted",children:hn?mo:o("ui.teamBridge.list.empty.body")}),!hn&&i.jsxs(X,{size:"md",variant:"primary",className:"mt-4",onClick:()=>He(ae.drafts.compose?.target??{type:"compose",recipients:[]}),children:[i.jsx(va,{size:16,"aria-hidden":"true"}),o("ui.teamBridge.compose.new")]})]})}):i.jsxs(i.Fragment,{children:[d.type==="compose"?i.jsx(yc,{recipients:ai,candidates:uu,profileFor:y=>Ee.find(A=>A.account_id===y.accountId),onChange:y=>He({type:"compose",recipients:y})}):i.jsxs("header",{className:"flex h-12 shrink-0 items-center gap-2 px-5",children:[U?.kind==="channel"?i.jsx(Da,{size:16,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}):U?.kind==="group"?i.jsx(mt,{size:16,"aria-hidden":"true",className:"shrink-0 text-ink-dim"}):d.type==="chief"?i.jsx(Ot,{size:16,"aria-hidden":"true",className:"shrink-0 text-accent"}):null,i.jsx("h2",{className:"min-w-0 truncate font-semibold text-[15px] text-ink",children:Nn??o("ui.teamBridge.list.untitled")}),Ke&&rr&&i.jsx("span",{className:"shrink-0 rounded-sm bg-elevated px-1.5 py-0.5 text-meta-sm text-ink-dim",children:rr}),U&&U.kind!=="dm"&&i.jsxs(i.Fragment,{children:[i.jsx("span",{"aria-hidden":"true",className:"h-4 w-px shrink-0 bg-hairline"}),i.jsxs("button",{type:"button",disabled:qn,"aria-expanded":dr,"aria-label":Pi.invited>0?o("ui.teamBridge.members_panel.open_label_invited",{active:Pi.active,invited:Pi.invited}):o("ui.teamBridge.members_panel.open_label",{count:Mo(U)}),onClick:()=>{if(yt){mn(!1);return}Ae&&(it(null),a?.()),mn(!0)},className:H("shrink-0 rounded-sm px-1 py-0.5 text-start text-[13px] text-ink-muted transition-colors duration-fast","enabled:hover:bg-surface enabled:hover:text-ink disabled:cursor-default"),children:[i.jsx(mt,{size:13,"aria-hidden":"true",className:"me-1 inline-block align-[-2px]"}),Pi.invited>0?o("ui.teamBridge.member.active_count",{count:Pi.active}):o("ui.teamBridge.member.count",{count:Mo(U)})]}),(U.topic?.trim()||or)&&i.jsxs(i.Fragment,{children:[i.jsx("span",{"aria-hidden":"true",className:"h-4 w-px shrink-0 bg-hairline"}),i.jsx("span",{className:"min-w-0 truncate text-[13px] text-ink-muted",children:U.topic?.trim()?U.topic.trim():or?o(or):null})]})]}),U&&!qn&&!Se&&q&&Kn(U,f)&&i.jsxs(X,{type:"button",size:"sm",variant:"ghost",className:"shrink-0",onClick:()=>{vn(!1),bt(!0)},children:[i.jsx(pi,{size:14,"aria-hidden":"true"}),o("ui.teamBridge.members.menu")]}),i.jsx("div",{className:"ms-auto flex items-center gap-1",children:U&&!Se&&(()=>{const y=fo(U);return i.jsx(ok,{sections:y.sections,conversation:U,agentNotify:y.agentNotify,handlers:y.handlers,defaultOpen:ln})})()})]}),C&&i.jsx("p",{role:"alert",className:"px-5 pb-1 text-[12px] text-danger",children:o("ui.teamBridge.notify.error")}),B&&i.jsx("p",{role:"alert",className:"px-5 pb-1 text-[12px] text-danger",children:o("ui.teamBridge.agentNotify.error")}),U?.status==="archived"&&i.jsx(Cf,{conversation:U,canManage:!Se&&!!(Q&&re)&&zh(U),error:ve,onUnarchive:()=>Q?.(U),onDelete:()=>{Dn(null),un({kind:"delete",conversationId:U.id})}}),i.jsx(Ca,{ref:Ye.rootRef,className:"min-h-0 flex-1 [&_[data-radix-scroll-area-viewport]>div]:block! [&_[data-radix-scroll-area-viewport]>div]:h-full [&_[data-radix-scroll-area-viewport]]:[overflow-anchor:none]",children:i.jsx("div",{className:"flex min-h-full flex-col",children:qn?i.jsx(Fx,{joining:E,joinFailed:_,readOnly:Se,onJoin:M}):ti?i.jsx("p",{className:"px-5 py-8 text-[13px] text-ink-muted",children:o("ui.teamBridge.scope.thread_unknown")}):d?.type==="conversation"&&U===null&&r==="ready"&&!bu?i.jsx("p",{className:"px-5 py-8 text-[13px] text-ink-muted",children:o("ui.teamBridge.thread.not_available")}):U===null&&Bn.messages.length===0?i.jsx("div",{className:"mt-auto flex flex-col gap-2 px-5 pb-5",children:d.type==="compose"?i.jsx("p",{className:"text-[13px] text-ink-muted",children:ai.length===0?o("ui.teamBridge.compose.empty"):o("ui.teamBridge.thread.intro_group",{names:ai.map(y=>y.label).join(", ")})}):i.jsxs(i.Fragment,{children:[ii?i.jsx(ct,{member:ii,label:Nn??"",kind:d.type==="chief"?"agent":"human",onMessage:()=>{},canMessage:!1,children:i.jsx("button",{type:"button","data-draft-avatar":"",className:"self-start rounded-full",children:i.jsx(kn,{member:ii,kind:d.type==="chief"?"agent":"human",label:Nn??"",size:56,className:"text-[22px]"})})}):i.jsx("span",{"aria-hidden":"true",className:H("flex size-14 items-center justify-center overflow-hidden rounded-full font-semibold text-[22px]","bg-accent-alt-wash",d.type==="chief"?"text-accent":"text-accent-alt"),children:d.type==="chief"?i.jsx(Ot,{size:26}):(Nn??"").trim().charAt(0).toUpperCase()||"?"}),i.jsx("p",{"data-draft-name":"",className:"font-semibold text-[17px] text-ink",children:Nn}),i.jsx("p",{className:"text-[13px] text-ink-muted",children:d.type==="chief"?o("ui.teamBridge.thread.intro_chief",{name:Nn??""}):o("ui.teamBridge.thread.intro_person",{name:Nn??""})})]})}):s==="loading"&&Bn.localCount===0?i.jsx(Pl,{label:o("ui.teamBridge.thread.loading")}):s==="error"?i.jsxs("div",{role:"alert",className:"px-5 py-8 text-[13px]",children:[i.jsx("p",{className:"text-ink-muted",children:o("ui.teamBridge.thread.error")}),l&&i.jsx("button",{type:"button",onClick:l,className:"-ml-1.5 mt-2 min-h-6 rounded-sm px-1.5 font-medium text-[13px] text-accent hover:underline",children:o("ui.teamBridge.list.retry")})]}):s==="forbidden"?i.jsx("p",{className:"px-5 py-8 text-[13px] text-ink-muted",children:o("ui.teamBridge.archive.thread.forbidden")}):Bn.messages.length===0?i.jsx("p",{className:"mt-auto px-5 pb-4 text-[13px] text-ink-muted",children:U?.status==="archived"?o("ui.teamBridge.archive.thread.empty"):o("ui.teamBridge.thread.empty")}):i.jsx(za,{messages:Bn.messages,unreadAfterSeq:mu,events:p,presentationOf:y=>{const A=Bn.localOf(y),Y=A!==void 0&&(A.status!=="sent"||A.serverRow===void 0);return{key:Bn.keyOf(y),local:Y,delivery:A&&Y?{status:A.status==="failed"?"failed":"pending",onRetry:A.status==="failed"&&be()?()=>{Tt.getState().patch(A.localId,{status:"pending",autoRetried:A.autoRetried}),oo(A)}:void 0,onEdit:A.status==="failed"&&be()?()=>{En.getState().returnPayload(_e,{text:A.body,attachments:[],replies:[]}),Tt.getState().remove(A.localId)}:void 0}:void 0}},profileFor:y=>ir(y,U?.tenant_id??""),canMessagePerson:y=>ar(y,U?.tenant_id??"")!==null,onMessagePerson:Mi?y=>Ws(y,U?.tenant_id??""):void 0,arrivalKey:Di,highlightId:g,scrollRootRef:Ye.rootRef,isPinned:Ye.isPinned,hasOlder:h?.hasOlder??!1,loadingOlder:h?.loadingOlder??!1,onLoadOlder:h?.onLoadOlder,tenantId:U?.tenant_id,accountId:f,labelFor:y=>zi(y,U?.tenant_id??""),reactionContext:Xs,onReply:Zt?ku:void 0})})}),!qn&&(U?.status==="archived"?i.jsx("p",{className:"shrink-0 px-5 pb-4 text-[12px] text-ink-dim leading-snug",children:o("ui.teamBridge.archive.composer.note")}):Se?Xa?null:i.jsx("p",{className:"shrink-0 px-5 pb-4 text-[12px] text-ink-dim leading-snug",children:o("ui.teamBridge.read_only.composer")}):i.jsxs("div",{className:"flex min-w-0 shrink-0 flex-col gap-2 px-4 pt-1 pb-4","data-lo-composer-band":!0,children:[jt&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.schedule.failed")}),_n&&i.jsx("p",{"aria-live":"polite",className:"text-sm text-ink-muted",children:o("ui.teamBridge.schedule.success")}),On&&i.jsxs("p",{className:"text-sm text-danger",role:"alert",children:[On.kind==="capability"&&o("ui.teamBridge.attachments.unsupported"),On.kind==="expired"&&o("ui.teamBridge.attachments.expired_staged_retry"),On.kind==="upload"&&i.jsxs("span",{className:"inline-flex min-w-0 flex-wrap items-baseline gap-x-1.5",children:[i.jsx("span",{className:"font-medium",children:On.failure.name}),i.jsx("span",{children:o(Lx[On.failure.reason])})]})]}),S&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.composer.error")}),ae.storageFailed&&i.jsx("p",{role:"alert",className:"text-sm text-danger",children:o("ui.teamBridge.drafts.storage_failed")}),Le?i.jsx(Ck,{reasonId:te,busy:j||Qe,onRetry:Te?()=>{const y=ae.current?.sendAt;y&&lo(y).catch(()=>_t(!0))}:void 0,onDiscard:()=>{Ln.current||Qe||j||ae.update({sendAt:void 0,clientRef:crypto.randomUUID()})&&_t(!1)}}):ae.current?.createUncertain&&!Qe?i.jsxs("div",{role:"alert",className:"text-sm text-danger",children:[i.jsx("p",{id:te,children:o("ui.teamBridge.schedule.create_uncertain")}),i.jsx(X,{variant:"ghost",onClick:()=>ae.update({createUncertain:!1}),children:o("ui.teamBridge.schedule.create_retry")})]}):null,!rt&&i.jsx("p",{id:ur,className:"text-sm text-ink-muted",children:o("ui.teamBridge.compose.empty")}),i.jsx(rk,{conversationId:_e,placeholder:wu,canAttach:!!Pn,onFileCountChange:Ci,fileContext:{accountId:f,tenantId:De?.tenant_id??(se===Ve?void 0:se),conversationId:De?.id??null,capability:Ut},recordingProbe:_i,disabled:!rt||!!Le||!!ae.current?.createUncertain,disabledReasonId:Le||ae.current?.createUncertain?te:rt?void 0:ur,sendDisabled:!!ae.current?.sendAt||Qe,sending:j,hint:Zn>0?o("ui.teamBridge.files.no_schedule"):j?o("ui.chat.canonical.send_failure.send_lock"):void 0,onSendMessage:xu,typingTarget:pu,trailing:Te?i.jsx(X,{ref:I,variant:"ghost",size:"icon-sm","aria-label":o("ui.teamBridge.schedule.title"),title:j?o("ui.chat.canonical.send_failure.send_lock"):void 0,"aria-describedby":ae.current?.createUncertain&&!Qe||Le?te:rt?void 0:ur,disabled:Zn>0||!!ae.current?.sendAt||!!ae.current?.createUncertain||!Ue||j||Qe||!rt,onClick:()=>aa(!0),children:i.jsx(wi,{size:16,"aria-hidden":"true"})}):void 0}),oa&&i.jsx(ou,{rootId:null,className:"-mt-1"}),i.jsx(tu,{open:jn,returnFocus:I,onOpenChange:aa,busy:Qe,onSchedule:lo})]}))]})]}),Zt&&Ae&&U&&Ae.conversationId===U.id&&Ae.tenantId===U.tenant_id&&!qn&&!ti&&i.jsx("div",{className:H("absolute inset-y-0 end-0 z-20 min-w-0 @min-[1024px]/bridge:static @min-[1024px]/bridge:w-[min(26rem,45%)] @min-[1024px]/bridge:min-w-72 @min-[1024px]/bridge:shrink-0",wt?"start-0":"start-72"),children:n?n(Ae,()=>{it(null),a?.()}):i.jsx(Bx,{target:Ae,canMessagePerson:y=>ar(y,Ae.tenantId)!==null,profileFor:y=>ir(y,Ae.tenantId),onMessagePerson:Mi?y=>Ws(y,Ae.tenantId):void 0,initialRoot:m.find(y=>y.id===Ae.rootId),labelFor:y=>zi(y,Ae.tenantId),readOnly:Se,reactionContext:Xs,accountId:f,attachmentCapability:Pn,filesCapability:Ut,typingEnabled:oa,onClose:()=>{it(null),a?.()}},`${Ae.tenantId}:${Ae.conversationId}:${Ae.rootId}`)}),dr&&U&&!cr&&i.jsx("div",{className:H("absolute inset-y-0 end-0 z-20 min-w-0 @min-[1024px]/bridge:static @min-[1024px]/bridge:w-[min(26rem,45%)] @min-[1024px]/bridge:min-w-72 @min-[1024px]/bridge:shrink-0",wt?"start-0":"start-72"),children:i.jsx($k,{conversation:U,people:ni(U.tenant_id),selfAccountId:f,conversationName:Nn??o("ui.teamBridge.list.untitled"),onAddMembers:!Se&&q&&Kn(U,f)?()=>{vn(!1),bt(!0)}:void 0,onAction:Se?void 0:(y,A)=>{if(A==="remove")return!F||!Ki(U,f)?Promise.reject(new Error("Team Bridge write authority changed")):F(U,y.member.account_id);if(!K)return Promise.reject(new Error("Team Bridge write authority changed"));const Y=y.member.endpoint_id;return K(U,A,typeof Y=="string"?Y:void 0).then(oe=>(A==="leave"&&(mn(!1),He(_r(at,U.id,ei))),oe))},onClose:()=>mn(!1)},`${U.tenant_id}:${U.id}`)}),(()=>{const y=Yn?er.find(Me=>Me.id===Yn.conversationId):void 0;if(!Yn||!y)return null;const A=ui(y,f)??o("ui.teamBridge.list.untitled"),Y=d?.type==="conversation"&&d.id===y.id,oe=()=>{Vt(null),Xn(null)},Ne=()=>{if(Bi)return;const{subject:Me,item:Ie}=Yn;let Be;if(Me.kind==="leave")Be=D?.(y).then(Re=>(Y&&(mn(!1),He(fk(at,y.id,ei))),Re));else if(Ie){const Re=pk(y,f,po(y.tenant_id),Ie);Be=Re?T?.(y,Re):Promise.reject(new Error("Team Bridge write authority changed"))}Be&&(Si(!0),Xn(null),Be.then(()=>{Si(!1),Vt(null)},Re=>{Si(!1),Xn(y.builtin!=="general"?"error":yk(Re)?"not_in_general":Ie?.action==="accept"&&bk(Re)?"general_rejoin_refused":"error")}))};return i.jsx(lk,{subject:Yn.subject,conversationName:A,pending:Bi,error:Ei,onClose:oe,onConfirm:Ne})})(),(()=>{const y=Gt?er.find(oe=>oe.id===Gt.conversationId):void 0;if(!Gt||!y)return null;const A=Bs(y),Y=d?.type==="conversation"&&d.id===y.id;return Gt.kind==="archive"?i.jsx(If,{open:!0,name:A,onClose:()=>un(null),onConfirm:()=>{un(null),de?.(y),Y&&He(_r(at,y.id,ei))}}):i.jsx(Rf,{open:!0,name:A,pending:Ii,error:Ri,onClose:()=>un(null),onConfirm:()=>{!re||Ii||(Jt(!0),Dn(null),re(y).then(()=>{Jt(!1),un(null),Y&&(ce(_r(at,y.id,ei)),je?.(),ri("archived"))},oe=>{Jt(!1),Dn(oe?.code==="conversation_not_found"?"gone":"error")}))}})})(),U&&i.jsx(Ef,{open:Wt,conversation:U,people:U?ni(U.tenant_id):[],selfAccountId:f,peopleState:Ke?wn?.[U.tenant_id]??"loading":Mn,canInvite:!Se&&Kn(U,f),canRemove:!Se&&Ki(U,f),mutationError:ia,pendingKey:N,onClose:()=>{N||(bt(!1),vn(!1))},onRetryMembers:bn,onAdd:y=>{!q||Se||!Kn(U,f)||(vn(!1),q(U,y).catch(()=>{vn(!0)}))},onRemove:y=>{!F||Se||!Ki(U,f)||(vn(!1),F(U,y).catch(()=>{vn(!0)}))}})]});return i.jsx(pp,{conversation:U,people:U?ni(U.tenant_id):[],selfAccountId:f,sendMentions:we==="enabled",onAddMembers:q,children:i.jsx(xx,{conversationId:U?.id??null,tenantId:U?.tenant_id??null,selfAccountId:f??null,open:oa,threadRootId:cr?Ae?.rootId??null:null,labelFor:fu,children:_u})},JSON.stringify([f,se]))},Fx=({joining:e=!1,joinFailed:n=!1,readOnly:t=!1,onJoin:a})=>(pe(),i.jsx("div",{className:"flex flex-1 items-center justify-center px-6 py-10",children:i.jsxs("div",{className:"flex max-w-md flex-col items-center gap-3 text-center",children:[i.jsx("p",{className:"text-[13px] text-ink",children:o("ui.teamBridge.preview.banner")}),n&&i.jsx("p",{role:"alert",className:"text-[12px] text-danger",children:o("ui.teamBridge.preview.join_error")}),t?i.jsx("p",{className:"text-[12px] leading-snug text-ink-dim",children:o("ui.teamBridge.read_only.note")}):i.jsx(X,{type:"button",size:"sm",variant:"primary",disabled:e,onClick:a,children:o("ui.teamBridge.preview.join")})]})})),iv=()=>{const e=sm(),n=u.useRef(new Map),t=u.useRef(new Map),a=u.useRef(null),r=u.useRef(null);return i.jsx(Ux,{accountId:e.accountId,drafts:n.current,receipts:t.current,messageLinkCarry:a,clickCarry:r},e.token)},$x=8e3,Kx=Math.floor(Mm/md)-1,Ur=(e,n,t)=>JSON.stringify([e,n,t]),Ux=({accountId:e,drafts:n,receipts:t,messageLinkCarry:a,clickCarry:r})=>{const s=ht(),[l,c]=Lh(),d=l.get("conversation"),m=l.get("tenant"),h=l.get("thread"),p=l.get("message"),g=lm(l),b=!d&&g&&g.target.type!=="conversation"?g.target:null,k=b?.type??null,x=b?.accountId??null,v=!!(d||b),[w,f]=u.useState(()=>{const I=p&&d&&!h?{conversationId:d,messageId:p,fetched:!1,newestRead:!1}:v?null:a.current;return a.current=I,I}),j=u.useCallback(I=>f(te=>{const se=typeof I=="function"?I(te):I;return a.current=se,se}),[a]),S=u.useMemo(()=>{const I=ot();return I&&e?Mx(I,e)??Sg(I,e):void 0},[e]),E=u.useRef(v?null:r.current).current,[_,C]=u.useState(()=>m?fn(m):E?.scope??S??Ve),B=u.useRef({scope:null,view:null});if(B.current.scope!==_){const I=ot();B.current={scope:_,view:I&&e?Ax(I,e,_):null}}const M=v?null:E?.view??B.current.view,[V,O]=u.useState(()=>d?vo(l):rd(M)),q=u.useRef(!!(m||E));u.useEffect(()=>{if(!E||!e)return;const I=ot();I&&Kr(I,e,E.scope,E.view)&&(r.current=null)},[E,e,r]);const F=e?s.getQueryData(Rn.conversations(Ve,e))?.conversations:void 0,N=dm(),G=Oh(),K=tg(),$=qh(),R=(K.data?.features?.team_bridge_conversation_owner_guard??0)>=1,D=(N.data?Fh(N.data):null)??(!e&&G.accountRead==="signed-out"?"signed_out":G.unavailable?"update_required":G.error||N.isError||K.isError?"unavailable":K.data&&!R?"update_required":null),T=D===null&&(!e||N.isPending||K.isPending),z=!T&&D===null&&N.data?.account_id===e,Z=z?e:void 0,L=dp(z?N.data?.tenant_id:null),ne=np(N.data),J=tp({statusReadOnly:N.data?.read_only===!0,ownerGuard:R,trialPaused:L.paused}),ge=cm(e),de=()=>ge.isCurrent()&&R,Q=()=>ge.isAuthorityCurrent()&&R,re=um(Z),ve=ds({enabled:z}),he=mm(z,Ve,{accountId:e}),ue=$h(N.data),ke=u.useMemo(()=>Kh(ve.memberships,he.data?.organizations,ue).map(I=>({...I,unread:re.byTenant.get(I.tenantId)??I.unread})),[ve.memberships,he.data,ue,re]),{pending:ee,failed:me}=Uh(ue,ve),je=Lo({organizations:ke,stored:S,requestedTenant:m,chosen:q.current,current:_,snapshotRows:F})===_&&!ee,ye=hm(_,z&&je,e),xe=hd(_===Ve?null:_,z,e),fe=_===Ve,qe=gm(fe?ke.map(I=>I.tenantId):[],z,e),Wn=G.user?.name??void 0,P=u.useMemo(()=>Eg(F??[],_),[F,_]),ie=u.useMemo(()=>(ye.data?.conversations??P).map(I=>pm(I,re)),[ye.data?.conversations,P,re]),le=ie.length>0,we=T&&le,Pe=le&&(we||ye.isFetching||fe&&ee),ln=le&&he.isFetching,Fe=xe.data?.members??[],dn=Dd(Fe,Z,gi()),[be,Ee]=u.useState(()=>d?{type:"conversation",id:d}:b??M?.target??null),Vn=u.useRef(v?null:M?.target??null),wn=u.useRef(new Set(v||M?[_]:[])),pt=u.useRef(null),Jn=u.useRef(_);Jn.current=_;const[Mn,An]=u.useState(!1),na=u.useRef(()=>{}),Qn=q1({accountId:e,enabled:z&&(K.data?.features?.team_bridge_owner_audit??0)>=1,scopeKey:_,organizations:fe?ke:ke.filter(I=>I.tenantId===_),onSelect:()=>{Ee(null),O(null)}});na.current=()=>Qn?.clear(),u.useEffect(()=>{if(!(d||k)||!m)return;q.current=!0,wn.current.add(fn(m)),pt.current=null,C(fn(m)),na.current();const I=d?{type:"conversation",id:d}:{type:k,accountId:x},te=d?vo(new URLSearchParams({tenant:m,conversation:d,...h?{thread:h}:{}})):null,se=fn(m),ae=ot(),Le={target:I,thread:te};B.current.scope===se&&(B.current.view=Le),(ae&&e?Kr(ae,e,se,Le):!1)||(r.current={scope:se,view:Le}),Vn.current=d?null:I,Ee(I),O(te),j(d&&p&&!h?{conversationId:d,messageId:p,fetched:!1,newestRead:!1}:null),An(!1),c({},{replace:!0})},[d,k,x,m,h,p,c,j,e,r]);const ft=I=>{q.current=!0,wn.current.delete(I),pt.current=null;const te=ot();te&&e&&zx(te,e,I),C(I),O(null),Ee(null),An(!1)},Ya=I=>{const te=ot();te&&e&&Ig(te,e,I),ft(I)};u.useEffect(()=>{C(I=>Lo({organizations:ke,stored:S,requestedTenant:m,chosen:q.current,current:I,snapshotRows:F}))},[ke,F,S,m]);const bn=u.useMemo(()=>zd(ie,_,ke),[ie,_,ke]);u.useEffect(()=>{if(!Qn?.active&&be===null&&bn.length>0){const I=pt.current;if(I?.scope===_){Ee(I.target);return}const te=wn.current.has(_)?null:B.current.view;if(wn.current.add(_),te){pt.current={scope:_,target:te.target},Vn.current=te.target,te.quickView==="archived"&&ta(!0),Ee(te.target),O(rd(te));return}const se=yd(bn,ke.map(ae=>ae.tenantId));se&&Ee({type:"conversation",id:se.id})}},[bn,ke,be,Qn?.active,_]),u.useEffect(()=>{be!==null&&(pt.current=null)},[be]);const[zn,ta]=u.useState(()=>M?.quickView==="archived"),Se=ye.isSuccess&&be?.type==="conversation"&&!bn.some(I=>I.id===be.id),tn=fm(_,z&&(zn||Se),e),kt=tn.data?.conversations??[];u.useEffect(()=>{const I=Vn.current;if(!I||be!==I||!ye.isSuccess||ye.isFetching)return;const te=!tn.isFetching;let se;I.type==="conversation"?bn.some(ae=>ae.id===I.id)?se=!0:tn.isSuccess&&te?se=kt.some(ae=>ae.id===I.id):tn.isError&&te&&(se=!1):I.type==="person"||I.type==="chief"?fe?se=!1:xe.isFetching?se=void 0:xe.isSuccess?se=(xe.data?.members??[]).some(ae=>ae.account_id===I.accountId):xe.isError&&(se=!0):se=!0,se!==void 0&&(Vn.current=null,!se&&(B.current={scope:_,view:null},O(null),Ee(null)))},[be,ye.isSuccess,ye.isFetching,bn,tn.isSuccess,tn.isError,tn.isFetching,kt,xe.isFetching,xe.isSuccess,xe.isError,xe.data,fe,_]);const Xa=I=>{if(!e)return;const te=ot(),se={target:I.target,thread:I.thread??null,quickView:I.quickView??null,scroll:I.scroll??null};B.current.scope===_&&(B.current.view=se),te&&Kr(te,e,_,se,Jn.current)},ce=Ia(be,Pd(bn,kt),Z),ji=ce!==null&&qa(ce),Te=km(ji?null:ce?.id??null,ce?.tenant_id,z,e),Pn=wm(ce?.id??"",ce?.tenant_id),Ut=bm(),_i=ym(),Ni=xm(),cn=vm(),yn=ud(),[Ht,pn]=u.useState(null),[wt,$e]=u.useState(null),xn=jm(fe?void 0:_,de),Gt=_m(ce?.id??"",ce?.tenant_id),un=Nm(ce?.id??"",ce?.tenant_id),Wt=Bm(),bt=Sm(ce?.id,ce?.tenant_id),yt=Em(_,e),mn=Im(),ia=Rm(),vn=Cm(),Yn=()=>{if(be===null)return[];if(be.type==="compose")return be.recipients;if(be.type==="person"){const I=Fe.find(te=>te.account_id===be.accountId);return I?[{kind:"human",accountId:I.account_id,label:nn(I)}]:[]}if(be.type==="chief"){const I=ks(Fe,Z).find(te=>te.person.account_id===be.accountId);return I?[{kind:"agent",accountId:I.person.account_id,endpointId:I.endpointId,agentName:I.agentName,ownerLabel:nn(I.person),label:lt(I.agentName,nn(I.person),gi())}]:[]}return[]},[Vt,Bi]=u.useState(!1),[Si,Ei]=u.useState(!1),Xn=e??"unresolved-owner",Ii=t.get(Xn)??new Map;t.set(Xn,Ii);const Jt={current:Ii},Ri=u.useRef(be);Ri.current=be;const Dn=u.useRef(null),xt=async(I,te,se,ae)=>{if(!de())throw new Error("Team Bridge write authority changed");const Le=ae?.into;if(Le&&ae){const Oe=await Je.send(Le.conversationId,{clientRef:te,body:I,tenantId:Le.tenantId,expectedAccountId:jo(e),attachmentIds:await Cr(se,Le.conversationId,Le.tenantId),files:se?.files,mentions:ae.mentions});return gd(Le.conversationId,I),await _o(s,Le.conversationId,Le.tenantId,de),Oe}if(ce!==null){const Oe=us(ce.id,I);return Pn.mutateAsync({clientRef:te,body:I,mentions:Oe,attachmentIds:await Cr(se,ce.id,ce.tenant_id),files:se?.files})}const _e=Yn(),et=Md(_e);if(et===null)return;const nt=`${fe?"*":_}|${et.kind}|${_e.map(on).sort().join(",")}`,an=be;ae||(Bi(!0),Ei(!1));let Nt,Ti=!1;const On=(Oe,Ue)=>{if(!(Ti||!de())&&(Ti=!0,an?.type==="compose"&&Ri.current===an)){const tt={type:"conversation",id:Oe};!fe&&typeof Ue=="string"&&Ue.length>0&&Ue===_&&(Dn.current={key:Ur(e,Ue,tt),viewKey:Ur(e,_,an),arrived:!1}),Ee(tt)}};try{const{id:Oe}=await Ad({draftKey:nt,input:et,body:I,clientRef:te,tenantId:fe?void 0:_,remembered:Jt.current,create:Ue=>xn.mutateAsync(Ue),onCreated:ae?Ue=>{ae.onCreated?.(Ue.id,Ue.tenantId),On(Ue.id,Ue.tenantId),ye.refetch()}:void 0,post:async(Ue,tt)=>{if(!Q())throw new Error("Team Bridge write authority changed");return Nt=await Je.send(Ue,{...tt,expectedAccountId:jo(e),attachmentIds:await Cr(se,Ue,tt.tenantId),files:se?.files}),Nt}});return de()?(On(Oe),await ye.refetch(),await _o(s,Oe,void 0,de),Nt??{id:Oe}):Q()?Nt??{id:Oe}:void 0}catch(Oe){throw de()&&Ei(!0),Oe}finally{!ae&&de()&&Bi(!1)}},Za=async(I,te,se,ae,Le,_e)=>{if(J||fe&&!ce||be===null)throw new Error("schedule requires organization");const et=be;return J1({tenantId:ce?.tenant_id??_,conversationId:ce?.id??ae,recipients:Yn(),body:I,clientRef:te,sendAt:se,attachmentIds:_e?.ids,stageHeld:_e?.stageHeld,remembered:Jt.current,onCreated:Le,onScheduled:nt=>{const an=ax(et,Ri.current,nt);an&&Ee(an),ye.refetch()},create:nt=>xn.mutateAsync(nt),schedule:Je.scheduledCreate})};u.useEffect(()=>{Pn.reset(),un.reset(),Wt.reset(),Ei(!1)},[ce?.id,be]);const vt=Te.messages.reduce((I,te)=>I===void 0||te.seq>I?te.seq:I,void 0);u.useEffect(()=>{!de()||ce===null||vt===void 0||ce.status!=="archived"&&(vt<=ce.last_read_seq||Gt.mutate({seq:vt}))},[ce?.id,vt]);const Qt=w!==null&&ce?.id===w.conversationId,jn=Qt&&Te.messages.some(I=>I.id===w.messageId),aa=Qt&&!jn&&!w.fetched,Qe=u.useRef(0),Yt=u.useRef(null),Zn=u.useRef(null),Ci=u.useRef(!0);u.useEffect(()=>(Ci.current=!0,()=>{Ci.current=!1}),[]),u.useEffect(()=>{if(!(!w||w.fetched||!ce||!Z)&&ce.id===w.conversationId){if(Te.isPending||jn){Yt.current=w.messageId,Qe.current=0;return}if(Yt.current!==w.messageId&&(Yt.current=w.messageId,Qe.current=0),!w.newestRead){if(Zn.current===w.messageId)return;Zn.current=w.messageId,s.fetchQuery({...Tm(s,ce.id,ce.tenant_id,Z),staleTime:0}).catch(()=>{}).finally(()=>{Zn.current===w.messageId&&(Zn.current=null),Ci.current&&j(I=>I&&I.messageId===w.messageId?{...I,newestRead:!0}:I)});return}if(!Te.isLoadingOlder){if(Te.hasOlder&&Qe.current<Kx){Qe.current+=1,Promise.resolve(Te.loadOlder()).then(I=>{I===null&&j(te=>te&&{...te,fetched:!0})}).catch(()=>{});return}j(I=>I&&{...I,fetched:!0})}}},[w,ce,Z,s,Te.isPending,Te.hasOlder,Te.isLoadingOlder,Te.loadOlder,jn,j]),u.useEffect(()=>{if(!jn)return;const I=setTimeout(()=>j(null),Hh);return()=>clearTimeout(I)},[jn,j]),u.useEffect(()=>{w&&(ce!==null&&ce.id!==w.conversationId||w.fetched&&!jn)&&j(null)},[w,ce,jn,j]),u.useEffect(()=>{if(!w)return;const I=setTimeout(()=>j(null),$x);return()=>clearTimeout(I)},[w,j]);const _n=Ur(e,ce?.tenant_id??_,be),Xt=n.get(_n)??{body:""};n.set(_n,Xt);const jt=Dn.current;jt&&(_n===jt.key?jt.arrived=!0:(jt.arrived||_n!==jt.viewKey)&&(Dn.current=null));const _t=B.current.view?Ze(B.current.view.target):null,Ln=Dn.current?.key===_n?Dn.current.viewKey:_n;return i.jsxs(i.Fragment,{children:[i.jsx(qx,{ownerAudit:Qn,draftJournal:Xt,isDraftCurrent:de,threadLink:V,threadsCapabilityState:si(K.data,"team_bridge_threads"),reactionsCapabilityState:si(K.data,"team_bridge_reactions"),typingCapabilityState:si(K.data,"team_bridge_typing"),sendMentionsCapabilityState:si(K.data,"team_bridge_send_mentions"),agentNotifyCapabilityState:si(K.data,"team_bridge_agent_notify"),onCloseThread:()=>O(null),initialQuickView:_t!==null&&be!==null&&_t===Ze(be)?B.current.view?.quickView??null:null,initialScroll:Px(B.current.view,be),onViewMemory:Xa,listState:ye.isPending||fe&&ee?le?"ready":"loading":ye.isError||fe&&me?"error":"ready",messageState:ce===null?"idle":Te.isPending||aa?"loading":Te.isError?Wh(Te.error)?"forbidden":"error":"ready",onRetryMessages:Te.refetch,conversations:ie,target:be,messages:Te.messages,events:Te.events,olderPaging:{hasOlder:Te.hasOlder,loadingOlder:Te.isLoadingOlder,onLoadOlder:Te.loadOlder},highlightMessageId:jn?w?.messageId:null,organizations:ke,scope:_,totalUnread:he.data?re.total:0,refreshingRows:Pe,refreshingUnread:ln,membershipsLoading:ee,organizationsFailed:me,selfAccountId:Z,sending:Pn.isPending||Vt,sendFailed:Pn.isError||Si,joining:un.isPending,joinFailed:un.isError,notifyFailed:Nr(Wt,ce?.id??null),agentNotifyFailed:Nr(bt,ce?.id??null),onJoin:()=>{de()&&un.mutate(void 0)},onArchive:I=>{de()&&mn.mutate({conversationId:I.id,tenantId:I.tenant_id},{onError:()=>pa(o("ui.teamBridge.archive.toast.archive_failed",{name:Bs(I)}))})},onUnarchive:I=>{de()&&ia.mutate({conversationId:I.id,tenantId:I.tenant_id})},onDelete:I=>de()?vn.mutateAsync({conversationId:I.id,tenantId:I.tenant_id}):Promise.reject(new Error("Team Bridge write authority changed")),unarchiveFailed:Nr(ia,ce?.id??null),archivedState:tn.isPending?"loading":tn.isError?"error":"ready",archivedConversations:kt,archivedHasMore:tn.data?.has_more===!0,archivedLoadingMore:yt.isPending,archivedLoadMoreFailed:yt.isError,onLoadMoreArchived:()=>{de()&&yt.mutate()},onOpenArchived:()=>ta(!0),onRetryArchived:()=>{tn.refetch()},onNotifyChange:I=>{!de()||ce===null||Wt.mutate({conversationId:ce.id,tenantId:ce.tenant_id,notify:I})},onAgentNotifyChange:I=>{!de()||ce===null||bt.mutate({conversationId:ce.id,tenantId:ce.tenant_id,notify:I})},onAddMembers:(I,te)=>!de()||!Kn(I,e)?Promise.reject(new Error("Team Bridge write authority changed")):Ut.mutateAsync({conversationId:I.id,tenantId:I.tenant_id,members:te,key:"add"}),onRemoveMember:(I,te)=>!de()||!Ki(I,e)?Promise.reject(new Error("Team Bridge write authority changed")):_i.mutateAsync({conversationId:I.id,tenantId:I.tenant_id,accountId:te,key:`remove:${te}`}),onMenuJoin:I=>{de()&&un.mutate({conversationId:I.id,tenantId:I.tenant_id})},onMenuNotifyChange:(I,te)=>{de()&&Wt.mutate({conversationId:I.id,tenantId:I.tenant_id,notify:te})},onMenuLeave:I=>{if(!de())return Promise.reject(new Error("Team Bridge write authority changed"));const te={conversationId:I.id,tenantId:I.tenant_id};return pn(null),kk({leave:()=>Ni.mutateAsync(te),withdraw:se=>cn.mutateAsync({...te,endpointId:se,key:`withdraw:${se??""}`}),serverWithdrawsAgent:si(K.data,"team_bridge_leave_withdraws_agent")==="enabled",ownActiveAgent:Gh(I,e),builtin:I.builtin}).then(se=>(se.status==="partial"&&pn({conversationId:I.id,tenantId:I.tenant_id,name:ui(I,e)??o("ui.teamBridge.list.untitled"),endpointId:se.endpointId,retrying:!1,retryFailed:!1}),se))},partialLeave:Ht??void 0,onRetryPartialLeave:()=>{if(!Ht||Ht.retrying||!de())return;const I=Ht;pn({...I,retrying:!0,retryFailed:!1}),cn.mutateAsync({conversationId:I.conversationId,tenantId:I.tenantId,endpointId:I.endpointId,key:`withdraw:${I.endpointId??""}`}).then(()=>pn(null),te=>wk(te)?pn(null):pn({...I,retrying:!1,retryFailed:!0}))},onDismissPartialLeave:()=>pn(null),onMenuOwnAgent:(I,te)=>{if(!de())return Promise.reject(new Error("Team Bridge write authority changed"));const se={conversationId:I.id,tenantId:I.tenant_id};switch(te.op){case"withdraw":return cn.mutateAsync({...se,endpointId:te.endpointId,key:`withdraw:${te.endpointId??""}`});case"decline":case"accept":return yn.mutateAsync({...se,decision:te.op,endpointId:te.endpointId});case"add":return Kn(I,e)?Ut.mutateAsync({...se,members:[te.member],key:"add"}):Promise.reject(new Error("Team Bridge write authority changed"))}},onOpenMembersFor:(I,te)=>{$e({conversationId:I.id,surface:te}),wn.current.add(_),O(null),An(!1),Ee({type:"conversation",id:I.id})},initialMembersPanelOpen:wt?.surface==="panel"&&wt.conversationId===ce?.id,initialMembersOpen:wt?.surface==="add"&&wt.conversationId===ce?.id,onMemberSelfAction:(I,te,se)=>{if(!de())return Promise.reject(new Error("Team Bridge write authority changed"));const ae={conversationId:I.id,tenantId:I.tenant_id};return te==="leave"?Ni.mutateAsync(ae):te==="withdraw"?cn.mutateAsync({...ae,endpointId:se,key:`withdraw:${se??""}`}):yn.mutateAsync({...ae,decision:"decline",endpointId:se})},memberMutationKey:Ut.isPending?"add":_i.isPending?_i.variables?.key??"remove":null,onTarget:I=>{I&&wn.current.add(_),O(null),An(!1),$e(null),Ee(I)},onSend:xt,attachmentCapability:Pf(N.data),filesCapability:Yf(N.data),recordingProbe:$,onSchedule:_===Ve&&!ce?void 0:Za,onNewChannel:()=>{J||fe||An(!0)},people:Fe,directories:qe.members,directoryStates:qe.state,directoryErrors:qe.errors,onRetryMembers:I=>{fe?qe.retry(I):xe.refetch()},selfName:Wn,peopleState:xe.isPending?"loading":xe.isError?"error":"ready",peopleError:xe.error,peopleIncomplete:(xe.data?.unavailable_count??0)>0,onRetryPeople:()=>{xe.refetch()},eligibility:D,gatePending:T&&!we,readOnly:J,readOnlyExplained:L.paused,notice:i.jsxs(i.Fragment,{children:[L.note,i.jsx(Nk,{status:N.data})]}),noOrgPanel:ne?i.jsx(up,{tenantId:ne.tenantId,endedAt:ne.endedAt}):i.jsx(lp,{fallback:i.jsx(lu,{reason:"plan_required"})}),onRetry:()=>{ye.refetch(),ve.isError&&ve.refetch()},onScopeChange:ft,onChooseOrganization:Ya,onRetryMemberships:()=>{ve.refetch()}},Ln),i.jsx(_k,{open:Mn,candidates:dn,pending:xn.isPending,error:xn.isError?o("ui.teamBridge.create.error"):void 0,onClose:()=>An(!1),onCreate:I=>{de()&&xn.mutate(I,{onSuccess:te=>{if(!de())return;An(!1);const se=te;se.id&&Ee({type:"conversation",id:se.id})}})}})]})};function Hx(e,n,t,a,r,s=!0){const l={type:e.kind==="agent"?"chief":"person",accountId:e.account_id},c=Ia(l,t.filter(d=>d.tenant_id===n),a);return c?s?{type:"conversation",id:c.id}:l:r?null:l}export{lu as TeamBridgeEligibilityPanel,iv as TeamBridgePage,qx as TeamBridgePageView,Fx as TeamBridgePreviewBanner,Hx as profileMessageTarget};
|